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
#define ILLEGAL_INSTRUCTION 6 #define GENERAL_PROTECTION_FAULT 0xd #define PM (I.msw&1) #define CPL (I.sregs[CS]&3) #define IOPL ((I.flags&0x3000)>>12) static void i80286_trap2(int number); static void i80286_interrupt_descriptor(UINT16 number); static void i80286_code_descriptor(UINT16 selector, UINT16 offset); static void i80286_data_descriptor(int reg, UINT16 selector); static void PREFIX286(_0fpre)(void); static void PREFIX286(_arpl)(void);
39.82
11
(translation_unit) "#define ILLEGAL_INSTRUCTION 6\n#define GENERAL_PROTECTION_FAULT 0xd\n\n#define PM (I.msw&1)\n#define CPL (I.sregs[CS]&3)\n#define IOPL ((I.flags&0x3000)>>12)\n\nstatic void i80286_trap2(int number);\nstatic void i80286_interrupt_descriptor(UINT16 number);\nstatic void i80286_code_descriptor(UINT16 selector, UINT16 offset);\nstatic void i80286_data_descriptor(int reg, UINT16 selector);\nstatic void PREFIX286(_0fpre)(void);\nstatic void PREFIX286(_arpl)(void);\n" (preproc_def) "#define ILLEGAL_INSTRUCTION 6\n" (#define) "#define" (identifier) "ILLEGAL_INSTRUCTION" (preproc_arg) "6" (preproc_def) "#define GENERAL_PROTECTION_FAULT 0xd\n" (#define) "#define" (identifier) "GENERAL_PROTECTION_FAULT" (preproc_arg) "0xd" (preproc_def) "#define PM (I.msw&1)\n" (#define) "#define" (identifier) "PM" (preproc_arg) "(I.msw&1)" (preproc_def) "#define CPL (I.sregs[CS]&3)\n" (#define) "#define" (identifier) "CPL" (preproc_arg) "(I.sregs[CS]&3)" (preproc_def) "#define IOPL ((I.flags&0x3000)>>12)\n" (#define) "#define" (identifier) "IOPL" (preproc_arg) "((I.flags&0x3000)>>12)" (declaration) "static void i80286_trap2(int number);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "i80286_trap2(int number)" (identifier) "i80286_trap2" (parameter_list) "(int number)" (() "(" (parameter_declaration) "int number" (primitive_type) "int" (identifier) "number" ()) ")" (;) ";" (declaration) "static void i80286_interrupt_descriptor(UINT16 number);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "i80286_interrupt_descriptor(UINT16 number)" (identifier) "i80286_interrupt_descriptor" (parameter_list) "(UINT16 number)" (() "(" (parameter_declaration) "UINT16 number" (type_identifier) "UINT16" (identifier) "number" ()) ")" (;) ";" (declaration) "static void i80286_code_descriptor(UINT16 selector, UINT16 offset);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "i80286_code_descriptor(UINT16 selector, UINT16 offset)" (identifier) "i80286_code_descriptor" (parameter_list) "(UINT16 selector, UINT16 offset)" (() "(" (parameter_declaration) "UINT16 selector" (type_identifier) "UINT16" (identifier) "selector" (,) "," (parameter_declaration) "UINT16 offset" (type_identifier) "UINT16" (identifier) "offset" ()) ")" (;) ";" (declaration) "static void i80286_data_descriptor(int reg, UINT16 selector);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "i80286_data_descriptor(int reg, UINT16 selector)" (identifier) "i80286_data_descriptor" (parameter_list) "(int reg, UINT16 selector)" (() "(" (parameter_declaration) "int reg" (primitive_type) "int" (identifier) "reg" (,) "," (parameter_declaration) "UINT16 selector" (type_identifier) "UINT16" (identifier) "selector" ()) ")" (;) ";" (declaration) "static void PREFIX286(_0fpre)(void);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "PREFIX286(_0fpre)(void)" (function_declarator) "PREFIX286(_0fpre)" (identifier) "PREFIX286" (parameter_list) "(_0fpre)" (() "(" (parameter_declaration) "_0fpre" (type_identifier) "_0fpre" ()) ")" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "static void PREFIX286(_arpl)(void);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "PREFIX286(_arpl)(void)" (function_declarator) "PREFIX286(_arpl)" (identifier) "PREFIX286" (parameter_list) "(_arpl)" (() "(" (parameter_declaration) "_arpl" (type_identifier) "_arpl" ()) ")" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";"
117
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 39.82, "nodes": 80, "errors": 0, "source_hash": "275c3eca28fea03f1ee9d0de02dfa782e10cc21a97d02f507544bb52fea05ac4", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ILLEGAL_INSTRUCTION 6\n", "parent": null, "children": [1, 2, 3], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "ILLEGAL_INSTRUCTION", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_arg", "text": "6", "parent": 0, "children": [], "start_point": {"row": 0, "column": 28}, "end_point": {"row": 0, "column": 29}}, {"id": 4, "type": "preproc_def", "text": "#define GENERAL_PROTECTION_FAULT 0xd\n", "parent": null, "children": [5, 6, 7], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 5, "type": "#define", "text": "#define", "parent": 4, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 6, "type": "identifier", "text": "GENERAL_PROTECTION_FAULT", "parent": 4, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 32}}, {"id": 7, "type": "preproc_arg", "text": "0xd", "parent": 4, "children": [], "start_point": {"row": 1, "column": 33}, "end_point": {"row": 1, "column": 36}}, {"id": 8, "type": "preproc_def", "text": "#define PM (I.msw&1)\n", "parent": null, "children": [9, 10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 9, "type": "#define", "text": "#define", "parent": 8, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 10, "type": "identifier", "text": "PM", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 10}}, {"id": 11, "type": "preproc_arg", "text": "(I.msw&1)", "parent": 8, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 20}}, {"id": 12, "type": "preproc_def", "text": "#define CPL (I.sregs[CS]&3)\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 14, "type": "identifier", "text": "CPL", "parent": 12, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 11}}, {"id": 15, "type": "preproc_arg", "text": "(I.sregs[CS]&3)", "parent": 12, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 27}}, {"id": 16, "type": "preproc_def", "text": "#define IOPL ((I.flags&0x3000)>>12)\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 18, "type": "identifier", "text": "IOPL", "parent": 16, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 12}}, {"id": 19, "type": "preproc_arg", "text": "((I.flags&0x3000)>>12)", "parent": 16, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 35}}, {"id": 20, "type": "declaration", "text": "static void i80286_trap2(int number);", "parent": null, "children": [21, 22], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 37}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 11}}, {"id": 22, "type": "function_declarator", "text": "i80286_trap2(int number)", "parent": 20, "children": [23, 24], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 36}}, {"id": 23, "type": "identifier", "text": "i80286_trap2", "parent": 22, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 24}}, {"id": 24, "type": "parameter_list", "text": "(int number)", "parent": 22, "children": [25], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 36}}, {"id": 25, "type": "parameter_declaration", "text": "int number", "parent": 24, "children": [26, 27], "start_point": {"row": 7, "column": 25}, "end_point": {"row": 7, "column": 35}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 7, "column": 25}, "end_point": {"row": 7, "column": 28}}, {"id": 27, "type": "identifier", "text": "number", "parent": 25, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 35}}, {"id": 28, "type": "declaration", "text": "static void i80286_interrupt_descriptor(UINT16 number);", "parent": null, "children": [29, 30], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 55}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 11}}, {"id": 30, "type": "function_declarator", "text": "i80286_interrupt_descriptor(UINT16 number)", "parent": 28, "children": [31, 32], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 54}}, {"id": 31, "type": "identifier", "text": "i80286_interrupt_descriptor", "parent": 30, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 39}}, {"id": 32, "type": "parameter_list", "text": "(UINT16 number)", "parent": 30, "children": [33], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 54}}, {"id": 33, "type": "parameter_declaration", "text": "UINT16 number", "parent": 32, "children": [34, 35], "start_point": {"row": 8, "column": 40}, "end_point": {"row": 8, "column": 53}}, {"id": 34, "type": "type_identifier", "text": "UINT16", "parent": 33, "children": [], "start_point": {"row": 8, "column": 40}, "end_point": {"row": 8, "column": 46}}, {"id": 35, "type": "identifier", "text": "number", "parent": 33, "children": [], "start_point": {"row": 8, "column": 47}, "end_point": {"row": 8, "column": 53}}, {"id": 36, "type": "declaration", "text": "static void i80286_code_descriptor(UINT16 selector, UINT16 offset);", "parent": null, "children": [37, 38], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 67}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 11}}, {"id": 38, "type": "function_declarator", "text": "i80286_code_descriptor(UINT16 selector, UINT16 offset)", "parent": 36, "children": [39, 40], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 66}}, {"id": 39, "type": "identifier", "text": "i80286_code_descriptor", "parent": 38, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 34}}, {"id": 40, "type": "parameter_list", "text": "(UINT16 selector, UINT16 offset)", "parent": 38, "children": [41, 44], "start_point": {"row": 9, "column": 34}, "end_point": {"row": 9, "column": 66}}, {"id": 41, "type": "parameter_declaration", "text": "UINT16 selector", "parent": 40, "children": [42, 43], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 50}}, {"id": 42, "type": "type_identifier", "text": "UINT16", "parent": 41, "children": [], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 41}}, {"id": 43, "type": "identifier", "text": "selector", "parent": 41, "children": [], "start_point": {"row": 9, "column": 42}, "end_point": {"row": 9, "column": 50}}, {"id": 44, "type": "parameter_declaration", "text": "UINT16 offset", "parent": 40, "children": [45, 46], "start_point": {"row": 9, "column": 52}, "end_point": {"row": 9, "column": 65}}, {"id": 45, "type": "type_identifier", "text": "UINT16", "parent": 44, "children": [], "start_point": {"row": 9, "column": 52}, "end_point": {"row": 9, "column": 58}}, {"id": 46, "type": "identifier", "text": "offset", "parent": 44, "children": [], "start_point": {"row": 9, "column": 59}, "end_point": {"row": 9, "column": 65}}, {"id": 47, "type": "declaration", "text": "static void i80286_data_descriptor(int reg, UINT16 selector);", "parent": null, "children": [48, 49], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 61}}, {"id": 48, "type": "primitive_type", "text": "void", "parent": 47, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 11}}, {"id": 49, "type": "function_declarator", "text": "i80286_data_descriptor(int reg, UINT16 selector)", "parent": 47, "children": [50, 51], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 60}}, {"id": 50, "type": "identifier", "text": "i80286_data_descriptor", "parent": 49, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 34}}, {"id": 51, "type": "parameter_list", "text": "(int reg, UINT16 selector)", "parent": 49, "children": [52, 55], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 60}}, {"id": 52, "type": "parameter_declaration", "text": "int reg", "parent": 51, "children": [53, 54], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 42}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 38}}, {"id": 54, "type": "identifier", "text": "reg", "parent": 52, "children": [], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 42}}, {"id": 55, "type": "parameter_declaration", "text": "UINT16 selector", "parent": 51, "children": [56, 57], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 59}}, {"id": 56, "type": "type_identifier", "text": "UINT16", "parent": 55, "children": [], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 50}}, {"id": 57, "type": "identifier", "text": "selector", "parent": 55, "children": [], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 59}}, {"id": 58, "type": "declaration", "text": "static void PREFIX286(_0fpre)(void);", "parent": null, "children": [59, 60], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 36}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 11}}, {"id": 60, "type": "function_declarator", "text": "PREFIX286(_0fpre)(void)", "parent": 58, "children": [61, 66], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 35}}, {"id": 61, "type": "function_declarator", "text": "PREFIX286(_0fpre)", "parent": 60, "children": [62, 63], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 29}}, {"id": 62, "type": "identifier", "text": "PREFIX286", "parent": 61, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 21}}, {"id": 63, "type": "parameter_list", "text": "(_0fpre)", "parent": 61, "children": [64], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 29}}, {"id": 64, "type": "parameter_declaration", "text": "_0fpre", "parent": 63, "children": [65], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 28}}, {"id": 65, "type": "type_identifier", "text": "_0fpre", "parent": 64, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 28}}, {"id": 66, "type": "parameter_list", "text": "(void)", "parent": 60, "children": [67], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 35}}, {"id": 67, "type": "parameter_declaration", "text": "void", "parent": 66, "children": [68], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 34}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 34}}, {"id": 69, "type": "declaration", "text": "static void PREFIX286(_arpl)(void);", "parent": null, "children": [70, 71], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 35}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 11}}, {"id": 71, "type": "function_declarator", "text": "PREFIX286(_arpl)(void)", "parent": 69, "children": [72, 77], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 34}}, {"id": 72, "type": "function_declarator", "text": "PREFIX286(_arpl)", "parent": 71, "children": [73, 74], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 28}}, {"id": 73, "type": "identifier", "text": "PREFIX286", "parent": 72, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 21}}, {"id": 74, "type": "parameter_list", "text": "(_arpl)", "parent": 72, "children": [75], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 28}}, {"id": 75, "type": "parameter_declaration", "text": "_arpl", "parent": 74, "children": [76], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 27}}, {"id": 76, "type": "type_identifier", "text": "_arpl", "parent": 75, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 27}}, {"id": 77, "type": "parameter_list", "text": "(void)", "parent": 71, "children": [78], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 34}}, {"id": 78, "type": "parameter_declaration", "text": "void", "parent": 77, "children": [79], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 33}}, {"id": 79, "type": "primitive_type", "text": "void", "parent": 78, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 33}}]}, "node_categories": {"declarations": {"functions": [22, 30, 38, 49, 60, 61, 71, 72], "variables": [20, 25, 28, 33, 36, 41, 44, 47, 52, 55, 58, 64, 67, 69, 75, 78], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 6, 10, 14, 18, 23, 27, 31, 34, 35, 39, 42, 43, 45, 46, 50, 54, 56, 57, 62, 65, 73, 76], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "i80286_trap2(int number)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "i80286_interrupt_descriptor(UINT16 number)"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "i80286_code_descriptor(UINT16 selector, UINT16 offset)"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "i80286_data_descriptor(int reg, UINT16 selector)"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "PREFIX286(_0fpre)(void)"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "PREFIX286(_0fpre)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "PREFIX286(_arpl)(void)"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "PREFIX286(_arpl)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#define ILLEGAL_INSTRUCTION 6\n#define GENERAL_PROTECTION_FAULT 0xd\n\n#define PM (I.msw&1)\n#define CPL (I.sregs[CS]&3)\n#define IOPL ((I.flags&0x3000)>>12)\n\nstatic void i80286_trap2(int number);\nstatic void i80286_interrupt_descriptor(UINT16 number);\nstatic void i80286_code_descriptor(UINT16 selector, UINT16 offset);\nstatic void i80286_data_descriptor(int reg, UINT16 selector);\nstatic void PREFIX286(_0fpre)(void);\nstatic void PREFIX286(_arpl)(void);\n"}
80,400
c
#include <stdio.h> #include <stdlib.h> int StrLen(char *string) { int i; for (i = 0; string[i] != '\0'; ++i); return i; } int StrCmp(char *string1, char *string2) { int a, i, maior, x, y; a = 0; x = StrLen(string1); y = StrLen(string2); maior = x; if(maior < y) maior = y; for (i = 0; i < maior; ++i) { if(string1[i] != string2[i]) { if(x > y) a = 1; else a = -1; } } return a; } int main() { char str1[20] = "asdf"; char str2[20] = "fdsa"; printf("\n%d",StrCmp(str1, str2)); return 0; }
16.43
37
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint StrLen(char *string)\n{\n\n int i;\n\n for (i = 0; string[i] != '\0'; ++i);\n return i;\n}\n\nint StrCmp(char *string1, char *string2)\n{\n\n int a, i, maior, x, y;\n\n a = 0;\n\n x = StrLen(string1);\n y = StrLen(string2);\n\n maior = x;\n if(maior < y)\n maior = y;\n\n for (i = 0; i < maior; ++i)\n {\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }\n return a;\n}\n\n\nint main()\n{\n char str1[20] = "asdf";\n char str2[20] = "fdsa";\n\n printf("\n%d",StrCmp(str1, str2));\n\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (function_definition) "int StrLen(char *string)\n{\n\n int i;\n\n for (i = 0; string[i] != '\0'; ++i);\n return i;\n}" (primitive_type) "int" (function_declarator) "StrLen(char *string)" (identifier) "StrLen" (parameter_list) "(char *string)" (() "(" (parameter_declaration) "char *string" (primitive_type) "char" (pointer_declarator) "*string" (*) "*" (identifier) "string" ()) ")" (compound_statement) "{\n\n int i;\n\n for (i = 0; string[i] != '\0'; ++i);\n return i;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for (i = 0; string[i] != '\0'; ++i);" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "string[i] != '\0'" (subscript_expression) "string[i]" (identifier) "string" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (expression_statement) ";" (;) ";" (return_statement) "return i;" (return) "return" (identifier) "i" (;) ";" (}) "}" (function_definition) "int StrCmp(char *string1, char *string2)\n{\n\n int a, i, maior, x, y;\n\n a = 0;\n\n x = StrLen(string1);\n y = StrLen(string2);\n\n maior = x;\n if(maior < y)\n maior = y;\n\n for (i = 0; i < maior; ++i)\n {\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }\n return a;\n}" (primitive_type) "int" (function_declarator) "StrCmp(char *string1, char *string2)" (identifier) "StrCmp" (parameter_list) "(char *string1, char *string2)" (() "(" (parameter_declaration) "char *string1" (primitive_type) "char" (pointer_declarator) "*string1" (*) "*" (identifier) "string1" (,) "," (parameter_declaration) "char *string2" (primitive_type) "char" (pointer_declarator) "*string2" (*) "*" (identifier) "string2" ()) ")" (compound_statement) "{\n\n int a, i, maior, x, y;\n\n a = 0;\n\n x = StrLen(string1);\n y = StrLen(string2);\n\n maior = x;\n if(maior < y)\n maior = y;\n\n for (i = 0; i < maior; ++i)\n {\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }\n return a;\n}" ({) "{" (declaration) "int a, i, maior, x, y;" (primitive_type) "int" (identifier) "a" (,) "," (identifier) "i" (,) "," (identifier) "maior" (,) "," (identifier) "x" (,) "," (identifier) "y" (;) ";" (expression_statement) "a = 0;" (assignment_expression) "a = 0" (identifier) "a" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "x = StrLen(string1);" (assignment_expression) "x = StrLen(string1)" (identifier) "x" (=) "=" (call_expression) "StrLen(string1)" (identifier) "StrLen" (argument_list) "(string1)" (() "(" (identifier) "string1" ()) ")" (;) ";" (expression_statement) "y = StrLen(string2);" (assignment_expression) "y = StrLen(string2)" (identifier) "y" (=) "=" (call_expression) "StrLen(string2)" (identifier) "StrLen" (argument_list) "(string2)" (() "(" (identifier) "string2" ()) ")" (;) ";" (expression_statement) "maior = x;" (assignment_expression) "maior = x" (identifier) "maior" (=) "=" (identifier) "x" (;) ";" (if_statement) "if(maior < y)\n maior = y;" (if) "if" (parenthesized_expression) "(maior < y)" (() "(" (binary_expression) "maior < y" (identifier) "maior" (<) "<" (identifier) "y" ()) ")" (expression_statement) "maior = y;" (assignment_expression) "maior = y" (identifier) "maior" (=) "=" (identifier) "y" (;) ";" (for_statement) "for (i = 0; i < maior; ++i)\n {\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < maior" (identifier) "i" (<) "<" (identifier) "maior" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (compound_statement) "{\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }" ({) "{" (if_statement) "if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }" (if) "if" (parenthesized_expression) "(string1[i] != string2[i])" (() "(" (binary_expression) "string1[i] != string2[i]" (subscript_expression) "string1[i]" (identifier) "string1" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (subscript_expression) "string2[i]" (identifier) "string2" ([) "[" (identifier) "i" (]) "]" ()) ")" (compound_statement) "{\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }" ({) "{" (if_statement) "if(x > y)\n a = 1;\n else\n a = -1;" (if) "if" (parenthesized_expression) "(x > y)" (() "(" (binary_expression) "x > y" (identifier) "x" (>) ">" (identifier) "y" ()) ")" (expression_statement) "a = 1;" (assignment_expression) "a = 1" (identifier) "a" (=) "=" (number_literal) "1" (;) ";" (else_clause) "else\n a = -1;" (else) "else" (expression_statement) "a = -1;" (assignment_expression) "a = -1" (identifier) "a" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (}) "}" (return_statement) "return a;" (return) "return" (identifier) "a" (;) ";" (}) "}" (function_definition) "int main()\n{\n char str1[20] = "asdf";\n char str2[20] = "fdsa";\n\n printf("\n%d",StrCmp(str1, str2));\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n char str1[20] = "asdf";\n char str2[20] = "fdsa";\n\n printf("\n%d",StrCmp(str1, str2));\n\n return 0;\n}" ({) "{" (declaration) "char str1[20] = "asdf";" (primitive_type) "char" (init_declarator) "str1[20] = "asdf"" (array_declarator) "str1[20]" (identifier) "str1" ([) "[" (number_literal) "20" (]) "]" (=) "=" (string_literal) ""asdf"" (") """ (string_content) "asdf" (") """ (;) ";" (declaration) "char str2[20] = "fdsa";" (primitive_type) "char" (init_declarator) "str2[20] = "fdsa"" (array_declarator) "str2[20]" (identifier) "str2" ([) "[" (number_literal) "20" (]) "]" (=) "=" (string_literal) ""fdsa"" (") """ (string_content) "fdsa" (") """ (;) ";" (expression_statement) "printf("\n%d",StrCmp(str1, str2));" (call_expression) "printf("\n%d",StrCmp(str1, str2))" (identifier) "printf" (argument_list) "("\n%d",StrCmp(str1, str2))" (() "(" (string_literal) ""\n%d"" (") """ (escape_sequence) "\n" (string_content) "%d" (") """ (,) "," (call_expression) "StrCmp(str1, str2)" (identifier) "StrCmp" (argument_list) "(str1, str2)" (() "(" (identifier) "str1" (,) "," (identifier) "str2" ()) ")" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
268
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 16.43, "nodes": 164, "errors": 0, "source_hash": "d539ef2e320871f094c96b12bf923a122b1e1881d5d47e0a72d09922c5c95b40", "categorized_nodes": 114}, "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 StrLen(char *string)\n{\n\n int i;\n\n for (i = 0; string[i] != '\\0'; ++i);\n return i;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 10, "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": "StrLen(char *string)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 24}}, {"id": 9, "type": "identifier", "text": "StrLen", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 10}}, {"id": 10, "type": "parameter_list", "text": "(char *string)", "parent": 8, "children": [11], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 24}}, {"id": 11, "type": "parameter_declaration", "text": "char *string", "parent": 10, "children": [12, 13], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 23}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 15}}, {"id": 13, "type": "pointer_declarator", "text": "*string", "parent": 11, "children": [14, 15], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 23}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 17}}, {"id": 15, "type": "identifier", "text": "string", "parent": 13, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 23}}, {"id": 16, "type": "declaration", "text": "int i;", "parent": 6, "children": [17, 18], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 10}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 18, "type": "identifier", "text": "i", "parent": 16, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 9}}, {"id": 19, "type": "for_statement", "text": "for (i = 0; string[i] != '\\0'; ++i);", "parent": 6, "children": [20, 24, 33], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 40}}, {"id": 20, "type": "assignment_expression", "text": "i = 0", "parent": 19, "children": [21, 22, 23], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 14}}, {"id": 21, "type": "identifier", "text": "i", "parent": 20, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 10}}, {"id": 22, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 23, "type": "number_literal", "text": "0", "parent": 20, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 14}}, {"id": 24, "type": "binary_expression", "text": "string[i] != '\\0'", "parent": 19, "children": [25, 28, 29], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 33}}, {"id": 25, "type": "subscript_expression", "text": "string[i]", "parent": 24, "children": [26, 27], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 25}}, {"id": 26, "type": "identifier", "text": "string", "parent": 25, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 22}}, {"id": 27, "type": "identifier", "text": "i", "parent": 25, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 24}}, {"id": 28, "type": "!=", "text": "!=", "parent": 24, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 28}}, {"id": 29, "type": "char_literal", "text": "'\\0'", "parent": 24, "children": [30, 31, 32], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 33}}, {"id": 30, "type": "'", "text": "'", "parent": 29, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 30}}, {"id": 31, "type": "escape_sequence", "text": "\\0", "parent": 29, "children": [], "start_point": {"row": 8, "column": 30}, "end_point": {"row": 8, "column": 32}}, {"id": 32, "type": "'", "text": "'", "parent": 29, "children": [], "start_point": {"row": 8, "column": 32}, "end_point": {"row": 8, "column": 33}}, {"id": 33, "type": "update_expression", "text": "++i", "parent": 19, "children": [34, 35], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 38}}, {"id": 34, "type": "++", "text": "++", "parent": 33, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 37}}, {"id": 35, "type": "identifier", "text": "i", "parent": 33, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 38}}, {"id": 36, "type": "return_statement", "text": "return i;", "parent": 6, "children": [37], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 13}}, {"id": 37, "type": "identifier", "text": "i", "parent": 36, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 38, "type": "function_definition", "text": "int StrCmp(char *string1, char *string2)\n{\n\n int a, i, maior, x, y;\n\n a = 0;\n\n x = StrLen(string1);\n y = StrLen(string2);\n\n maior = x;\n if(maior < y)\n maior = y;\n\n for (i = 0; i < maior; ++i)\n {\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }\n return a;\n}", "parent": null, "children": [39, 40], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 3}}, {"id": 40, "type": "function_declarator", "text": "StrCmp(char *string1, char *string2)", "parent": 38, "children": [41, 42], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 40}}, {"id": 41, "type": "identifier", "text": "StrCmp", "parent": 40, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 42, "type": "parameter_list", "text": "(char *string1, char *string2)", "parent": 40, "children": [43, 48], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 40}}, {"id": 43, "type": "parameter_declaration", "text": "char *string1", "parent": 42, "children": [44, 45], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 24}}, {"id": 44, "type": "primitive_type", "text": "char", "parent": 43, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 45, "type": "pointer_declarator", "text": "*string1", "parent": 43, "children": [46, 47], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 24}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 47, "type": "identifier", "text": "string1", "parent": 45, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 24}}, {"id": 48, "type": "parameter_declaration", "text": "char *string2", "parent": 42, "children": [49, 50], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 39}}, {"id": 49, "type": "primitive_type", "text": "char", "parent": 48, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 30}}, {"id": 50, "type": "pointer_declarator", "text": "*string2", "parent": 48, "children": [51, 52], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 39}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 32}}, {"id": 52, "type": "identifier", "text": "string2", "parent": 50, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 39}}, {"id": 53, "type": "declaration", "text": "int a, i, maior, x, y;", "parent": 38, "children": [54, 55, 56, 57, 58, 59], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 26}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 7}}, {"id": 55, "type": "identifier", "text": "a", "parent": 53, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 56, "type": "identifier", "text": "i", "parent": 53, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 57, "type": "identifier", "text": "maior", "parent": 53, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 19}}, {"id": 58, "type": "identifier", "text": "x", "parent": 53, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 59, "type": "identifier", "text": "y", "parent": 53, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 25}}, {"id": 60, "type": "assignment_expression", "text": "a = 0", "parent": 38, "children": [61, 62, 63], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 9}}, {"id": 61, "type": "identifier", "text": "a", "parent": 60, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 5}}, {"id": 62, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 7}}, {"id": 63, "type": "number_literal", "text": "0", "parent": 60, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 64, "type": "assignment_expression", "text": "x = StrLen(string1)", "parent": 38, "children": [65, 66, 67], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 23}}, {"id": 65, "type": "identifier", "text": "x", "parent": 64, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 66, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 7}}, {"id": 67, "type": "call_expression", "text": "StrLen(string1)", "parent": 64, "children": [68, 69], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 23}}, {"id": 68, "type": "identifier", "text": "StrLen", "parent": 67, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 69, "type": "argument_list", "text": "(string1)", "parent": 67, "children": [70], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 23}}, {"id": 70, "type": "identifier", "text": "string1", "parent": 69, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 22}}, {"id": 71, "type": "assignment_expression", "text": "y = StrLen(string2)", "parent": 38, "children": [72, 73, 74], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 23}}, {"id": 72, "type": "identifier", "text": "y", "parent": 71, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 5}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 7}}, {"id": 74, "type": "call_expression", "text": "StrLen(string2)", "parent": 71, "children": [75, 76], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 23}}, {"id": 75, "type": "identifier", "text": "StrLen", "parent": 74, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 14}}, {"id": 76, "type": "argument_list", "text": "(string2)", "parent": 74, "children": [77], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 23}}, {"id": 77, "type": "identifier", "text": "string2", "parent": 76, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 22}}, {"id": 78, "type": "assignment_expression", "text": "maior = x", "parent": 38, "children": [79, 80, 81], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 13}}, {"id": 79, "type": "identifier", "text": "maior", "parent": 78, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 9}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 81, "type": "identifier", "text": "x", "parent": 78, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 82, "type": "if_statement", "text": "if(maior < y)\n maior = y;", "parent": 38, "children": [83], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 24, "column": 18}}, {"id": 83, "type": "parenthesized_expression", "text": "(maior < y)", "parent": 82, "children": [84], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 17}}, {"id": 84, "type": "binary_expression", "text": "maior < y", "parent": 83, "children": [85, 86, 87], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 16}}, {"id": 85, "type": "identifier", "text": "maior", "parent": 84, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 12}}, {"id": 86, "type": "<", "text": "<", "parent": 84, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 87, "type": "identifier", "text": "y", "parent": 84, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 88, "type": "assignment_expression", "text": "maior = y", "parent": 82, "children": [89, 90, 91], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 17}}, {"id": 89, "type": "identifier", "text": "maior", "parent": 88, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 13}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 91, "type": "identifier", "text": "y", "parent": 88, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 92, "type": "for_statement", "text": "for (i = 0; i < maior; ++i)\n {\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }", "parent": 38, "children": [93, 97, 101], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 36, "column": 5}}, {"id": 93, "type": "assignment_expression", "text": "i = 0", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 14}}, {"id": 94, "type": "identifier", "text": "i", "parent": 93, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 10}}, {"id": 95, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 12}}, {"id": 96, "type": "number_literal", "text": "0", "parent": 93, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 97, "type": "binary_expression", "text": "i < maior", "parent": 92, "children": [98, 99, 100], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 25}}, {"id": 98, "type": "identifier", "text": "i", "parent": 97, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 99, "type": "<", "text": "<", "parent": 97, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 19}}, {"id": 100, "type": "identifier", "text": "maior", "parent": 97, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 25}}, {"id": 101, "type": "update_expression", "text": "++i", "parent": 92, "children": [102, 103], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 30}}, {"id": 102, "type": "++", "text": "++", "parent": 101, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 29}}, {"id": 103, "type": "identifier", "text": "i", "parent": 101, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 30}}, {"id": 104, "type": "if_statement", "text": "if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }", "parent": 92, "children": [105], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 35, "column": 9}}, {"id": 105, "type": "parenthesized_expression", "text": "(string1[i] != string2[i])", "parent": 104, "children": [106], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 36}}, {"id": 106, "type": "binary_expression", "text": "string1[i] != string2[i]", "parent": 105, "children": [107, 110, 111], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 35}}, {"id": 107, "type": "subscript_expression", "text": "string1[i]", "parent": 106, "children": [108, 109], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 21}}, {"id": 108, "type": "identifier", "text": "string1", "parent": 107, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 18}}, {"id": 109, "type": "identifier", "text": "i", "parent": 107, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 110, "type": "!=", "text": "!=", "parent": 106, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 24}}, {"id": 111, "type": "subscript_expression", "text": "string2[i]", "parent": 106, "children": [112, 113], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 35}}, {"id": 112, "type": "identifier", "text": "string2", "parent": 111, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 32}}, {"id": 113, "type": "identifier", "text": "i", "parent": 111, "children": [], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 34}}, {"id": 114, "type": "if_statement", "text": "if(x > y)\n a = 1;\n else\n a = -1;", "parent": 104, "children": [115, 124], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 33, "column": 23}}, {"id": 115, "type": "parenthesized_expression", "text": "(x > y)", "parent": 114, "children": [116], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 21}}, {"id": 116, "type": "binary_expression", "text": "x > y", "parent": 115, "children": [117, 118, 119], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 20}}, {"id": 117, "type": "identifier", "text": "x", "parent": 116, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 16}}, {"id": 118, "type": ">", "text": ">", "parent": 116, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 18}}, {"id": 119, "type": "identifier", "text": "y", "parent": 116, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 20}}, {"id": 120, "type": "assignment_expression", "text": "a = 1", "parent": 114, "children": [121, 122, 123], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 21}}, {"id": 121, "type": "identifier", "text": "a", "parent": 120, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 122, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 19}}, {"id": 123, "type": "number_literal", "text": "1", "parent": 120, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 21}}, {"id": 124, "type": "else_clause", "text": "else\n a = -1;", "parent": 114, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 33, "column": 23}}, {"id": 125, "type": "assignment_expression", "text": "a = -1", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 22}}, {"id": 126, "type": "identifier", "text": "a", "parent": 125, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 17}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 19}}, {"id": 128, "type": "number_literal", "text": "-1", "parent": 125, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 22}}, {"id": 129, "type": "return_statement", "text": "return a;", "parent": 38, "children": [130], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 13}}, {"id": 130, "type": "identifier", "text": "a", "parent": 129, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 12}}, {"id": 131, "type": "function_definition", "text": "int main()\n{\n char str1[20] = \"asdf\";\n char str2[20] = \"fdsa\";\n\n printf(\"\\n%d\",StrCmp(str1, str2));\n\n return 0;\n}", "parent": null, "children": [132, 133], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 132, "type": "primitive_type", "text": "int", "parent": 131, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 3}}, {"id": 133, "type": "function_declarator", "text": "main()", "parent": 131, "children": [134, 135], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 10}}, {"id": 134, "type": "identifier", "text": "main", "parent": 133, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 8}}, {"id": 135, "type": "parameter_list", "text": "()", "parent": 133, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 10}}, {"id": 136, "type": "declaration", "text": "char str1[20] = \"asdf\";", "parent": 131, "children": [137, 138], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 27}}, {"id": 137, "type": "primitive_type", "text": "char", "parent": 136, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 138, "type": "init_declarator", "text": "str1[20] = \"asdf\"", "parent": 136, "children": [139, 142, 143], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 26}}, {"id": 139, "type": "array_declarator", "text": "str1[20]", "parent": 138, "children": [140, 141], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 17}}, {"id": 140, "type": "identifier", "text": "str1", "parent": 139, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 13}}, {"id": 141, "type": "number_literal", "text": "20", "parent": 139, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 16}}, {"id": 142, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 19}}, {"id": 143, "type": "string_literal", "text": "\"asdf\"", "parent": 138, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 26}}, {"id": 144, "type": "declaration", "text": "char str2[20] = \"fdsa\";", "parent": 131, "children": [145, 146], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 27}}, {"id": 145, "type": "primitive_type", "text": "char", "parent": 144, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 146, "type": "init_declarator", "text": "str2[20] = \"fdsa\"", "parent": 144, "children": [147, 150, 151], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 26}}, {"id": 147, "type": "array_declarator", "text": "str2[20]", "parent": 146, "children": [148, 149], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 17}}, {"id": 148, "type": "identifier", "text": "str2", "parent": 147, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 13}}, {"id": 149, "type": "number_literal", "text": "20", "parent": 147, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 16}}, {"id": 150, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 151, "type": "string_literal", "text": "\"fdsa\"", "parent": 146, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 26}}, {"id": 152, "type": "call_expression", "text": "printf(\"\\n%d\",StrCmp(str1, str2))", "parent": 131, "children": [153, 154], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 37}}, {"id": 153, "type": "identifier", "text": "printf", "parent": 152, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 10}}, {"id": 154, "type": "argument_list", "text": "(\"\\n%d\",StrCmp(str1, str2))", "parent": 152, "children": [155, 157], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 37}}, {"id": 155, "type": "string_literal", "text": "\"\\n%d\"", "parent": 154, "children": [156], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 17}}, {"id": 156, "type": "escape_sequence", "text": "\\n", "parent": 155, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 14}}, {"id": 157, "type": "call_expression", "text": "StrCmp(str1, str2)", "parent": 154, "children": [158, 159], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 36}}, {"id": 158, "type": "identifier", "text": "StrCmp", "parent": 157, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 24}}, {"id": 159, "type": "argument_list", "text": "(str1, str2)", "parent": 157, "children": [160, 161], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 36}}, {"id": 160, "type": "identifier", "text": "str1", "parent": 159, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 29}}, {"id": 161, "type": "identifier", "text": "str2", "parent": 159, "children": [], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 35}}, {"id": 162, "type": "return_statement", "text": "return 0;", "parent": 131, "children": [163], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 13}}, {"id": 163, "type": "number_literal", "text": "0", "parent": 162, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}]}, "node_categories": {"declarations": {"functions": [6, 8, 38, 40, 131, 133], "variables": [11, 16, 43, 48, 53, 136, 144], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [24, 25, 33, 67, 74, 83, 84, 97, 101, 105, 106, 107, 111, 115, 116, 152, 157], "assignments": [20, 60, 64, 71, 78, 88, 93, 120, 125], "loops": [19, 92], "conditionals": [9, 15, 18, 21, 26, 27, 35, 37, 41, 47, 52, 55, 56, 57, 58, 59, 61, 65, 68, 70, 72, 75, 77, 79, 81, 82, 85, 87, 89, 91, 94, 98, 100, 103, 104, 108, 109, 112, 113, 114, 117, 119, 121, 126, 130, 134, 140, 148, 153, 158, 160, 161], "returns": [36, 129, 162], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 23, 29, 63, 96, 123, 128, 141, 143, 149, 151, 155, 163], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "StrLen", "text_snippet": "int StrLen(char *string)\n{\n\n int i;\n\n for (i = 0; string[i] != '\\0'; ++i);\n return i;\n}"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "StrLen(char *string)"}, {"node_id": 38, "universal_type": "function", "name": "StrCmp", "text_snippet": "int StrCmp(char *string1, char *string2)\n{\n\n int a, i, maior, x, y;\n\n a = 0;\n\n x = StrLen(s"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "StrCmp(char *string1, char *string2)"}, {"node_id": 131, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n char str1[20] = \"asdf\";\n char str2[20] = \"fdsa\";\n\n printf(\"\\n%d\",StrCmp(str1,"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n\nint StrLen(char *string)\n{\n\n int i;\n\n for (i = 0; string[i] != '\\0'; ++i);\n return i;\n}\n\nint StrCmp(char *string1, char *string2)\n{\n\n int a, i, maior, x, y;\n\n a = 0;\n\n x = StrLen(string1);\n y = StrLen(string2);\n\n maior = x;\n if(maior < y)\n maior = y;\n\n for (i = 0; i < maior; ++i)\n {\n if(string1[i] != string2[i])\n {\n if(x > y)\n a = 1;\n else\n a = -1;\n\n }\n }\n return a;\n}\n\n\nint main()\n{\n char str1[20] = \"asdf\";\n char str2[20] = \"fdsa\";\n\n printf(\"\\n%d\",StrCmp(str1, str2));\n\n return 0;\n}\n"}
80,401
c
// // ASScreenRecorder.h // ScreenRecorder // // Created by <NAME> on 23/04/2014. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef void (^VideoCompletionBlock)(void); @protocol ASScreenRecorderDelegate; @interface ASScreenRecorder : NSObject @property (nonatomic, readonly) BOOL isRecording; /* *delegate is only required when implementing ASScreenRecorderDelegate - see below */ @property (nonatomic, weak) id <ASScreenRecorderDelegate> delegate; /** * if saveURL is nil, video will be saved into camera roll * this property can not be changed whilst recording is in progress */ @property (strong, nonatomic) NSURL *videoURL; @property (nonatomic, getter = isPaused) BOOL paused; /** * Default value is 60. * Set this property before calling -startRecording; */ @property (nonatomic) NSInteger fps; /** * Defaults to display scale (1:1 pixel recording). Set to 1 for scaled capture. * Must be set before calling -startRecording */ @property (nonatomic) CGFloat scale; /** * Defaults to a caluclated bit rate based on the capture pixel area. * Must be set before calling -startRecording */ @property (nonatomic) NSInteger bitrate; + (instancetype)sharedInstance; - (BOOL)startRecording; - (void)pauseRecording; - (void)resumeRecording; - (void)stopRecordingWithCompletion:(VideoCompletionBlock)completionBlock; @end // If your view contains an AVCaptureVideoPreviewLayer or an openGL view // you'll need to write that data into the CGContextRef yourself. // In the viewcontroller responsible for the AVCaptureVideoPreviewLayer / openGL view // set yourself as the delegate for ASScreenRecorder. // [ASScreenRecorder sharedInstance].delegate = self // Then implement 'writeBackgroundFrameInContext:(CGContextRef*)contextRef' // use 'CGContextDrawImage' to draw your view into the provided CGContextRef @protocol ASScreenRecorderDelegate <NSObject> - (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef; @end
35.44
55
(translation_unit) "//\n// ASScreenRecorder.h\n// ScreenRecorder\n//\n// Created by <NAME> on 23/04/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\ntypedef void (^VideoCompletionBlock)(void);\n@protocol ASScreenRecorderDelegate;\n\n@interface ASScreenRecorder : NSObject\n@property (nonatomic, readonly) BOOL isRecording;\n\n/*\n *delegate is only required when implementing ASScreenRecorderDelegate - see below\n */\n@property (nonatomic, weak) id <ASScreenRecorderDelegate> delegate;\n\n/**\n* if saveURL is nil, video will be saved into camera roll\n* this property can not be changed whilst recording is in progress\n*/\n@property (strong, nonatomic) NSURL *videoURL;\n\n@property (nonatomic, getter = isPaused) BOOL paused;\n\n/**\n * Default value is 60.\n * Set this property before calling -startRecording;\n */\n@property (nonatomic) NSInteger fps;\n\n/**\n * Defaults to display scale (1:1 pixel recording). Set to 1 for scaled capture.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) CGFloat scale;\n\n/**\n * Defaults to a caluclated bit rate based on the capture pixel area.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) NSInteger bitrate;\n\n+ (instancetype)sharedInstance;\n- (BOOL)startRecording;\n- (void)pauseRecording;\n- (void)resumeRecording;\n- (void)stopRecordingWithCompletion:(VideoCompletionBlock)completionBlock;\n\n@end\n\n\n// If your view contains an AVCaptureVideoPreviewLayer or an openGL view\n// you'll need to write that data into the CGContextRef yourself.\n// In the viewcontroller responsible for the AVCaptureVideoPreviewLayer / openGL view\n// set yourself as the delegate for ASScreenRecorder.\n// [ASScreenRecorder sharedInstance].delegate = self\n// Then implement 'writeBackgroundFrameInContext:(CGContextRef*)contextRef'\n// use 'CGContextDrawImage' to draw your view into the provided CGContextRef\n@protocol ASScreenRecorderDelegate <NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef;\n@end\n" (comment) "//" (comment) "// ASScreenRecorder.h" (comment) "// ScreenRecorder" (comment) "//" (comment) "// Created by <NAME> on 23/04/2014." (comment) "// Copyright (c) 2014 <NAME>. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (type_definition) "typedef void (^VideoCompletionBlock)(void);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(^VideoCompletionBlock)(void)" (parenthesized_declarator) "(^VideoCompletionBlock)" (() "(" (ERROR) "^" (^) "^" (type_identifier) "VideoCompletionBlock" ()) ")" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "protocol ASScreenRecorderDelegate;" (type_identifier) "protocol" (identifier) "ASScreenRecorderDelegate" (;) ";" (ERROR) "@interface ASScreenRecorder : NSObject\n@property (nonatomic, readonly) BOOL isRecording;\n\n/*\n *delegate is only required when implementing ASScreenRecorderDelegate - see below\n */\n@property (nonatomic, weak) id <ASScreenRecorderDelegate> delegate;\n\n/**\n* if saveURL is nil, video will be saved into camera roll\n* this property can not be changed whilst recording is in progress\n*/\n@property (strong, nonatomic) NSURL *videoURL;\n\n@property (nonatomic, getter = isPaused) BOOL paused;\n\n/**\n * Default value is 60.\n * Set this property before calling -startRecording;\n */\n@property (nonatomic) NSInteger fps;\n\n/**\n * Defaults to display scale (1:1 pixel recording). Set to 1 for scaled capture.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) CGFloat scale;\n\n/**\n * Defaults to a caluclated bit rate based on the capture pixel area.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) NSInteger bitrate;\n\n+ (instancetype)sharedInstance;\n- (BOOL)startRecording;\n- (void)pauseRecording;\n- (void)resumeRecording;\n- (void)stopRecordingWithCompletion:(VideoCompletionBlock)completionBlock;\n\n@end\n\n\n// If your view contains an AVCaptureVideoPreviewLayer or an openGL view\n// you'll need to write that data into the CGContextRef yourself.\n// In the viewcontroller responsible for the AVCaptureVideoPreviewLayer / openGL view\n// set yourself as the delegate for ASScreenRecorder.\n// [ASScreenRecorder sharedInstance].delegate = self\n// Then implement 'writeBackgroundFrameInContext:(CGContextRef*)contextRef'\n// use 'CGContextDrawImage' to draw your view into the provided CGContextRef\n@protocol ASScreenRecorderDelegate <NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef;\n@end" (ERROR) "@" (type_identifier) "interface" (function_declarator) "ASScreenRecorder : NSObject\n@property (nonatomic, readonly)" (identifier) "ASScreenRecorder" (ERROR) ": NSObject\n@property" (:) ":" (identifier) "NSObject" (ERROR) "@" (identifier) "property" (parameter_list) "(nonatomic, readonly)" (() "(" (identifier) "nonatomic" (,) "," (identifier) "readonly" ()) ")" (declaration) "BOOL isRecording;" (type_identifier) "BOOL" (identifier) "isRecording" (;) ";" (comment) "/*\n *delegate is only required when implementing ASScreenRecorderDelegate - see below\n */" (ERROR) "@" (ERROR) "@" (declaration) "property (nonatomic, weak) id <ASScreenRecorderDelegate> delegate;" (macro_type_specifier) "property (nonatomic, weak)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" (ERROR) ", weak" (,) "," (identifier) "weak" ()) ")" (ERROR) "id <ASScreenRecorderDelegate>" (identifier) "id" (<) "<" (identifier) "ASScreenRecorderDelegate" (>) ">" (identifier) "delegate" (;) ";" (comment) "/**\n* if saveURL is nil, video will be saved into camera roll\n* this property can not be changed whilst recording is in progress\n*/" (ERROR) "@" (ERROR) "@" (declaration) "property (strong, nonatomic) NSURL *videoURL;" (macro_type_specifier) "property (strong, nonatomic)" (identifier) "property" (() "(" (ERROR) "strong," (type_descriptor) "strong" (type_identifier) "strong" (,) "," (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "NSURL" (identifier) "NSURL" (pointer_declarator) "*videoURL" (*) "*" (identifier) "videoURL" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property (nonatomic, getter = isPaused) BOOL paused;" (macro_type_specifier) "property (nonatomic, getter = isPaused)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" (ERROR) ", getter = isPaused" (,) "," (identifier) "getter" (=) "=" (identifier) "isPaused" ()) ")" (ERROR) "BOOL" (identifier) "BOOL" (identifier) "paused" (;) ";" (comment) "/**\n * Default value is 60.\n * Set this property before calling -startRecording;\n */" (ERROR) "@" (ERROR) "@" (declaration) "property (nonatomic) NSInteger fps;" (macro_type_specifier) "property (nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "NSInteger" (ERROR) "fps" (identifier) "fps" (;) ";" (comment) "/**\n * Defaults to display scale (1:1 pixel recording). Set to 1 for scaled capture.\n * Must be set before calling -startRecording\n */" (ERROR) "@" (ERROR) "@" (declaration) "property (nonatomic) CGFloat scale;" (macro_type_specifier) "property (nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "CGFloat" (ERROR) "scale" (identifier) "scale" (;) ";" (comment) "/**\n * Defaults to a caluclated bit rate based on the capture pixel area.\n * Must be set before calling -startRecording\n */" (ERROR) "@" (ERROR) "@" (declaration) "property (nonatomic) NSInteger bitrate;" (macro_type_specifier) "property (nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "NSInteger" (ERROR) "bitrate" (identifier) "bitrate" (;) ";" (ERROR) "+ (" (+) "+" (() "(" (declaration) "instancetype)sharedInstance;" (type_identifier) "instancetype" (ERROR) ")" ()) ")" (identifier) "sharedInstance" (;) ";" (ERROR) "- (" (-) "-" (() "(" (declaration) "BOOL)startRecording;" (type_identifier) "BOOL" (ERROR) ")" ()) ")" (identifier) "startRecording" (;) ";" (ERROR) "- (" (-) "-" (() "(" (declaration) "void)pauseRecording;" (primitive_type) "void" (ERROR) ")" ()) ")" (identifier) "pauseRecording" (;) ";" (ERROR) "- (" (-) "-" (() "(" (declaration) "void)resumeRecording;" (primitive_type) "void" (ERROR) ")" ()) ")" (identifier) "resumeRecording" (;) ";" (ERROR) "- (" (-) "-" (() "(" (declaration) "void)stopRecordingWithCompletion:(VideoCompletionBlock)completionBlock;" (primitive_type) "void" (ERROR) ")stopRecordingWithCompletion:(VideoCompletionBlock)" ()) ")" (identifier) "stopRecordingWithCompletion" (:) ":" (() "(" (identifier) "VideoCompletionBlock" ()) ")" (identifier) "completionBlock" (;) ";" (ERROR) "@" (ERROR) "@" (type_identifier) "end" (comment) "// If your view contains an AVCaptureVideoPreviewLayer or an openGL view" (comment) "// you'll need to write that data into the CGContextRef yourself." (comment) "// In the viewcontroller responsible for the AVCaptureVideoPreviewLayer / openGL view" (comment) "// set yourself as the delegate for ASScreenRecorder." (comment) "// [ASScreenRecorder sharedInstance].delegate = self" (comment) "// Then implement 'writeBackgroundFrameInContext:(CGContextRef*)contextRef'" (comment) "// use 'CGContextDrawImage' to draw your view into the provided CGContextRef" (ERROR) "@protocol ASScreenRecorderDelegate <NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef;\n@" (ERROR) "@" (identifier) "protocol" (identifier) "ASScreenRecorderDelegate" (<) "<" (function_declarator) "NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef" (identifier) "NSObject" (ERROR) ">\n-" (>) ">" (-) "-" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "writeBackgroundFrameInContext" (ERROR) ":(" (:) ":" (() "(" (identifier) "CGContextRef" (ERROR) "*)" (*) "*" ()) ")" (identifier) "contextRef" (;) ";" (ERROR) "@" (identifier) "end"
243
46
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 35.44, "nodes": 161, "errors": 0, "source_hash": "a66f629f4d7653d433098846b6aedfe2a326ec6687068284b39cc9cbeadb6bf8", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.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": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "#import <UIKit/UIKit.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "<UIKit/UIKit.h>", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 6, "type": "type_definition", "text": "typedef void (^VideoCompletionBlock)(void);", "parent": null, "children": [7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 43}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 8, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 12}}, {"id": 9, "type": "function_declarator", "text": "(^VideoCompletionBlock)(void)", "parent": 6, "children": [10, 14], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 42}}, {"id": 10, "type": "parenthesized_declarator", "text": "(^VideoCompletionBlock)", "parent": 9, "children": [11, 13], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 36}}, {"id": 11, "type": "ERROR", "text": "^", "parent": 10, "children": [12], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 12, "type": "^", "text": "^", "parent": 11, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 13, "type": "type_identifier", "text": "VideoCompletionBlock", "parent": 10, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 35}}, {"id": 14, "type": "parameter_list", "text": "(void)", "parent": 9, "children": [15], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 42}}, {"id": 15, "type": "parameter_declaration", "text": "void", "parent": 14, "children": [16], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 41}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 41}}, {"id": 17, "type": "ERROR", "text": "@", "parent": null, "children": [18], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 18, "type": "ERROR", "text": "@", "parent": 17, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 19, "type": "declaration", "text": "protocol ASScreenRecorderDelegate;", "parent": null, "children": [20, 21], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 35}}, {"id": 20, "type": "type_identifier", "text": "protocol", "parent": 19, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 9}}, {"id": 21, "type": "identifier", "text": "ASScreenRecorderDelegate", "parent": 19, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 34}}, {"id": 22, "type": "ERROR", "text": "@interface ASScreenRecorder : NSObject\n@property (nonatomic, readonly) BOOL isRecording;\n\n/*\n *delegate is only required when implementing ASScreenRecorderDelegate - see below\n */\n@property (nonatomic, weak) id <ASScreenRecorderDelegate> delegate;\n\n/**\n* if saveURL is nil, video will be saved into camera roll\n* this property can not be changed whilst recording is in progress\n*/\n@property (strong, nonatomic) NSURL *videoURL;\n\n@property (nonatomic, getter = isPaused) BOOL paused;\n\n/**\n * Default value is 60.\n * Set this property before calling -startRecording;\n */\n@property (nonatomic) NSInteger fps;\n\n/**\n * Defaults to display scale (1:1 pixel recording). Set to 1 for scaled capture.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) CGFloat scale;\n\n/**\n * Defaults to a caluclated bit rate based on the capture pixel area.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) NSInteger bitrate;\n\n+ (instancetype)sharedInstance;\n- (BOOL)startRecording;\n- (void)pauseRecording;\n- (void)resumeRecording;\n- (void)stopRecordingWithCompletion:(VideoCompletionBlock)completionBlock;\n\n@end\n\n\n// If your view contains an AVCaptureVideoPreviewLayer or an openGL view\n// you'll need to write that data into the CGContextRef yourself.\n// In the viewcontroller responsible for the AVCaptureVideoPreviewLayer / openGL view\n// set yourself as the delegate for ASScreenRecorder.\n// [ASScreenRecorder sharedInstance].delegate = self\n// Then implement 'writeBackgroundFrameInContext:(CGContextRef*)contextRef'\n// use 'CGContextDrawImage' to draw your view into the provided CGContextRef\n@protocol ASScreenRecorderDelegate <NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef;\n@end", "parent": null, "children": [23, 24, 25, 34, 37, 39, 52, 54, 67, 69, 81, 83, 91, 93, 101, 103, 111, 113, 116, 118, 121, 123, 126, 128, 131, 133, 139, 141], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 65, "column": 4}}, {"id": 23, "type": "ERROR", "text": "@", "parent": 22, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 24, "type": "type_identifier", "text": "interface", "parent": 22, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 25, "type": "function_declarator", "text": "ASScreenRecorder : NSObject\n@property (nonatomic, readonly)", "parent": 22, "children": [26, 27, 31], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 14, "column": 31}}, {"id": 26, "type": "identifier", "text": "ASScreenRecorder", "parent": 25, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 27}}, {"id": 27, "type": "ERROR", "text": ": NSObject\n@property", "parent": 25, "children": [28, 29, 30], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 14, "column": 9}}, {"id": 28, "type": "identifier", "text": "NSObject", "parent": 27, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 38}}, {"id": 29, "type": "ERROR", "text": "@", "parent": 27, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 30, "type": "identifier", "text": "property", "parent": 27, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 31, "type": "parameter_list", "text": "(nonatomic, readonly)", "parent": 25, "children": [32, 33], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 31}}, {"id": 32, "type": "identifier", "text": "nonatomic", "parent": 31, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 33, "type": "identifier", "text": "readonly", "parent": 31, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 30}}, {"id": 34, "type": "declaration", "text": "BOOL isRecording;", "parent": 22, "children": [35, 36], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 49}}, {"id": 35, "type": "type_identifier", "text": "BOOL", "parent": 34, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 36}}, {"id": 36, "type": "identifier", "text": "isRecording", "parent": 34, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 48}}, {"id": 37, "type": "ERROR", "text": "@", "parent": 22, "children": [38], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 38, "type": "ERROR", "text": "@", "parent": 37, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 39, "type": "declaration", "text": "property (nonatomic, weak) id <ASScreenRecorderDelegate> delegate;", "parent": 22, "children": [40, 46, 51], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 67}}, {"id": 40, "type": "macro_type_specifier", "text": "property (nonatomic, weak)", "parent": 39, "children": [41, 42, 44], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 27}}, {"id": 41, "type": "identifier", "text": "property", "parent": 40, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 42, "type": "type_descriptor", "text": "nonatomic", "parent": 40, "children": [43], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 20}}, {"id": 43, "type": "type_identifier", "text": "nonatomic", "parent": 42, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 20}}, {"id": 44, "type": "ERROR", "text": ", weak", "parent": 40, "children": [45], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 26}}, {"id": 45, "type": "identifier", "text": "weak", "parent": 44, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 26}}, {"id": 46, "type": "ERROR", "text": "id <ASScreenRecorderDelegate>", "parent": 39, "children": [47, 48, 49, 50], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 57}}, {"id": 47, "type": "identifier", "text": "id", "parent": 46, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 30}}, {"id": 48, "type": "<", "text": "<", "parent": 46, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 32}}, {"id": 49, "type": "identifier", "text": "ASScreenRecorderDelegate", "parent": 46, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 56}}, {"id": 50, "type": ">", "text": ">", "parent": 46, "children": [], "start_point": {"row": 19, "column": 56}, "end_point": {"row": 19, "column": 57}}, {"id": 51, "type": "identifier", "text": "delegate", "parent": 39, "children": [], "start_point": {"row": 19, "column": 58}, "end_point": {"row": 19, "column": 66}}, {"id": 52, "type": "ERROR", "text": "@", "parent": 22, "children": [53], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 53, "type": "ERROR", "text": "@", "parent": 52, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 54, "type": "declaration", "text": "property (strong, nonatomic) NSURL *videoURL;", "parent": 22, "children": [55, 62, 64], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 46}}, {"id": 55, "type": "macro_type_specifier", "text": "property (strong, nonatomic)", "parent": 54, "children": [56, 57, 60], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 29}}, {"id": 56, "type": "identifier", "text": "property", "parent": 55, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 57, "type": "ERROR", "text": "strong,", "parent": 55, "children": [58], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 18}}, {"id": 58, "type": "type_descriptor", "text": "strong", "parent": 57, "children": [59], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 17}}, {"id": 59, "type": "type_identifier", "text": "strong", "parent": 58, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 17}}, {"id": 60, "type": "type_descriptor", "text": "nonatomic", "parent": 55, "children": [61], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 28}}, {"id": 61, "type": "type_identifier", "text": "nonatomic", "parent": 60, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 28}}, {"id": 62, "type": "ERROR", "text": "NSURL", "parent": 54, "children": [63], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 35}}, {"id": 63, "type": "identifier", "text": "NSURL", "parent": 62, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 35}}, {"id": 64, "type": "pointer_declarator", "text": "*videoURL", "parent": 54, "children": [65, 66], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 45}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 37}}, {"id": 66, "type": "identifier", "text": "videoURL", "parent": 64, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 45}}, {"id": 67, "type": "ERROR", "text": "@", "parent": 22, "children": [68], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 68, "type": "ERROR", "text": "@", "parent": 67, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 69, "type": "declaration", "text": "property (nonatomic, getter = isPaused) BOOL paused;", "parent": 22, "children": [70, 78, 80], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 53}}, {"id": 70, "type": "macro_type_specifier", "text": "property (nonatomic, getter = isPaused)", "parent": 69, "children": [71, 72, 74], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 40}}, {"id": 71, "type": "identifier", "text": "property", "parent": 70, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 72, "type": "type_descriptor", "text": "nonatomic", "parent": 70, "children": [73], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 20}}, {"id": 73, "type": "type_identifier", "text": "nonatomic", "parent": 72, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 20}}, {"id": 74, "type": "ERROR", "text": ", getter = isPaused", "parent": 70, "children": [75, 76, 77], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 39}}, {"id": 75, "type": "identifier", "text": "getter", "parent": 74, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 28}}, {"id": 76, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 30}}, {"id": 77, "type": "identifier", "text": "isPaused", "parent": 74, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 39}}, {"id": 78, "type": "ERROR", "text": "BOOL", "parent": 69, "children": [79], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 45}}, {"id": 79, "type": "identifier", "text": "BOOL", "parent": 78, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 45}}, {"id": 80, "type": "identifier", "text": "paused", "parent": 69, "children": [], "start_point": {"row": 27, "column": 46}, "end_point": {"row": 27, "column": 52}}, {"id": 81, "type": "ERROR", "text": "@", "parent": 22, "children": [82], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 82, "type": "ERROR", "text": "@", "parent": 81, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 83, "type": "declaration", "text": "property (nonatomic) NSInteger fps;", "parent": 22, "children": [84, 88, 89], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 36}}, {"id": 84, "type": "macro_type_specifier", "text": "property (nonatomic)", "parent": 83, "children": [85, 86], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 21}}, {"id": 85, "type": "identifier", "text": "property", "parent": 84, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 86, "type": "type_descriptor", "text": "nonatomic", "parent": 84, "children": [87], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 20}}, {"id": 87, "type": "type_identifier", "text": "nonatomic", "parent": 86, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 20}}, {"id": 88, "type": "identifier", "text": "NSInteger", "parent": 83, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 31}}, {"id": 89, "type": "ERROR", "text": "fps", "parent": 83, "children": [90], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 35}}, {"id": 90, "type": "identifier", "text": "fps", "parent": 89, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 35}}, {"id": 91, "type": "ERROR", "text": "@", "parent": 22, "children": [92], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 92, "type": "ERROR", "text": "@", "parent": 91, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 93, "type": "declaration", "text": "property (nonatomic) CGFloat scale;", "parent": 22, "children": [94, 98, 99], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 36}}, {"id": 94, "type": "macro_type_specifier", "text": "property (nonatomic)", "parent": 93, "children": [95, 96], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 21}}, {"id": 95, "type": "identifier", "text": "property", "parent": 94, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 9}}, {"id": 96, "type": "type_descriptor", "text": "nonatomic", "parent": 94, "children": [97], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 20}}, {"id": 97, "type": "type_identifier", "text": "nonatomic", "parent": 96, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 20}}, {"id": 98, "type": "identifier", "text": "CGFloat", "parent": 93, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 29}}, {"id": 99, "type": "ERROR", "text": "scale", "parent": 93, "children": [100], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 35}}, {"id": 100, "type": "identifier", "text": "scale", "parent": 99, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 35}}, {"id": 101, "type": "ERROR", "text": "@", "parent": 22, "children": [102], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 102, "type": "ERROR", "text": "@", "parent": 101, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 103, "type": "declaration", "text": "property (nonatomic) NSInteger bitrate;", "parent": 22, "children": [104, 108, 109], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 40}}, {"id": 104, "type": "macro_type_specifier", "text": "property (nonatomic)", "parent": 103, "children": [105, 106], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 21}}, {"id": 105, "type": "identifier", "text": "property", "parent": 104, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 9}}, {"id": 106, "type": "type_descriptor", "text": "nonatomic", "parent": 104, "children": [107], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 20}}, {"id": 107, "type": "type_identifier", "text": "nonatomic", "parent": 106, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 20}}, {"id": 108, "type": "identifier", "text": "NSInteger", "parent": 103, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 31}}, {"id": 109, "type": "ERROR", "text": "bitrate", "parent": 103, "children": [110], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 39}}, {"id": 110, "type": "identifier", "text": "bitrate", "parent": 109, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 39}}, {"id": 111, "type": "ERROR", "text": "+ (", "parent": 22, "children": [112], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 3}}, {"id": 112, "type": "+", "text": "+", "parent": 111, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 113, "type": "declaration", "text": "instancetype)sharedInstance;", "parent": 22, "children": [114, 115], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 31}}, {"id": 114, "type": "type_identifier", "text": "instancetype", "parent": 113, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 15}}, {"id": 115, "type": "identifier", "text": "sharedInstance", "parent": 113, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 30}}, {"id": 116, "type": "ERROR", "text": "- (", "parent": 22, "children": [117], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 3}}, {"id": 117, "type": "-", "text": "-", "parent": 116, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 118, "type": "declaration", "text": "BOOL)startRecording;", "parent": 22, "children": [119, 120], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 23}}, {"id": 119, "type": "type_identifier", "text": "BOOL", "parent": 118, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 7}}, {"id": 120, "type": "identifier", "text": "startRecording", "parent": 118, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 22}}, {"id": 121, "type": "ERROR", "text": "- (", "parent": 22, "children": [122], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 122, "type": "-", "text": "-", "parent": 121, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 123, "type": "declaration", "text": "void)pauseRecording;", "parent": 22, "children": [124, 125], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 23}}, {"id": 124, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 7}}, {"id": 125, "type": "identifier", "text": "pauseRecording", "parent": 123, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 22}}, {"id": 126, "type": "ERROR", "text": "- (", "parent": 22, "children": [127], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 3}}, {"id": 127, "type": "-", "text": "-", "parent": 126, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 128, "type": "declaration", "text": "void)resumeRecording;", "parent": 22, "children": [129, 130], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 24}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 7}}, {"id": 130, "type": "identifier", "text": "resumeRecording", "parent": 128, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 23}}, {"id": 131, "type": "ERROR", "text": "- (", "parent": 22, "children": [132], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 3}}, {"id": 132, "type": "-", "text": "-", "parent": 131, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 133, "type": "declaration", "text": "void)stopRecordingWithCompletion:(VideoCompletionBlock)completionBlock;", "parent": 22, "children": [134, 135, 138], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 74}}, {"id": 134, "type": "primitive_type", "text": "void", "parent": 133, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 135, "type": "ERROR", "text": ")stopRecordingWithCompletion:(VideoCompletionBlock)", "parent": 133, "children": [136, 137], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 58}}, {"id": 136, "type": "identifier", "text": "stopRecordingWithCompletion", "parent": 135, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 35}}, {"id": 137, "type": "identifier", "text": "VideoCompletionBlock", "parent": 135, "children": [], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 57}}, {"id": 138, "type": "identifier", "text": "completionBlock", "parent": 133, "children": [], "start_point": {"row": 51, "column": 58}, "end_point": {"row": 51, "column": 73}}, {"id": 139, "type": "ERROR", "text": "@", "parent": 22, "children": [140], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 140, "type": "ERROR", "text": "@", "parent": 139, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 141, "type": "ERROR", "text": "@protocol ASScreenRecorderDelegate <NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef;\n@", "parent": 22, "children": [142, 143, 144, 145, 146, 160], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 142, "type": "ERROR", "text": "@", "parent": 141, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 143, "type": "identifier", "text": "protocol", "parent": 141, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 9}}, {"id": 144, "type": "identifier", "text": "ASScreenRecorderDelegate", "parent": 141, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 34}}, {"id": 145, "type": "<", "text": "<", "parent": 141, "children": [], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 36}}, {"id": 146, "type": "function_declarator", "text": "NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef", "parent": 141, "children": [147, 148, 151, 154, 155, 156, 157, 159], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 64, "column": 63}}, {"id": 147, "type": "identifier", "text": "NSObject", "parent": 146, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 44}}, {"id": 148, "type": "ERROR", "text": ">\n-", "parent": 146, "children": [149, 150], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 64, "column": 1}}, {"id": 149, "type": ">", "text": ">", "parent": 148, "children": [], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 45}}, {"id": 150, "type": "-", "text": "-", "parent": 148, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 151, "type": "parameter_list", "text": "(void)", "parent": 146, "children": [152], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 8}}, {"id": 152, "type": "parameter_declaration", "text": "void", "parent": 151, "children": [153], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 153, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 154, "type": "identifier", "text": "writeBackgroundFrameInContext", "parent": 146, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 37}}, {"id": 155, "type": "ERROR", "text": ":(", "parent": 146, "children": [], "start_point": {"row": 64, "column": 37}, "end_point": {"row": 64, "column": 39}}, {"id": 156, "type": "identifier", "text": "CGContextRef", "parent": 146, "children": [], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 51}}, {"id": 157, "type": "ERROR", "text": "*)", "parent": 146, "children": [158], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 53}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 52}}, {"id": 159, "type": "identifier", "text": "contextRef", "parent": 146, "children": [], "start_point": {"row": 64, "column": 53}, "end_point": {"row": 64, "column": 63}}, {"id": 160, "type": "ERROR", "text": "@", "parent": 141, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 1}}]}, "node_categories": {"declarations": {"functions": [9, 25, 146], "variables": [6, 15, 19, 34, 39, 54, 69, 83, 93, 103, 113, 118, 123, 128, 133, 152], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [13, 20, 21, 24, 26, 28, 30, 32, 33, 35, 36, 40, 41, 43, 45, 47, 49, 51, 55, 56, 59, 61, 63, 66, 70, 71, 73, 75, 77, 79, 80, 84, 85, 87, 88, 90, 94, 95, 97, 98, 100, 104, 105, 107, 108, 110, 114, 115, 119, 120, 125, 130, 136, 137, 138, 143, 144, 147, 154, 156, 159], "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": "(^VideoCompletionBlock)(void)"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "ASScreenRecorder : NSObject\n@property (nonatomic, readonly)"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ASScreenRecorder.h\n// ScreenRecorder\n//\n// Created by <NAME> on 23/04/2014.\n// Copyright (c) 2014 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\ntypedef void (^VideoCompletionBlock)(void);\n@protocol ASScreenRecorderDelegate;\n\n@interface ASScreenRecorder : NSObject\n@property (nonatomic, readonly) BOOL isRecording;\n\n/*\n *delegate is only required when implementing ASScreenRecorderDelegate - see below\n */\n@property (nonatomic, weak) id <ASScreenRecorderDelegate> delegate;\n\n/**\n* if saveURL is nil, video will be saved into camera roll\n* this property can not be changed whilst recording is in progress\n*/\n@property (strong, nonatomic) NSURL *videoURL;\n\n@property (nonatomic, getter = isPaused) BOOL paused;\n\n/**\n * Default value is 60.\n * Set this property before calling -startRecording;\n */\n@property (nonatomic) NSInteger fps;\n\n/**\n * Defaults to display scale (1:1 pixel recording). Set to 1 for scaled capture.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) CGFloat scale;\n\n/**\n * Defaults to a caluclated bit rate based on the capture pixel area.\n * Must be set before calling -startRecording\n */\n@property (nonatomic) NSInteger bitrate;\n\n+ (instancetype)sharedInstance;\n- (BOOL)startRecording;\n- (void)pauseRecording;\n- (void)resumeRecording;\n- (void)stopRecordingWithCompletion:(VideoCompletionBlock)completionBlock;\n\n@end\n\n\n// If your view contains an AVCaptureVideoPreviewLayer or an openGL view\n// you'll need to write that data into the CGContextRef yourself.\n// In the viewcontroller responsible for the AVCaptureVideoPreviewLayer / openGL view\n// set yourself as the delegate for ASScreenRecorder.\n// [ASScreenRecorder sharedInstance].delegate = self\n// Then implement 'writeBackgroundFrameInContext:(CGContextRef*)contextRef'\n// use 'CGContextDrawImage' to draw your view into the provided CGContextRef\n@protocol ASScreenRecorderDelegate <NSObject>\n- (void)writeBackgroundFrameInContext:(CGContextRef*)contextRef;\n@end\n"}
80,402
c
#ifndef ARK_CORE_UTIL_SHARED_PTR_UTIL_H_ #define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_ #include "core/base/delegate.h" #include "core/types/shared_ptr.h" namespace ark { class SharedPtrUtil { public: template<typename T, typename U> static sp<T> as(const sp<U>& ptr) { const sp<T> directConvertedPtr = ptr.template as<T>(); if(directConvertedPtr) return directConvertedPtr; const auto delegatePtr = ptr.template as<Delegate<T>>(); if(delegatePtr) return delegatePtr->delegate(); return nullptr; } }; } #endif
29.32
19
(translation_unit) "#ifndef ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n#define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n\n#include "core/base/delegate.h"\n#include "core/types/shared_ptr.h"\n\nnamespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n};\n\n}\n\n#endif\n" (preproc_ifdef) "#ifndef ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n#define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n\n#include "core/base/delegate.h"\n#include "core/types/shared_ptr.h"\n\nnamespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n};\n\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "ARK_CORE_UTIL_SHARED_PTR_UTIL_H_" (preproc_def) "#define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n" (#define) "#define" (identifier) "ARK_CORE_UTIL_SHARED_PTR_UTIL_H_" (preproc_include) "#include "core/base/delegate.h"\n" (#include) "#include" (string_literal) ""core/base/delegate.h"" (") """ (string_content) "core/base/delegate.h" (") """ (preproc_include) "#include "core/types/shared_ptr.h"\n" (#include) "#include" (string_literal) ""core/types/shared_ptr.h"" (") """ (string_content) "core/types/shared_ptr.h" (") """ (function_definition) "namespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n};\n\n}" (type_identifier) "namespace" (identifier) "ark" (compound_statement) "{\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n};\n\n}" ({) "{" (function_definition) "class SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n}" (type_identifier) "class" (identifier) "SharedPtrUtil" (compound_statement) "{\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n}" ({) "{" (labeled_statement) "public:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr)" (statement_identifier) "public" (:) ":" (expression_statement) "template<typename T, typename U> static sp<T> as(const sp<U>& ptr)" (comma_expression) "template<typename T, typename U> static sp<T> as(const sp<U>& ptr)" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (,) "," (binary_expression) "typename U> static sp<T> as(const sp<U>& ptr)" (binary_expression) "typename U> static sp<T" (binary_expression) "typename U> static" (identifier) "typename" (ERROR) "U" (identifier) "U" (>) ">" (identifier) "static" (ERROR) "sp" (identifier) "sp" (<) "<" (identifier) "T" (>) ">" (call_expression) "as(const sp<U>& ptr)" (identifier) "as" (argument_list) "(const sp<U>& ptr)" (() "(" (binary_expression) "const sp<U>& ptr" (binary_expression) "const sp<U" (identifier) "const" (ERROR) "sp" (identifier) "sp" (<) "<" (identifier) "U" (>) ">" (pointer_expression) "& ptr" (&) "&" (identifier) "ptr" ()) ")" (;) "" (compound_statement) "{\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }" ({) "{" (declaration) "const sp<T> directConvertedPtr = ptr.template as<T>();" (type_qualifier) "const" (const) "const" (type_identifier) "sp" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (init_declarator) "directConvertedPtr = ptr.template as<T>()" (identifier) "directConvertedPtr" (=) "=" (binary_expression) "ptr.template as<T>()" (binary_expression) "ptr.template as<T" (field_expression) "ptr.template" (identifier) "ptr" (.) "." (field_identifier) "template" (ERROR) "as" (identifier) "as" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (;) ";" (if_statement) "if(directConvertedPtr)\n return directConvertedPtr;" (if) "if" (parenthesized_expression) "(directConvertedPtr)" (() "(" (identifier) "directConvertedPtr" ()) ")" (return_statement) "return directConvertedPtr;" (return) "return" (identifier) "directConvertedPtr" (;) ";" (declaration) "const auto delegatePtr = ptr.template as<Delegate<T>>();" (type_qualifier) "const" (const) "const" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "delegatePtr" (init_declarator) " = ptr.template as<Delegate<T>>()" (identifier) "" (=) "=" (binary_expression) "ptr.template as<Delegate<T>>()" (binary_expression) "ptr.template as<Delegate" (field_expression) "ptr.template" (identifier) "ptr" (.) "." (field_identifier) "template" (ERROR) "as" (identifier) "as" (<) "<" (identifier) "Delegate" (<) "<" (binary_expression) "T>>()" (identifier) "T" (>>) ">>" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" (;) ";" (if_statement) "if(delegatePtr)\n return delegatePtr->delegate();" (if) "if" (parenthesized_expression) "(delegatePtr)" (() "(" (identifier) "delegatePtr" ()) ")" (return_statement) "return delegatePtr->delegate();" (return) "return" (call_expression) "delegatePtr->delegate()" (field_expression) "delegatePtr->delegate" (identifier) "delegatePtr" (->) "->" (field_identifier) "delegate" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif"
166
7
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.32, "nodes": 105, "errors": 0, "source_hash": "194477cc17cc165ba5794802a83c0c698c29b0c1c91157a657f30b61323b1cf4", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n#define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n\n#include \"core/base/delegate.h\"\n#include \"core/types/shared_ptr.h\"\n\nnamespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n};\n\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 104], "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": "ARK_CORE_UTIL_SHARED_PTR_UTIL_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 40}}, {"id": 3, "type": "preproc_def", "text": "#define ARK_CORE_UTIL_SHARED_PTR_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": "ARK_CORE_UTIL_SHARED_PTR_UTIL_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 40}}, {"id": 6, "type": "preproc_include", "text": "#include \"core/base/delegate.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": "\"core/base/delegate.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 31}}, {"id": 9, "type": "preproc_include", "text": "#include \"core/types/shared_ptr.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": "\"core/types/shared_ptr.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 34}}, {"id": 12, "type": "function_definition", "text": "namespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n};\n\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 14, "type": "identifier", "text": "ark", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 13}}, {"id": 15, "type": "function_definition", "text": "class SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n}", "parent": 12, "children": [16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 16, "type": "identifier", "text": "SharedPtrUtil", "parent": 15, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 19}}, {"id": 17, "type": "labeled_statement", "text": "public:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr)", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 70}}, {"id": 18, "type": "comma_expression", "text": "template<typename T, typename U> static sp<T> as(const sp<U>& ptr)", "parent": 17, "children": [19, 23, 25], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 70}}, {"id": 19, "type": "binary_expression", "text": "template<typename", "parent": 18, "children": [20, 21, 22], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 21}}, {"id": 20, "type": "identifier", "text": "template", "parent": 19, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 21, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 22, "type": "identifier", "text": "typename", "parent": 19, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 21}}, {"id": 23, "type": "ERROR", "text": "T", "parent": 18, "children": [24], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 23}}, {"id": 24, "type": "identifier", "text": "T", "parent": 23, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 23}}, {"id": 25, "type": "binary_expression", "text": "typename U> static sp<T> as(const sp<U>& ptr)", "parent": 18, "children": [26, 36, 37], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 70}}, {"id": 26, "type": "binary_expression", "text": "typename U> static sp<T", "parent": 25, "children": [27, 32, 34, 35], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 48}}, {"id": 27, "type": "binary_expression", "text": "typename U> static", "parent": 26, "children": [28, 29, 31], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 43}}, {"id": 28, "type": "identifier", "text": "typename", "parent": 27, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 33}}, {"id": 29, "type": "ERROR", "text": "U", "parent": 27, "children": [30], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 35}}, {"id": 30, "type": "identifier", "text": "U", "parent": 29, "children": [], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 35}}, {"id": 31, "type": ">", "text": ">", "parent": 27, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 36}}, {"id": 32, "type": "ERROR", "text": "sp", "parent": 26, "children": [33], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 46}}, {"id": 33, "type": "identifier", "text": "sp", "parent": 32, "children": [], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 46}}, {"id": 34, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 47}}, {"id": 35, "type": "identifier", "text": "T", "parent": 26, "children": [], "start_point": {"row": 10, "column": 47}, "end_point": {"row": 10, "column": 48}}, {"id": 36, "type": ">", "text": ">", "parent": 25, "children": [], "start_point": {"row": 10, "column": 48}, "end_point": {"row": 10, "column": 49}}, {"id": 37, "type": "call_expression", "text": "as(const sp<U>& ptr)", "parent": 25, "children": [38], "start_point": {"row": 10, "column": 50}, "end_point": {"row": 10, "column": 70}}, {"id": 38, "type": "argument_list", "text": "(const sp<U>& ptr)", "parent": 37, "children": [39], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 70}}, {"id": 39, "type": "binary_expression", "text": "const sp<U>& ptr", "parent": 38, "children": [40, 45, 46], "start_point": {"row": 10, "column": 53}, "end_point": {"row": 10, "column": 69}}, {"id": 40, "type": "binary_expression", "text": "const sp<U", "parent": 39, "children": [41, 43, 44], "start_point": {"row": 10, "column": 53}, "end_point": {"row": 10, "column": 63}}, {"id": 41, "type": "ERROR", "text": "sp", "parent": 40, "children": [42], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 61}}, {"id": 42, "type": "identifier", "text": "sp", "parent": 41, "children": [], "start_point": {"row": 10, "column": 59}, "end_point": {"row": 10, "column": 61}}, {"id": 43, "type": "<", "text": "<", "parent": 40, "children": [], "start_point": {"row": 10, "column": 61}, "end_point": {"row": 10, "column": 62}}, {"id": 44, "type": "identifier", "text": "U", "parent": 40, "children": [], "start_point": {"row": 10, "column": 62}, "end_point": {"row": 10, "column": 63}}, {"id": 45, "type": ">", "text": ">", "parent": 39, "children": [], "start_point": {"row": 10, "column": 63}, "end_point": {"row": 10, "column": 64}}, {"id": 46, "type": "pointer_expression", "text": "& ptr", "parent": 39, "children": [47], "start_point": {"row": 10, "column": 64}, "end_point": {"row": 10, "column": 69}}, {"id": 47, "type": "identifier", "text": "ptr", "parent": 46, "children": [], "start_point": {"row": 10, "column": 66}, "end_point": {"row": 10, "column": 69}}, {"id": 48, "type": "declaration", "text": "const sp<T> directConvertedPtr = ptr.template as<T>();", "parent": 15, "children": [49, 50, 54], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 62}}, {"id": 49, "type": "type_identifier", "text": "sp", "parent": 48, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 16}}, {"id": 50, "type": "ERROR", "text": "<T>", "parent": 48, "children": [51, 52, 53], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 19}}, {"id": 51, "type": "<", "text": "<", "parent": 50, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 52, "type": "identifier", "text": "T", "parent": 50, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 18}}, {"id": 53, "type": ">", "text": ">", "parent": 50, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 54, "type": "init_declarator", "text": "directConvertedPtr = ptr.template as<T>()", "parent": 48, "children": [55, 56, 57], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 61}}, {"id": 55, "type": "identifier", "text": "directConvertedPtr", "parent": 54, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 38}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 40}}, {"id": 57, "type": "binary_expression", "text": "ptr.template as<T>()", "parent": 54, "children": [58, 64, 65], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 61}}, {"id": 58, "type": "binary_expression", "text": "ptr.template as<T", "parent": 57, "children": [59, 62, 63], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 58}}, {"id": 59, "type": "field_expression", "text": "ptr.template", "parent": 58, "children": [60, 61], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 53}}, {"id": 60, "type": "identifier", "text": "ptr", "parent": 59, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 44}}, {"id": 61, "type": "field_identifier", "text": "template", "parent": 59, "children": [], "start_point": {"row": 11, "column": 45}, "end_point": {"row": 11, "column": 53}}, {"id": 62, "type": "<", "text": "<", "parent": 58, "children": [], "start_point": {"row": 11, "column": 56}, "end_point": {"row": 11, "column": 57}}, {"id": 63, "type": "identifier", "text": "T", "parent": 58, "children": [], "start_point": {"row": 11, "column": 57}, "end_point": {"row": 11, "column": 58}}, {"id": 64, "type": ">", "text": ">", "parent": 57, "children": [], "start_point": {"row": 11, "column": 58}, "end_point": {"row": 11, "column": 59}}, {"id": 65, "type": "parenthesized_expression", "text": "()", "parent": 57, "children": [66], "start_point": {"row": 11, "column": 59}, "end_point": {"row": 11, "column": 61}}, {"id": 66, "type": "identifier", "text": "", "parent": 65, "children": [], "start_point": {"row": 11, "column": 60}, "end_point": {"row": 11, "column": 60}}, {"id": 67, "type": "if_statement", "text": "if(directConvertedPtr)\n return directConvertedPtr;", "parent": 15, "children": [68, 70], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 13, "column": 38}}, {"id": 68, "type": "parenthesized_expression", "text": "(directConvertedPtr)", "parent": 67, "children": [69], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 30}}, {"id": 69, "type": "identifier", "text": "directConvertedPtr", "parent": 68, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 29}}, {"id": 70, "type": "return_statement", "text": "return directConvertedPtr;", "parent": 67, "children": [71], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 38}}, {"id": 71, "type": "identifier", "text": "directConvertedPtr", "parent": 70, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 37}}, {"id": 72, "type": "declaration", "text": "const auto delegatePtr = ptr.template as<Delegate<T>>();", "parent": 15, "children": [73, 75, 76], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 64}}, {"id": 73, "type": "storage_class_specifier", "text": "auto", "parent": 72, "children": [74], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 18}}, {"id": 74, "type": "auto", "text": "auto", "parent": 73, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 18}}, {"id": 75, "type": "type_identifier", "text": "delegatePtr", "parent": 72, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 30}}, {"id": 76, "type": "init_declarator", "text": " = ptr.template as<Delegate<T>>()", "parent": 72, "children": [77, 78, 79], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 63}}, {"id": 77, "type": "identifier", "text": "", "parent": 76, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 30}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 32}}, {"id": 79, "type": "binary_expression", "text": "ptr.template as<Delegate<T>>()", "parent": 76, "children": [80, 86, 87], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 63}}, {"id": 80, "type": "binary_expression", "text": "ptr.template as<Delegate", "parent": 79, "children": [81, 84, 85], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 57}}, {"id": 81, "type": "field_expression", "text": "ptr.template", "parent": 80, "children": [82, 83], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 45}}, {"id": 82, "type": "identifier", "text": "ptr", "parent": 81, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 36}}, {"id": 83, "type": "field_identifier", "text": "template", "parent": 81, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 45}}, {"id": 84, "type": "<", "text": "<", "parent": 80, "children": [], "start_point": {"row": 15, "column": 48}, "end_point": {"row": 15, "column": 49}}, {"id": 85, "type": "identifier", "text": "Delegate", "parent": 80, "children": [], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 57}}, {"id": 86, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 15, "column": 57}, "end_point": {"row": 15, "column": 58}}, {"id": 87, "type": "binary_expression", "text": "T>>()", "parent": 79, "children": [88, 89, 90], "start_point": {"row": 15, "column": 58}, "end_point": {"row": 15, "column": 63}}, {"id": 88, "type": "identifier", "text": "T", "parent": 87, "children": [], "start_point": {"row": 15, "column": 58}, "end_point": {"row": 15, "column": 59}}, {"id": 89, "type": ">>", "text": ">>", "parent": 87, "children": [], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 61}}, {"id": 90, "type": "parenthesized_expression", "text": "()", "parent": 87, "children": [91], "start_point": {"row": 15, "column": 61}, "end_point": {"row": 15, "column": 63}}, {"id": 91, "type": "identifier", "text": "", "parent": 90, "children": [], "start_point": {"row": 15, "column": 62}, "end_point": {"row": 15, "column": 62}}, {"id": 92, "type": "if_statement", "text": "if(delegatePtr)\n return delegatePtr->delegate();", "parent": 15, "children": [93, 95], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 17, "column": 43}}, {"id": 93, "type": "parenthesized_expression", "text": "(delegatePtr)", "parent": 92, "children": [94], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 23}}, {"id": 94, "type": "identifier", "text": "delegatePtr", "parent": 93, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 22}}, {"id": 95, "type": "return_statement", "text": "return delegatePtr->delegate();", "parent": 92, "children": [96], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 43}}, {"id": 96, "type": "call_expression", "text": "delegatePtr->delegate()", "parent": 95, "children": [97, 100], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 42}}, {"id": 97, "type": "field_expression", "text": "delegatePtr->delegate", "parent": 96, "children": [98, 99], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 40}}, {"id": 98, "type": "identifier", "text": "delegatePtr", "parent": 97, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 30}}, {"id": 99, "type": "field_identifier", "text": "delegate", "parent": 97, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 40}}, {"id": 100, "type": "argument_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 42}}, {"id": 101, "type": "return_statement", "text": "return nullptr;", "parent": 15, "children": [102], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 23}}, {"id": 102, "type": "null", "text": "nullptr", "parent": 101, "children": [103], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 22}}, {"id": 103, "type": "nullptr", "text": "nullptr", "parent": 102, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 22}}, {"id": 104, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 15], "variables": [48, 72], "classes": [73], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [18, 19, 25, 26, 27, 37, 39, 40, 46, 57, 58, 59, 65, 68, 79, 80, 81, 87, 90, 93, 96, 97], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 20, 22, 24, 28, 30, 33, 35, 42, 44, 47, 49, 52, 55, 60, 61, 63, 66, 67, 69, 71, 75, 77, 82, 83, 85, 88, 91, 92, 94, 98, 99, 104], "returns": [70, 95, 101], "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": "SharedPtrUtil", "text_snippet": "namespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as("}, {"node_id": 15, "universal_type": "function", "name": "SharedPtrUtil", "text_snippet": "class SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr)"}], "class_declarations": [{"node_id": 73, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 6, "text": "#include \"core/base/delegate.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"core/types/shared_ptr.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n#define ARK_CORE_UTIL_SHARED_PTR_UTIL_H_\n\n#include \"core/base/delegate.h\"\n#include \"core/types/shared_ptr.h\"\n\nnamespace ark {\n\nclass SharedPtrUtil {\npublic:\n template<typename T, typename U> static sp<T> as(const sp<U>& ptr) {\n const sp<T> directConvertedPtr = ptr.template as<T>();\n if(directConvertedPtr)\n return directConvertedPtr;\n\n const auto delegatePtr = ptr.template as<Delegate<T>>();\n if(delegatePtr)\n return delegatePtr->delegate();\n\n return nullptr;\n }\n};\n\n}\n\n#endif\n"}
80,403
c
/* File: main.c Author: <NAME> License: MIT MIT License Copyright (c) 2017-2022 <NAME> <<EMAIL>> 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. */ #include <stdbool.h> #include <string.h> #include <stdfix.h> #include "system.h" #include "bshal_spim.h" #include "bshal_delay.h" #include "bshal_i2cm.h" #include "bshal_uart.h" #include "bshal_gpio.h" #include "i2c.h" #include "minmea.h" #include "geohash.h" bshal_i2cm_instance_t *gp_i2c = NULL; void HardFault_Handler(void) { } void SysTick_Handler(void) { HAL_IncTick(); } void SystemClock_Config(void) { ClockSetup_HSE8_SYS72(); } // TODO --- struct minmea_sentence_rmc rmc; struct minmea_sentence_gst gst; struct minmea_sentence_gga gga; char buff[32]; void uart_gnss_cb(char *data, size_t size) { // struct minmea_sentence_rmc rmc; // struct minmea_sentence_gst gst; enum minmea_sentence_id sentence_id = minmea_sentence_id(data, false); switch (sentence_id ) { case MINMEA_INVALID: break; case MINMEA_UNKNOWN: break; case MINMEA_SENTENCE_RMC: // static int cnt = 0; // cnt++; // // sprintf(buff,"%d",cnt); // print(buff,5); bool success = minmea_parse_rmc( &rmc, data); if (success) { // float latitude= minmea_tocoord(&rmc.latitude); // float longitude= minmea_tocoord(&rmc.longitude); // sprintf(buff, "latitude: %10.6f", latitude); // print(buff,1); // sprintf(buff, "longitude: %10.6f", longitude); // print(buff,2); } else { print("no fix", 1); } break; case MINMEA_SENTENCE_GGA: // Default V.KEL success = minmea_parse_gga( &gga, data); // break; case MINMEA_SENTENCE_GSA: // Default V.KEL break; case MINMEA_SENTENCE_GLL: // Default V.KEL // break; case MINMEA_SENTENCE_GST: success = minmea_parse_gst( &gst, data); // float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation); // float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation); // float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation); // Contains RMS break; case MINMEA_SENTENCE_GSV: // Default V.KEL // break; case MINMEA_SENTENCE_VTG: // Default V.KEL // break; case MINMEA_SENTENCE_ZDA: break; } } void uart_init(void) { //static uint8_t receive_buffer[512]; static uint8_t receive_buffer[1024]; static bshal_uart_async_t bshal_uart_async; static bshal_uart_instance_t bshal_uart_instance; // Configuration for the Async handler, to configure the synchronosation bshal_uart_async.callback = uart_gnss_cb; // Callback for the resulting NMEA string bshal_uart_async.receive_buffer = receive_buffer; bshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128; bshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128; bshal_uart_async.process_buffer_len = 128; bshal_uart_async.null_terminated_string = true; // Terminate the resulting string bshal_uart_async.sync_begin_data = "$"; // NMEA sentences start with $ bshal_uart_async.sync_begin_len = 1; // bshal_uart_async.sync_begin_include = true; // Include the $ in the result bshal_uart_async.sync_end = "\r\n"; // NMEA sentences end with \r\n bshal_uart_async.sync_end_len = 2; bshal_uart_async.sync_end_include = true; // Do include the \r\n in the result bshal_uart_async.max_data_len = 83; // The maximum length of an NMEA string bshal_uart_instance.async = & bshal_uart_async; // Asign the async handler to the uart instance // 9600,8,N,1 bshal_uart_instance.bps = 9600; bshal_uart_instance.data_bits = 8; bshal_uart_instance.parity = bshal_uart_parity_none; bshal_uart_instance.stop_bits = 1; bshal_uart_instance.fc = bshal_uart_flow_control_none; bshal_uart_instance.hw_nr = 2; // UASRT 2 bshal_uart_instance.cts_pin = -1; // No flow control bshal_uart_instance.rts_pin = -1; // No flow control bshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3); // PA3 bshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2); // PA2 bshal_stm32_uart_init(&bshal_uart_instance); } int geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m) { // https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km float km_error = NAN; if (latitude_error_deviation_m < longitude_error_deviation_m ) { km_error = latitude_error_deviation_m / 1000.0f; } else { km_error = longitude_error_deviation_m / 1000.0f; } if (isnan(km_error)) return 1; if (km_error < 0.019f) return 8; if (km_error < 0.076f) return 7; if (km_error < 0.61f) return 6; if (km_error < 2.4f) return 5; if (km_error < 20.0f) return 4; if (km_error < 78.0f) return 3; if (km_error < 630.0f) return 2; return 1; } int main() { #ifdef SEMI initialise_monitor_handles(); printf("Hello world!\n"); #endif SystemClock_Config(); SystemCoreClockUpdate(); HAL_Init(); bshal_delay_init(); bshal_delay_us(10); gp_i2c = i2c_init(); uart_init(); display_init(); draw_background(); print("GNSS DEMO", 0); nemaMsgEnable("GST"); bshal_delay_ms(100); while (1) { // float latitude= minmea_tocoord(&rmc.latitude); // float longitude= minmea_tocoord(&rmc.longitude); float latitude= minmea_tocoord(&gga.latitude); float longitude= minmea_tocoord(&gga.longitude); float altitude= minmea_tofloat(&gga.altitude); float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation); float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation); float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation); sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)", rmc.date.year+2000, rmc.date.month, rmc.date.day, rmc.time.hours, rmc.time.minutes, rmc.time.seconds); print(buff,0); sprintf(buff, "latitude : %10.6f °", latitude); print(buff,1); sprintf(buff, " error: %6.2f m", latitude_error_deviation); print(buff,2); sprintf(buff, "longitude: %10.6f °", longitude ); print(buff,3); sprintf(buff, " error: %6.2f m", longitude_error_deviation); print(buff,4); sprintf(buff, "altitude : %6.2f m", altitude ); print(buff,5); sprintf(buff, " error: %6.2f m", altitude_error_deviation); print(buff,6); char * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) ); if (geohash) { sprintf(buff, "geohash : %s",geohash ); free(geohash); print(buff,7); } framebuffer_apply(); bshal_delay_ms(1000); //test_uart_send(enableGST, sizeof(enableGST)); } }
32.22
226
(translation_unit) "/*\n\n File: main.c\n Author: <NAME>\n License: MIT\n\n\n MIT License\n\n Copyright (c) 2017-2022 <NAME> <<EMAIL>>\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\n#include <stdbool.h>\n#include <string.h>\n#include <stdfix.h>\n\n#include "system.h"\n\n#include "bshal_spim.h"\n#include "bshal_delay.h"\n#include "bshal_i2cm.h"\n#include "bshal_uart.h"\n#include "bshal_gpio.h"\n\n#include "i2c.h"\n\n#include "minmea.h"\n\n#include "geohash.h"\n\n\n\nbshal_i2cm_instance_t *gp_i2c = NULL;\n\nvoid HardFault_Handler(void) {\n\n}\n\nvoid SysTick_Handler(void) {\n HAL_IncTick();\n}\n\nvoid SystemClock_Config(void) {\n ClockSetup_HSE8_SYS72();\n}\n\n\n// TODO ---\nstruct minmea_sentence_rmc rmc;\nstruct minmea_sentence_gst gst;\nstruct minmea_sentence_gga gga;\nchar buff[32];\n\n\nvoid uart_gnss_cb(char *data, size_t size) {\n\n// struct minmea_sentence_rmc rmc;\n// struct minmea_sentence_gst gst;\n enum minmea_sentence_id sentence_id = minmea_sentence_id(data, false);\n switch (sentence_id ) {\n\n case MINMEA_INVALID:\n break;\n case MINMEA_UNKNOWN:\n break;\n case MINMEA_SENTENCE_RMC:\n\n// static int cnt = 0;\n// cnt++;\n//\n// sprintf(buff,"%d",cnt);\n// print(buff,5);\n bool success = minmea_parse_rmc( &rmc, data);\n\n if (success) {\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n } else {\n print("no fix", 1);\n }\n\n break;\n case MINMEA_SENTENCE_GGA:\n // Default V.KEL\n success = minmea_parse_gga( &gga, data);\n\n //\n break;\n case MINMEA_SENTENCE_GSA:\n // Default V.KEL\n break;\n case MINMEA_SENTENCE_GLL:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_GST:\n success = minmea_parse_gst( &gst, data);\n// float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n// float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n// float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n // Contains RMS\n break;\n case MINMEA_SENTENCE_GSV:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_VTG:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_ZDA:\n break;\n }\n}\n\nvoid uart_init(void) {\n //static uint8_t receive_buffer[512];\n static uint8_t receive_buffer[1024];\n static bshal_uart_async_t bshal_uart_async;\n static bshal_uart_instance_t bshal_uart_instance;\n\n\n // Configuration for the Async handler, to configure the synchronosation\n bshal_uart_async.callback = uart_gnss_cb; // Callback for the resulting NMEA string\n\n bshal_uart_async.receive_buffer = receive_buffer;\n bshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128;\n bshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128;\n bshal_uart_async.process_buffer_len = 128;\n\n\n bshal_uart_async.null_terminated_string = true; // Terminate the resulting string\n\n bshal_uart_async.sync_begin_data = "$"; // NMEA sentences start with $\n bshal_uart_async.sync_begin_len = 1; //\n bshal_uart_async.sync_begin_include = true; // Include the $ in the result\n\n bshal_uart_async.sync_end = "\r\n"; // NMEA sentences end with \r\n\n bshal_uart_async.sync_end_len = 2;\n bshal_uart_async.sync_end_include = true; // Do include the \r\n in the result\n\n bshal_uart_async.max_data_len = 83; // The maximum length of an NMEA string\n\n bshal_uart_instance.async = & bshal_uart_async; // Asign the async handler to the uart instance\n\n\n\n // 9600,8,N,1\n bshal_uart_instance.bps = 9600;\n bshal_uart_instance.data_bits = 8;\n bshal_uart_instance.parity = bshal_uart_parity_none;\n bshal_uart_instance.stop_bits = 1;\n\n bshal_uart_instance.fc = bshal_uart_flow_control_none;\n\n bshal_uart_instance.hw_nr = 2; // UASRT 2\n bshal_uart_instance.cts_pin = -1; // No flow control\n bshal_uart_instance.rts_pin = -1; // No flow control\n bshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3); // PA3\n bshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2); // PA2\n\n bshal_stm32_uart_init(&bshal_uart_instance);\n\n\n}\n\nint geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m) {\n // https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km\n float km_error = NAN;\n if (latitude_error_deviation_m < longitude_error_deviation_m ) {\n km_error = latitude_error_deviation_m / 1000.0f;\n } else {\n km_error = longitude_error_deviation_m / 1000.0f;\n }\n if (isnan(km_error)) return 1;\n\n if (km_error < 0.019f) return 8;\n if (km_error < 0.076f) return 7;\n if (km_error < 0.61f) return 6;\n if (km_error < 2.4f) return 5;\n if (km_error < 20.0f) return 4;\n if (km_error < 78.0f) return 3;\n if (km_error < 630.0f) return 2;\n return 1;\n}\n\nint main() {\n#ifdef SEMI\n initialise_monitor_handles();\n printf("Hello world!\n");\n#endif\n\n \n SystemClock_Config();\n SystemCoreClockUpdate();\n\n HAL_Init();\n\n bshal_delay_init();\n bshal_delay_us(10);\n\n gp_i2c = i2c_init();\n\n uart_init();\n\n display_init();\n draw_background();\n print("GNSS DEMO", 0);\n\n nemaMsgEnable("GST");\n bshal_delay_ms(100);\n\n while (1) {\n\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n\n float latitude= minmea_tocoord(&gga.latitude);\n float longitude= minmea_tocoord(&gga.longitude);\n float altitude= minmea_tofloat(&gga.altitude);\n\n\n float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds);\n print(buff,0);\n\n\n sprintf(buff, "latitude : %10.6f °", latitude);\n print(buff,1);\n sprintf(buff, " error: %6.2f m", latitude_error_deviation);\n print(buff,2);\n sprintf(buff, "longitude: %10.6f °", longitude );\n print(buff,3);\n sprintf(buff, " error: %6.2f m", longitude_error_deviation);\n print(buff,4);\n\n sprintf(buff, "altitude : %6.2f m", altitude );\n print(buff,5);\n sprintf(buff, " error: %6.2f m", altitude_error_deviation);\n print(buff,6);\n\n\n char * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n if (geohash) {\n sprintf(buff, "geohash : %s",geohash );\n free(geohash);\n print(buff,7);\n }\n\n framebuffer_apply();\n bshal_delay_ms(1000);\n //test_uart_send(enableGST, sizeof(enableGST));\n }\n\n}\n" (comment) "/*\n\n File: main.c\n Author: <NAME>\n License: MIT\n\n\n MIT License\n\n Copyright (c) 2017-2022 <NAME> <<EMAIL>>\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the "Software"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <stdfix.h>\n" (#include) "#include" (system_lib_string) "<stdfix.h>" (preproc_include) "#include "system.h"\n" (#include) "#include" (string_literal) ""system.h"" (") """ (string_content) "system.h" (") """ (preproc_include) "#include "bshal_spim.h"\n" (#include) "#include" (string_literal) ""bshal_spim.h"" (") """ (string_content) "bshal_spim.h" (") """ (preproc_include) "#include "bshal_delay.h"\n" (#include) "#include" (string_literal) ""bshal_delay.h"" (") """ (string_content) "bshal_delay.h" (") """ (preproc_include) "#include "bshal_i2cm.h"\n" (#include) "#include" (string_literal) ""bshal_i2cm.h"" (") """ (string_content) "bshal_i2cm.h" (") """ (preproc_include) "#include "bshal_uart.h"\n" (#include) "#include" (string_literal) ""bshal_uart.h"" (") """ (string_content) "bshal_uart.h" (") """ (preproc_include) "#include "bshal_gpio.h"\n" (#include) "#include" (string_literal) ""bshal_gpio.h"" (") """ (string_content) "bshal_gpio.h" (") """ (preproc_include) "#include "i2c.h"\n" (#include) "#include" (string_literal) ""i2c.h"" (") """ (string_content) "i2c.h" (") """ (preproc_include) "#include "minmea.h"\n" (#include) "#include" (string_literal) ""minmea.h"" (") """ (string_content) "minmea.h" (") """ (preproc_include) "#include "geohash.h"\n" (#include) "#include" (string_literal) ""geohash.h"" (") """ (string_content) "geohash.h" (") """ (declaration) "bshal_i2cm_instance_t *gp_i2c = NULL;" (type_identifier) "bshal_i2cm_instance_t" (init_declarator) "*gp_i2c = NULL" (pointer_declarator) "*gp_i2c" (*) "*" (identifier) "gp_i2c" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (function_definition) "void HardFault_Handler(void) {\n\n}" (primitive_type) "void" (function_declarator) "HardFault_Handler(void)" (identifier) "HardFault_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n\n}" ({) "{" (}) "}" (function_definition) "void SysTick_Handler(void) {\n HAL_IncTick();\n}" (primitive_type) "void" (function_declarator) "SysTick_Handler(void)" (identifier) "SysTick_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n HAL_IncTick();\n}" ({) "{" (expression_statement) "HAL_IncTick();" (call_expression) "HAL_IncTick()" (identifier) "HAL_IncTick" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void SystemClock_Config(void) {\n ClockSetup_HSE8_SYS72();\n}" (primitive_type) "void" (function_declarator) "SystemClock_Config(void)" (identifier) "SystemClock_Config" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n ClockSetup_HSE8_SYS72();\n}" ({) "{" (expression_statement) "ClockSetup_HSE8_SYS72();" (call_expression) "ClockSetup_HSE8_SYS72()" (identifier) "ClockSetup_HSE8_SYS72" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// TODO ---" (declaration) "struct minmea_sentence_rmc rmc;" (struct_specifier) "struct minmea_sentence_rmc" (struct) "struct" (type_identifier) "minmea_sentence_rmc" (identifier) "rmc" (;) ";" (declaration) "struct minmea_sentence_gst gst;" (struct_specifier) "struct minmea_sentence_gst" (struct) "struct" (type_identifier) "minmea_sentence_gst" (identifier) "gst" (;) ";" (declaration) "struct minmea_sentence_gga gga;" (struct_specifier) "struct minmea_sentence_gga" (struct) "struct" (type_identifier) "minmea_sentence_gga" (identifier) "gga" (;) ";" (declaration) "char buff[32];" (primitive_type) "char" (array_declarator) "buff[32]" (identifier) "buff" ([) "[" (number_literal) "32" (]) "]" (;) ";" (function_definition) "void uart_gnss_cb(char *data, size_t size) {\n\n// struct minmea_sentence_rmc rmc;\n// struct minmea_sentence_gst gst;\n enum minmea_sentence_id sentence_id = minmea_sentence_id(data, false);\n switch (sentence_id ) {\n\n case MINMEA_INVALID:\n break;\n case MINMEA_UNKNOWN:\n break;\n case MINMEA_SENTENCE_RMC:\n\n// static int cnt = 0;\n// cnt++;\n//\n// sprintf(buff,"%d",cnt);\n// print(buff,5);\n bool success = minmea_parse_rmc( &rmc, data);\n\n if (success) {\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n } else {\n print("no fix", 1);\n }\n\n break;\n case MINMEA_SENTENCE_GGA:\n // Default V.KEL\n success = minmea_parse_gga( &gga, data);\n\n //\n break;\n case MINMEA_SENTENCE_GSA:\n // Default V.KEL\n break;\n case MINMEA_SENTENCE_GLL:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_GST:\n success = minmea_parse_gst( &gst, data);\n// float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n// float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n// float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n // Contains RMS\n break;\n case MINMEA_SENTENCE_GSV:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_VTG:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_ZDA:\n break;\n }\n}" (primitive_type) "void" (function_declarator) "uart_gnss_cb(char *data, size_t size)" (identifier) "uart_gnss_cb" (parameter_list) "(char *data, size_t size)" (() "(" (parameter_declaration) "char *data" (primitive_type) "char" (pointer_declarator) "*data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n\n// struct minmea_sentence_rmc rmc;\n// struct minmea_sentence_gst gst;\n enum minmea_sentence_id sentence_id = minmea_sentence_id(data, false);\n switch (sentence_id ) {\n\n case MINMEA_INVALID:\n break;\n case MINMEA_UNKNOWN:\n break;\n case MINMEA_SENTENCE_RMC:\n\n// static int cnt = 0;\n// cnt++;\n//\n// sprintf(buff,"%d",cnt);\n// print(buff,5);\n bool success = minmea_parse_rmc( &rmc, data);\n\n if (success) {\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n } else {\n print("no fix", 1);\n }\n\n break;\n case MINMEA_SENTENCE_GGA:\n // Default V.KEL\n success = minmea_parse_gga( &gga, data);\n\n //\n break;\n case MINMEA_SENTENCE_GSA:\n // Default V.KEL\n break;\n case MINMEA_SENTENCE_GLL:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_GST:\n success = minmea_parse_gst( &gst, data);\n// float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n// float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n// float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n // Contains RMS\n break;\n case MINMEA_SENTENCE_GSV:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_VTG:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_ZDA:\n break;\n }\n}" ({) "{" (comment) "// struct minmea_sentence_rmc rmc;" (comment) "// struct minmea_sentence_gst gst;" (declaration) "enum minmea_sentence_id sentence_id = minmea_sentence_id(data, false);" (enum_specifier) "enum minmea_sentence_id" (enum) "enum" (type_identifier) "minmea_sentence_id" (init_declarator) "sentence_id = minmea_sentence_id(data, false)" (identifier) "sentence_id" (=) "=" (call_expression) "minmea_sentence_id(data, false)" (identifier) "minmea_sentence_id" (argument_list) "(data, false)" (() "(" (identifier) "data" (,) "," (false) "false" ()) ")" (;) ";" (switch_statement) "switch (sentence_id ) {\n\n case MINMEA_INVALID:\n break;\n case MINMEA_UNKNOWN:\n break;\n case MINMEA_SENTENCE_RMC:\n\n// static int cnt = 0;\n// cnt++;\n//\n// sprintf(buff,"%d",cnt);\n// print(buff,5);\n bool success = minmea_parse_rmc( &rmc, data);\n\n if (success) {\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n } else {\n print("no fix", 1);\n }\n\n break;\n case MINMEA_SENTENCE_GGA:\n // Default V.KEL\n success = minmea_parse_gga( &gga, data);\n\n //\n break;\n case MINMEA_SENTENCE_GSA:\n // Default V.KEL\n break;\n case MINMEA_SENTENCE_GLL:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_GST:\n success = minmea_parse_gst( &gst, data);\n// float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n// float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n// float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n // Contains RMS\n break;\n case MINMEA_SENTENCE_GSV:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_VTG:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_ZDA:\n break;\n }" (switch) "switch" (parenthesized_expression) "(sentence_id )" (() "(" (identifier) "sentence_id" ()) ")" (compound_statement) "{\n\n case MINMEA_INVALID:\n break;\n case MINMEA_UNKNOWN:\n break;\n case MINMEA_SENTENCE_RMC:\n\n// static int cnt = 0;\n// cnt++;\n//\n// sprintf(buff,"%d",cnt);\n// print(buff,5);\n bool success = minmea_parse_rmc( &rmc, data);\n\n if (success) {\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n } else {\n print("no fix", 1);\n }\n\n break;\n case MINMEA_SENTENCE_GGA:\n // Default V.KEL\n success = minmea_parse_gga( &gga, data);\n\n //\n break;\n case MINMEA_SENTENCE_GSA:\n // Default V.KEL\n break;\n case MINMEA_SENTENCE_GLL:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_GST:\n success = minmea_parse_gst( &gst, data);\n// float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n// float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n// float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n // Contains RMS\n break;\n case MINMEA_SENTENCE_GSV:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_VTG:\n // Default V.KEL\n //\n break;\n case MINMEA_SENTENCE_ZDA:\n break;\n }" ({) "{" (case_statement) "case MINMEA_INVALID:\n break;" (case) "case" (identifier) "MINMEA_INVALID" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_UNKNOWN:\n break;" (case) "case" (identifier) "MINMEA_UNKNOWN" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_RMC:\n\n// static int cnt = 0;\n// cnt++;\n//\n// sprintf(buff,"%d",cnt);\n// print(buff,5);\n bool success = minmea_parse_rmc( &rmc, data);\n\n if (success) {\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n } else {\n print("no fix", 1);\n }\n\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_RMC" (:) ":" (comment) "// static int cnt = 0;" (comment) "// cnt++;" (comment) "//" (comment) "// sprintf(buff,"%d",cnt);" (comment) "// print(buff,5);" (declaration) "bool success = minmea_parse_rmc( &rmc, data);" (primitive_type) "bool" (init_declarator) "success = minmea_parse_rmc( &rmc, data)" (identifier) "success" (=) "=" (call_expression) "minmea_parse_rmc( &rmc, data)" (identifier) "minmea_parse_rmc" (argument_list) "( &rmc, data)" (() "(" (pointer_expression) "&rmc" (&) "&" (identifier) "rmc" (,) "," (identifier) "data" ()) ")" (;) ";" (if_statement) "if (success) {\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n } else {\n print("no fix", 1);\n }" (if) "if" (parenthesized_expression) "(success)" (() "(" (identifier) "success" ()) ")" (compound_statement) "{\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n// sprintf(buff, "latitude: %10.6f", latitude);\n// print(buff,1);\n// sprintf(buff, "longitude: %10.6f", longitude);\n// print(buff,2);\n }" ({) "{" (comment) "// float latitude= minmea_tocoord(&rmc.latitude);" (comment) "// float longitude= minmea_tocoord(&rmc.longitude);" (comment) "// sprintf(buff, "latitude: %10.6f", latitude);" (comment) "// print(buff,1);" (comment) "// sprintf(buff, "longitude: %10.6f", longitude);" (comment) "// print(buff,2);" (}) "}" (else_clause) "else {\n print("no fix", 1);\n }" (else) "else" (compound_statement) "{\n print("no fix", 1);\n }" ({) "{" (expression_statement) "print("no fix", 1);" (call_expression) "print("no fix", 1)" (identifier) "print" (argument_list) "("no fix", 1)" (() "(" (string_literal) ""no fix"" (") """ (string_content) "no fix" (") """ (,) "," (number_literal) "1" ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_GGA:\n // Default V.KEL\n success = minmea_parse_gga( &gga, data);\n\n //\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_GGA" (:) ":" (comment) "// Default V.KEL" (expression_statement) "success = minmea_parse_gga( &gga, data);" (assignment_expression) "success = minmea_parse_gga( &gga, data)" (identifier) "success" (=) "=" (call_expression) "minmea_parse_gga( &gga, data)" (identifier) "minmea_parse_gga" (argument_list) "( &gga, data)" (() "(" (pointer_expression) "&gga" (&) "&" (identifier) "gga" (,) "," (identifier) "data" ()) ")" (;) ";" (comment) "//" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_GSA:\n // Default V.KEL\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_GSA" (:) ":" (comment) "// Default V.KEL" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_GLL:\n // Default V.KEL\n //\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_GLL" (:) ":" (comment) "// Default V.KEL" (comment) "//" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_GST:\n success = minmea_parse_gst( &gst, data);\n// float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n// float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n// float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n // Contains RMS\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_GST" (:) ":" (expression_statement) "success = minmea_parse_gst( &gst, data);" (assignment_expression) "success = minmea_parse_gst( &gst, data)" (identifier) "success" (=) "=" (call_expression) "minmea_parse_gst( &gst, data)" (identifier) "minmea_parse_gst" (argument_list) "( &gst, data)" (() "(" (pointer_expression) "&gst" (&) "&" (identifier) "gst" (,) "," (identifier) "data" ()) ")" (;) ";" (comment) "// float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);" (comment) "// float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);" (comment) "// float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);" (comment) "// Contains RMS" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_GSV:\n // Default V.KEL\n //\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_GSV" (:) ":" (comment) "// Default V.KEL" (comment) "//" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_VTG:\n // Default V.KEL\n //\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_VTG" (:) ":" (comment) "// Default V.KEL" (comment) "//" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case MINMEA_SENTENCE_ZDA:\n break;" (case) "case" (identifier) "MINMEA_SENTENCE_ZDA" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (function_definition) "void uart_init(void) {\n //static uint8_t receive_buffer[512];\n static uint8_t receive_buffer[1024];\n static bshal_uart_async_t bshal_uart_async;\n static bshal_uart_instance_t bshal_uart_instance;\n\n\n // Configuration for the Async handler, to configure the synchronosation\n bshal_uart_async.callback = uart_gnss_cb; // Callback for the resulting NMEA string\n\n bshal_uart_async.receive_buffer = receive_buffer;\n bshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128;\n bshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128;\n bshal_uart_async.process_buffer_len = 128;\n\n\n bshal_uart_async.null_terminated_string = true; // Terminate the resulting string\n\n bshal_uart_async.sync_begin_data = "$"; // NMEA sentences start with $\n bshal_uart_async.sync_begin_len = 1; //\n bshal_uart_async.sync_begin_include = true; // Include the $ in the result\n\n bshal_uart_async.sync_end = "\r\n"; // NMEA sentences end with \r\n\n bshal_uart_async.sync_end_len = 2;\n bshal_uart_async.sync_end_include = true; // Do include the \r\n in the result\n\n bshal_uart_async.max_data_len = 83; // The maximum length of an NMEA string\n\n bshal_uart_instance.async = & bshal_uart_async; // Asign the async handler to the uart instance\n\n\n\n // 9600,8,N,1\n bshal_uart_instance.bps = 9600;\n bshal_uart_instance.data_bits = 8;\n bshal_uart_instance.parity = bshal_uart_parity_none;\n bshal_uart_instance.stop_bits = 1;\n\n bshal_uart_instance.fc = bshal_uart_flow_control_none;\n\n bshal_uart_instance.hw_nr = 2; // UASRT 2\n bshal_uart_instance.cts_pin = -1; // No flow control\n bshal_uart_instance.rts_pin = -1; // No flow control\n bshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3); // PA3\n bshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2); // PA2\n\n bshal_stm32_uart_init(&bshal_uart_instance);\n\n\n}" (primitive_type) "void" (function_declarator) "uart_init(void)" (identifier) "uart_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n //static uint8_t receive_buffer[512];\n static uint8_t receive_buffer[1024];\n static bshal_uart_async_t bshal_uart_async;\n static bshal_uart_instance_t bshal_uart_instance;\n\n\n // Configuration for the Async handler, to configure the synchronosation\n bshal_uart_async.callback = uart_gnss_cb; // Callback for the resulting NMEA string\n\n bshal_uart_async.receive_buffer = receive_buffer;\n bshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128;\n bshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128;\n bshal_uart_async.process_buffer_len = 128;\n\n\n bshal_uart_async.null_terminated_string = true; // Terminate the resulting string\n\n bshal_uart_async.sync_begin_data = "$"; // NMEA sentences start with $\n bshal_uart_async.sync_begin_len = 1; //\n bshal_uart_async.sync_begin_include = true; // Include the $ in the result\n\n bshal_uart_async.sync_end = "\r\n"; // NMEA sentences end with \r\n\n bshal_uart_async.sync_end_len = 2;\n bshal_uart_async.sync_end_include = true; // Do include the \r\n in the result\n\n bshal_uart_async.max_data_len = 83; // The maximum length of an NMEA string\n\n bshal_uart_instance.async = & bshal_uart_async; // Asign the async handler to the uart instance\n\n\n\n // 9600,8,N,1\n bshal_uart_instance.bps = 9600;\n bshal_uart_instance.data_bits = 8;\n bshal_uart_instance.parity = bshal_uart_parity_none;\n bshal_uart_instance.stop_bits = 1;\n\n bshal_uart_instance.fc = bshal_uart_flow_control_none;\n\n bshal_uart_instance.hw_nr = 2; // UASRT 2\n bshal_uart_instance.cts_pin = -1; // No flow control\n bshal_uart_instance.rts_pin = -1; // No flow control\n bshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3); // PA3\n bshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2); // PA2\n\n bshal_stm32_uart_init(&bshal_uart_instance);\n\n\n}" ({) "{" (comment) "//static uint8_t receive_buffer[512];" (declaration) "static uint8_t receive_buffer[1024];" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint8_t" (array_declarator) "receive_buffer[1024]" (identifier) "receive_buffer" ([) "[" (number_literal) "1024" (]) "]" (;) ";" (declaration) "static bshal_uart_async_t bshal_uart_async;" (storage_class_specifier) "static" (static) "static" (type_identifier) "bshal_uart_async_t" (identifier) "bshal_uart_async" (;) ";" (declaration) "static bshal_uart_instance_t bshal_uart_instance;" (storage_class_specifier) "static" (static) "static" (type_identifier) "bshal_uart_instance_t" (identifier) "bshal_uart_instance" (;) ";" (comment) "// Configuration for the Async handler, to configure the synchronosation" (expression_statement) "bshal_uart_async.callback = uart_gnss_cb;" (assignment_expression) "bshal_uart_async.callback = uart_gnss_cb" (field_expression) "bshal_uart_async.callback" (identifier) "bshal_uart_async" (.) "." (field_identifier) "callback" (=) "=" (identifier) "uart_gnss_cb" (;) ";" (comment) "// Callback for the resulting NMEA string" (expression_statement) "bshal_uart_async.receive_buffer = receive_buffer;" (assignment_expression) "bshal_uart_async.receive_buffer = receive_buffer" (field_expression) "bshal_uart_async.receive_buffer" (identifier) "bshal_uart_async" (.) "." (field_identifier) "receive_buffer" (=) "=" (identifier) "receive_buffer" (;) ";" (expression_statement) "bshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128;" (assignment_expression) "bshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128" (field_expression) "bshal_uart_async.receive_buffer_len" (identifier) "bshal_uart_async" (.) "." (field_identifier) "receive_buffer_len" (=) "=" (binary_expression) "sizeof(receive_buffer) - 128" (sizeof_expression) "sizeof(receive_buffer)" (sizeof) "sizeof" (parenthesized_expression) "(receive_buffer)" (() "(" (identifier) "receive_buffer" ()) ")" (-) "-" (number_literal) "128" (;) ";" (expression_statement) "bshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128;" (assignment_expression) "bshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128" (field_expression) "bshal_uart_async.process_buffer" (identifier) "bshal_uart_async" (.) "." (field_identifier) "process_buffer" (=) "=" (binary_expression) "receive_buffer + sizeof(receive_buffer) - 128" (binary_expression) "receive_buffer + sizeof(receive_buffer)" (identifier) "receive_buffer" (+) "+" (sizeof_expression) "sizeof(receive_buffer)" (sizeof) "sizeof" (parenthesized_expression) "(receive_buffer)" (() "(" (identifier) "receive_buffer" ()) ")" (-) "-" (number_literal) "128" (;) ";" (expression_statement) "bshal_uart_async.process_buffer_len = 128;" (assignment_expression) "bshal_uart_async.process_buffer_len = 128" (field_expression) "bshal_uart_async.process_buffer_len" (identifier) "bshal_uart_async" (.) "." (field_identifier) "process_buffer_len" (=) "=" (number_literal) "128" (;) ";" (expression_statement) "bshal_uart_async.null_terminated_string = true;" (assignment_expression) "bshal_uart_async.null_terminated_string = true" (field_expression) "bshal_uart_async.null_terminated_string" (identifier) "bshal_uart_async" (.) "." (field_identifier) "null_terminated_string" (=) "=" (true) "true" (;) ";" (comment) "// Terminate the resulting string" (expression_statement) "bshal_uart_async.sync_begin_data = "$";" (assignment_expression) "bshal_uart_async.sync_begin_data = "$"" (field_expression) "bshal_uart_async.sync_begin_data" (identifier) "bshal_uart_async" (.) "." (field_identifier) "sync_begin_data" (=) "=" (string_literal) ""$"" (") """ (string_content) "$" (") """ (;) ";" (comment) "// NMEA sentences start with $" (expression_statement) "bshal_uart_async.sync_begin_len = 1;" (assignment_expression) "bshal_uart_async.sync_begin_len = 1" (field_expression) "bshal_uart_async.sync_begin_len" (identifier) "bshal_uart_async" (.) "." (field_identifier) "sync_begin_len" (=) "=" (number_literal) "1" (;) ";" (comment) "//" (expression_statement) "bshal_uart_async.sync_begin_include = true;" (assignment_expression) "bshal_uart_async.sync_begin_include = true" (field_expression) "bshal_uart_async.sync_begin_include" (identifier) "bshal_uart_async" (.) "." (field_identifier) "sync_begin_include" (=) "=" (true) "true" (;) ";" (comment) "// Include the $ in the result" (expression_statement) "bshal_uart_async.sync_end = "\r\n";" (assignment_expression) "bshal_uart_async.sync_end = "\r\n"" (field_expression) "bshal_uart_async.sync_end" (identifier) "bshal_uart_async" (.) "." (field_identifier) "sync_end" (=) "=" (string_literal) ""\r\n"" (") """ (escape_sequence) "\r" (escape_sequence) "\n" (") """ (;) ";" (comment) "// NMEA sentences end with \r\n" (expression_statement) "bshal_uart_async.sync_end_len = 2;" (assignment_expression) "bshal_uart_async.sync_end_len = 2" (field_expression) "bshal_uart_async.sync_end_len" (identifier) "bshal_uart_async" (.) "." (field_identifier) "sync_end_len" (=) "=" (number_literal) "2" (;) ";" (expression_statement) "bshal_uart_async.sync_end_include = true;" (assignment_expression) "bshal_uart_async.sync_end_include = true" (field_expression) "bshal_uart_async.sync_end_include" (identifier) "bshal_uart_async" (.) "." (field_identifier) "sync_end_include" (=) "=" (true) "true" (;) ";" (comment) "// Do include the \r\n in the result" (expression_statement) "bshal_uart_async.max_data_len = 83;" (assignment_expression) "bshal_uart_async.max_data_len = 83" (field_expression) "bshal_uart_async.max_data_len" (identifier) "bshal_uart_async" (.) "." (field_identifier) "max_data_len" (=) "=" (number_literal) "83" (;) ";" (comment) "// The maximum length of an NMEA string" (expression_statement) "bshal_uart_instance.async = & bshal_uart_async;" (assignment_expression) "bshal_uart_instance.async = & bshal_uart_async" (field_expression) "bshal_uart_instance.async" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "async" (=) "=" (pointer_expression) "& bshal_uart_async" (&) "&" (identifier) "bshal_uart_async" (;) ";" (comment) "// Asign the async handler to the uart instance" (comment) "// 9600,8,N,1" (expression_statement) "bshal_uart_instance.bps = 9600;" (assignment_expression) "bshal_uart_instance.bps = 9600" (field_expression) "bshal_uart_instance.bps" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "bps" (=) "=" (number_literal) "9600" (;) ";" (expression_statement) "bshal_uart_instance.data_bits = 8;" (assignment_expression) "bshal_uart_instance.data_bits = 8" (field_expression) "bshal_uart_instance.data_bits" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "data_bits" (=) "=" (number_literal) "8" (;) ";" (expression_statement) "bshal_uart_instance.parity = bshal_uart_parity_none;" (assignment_expression) "bshal_uart_instance.parity = bshal_uart_parity_none" (field_expression) "bshal_uart_instance.parity" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "parity" (=) "=" (identifier) "bshal_uart_parity_none" (;) ";" (expression_statement) "bshal_uart_instance.stop_bits = 1;" (assignment_expression) "bshal_uart_instance.stop_bits = 1" (field_expression) "bshal_uart_instance.stop_bits" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "stop_bits" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "bshal_uart_instance.fc = bshal_uart_flow_control_none;" (assignment_expression) "bshal_uart_instance.fc = bshal_uart_flow_control_none" (field_expression) "bshal_uart_instance.fc" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "fc" (=) "=" (identifier) "bshal_uart_flow_control_none" (;) ";" (expression_statement) "bshal_uart_instance.hw_nr = 2;" (assignment_expression) "bshal_uart_instance.hw_nr = 2" (field_expression) "bshal_uart_instance.hw_nr" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "hw_nr" (=) "=" (number_literal) "2" (;) ";" (comment) "// UASRT 2" (expression_statement) "bshal_uart_instance.cts_pin = -1;" (assignment_expression) "bshal_uart_instance.cts_pin = -1" (field_expression) "bshal_uart_instance.cts_pin" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "cts_pin" (=) "=" (number_literal) "-1" (;) ";" (comment) "// No flow control" (expression_statement) "bshal_uart_instance.rts_pin = -1;" (assignment_expression) "bshal_uart_instance.rts_pin = -1" (field_expression) "bshal_uart_instance.rts_pin" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "rts_pin" (=) "=" (number_literal) "-1" (;) ";" (comment) "// No flow control" (expression_statement) "bshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3);" (assignment_expression) "bshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3)" (field_expression) "bshal_uart_instance.rxd_pin" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "rxd_pin" (=) "=" (call_expression) "bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3)" (identifier) "bshal_gpio_encode_pin" (argument_list) "(GPIOA, GPIO_PIN_3)" (() "(" (identifier) "GPIOA" (,) "," (identifier) "GPIO_PIN_3" ()) ")" (;) ";" (comment) "// PA3" (expression_statement) "bshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2);" (assignment_expression) "bshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2)" (field_expression) "bshal_uart_instance.txd_pin" (identifier) "bshal_uart_instance" (.) "." (field_identifier) "txd_pin" (=) "=" (call_expression) "bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2)" (identifier) "bshal_gpio_encode_pin" (argument_list) "(GPIOA, GPIO_PIN_2)" (() "(" (identifier) "GPIOA" (,) "," (identifier) "GPIO_PIN_2" ()) ")" (;) ";" (comment) "// PA2" (expression_statement) "bshal_stm32_uart_init(&bshal_uart_instance);" (call_expression) "bshal_stm32_uart_init(&bshal_uart_instance)" (identifier) "bshal_stm32_uart_init" (argument_list) "(&bshal_uart_instance)" (() "(" (pointer_expression) "&bshal_uart_instance" (&) "&" (identifier) "bshal_uart_instance" ()) ")" (;) ";" (}) "}" (function_definition) "int geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m) {\n // https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km\n float km_error = NAN;\n if (latitude_error_deviation_m < longitude_error_deviation_m ) {\n km_error = latitude_error_deviation_m / 1000.0f;\n } else {\n km_error = longitude_error_deviation_m / 1000.0f;\n }\n if (isnan(km_error)) return 1;\n\n if (km_error < 0.019f) return 8;\n if (km_error < 0.076f) return 7;\n if (km_error < 0.61f) return 6;\n if (km_error < 2.4f) return 5;\n if (km_error < 20.0f) return 4;\n if (km_error < 78.0f) return 3;\n if (km_error < 630.0f) return 2;\n return 1;\n}" (primitive_type) "int" (function_declarator) "geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m)" (identifier) "geohash_precision" (parameter_list) "(float latitude_error_deviation_m,float longitude_error_deviation_m)" (() "(" (parameter_declaration) "float latitude_error_deviation_m" (primitive_type) "float" (identifier) "latitude_error_deviation_m" (,) "," (parameter_declaration) "float longitude_error_deviation_m" (primitive_type) "float" (identifier) "longitude_error_deviation_m" ()) ")" (compound_statement) "{\n // https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km\n float km_error = NAN;\n if (latitude_error_deviation_m < longitude_error_deviation_m ) {\n km_error = latitude_error_deviation_m / 1000.0f;\n } else {\n km_error = longitude_error_deviation_m / 1000.0f;\n }\n if (isnan(km_error)) return 1;\n\n if (km_error < 0.019f) return 8;\n if (km_error < 0.076f) return 7;\n if (km_error < 0.61f) return 6;\n if (km_error < 2.4f) return 5;\n if (km_error < 20.0f) return 4;\n if (km_error < 78.0f) return 3;\n if (km_error < 630.0f) return 2;\n return 1;\n}" ({) "{" (comment) "// https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km" (declaration) "float km_error = NAN;" (primitive_type) "float" (init_declarator) "km_error = NAN" (identifier) "km_error" (=) "=" (identifier) "NAN" (;) ";" (if_statement) "if (latitude_error_deviation_m < longitude_error_deviation_m ) {\n km_error = latitude_error_deviation_m / 1000.0f;\n } else {\n km_error = longitude_error_deviation_m / 1000.0f;\n }" (if) "if" (parenthesized_expression) "(latitude_error_deviation_m < longitude_error_deviation_m )" (() "(" (binary_expression) "latitude_error_deviation_m < longitude_error_deviation_m" (identifier) "latitude_error_deviation_m" (<) "<" (identifier) "longitude_error_deviation_m" ()) ")" (compound_statement) "{\n km_error = latitude_error_deviation_m / 1000.0f;\n }" ({) "{" (expression_statement) "km_error = latitude_error_deviation_m / 1000.0f;" (assignment_expression) "km_error = latitude_error_deviation_m / 1000.0f" (identifier) "km_error" (=) "=" (binary_expression) "latitude_error_deviation_m / 1000.0f" (identifier) "latitude_error_deviation_m" (/) "/" (number_literal) "1000.0f" (;) ";" (}) "}" (else_clause) "else {\n km_error = longitude_error_deviation_m / 1000.0f;\n }" (else) "else" (compound_statement) "{\n km_error = longitude_error_deviation_m / 1000.0f;\n }" ({) "{" (expression_statement) "km_error = longitude_error_deviation_m / 1000.0f;" (assignment_expression) "km_error = longitude_error_deviation_m / 1000.0f" (identifier) "km_error" (=) "=" (binary_expression) "longitude_error_deviation_m / 1000.0f" (identifier) "longitude_error_deviation_m" (/) "/" (number_literal) "1000.0f" (;) ";" (}) "}" (if_statement) "if (isnan(km_error)) return 1;" (if) "if" (parenthesized_expression) "(isnan(km_error))" (() "(" (call_expression) "isnan(km_error)" (identifier) "isnan" (argument_list) "(km_error)" (() "(" (identifier) "km_error" ()) ")" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (if_statement) "if (km_error < 0.019f) return 8;" (if) "if" (parenthesized_expression) "(km_error < 0.019f)" (() "(" (binary_expression) "km_error < 0.019f" (identifier) "km_error" (<) "<" (number_literal) "0.019f" ()) ")" (return_statement) "return 8;" (return) "return" (number_literal) "8" (;) ";" (if_statement) "if (km_error < 0.076f) return 7;" (if) "if" (parenthesized_expression) "(km_error < 0.076f)" (() "(" (binary_expression) "km_error < 0.076f" (identifier) "km_error" (<) "<" (number_literal) "0.076f" ()) ")" (return_statement) "return 7;" (return) "return" (number_literal) "7" (;) ";" (if_statement) "if (km_error < 0.61f) return 6;" (if) "if" (parenthesized_expression) "(km_error < 0.61f)" (() "(" (binary_expression) "km_error < 0.61f" (identifier) "km_error" (<) "<" (number_literal) "0.61f" ()) ")" (return_statement) "return 6;" (return) "return" (number_literal) "6" (;) ";" (if_statement) "if (km_error < 2.4f) return 5;" (if) "if" (parenthesized_expression) "(km_error < 2.4f)" (() "(" (binary_expression) "km_error < 2.4f" (identifier) "km_error" (<) "<" (number_literal) "2.4f" ()) ")" (return_statement) "return 5;" (return) "return" (number_literal) "5" (;) ";" (if_statement) "if (km_error < 20.0f) return 4;" (if) "if" (parenthesized_expression) "(km_error < 20.0f)" (() "(" (binary_expression) "km_error < 20.0f" (identifier) "km_error" (<) "<" (number_literal) "20.0f" ()) ")" (return_statement) "return 4;" (return) "return" (number_literal) "4" (;) ";" (if_statement) "if (km_error < 78.0f) return 3;" (if) "if" (parenthesized_expression) "(km_error < 78.0f)" (() "(" (binary_expression) "km_error < 78.0f" (identifier) "km_error" (<) "<" (number_literal) "78.0f" ()) ")" (return_statement) "return 3;" (return) "return" (number_literal) "3" (;) ";" (if_statement) "if (km_error < 630.0f) return 2;" (if) "if" (parenthesized_expression) "(km_error < 630.0f)" (() "(" (binary_expression) "km_error < 630.0f" (identifier) "km_error" (<) "<" (number_literal) "630.0f" ()) ")" (return_statement) "return 2;" (return) "return" (number_literal) "2" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "int main() {\n#ifdef SEMI\n initialise_monitor_handles();\n printf("Hello world!\n");\n#endif\n\n \n SystemClock_Config();\n SystemCoreClockUpdate();\n\n HAL_Init();\n\n bshal_delay_init();\n bshal_delay_us(10);\n\n gp_i2c = i2c_init();\n\n uart_init();\n\n display_init();\n draw_background();\n print("GNSS DEMO", 0);\n\n nemaMsgEnable("GST");\n bshal_delay_ms(100);\n\n while (1) {\n\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n\n float latitude= minmea_tocoord(&gga.latitude);\n float longitude= minmea_tocoord(&gga.longitude);\n float altitude= minmea_tofloat(&gga.altitude);\n\n\n float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds);\n print(buff,0);\n\n\n sprintf(buff, "latitude : %10.6f °", latitude);\n print(buff,1);\n sprintf(buff, " error: %6.2f m", latitude_error_deviation);\n print(buff,2);\n sprintf(buff, "longitude: %10.6f °", longitude );\n print(buff,3);\n sprintf(buff, " error: %6.2f m", longitude_error_deviation);\n print(buff,4);\n\n sprintf(buff, "altitude : %6.2f m", altitude );\n print(buff,5);\n sprintf(buff, " error: %6.2f m", altitude_error_deviation);\n print(buff,6);\n\n\n char * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n if (geohash) {\n sprintf(buff, "geohash : %s",geohash );\n free(geohash);\n print(buff,7);\n }\n\n framebuffer_apply();\n bshal_delay_ms(1000);\n //test_uart_send(enableGST, sizeof(enableGST));\n }\n\n}\n" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n#ifdef SEMI\n initialise_monitor_handles();\n printf("Hello world!\n");\n#endif\n\n \n SystemClock_Config();\n SystemCoreClockUpdate();\n\n HAL_Init();\n\n bshal_delay_init();\n bshal_delay_us(10);\n\n gp_i2c = i2c_init();\n\n uart_init();\n\n display_init();\n draw_background();\n print("GNSS DEMO", 0);\n\n nemaMsgEnable("GST");\n bshal_delay_ms(100);\n\n while (1) {\n\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n\n float latitude= minmea_tocoord(&gga.latitude);\n float longitude= minmea_tocoord(&gga.longitude);\n float altitude= minmea_tofloat(&gga.altitude);\n\n\n float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds);\n print(buff,0);\n\n\n sprintf(buff, "latitude : %10.6f °", latitude);\n print(buff,1);\n sprintf(buff, " error: %6.2f m", latitude_error_deviation);\n print(buff,2);\n sprintf(buff, "longitude: %10.6f °", longitude );\n print(buff,3);\n sprintf(buff, " error: %6.2f m", longitude_error_deviation);\n print(buff,4);\n\n sprintf(buff, "altitude : %6.2f m", altitude );\n print(buff,5);\n sprintf(buff, " error: %6.2f m", altitude_error_deviation);\n print(buff,6);\n\n\n char * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n if (geohash) {\n sprintf(buff, "geohash : %s",geohash );\n free(geohash);\n print(buff,7);\n }\n\n framebuffer_apply();\n bshal_delay_ms(1000);\n //test_uart_send(enableGST, sizeof(enableGST));\n }\n\n}\n" ({) "{" (preproc_ifdef) "#ifdef SEMI\n initialise_monitor_handles();\n printf("Hello world!\n");\n#endif" (#ifdef) "#ifdef" (identifier) "SEMI" (expression_statement) "initialise_monitor_handles();" (call_expression) "initialise_monitor_handles()" (identifier) "initialise_monitor_handles" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "printf("Hello world!\n");" (call_expression) "printf("Hello world!\n")" (identifier) "printf" (argument_list) "("Hello world!\n")" (() "(" (string_literal) ""Hello world!\n"" (") """ (string_content) "Hello world!" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "SystemClock_Config();" (call_expression) "SystemClock_Config()" (identifier) "SystemClock_Config" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "SystemCoreClockUpdate();" (call_expression) "SystemCoreClockUpdate()" (identifier) "SystemCoreClockUpdate" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "HAL_Init();" (call_expression) "HAL_Init()" (identifier) "HAL_Init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "bshal_delay_init();" (call_expression) "bshal_delay_init()" (identifier) "bshal_delay_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "bshal_delay_us(10);" (call_expression) "bshal_delay_us(10)" (identifier) "bshal_delay_us" (argument_list) "(10)" (() "(" (number_literal) "10" ()) ")" (;) ";" (expression_statement) "gp_i2c = i2c_init();" (assignment_expression) "gp_i2c = i2c_init()" (identifier) "gp_i2c" (=) "=" (call_expression) "i2c_init()" (identifier) "i2c_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "uart_init();" (call_expression) "uart_init()" (identifier) "uart_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "display_init();" (call_expression) "display_init()" (identifier) "display_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "draw_background();" (call_expression) "draw_background()" (identifier) "draw_background" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "print("GNSS DEMO", 0);" (call_expression) "print("GNSS DEMO", 0)" (identifier) "print" (argument_list) "("GNSS DEMO", 0)" (() "(" (string_literal) ""GNSS DEMO"" (") """ (string_content) "GNSS DEMO" (") """ (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "nemaMsgEnable("GST");" (call_expression) "nemaMsgEnable("GST")" (identifier) "nemaMsgEnable" (argument_list) "("GST")" (() "(" (string_literal) ""GST"" (") """ (string_content) "GST" (") """ ()) ")" (;) ";" (expression_statement) "bshal_delay_ms(100);" (call_expression) "bshal_delay_ms(100)" (identifier) "bshal_delay_ms" (argument_list) "(100)" (() "(" (number_literal) "100" ()) ")" (;) ";" (while_statement) "while (1) {\n\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n\n float latitude= minmea_tocoord(&gga.latitude);\n float longitude= minmea_tocoord(&gga.longitude);\n float altitude= minmea_tofloat(&gga.altitude);\n\n\n float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds);\n print(buff,0);\n\n\n sprintf(buff, "latitude : %10.6f °", latitude);\n print(buff,1);\n sprintf(buff, " error: %6.2f m", latitude_error_deviation);\n print(buff,2);\n sprintf(buff, "longitude: %10.6f °", longitude );\n print(buff,3);\n sprintf(buff, " error: %6.2f m", longitude_error_deviation);\n print(buff,4);\n\n sprintf(buff, "altitude : %6.2f m", altitude );\n print(buff,5);\n sprintf(buff, " error: %6.2f m", altitude_error_deviation);\n print(buff,6);\n\n\n char * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n if (geohash) {\n sprintf(buff, "geohash : %s",geohash );\n free(geohash);\n print(buff,7);\n }\n\n framebuffer_apply();\n bshal_delay_ms(1000);\n //test_uart_send(enableGST, sizeof(enableGST));\n }\n\n" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n\n// float latitude= minmea_tocoord(&rmc.latitude);\n// float longitude= minmea_tocoord(&rmc.longitude);\n\n float latitude= minmea_tocoord(&gga.latitude);\n float longitude= minmea_tocoord(&gga.longitude);\n float altitude= minmea_tofloat(&gga.altitude);\n\n\n float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds);\n print(buff,0);\n\n\n sprintf(buff, "latitude : %10.6f °", latitude);\n print(buff,1);\n sprintf(buff, " error: %6.2f m", latitude_error_deviation);\n print(buff,2);\n sprintf(buff, "longitude: %10.6f °", longitude );\n print(buff,3);\n sprintf(buff, " error: %6.2f m", longitude_error_deviation);\n print(buff,4);\n\n sprintf(buff, "altitude : %6.2f m", altitude );\n print(buff,5);\n sprintf(buff, " error: %6.2f m", altitude_error_deviation);\n print(buff,6);\n\n\n char * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n if (geohash) {\n sprintf(buff, "geohash : %s",geohash );\n free(geohash);\n print(buff,7);\n }\n\n framebuffer_apply();\n bshal_delay_ms(1000);\n //test_uart_send(enableGST, sizeof(enableGST));\n }\n\n" ({) "{" (comment) "// float latitude= minmea_tocoord(&rmc.latitude);" (comment) "// float longitude= minmea_tocoord(&rmc.longitude);" (declaration) "float latitude= minmea_tocoord(&gga.latitude);" (primitive_type) "float" (init_declarator) "latitude= minmea_tocoord(&gga.latitude)" (identifier) "latitude" (=) "=" (call_expression) "minmea_tocoord(&gga.latitude)" (identifier) "minmea_tocoord" (argument_list) "(&gga.latitude)" (() "(" (pointer_expression) "&gga.latitude" (&) "&" (field_expression) "gga.latitude" (identifier) "gga" (.) "." (field_identifier) "latitude" ()) ")" (;) ";" (declaration) "float longitude= minmea_tocoord(&gga.longitude);" (primitive_type) "float" (init_declarator) "longitude= minmea_tocoord(&gga.longitude)" (identifier) "longitude" (=) "=" (call_expression) "minmea_tocoord(&gga.longitude)" (identifier) "minmea_tocoord" (argument_list) "(&gga.longitude)" (() "(" (pointer_expression) "&gga.longitude" (&) "&" (field_expression) "gga.longitude" (identifier) "gga" (.) "." (field_identifier) "longitude" ()) ")" (;) ";" (declaration) "float altitude= minmea_tofloat(&gga.altitude);" (primitive_type) "float" (init_declarator) "altitude= minmea_tofloat(&gga.altitude)" (identifier) "altitude" (=) "=" (call_expression) "minmea_tofloat(&gga.altitude)" (identifier) "minmea_tofloat" (argument_list) "(&gga.altitude)" (() "(" (pointer_expression) "&gga.altitude" (&) "&" (field_expression) "gga.altitude" (identifier) "gga" (.) "." (field_identifier) "altitude" ()) ")" (;) ";" (declaration) "float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);" (primitive_type) "float" (init_declarator) "latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation)" (identifier) "latitude_error_deviation" (=) "=" (call_expression) "minmea_tofloat(& gst.latitude_error_deviation)" (identifier) "minmea_tofloat" (argument_list) "(& gst.latitude_error_deviation)" (() "(" (pointer_expression) "& gst.latitude_error_deviation" (&) "&" (field_expression) "gst.latitude_error_deviation" (identifier) "gst" (.) "." (field_identifier) "latitude_error_deviation" ()) ")" (;) ";" (declaration) "float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);" (primitive_type) "float" (init_declarator) "longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation)" (identifier) "longitude_error_deviation" (=) "=" (call_expression) "minmea_tofloat(& gst.longitude_error_deviation)" (identifier) "minmea_tofloat" (argument_list) "(& gst.longitude_error_deviation)" (() "(" (pointer_expression) "& gst.longitude_error_deviation" (&) "&" (field_expression) "gst.longitude_error_deviation" (identifier) "gst" (.) "." (field_identifier) "longitude_error_deviation" ()) ")" (;) ";" (declaration) "float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);" (primitive_type) "float" (init_declarator) "altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation)" (identifier) "altitude_error_deviation" (=) "=" (call_expression) "minmea_tofloat(& gst.altitude_error_deviation)" (identifier) "minmea_tofloat" (argument_list) "(& gst.altitude_error_deviation)" (() "(" (pointer_expression) "& gst.altitude_error_deviation" (&) "&" (field_expression) "gst.altitude_error_deviation" (identifier) "gst" (.) "." (field_identifier) "altitude_error_deviation" ()) ")" (;) ";" (expression_statement) "sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds);" (call_expression) "sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds)" (identifier) "sprintf" (argument_list) "(buff, "%04d-%02d-%02d %02d:%02d:%02d (UTC)",\n rmc.date.year+2000,\n rmc.date.month,\n rmc.date.day,\n rmc.time.hours,\n rmc.time.minutes,\n rmc.time.seconds)" (() "(" (identifier) "buff" (,) "," (string_literal) ""%04d-%02d-%02d %02d:%02d:%02d (UTC)"" (") """ (string_content) "%04d-%02d-%02d %02d:%02d:%02d (UTC)" (") """ (,) "," (binary_expression) "rmc.date.year+2000" (field_expression) "rmc.date.year" (field_expression) "rmc.date" (identifier) "rmc" (.) "." (field_identifier) "date" (.) "." (field_identifier) "year" (+) "+" (number_literal) "2000" (,) "," (field_expression) "rmc.date.month" (field_expression) "rmc.date" (identifier) "rmc" (.) "." (field_identifier) "date" (.) "." (field_identifier) "month" (,) "," (field_expression) "rmc.date.day" (field_expression) "rmc.date" (identifier) "rmc" (.) "." (field_identifier) "date" (.) "." (field_identifier) "day" (,) "," (field_expression) "rmc.time.hours" (field_expression) "rmc.time" (identifier) "rmc" (.) "." (field_identifier) "time" (.) "." (field_identifier) "hours" (,) "," (field_expression) "rmc.time.minutes" (field_expression) "rmc.time" (identifier) "rmc" (.) "." (field_identifier) "time" (.) "." (field_identifier) "minutes" (,) "," (field_expression) "rmc.time.seconds" (field_expression) "rmc.time" (identifier) "rmc" (.) "." (field_identifier) "time" (.) "." (field_identifier) "seconds" ()) ")" (;) ";" (expression_statement) "print(buff,0);" (call_expression) "print(buff,0)" (identifier) "print" (argument_list) "(buff,0)" (() "(" (identifier) "buff" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "sprintf(buff, "latitude : %10.6f °", latitude);\n" (call_expression) "sprintf(buff, "latitude : %10.6f °", latitude);" (identifier) "sprintf" (argument_list) "(buff, "latitude : %10.6f °", latitude);" (() "(" (identifier) "buff" (,) "," (string_literal) ""latitude : %10.6f °"," (") """ (string_content) "latitude : %10.6f °"" (") "," (,) " " (identifier) "atitude)" ()) ";" (;) "\n" (expression_statement) "rint(buff,1);\n" (call_expression) "rint(buff,1);" (identifier) "rint(" (argument_list) "buff,1);" (() "b" (identifier) "uff," (,) "1" (number_literal) ")" ()) ";" (;) "\n" (expression_statement) "printf(buff, " error: %6.2f m", latitude_error_deviation);\n" (call_expression) "printf(buff, " error: %6.2f m", latitude_error_deviation);" (identifier) "printf(" (argument_list) "buff, " error: %6.2f m", latitude_error_deviation);" (() "b" (identifier) "uff," (,) " " (string_literal) " error: %6.2f m"," (") " " (string_content) " error: %6.2f m"" (") "," (,) " " (identifier) "atitude_error_deviation)" ()) ";" (;) "\n" (expression_statement) "rint(buff,2);\n" (call_expression) "rint(buff,2);" (identifier) "rint(" (argument_list) "buff,2);" (() "b" (identifier) "uff," (,) "2" (number_literal) ")" ()) ";" (;) "\n" (expression_statement) "printf(buff, "longitude: %10.6f °", longitude );\n " (call_expression) "printf(buff, "longitude: %10.6f °", longitude );\n" (identifier) "printf(" (argument_list) "buff, "longitude: %10.6f °", longitude );\n" (() "b" (identifier) "uff," (,) " " (string_literal) "longitude: %10.6f °", " (") "l" (string_content) "ongitude: %10.6f °"," (") " " (,) "l" (identifier) "ngitude )" ()) "\n" (;) " " (expression_statement) "int(buff,3);\n " (call_expression) "int(buff,3);\n" (identifier) "int(b" (argument_list) "uff,3);\n" (() "u" (identifier) "ff,3" (,) ")" (number_literal) ";" ()) "\n" (;) " " (expression_statement) "rintf(buff, " error: %6.2f m", longitude_error_deviation);\n " (call_expression) "rintf(buff, " error: %6.2f m", longitude_error_deviation);\n" (identifier) "rintf(b" (argument_list) "uff, " error: %6.2f m", longitude_error_deviation);\n" (() "u" (identifier) "ff, " (,) """ (string_literal) " error: %6.2f m", " (") " " (string_content) " error: %6.2f m"," (") " " (,) "l" (identifier) "ngitude_error_deviation);" ()) "\n" (;) " " (expression_statement) "int(buff,4);\n\n" (call_expression) "int(buff,4);\n" (identifier) "int(b" (argument_list) "uff,4);\n" (() "u" (identifier) "ff,4" (,) ")" (number_literal) ";" ()) "\n" (;) "\n" (expression_statement) "rintf(buff, "altitude : %6.2f m", altitude );\n " (call_expression) "rintf(buff, "altitude : %6.2f m", altitude );\n" (identifier) "rintf(b" (argument_list) "uff, "altitude : %6.2f m", altitude );\n" (() "u" (identifier) "ff, " (,) """ (string_literal) "ltitude : %6.2f m", " (") "l" (string_content) "titude : %6.2f m"," (") " " (,) "a" (identifier) "titude )" ()) "\n" (;) " " (expression_statement) "int(buff,5);\n " (call_expression) "int(buff,5);\n" (identifier) "int(b" (argument_list) "uff,5);\n" (() "u" (identifier) "ff,5" (,) ")" (number_literal) ";" ()) "\n" (;) " " (expression_statement) "rintf(buff, " error: %6.2f m", altitude_error_deviation);\n " (call_expression) "rintf(buff, " error: %6.2f m", altitude_error_deviation);\n" (identifier) "rintf(b" (argument_list) "uff, " error: %6.2f m", altitude_error_deviation);\n" (() "u" (identifier) "ff, " (,) """ (string_literal) " error: %6.2f m", " (") " " (string_content) " error: %6.2f m"," (") " " (,) "a" (identifier) "titude_error_deviation);" ()) "\n" (;) " " (expression_statement) "int(buff,6);\n\n" (call_expression) "int(buff,6);\n" (identifier) "int(b" (argument_list) "uff,6);\n" (() "u" (identifier) "ff,6" (,) ")" (number_literal) ";" ()) "\n" (;) "\n" (declaration) "ar * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n " (primitive_type) "ar *" (init_declarator) "geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n" (pointer_declarator) "geohash =" (*) "g" (identifier) "ohash =" (=) "g" (call_expression) "ohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n" (identifier) "ohash_encode(l" (argument_list) "atitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n" (() "a" (identifier) "titude,l" (,) "o" (identifier) "ngitude, " (,) "g" (call_expression) "ohash_precision(latitude_error_deviation, longitude_error_deviation) )" (identifier) "ohash_precision(l" (argument_list) "atitude_error_deviation, longitude_error_deviation) )" (() "a" (identifier) "titude_error_deviation, " (,) "l" (identifier) "ngitude_error_deviation) " ()) ")" ()) "\n" (;) " " (if_statement) " (geohash) {\n sprintf(buff, "geohash : %s",geohash );\n free(geohash);\n print(buff,7);\n }\n\n" (if) " (" (parenthesized_expression) "eohash) {" (() "e" (identifier) "ohash) " ()) "{" (compound_statement) " sprintf(buff, "geohash : %s",geohash );\n free(geohash);\n print(buff,7);\n }\n\n" ({) " " (expression_statement) "rintf(buff, "geohash : %s",geohash );\n " (call_expression) "rintf(buff, "geohash : %s",geohash );\n" (identifier) "rintf(b" (argument_list) "uff, "geohash : %s",geohash );\n" (() "u" (identifier) "ff, " (,) """ (string_literal) "eohash : %s",g" (") "e" (string_content) "ohash : %s"," (") "g" (,) "e" (identifier) "ohash )" ()) "\n" (;) " " (expression_statement) "ee(geohash);\n " (call_expression) "ee(geohash);\n" (identifier) "ee(g" (argument_list) "eohash);\n" (() "e" (identifier) "ohash);" ()) "\n" (;) " " (expression_statement) "int(buff,7);\n " (call_expression) "int(buff,7);\n" (identifier) "int(b" (argument_list) "uff,7);\n" (() "u" (identifier) "ff,7" (,) ")" (number_literal) ";" ()) "\n" (;) " " (}) "\n" (expression_statement) "amebuffer_apply();\n " (call_expression) "amebuffer_apply();\n" (identifier) "amebuffer_apply()" (argument_list) ";\n" (() ";" ()) "\n" (;) " " (expression_statement) "hal_delay_ms(1000);\n " (call_expression) "hal_delay_ms(1000);\n" (identifier) "hal_delay_ms(1" (argument_list) "000);\n" (() "0" (number_literal) "00);" ()) "\n" (;) " " (comment) "test_uart_send(enableGST, sizeof(enableGST));\n " (}) "\n" (}) ""
1,406
0
{"language": "c", "success": true, "metadata": {"lines": 226, "avg_line_length": 32.22, "nodes": 782, "errors": 0, "source_hash": "6bd82c4296897a6c2ad64037e0382b93c638b2c4fa4924410db364cd0d797669", "categorized_nodes": 594}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 0, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<string.h>", "parent": 3, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdfix.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdfix.h>", "parent": 6, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"system.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"system.h\"", "parent": 9, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"bshal_spim.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"bshal_spim.h\"", "parent": 12, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include \"bshal_delay.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"bshal_delay.h\"", "parent": 15, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 24}}, {"id": 18, "type": "preproc_include", "text": "#include \"bshal_i2cm.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"bshal_i2cm.h\"", "parent": 18, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 23}}, {"id": 21, "type": "preproc_include", "text": "#include \"bshal_uart.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"bshal_uart.h\"", "parent": 21, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 23}}, {"id": 24, "type": "preproc_include", "text": "#include \"bshal_gpio.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"bshal_gpio.h\"", "parent": 24, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 23}}, {"id": 27, "type": "preproc_include", "text": "#include \"i2c.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"i2c.h\"", "parent": 27, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 16}}, {"id": 30, "type": "preproc_include", "text": "#include \"minmea.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"minmea.h\"", "parent": 30, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 19}}, {"id": 33, "type": "preproc_include", "text": "#include \"geohash.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"geohash.h\"", "parent": 33, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 20}}, {"id": 36, "type": "declaration", "text": "bshal_i2cm_instance_t *gp_i2c = NULL;", "parent": null, "children": [37, 38], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 37}}, {"id": 37, "type": "type_identifier", "text": "bshal_i2cm_instance_t", "parent": 36, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 21}}, {"id": 38, "type": "init_declarator", "text": "*gp_i2c = NULL", "parent": 36, "children": [39, 42, 43], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 36}}, {"id": 39, "type": "pointer_declarator", "text": "*gp_i2c", "parent": 38, "children": [40, 41], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 29}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 23}}, {"id": 41, "type": "identifier", "text": "gp_i2c", "parent": 39, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 29}}, {"id": 42, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 31}}, {"id": 43, "type": "null", "text": "NULL", "parent": 38, "children": [44], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 36}}, {"id": 44, "type": "NULL", "text": "NULL", "parent": 43, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 36}}, {"id": 45, "type": "function_definition", "text": "void HardFault_Handler(void) {\n\n}", "parent": null, "children": [46, 47], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 46, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 4}}, {"id": 47, "type": "function_declarator", "text": "HardFault_Handler(void)", "parent": 45, "children": [48, 49], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 28}}, {"id": 48, "type": "identifier", "text": "HardFault_Handler", "parent": 47, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 22}}, {"id": 49, "type": "parameter_list", "text": "(void)", "parent": 47, "children": [50], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 28}}, {"id": 50, "type": "parameter_declaration", "text": "void", "parent": 49, "children": [51], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 27}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 27}}, {"id": 52, "type": "function_definition", "text": "void SysTick_Handler(void) {\n\tHAL_IncTick();\n}", "parent": null, "children": [53, 54], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 54, "type": "function_declarator", "text": "SysTick_Handler(void)", "parent": 52, "children": [55, 56], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 26}}, {"id": 55, "type": "identifier", "text": "SysTick_Handler", "parent": 54, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 20}}, {"id": 56, "type": "parameter_list", "text": "(void)", "parent": 54, "children": [57], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 26}}, {"id": 57, "type": "parameter_declaration", "text": "void", "parent": 56, "children": [58], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 25}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 25}}, {"id": 59, "type": "call_expression", "text": "HAL_IncTick()", "parent": 52, "children": [60, 61], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 14}}, {"id": 60, "type": "identifier", "text": "HAL_IncTick", "parent": 59, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 12}}, {"id": 61, "type": "argument_list", "text": "()", "parent": 59, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 14}}, {"id": 62, "type": "function_definition", "text": "void SystemClock_Config(void) {\n\tClockSetup_HSE8_SYS72();\n}", "parent": null, "children": [63, 64], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 64, "type": "function_declarator", "text": "SystemClock_Config(void)", "parent": 62, "children": [65, 66], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 29}}, {"id": 65, "type": "identifier", "text": "SystemClock_Config", "parent": 64, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 23}}, {"id": 66, "type": "parameter_list", "text": "(void)", "parent": 64, "children": [67], "start_point": {"row": 60, "column": 23}, "end_point": {"row": 60, "column": 29}}, {"id": 67, "type": "parameter_declaration", "text": "void", "parent": 66, "children": [68], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 28}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 28}}, {"id": 69, "type": "call_expression", "text": "ClockSetup_HSE8_SYS72()", "parent": 62, "children": [70, 71], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 24}}, {"id": 70, "type": "identifier", "text": "ClockSetup_HSE8_SYS72", "parent": 69, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 22}}, {"id": 71, "type": "argument_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 24}}, {"id": 72, "type": "declaration", "text": "struct minmea_sentence_rmc rmc;", "parent": null, "children": [73, 76], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 31}}, {"id": 73, "type": "struct_specifier", "text": "struct minmea_sentence_rmc", "parent": 72, "children": [74, 75], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 26}}, {"id": 74, "type": "struct", "text": "struct", "parent": 73, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 75, "type": "type_identifier", "text": "minmea_sentence_rmc", "parent": 73, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 26}}, {"id": 76, "type": "identifier", "text": "rmc", "parent": 72, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 30}}, {"id": 77, "type": "declaration", "text": "struct minmea_sentence_gst gst;", "parent": null, "children": [78, 81], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 31}}, {"id": 78, "type": "struct_specifier", "text": "struct minmea_sentence_gst", "parent": 77, "children": [79, 80], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 26}}, {"id": 79, "type": "struct", "text": "struct", "parent": 78, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 80, "type": "type_identifier", "text": "minmea_sentence_gst", "parent": 78, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 26}}, {"id": 81, "type": "identifier", "text": "gst", "parent": 77, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 30}}, {"id": 82, "type": "declaration", "text": "struct minmea_sentence_gga gga;", "parent": null, "children": [83, 86], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 31}}, {"id": 83, "type": "struct_specifier", "text": "struct minmea_sentence_gga", "parent": 82, "children": [84, 85], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 26}}, {"id": 84, "type": "struct", "text": "struct", "parent": 83, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 85, "type": "type_identifier", "text": "minmea_sentence_gga", "parent": 83, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 26}}, {"id": 86, "type": "identifier", "text": "gga", "parent": 82, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 30}}, {"id": 87, "type": "declaration", "text": "char buff[32];", "parent": null, "children": [88, 89], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 14}}, {"id": 88, "type": "primitive_type", "text": "char", "parent": 87, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 4}}, {"id": 89, "type": "array_declarator", "text": "buff[32]", "parent": 87, "children": [90, 91], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 13}}, {"id": 90, "type": "identifier", "text": "buff", "parent": 89, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 9}}, {"id": 91, "type": "number_literal", "text": "32", "parent": 89, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 12}}, {"id": 92, "type": "function_definition", "text": "void uart_gnss_cb(char *data, size_t size) {\n\n//\tstruct minmea_sentence_rmc rmc;\n//\tstruct minmea_sentence_gst gst;\n\tenum minmea_sentence_id sentence_id = minmea_sentence_id(data, false);\n\tswitch (sentence_id ) {\n\n\tcase MINMEA_INVALID:\n\t\tbreak;\n\tcase MINMEA_UNKNOWN:\n\t\tbreak;\n\tcase MINMEA_SENTENCE_RMC:\n\n//\t\tstatic int cnt = 0;\n//\t\tcnt++;\n//\n//\t\tsprintf(buff,\"%d\",cnt);\n//\t\tprint(buff,5);\n\t\tbool success = minmea_parse_rmc( &rmc, data);\n\n\t\tif (success) {\n//\t\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n//\t\t\tsprintf(buff, \"latitude: %10.6f\", latitude);\n//\t\t\tprint(buff,1);\n//\t\t\tsprintf(buff, \"longitude: %10.6f\", longitude);\n//\t\t\tprint(buff,2);\n\t\t} else {\n\t\t\tprint(\"no fix\", 1);\n\t\t}\n\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GGA:\n\t\t// Default V.KEL\n\t\tsuccess = minmea_parse_gga( &gga, data);\n\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GSA:\n\t\t// Default V.KEL\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GLL:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GST:\n\t\tsuccess = minmea_parse_gst( &gst, data);\n//\t float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n//\t float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n//\t float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\t\t// Contains RMS\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GSV:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_VTG:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_ZDA:\n\t\tbreak;\n\t}\n}", "parent": null, "children": [93, 94], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 135, "column": 1}}, {"id": 93, "type": "primitive_type", "text": "void", "parent": 92, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 4}}, {"id": 94, "type": "function_declarator", "text": "uart_gnss_cb(char *data, size_t size)", "parent": 92, "children": [95, 96], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 42}}, {"id": 95, "type": "identifier", "text": "uart_gnss_cb", "parent": 94, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 17}}, {"id": 96, "type": "parameter_list", "text": "(char *data, size_t size)", "parent": 94, "children": [97, 102], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 42}}, {"id": 97, "type": "parameter_declaration", "text": "char *data", "parent": 96, "children": [98, 99], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 28}}, {"id": 98, "type": "primitive_type", "text": "char", "parent": 97, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 22}}, {"id": 99, "type": "pointer_declarator", "text": "*data", "parent": 97, "children": [100, 101], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 28}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 24}}, {"id": 101, "type": "identifier", "text": "data", "parent": 99, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 28}}, {"id": 102, "type": "parameter_declaration", "text": "size_t size", "parent": 96, "children": [103, 104], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 41}}, {"id": 103, "type": "primitive_type", "text": "size_t", "parent": 102, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 36}}, {"id": 104, "type": "identifier", "text": "size", "parent": 102, "children": [], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 41}}, {"id": 105, "type": "declaration", "text": "enum minmea_sentence_id sentence_id = minmea_sentence_id(data, false);", "parent": 92, "children": [106, 109], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 71}}, {"id": 106, "type": "enum_specifier", "text": "enum minmea_sentence_id", "parent": 105, "children": [107, 108], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 24}}, {"id": 107, "type": "enum", "text": "enum", "parent": 106, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 5}}, {"id": 108, "type": "type_identifier", "text": "minmea_sentence_id", "parent": 106, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 24}}, {"id": 109, "type": "init_declarator", "text": "sentence_id = minmea_sentence_id(data, false)", "parent": 105, "children": [110, 111, 112], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 70}}, {"id": 110, "type": "identifier", "text": "sentence_id", "parent": 109, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 36}}, {"id": 111, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 38}}, {"id": 112, "type": "call_expression", "text": "minmea_sentence_id(data, false)", "parent": 109, "children": [113, 114], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 70}}, {"id": 113, "type": "identifier", "text": "minmea_sentence_id", "parent": 112, "children": [], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 57}}, {"id": 114, "type": "argument_list", "text": "(data, false)", "parent": 112, "children": [115, 116], "start_point": {"row": 76, "column": 57}, "end_point": {"row": 76, "column": 70}}, {"id": 115, "type": "identifier", "text": "data", "parent": 114, "children": [], "start_point": {"row": 76, "column": 58}, "end_point": {"row": 76, "column": 62}}, {"id": 116, "type": "false", "text": "false", "parent": 114, "children": [], "start_point": {"row": 76, "column": 64}, "end_point": {"row": 76, "column": 69}}, {"id": 117, "type": "switch_statement", "text": "switch (sentence_id ) {\n\n\tcase MINMEA_INVALID:\n\t\tbreak;\n\tcase MINMEA_UNKNOWN:\n\t\tbreak;\n\tcase MINMEA_SENTENCE_RMC:\n\n//\t\tstatic int cnt = 0;\n//\t\tcnt++;\n//\n//\t\tsprintf(buff,\"%d\",cnt);\n//\t\tprint(buff,5);\n\t\tbool success = minmea_parse_rmc( &rmc, data);\n\n\t\tif (success) {\n//\t\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n//\t\t\tsprintf(buff, \"latitude: %10.6f\", latitude);\n//\t\t\tprint(buff,1);\n//\t\t\tsprintf(buff, \"longitude: %10.6f\", longitude);\n//\t\t\tprint(buff,2);\n\t\t} else {\n\t\t\tprint(\"no fix\", 1);\n\t\t}\n\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GGA:\n\t\t// Default V.KEL\n\t\tsuccess = minmea_parse_gga( &gga, data);\n\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GSA:\n\t\t// Default V.KEL\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GLL:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GST:\n\t\tsuccess = minmea_parse_gst( &gst, data);\n//\t float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n//\t float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n//\t float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\t\t// Contains RMS\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GSV:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_VTG:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_ZDA:\n\t\tbreak;\n\t}", "parent": 92, "children": [118, 119], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 134, "column": 2}}, {"id": 118, "type": "switch", "text": "switch", "parent": 117, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 7}}, {"id": 119, "type": "parenthesized_expression", "text": "(sentence_id )", "parent": 117, "children": [120], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 23}}, {"id": 120, "type": "identifier", "text": "sentence_id", "parent": 119, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 20}}, {"id": 121, "type": "case_statement", "text": "case MINMEA_INVALID:\n\t\tbreak;", "parent": 117, "children": [122, 123, 124], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 80, "column": 8}}, {"id": 122, "type": "case", "text": "case", "parent": 121, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 5}}, {"id": 123, "type": "identifier", "text": "MINMEA_INVALID", "parent": 121, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 20}}, {"id": 124, "type": "break_statement", "text": "break;", "parent": 121, "children": [125], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 8}}, {"id": 125, "type": "break", "text": "break", "parent": 124, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 7}}, {"id": 126, "type": "case_statement", "text": "case MINMEA_UNKNOWN:\n\t\tbreak;", "parent": 117, "children": [127, 128, 129], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 82, "column": 8}}, {"id": 127, "type": "case", "text": "case", "parent": 126, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 128, "type": "identifier", "text": "MINMEA_UNKNOWN", "parent": 126, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 20}}, {"id": 129, "type": "break_statement", "text": "break;", "parent": 126, "children": [130], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 8}}, {"id": 130, "type": "break", "text": "break", "parent": 129, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 7}}, {"id": 131, "type": "case_statement", "text": "case MINMEA_SENTENCE_RMC:\n\n//\t\tstatic int cnt = 0;\n//\t\tcnt++;\n//\n//\t\tsprintf(buff,\"%d\",cnt);\n//\t\tprint(buff,5);\n\t\tbool success = minmea_parse_rmc( &rmc, data);\n\n\t\tif (success) {\n//\t\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n//\t\t\tsprintf(buff, \"latitude: %10.6f\", latitude);\n//\t\t\tprint(buff,1);\n//\t\t\tsprintf(buff, \"longitude: %10.6f\", longitude);\n//\t\t\tprint(buff,2);\n\t\t} else {\n\t\t\tprint(\"no fix\", 1);\n\t\t}\n\n\t\tbreak;", "parent": 117, "children": [132, 133, 134, 145, 154], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 103, "column": 8}}, {"id": 132, "type": "case", "text": "case", "parent": 131, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 5}}, {"id": 133, "type": "identifier", "text": "MINMEA_SENTENCE_RMC", "parent": 131, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 25}}, {"id": 134, "type": "declaration", "text": "bool success = minmea_parse_rmc( &rmc, data);", "parent": 131, "children": [135, 136], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 47}}, {"id": 135, "type": "primitive_type", "text": "bool", "parent": 134, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 6}}, {"id": 136, "type": "init_declarator", "text": "success = minmea_parse_rmc( &rmc, data)", "parent": 134, "children": [137, 138, 139], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 46}}, {"id": 137, "type": "identifier", "text": "success", "parent": 136, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 14}}, {"id": 138, "type": "=", "text": "=", "parent": 136, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 16}}, {"id": 139, "type": "call_expression", "text": "minmea_parse_rmc( &rmc, data)", "parent": 136, "children": [140, 141], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 46}}, {"id": 140, "type": "identifier", "text": "minmea_parse_rmc", "parent": 139, "children": [], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 33}}, {"id": 141, "type": "argument_list", "text": "( &rmc, data)", "parent": 139, "children": [142, 144], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 46}}, {"id": 142, "type": "pointer_expression", "text": "&rmc", "parent": 141, "children": [143], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 39}}, {"id": 143, "type": "identifier", "text": "rmc", "parent": 142, "children": [], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 39}}, {"id": 144, "type": "identifier", "text": "data", "parent": 141, "children": [], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 45}}, {"id": 145, "type": "if_statement", "text": "if (success) {\n//\t\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n//\t\t\tsprintf(buff, \"latitude: %10.6f\", latitude);\n//\t\t\tprint(buff,1);\n//\t\t\tsprintf(buff, \"longitude: %10.6f\", longitude);\n//\t\t\tprint(buff,2);\n\t\t} else {\n\t\t\tprint(\"no fix\", 1);\n\t\t}", "parent": 131, "children": [146, 148], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 101, "column": 3}}, {"id": 146, "type": "parenthesized_expression", "text": "(success)", "parent": 145, "children": [147], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 14}}, {"id": 147, "type": "identifier", "text": "success", "parent": 146, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 13}}, {"id": 148, "type": "else_clause", "text": "else {\n\t\t\tprint(\"no fix\", 1);\n\t\t}", "parent": 145, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 101, "column": 3}}, {"id": 149, "type": "call_expression", "text": "print(\"no fix\", 1)", "parent": 148, "children": [150, 151], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 21}}, {"id": 150, "type": "identifier", "text": "print", "parent": 149, "children": [], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 8}}, {"id": 151, "type": "argument_list", "text": "(\"no fix\", 1)", "parent": 149, "children": [152, 153], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 21}}, {"id": 152, "type": "string_literal", "text": "\"no fix\"", "parent": 151, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 17}}, {"id": 153, "type": "number_literal", "text": "1", "parent": 151, "children": [], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 20}}, {"id": 154, "type": "break_statement", "text": "break;", "parent": 131, "children": [155], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 8}}, {"id": 155, "type": "break", "text": "break", "parent": 154, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 7}}, {"id": 156, "type": "case_statement", "text": "case MINMEA_SENTENCE_GGA:\n\t\t// Default V.KEL\n\t\tsuccess = minmea_parse_gga( &gga, data);\n\n\t\t//\n\t\tbreak;", "parent": 117, "children": [157, 158, 168], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 109, "column": 8}}, {"id": 157, "type": "case", "text": "case", "parent": 156, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 5}}, {"id": 158, "type": "identifier", "text": "MINMEA_SENTENCE_GGA", "parent": 156, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 25}}, {"id": 159, "type": "assignment_expression", "text": "success = minmea_parse_gga( &gga, data)", "parent": 156, "children": [160, 161, 162], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 41}}, {"id": 160, "type": "identifier", "text": "success", "parent": 159, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 9}}, {"id": 161, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 11}}, {"id": 162, "type": "call_expression", "text": "minmea_parse_gga( &gga, data)", "parent": 159, "children": [163, 164], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 41}}, {"id": 163, "type": "identifier", "text": "minmea_parse_gga", "parent": 162, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 28}}, {"id": 164, "type": "argument_list", "text": "( &gga, data)", "parent": 162, "children": [165, 167], "start_point": {"row": 106, "column": 28}, "end_point": {"row": 106, "column": 41}}, {"id": 165, "type": "pointer_expression", "text": "&gga", "parent": 164, "children": [166], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 34}}, {"id": 166, "type": "identifier", "text": "gga", "parent": 165, "children": [], "start_point": {"row": 106, "column": 31}, "end_point": {"row": 106, "column": 34}}, {"id": 167, "type": "identifier", "text": "data", "parent": 164, "children": [], "start_point": {"row": 106, "column": 36}, "end_point": {"row": 106, "column": 40}}, {"id": 168, "type": "break_statement", "text": "break;", "parent": 156, "children": [169], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 8}}, {"id": 169, "type": "break", "text": "break", "parent": 168, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 7}}, {"id": 170, "type": "case_statement", "text": "case MINMEA_SENTENCE_GSA:\n\t\t// Default V.KEL\n\t\tbreak;", "parent": 117, "children": [171, 172, 173], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 112, "column": 8}}, {"id": 171, "type": "case", "text": "case", "parent": 170, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 5}}, {"id": 172, "type": "identifier", "text": "MINMEA_SENTENCE_GSA", "parent": 170, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 25}}, {"id": 173, "type": "break_statement", "text": "break;", "parent": 170, "children": [174], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 8}}, {"id": 174, "type": "break", "text": "break", "parent": 173, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 7}}, {"id": 175, "type": "case_statement", "text": "case MINMEA_SENTENCE_GLL:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;", "parent": 117, "children": [176, 177, 178], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 116, "column": 8}}, {"id": 176, "type": "case", "text": "case", "parent": 175, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 5}}, {"id": 177, "type": "identifier", "text": "MINMEA_SENTENCE_GLL", "parent": 175, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 25}}, {"id": 178, "type": "break_statement", "text": "break;", "parent": 175, "children": [179], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 8}}, {"id": 179, "type": "break", "text": "break", "parent": 178, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 7}}, {"id": 180, "type": "case_statement", "text": "case MINMEA_SENTENCE_GST:\n\t\tsuccess = minmea_parse_gst( &gst, data);\n//\t float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n//\t float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n//\t float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\t\t// Contains RMS\n\t\tbreak;", "parent": 117, "children": [181, 182, 192], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 123, "column": 8}}, {"id": 181, "type": "case", "text": "case", "parent": 180, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 5}}, {"id": 182, "type": "identifier", "text": "MINMEA_SENTENCE_GST", "parent": 180, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 25}}, {"id": 183, "type": "assignment_expression", "text": "success = minmea_parse_gst( &gst, data)", "parent": 180, "children": [184, 185, 186], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 41}}, {"id": 184, "type": "identifier", "text": "success", "parent": 183, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 9}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 11}}, {"id": 186, "type": "call_expression", "text": "minmea_parse_gst( &gst, data)", "parent": 183, "children": [187, 188], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 41}}, {"id": 187, "type": "identifier", "text": "minmea_parse_gst", "parent": 186, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 28}}, {"id": 188, "type": "argument_list", "text": "( &gst, data)", "parent": 186, "children": [189, 191], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 41}}, {"id": 189, "type": "pointer_expression", "text": "&gst", "parent": 188, "children": [190], "start_point": {"row": 118, "column": 30}, "end_point": {"row": 118, "column": 34}}, {"id": 190, "type": "identifier", "text": "gst", "parent": 189, "children": [], "start_point": {"row": 118, "column": 31}, "end_point": {"row": 118, "column": 34}}, {"id": 191, "type": "identifier", "text": "data", "parent": 188, "children": [], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 40}}, {"id": 192, "type": "break_statement", "text": "break;", "parent": 180, "children": [193], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 8}}, {"id": 193, "type": "break", "text": "break", "parent": 192, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 7}}, {"id": 194, "type": "case_statement", "text": "case MINMEA_SENTENCE_GSV:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;", "parent": 117, "children": [195, 196, 197], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 127, "column": 8}}, {"id": 195, "type": "case", "text": "case", "parent": 194, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 5}}, {"id": 196, "type": "identifier", "text": "MINMEA_SENTENCE_GSV", "parent": 194, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 25}}, {"id": 197, "type": "break_statement", "text": "break;", "parent": 194, "children": [198], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 8}}, {"id": 198, "type": "break", "text": "break", "parent": 197, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 7}}, {"id": 199, "type": "case_statement", "text": "case MINMEA_SENTENCE_VTG:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;", "parent": 117, "children": [200, 201, 202], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 131, "column": 8}}, {"id": 200, "type": "case", "text": "case", "parent": 199, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 5}}, {"id": 201, "type": "identifier", "text": "MINMEA_SENTENCE_VTG", "parent": 199, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 25}}, {"id": 202, "type": "break_statement", "text": "break;", "parent": 199, "children": [203], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 8}}, {"id": 203, "type": "break", "text": "break", "parent": 202, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 7}}, {"id": 204, "type": "case_statement", "text": "case MINMEA_SENTENCE_ZDA:\n\t\tbreak;", "parent": 117, "children": [205, 206, 207], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 133, "column": 8}}, {"id": 205, "type": "case", "text": "case", "parent": 204, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 5}}, {"id": 206, "type": "identifier", "text": "MINMEA_SENTENCE_ZDA", "parent": 204, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 25}}, {"id": 207, "type": "break_statement", "text": "break;", "parent": 204, "children": [208], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 8}}, {"id": 208, "type": "break", "text": "break", "parent": 207, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 7}}, {"id": 209, "type": "function_definition", "text": "void uart_init(void) {\n\t//static uint8_t receive_buffer[512];\n\tstatic uint8_t receive_buffer[1024];\n\tstatic bshal_uart_async_t bshal_uart_async;\n\tstatic bshal_uart_instance_t bshal_uart_instance;\n\n\n\t// Configuration for the Async handler, to configure the synchronosation\n\tbshal_uart_async.callback = uart_gnss_cb; // Callback for the resulting NMEA string\n\n\tbshal_uart_async.receive_buffer = receive_buffer;\n\tbshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128;\n\tbshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128;\n\tbshal_uart_async.process_buffer_len = 128;\n\n\n\tbshal_uart_async.null_terminated_string = true; // Terminate the resulting string\n\n\tbshal_uart_async.sync_begin_data = \"$\";\t// NMEA sentences start with $\n\tbshal_uart_async.sync_begin_len = 1; //\n\tbshal_uart_async.sync_begin_include = true; // Include the $ in the result\n\n\tbshal_uart_async.sync_end = \"\\r\\n\"; // NMEA sentences end with \\r\\n\n\tbshal_uart_async.sync_end_len = 2;\n\tbshal_uart_async.sync_end_include = true; // Do include the \\r\\n in the result\n\n\tbshal_uart_async.max_data_len = 83; // The maximum length of an NMEA string\n\n\tbshal_uart_instance.async = & bshal_uart_async; // Asign the async handler to the uart instance\n\n\n\n\t// 9600,8,N,1\n\tbshal_uart_instance.bps = 9600;\n\tbshal_uart_instance.data_bits = 8;\n\tbshal_uart_instance.parity = bshal_uart_parity_none;\n\tbshal_uart_instance.stop_bits = 1;\n\n\tbshal_uart_instance.fc = bshal_uart_flow_control_none;\n\n\tbshal_uart_instance.hw_nr = 2; // UASRT 2\n\tbshal_uart_instance.cts_pin = -1; // No flow control\n\tbshal_uart_instance.rts_pin = -1; // No flow control\n\tbshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3); // PA3\n\tbshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2); // PA2\n\n\tbshal_stm32_uart_init(&bshal_uart_instance);\n\n\n}", "parent": null, "children": [210, 211], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 186, "column": 1}}, {"id": 210, "type": "primitive_type", "text": "void", "parent": 209, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 4}}, {"id": 211, "type": "function_declarator", "text": "uart_init(void)", "parent": 209, "children": [212, 213], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 20}}, {"id": 212, "type": "identifier", "text": "uart_init", "parent": 211, "children": [], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 14}}, {"id": 213, "type": "parameter_list", "text": "(void)", "parent": 211, "children": [214], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 20}}, {"id": 214, "type": "parameter_declaration", "text": "void", "parent": 213, "children": [215], "start_point": {"row": 137, "column": 15}, "end_point": {"row": 137, "column": 19}}, {"id": 215, "type": "primitive_type", "text": "void", "parent": 214, "children": [], "start_point": {"row": 137, "column": 15}, "end_point": {"row": 137, "column": 19}}, {"id": 216, "type": "declaration", "text": "static uint8_t receive_buffer[1024];", "parent": 209, "children": [217, 218], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 37}}, {"id": 217, "type": "primitive_type", "text": "uint8_t", "parent": 216, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 15}}, {"id": 218, "type": "array_declarator", "text": "receive_buffer[1024]", "parent": 216, "children": [219, 220], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 36}}, {"id": 219, "type": "identifier", "text": "receive_buffer", "parent": 218, "children": [], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 30}}, {"id": 220, "type": "number_literal", "text": "1024", "parent": 218, "children": [], "start_point": {"row": 139, "column": 31}, "end_point": {"row": 139, "column": 35}}, {"id": 221, "type": "declaration", "text": "static bshal_uart_async_t bshal_uart_async;", "parent": 209, "children": [222, 223], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 44}}, {"id": 222, "type": "type_identifier", "text": "bshal_uart_async_t", "parent": 221, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 26}}, {"id": 223, "type": "identifier", "text": "bshal_uart_async", "parent": 221, "children": [], "start_point": {"row": 140, "column": 27}, "end_point": {"row": 140, "column": 43}}, {"id": 224, "type": "declaration", "text": "static bshal_uart_instance_t bshal_uart_instance;", "parent": 209, "children": [225, 226], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 50}}, {"id": 225, "type": "type_identifier", "text": "bshal_uart_instance_t", "parent": 224, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 29}}, {"id": 226, "type": "identifier", "text": "bshal_uart_instance", "parent": 224, "children": [], "start_point": {"row": 141, "column": 30}, "end_point": {"row": 141, "column": 49}}, {"id": 227, "type": "assignment_expression", "text": "bshal_uart_async.callback = uart_gnss_cb", "parent": 209, "children": [228, 231, 232], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 41}}, {"id": 228, "type": "field_expression", "text": "bshal_uart_async.callback", "parent": 227, "children": [229, 230], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 26}}, {"id": 229, "type": "identifier", "text": "bshal_uart_async", "parent": 228, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 17}}, {"id": 230, "type": "field_identifier", "text": "callback", "parent": 228, "children": [], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 26}}, {"id": 231, "type": "=", "text": "=", "parent": 227, "children": [], "start_point": {"row": 145, "column": 27}, "end_point": {"row": 145, "column": 28}}, {"id": 232, "type": "identifier", "text": "uart_gnss_cb", "parent": 227, "children": [], "start_point": {"row": 145, "column": 29}, "end_point": {"row": 145, "column": 41}}, {"id": 233, "type": "assignment_expression", "text": "bshal_uart_async.receive_buffer = receive_buffer", "parent": 209, "children": [234, 237, 238], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 49}}, {"id": 234, "type": "field_expression", "text": "bshal_uart_async.receive_buffer", "parent": 233, "children": [235, 236], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 32}}, {"id": 235, "type": "identifier", "text": "bshal_uart_async", "parent": 234, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 17}}, {"id": 236, "type": "field_identifier", "text": "receive_buffer", "parent": 234, "children": [], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 32}}, {"id": 237, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 147, "column": 33}, "end_point": {"row": 147, "column": 34}}, {"id": 238, "type": "identifier", "text": "receive_buffer", "parent": 233, "children": [], "start_point": {"row": 147, "column": 35}, "end_point": {"row": 147, "column": 49}}, {"id": 239, "type": "assignment_expression", "text": "bshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128", "parent": 209, "children": [240, 243, 244], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 67}}, {"id": 240, "type": "field_expression", "text": "bshal_uart_async.receive_buffer_len", "parent": 239, "children": [241, 242], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 36}}, {"id": 241, "type": "identifier", "text": "bshal_uart_async", "parent": 240, "children": [], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 17}}, {"id": 242, "type": "field_identifier", "text": "receive_buffer_len", "parent": 240, "children": [], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 36}}, {"id": 243, "type": "=", "text": "=", "parent": 239, "children": [], "start_point": {"row": 148, "column": 37}, "end_point": {"row": 148, "column": 38}}, {"id": 244, "type": "binary_expression", "text": "sizeof(receive_buffer) - 128", "parent": 239, "children": [245, 248, 249], "start_point": {"row": 148, "column": 39}, "end_point": {"row": 148, "column": 67}}, {"id": 245, "type": "sizeof_expression", "text": "sizeof(receive_buffer)", "parent": 244, "children": [246], "start_point": {"row": 148, "column": 39}, "end_point": {"row": 148, "column": 61}}, {"id": 246, "type": "parenthesized_expression", "text": "(receive_buffer)", "parent": 245, "children": [247], "start_point": {"row": 148, "column": 45}, "end_point": {"row": 148, "column": 61}}, {"id": 247, "type": "identifier", "text": "receive_buffer", "parent": 246, "children": [], "start_point": {"row": 148, "column": 46}, "end_point": {"row": 148, "column": 60}}, {"id": 248, "type": "-", "text": "-", "parent": 244, "children": [], "start_point": {"row": 148, "column": 62}, "end_point": {"row": 148, "column": 63}}, {"id": 249, "type": "number_literal", "text": "128", "parent": 244, "children": [], "start_point": {"row": 148, "column": 64}, "end_point": {"row": 148, "column": 67}}, {"id": 250, "type": "assignment_expression", "text": "bshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128", "parent": 209, "children": [251, 254, 255], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 80}}, {"id": 251, "type": "field_expression", "text": "bshal_uart_async.process_buffer", "parent": 250, "children": [252, 253], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 32}}, {"id": 252, "type": "identifier", "text": "bshal_uart_async", "parent": 251, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 17}}, {"id": 253, "type": "field_identifier", "text": "process_buffer", "parent": 251, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 32}}, {"id": 254, "type": "=", "text": "=", "parent": 250, "children": [], "start_point": {"row": 149, "column": 33}, "end_point": {"row": 149, "column": 34}}, {"id": 255, "type": "binary_expression", "text": "receive_buffer + sizeof(receive_buffer) - 128", "parent": 250, "children": [256, 262, 263], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 80}}, {"id": 256, "type": "binary_expression", "text": "receive_buffer + sizeof(receive_buffer)", "parent": 255, "children": [257, 258, 259], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 74}}, {"id": 257, "type": "identifier", "text": "receive_buffer", "parent": 256, "children": [], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 49}}, {"id": 258, "type": "+", "text": "+", "parent": 256, "children": [], "start_point": {"row": 149, "column": 50}, "end_point": {"row": 149, "column": 51}}, {"id": 259, "type": "sizeof_expression", "text": "sizeof(receive_buffer)", "parent": 256, "children": [260], "start_point": {"row": 149, "column": 52}, "end_point": {"row": 149, "column": 74}}, {"id": 260, "type": "parenthesized_expression", "text": "(receive_buffer)", "parent": 259, "children": [261], "start_point": {"row": 149, "column": 58}, "end_point": {"row": 149, "column": 74}}, {"id": 261, "type": "identifier", "text": "receive_buffer", "parent": 260, "children": [], "start_point": {"row": 149, "column": 59}, "end_point": {"row": 149, "column": 73}}, {"id": 262, "type": "-", "text": "-", "parent": 255, "children": [], "start_point": {"row": 149, "column": 75}, "end_point": {"row": 149, "column": 76}}, {"id": 263, "type": "number_literal", "text": "128", "parent": 255, "children": [], "start_point": {"row": 149, "column": 77}, "end_point": {"row": 149, "column": 80}}, {"id": 264, "type": "assignment_expression", "text": "bshal_uart_async.process_buffer_len = 128", "parent": 209, "children": [265, 268, 269], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 42}}, {"id": 265, "type": "field_expression", "text": "bshal_uart_async.process_buffer_len", "parent": 264, "children": [266, 267], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 36}}, {"id": 266, "type": "identifier", "text": "bshal_uart_async", "parent": 265, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 17}}, {"id": 267, "type": "field_identifier", "text": "process_buffer_len", "parent": 265, "children": [], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 36}}, {"id": 268, "type": "=", "text": "=", "parent": 264, "children": [], "start_point": {"row": 150, "column": 37}, "end_point": {"row": 150, "column": 38}}, {"id": 269, "type": "number_literal", "text": "128", "parent": 264, "children": [], "start_point": {"row": 150, "column": 39}, "end_point": {"row": 150, "column": 42}}, {"id": 270, "type": "assignment_expression", "text": "bshal_uart_async.null_terminated_string = true", "parent": 209, "children": [271, 274, 275], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 47}}, {"id": 271, "type": "field_expression", "text": "bshal_uart_async.null_terminated_string", "parent": 270, "children": [272, 273], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 40}}, {"id": 272, "type": "identifier", "text": "bshal_uart_async", "parent": 271, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 17}}, {"id": 273, "type": "field_identifier", "text": "null_terminated_string", "parent": 271, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 40}}, {"id": 274, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 153, "column": 41}, "end_point": {"row": 153, "column": 42}}, {"id": 275, "type": "true", "text": "true", "parent": 270, "children": [], "start_point": {"row": 153, "column": 43}, "end_point": {"row": 153, "column": 47}}, {"id": 276, "type": "assignment_expression", "text": "bshal_uart_async.sync_begin_data = \"$\"", "parent": 209, "children": [277, 280, 281], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 39}}, {"id": 277, "type": "field_expression", "text": "bshal_uart_async.sync_begin_data", "parent": 276, "children": [278, 279], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 33}}, {"id": 278, "type": "identifier", "text": "bshal_uart_async", "parent": 277, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 17}}, {"id": 279, "type": "field_identifier", "text": "sync_begin_data", "parent": 277, "children": [], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 33}}, {"id": 280, "type": "=", "text": "=", "parent": 276, "children": [], "start_point": {"row": 155, "column": 34}, "end_point": {"row": 155, "column": 35}}, {"id": 281, "type": "string_literal", "text": "\"$\"", "parent": 276, "children": [], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 39}}, {"id": 282, "type": "assignment_expression", "text": "bshal_uart_async.sync_begin_len = 1", "parent": 209, "children": [283, 286, 287], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 36}}, {"id": 283, "type": "field_expression", "text": "bshal_uart_async.sync_begin_len", "parent": 282, "children": [284, 285], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 32}}, {"id": 284, "type": "identifier", "text": "bshal_uart_async", "parent": 283, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 17}}, {"id": 285, "type": "field_identifier", "text": "sync_begin_len", "parent": 283, "children": [], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 32}}, {"id": 286, "type": "=", "text": "=", "parent": 282, "children": [], "start_point": {"row": 156, "column": 33}, "end_point": {"row": 156, "column": 34}}, {"id": 287, "type": "number_literal", "text": "1", "parent": 282, "children": [], "start_point": {"row": 156, "column": 35}, "end_point": {"row": 156, "column": 36}}, {"id": 288, "type": "assignment_expression", "text": "bshal_uart_async.sync_begin_include = true", "parent": 209, "children": [289, 292, 293], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 43}}, {"id": 289, "type": "field_expression", "text": "bshal_uart_async.sync_begin_include", "parent": 288, "children": [290, 291], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 36}}, {"id": 290, "type": "identifier", "text": "bshal_uart_async", "parent": 289, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 17}}, {"id": 291, "type": "field_identifier", "text": "sync_begin_include", "parent": 289, "children": [], "start_point": {"row": 157, "column": 18}, "end_point": {"row": 157, "column": 36}}, {"id": 292, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 157, "column": 37}, "end_point": {"row": 157, "column": 38}}, {"id": 293, "type": "true", "text": "true", "parent": 288, "children": [], "start_point": {"row": 157, "column": 39}, "end_point": {"row": 157, "column": 43}}, {"id": 294, "type": "assignment_expression", "text": "bshal_uart_async.sync_end = \"\\r\\n\"", "parent": 209, "children": [295, 298, 299], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 35}}, {"id": 295, "type": "field_expression", "text": "bshal_uart_async.sync_end", "parent": 294, "children": [296, 297], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 26}}, {"id": 296, "type": "identifier", "text": "bshal_uart_async", "parent": 295, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 17}}, {"id": 297, "type": "field_identifier", "text": "sync_end", "parent": 295, "children": [], "start_point": {"row": 159, "column": 18}, "end_point": {"row": 159, "column": 26}}, {"id": 298, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 159, "column": 27}, "end_point": {"row": 159, "column": 28}}, {"id": 299, "type": "string_literal", "text": "\"\\r\\n\"", "parent": 294, "children": [300, 301], "start_point": {"row": 159, "column": 29}, "end_point": {"row": 159, "column": 35}}, {"id": 300, "type": "escape_sequence", "text": "\\r", "parent": 299, "children": [], "start_point": {"row": 159, "column": 30}, "end_point": {"row": 159, "column": 32}}, {"id": 301, "type": "escape_sequence", "text": "\\n", "parent": 299, "children": [], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 34}}, {"id": 302, "type": "assignment_expression", "text": "bshal_uart_async.sync_end_len = 2", "parent": 209, "children": [303, 306, 307], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 34}}, {"id": 303, "type": "field_expression", "text": "bshal_uart_async.sync_end_len", "parent": 302, "children": [304, 305], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 30}}, {"id": 304, "type": "identifier", "text": "bshal_uart_async", "parent": 303, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 17}}, {"id": 305, "type": "field_identifier", "text": "sync_end_len", "parent": 303, "children": [], "start_point": {"row": 160, "column": 18}, "end_point": {"row": 160, "column": 30}}, {"id": 306, "type": "=", "text": "=", "parent": 302, "children": [], "start_point": {"row": 160, "column": 31}, "end_point": {"row": 160, "column": 32}}, {"id": 307, "type": "number_literal", "text": "2", "parent": 302, "children": [], "start_point": {"row": 160, "column": 33}, "end_point": {"row": 160, "column": 34}}, {"id": 308, "type": "assignment_expression", "text": "bshal_uart_async.sync_end_include = true", "parent": 209, "children": [309, 312, 313], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 41}}, {"id": 309, "type": "field_expression", "text": "bshal_uart_async.sync_end_include", "parent": 308, "children": [310, 311], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 34}}, {"id": 310, "type": "identifier", "text": "bshal_uart_async", "parent": 309, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 17}}, {"id": 311, "type": "field_identifier", "text": "sync_end_include", "parent": 309, "children": [], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 34}}, {"id": 312, "type": "=", "text": "=", "parent": 308, "children": [], "start_point": {"row": 161, "column": 35}, "end_point": {"row": 161, "column": 36}}, {"id": 313, "type": "true", "text": "true", "parent": 308, "children": [], "start_point": {"row": 161, "column": 37}, "end_point": {"row": 161, "column": 41}}, {"id": 314, "type": "assignment_expression", "text": "bshal_uart_async.max_data_len = 83", "parent": 209, "children": [315, 318, 319], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 35}}, {"id": 315, "type": "field_expression", "text": "bshal_uart_async.max_data_len", "parent": 314, "children": [316, 317], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 30}}, {"id": 316, "type": "identifier", "text": "bshal_uart_async", "parent": 315, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 17}}, {"id": 317, "type": "field_identifier", "text": "max_data_len", "parent": 315, "children": [], "start_point": {"row": 163, "column": 18}, "end_point": {"row": 163, "column": 30}}, {"id": 318, "type": "=", "text": "=", "parent": 314, "children": [], "start_point": {"row": 163, "column": 31}, "end_point": {"row": 163, "column": 32}}, {"id": 319, "type": "number_literal", "text": "83", "parent": 314, "children": [], "start_point": {"row": 163, "column": 33}, "end_point": {"row": 163, "column": 35}}, {"id": 320, "type": "assignment_expression", "text": "bshal_uart_instance.async = & bshal_uart_async", "parent": 209, "children": [321, 323, 324], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 47}}, {"id": 321, "type": "field_expression", "text": "bshal_uart_instance.async", "parent": 320, "children": [322], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 26}}, {"id": 322, "type": "identifier", "text": "bshal_uart_instance", "parent": 321, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 20}}, {"id": 323, "type": "=", "text": "=", "parent": 320, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 28}}, {"id": 324, "type": "pointer_expression", "text": "& bshal_uart_async", "parent": 320, "children": [325], "start_point": {"row": 165, "column": 29}, "end_point": {"row": 165, "column": 47}}, {"id": 325, "type": "identifier", "text": "bshal_uart_async", "parent": 324, "children": [], "start_point": {"row": 165, "column": 31}, "end_point": {"row": 165, "column": 47}}, {"id": 326, "type": "assignment_expression", "text": "bshal_uart_instance.bps = 9600", "parent": 209, "children": [327, 330, 331], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 31}}, {"id": 327, "type": "field_expression", "text": "bshal_uart_instance.bps", "parent": 326, "children": [328, 329], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 24}}, {"id": 328, "type": "identifier", "text": "bshal_uart_instance", "parent": 327, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 20}}, {"id": 329, "type": "field_identifier", "text": "bps", "parent": 327, "children": [], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 24}}, {"id": 330, "type": "=", "text": "=", "parent": 326, "children": [], "start_point": {"row": 170, "column": 25}, "end_point": {"row": 170, "column": 26}}, {"id": 331, "type": "number_literal", "text": "9600", "parent": 326, "children": [], "start_point": {"row": 170, "column": 27}, "end_point": {"row": 170, "column": 31}}, {"id": 332, "type": "assignment_expression", "text": "bshal_uart_instance.data_bits = 8", "parent": 209, "children": [333, 336, 337], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 34}}, {"id": 333, "type": "field_expression", "text": "bshal_uart_instance.data_bits", "parent": 332, "children": [334, 335], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 30}}, {"id": 334, "type": "identifier", "text": "bshal_uart_instance", "parent": 333, "children": [], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 20}}, {"id": 335, "type": "field_identifier", "text": "data_bits", "parent": 333, "children": [], "start_point": {"row": 171, "column": 21}, "end_point": {"row": 171, "column": 30}}, {"id": 336, "type": "=", "text": "=", "parent": 332, "children": [], "start_point": {"row": 171, "column": 31}, "end_point": {"row": 171, "column": 32}}, {"id": 337, "type": "number_literal", "text": "8", "parent": 332, "children": [], "start_point": {"row": 171, "column": 33}, "end_point": {"row": 171, "column": 34}}, {"id": 338, "type": "assignment_expression", "text": "bshal_uart_instance.parity = bshal_uart_parity_none", "parent": 209, "children": [339, 342, 343], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 52}}, {"id": 339, "type": "field_expression", "text": "bshal_uart_instance.parity", "parent": 338, "children": [340, 341], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 27}}, {"id": 340, "type": "identifier", "text": "bshal_uart_instance", "parent": 339, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 20}}, {"id": 341, "type": "field_identifier", "text": "parity", "parent": 339, "children": [], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 27}}, {"id": 342, "type": "=", "text": "=", "parent": 338, "children": [], "start_point": {"row": 172, "column": 28}, "end_point": {"row": 172, "column": 29}}, {"id": 343, "type": "identifier", "text": "bshal_uart_parity_none", "parent": 338, "children": [], "start_point": {"row": 172, "column": 30}, "end_point": {"row": 172, "column": 52}}, {"id": 344, "type": "assignment_expression", "text": "bshal_uart_instance.stop_bits = 1", "parent": 209, "children": [345, 348, 349], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 34}}, {"id": 345, "type": "field_expression", "text": "bshal_uart_instance.stop_bits", "parent": 344, "children": [346, 347], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 30}}, {"id": 346, "type": "identifier", "text": "bshal_uart_instance", "parent": 345, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 20}}, {"id": 347, "type": "field_identifier", "text": "stop_bits", "parent": 345, "children": [], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 30}}, {"id": 348, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 173, "column": 31}, "end_point": {"row": 173, "column": 32}}, {"id": 349, "type": "number_literal", "text": "1", "parent": 344, "children": [], "start_point": {"row": 173, "column": 33}, "end_point": {"row": 173, "column": 34}}, {"id": 350, "type": "assignment_expression", "text": "bshal_uart_instance.fc = bshal_uart_flow_control_none", "parent": 209, "children": [351, 354, 355], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 54}}, {"id": 351, "type": "field_expression", "text": "bshal_uart_instance.fc", "parent": 350, "children": [352, 353], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 23}}, {"id": 352, "type": "identifier", "text": "bshal_uart_instance", "parent": 351, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 20}}, {"id": 353, "type": "field_identifier", "text": "fc", "parent": 351, "children": [], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 23}}, {"id": 354, "type": "=", "text": "=", "parent": 350, "children": [], "start_point": {"row": 175, "column": 24}, "end_point": {"row": 175, "column": 25}}, {"id": 355, "type": "identifier", "text": "bshal_uart_flow_control_none", "parent": 350, "children": [], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 54}}, {"id": 356, "type": "assignment_expression", "text": "bshal_uart_instance.hw_nr = 2", "parent": 209, "children": [357, 360, 361], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 30}}, {"id": 357, "type": "field_expression", "text": "bshal_uart_instance.hw_nr", "parent": 356, "children": [358, 359], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 26}}, {"id": 358, "type": "identifier", "text": "bshal_uart_instance", "parent": 357, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 20}}, {"id": 359, "type": "field_identifier", "text": "hw_nr", "parent": 357, "children": [], "start_point": {"row": 177, "column": 21}, "end_point": {"row": 177, "column": 26}}, {"id": 360, "type": "=", "text": "=", "parent": 356, "children": [], "start_point": {"row": 177, "column": 27}, "end_point": {"row": 177, "column": 28}}, {"id": 361, "type": "number_literal", "text": "2", "parent": 356, "children": [], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 30}}, {"id": 362, "type": "assignment_expression", "text": "bshal_uart_instance.cts_pin = -1", "parent": 209, "children": [363, 366, 367], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 33}}, {"id": 363, "type": "field_expression", "text": "bshal_uart_instance.cts_pin", "parent": 362, "children": [364, 365], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 28}}, {"id": 364, "type": "identifier", "text": "bshal_uart_instance", "parent": 363, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 20}}, {"id": 365, "type": "field_identifier", "text": "cts_pin", "parent": 363, "children": [], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 28}}, {"id": 366, "type": "=", "text": "=", "parent": 362, "children": [], "start_point": {"row": 178, "column": 29}, "end_point": {"row": 178, "column": 30}}, {"id": 367, "type": "number_literal", "text": "-1", "parent": 362, "children": [], "start_point": {"row": 178, "column": 31}, "end_point": {"row": 178, "column": 33}}, {"id": 368, "type": "assignment_expression", "text": "bshal_uart_instance.rts_pin = -1", "parent": 209, "children": [369, 372, 373], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 33}}, {"id": 369, "type": "field_expression", "text": "bshal_uart_instance.rts_pin", "parent": 368, "children": [370, 371], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 28}}, {"id": 370, "type": "identifier", "text": "bshal_uart_instance", "parent": 369, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 20}}, {"id": 371, "type": "field_identifier", "text": "rts_pin", "parent": 369, "children": [], "start_point": {"row": 179, "column": 21}, "end_point": {"row": 179, "column": 28}}, {"id": 372, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 179, "column": 29}, "end_point": {"row": 179, "column": 30}}, {"id": 373, "type": "number_literal", "text": "-1", "parent": 368, "children": [], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 33}}, {"id": 374, "type": "assignment_expression", "text": "bshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3)", "parent": 209, "children": [375, 378, 379], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 71}}, {"id": 375, "type": "field_expression", "text": "bshal_uart_instance.rxd_pin", "parent": 374, "children": [376, 377], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 28}}, {"id": 376, "type": "identifier", "text": "bshal_uart_instance", "parent": 375, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 20}}, {"id": 377, "type": "field_identifier", "text": "rxd_pin", "parent": 375, "children": [], "start_point": {"row": 180, "column": 21}, "end_point": {"row": 180, "column": 28}}, {"id": 378, "type": "=", "text": "=", "parent": 374, "children": [], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 30}}, {"id": 379, "type": "call_expression", "text": "bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3)", "parent": 374, "children": [380, 381], "start_point": {"row": 180, "column": 31}, "end_point": {"row": 180, "column": 71}}, {"id": 380, "type": "identifier", "text": "bshal_gpio_encode_pin", "parent": 379, "children": [], "start_point": {"row": 180, "column": 31}, "end_point": {"row": 180, "column": 52}}, {"id": 381, "type": "argument_list", "text": "(GPIOA, GPIO_PIN_3)", "parent": 379, "children": [382, 383], "start_point": {"row": 180, "column": 52}, "end_point": {"row": 180, "column": 71}}, {"id": 382, "type": "identifier", "text": "GPIOA", "parent": 381, "children": [], "start_point": {"row": 180, "column": 53}, "end_point": {"row": 180, "column": 58}}, {"id": 383, "type": "identifier", "text": "GPIO_PIN_3", "parent": 381, "children": [], "start_point": {"row": 180, "column": 60}, "end_point": {"row": 180, "column": 70}}, {"id": 384, "type": "assignment_expression", "text": "bshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2)", "parent": 209, "children": [385, 388, 389], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 71}}, {"id": 385, "type": "field_expression", "text": "bshal_uart_instance.txd_pin", "parent": 384, "children": [386, 387], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 28}}, {"id": 386, "type": "identifier", "text": "bshal_uart_instance", "parent": 385, "children": [], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 20}}, {"id": 387, "type": "field_identifier", "text": "txd_pin", "parent": 385, "children": [], "start_point": {"row": 181, "column": 21}, "end_point": {"row": 181, "column": 28}}, {"id": 388, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 181, "column": 29}, "end_point": {"row": 181, "column": 30}}, {"id": 389, "type": "call_expression", "text": "bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2)", "parent": 384, "children": [390, 391], "start_point": {"row": 181, "column": 31}, "end_point": {"row": 181, "column": 71}}, {"id": 390, "type": "identifier", "text": "bshal_gpio_encode_pin", "parent": 389, "children": [], "start_point": {"row": 181, "column": 31}, "end_point": {"row": 181, "column": 52}}, {"id": 391, "type": "argument_list", "text": "(GPIOA, GPIO_PIN_2)", "parent": 389, "children": [392, 393], "start_point": {"row": 181, "column": 52}, "end_point": {"row": 181, "column": 71}}, {"id": 392, "type": "identifier", "text": "GPIOA", "parent": 391, "children": [], "start_point": {"row": 181, "column": 53}, "end_point": {"row": 181, "column": 58}}, {"id": 393, "type": "identifier", "text": "GPIO_PIN_2", "parent": 391, "children": [], "start_point": {"row": 181, "column": 60}, "end_point": {"row": 181, "column": 70}}, {"id": 394, "type": "call_expression", "text": "bshal_stm32_uart_init(&bshal_uart_instance)", "parent": 209, "children": [395, 396], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 44}}, {"id": 395, "type": "identifier", "text": "bshal_stm32_uart_init", "parent": 394, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 22}}, {"id": 396, "type": "argument_list", "text": "(&bshal_uart_instance)", "parent": 394, "children": [397], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 44}}, {"id": 397, "type": "pointer_expression", "text": "&bshal_uart_instance", "parent": 396, "children": [398], "start_point": {"row": 183, "column": 23}, "end_point": {"row": 183, "column": 43}}, {"id": 398, "type": "identifier", "text": "bshal_uart_instance", "parent": 397, "children": [], "start_point": {"row": 183, "column": 24}, "end_point": {"row": 183, "column": 43}}, {"id": 399, "type": "function_definition", "text": "int geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m) {\n\t// https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km\n\tfloat km_error = NAN;\n\tif (latitude_error_deviation_m < longitude_error_deviation_m ) {\n\t\tkm_error = latitude_error_deviation_m / 1000.0f;\n\t} else {\n\t\tkm_error = longitude_error_deviation_m / 1000.0f;\n\t}\n\tif (isnan(km_error)) return 1;\n\n\tif (km_error < 0.019f) return 8;\n\tif (km_error < 0.076f) return 7;\n\tif (km_error < 0.61f) return 6;\n\tif (km_error < 2.4f) return 5;\n\tif (km_error < 20.0f) return 4;\n\tif (km_error < 78.0f) return 3;\n\tif (km_error < 630.0f) return 2;\n\treturn 1;\n}", "parent": null, "children": [400, 401], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 206, "column": 1}}, {"id": 400, "type": "primitive_type", "text": "int", "parent": 399, "children": [], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 3}}, {"id": 401, "type": "function_declarator", "text": "geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m)", "parent": 399, "children": [402, 403], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 89}}, {"id": 402, "type": "identifier", "text": "geohash_precision", "parent": 401, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 21}}, {"id": 403, "type": "parameter_list", "text": "(float latitude_error_deviation_m,float longitude_error_deviation_m)", "parent": 401, "children": [404, 407], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 89}}, {"id": 404, "type": "parameter_declaration", "text": "float latitude_error_deviation_m", "parent": 403, "children": [405, 406], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 54}}, {"id": 405, "type": "primitive_type", "text": "float", "parent": 404, "children": [], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 27}}, {"id": 406, "type": "identifier", "text": "latitude_error_deviation_m", "parent": 404, "children": [], "start_point": {"row": 188, "column": 28}, "end_point": {"row": 188, "column": 54}}, {"id": 407, "type": "parameter_declaration", "text": "float longitude_error_deviation_m", "parent": 403, "children": [408, 409], "start_point": {"row": 188, "column": 55}, "end_point": {"row": 188, "column": 88}}, {"id": 408, "type": "primitive_type", "text": "float", "parent": 407, "children": [], "start_point": {"row": 188, "column": 55}, "end_point": {"row": 188, "column": 60}}, {"id": 409, "type": "identifier", "text": "longitude_error_deviation_m", "parent": 407, "children": [], "start_point": {"row": 188, "column": 61}, "end_point": {"row": 188, "column": 88}}, {"id": 410, "type": "declaration", "text": "float km_error = NAN;", "parent": 399, "children": [411, 412], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 22}}, {"id": 411, "type": "primitive_type", "text": "float", "parent": 410, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 6}}, {"id": 412, "type": "init_declarator", "text": "km_error = NAN", "parent": 410, "children": [413, 414, 415], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 21}}, {"id": 413, "type": "identifier", "text": "km_error", "parent": 412, "children": [], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 15}}, {"id": 414, "type": "=", "text": "=", "parent": 412, "children": [], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 17}}, {"id": 415, "type": "identifier", "text": "NAN", "parent": 412, "children": [], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 21}}, {"id": 416, "type": "if_statement", "text": "if (latitude_error_deviation_m < longitude_error_deviation_m ) {\n\t\tkm_error = latitude_error_deviation_m / 1000.0f;\n\t} else {\n\t\tkm_error = longitude_error_deviation_m / 1000.0f;\n\t}", "parent": 399, "children": [417, 429], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 195, "column": 2}}, {"id": 417, "type": "parenthesized_expression", "text": "(latitude_error_deviation_m < longitude_error_deviation_m )", "parent": 416, "children": [418], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 63}}, {"id": 418, "type": "binary_expression", "text": "latitude_error_deviation_m < longitude_error_deviation_m", "parent": 417, "children": [419, 420, 421], "start_point": {"row": 191, "column": 5}, "end_point": {"row": 191, "column": 61}}, {"id": 419, "type": "identifier", "text": "latitude_error_deviation_m", "parent": 418, "children": [], "start_point": {"row": 191, "column": 5}, "end_point": {"row": 191, "column": 31}}, {"id": 420, "type": "<", "text": "<", "parent": 418, "children": [], "start_point": {"row": 191, "column": 32}, "end_point": {"row": 191, "column": 33}}, {"id": 421, "type": "identifier", "text": "longitude_error_deviation_m", "parent": 418, "children": [], "start_point": {"row": 191, "column": 34}, "end_point": {"row": 191, "column": 61}}, {"id": 422, "type": "assignment_expression", "text": "km_error = latitude_error_deviation_m / 1000.0f", "parent": 416, "children": [423, 424, 425], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 49}}, {"id": 423, "type": "identifier", "text": "km_error", "parent": 422, "children": [], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 10}}, {"id": 424, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 12}}, {"id": 425, "type": "binary_expression", "text": "latitude_error_deviation_m / 1000.0f", "parent": 422, "children": [426, 427, 428], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 49}}, {"id": 426, "type": "identifier", "text": "latitude_error_deviation_m", "parent": 425, "children": [], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 39}}, {"id": 427, "type": "/", "text": "/", "parent": 425, "children": [], "start_point": {"row": 192, "column": 40}, "end_point": {"row": 192, "column": 41}}, {"id": 428, "type": "number_literal", "text": "1000.0f", "parent": 425, "children": [], "start_point": {"row": 192, "column": 42}, "end_point": {"row": 192, "column": 49}}, {"id": 429, "type": "else_clause", "text": "else {\n\t\tkm_error = longitude_error_deviation_m / 1000.0f;\n\t}", "parent": 416, "children": [], "start_point": {"row": 193, "column": 3}, "end_point": {"row": 195, "column": 2}}, {"id": 430, "type": "assignment_expression", "text": "km_error = longitude_error_deviation_m / 1000.0f", "parent": 429, "children": [431, 432, 433], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 50}}, {"id": 431, "type": "identifier", "text": "km_error", "parent": 430, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 10}}, {"id": 432, "type": "=", "text": "=", "parent": 430, "children": [], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 12}}, {"id": 433, "type": "binary_expression", "text": "longitude_error_deviation_m / 1000.0f", "parent": 430, "children": [434, 435, 436], "start_point": {"row": 194, "column": 13}, "end_point": {"row": 194, "column": 50}}, {"id": 434, "type": "identifier", "text": "longitude_error_deviation_m", "parent": 433, "children": [], "start_point": {"row": 194, "column": 13}, "end_point": {"row": 194, "column": 40}}, {"id": 435, "type": "/", "text": "/", "parent": 433, "children": [], "start_point": {"row": 194, "column": 41}, "end_point": {"row": 194, "column": 42}}, {"id": 436, "type": "number_literal", "text": "1000.0f", "parent": 433, "children": [], "start_point": {"row": 194, "column": 43}, "end_point": {"row": 194, "column": 50}}, {"id": 437, "type": "if_statement", "text": "if (isnan(km_error)) return 1;", "parent": 399, "children": [438, 443], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 31}}, {"id": 438, "type": "parenthesized_expression", "text": "(isnan(km_error))", "parent": 437, "children": [439], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 21}}, {"id": 439, "type": "call_expression", "text": "isnan(km_error)", "parent": 438, "children": [440, 441], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 20}}, {"id": 440, "type": "identifier", "text": "isnan", "parent": 439, "children": [], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 10}}, {"id": 441, "type": "argument_list", "text": "(km_error)", "parent": 439, "children": [442], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 20}}, {"id": 442, "type": "identifier", "text": "km_error", "parent": 441, "children": [], "start_point": {"row": 196, "column": 11}, "end_point": {"row": 196, "column": 19}}, {"id": 443, "type": "return_statement", "text": "return 1;", "parent": 437, "children": [444], "start_point": {"row": 196, "column": 22}, "end_point": {"row": 196, "column": 31}}, {"id": 444, "type": "number_literal", "text": "1", "parent": 443, "children": [], "start_point": {"row": 196, "column": 29}, "end_point": {"row": 196, "column": 30}}, {"id": 445, "type": "if_statement", "text": "if (km_error < 0.019f) return 8;", "parent": 399, "children": [446, 451], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 33}}, {"id": 446, "type": "parenthesized_expression", "text": "(km_error < 0.019f)", "parent": 445, "children": [447], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 23}}, {"id": 447, "type": "binary_expression", "text": "km_error < 0.019f", "parent": 446, "children": [448, 449, 450], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 22}}, {"id": 448, "type": "identifier", "text": "km_error", "parent": 447, "children": [], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 13}}, {"id": 449, "type": "<", "text": "<", "parent": 447, "children": [], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 15}}, {"id": 450, "type": "number_literal", "text": "0.019f", "parent": 447, "children": [], "start_point": {"row": 198, "column": 16}, "end_point": {"row": 198, "column": 22}}, {"id": 451, "type": "return_statement", "text": "return 8;", "parent": 445, "children": [452], "start_point": {"row": 198, "column": 24}, "end_point": {"row": 198, "column": 33}}, {"id": 452, "type": "number_literal", "text": "8", "parent": 451, "children": [], "start_point": {"row": 198, "column": 31}, "end_point": {"row": 198, "column": 32}}, {"id": 453, "type": "if_statement", "text": "if (km_error < 0.076f) return 7;", "parent": 399, "children": [454, 459], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 33}}, {"id": 454, "type": "parenthesized_expression", "text": "(km_error < 0.076f)", "parent": 453, "children": [455], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 23}}, {"id": 455, "type": "binary_expression", "text": "km_error < 0.076f", "parent": 454, "children": [456, 457, 458], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 22}}, {"id": 456, "type": "identifier", "text": "km_error", "parent": 455, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 13}}, {"id": 457, "type": "<", "text": "<", "parent": 455, "children": [], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 15}}, {"id": 458, "type": "number_literal", "text": "0.076f", "parent": 455, "children": [], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 22}}, {"id": 459, "type": "return_statement", "text": "return 7;", "parent": 453, "children": [460], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 33}}, {"id": 460, "type": "number_literal", "text": "7", "parent": 459, "children": [], "start_point": {"row": 199, "column": 31}, "end_point": {"row": 199, "column": 32}}, {"id": 461, "type": "if_statement", "text": "if (km_error < 0.61f) return 6;", "parent": 399, "children": [462, 467], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 32}}, {"id": 462, "type": "parenthesized_expression", "text": "(km_error < 0.61f)", "parent": 461, "children": [463], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 22}}, {"id": 463, "type": "binary_expression", "text": "km_error < 0.61f", "parent": 462, "children": [464, 465, 466], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 21}}, {"id": 464, "type": "identifier", "text": "km_error", "parent": 463, "children": [], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 13}}, {"id": 465, "type": "<", "text": "<", "parent": 463, "children": [], "start_point": {"row": 200, "column": 14}, "end_point": {"row": 200, "column": 15}}, {"id": 466, "type": "number_literal", "text": "0.61f", "parent": 463, "children": [], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 21}}, {"id": 467, "type": "return_statement", "text": "return 6;", "parent": 461, "children": [468], "start_point": {"row": 200, "column": 23}, "end_point": {"row": 200, "column": 32}}, {"id": 468, "type": "number_literal", "text": "6", "parent": 467, "children": [], "start_point": {"row": 200, "column": 30}, "end_point": {"row": 200, "column": 31}}, {"id": 469, "type": "if_statement", "text": "if (km_error < 2.4f) return 5;", "parent": 399, "children": [470, 475], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 31}}, {"id": 470, "type": "parenthesized_expression", "text": "(km_error < 2.4f)", "parent": 469, "children": [471], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 21}}, {"id": 471, "type": "binary_expression", "text": "km_error < 2.4f", "parent": 470, "children": [472, 473, 474], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 20}}, {"id": 472, "type": "identifier", "text": "km_error", "parent": 471, "children": [], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 13}}, {"id": 473, "type": "<", "text": "<", "parent": 471, "children": [], "start_point": {"row": 201, "column": 14}, "end_point": {"row": 201, "column": 15}}, {"id": 474, "type": "number_literal", "text": "2.4f", "parent": 471, "children": [], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 20}}, {"id": 475, "type": "return_statement", "text": "return 5;", "parent": 469, "children": [476], "start_point": {"row": 201, "column": 22}, "end_point": {"row": 201, "column": 31}}, {"id": 476, "type": "number_literal", "text": "5", "parent": 475, "children": [], "start_point": {"row": 201, "column": 29}, "end_point": {"row": 201, "column": 30}}, {"id": 477, "type": "if_statement", "text": "if (km_error < 20.0f) return 4;", "parent": 399, "children": [478, 483], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 32}}, {"id": 478, "type": "parenthesized_expression", "text": "(km_error < 20.0f)", "parent": 477, "children": [479], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 22}}, {"id": 479, "type": "binary_expression", "text": "km_error < 20.0f", "parent": 478, "children": [480, 481, 482], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 21}}, {"id": 480, "type": "identifier", "text": "km_error", "parent": 479, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 13}}, {"id": 481, "type": "<", "text": "<", "parent": 479, "children": [], "start_point": {"row": 202, "column": 14}, "end_point": {"row": 202, "column": 15}}, {"id": 482, "type": "number_literal", "text": "20.0f", "parent": 479, "children": [], "start_point": {"row": 202, "column": 16}, "end_point": {"row": 202, "column": 21}}, {"id": 483, "type": "return_statement", "text": "return 4;", "parent": 477, "children": [484], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 32}}, {"id": 484, "type": "number_literal", "text": "4", "parent": 483, "children": [], "start_point": {"row": 202, "column": 30}, "end_point": {"row": 202, "column": 31}}, {"id": 485, "type": "if_statement", "text": "if (km_error < 78.0f) return 3;", "parent": 399, "children": [486, 491], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 32}}, {"id": 486, "type": "parenthesized_expression", "text": "(km_error < 78.0f)", "parent": 485, "children": [487], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 22}}, {"id": 487, "type": "binary_expression", "text": "km_error < 78.0f", "parent": 486, "children": [488, 489, 490], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 21}}, {"id": 488, "type": "identifier", "text": "km_error", "parent": 487, "children": [], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 13}}, {"id": 489, "type": "<", "text": "<", "parent": 487, "children": [], "start_point": {"row": 203, "column": 14}, "end_point": {"row": 203, "column": 15}}, {"id": 490, "type": "number_literal", "text": "78.0f", "parent": 487, "children": [], "start_point": {"row": 203, "column": 16}, "end_point": {"row": 203, "column": 21}}, {"id": 491, "type": "return_statement", "text": "return 3;", "parent": 485, "children": [492], "start_point": {"row": 203, "column": 23}, "end_point": {"row": 203, "column": 32}}, {"id": 492, "type": "number_literal", "text": "3", "parent": 491, "children": [], "start_point": {"row": 203, "column": 30}, "end_point": {"row": 203, "column": 31}}, {"id": 493, "type": "if_statement", "text": "if (km_error < 630.0f) return 2;", "parent": 399, "children": [494, 499], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 33}}, {"id": 494, "type": "parenthesized_expression", "text": "(km_error < 630.0f)", "parent": 493, "children": [495], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 204, "column": 23}}, {"id": 495, "type": "binary_expression", "text": "km_error < 630.0f", "parent": 494, "children": [496, 497, 498], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 22}}, {"id": 496, "type": "identifier", "text": "km_error", "parent": 495, "children": [], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 13}}, {"id": 497, "type": "<", "text": "<", "parent": 495, "children": [], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 15}}, {"id": 498, "type": "number_literal", "text": "630.0f", "parent": 495, "children": [], "start_point": {"row": 204, "column": 16}, "end_point": {"row": 204, "column": 22}}, {"id": 499, "type": "return_statement", "text": "return 2;", "parent": 493, "children": [500], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 33}}, {"id": 500, "type": "number_literal", "text": "2", "parent": 499, "children": [], "start_point": {"row": 204, "column": 31}, "end_point": {"row": 204, "column": 32}}, {"id": 501, "type": "return_statement", "text": "return 1;", "parent": 399, "children": [502], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 10}}, {"id": 502, "type": "number_literal", "text": "1", "parent": 501, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 9}}, {"id": 503, "type": "function_definition", "text": "int main() {\n#ifdef SEMI\n\tinitialise_monitor_handles();\n\tprintf(\"Hello world!\\n\");\n#endif\n\n\t\n\tSystemClock_Config();\n\tSystemCoreClockUpdate();\n\n\tHAL_Init();\n\n\tbshal_delay_init();\n\tbshal_delay_us(10);\n\n\tgp_i2c = i2c_init();\n\n\tuart_init();\n\n\tdisplay_init();\n\tdraw_background();\n\tprint(\"GNSS DEMO\", 0);\n\n\tnemaMsgEnable(\"GST\");\n\tbshal_delay_ms(100);\n\n\twhile (1) {\n\n//\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n\n\t\tfloat latitude= minmea_tocoord(&gga.latitude);\n\t\tfloat longitude= minmea_tocoord(&gga.longitude);\n\t\tfloat altitude= minmea_tofloat(&gga.altitude);\n\n\n\t\tfloat latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n\t\tfloat longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n\t\tfloat altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n\t\tsprintf(buff, \"%04d-%02d-%02d %02d:%02d:%02d (UTC)\",\n\t\t\trmc.date.year+2000,\n\t\t\trmc.date.month,\n\t\t\trmc.date.day,\n\t\t\trmc.time.hours,\n\t\t\trmc.time.minutes,\n\t\t\trmc.time.seconds);\n\t\tprint(buff,0);\n\n\n\t\tsprintf(buff, \"latitude : %10.6f \u00b0\", latitude);\n\t\tprint(buff,1);\n\t\tsprintf(buff, \" error: %6.2f m\", latitude_error_deviation);\n\t\tprint(buff,2);\n\t\tsprintf(buff, \"longitude: %10.6f \u00b0\", longitude );\n\t\tprint(buff,3);\n\t\tsprintf(buff, \" error: %6.2f m\", longitude_error_deviation);\n\t\tprint(buff,4);\n\n\t\tsprintf(buff, \"altitude : %6.2f m\", altitude );\n\t\tprint(buff,5);\n\t\tsprintf(buff, \" error: %6.2f m\", altitude_error_deviation);\n\t\tprint(buff,6);\n\n\n\t\tchar * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n\t\tif (geohash) {\n\t\t\tsprintf(buff, \"geohash : %s\",geohash );\n\t\t\tfree(geohash);\n\t\t\tprint(buff,7);\n\t\t}\n\n\t\tframebuffer_apply();\n\t\tbshal_delay_ms(1000);\n\t\t//test_uart_send(enableGST, sizeof(enableGST));\n\t}\n\n}\n", "parent": null, "children": [504, 505], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 285, "column": 1}}, {"id": 504, "type": "primitive_type", "text": "int", "parent": 503, "children": [], "start_point": {"row": 208, "column": 0}, "end_point": {"row": 208, "column": 3}}, {"id": 505, "type": "function_declarator", "text": "main()", "parent": 503, "children": [506, 507], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 10}}, {"id": 506, "type": "identifier", "text": "main", "parent": 505, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 8}}, {"id": 507, "type": "parameter_list", "text": "()", "parent": 505, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 10}}, {"id": 508, "type": "preproc_ifdef", "text": "#ifdef SEMI\n\tinitialise_monitor_handles();\n\tprintf(\"Hello world!\\n\");\n#endif", "parent": 503, "children": [509, 510, 519], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 212, "column": 6}}, {"id": 509, "type": "#ifdef", "text": "#ifdef", "parent": 508, "children": [], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 209, "column": 6}}, {"id": 510, "type": "identifier", "text": "SEMI", "parent": 508, "children": [], "start_point": {"row": 209, "column": 7}, "end_point": {"row": 209, "column": 11}}, {"id": 511, "type": "call_expression", "text": "initialise_monitor_handles()", "parent": 508, "children": [512, 513], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 210, "column": 29}}, {"id": 512, "type": "identifier", "text": "initialise_monitor_handles", "parent": 511, "children": [], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 210, "column": 27}}, {"id": 513, "type": "argument_list", "text": "()", "parent": 511, "children": [], "start_point": {"row": 210, "column": 27}, "end_point": {"row": 210, "column": 29}}, {"id": 514, "type": "call_expression", "text": "printf(\"Hello world!\\n\")", "parent": 508, "children": [515, 516], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 25}}, {"id": 515, "type": "identifier", "text": "printf", "parent": 514, "children": [], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 7}}, {"id": 516, "type": "argument_list", "text": "(\"Hello world!\\n\")", "parent": 514, "children": [517], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 25}}, {"id": 517, "type": "string_literal", "text": "\"Hello world!\\n\"", "parent": 516, "children": [518], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 24}}, {"id": 518, "type": "escape_sequence", "text": "\\n", "parent": 517, "children": [], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 23}}, {"id": 519, "type": "#endif", "text": "#endif", "parent": 508, "children": [], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 212, "column": 6}}, {"id": 520, "type": "call_expression", "text": "SystemClock_Config()", "parent": 503, "children": [521, 522], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 21}}, {"id": 521, "type": "identifier", "text": "SystemClock_Config", "parent": 520, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 19}}, {"id": 522, "type": "argument_list", "text": "()", "parent": 520, "children": [], "start_point": {"row": 215, "column": 19}, "end_point": {"row": 215, "column": 21}}, {"id": 523, "type": "call_expression", "text": "SystemCoreClockUpdate()", "parent": 503, "children": [524, 525], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 24}}, {"id": 524, "type": "identifier", "text": "SystemCoreClockUpdate", "parent": 523, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 22}}, {"id": 525, "type": "argument_list", "text": "()", "parent": 523, "children": [], "start_point": {"row": 216, "column": 22}, "end_point": {"row": 216, "column": 24}}, {"id": 526, "type": "call_expression", "text": "HAL_Init()", "parent": 503, "children": [527, 528], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 11}}, {"id": 527, "type": "identifier", "text": "HAL_Init", "parent": 526, "children": [], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 9}}, {"id": 528, "type": "argument_list", "text": "()", "parent": 526, "children": [], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 11}}, {"id": 529, "type": "call_expression", "text": "bshal_delay_init()", "parent": 503, "children": [530, 531], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 19}}, {"id": 530, "type": "identifier", "text": "bshal_delay_init", "parent": 529, "children": [], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 17}}, {"id": 531, "type": "argument_list", "text": "()", "parent": 529, "children": [], "start_point": {"row": 220, "column": 17}, "end_point": {"row": 220, "column": 19}}, {"id": 532, "type": "call_expression", "text": "bshal_delay_us(10)", "parent": 503, "children": [533, 534], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 19}}, {"id": 533, "type": "identifier", "text": "bshal_delay_us", "parent": 532, "children": [], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 15}}, {"id": 534, "type": "argument_list", "text": "(10)", "parent": 532, "children": [535], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 19}}, {"id": 535, "type": "number_literal", "text": "10", "parent": 534, "children": [], "start_point": {"row": 221, "column": 16}, "end_point": {"row": 221, "column": 18}}, {"id": 536, "type": "assignment_expression", "text": "gp_i2c = i2c_init()", "parent": 503, "children": [537, 538, 539], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 20}}, {"id": 537, "type": "identifier", "text": "gp_i2c", "parent": 536, "children": [], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 7}}, {"id": 538, "type": "=", "text": "=", "parent": 536, "children": [], "start_point": {"row": 223, "column": 8}, "end_point": {"row": 223, "column": 9}}, {"id": 539, "type": "call_expression", "text": "i2c_init()", "parent": 536, "children": [540, 541], "start_point": {"row": 223, "column": 10}, "end_point": {"row": 223, "column": 20}}, {"id": 540, "type": "identifier", "text": "i2c_init", "parent": 539, "children": [], "start_point": {"row": 223, "column": 10}, "end_point": {"row": 223, "column": 18}}, {"id": 541, "type": "argument_list", "text": "()", "parent": 539, "children": [], "start_point": {"row": 223, "column": 18}, "end_point": {"row": 223, "column": 20}}, {"id": 542, "type": "call_expression", "text": "uart_init()", "parent": 503, "children": [543, 544], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 12}}, {"id": 543, "type": "identifier", "text": "uart_init", "parent": 542, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 10}}, {"id": 544, "type": "argument_list", "text": "()", "parent": 542, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 12}}, {"id": 545, "type": "call_expression", "text": "display_init()", "parent": 503, "children": [546, 547], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 15}}, {"id": 546, "type": "identifier", "text": "display_init", "parent": 545, "children": [], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 13}}, {"id": 547, "type": "argument_list", "text": "()", "parent": 545, "children": [], "start_point": {"row": 227, "column": 13}, "end_point": {"row": 227, "column": 15}}, {"id": 548, "type": "call_expression", "text": "draw_background()", "parent": 503, "children": [549, 550], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 18}}, {"id": 549, "type": "identifier", "text": "draw_background", "parent": 548, "children": [], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 16}}, {"id": 550, "type": "argument_list", "text": "()", "parent": 548, "children": [], "start_point": {"row": 228, "column": 16}, "end_point": {"row": 228, "column": 18}}, {"id": 551, "type": "call_expression", "text": "print(\"GNSS DEMO\", 0)", "parent": 503, "children": [552, 553], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 22}}, {"id": 552, "type": "identifier", "text": "print", "parent": 551, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 6}}, {"id": 553, "type": "argument_list", "text": "(\"GNSS DEMO\", 0)", "parent": 551, "children": [554, 555], "start_point": {"row": 229, "column": 6}, "end_point": {"row": 229, "column": 22}}, {"id": 554, "type": "string_literal", "text": "\"GNSS DEMO\"", "parent": 553, "children": [], "start_point": {"row": 229, "column": 7}, "end_point": {"row": 229, "column": 18}}, {"id": 555, "type": "number_literal", "text": "0", "parent": 553, "children": [], "start_point": {"row": 229, "column": 20}, "end_point": {"row": 229, "column": 21}}, {"id": 556, "type": "call_expression", "text": "nemaMsgEnable(\"GST\")", "parent": 503, "children": [557, 558], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 21}}, {"id": 557, "type": "identifier", "text": "nemaMsgEnable", "parent": 556, "children": [], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 14}}, {"id": 558, "type": "argument_list", "text": "(\"GST\")", "parent": 556, "children": [559], "start_point": {"row": 231, "column": 14}, "end_point": {"row": 231, "column": 21}}, {"id": 559, "type": "string_literal", "text": "\"GST\"", "parent": 558, "children": [], "start_point": {"row": 231, "column": 15}, "end_point": {"row": 231, "column": 20}}, {"id": 560, "type": "call_expression", "text": "bshal_delay_ms(100)", "parent": 503, "children": [561, 562], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 20}}, {"id": 561, "type": "identifier", "text": "bshal_delay_ms", "parent": 560, "children": [], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 15}}, {"id": 562, "type": "argument_list", "text": "(100)", "parent": 560, "children": [563], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 20}}, {"id": 563, "type": "number_literal", "text": "100", "parent": 562, "children": [], "start_point": {"row": 232, "column": 16}, "end_point": {"row": 232, "column": 19}}, {"id": 564, "type": "while_statement", "text": "while (1) {\n\n//\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n\n\t\tfloat latitude= minmea_tocoord(&gga.latitude);\n\t\tfloat longitude= minmea_tocoord(&gga.longitude);\n\t\tfloat altitude= minmea_tofloat(&gga.altitude);\n\n\n\t\tfloat latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n\t\tfloat longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n\t\tfloat altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n\t\tsprintf(buff, \"%04d-%02d-%02d %02d:%02d:%02d (UTC)\",\n\t\t\trmc.date.year+2000,\n\t\t\trmc.date.month,\n\t\t\trmc.date.day,\n\t\t\trmc.time.hours,\n\t\t\trmc.time.minutes,\n\t\t\trmc.time.seconds);\n\t\tprint(buff,0);\n\n\n\t\tsprintf(buff, \"latitude : %10.6f \u00b0\", latitude);\n\t\tprint(buff,1);\n\t\tsprintf(buff, \" error: %6.2f m\", latitude_error_deviation);\n\t\tprint(buff,2);\n\t\tsprintf(buff, \"longitude: %10.6f \u00b0\", longitude );\n\t\tprint(buff,3);\n\t\tsprintf(buff, \" error: %6.2f m\", longitude_error_deviation);\n\t\tprint(buff,4);\n\n\t\tsprintf(buff, \"altitude : %6.2f m\", altitude );\n\t\tprint(buff,5);\n\t\tsprintf(buff, \" error: %6.2f m\", altitude_error_deviation);\n\t\tprint(buff,6);\n\n\n\t\tchar * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n\t\tif (geohash) {\n\t\t\tsprintf(buff, \"geohash : %s\",geohash );\n\t\t\tfree(geohash);\n\t\t\tprint(buff,7);\n\t\t}\n\n\t\tframebuffer_apply();\n\t\tbshal_delay_ms(1000);\n\t\t//test_uart_send(enableGST, sizeof(enableGST));\n\t}\n\n", "parent": 503, "children": [565], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 283, "column": 2}}, {"id": 565, "type": "parenthesized_expression", "text": "(1)", "parent": 564, "children": [566], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 10}}, {"id": 566, "type": "number_literal", "text": "1", "parent": 565, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 9}}, {"id": 567, "type": "declaration", "text": "float latitude= minmea_tocoord(&gga.latitude);", "parent": 564, "children": [568, 569], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 48}}, {"id": 568, "type": "primitive_type", "text": "float", "parent": 567, "children": [], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 7}}, {"id": 569, "type": "init_declarator", "text": "latitude= minmea_tocoord(&gga.latitude)", "parent": 567, "children": [570, 571, 572], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 47}}, {"id": 570, "type": "identifier", "text": "latitude", "parent": 569, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 16}}, {"id": 571, "type": "=", "text": "=", "parent": 569, "children": [], "start_point": {"row": 239, "column": 16}, "end_point": {"row": 239, "column": 17}}, {"id": 572, "type": "call_expression", "text": "minmea_tocoord(&gga.latitude)", "parent": 569, "children": [573, 574], "start_point": {"row": 239, "column": 18}, "end_point": {"row": 239, "column": 47}}, {"id": 573, "type": "identifier", "text": "minmea_tocoord", "parent": 572, "children": [], "start_point": {"row": 239, "column": 18}, "end_point": {"row": 239, "column": 32}}, {"id": 574, "type": "argument_list", "text": "(&gga.latitude)", "parent": 572, "children": [575], "start_point": {"row": 239, "column": 32}, "end_point": {"row": 239, "column": 47}}, {"id": 575, "type": "pointer_expression", "text": "&gga.latitude", "parent": 574, "children": [576], "start_point": {"row": 239, "column": 33}, "end_point": {"row": 239, "column": 46}}, {"id": 576, "type": "field_expression", "text": "gga.latitude", "parent": 575, "children": [577, 578], "start_point": {"row": 239, "column": 34}, "end_point": {"row": 239, "column": 46}}, {"id": 577, "type": "identifier", "text": "gga", "parent": 576, "children": [], "start_point": {"row": 239, "column": 34}, "end_point": {"row": 239, "column": 37}}, {"id": 578, "type": "field_identifier", "text": "latitude", "parent": 576, "children": [], "start_point": {"row": 239, "column": 38}, "end_point": {"row": 239, "column": 46}}, {"id": 579, "type": "declaration", "text": "float longitude= minmea_tocoord(&gga.longitude);", "parent": 564, "children": [580, 581], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 50}}, {"id": 580, "type": "primitive_type", "text": "float", "parent": 579, "children": [], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 7}}, {"id": 581, "type": "init_declarator", "text": "longitude= minmea_tocoord(&gga.longitude)", "parent": 579, "children": [582, 583, 584], "start_point": {"row": 240, "column": 8}, "end_point": {"row": 240, "column": 49}}, {"id": 582, "type": "identifier", "text": "longitude", "parent": 581, "children": [], "start_point": {"row": 240, "column": 8}, "end_point": {"row": 240, "column": 17}}, {"id": 583, "type": "=", "text": "=", "parent": 581, "children": [], "start_point": {"row": 240, "column": 17}, "end_point": {"row": 240, "column": 18}}, {"id": 584, "type": "call_expression", "text": "minmea_tocoord(&gga.longitude)", "parent": 581, "children": [585, 586], "start_point": {"row": 240, "column": 19}, "end_point": {"row": 240, "column": 49}}, {"id": 585, "type": "identifier", "text": "minmea_tocoord", "parent": 584, "children": [], "start_point": {"row": 240, "column": 19}, "end_point": {"row": 240, "column": 33}}, {"id": 586, "type": "argument_list", "text": "(&gga.longitude)", "parent": 584, "children": [587], "start_point": {"row": 240, "column": 33}, "end_point": {"row": 240, "column": 49}}, {"id": 587, "type": "pointer_expression", "text": "&gga.longitude", "parent": 586, "children": [588], "start_point": {"row": 240, "column": 34}, "end_point": {"row": 240, "column": 48}}, {"id": 588, "type": "field_expression", "text": "gga.longitude", "parent": 587, "children": [589, 590], "start_point": {"row": 240, "column": 35}, "end_point": {"row": 240, "column": 48}}, {"id": 589, "type": "identifier", "text": "gga", "parent": 588, "children": [], "start_point": {"row": 240, "column": 35}, "end_point": {"row": 240, "column": 38}}, {"id": 590, "type": "field_identifier", "text": "longitude", "parent": 588, "children": [], "start_point": {"row": 240, "column": 39}, "end_point": {"row": 240, "column": 48}}, {"id": 591, "type": "declaration", "text": "float altitude= minmea_tofloat(&gga.altitude);", "parent": 564, "children": [592, 593], "start_point": {"row": 241, "column": 2}, "end_point": {"row": 241, "column": 48}}, {"id": 592, "type": "primitive_type", "text": "float", "parent": 591, "children": [], "start_point": {"row": 241, "column": 2}, "end_point": {"row": 241, "column": 7}}, {"id": 593, "type": "init_declarator", "text": "altitude= minmea_tofloat(&gga.altitude)", "parent": 591, "children": [594, 595, 596], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 47}}, {"id": 594, "type": "identifier", "text": "altitude", "parent": 593, "children": [], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 16}}, {"id": 595, "type": "=", "text": "=", "parent": 593, "children": [], "start_point": {"row": 241, "column": 16}, "end_point": {"row": 241, "column": 17}}, {"id": 596, "type": "call_expression", "text": "minmea_tofloat(&gga.altitude)", "parent": 593, "children": [597, 598], "start_point": {"row": 241, "column": 18}, "end_point": {"row": 241, "column": 47}}, {"id": 597, "type": "identifier", "text": "minmea_tofloat", "parent": 596, "children": [], "start_point": {"row": 241, "column": 18}, "end_point": {"row": 241, "column": 32}}, {"id": 598, "type": "argument_list", "text": "(&gga.altitude)", "parent": 596, "children": [599], "start_point": {"row": 241, "column": 32}, "end_point": {"row": 241, "column": 47}}, {"id": 599, "type": "pointer_expression", "text": "&gga.altitude", "parent": 598, "children": [600], "start_point": {"row": 241, "column": 33}, "end_point": {"row": 241, "column": 46}}, {"id": 600, "type": "field_expression", "text": "gga.altitude", "parent": 599, "children": [601, 602], "start_point": {"row": 241, "column": 34}, "end_point": {"row": 241, "column": 46}}, {"id": 601, "type": "identifier", "text": "gga", "parent": 600, "children": [], "start_point": {"row": 241, "column": 34}, "end_point": {"row": 241, "column": 37}}, {"id": 602, "type": "field_identifier", "text": "altitude", "parent": 600, "children": [], "start_point": {"row": 241, "column": 38}, "end_point": {"row": 241, "column": 46}}, {"id": 603, "type": "declaration", "text": "float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);", "parent": 564, "children": [604, 605], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 82}}, {"id": 604, "type": "primitive_type", "text": "float", "parent": 603, "children": [], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 7}}, {"id": 605, "type": "init_declarator", "text": "latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation)", "parent": 603, "children": [606, 607, 608], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 81}}, {"id": 606, "type": "identifier", "text": "latitude_error_deviation", "parent": 605, "children": [], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 32}}, {"id": 607, "type": "=", "text": "=", "parent": 605, "children": [], "start_point": {"row": 244, "column": 33}, "end_point": {"row": 244, "column": 34}}, {"id": 608, "type": "call_expression", "text": "minmea_tofloat(& gst.latitude_error_deviation)", "parent": 605, "children": [609, 610], "start_point": {"row": 244, "column": 35}, "end_point": {"row": 244, "column": 81}}, {"id": 609, "type": "identifier", "text": "minmea_tofloat", "parent": 608, "children": [], "start_point": {"row": 244, "column": 35}, "end_point": {"row": 244, "column": 49}}, {"id": 610, "type": "argument_list", "text": "(& gst.latitude_error_deviation)", "parent": 608, "children": [611], "start_point": {"row": 244, "column": 49}, "end_point": {"row": 244, "column": 81}}, {"id": 611, "type": "pointer_expression", "text": "& gst.latitude_error_deviation", "parent": 610, "children": [612], "start_point": {"row": 244, "column": 50}, "end_point": {"row": 244, "column": 80}}, {"id": 612, "type": "field_expression", "text": "gst.latitude_error_deviation", "parent": 611, "children": [613, 614], "start_point": {"row": 244, "column": 52}, "end_point": {"row": 244, "column": 80}}, {"id": 613, "type": "identifier", "text": "gst", "parent": 612, "children": [], "start_point": {"row": 244, "column": 52}, "end_point": {"row": 244, "column": 55}}, {"id": 614, "type": "field_identifier", "text": "latitude_error_deviation", "parent": 612, "children": [], "start_point": {"row": 244, "column": 56}, "end_point": {"row": 244, "column": 80}}, {"id": 615, "type": "declaration", "text": "float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);", "parent": 564, "children": [616, 617], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 84}}, {"id": 616, "type": "primitive_type", "text": "float", "parent": 615, "children": [], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 7}}, {"id": 617, "type": "init_declarator", "text": "longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation)", "parent": 615, "children": [618, 619, 620], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 83}}, {"id": 618, "type": "identifier", "text": "longitude_error_deviation", "parent": 617, "children": [], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 33}}, {"id": 619, "type": "=", "text": "=", "parent": 617, "children": [], "start_point": {"row": 245, "column": 34}, "end_point": {"row": 245, "column": 35}}, {"id": 620, "type": "call_expression", "text": "minmea_tofloat(& gst.longitude_error_deviation)", "parent": 617, "children": [621, 622], "start_point": {"row": 245, "column": 36}, "end_point": {"row": 245, "column": 83}}, {"id": 621, "type": "identifier", "text": "minmea_tofloat", "parent": 620, "children": [], "start_point": {"row": 245, "column": 36}, "end_point": {"row": 245, "column": 50}}, {"id": 622, "type": "argument_list", "text": "(& gst.longitude_error_deviation)", "parent": 620, "children": [623], "start_point": {"row": 245, "column": 50}, "end_point": {"row": 245, "column": 83}}, {"id": 623, "type": "pointer_expression", "text": "& gst.longitude_error_deviation", "parent": 622, "children": [624], "start_point": {"row": 245, "column": 51}, "end_point": {"row": 245, "column": 82}}, {"id": 624, "type": "field_expression", "text": "gst.longitude_error_deviation", "parent": 623, "children": [625, 626], "start_point": {"row": 245, "column": 53}, "end_point": {"row": 245, "column": 82}}, {"id": 625, "type": "identifier", "text": "gst", "parent": 624, "children": [], "start_point": {"row": 245, "column": 53}, "end_point": {"row": 245, "column": 56}}, {"id": 626, "type": "field_identifier", "text": "longitude_error_deviation", "parent": 624, "children": [], "start_point": {"row": 245, "column": 57}, "end_point": {"row": 245, "column": 82}}, {"id": 627, "type": "declaration", "text": "float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);", "parent": 564, "children": [628, 629], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 81}}, {"id": 628, "type": "primitive_type", "text": "float", "parent": 627, "children": [], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 7}}, {"id": 629, "type": "init_declarator", "text": "altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation)", "parent": 627, "children": [630, 631, 632], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 80}}, {"id": 630, "type": "identifier", "text": "altitude_error_deviation", "parent": 629, "children": [], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 32}}, {"id": 631, "type": "=", "text": "=", "parent": 629, "children": [], "start_point": {"row": 246, "column": 32}, "end_point": {"row": 246, "column": 33}}, {"id": 632, "type": "call_expression", "text": "minmea_tofloat(& gst.altitude_error_deviation)", "parent": 629, "children": [633, 634], "start_point": {"row": 246, "column": 34}, "end_point": {"row": 246, "column": 80}}, {"id": 633, "type": "identifier", "text": "minmea_tofloat", "parent": 632, "children": [], "start_point": {"row": 246, "column": 34}, "end_point": {"row": 246, "column": 48}}, {"id": 634, "type": "argument_list", "text": "(& gst.altitude_error_deviation)", "parent": 632, "children": [635], "start_point": {"row": 246, "column": 48}, "end_point": {"row": 246, "column": 80}}, {"id": 635, "type": "pointer_expression", "text": "& gst.altitude_error_deviation", "parent": 634, "children": [636], "start_point": {"row": 246, "column": 49}, "end_point": {"row": 246, "column": 79}}, {"id": 636, "type": "field_expression", "text": "gst.altitude_error_deviation", "parent": 635, "children": [637, 638], "start_point": {"row": 246, "column": 51}, "end_point": {"row": 246, "column": 79}}, {"id": 637, "type": "identifier", "text": "gst", "parent": 636, "children": [], "start_point": {"row": 246, "column": 51}, "end_point": {"row": 246, "column": 54}}, {"id": 638, "type": "field_identifier", "text": "altitude_error_deviation", "parent": 636, "children": [], "start_point": {"row": 246, "column": 55}, "end_point": {"row": 246, "column": 79}}, {"id": 639, "type": "call_expression", "text": "sprintf(buff, \"%04d-%02d-%02d %02d:%02d:%02d (UTC)\",\n\t\t\trmc.date.year+2000,\n\t\t\trmc.date.month,\n\t\t\trmc.date.day,\n\t\t\trmc.time.hours,\n\t\t\trmc.time.minutes,\n\t\t\trmc.time.seconds)", "parent": 564, "children": [640, 641], "start_point": {"row": 248, "column": 2}, "end_point": {"row": 254, "column": 20}}, {"id": 640, "type": "identifier", "text": "sprintf", "parent": 639, "children": [], "start_point": {"row": 248, "column": 2}, "end_point": {"row": 248, "column": 9}}, {"id": 641, "type": "argument_list", "text": "(buff, \"%04d-%02d-%02d %02d:%02d:%02d (UTC)\",\n\t\t\trmc.date.year+2000,\n\t\t\trmc.date.month,\n\t\t\trmc.date.day,\n\t\t\trmc.time.hours,\n\t\t\trmc.time.minutes,\n\t\t\trmc.time.seconds)", "parent": 639, "children": [642, 643, 644, 652, 657, 662, 667, 672], "start_point": {"row": 248, "column": 9}, "end_point": {"row": 254, "column": 20}}, {"id": 642, "type": "identifier", "text": "buff", "parent": 641, "children": [], "start_point": {"row": 248, "column": 10}, "end_point": {"row": 248, "column": 14}}, {"id": 643, "type": "string_literal", "text": "\"%04d-%02d-%02d %02d:%02d:%02d (UTC)\"", "parent": 641, "children": [], "start_point": {"row": 248, "column": 16}, "end_point": {"row": 248, "column": 53}}, {"id": 644, "type": "binary_expression", "text": "rmc.date.year+2000", "parent": 641, "children": [645, 650, 651], "start_point": {"row": 249, "column": 3}, "end_point": {"row": 249, "column": 21}}, {"id": 645, "type": "field_expression", "text": "rmc.date.year", "parent": 644, "children": [646, 649], "start_point": {"row": 249, "column": 3}, "end_point": {"row": 249, "column": 16}}, {"id": 646, "type": "field_expression", "text": "rmc.date", "parent": 645, "children": [647, 648], "start_point": {"row": 249, "column": 3}, "end_point": {"row": 249, "column": 11}}, {"id": 647, "type": "identifier", "text": "rmc", "parent": 646, "children": [], "start_point": {"row": 249, "column": 3}, "end_point": {"row": 249, "column": 6}}, {"id": 648, "type": "field_identifier", "text": "date", "parent": 646, "children": [], "start_point": {"row": 249, "column": 7}, "end_point": {"row": 249, "column": 11}}, {"id": 649, "type": "field_identifier", "text": "year", "parent": 645, "children": [], "start_point": {"row": 249, "column": 12}, "end_point": {"row": 249, "column": 16}}, {"id": 650, "type": "+", "text": "+", "parent": 644, "children": [], "start_point": {"row": 249, "column": 16}, "end_point": {"row": 249, "column": 17}}, {"id": 651, "type": "number_literal", "text": "2000", "parent": 644, "children": [], "start_point": {"row": 249, "column": 17}, "end_point": {"row": 249, "column": 21}}, {"id": 652, "type": "field_expression", "text": "rmc.date.month", "parent": 641, "children": [653, 656], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 17}}, {"id": 653, "type": "field_expression", "text": "rmc.date", "parent": 652, "children": [654, 655], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 11}}, {"id": 654, "type": "identifier", "text": "rmc", "parent": 653, "children": [], "start_point": {"row": 250, "column": 3}, "end_point": {"row": 250, "column": 6}}, {"id": 655, "type": "field_identifier", "text": "date", "parent": 653, "children": [], "start_point": {"row": 250, "column": 7}, "end_point": {"row": 250, "column": 11}}, {"id": 656, "type": "field_identifier", "text": "month", "parent": 652, "children": [], "start_point": {"row": 250, "column": 12}, "end_point": {"row": 250, "column": 17}}, {"id": 657, "type": "field_expression", "text": "rmc.date.day", "parent": 641, "children": [658, 661], "start_point": {"row": 251, "column": 3}, "end_point": {"row": 251, "column": 15}}, {"id": 658, "type": "field_expression", "text": "rmc.date", "parent": 657, "children": [659, 660], "start_point": {"row": 251, "column": 3}, "end_point": {"row": 251, "column": 11}}, {"id": 659, "type": "identifier", "text": "rmc", "parent": 658, "children": [], "start_point": {"row": 251, "column": 3}, "end_point": {"row": 251, "column": 6}}, {"id": 660, "type": "field_identifier", "text": "date", "parent": 658, "children": [], "start_point": {"row": 251, "column": 7}, "end_point": {"row": 251, "column": 11}}, {"id": 661, "type": "field_identifier", "text": "day", "parent": 657, "children": [], "start_point": {"row": 251, "column": 12}, "end_point": {"row": 251, "column": 15}}, {"id": 662, "type": "field_expression", "text": "rmc.time.hours", "parent": 641, "children": [663, 666], "start_point": {"row": 252, "column": 3}, "end_point": {"row": 252, "column": 17}}, {"id": 663, "type": "field_expression", "text": "rmc.time", "parent": 662, "children": [664, 665], "start_point": {"row": 252, "column": 3}, "end_point": {"row": 252, "column": 11}}, {"id": 664, "type": "identifier", "text": "rmc", "parent": 663, "children": [], "start_point": {"row": 252, "column": 3}, "end_point": {"row": 252, "column": 6}}, {"id": 665, "type": "field_identifier", "text": "time", "parent": 663, "children": [], "start_point": {"row": 252, "column": 7}, "end_point": {"row": 252, "column": 11}}, {"id": 666, "type": "field_identifier", "text": "hours", "parent": 662, "children": [], "start_point": {"row": 252, "column": 12}, "end_point": {"row": 252, "column": 17}}, {"id": 667, "type": "field_expression", "text": "rmc.time.minutes", "parent": 641, "children": [668, 671], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 19}}, {"id": 668, "type": "field_expression", "text": "rmc.time", "parent": 667, "children": [669, 670], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 11}}, {"id": 669, "type": "identifier", "text": "rmc", "parent": 668, "children": [], "start_point": {"row": 253, "column": 3}, "end_point": {"row": 253, "column": 6}}, {"id": 670, "type": "field_identifier", "text": "time", "parent": 668, "children": [], "start_point": {"row": 253, "column": 7}, "end_point": {"row": 253, "column": 11}}, {"id": 671, "type": "field_identifier", "text": "minutes", "parent": 667, "children": [], "start_point": {"row": 253, "column": 12}, "end_point": {"row": 253, "column": 19}}, {"id": 672, "type": "field_expression", "text": "rmc.time.seconds", "parent": 641, "children": [673, 676], "start_point": {"row": 254, "column": 3}, "end_point": {"row": 254, "column": 19}}, {"id": 673, "type": "field_expression", "text": "rmc.time", "parent": 672, "children": [674, 675], "start_point": {"row": 254, "column": 3}, "end_point": {"row": 254, "column": 11}}, {"id": 674, "type": "identifier", "text": "rmc", "parent": 673, "children": [], "start_point": {"row": 254, "column": 3}, "end_point": {"row": 254, "column": 6}}, {"id": 675, "type": "field_identifier", "text": "time", "parent": 673, "children": [], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 11}}, {"id": 676, "type": "field_identifier", "text": "seconds", "parent": 672, "children": [], "start_point": {"row": 254, "column": 12}, "end_point": {"row": 254, "column": 19}}, {"id": 677, "type": "call_expression", "text": "print(buff,0)", "parent": 564, "children": [678, 679], "start_point": {"row": 255, "column": 2}, "end_point": {"row": 255, "column": 15}}, {"id": 678, "type": "identifier", "text": "print", "parent": 677, "children": [], "start_point": {"row": 255, "column": 2}, "end_point": {"row": 255, "column": 7}}, {"id": 679, "type": "argument_list", "text": "(buff,0)", "parent": 677, "children": [680, 681], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 15}}, {"id": 680, "type": "identifier", "text": "buff", "parent": 679, "children": [], "start_point": {"row": 255, "column": 8}, "end_point": {"row": 255, "column": 12}}, {"id": 681, "type": "number_literal", "text": "0", "parent": 679, "children": [], "start_point": {"row": 255, "column": 13}, "end_point": {"row": 255, "column": 14}}, {"id": 682, "type": "call_expression", "text": "sprintf(buff, \"latitude : %10.6f \u00b0\", latitude);", "parent": 564, "children": [683, 684], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 49}}, {"id": 683, "type": "identifier", "text": "sprintf", "parent": 682, "children": [], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 9}}, {"id": 684, "type": "argument_list", "text": "(buff, \"latitude : %10.6f \u00b0\", latitude);", "parent": 682, "children": [685, 686, 687], "start_point": {"row": 258, "column": 9}, "end_point": {"row": 258, "column": 49}}, {"id": 685, "type": "identifier", "text": "buff", "parent": 684, "children": [], "start_point": {"row": 258, "column": 10}, "end_point": {"row": 258, "column": 14}}, {"id": 686, "type": "string_literal", "text": "\"latitude : %10.6f \u00b0\",", "parent": 684, "children": [], "start_point": {"row": 258, "column": 16}, "end_point": {"row": 258, "column": 38}}, {"id": 687, "type": "identifier", "text": "atitude)", "parent": 684, "children": [], "start_point": {"row": 258, "column": 40}, "end_point": {"row": 258, "column": 48}}, {"id": 688, "type": "call_expression", "text": "rint(buff,1);", "parent": 564, "children": [689, 690], "start_point": {"row": 259, "column": 2}, "end_point": {"row": 259, "column": 15}}, {"id": 689, "type": "identifier", "text": "rint(", "parent": 688, "children": [], "start_point": {"row": 259, "column": 2}, "end_point": {"row": 259, "column": 7}}, {"id": 690, "type": "argument_list", "text": "buff,1);", "parent": 688, "children": [691], "start_point": {"row": 259, "column": 7}, "end_point": {"row": 259, "column": 15}}, {"id": 691, "type": "identifier", "text": "uff,", "parent": 690, "children": [], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 12}}, {"id": 692, "type": "call_expression", "text": "printf(buff, \" error: %6.2f m\", latitude_error_deviation);", "parent": 564, "children": [693, 694], "start_point": {"row": 260, "column": 2}, "end_point": {"row": 260, "column": 63}}, {"id": 693, "type": "identifier", "text": "printf(", "parent": 692, "children": [], "start_point": {"row": 260, "column": 2}, "end_point": {"row": 260, "column": 9}}, {"id": 694, "type": "argument_list", "text": "buff, \" error: %6.2f m\", latitude_error_deviation);", "parent": 692, "children": [695, 696, 697], "start_point": {"row": 260, "column": 9}, "end_point": {"row": 260, "column": 63}}, {"id": 695, "type": "identifier", "text": "uff,", "parent": 694, "children": [], "start_point": {"row": 260, "column": 10}, "end_point": {"row": 260, "column": 14}}, {"id": 696, "type": "string_literal", "text": " error: %6.2f m\",", "parent": 694, "children": [], "start_point": {"row": 260, "column": 16}, "end_point": {"row": 260, "column": 36}}, {"id": 697, "type": "identifier", "text": "atitude_error_deviation)", "parent": 694, "children": [], "start_point": {"row": 260, "column": 38}, "end_point": {"row": 260, "column": 62}}, {"id": 698, "type": "call_expression", "text": "rint(buff,2);", "parent": 564, "children": [699, 700], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 15}}, {"id": 699, "type": "identifier", "text": "rint(", "parent": 698, "children": [], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 7}}, {"id": 700, "type": "argument_list", "text": "buff,2);", "parent": 698, "children": [701], "start_point": {"row": 261, "column": 7}, "end_point": {"row": 261, "column": 15}}, {"id": 701, "type": "identifier", "text": "uff,", "parent": 700, "children": [], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 12}}, {"id": 702, "type": "call_expression", "text": "printf(buff, \"longitude: %10.6f \u00b0\", longitude );\n", "parent": 564, "children": [703, 704], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 51}}, {"id": 703, "type": "identifier", "text": "printf(", "parent": 702, "children": [], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 9}}, {"id": 704, "type": "argument_list", "text": "buff, \"longitude: %10.6f \u00b0\", longitude );\n", "parent": 702, "children": [705, 706, 707], "start_point": {"row": 262, "column": 9}, "end_point": {"row": 262, "column": 51}}, {"id": 705, "type": "identifier", "text": "uff,", "parent": 704, "children": [], "start_point": {"row": 262, "column": 10}, "end_point": {"row": 262, "column": 14}}, {"id": 706, "type": "string_literal", "text": "longitude: %10.6f \u00b0\", ", "parent": 704, "children": [], "start_point": {"row": 262, "column": 16}, "end_point": {"row": 262, "column": 38}}, {"id": 707, "type": "identifier", "text": "ngitude )", "parent": 704, "children": [], "start_point": {"row": 262, "column": 40}, "end_point": {"row": 262, "column": 49}}, {"id": 708, "type": "call_expression", "text": "int(buff,3);\n", "parent": 564, "children": [709, 710], "start_point": {"row": 263, "column": 2}, "end_point": {"row": 263, "column": 15}}, {"id": 709, "type": "identifier", "text": "int(b", "parent": 708, "children": [], "start_point": {"row": 263, "column": 2}, "end_point": {"row": 263, "column": 7}}, {"id": 710, "type": "argument_list", "text": "uff,3);\n", "parent": 708, "children": [711], "start_point": {"row": 263, "column": 7}, "end_point": {"row": 263, "column": 15}}, {"id": 711, "type": "identifier", "text": "ff,3", "parent": 710, "children": [], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 12}}, {"id": 712, "type": "call_expression", "text": "rintf(buff, \" error: %6.2f m\", longitude_error_deviation);\n", "parent": 564, "children": [713, 714], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 64}}, {"id": 713, "type": "identifier", "text": "rintf(b", "parent": 712, "children": [], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 9}}, {"id": 714, "type": "argument_list", "text": "uff, \" error: %6.2f m\", longitude_error_deviation);\n", "parent": 712, "children": [715, 716, 717], "start_point": {"row": 264, "column": 9}, "end_point": {"row": 264, "column": 64}}, {"id": 715, "type": "identifier", "text": "ff, ", "parent": 714, "children": [], "start_point": {"row": 264, "column": 10}, "end_point": {"row": 264, "column": 14}}, {"id": 716, "type": "string_literal", "text": " error: %6.2f m\", ", "parent": 714, "children": [], "start_point": {"row": 264, "column": 16}, "end_point": {"row": 264, "column": 36}}, {"id": 717, "type": "identifier", "text": "ngitude_error_deviation);", "parent": 714, "children": [], "start_point": {"row": 264, "column": 38}, "end_point": {"row": 264, "column": 63}}, {"id": 718, "type": "call_expression", "text": "int(buff,4);\n", "parent": 564, "children": [719, 720], "start_point": {"row": 265, "column": 2}, "end_point": {"row": 265, "column": 15}}, {"id": 719, "type": "identifier", "text": "int(b", "parent": 718, "children": [], "start_point": {"row": 265, "column": 2}, "end_point": {"row": 265, "column": 7}}, {"id": 720, "type": "argument_list", "text": "uff,4);\n", "parent": 718, "children": [721], "start_point": {"row": 265, "column": 7}, "end_point": {"row": 265, "column": 15}}, {"id": 721, "type": "identifier", "text": "ff,4", "parent": 720, "children": [], "start_point": {"row": 265, "column": 8}, "end_point": {"row": 265, "column": 12}}, {"id": 722, "type": "call_expression", "text": "rintf(buff, \"altitude : %6.2f m\", altitude );\n", "parent": 564, "children": [723, 724], "start_point": {"row": 267, "column": 2}, "end_point": {"row": 267, "column": 48}}, {"id": 723, "type": "identifier", "text": "rintf(b", "parent": 722, "children": [], "start_point": {"row": 267, "column": 2}, "end_point": {"row": 267, "column": 9}}, {"id": 724, "type": "argument_list", "text": "uff, \"altitude : %6.2f m\", altitude );\n", "parent": 722, "children": [725, 726, 727], "start_point": {"row": 267, "column": 9}, "end_point": {"row": 267, "column": 48}}, {"id": 725, "type": "identifier", "text": "ff, ", "parent": 724, "children": [], "start_point": {"row": 267, "column": 10}, "end_point": {"row": 267, "column": 14}}, {"id": 726, "type": "string_literal", "text": "ltitude : %6.2f m\", ", "parent": 724, "children": [], "start_point": {"row": 267, "column": 16}, "end_point": {"row": 267, "column": 36}}, {"id": 727, "type": "identifier", "text": "titude )", "parent": 724, "children": [], "start_point": {"row": 267, "column": 38}, "end_point": {"row": 267, "column": 46}}, {"id": 728, "type": "call_expression", "text": "int(buff,5);\n", "parent": 564, "children": [729, 730], "start_point": {"row": 268, "column": 2}, "end_point": {"row": 268, "column": 15}}, {"id": 729, "type": "identifier", "text": "int(b", "parent": 728, "children": [], "start_point": {"row": 268, "column": 2}, "end_point": {"row": 268, "column": 7}}, {"id": 730, "type": "argument_list", "text": "uff,5);\n", "parent": 728, "children": [731], "start_point": {"row": 268, "column": 7}, "end_point": {"row": 268, "column": 15}}, {"id": 731, "type": "identifier", "text": "ff,5", "parent": 730, "children": [], "start_point": {"row": 268, "column": 8}, "end_point": {"row": 268, "column": 12}}, {"id": 732, "type": "call_expression", "text": "rintf(buff, \" error: %6.2f m\", altitude_error_deviation);\n", "parent": 564, "children": [733, 734], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 63}}, {"id": 733, "type": "identifier", "text": "rintf(b", "parent": 732, "children": [], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 9}}, {"id": 734, "type": "argument_list", "text": "uff, \" error: %6.2f m\", altitude_error_deviation);\n", "parent": 732, "children": [735, 736, 737], "start_point": {"row": 269, "column": 9}, "end_point": {"row": 269, "column": 63}}, {"id": 735, "type": "identifier", "text": "ff, ", "parent": 734, "children": [], "start_point": {"row": 269, "column": 10}, "end_point": {"row": 269, "column": 14}}, {"id": 736, "type": "string_literal", "text": " error: %6.2f m\", ", "parent": 734, "children": [], "start_point": {"row": 269, "column": 16}, "end_point": {"row": 269, "column": 36}}, {"id": 737, "type": "identifier", "text": "titude_error_deviation);", "parent": 734, "children": [], "start_point": {"row": 269, "column": 38}, "end_point": {"row": 269, "column": 62}}, {"id": 738, "type": "call_expression", "text": "int(buff,6);\n", "parent": 564, "children": [739, 740], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 15}}, {"id": 739, "type": "identifier", "text": "int(b", "parent": 738, "children": [], "start_point": {"row": 270, "column": 2}, "end_point": {"row": 270, "column": 7}}, {"id": 740, "type": "argument_list", "text": "uff,6);\n", "parent": 738, "children": [741], "start_point": {"row": 270, "column": 7}, "end_point": {"row": 270, "column": 15}}, {"id": 741, "type": "identifier", "text": "ff,6", "parent": 740, "children": [], "start_point": {"row": 270, "column": 8}, "end_point": {"row": 270, "column": 12}}, {"id": 742, "type": "declaration", "text": "ar * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n\t", "parent": 564, "children": [743, 744], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 127}}, {"id": 743, "type": "primitive_type", "text": "ar *", "parent": 742, "children": [], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 6}}, {"id": 744, "type": "init_declarator", "text": "geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n", "parent": 742, "children": [745, 748, 749], "start_point": {"row": 273, "column": 7}, "end_point": {"row": 273, "column": 126}}, {"id": 745, "type": "pointer_declarator", "text": "geohash =", "parent": 744, "children": [746, 747], "start_point": {"row": 273, "column": 7}, "end_point": {"row": 273, "column": 16}}, {"id": 746, "type": "*", "text": "g", "parent": 745, "children": [], "start_point": {"row": 273, "column": 7}, "end_point": {"row": 273, "column": 8}}, {"id": 747, "type": "identifier", "text": "ohash =", "parent": 745, "children": [], "start_point": {"row": 273, "column": 9}, "end_point": {"row": 273, "column": 16}}, {"id": 748, "type": "=", "text": "g", "parent": 744, "children": [], "start_point": {"row": 273, "column": 17}, "end_point": {"row": 273, "column": 18}}, {"id": 749, "type": "call_expression", "text": "ohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n", "parent": 744, "children": [750, 751], "start_point": {"row": 273, "column": 19}, "end_point": {"row": 273, "column": 126}}, {"id": 750, "type": "identifier", "text": "ohash_encode(l", "parent": 749, "children": [], "start_point": {"row": 273, "column": 19}, "end_point": {"row": 273, "column": 33}}, {"id": 751, "type": "argument_list", "text": "atitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n", "parent": 749, "children": [752, 753, 754], "start_point": {"row": 273, "column": 33}, "end_point": {"row": 273, "column": 126}}, {"id": 752, "type": "identifier", "text": "titude,l", "parent": 751, "children": [], "start_point": {"row": 273, "column": 34}, "end_point": {"row": 273, "column": 42}}, {"id": 753, "type": "identifier", "text": "ngitude, ", "parent": 751, "children": [], "start_point": {"row": 273, "column": 43}, "end_point": {"row": 273, "column": 52}}, {"id": 754, "type": "call_expression", "text": "ohash_precision(latitude_error_deviation, longitude_error_deviation) )", "parent": 751, "children": [755, 756], "start_point": {"row": 273, "column": 54}, "end_point": {"row": 273, "column": 124}}, {"id": 755, "type": "identifier", "text": "ohash_precision(l", "parent": 754, "children": [], "start_point": {"row": 273, "column": 54}, "end_point": {"row": 273, "column": 71}}, {"id": 756, "type": "argument_list", "text": "atitude_error_deviation, longitude_error_deviation) )", "parent": 754, "children": [757, 758], "start_point": {"row": 273, "column": 71}, "end_point": {"row": 273, "column": 124}}, {"id": 757, "type": "identifier", "text": "titude_error_deviation, ", "parent": 756, "children": [], "start_point": {"row": 273, "column": 72}, "end_point": {"row": 273, "column": 96}}, {"id": 758, "type": "identifier", "text": "ngitude_error_deviation) ", "parent": 756, "children": [], "start_point": {"row": 273, "column": 98}, "end_point": {"row": 273, "column": 123}}, {"id": 759, "type": "if_statement", "text": " (geohash) {\n\t\t\tsprintf(buff, \"geohash : %s\",geohash );\n\t\t\tfree(geohash);\n\t\t\tprint(buff,7);\n\t\t}\n\n", "parent": 564, "children": [760], "start_point": {"row": 274, "column": 2}, "end_point": {"row": 278, "column": 3}}, {"id": 760, "type": "parenthesized_expression", "text": "eohash) {", "parent": 759, "children": [761], "start_point": {"row": 274, "column": 5}, "end_point": {"row": 274, "column": 14}}, {"id": 761, "type": "identifier", "text": "ohash) ", "parent": 760, "children": [], "start_point": {"row": 274, "column": 6}, "end_point": {"row": 274, "column": 13}}, {"id": 762, "type": "call_expression", "text": "rintf(buff, \"geohash : %s\",geohash );\n", "parent": 759, "children": [763, 764], "start_point": {"row": 275, "column": 3}, "end_point": {"row": 275, "column": 42}}, {"id": 763, "type": "identifier", "text": "rintf(b", "parent": 762, "children": [], "start_point": {"row": 275, "column": 3}, "end_point": {"row": 275, "column": 10}}, {"id": 764, "type": "argument_list", "text": "uff, \"geohash : %s\",geohash );\n", "parent": 762, "children": [765, 766, 767], "start_point": {"row": 275, "column": 10}, "end_point": {"row": 275, "column": 42}}, {"id": 765, "type": "identifier", "text": "ff, ", "parent": 764, "children": [], "start_point": {"row": 275, "column": 11}, "end_point": {"row": 275, "column": 15}}, {"id": 766, "type": "string_literal", "text": "eohash : %s\",g", "parent": 764, "children": [], "start_point": {"row": 275, "column": 17}, "end_point": {"row": 275, "column": 32}}, {"id": 767, "type": "identifier", "text": "ohash )", "parent": 764, "children": [], "start_point": {"row": 275, "column": 33}, "end_point": {"row": 275, "column": 40}}, {"id": 768, "type": "call_expression", "text": "ee(geohash);\n", "parent": 759, "children": [769, 770], "start_point": {"row": 276, "column": 3}, "end_point": {"row": 276, "column": 16}}, {"id": 769, "type": "identifier", "text": "ee(g", "parent": 768, "children": [], "start_point": {"row": 276, "column": 3}, "end_point": {"row": 276, "column": 7}}, {"id": 770, "type": "argument_list", "text": "eohash);\n", "parent": 768, "children": [771], "start_point": {"row": 276, "column": 7}, "end_point": {"row": 276, "column": 16}}, {"id": 771, "type": "identifier", "text": "ohash);", "parent": 770, "children": [], "start_point": {"row": 276, "column": 8}, "end_point": {"row": 276, "column": 15}}, {"id": 772, "type": "call_expression", "text": "int(buff,7);\n", "parent": 759, "children": [773, 774], "start_point": {"row": 277, "column": 3}, "end_point": {"row": 277, "column": 16}}, {"id": 773, "type": "identifier", "text": "int(b", "parent": 772, "children": [], "start_point": {"row": 277, "column": 3}, "end_point": {"row": 277, "column": 8}}, {"id": 774, "type": "argument_list", "text": "uff,7);\n", "parent": 772, "children": [775], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 16}}, {"id": 775, "type": "identifier", "text": "ff,7", "parent": 774, "children": [], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 13}}, {"id": 776, "type": "call_expression", "text": "amebuffer_apply();\n", "parent": 564, "children": [777], "start_point": {"row": 280, "column": 2}, "end_point": {"row": 280, "column": 21}}, {"id": 777, "type": "identifier", "text": "amebuffer_apply()", "parent": 776, "children": [], "start_point": {"row": 280, "column": 2}, "end_point": {"row": 280, "column": 19}}, {"id": 778, "type": "call_expression", "text": "hal_delay_ms(1000);\n", "parent": 564, "children": [779, 780], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 22}}, {"id": 779, "type": "identifier", "text": "hal_delay_ms(1", "parent": 778, "children": [], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 16}}, {"id": 780, "type": "argument_list", "text": "000);\n", "parent": 778, "children": [781], "start_point": {"row": 281, "column": 16}, "end_point": {"row": 281, "column": 22}}, {"id": 781, "type": "number_literal", "text": "00);", "parent": 780, "children": [], "start_point": {"row": 281, "column": 17}, "end_point": {"row": 281, "column": 21}}]}, "node_categories": {"declarations": {"functions": [45, 47, 52, 54, 62, 64, 92, 94, 209, 211, 399, 401, 503, 505], "variables": [36, 50, 57, 67, 72, 77, 82, 87, 97, 102, 105, 134, 214, 216, 221, 224, 404, 407, 410, 567, 579, 591, 603, 615, 627, 742], "classes": [73, 74, 78, 79, 83, 84], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34], "modules": [], "enums": [106, 107]}, "statements": {"expressions": [59, 69, 112, 119, 139, 142, 146, 149, 162, 165, 186, 189, 228, 234, 240, 244, 245, 246, 251, 255, 256, 259, 260, 265, 271, 277, 283, 289, 295, 303, 309, 315, 321, 324, 327, 333, 339, 345, 351, 357, 363, 369, 375, 379, 385, 389, 394, 397, 417, 418, 425, 433, 438, 439, 446, 447, 454, 455, 462, 463, 470, 471, 478, 479, 486, 487, 494, 495, 511, 514, 520, 523, 526, 529, 532, 539, 542, 545, 548, 551, 556, 560, 565, 572, 575, 576, 584, 587, 588, 596, 599, 600, 608, 611, 612, 620, 623, 624, 632, 635, 636, 639, 644, 645, 646, 652, 653, 657, 658, 662, 663, 667, 668, 672, 673, 677, 682, 688, 692, 698, 702, 708, 712, 718, 722, 728, 732, 738, 749, 754, 760, 762, 768, 772, 776, 778], "assignments": [159, 183, 227, 233, 239, 250, 264, 270, 276, 282, 288, 294, 302, 308, 314, 320, 326, 332, 338, 344, 350, 356, 362, 368, 374, 384, 422, 430, 536], "loops": [564], "conditionals": [37, 41, 48, 55, 60, 65, 70, 75, 76, 80, 81, 85, 86, 90, 95, 101, 104, 108, 110, 113, 115, 117, 118, 120, 121, 122, 123, 126, 127, 128, 131, 132, 133, 137, 140, 143, 144, 145, 147, 150, 156, 157, 158, 160, 163, 166, 167, 170, 171, 172, 175, 176, 177, 180, 181, 182, 184, 187, 190, 191, 194, 195, 196, 199, 200, 201, 204, 205, 206, 212, 219, 222, 223, 225, 226, 229, 230, 232, 235, 236, 238, 241, 242, 247, 252, 253, 257, 261, 266, 267, 272, 273, 278, 279, 284, 285, 290, 291, 296, 297, 304, 305, 310, 311, 316, 317, 322, 325, 328, 329, 334, 335, 340, 341, 343, 346, 347, 352, 353, 355, 358, 359, 364, 365, 370, 371, 376, 377, 380, 382, 383, 386, 387, 390, 392, 393, 395, 398, 402, 406, 409, 413, 415, 416, 419, 421, 423, 426, 431, 434, 437, 440, 442, 445, 448, 453, 456, 461, 464, 469, 472, 477, 480, 485, 488, 493, 496, 506, 508, 509, 510, 512, 515, 519, 521, 524, 527, 530, 533, 537, 540, 543, 546, 549, 552, 557, 561, 570, 573, 577, 578, 582, 585, 589, 590, 594, 597, 601, 602, 606, 609, 613, 614, 618, 621, 625, 626, 630, 633, 637, 638, 640, 642, 647, 648, 649, 654, 655, 656, 659, 660, 661, 664, 665, 666, 669, 670, 671, 674, 675, 676, 678, 680, 683, 685, 687, 689, 691, 693, 695, 697, 699, 701, 703, 705, 707, 709, 711, 713, 715, 717, 719, 721, 723, 725, 727, 729, 731, 733, 735, 737, 739, 741, 747, 750, 752, 753, 755, 757, 758, 759, 761, 763, 765, 767, 769, 771, 773, 775, 777, 779], "returns": [443, 451, 459, 467, 475, 483, 491, 499, 501], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 91, 152, 153, 220, 249, 263, 269, 281, 287, 299, 307, 319, 331, 337, 349, 361, 367, 373, 428, 436, 444, 450, 452, 458, 460, 466, 468, 474, 476, 482, 484, 490, 492, 498, 500, 502, 517, 535, 554, 555, 559, 563, 566, 643, 651, 681, 686, 696, 706, 716, 726, 736, 766, 781], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 45, "universal_type": "function", "name": "HardFault_Handler", "text_snippet": "void HardFault_Handler(void) {\n\n}"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "HardFault_Handler(void)"}, {"node_id": 52, "universal_type": "function", "name": "SysTick_Handler", "text_snippet": "void SysTick_Handler(void) {\n\tHAL_IncTick();\n}"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "SysTick_Handler(void)"}, {"node_id": 62, "universal_type": "function", "name": "SystemClock_Config", "text_snippet": "void SystemClock_Config(void) {\n\tClockSetup_HSE8_SYS72();\n}"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "SystemClock_Config(void)"}, {"node_id": 92, "universal_type": "function", "name": "uart_gnss_cb", "text_snippet": "void uart_gnss_cb(char *data, size_t size) {\n\n//\tstruct minmea_sentence_rmc rmc;\n//\tstruct minmea_se"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "uart_gnss_cb(char *data, size_t size)"}, {"node_id": 209, "universal_type": "function", "name": "uart_init", "text_snippet": "void uart_init(void) {\n\t//static uint8_t receive_buffer[512];\n\tstatic uint8_t receive_buffer[1024];\n"}, {"node_id": 211, "universal_type": "function", "name": "unknown", "text_snippet": "uart_init(void)"}, {"node_id": 399, "universal_type": "function", "name": "geohash_precision", "text_snippet": "int geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m) {\n\t// http"}, {"node_id": 401, "universal_type": "function", "name": "unknown", "text_snippet": "geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m)"}, {"node_id": 503, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n#ifdef SEMI\n\tinitialise_monitor_handles();\n\tprintf(\"Hello world!\\n\");\n#endif\n\n\t\n\tSystem"}, {"node_id": 505, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 73, "universal_type": "class", "name": "minmea_sentence_rmc", "text_snippet": "struct minmea_sentence_rmc"}, {"node_id": 74, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 78, "universal_type": "class", "name": "minmea_sentence_gst", "text_snippet": "struct minmea_sentence_gst"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 83, "universal_type": "class", "name": "minmea_sentence_gga", "text_snippet": "struct minmea_sentence_gga"}, {"node_id": 84, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdbool.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <string.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdfix.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"system.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"bshal_spim.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"bshal_delay.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"bshal_i2cm.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"bshal_uart.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"bshal_gpio.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"i2c.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"minmea.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"geohash.h\"\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "/*\n\n File: \t\tmain.c\n Author:\t<NAME>\n License:\tMIT\n\n\n MIT License\n\n Copyright (c) 2017-2022 <NAME> <<EMAIL>>\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\n#include <stdbool.h>\n#include <string.h>\n#include <stdfix.h>\n\n#include \"system.h\"\n\n#include \"bshal_spim.h\"\n#include \"bshal_delay.h\"\n#include \"bshal_i2cm.h\"\n#include \"bshal_uart.h\"\n#include \"bshal_gpio.h\"\n\n#include \"i2c.h\"\n\n#include \"minmea.h\"\n\n#include \"geohash.h\"\n\n\n\nbshal_i2cm_instance_t *gp_i2c = NULL;\n\nvoid HardFault_Handler(void) {\n\n}\n\nvoid SysTick_Handler(void) {\n\tHAL_IncTick();\n}\n\nvoid SystemClock_Config(void) {\n\tClockSetup_HSE8_SYS72();\n}\n\n\n// TODO ---\nstruct minmea_sentence_rmc rmc;\nstruct minmea_sentence_gst gst;\nstruct minmea_sentence_gga gga;\nchar buff[32];\n\n\nvoid uart_gnss_cb(char *data, size_t size) {\n\n//\tstruct minmea_sentence_rmc rmc;\n//\tstruct minmea_sentence_gst gst;\n\tenum minmea_sentence_id sentence_id = minmea_sentence_id(data, false);\n\tswitch (sentence_id ) {\n\n\tcase MINMEA_INVALID:\n\t\tbreak;\n\tcase MINMEA_UNKNOWN:\n\t\tbreak;\n\tcase MINMEA_SENTENCE_RMC:\n\n//\t\tstatic int cnt = 0;\n//\t\tcnt++;\n//\n//\t\tsprintf(buff,\"%d\",cnt);\n//\t\tprint(buff,5);\n\t\tbool success = minmea_parse_rmc( &rmc, data);\n\n\t\tif (success) {\n//\t\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n//\t\t\tsprintf(buff, \"latitude: %10.6f\", latitude);\n//\t\t\tprint(buff,1);\n//\t\t\tsprintf(buff, \"longitude: %10.6f\", longitude);\n//\t\t\tprint(buff,2);\n\t\t} else {\n\t\t\tprint(\"no fix\", 1);\n\t\t}\n\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GGA:\n\t\t// Default V.KEL\n\t\tsuccess = minmea_parse_gga( &gga, data);\n\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GSA:\n\t\t// Default V.KEL\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GLL:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GST:\n\t\tsuccess = minmea_parse_gst( &gst, data);\n//\t float latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n//\t float longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n//\t float altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\t\t// Contains RMS\n\t\tbreak;\n\tcase MINMEA_SENTENCE_GSV:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_VTG:\n\t\t// Default V.KEL\n\t\t//\n\t\tbreak;\n\tcase MINMEA_SENTENCE_ZDA:\n\t\tbreak;\n\t}\n}\n\nvoid uart_init(void) {\n\t//static uint8_t receive_buffer[512];\n\tstatic uint8_t receive_buffer[1024];\n\tstatic bshal_uart_async_t bshal_uart_async;\n\tstatic bshal_uart_instance_t bshal_uart_instance;\n\n\n\t// Configuration for the Async handler, to configure the synchronosation\n\tbshal_uart_async.callback = uart_gnss_cb; // Callback for the resulting NMEA string\n\n\tbshal_uart_async.receive_buffer = receive_buffer;\n\tbshal_uart_async.receive_buffer_len = sizeof(receive_buffer) - 128;\n\tbshal_uart_async.process_buffer = receive_buffer + sizeof(receive_buffer) - 128;\n\tbshal_uart_async.process_buffer_len = 128;\n\n\n\tbshal_uart_async.null_terminated_string = true; // Terminate the resulting string\n\n\tbshal_uart_async.sync_begin_data = \"$\";\t// NMEA sentences start with $\n\tbshal_uart_async.sync_begin_len = 1; //\n\tbshal_uart_async.sync_begin_include = true; // Include the $ in the result\n\n\tbshal_uart_async.sync_end = \"\\r\\n\"; // NMEA sentences end with \\r\\n\n\tbshal_uart_async.sync_end_len = 2;\n\tbshal_uart_async.sync_end_include = true; // Do include the \\r\\n in the result\n\n\tbshal_uart_async.max_data_len = 83; // The maximum length of an NMEA string\n\n\tbshal_uart_instance.async = & bshal_uart_async; // Asign the async handler to the uart instance\n\n\n\n\t// 9600,8,N,1\n\tbshal_uart_instance.bps = 9600;\n\tbshal_uart_instance.data_bits = 8;\n\tbshal_uart_instance.parity = bshal_uart_parity_none;\n\tbshal_uart_instance.stop_bits = 1;\n\n\tbshal_uart_instance.fc = bshal_uart_flow_control_none;\n\n\tbshal_uart_instance.hw_nr = 2; // UASRT 2\n\tbshal_uart_instance.cts_pin = -1; // No flow control\n\tbshal_uart_instance.rts_pin = -1; // No flow control\n\tbshal_uart_instance.rxd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_3); // PA3\n\tbshal_uart_instance.txd_pin = bshal_gpio_encode_pin(GPIOA, GPIO_PIN_2); // PA2\n\n\tbshal_stm32_uart_init(&bshal_uart_instance);\n\n\n}\n\nint geohash_precision(float latitude_error_deviation_m,float longitude_error_deviation_m) {\n\t// https://en.wikipedia.org/wiki/Geohash#Digits_and_precision_in_km\n\tfloat km_error = NAN;\n\tif (latitude_error_deviation_m < longitude_error_deviation_m ) {\n\t\tkm_error = latitude_error_deviation_m / 1000.0f;\n\t} else {\n\t\tkm_error = longitude_error_deviation_m / 1000.0f;\n\t}\n\tif (isnan(km_error)) return 1;\n\n\tif (km_error < 0.019f) return 8;\n\tif (km_error < 0.076f) return 7;\n\tif (km_error < 0.61f) return 6;\n\tif (km_error < 2.4f) return 5;\n\tif (km_error < 20.0f) return 4;\n\tif (km_error < 78.0f) return 3;\n\tif (km_error < 630.0f) return 2;\n\treturn 1;\n}\n\nint main() {\n#ifdef SEMI\n\tinitialise_monitor_handles();\n\tprintf(\"Hello world!\\n\");\n#endif\n\n\t\n\tSystemClock_Config();\n\tSystemCoreClockUpdate();\n\n\tHAL_Init();\n\n\tbshal_delay_init();\n\tbshal_delay_us(10);\n\n\tgp_i2c = i2c_init();\n\n\tuart_init();\n\n\tdisplay_init();\n\tdraw_background();\n\tprint(\"GNSS DEMO\", 0);\n\n\tnemaMsgEnable(\"GST\");\n\tbshal_delay_ms(100);\n\n\twhile (1) {\n\n//\t\tfloat latitude= minmea_tocoord(&rmc.latitude);\n//\t\tfloat longitude= minmea_tocoord(&rmc.longitude);\n\n\t\tfloat latitude= minmea_tocoord(&gga.latitude);\n\t\tfloat longitude= minmea_tocoord(&gga.longitude);\n\t\tfloat altitude= minmea_tofloat(&gga.altitude);\n\n\n\t\tfloat latitude_error_deviation = minmea_tofloat(& gst.latitude_error_deviation);\n\t\tfloat longitude_error_deviation = minmea_tofloat(& gst.longitude_error_deviation);\n\t\tfloat altitude_error_deviation= minmea_tofloat(& gst.altitude_error_deviation);\n\n\t\tsprintf(buff, \"%04d-%02d-%02d %02d:%02d:%02d (UTC)\",\n\t\t\trmc.date.year+2000,\n\t\t\trmc.date.month,\n\t\t\trmc.date.day,\n\t\t\trmc.time.hours,\n\t\t\trmc.time.minutes,\n\t\t\trmc.time.seconds);\n\t\tprint(buff,0);\n\n\n\t\tsprintf(buff, \"latitude : %10.6f \u00b0\", latitude);\n\t\tprint(buff,1);\n\t\tsprintf(buff, \" error: %6.2f m\", latitude_error_deviation);\n\t\tprint(buff,2);\n\t\tsprintf(buff, \"longitude: %10.6f \u00b0\", longitude );\n\t\tprint(buff,3);\n\t\tsprintf(buff, \" error: %6.2f m\", longitude_error_deviation);\n\t\tprint(buff,4);\n\n\t\tsprintf(buff, \"altitude : %6.2f m\", altitude );\n\t\tprint(buff,5);\n\t\tsprintf(buff, \" error: %6.2f m\", altitude_error_deviation);\n\t\tprint(buff,6);\n\n\n\t\tchar * geohash = geohash_encode(latitude,longitude, geohash_precision(latitude_error_deviation, longitude_error_deviation) );\n\t\tif (geohash) {\n\t\t\tsprintf(buff, \"geohash : %s\",geohash );\n\t\t\tfree(geohash);\n\t\t\tprint(buff,7);\n\t\t}\n\n\t\tframebuffer_apply();\n\t\tbshal_delay_ms(1000);\n\t\t//test_uart_send(enableGST, sizeof(enableGST));\n\t}\n\n}\n"}
80,404
c
#include "lokoinc.h" #include "lokostatus.h" #include "lokocmd.h" #include "lokocvinc.h" namespace loko{ class LokoCvCore{ public: LokoCvCore(); ~LokoCvCore(); bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst); }; }
20.17
12
(translation_unit) "#include "lokoinc.h"\n#include "lokostatus.h"\n#include "lokocmd.h"\n\n#include "lokocvinc.h"\n\nnamespace loko{\n\nclass LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n};\n\n}" (preproc_include) "#include "lokoinc.h"\n" (#include) "#include" (string_literal) ""lokoinc.h"" (") """ (string_content) "lokoinc.h" (") """ (preproc_include) "#include "lokostatus.h"\n" (#include) "#include" (string_literal) ""lokostatus.h"" (") """ (string_content) "lokostatus.h" (") """ (preproc_include) "#include "lokocmd.h"\n" (#include) "#include" (string_literal) ""lokocmd.h"" (") """ (string_content) "lokocmd.h" (") """ (preproc_include) "#include "lokocvinc.h"\n" (#include) "#include" (string_literal) ""lokocvinc.h"" (") """ (string_content) "lokocvinc.h" (") """ (function_definition) "namespace loko{\n\nclass LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n};\n\n}" (type_identifier) "namespace" (identifier) "loko" (compound_statement) "{\n\nclass LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n};\n\n}" ({) "{" (function_definition) "class LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n}" (type_identifier) "class" (identifier) "LokoCvCore" (compound_statement) "{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n}" ({) "{" (labeled_statement) "public:\n LokoCvCore();" (statement_identifier) "public" (:) ":" (expression_statement) "LokoCvCore();" (call_expression) "LokoCvCore()" (identifier) "LokoCvCore" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~LokoCvCore();" (unary_expression) "~LokoCvCore()" (~) "~" (call_expression) "LokoCvCore()" (identifier) "LokoCvCore" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);" (primitive_type) "bool" (function_declarator) "Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst)" (identifier) "Handle" (parameter_list) "(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst)" (() "(" (parameter_declaration) "LokoCmd * cmd" (type_identifier) "LokoCmd" (pointer_declarator) "* cmd" (*) "*" (identifier) "cmd" (,) "," (parameter_declaration) "cv::Mat matsrc" (type_identifier) "cv" (ERROR) "::Mat" (:) ":" (:) ":" (identifier) "Mat" (identifier) "matsrc" (,) "," (parameter_declaration) "cv::Mat &matdst" (type_identifier) "cv" (ERROR) "::Mat &" (:) ":" (:) ":" (identifier) "Mat" (&) "&" (identifier) "matdst" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
88
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.17, "nodes": 46, "errors": 0, "source_hash": "8e3fb87369644db40d235ef78eff08715bf973f485ce83b0244872c6d9f3e80c", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"lokoinc.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": "\"lokoinc.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include \"lokostatus.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": "\"lokostatus.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"lokocmd.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": "string_literal", "text": "\"lokocmd.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"lokocvinc.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": "\"lokocvinc.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 22}}, {"id": 12, "type": "function_definition", "text": "namespace loko{\n\nclass LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n};\n\n}", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 14, "type": "identifier", "text": "loko", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 14}}, {"id": 15, "type": "function_definition", "text": "class LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n}", "parent": 12, "children": [16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 16, "type": "identifier", "text": "LokoCvCore", "parent": 15, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 16}}, {"id": 17, "type": "labeled_statement", "text": "public:\n LokoCvCore();", "parent": 15, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 10, "column": 21}}, {"id": 18, "type": "call_expression", "text": "LokoCvCore()", "parent": 17, "children": [19, 20], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 20}}, {"id": 19, "type": "identifier", "text": "LokoCvCore", "parent": 18, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 18}}, {"id": 20, "type": "argument_list", "text": "()", "parent": 18, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 20}}, {"id": 21, "type": "unary_expression", "text": "~LokoCvCore()", "parent": 15, "children": [22, 23], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 21}}, {"id": 22, "type": "~", "text": "~", "parent": 21, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 9}}, {"id": 23, "type": "call_expression", "text": "LokoCvCore()", "parent": 21, "children": [24, 25], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 24, "type": "identifier", "text": "LokoCvCore", "parent": 23, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 19}}, {"id": 25, "type": "argument_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 21}}, {"id": 26, "type": "declaration", "text": "bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);", "parent": 15, "children": [27, 28], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 68}}, {"id": 27, "type": "primitive_type", "text": "bool", "parent": 26, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 12}}, {"id": 28, "type": "function_declarator", "text": "Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst)", "parent": 26, "children": [29, 30], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 67}}, {"id": 29, "type": "identifier", "text": "Handle", "parent": 28, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 19}}, {"id": 30, "type": "parameter_list", "text": "(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst)", "parent": 28, "children": [31, 36, 41], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 67}}, {"id": 31, "type": "parameter_declaration", "text": "LokoCmd * cmd", "parent": 30, "children": [32, 33], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 33}}, {"id": 32, "type": "type_identifier", "text": "LokoCmd", "parent": 31, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 27}}, {"id": 33, "type": "pointer_declarator", "text": "* cmd", "parent": 31, "children": [34, 35], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 33}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 29}}, {"id": 35, "type": "identifier", "text": "cmd", "parent": 33, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 33}}, {"id": 36, "type": "parameter_declaration", "text": "cv::Mat matsrc", "parent": 30, "children": [37, 38, 40], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 49}}, {"id": 37, "type": "type_identifier", "text": "cv", "parent": 36, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 37}}, {"id": 38, "type": "ERROR", "text": "::Mat", "parent": 36, "children": [39], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 42}}, {"id": 39, "type": "identifier", "text": "Mat", "parent": 38, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 42}}, {"id": 40, "type": "identifier", "text": "matsrc", "parent": 36, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 49}}, {"id": 41, "type": "parameter_declaration", "text": "cv::Mat &matdst", "parent": 30, "children": [42, 43, 45], "start_point": {"row": 13, "column": 51}, "end_point": {"row": 13, "column": 66}}, {"id": 42, "type": "type_identifier", "text": "cv", "parent": 41, "children": [], "start_point": {"row": 13, "column": 51}, "end_point": {"row": 13, "column": 53}}, {"id": 43, "type": "ERROR", "text": "::Mat &", "parent": 41, "children": [44], "start_point": {"row": 13, "column": 53}, "end_point": {"row": 13, "column": 60}}, {"id": 44, "type": "identifier", "text": "Mat", "parent": 43, "children": [], "start_point": {"row": 13, "column": 55}, "end_point": {"row": 13, "column": 58}}, {"id": 45, "type": "identifier", "text": "matdst", "parent": 41, "children": [], "start_point": {"row": 13, "column": 60}, "end_point": {"row": 13, "column": 66}}]}, "node_categories": {"declarations": {"functions": [12, 15, 28], "variables": [26, 31, 36, 41], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [18, 21, 23], "assignments": [], "loops": [], "conditionals": [13, 14, 16, 19, 24, 29, 32, 35, 37, 39, 40, 42, 44, 45], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "LokoCvCore{", "text_snippet": "namespace loko{\n\nclass LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n "}, {"node_id": 15, "universal_type": "function", "name": "LokoCvCore{", "text_snippet": "class LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(Loko"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"lokoinc.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"lokostatus.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"lokocmd.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"lokocvinc.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include \"lokoinc.h\"\n#include \"lokostatus.h\"\n#include \"lokocmd.h\"\n\n#include \"lokocvinc.h\"\n\nnamespace loko{\n\nclass LokoCvCore{\n public:\n LokoCvCore();\n ~LokoCvCore();\n\n bool Handle(LokoCmd * cmd, cv::Mat matsrc, cv::Mat &matdst);\n};\n\n}"}
80,405
c
/* MIT License Copyright (c) 2021 SAE Institute Geneva 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. */ #pragma once #include "maths/angle.h" namespace maths { /** * \brief Class used to represent a 4D vector. */ class Vector4f { public: union { struct { float x; float y; float z; float w; }; float coord[4]{}; }; Vector4f() : x(0), y(0), z(0), w(1) { } Vector4f(float x, float y, float z, float w); Vector4f operator+(const Vector4f& rhs) const; Vector4f& operator+=(const Vector4f& rhs); Vector4f operator-(const Vector4f& rhs) const; Vector4f& operator-=(const Vector4f& rhs); Vector4f operator*(float scalar) const; Vector4f& operator*=(float scalar); Vector4f operator/(float scalar) const; Vector4f& operator/=(float scalar); bool operator==(const Vector4f& rhs) const; bool operator!=(const Vector4f& rhs) const; // This function does the Dot product of four vectors. float Dot(const Vector4f& v2) const; static float Dot(const Vector4f& v1, const Vector4f& v2); // This function calculates the norm. float Magnitude() const; // This function calculates the squared length of a vector. float SqrMagnitude() const; // Allows to read value at index. float operator[](std::size_t index) const; // Allows to write value at index. float& operator[](std::size_t index); // This function makes a vector have a magnitude of 1. Vector4f Normalized() const; void Normalize(); // The function Lerp linearly interpolates between two points. Vector4f Lerp(const Vector4f& v2, float t) const; static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t); }; } // namespace maths
37.86
72
(translation_unit) "/*\nMIT License\n\nCopyright (c) 2021 SAE Institute Geneva\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n#pragma once\n#include "maths/angle.h"\n\nnamespace maths {\n/**\n * \brief Class used to represent a 4D vector.\n */\nclass Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n};\n} // namespace maths\n" (comment) "/*\nMIT License\n\nCopyright (c) 2021 SAE Institute Geneva\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "maths/angle.h"\n" (#include) "#include" (string_literal) ""maths/angle.h"" (") """ (string_content) "maths/angle.h" (") """ (function_definition) "namespace maths {\n/**\n * \brief Class used to represent a 4D vector.\n */\nclass Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n};\n}" (type_identifier) "namespace" (identifier) "maths" (compound_statement) "{\n/**\n * \brief Class used to represent a 4D vector.\n */\nclass Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n};\n}" ({) "{" (comment) "/**\n * \brief Class used to represent a 4D vector.\n */" (function_definition) "class Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n}" (type_identifier) "class" (identifier) "Vector4f" (compound_statement) "{\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n}" ({) "{" (labeled_statement) "public:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);" (statement_identifier) "public" (:) ":" (declaration) "union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);" (union_specifier) "union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n }" (union) "union" (field_declaration_list) "{\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n }" ({) "{" (field_declaration) "struct {\n float x;\n float y;\n float z;\n float w;\n };" (struct_specifier) "struct {\n float x;\n float y;\n float z;\n float w;\n }" (struct) "struct" (field_declaration_list) "{\n float x;\n float y;\n float z;\n float w;\n }" ({) "{" (field_declaration) "float x;" (primitive_type) "float" (field_identifier) "x" (;) ";" (field_declaration) "float y;" (primitive_type) "float" (field_identifier) "y" (;) ";" (field_declaration) "float z;" (primitive_type) "float" (field_identifier) "z" (;) ";" (field_declaration) "float w;" (primitive_type) "float" (field_identifier) "w" (;) ";" (}) "}" (;) ";" (field_declaration) "float coord[4]{};" (primitive_type) "float" (array_declarator) "coord[4]" (field_identifier) "coord" ([) "[" (number_literal) "4" (]) "]" (ERROR) "{}" ({) "{" (}) "}" (;) ";" (}) "}" (ERROR) ";\n\n Vector4f()\n : x(0)," (;) ";" (function_declarator) "Vector4f()\n : x(0)" (identifier) "Vector4f" (parameter_list) "()" (() "(" ()) ")" (ERROR) ":" (:) ":" (call_expression) "x(0)" (identifier) "x" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (function_declarator) "y(0)" (identifier) "y" (parameter_list) "(0)" (() "(" (ERROR) "0" (number_literal) "0" ()) ")" (,) "," (function_declarator) "z(0)" (identifier) "z" (parameter_list) "(0)" (() "(" (ERROR) "0" (number_literal) "0" ()) ")" (,) "," (ERROR) "w(1) {\n }" (function_declarator) "w(1)" (identifier) "w" (parameter_list) "(1)" (() "(" (ERROR) "1" (number_literal) "1" ()) ")" ({) "{" (}) "}" (function_declarator) "Vector4f(float x, float y, float z, float w)" (identifier) "Vector4f" (parameter_list) "(float x, float y, float z, float w)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" (,) "," (parameter_declaration) "float z" (primitive_type) "float" (identifier) "z" (,) "," (parameter_declaration) "float w" (primitive_type) "float" (identifier) "w" ()) ")" (;) ";" (declaration) "Vector4f operator" (type_identifier) "Vector4f" (identifier) "operator" (;) "" (expression_statement) "+(const Vector4f& rhs) const;" (unary_expression) "+(const Vector4f& rhs)" (+) "+" (parenthesized_expression) "(const Vector4f& rhs)" (() "(" (ERROR) "const Vector4f" (type_descriptor) "const Vector4f" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (expression_statement) "Vector4f& operator+=(const Vector4f& rhs);" (binary_expression) "Vector4f& operator+=(const Vector4f& rhs)" (identifier) "Vector4f" (&) "&" (assignment_expression) "operator+=(const Vector4f& rhs)" (identifier) "operator" (+=) "+=" (parenthesized_expression) "(const Vector4f& rhs)" (() "(" (ERROR) "const Vector4f" (type_descriptor) "const Vector4f" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (;) ";" (declaration) "Vector4f operator" (type_identifier) "Vector4f" (identifier) "operator" (;) "" (expression_statement) "-(const Vector4f& rhs) const;" (unary_expression) "-(const Vector4f& rhs)" (-) "-" (parenthesized_expression) "(const Vector4f& rhs)" (() "(" (ERROR) "const Vector4f" (type_descriptor) "const Vector4f" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (expression_statement) "Vector4f& operator-=(const Vector4f& rhs);" (binary_expression) "Vector4f& operator-=(const Vector4f& rhs)" (identifier) "Vector4f" (&) "&" (assignment_expression) "operator-=(const Vector4f& rhs)" (identifier) "operator" (-=) "-=" (parenthesized_expression) "(const Vector4f& rhs)" (() "(" (ERROR) "const Vector4f" (type_descriptor) "const Vector4f" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (;) ";" (declaration) "Vector4f operator*(float scalar) const;" (type_identifier) "Vector4f" (ERROR) "operator" (identifier) "operator" (pointer_declarator) "*(float scalar)" (*) "*" (parenthesized_declarator) "(float scalar)" (() "(" (ERROR) "float" (identifier) "float" (identifier) "scalar" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (expression_statement) "Vector4f& operator*=(float scalar);" (binary_expression) "Vector4f& operator*=(float scalar)" (identifier) "Vector4f" (&) "&" (assignment_expression) "operator*=(float scalar)" (identifier) "operator" (*=) "*=" (parenthesized_expression) "(float scalar)" (() "(" (ERROR) "float" (primitive_type) "float" (identifier) "scalar" ()) ")" (;) ";" (declaration) "Vector4f operator/(float scalar) const;" (type_identifier) "Vector4f" (identifier) "operator" (ERROR) "/(float scalar) const" (/) "/" (() "(" (primitive_type) "float" (identifier) "scalar" ()) ")" (const) "const" (;) ";" (expression_statement) "Vector4f& operator/=(float scalar);" (binary_expression) "Vector4f& operator/=(float scalar)" (identifier) "Vector4f" (&) "&" (assignment_expression) "operator/=(float scalar)" (identifier) "operator" (/=) "/=" (parenthesized_expression) "(float scalar)" (() "(" (ERROR) "float" (primitive_type) "float" (identifier) "scalar" ()) ")" (;) ";" (ERROR) "bool operator==(const Vector4f& rhs) const" (primitive_type) "bool" (identifier) "operator" (==) "==" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (ERROR) "bool operator!=(const Vector4f& rhs) const" (primitive_type) "bool" (identifier) "operator" (!=) "!=" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (comment) "// This function does the Dot product of four vectors." (ERROR) "float Dot(const Vector4f& v2) const" (primitive_type) "float" (function_declarator) "Dot(const Vector4f& v2) const" (identifier) "Dot" (parameter_list) "(const Vector4f& v2)" (() "(" (parameter_declaration) "const Vector4f& v2" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (ERROR) "&" (&) "&" (identifier) "v2" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "static float Dot(const Vector4f& v1, const Vector4f& v2);" (storage_class_specifier) "static" (static) "static" (primitive_type) "float" (function_declarator) "Dot(const Vector4f& v1, const Vector4f& v2)" (identifier) "Dot" (parameter_list) "(const Vector4f& v1, const Vector4f& v2)" (() "(" (parameter_declaration) "const Vector4f& v1" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (ERROR) "&" (&) "&" (identifier) "v1" (,) "," (parameter_declaration) "const Vector4f& v2" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (ERROR) "&" (&) "&" (identifier) "v2" ()) ")" (;) ";" (comment) "// This function calculates the norm." (ERROR) "float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);" (primitive_type) "float" (function_declarator) "Magnitude()" (identifier) "Magnitude" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (comment) "// This function calculates the squared length of a vector." (primitive_type) "float" (ERROR) "SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float&" (function_declarator) "SqrMagnitude() const" (identifier) "SqrMagnitude" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "// Allows to read value at index." (primitive_type) "float" (function_declarator) "operator[](std::size_t index) const" (array_declarator) "operator[]" (identifier) "operator" ([) "[" (]) "]" (parameter_list) "(std::size_t index)" (() "(" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t index" (primitive_type) "size_t" (identifier) "index" ()) ")" (identifier) "const" (;) ";" (comment) "// Allows to write value at index." (primitive_type) "float" (&) "&" (function_declarator) "operator[](std::size_t index)" (array_declarator) "operator[]" (identifier) "operator" ([) "[" (]) "]" (parameter_list) "(std::size_t index)" (() "(" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t index" (primitive_type) "size_t" (identifier) "index" ()) ")" (;) ";" (comment) "// This function makes a vector have a magnitude of 1." (ERROR) "Vector4f Normalized() const;" (type_identifier) "Vector4f" (function_declarator) "Normalized() const" (identifier) "Normalized" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "void Normalize();" (primitive_type) "void" (function_declarator) "Normalize()" (identifier) "Normalize" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// The function Lerp linearly interpolates between two points." (ERROR) "Vector4f Lerp(const Vector4f& v2, float t) const;" (type_identifier) "Vector4f" (function_declarator) "Lerp(const Vector4f& v2, float t) const" (identifier) "Lerp" (parameter_list) "(const Vector4f& v2, float t)" (() "(" (parameter_declaration) "const Vector4f& v2" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (ERROR) "&" (&) "&" (identifier) "v2" (,) "," (parameter_declaration) "float t" (primitive_type) "float" (identifier) "t" ()) ")" (identifier) "const" (;) ";" (declaration) "static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector4f" (function_declarator) "Lerp(const Vector4f& v1, const Vector4f& v2, float t)" (identifier) "Lerp" (parameter_list) "(const Vector4f& v1, const Vector4f& v2, float t)" (() "(" (parameter_declaration) "const Vector4f& v1" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (ERROR) "&" (&) "&" (identifier) "v1" (,) "," (parameter_declaration) "const Vector4f& v2" (type_qualifier) "const" (const) "const" (type_identifier) "Vector4f" (ERROR) "&" (&) "&" (identifier) "v2" (,) "," (parameter_declaration) "float t" (primitive_type) "float" (identifier) "t" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace maths"
471
35
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 37.86, "nodes": 253, "errors": 0, "source_hash": "993eb8c92c7255ae8afa8b1d80166d7a9a0dcc9097534064d816b059e5ecc33f", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"maths/angle.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"maths/angle.h\"", "parent": 3, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 24}}, {"id": 6, "type": "function_definition", "text": "namespace maths {\n/**\n * \\brief Class used to represent a 4D vector.\n */\nclass Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n};\n}", "parent": null, "children": [7, 8], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 9}}, {"id": 8, "type": "identifier", "text": "maths", "parent": 6, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 15}}, {"id": 9, "type": "function_definition", "text": "class Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n}", "parent": 6, "children": [10], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 10, "type": "identifier", "text": "Vector4f", "parent": 9, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 14}}, {"id": 11, "type": "labeled_statement", "text": "public:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);", "parent": 9, "children": [12], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 51, "column": 49}}, {"id": 12, "type": "declaration", "text": "union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);", "parent": 11, "children": [13, 36, 44, 49, 54, 60], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 51, "column": 49}}, {"id": 13, "type": "union_specifier", "text": "union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n }", "parent": 12, "children": [14], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 42, "column": 5}}, {"id": 14, "type": "union", "text": "union", "parent": 13, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 9}}, {"id": 15, "type": "field_declaration", "text": "struct {\n float x;\n float y;\n float z;\n float w;\n };", "parent": 13, "children": [16], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 39, "column": 10}}, {"id": 16, "type": "struct_specifier", "text": "struct {\n float x;\n float y;\n float z;\n float w;\n }", "parent": 15, "children": [17], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 39, "column": 9}}, {"id": 17, "type": "struct", "text": "struct", "parent": 16, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 14}}, {"id": 18, "type": "field_declaration", "text": "float x;", "parent": 16, "children": [19, 20], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 20}}, {"id": 19, "type": "primitive_type", "text": "float", "parent": 18, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 17}}, {"id": 20, "type": "field_identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 19}}, {"id": 21, "type": "field_declaration", "text": "float y;", "parent": 16, "children": [22, 23], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 20}}, {"id": 22, "type": "primitive_type", "text": "float", "parent": 21, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 17}}, {"id": 23, "type": "field_identifier", "text": "y", "parent": 21, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 19}}, {"id": 24, "type": "field_declaration", "text": "float z;", "parent": 16, "children": [25, 26], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 20}}, {"id": 25, "type": "primitive_type", "text": "float", "parent": 24, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 17}}, {"id": 26, "type": "field_identifier", "text": "z", "parent": 24, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 27, "type": "field_declaration", "text": "float w;", "parent": 16, "children": [28, 29], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 20}}, {"id": 28, "type": "primitive_type", "text": "float", "parent": 27, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 17}}, {"id": 29, "type": "field_identifier", "text": "w", "parent": 27, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 30, "type": "field_declaration", "text": "float coord[4]{};", "parent": 13, "children": [31, 32, 35], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 25}}, {"id": 31, "type": "primitive_type", "text": "float", "parent": 30, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 13}}, {"id": 32, "type": "array_declarator", "text": "coord[4]", "parent": 30, "children": [33, 34], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 22}}, {"id": 33, "type": "field_identifier", "text": "coord", "parent": 32, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 19}}, {"id": 34, "type": "number_literal", "text": "4", "parent": 32, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 21}}, {"id": 35, "type": "ERROR", "text": "{}", "parent": 30, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 24}}, {"id": 36, "type": "ERROR", "text": ";\n\n Vector4f()\n : x(0),", "parent": 12, "children": [37], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 45, "column": 15}}, {"id": 37, "type": "function_declarator", "text": "Vector4f()\n : x(0)", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 45, "column": 14}}, {"id": 38, "type": "identifier", "text": "Vector4f", "parent": 37, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 12}}, {"id": 39, "type": "parameter_list", "text": "()", "parent": 37, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 14}}, {"id": 40, "type": "call_expression", "text": "x(0)", "parent": 37, "children": [41, 42], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 14}}, {"id": 41, "type": "identifier", "text": "x", "parent": 40, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 11}}, {"id": 42, "type": "argument_list", "text": "(0)", "parent": 40, "children": [43], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 14}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 42, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 44, "type": "function_declarator", "text": "y(0)", "parent": 12, "children": [45, 46], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 14}}, {"id": 45, "type": "identifier", "text": "y", "parent": 44, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 46, "type": "parameter_list", "text": "(0)", "parent": 44, "children": [47], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 14}}, {"id": 47, "type": "ERROR", "text": "0", "parent": 46, "children": [48], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 47, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 49, "type": "function_declarator", "text": "z(0)", "parent": 12, "children": [50, 51], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 14}}, {"id": 50, "type": "identifier", "text": "z", "parent": 49, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 11}}, {"id": 51, "type": "parameter_list", "text": "(0)", "parent": 49, "children": [52], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 14}}, {"id": 52, "type": "ERROR", "text": "0", "parent": 51, "children": [53], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 52, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 54, "type": "ERROR", "text": "w(1) {\n }", "parent": 12, "children": [55], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 49, "column": 5}}, {"id": 55, "type": "function_declarator", "text": "w(1)", "parent": 54, "children": [56, 57], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 14}}, {"id": 56, "type": "identifier", "text": "w", "parent": 55, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 11}}, {"id": 57, "type": "parameter_list", "text": "(1)", "parent": 55, "children": [58], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 14}}, {"id": 58, "type": "ERROR", "text": "1", "parent": 57, "children": [59], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 59, "type": "number_literal", "text": "1", "parent": 58, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 60, "type": "function_declarator", "text": "Vector4f(float x, float y, float z, float w)", "parent": 12, "children": [61, 62], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 48}}, {"id": 61, "type": "identifier", "text": "Vector4f", "parent": 60, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 12}}, {"id": 62, "type": "parameter_list", "text": "(float x, float y, float z, float w)", "parent": 60, "children": [63, 66, 69, 72], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 48}}, {"id": 63, "type": "parameter_declaration", "text": "float x", "parent": 62, "children": [64, 65], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 20}}, {"id": 64, "type": "primitive_type", "text": "float", "parent": 63, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 18}}, {"id": 65, "type": "identifier", "text": "x", "parent": 63, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 66, "type": "parameter_declaration", "text": "float y", "parent": 62, "children": [67, 68], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 29}}, {"id": 67, "type": "primitive_type", "text": "float", "parent": 66, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 27}}, {"id": 68, "type": "identifier", "text": "y", "parent": 66, "children": [], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 29}}, {"id": 69, "type": "parameter_declaration", "text": "float z", "parent": 62, "children": [70, 71], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 38}}, {"id": 70, "type": "primitive_type", "text": "float", "parent": 69, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 36}}, {"id": 71, "type": "identifier", "text": "z", "parent": 69, "children": [], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 38}}, {"id": 72, "type": "parameter_declaration", "text": "float w", "parent": 62, "children": [73, 74], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 47}}, {"id": 73, "type": "primitive_type", "text": "float", "parent": 72, "children": [], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 45}}, {"id": 74, "type": "identifier", "text": "w", "parent": 72, "children": [], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 47}}, {"id": 75, "type": "declaration", "text": "Vector4f operator", "parent": 9, "children": [76, 77], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 21}}, {"id": 76, "type": "type_identifier", "text": "Vector4f", "parent": 75, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 12}}, {"id": 77, "type": "identifier", "text": "operator", "parent": 75, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 21}}, {"id": 78, "type": "unary_expression", "text": "+(const Vector4f& rhs)", "parent": 9, "children": [79, 80], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 43}}, {"id": 79, "type": "+", "text": "+", "parent": 78, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 22}}, {"id": 80, "type": "parenthesized_expression", "text": "(const Vector4f& rhs)", "parent": 78, "children": [81, 84], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 43}}, {"id": 81, "type": "ERROR", "text": "const Vector4f", "parent": 80, "children": [82], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 37}}, {"id": 82, "type": "type_descriptor", "text": "const Vector4f", "parent": 81, "children": [83], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 37}}, {"id": 83, "type": "type_identifier", "text": "Vector4f", "parent": 82, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 37}}, {"id": 84, "type": "pointer_expression", "text": "& rhs", "parent": 80, "children": [85], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 42}}, {"id": 85, "type": "identifier", "text": "rhs", "parent": 84, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 42}}, {"id": 86, "type": "binary_expression", "text": "Vector4f& operator+=(const Vector4f& rhs)", "parent": 9, "children": [87, 88], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 45}}, {"id": 87, "type": "identifier", "text": "Vector4f", "parent": 86, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 12}}, {"id": 88, "type": "assignment_expression", "text": "operator+=(const Vector4f& rhs)", "parent": 86, "children": [89, 90, 91], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 45}}, {"id": 89, "type": "identifier", "text": "operator", "parent": 88, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 22}}, {"id": 90, "type": "+=", "text": "+=", "parent": 88, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 24}}, {"id": 91, "type": "parenthesized_expression", "text": "(const Vector4f& rhs)", "parent": 88, "children": [92, 95], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 45}}, {"id": 92, "type": "ERROR", "text": "const Vector4f", "parent": 91, "children": [93], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 39}}, {"id": 93, "type": "type_descriptor", "text": "const Vector4f", "parent": 92, "children": [94], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 39}}, {"id": 94, "type": "type_identifier", "text": "Vector4f", "parent": 93, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 39}}, {"id": 95, "type": "pointer_expression", "text": "& rhs", "parent": 91, "children": [96], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 44}}, {"id": 96, "type": "identifier", "text": "rhs", "parent": 95, "children": [], "start_point": {"row": 55, "column": 41}, "end_point": {"row": 55, "column": 44}}, {"id": 97, "type": "declaration", "text": "Vector4f operator", "parent": 9, "children": [98, 99], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 21}}, {"id": 98, "type": "type_identifier", "text": "Vector4f", "parent": 97, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 12}}, {"id": 99, "type": "identifier", "text": "operator", "parent": 97, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 21}}, {"id": 100, "type": "unary_expression", "text": "-(const Vector4f& rhs)", "parent": 9, "children": [101, 102], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 43}}, {"id": 101, "type": "-", "text": "-", "parent": 100, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 22}}, {"id": 102, "type": "parenthesized_expression", "text": "(const Vector4f& rhs)", "parent": 100, "children": [103, 106], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 43}}, {"id": 103, "type": "ERROR", "text": "const Vector4f", "parent": 102, "children": [104], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 37}}, {"id": 104, "type": "type_descriptor", "text": "const Vector4f", "parent": 103, "children": [105], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 37}}, {"id": 105, "type": "type_identifier", "text": "Vector4f", "parent": 104, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 37}}, {"id": 106, "type": "pointer_expression", "text": "& rhs", "parent": 102, "children": [107], "start_point": {"row": 57, "column": 37}, "end_point": {"row": 57, "column": 42}}, {"id": 107, "type": "identifier", "text": "rhs", "parent": 106, "children": [], "start_point": {"row": 57, "column": 39}, "end_point": {"row": 57, "column": 42}}, {"id": 108, "type": "binary_expression", "text": "Vector4f& operator-=(const Vector4f& rhs)", "parent": 9, "children": [109, 110], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 45}}, {"id": 109, "type": "identifier", "text": "Vector4f", "parent": 108, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 12}}, {"id": 110, "type": "assignment_expression", "text": "operator-=(const Vector4f& rhs)", "parent": 108, "children": [111, 112, 113], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 45}}, {"id": 111, "type": "identifier", "text": "operator", "parent": 110, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 22}}, {"id": 112, "type": "-=", "text": "-=", "parent": 110, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 24}}, {"id": 113, "type": "parenthesized_expression", "text": "(const Vector4f& rhs)", "parent": 110, "children": [114, 117], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 45}}, {"id": 114, "type": "ERROR", "text": "const Vector4f", "parent": 113, "children": [115], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 39}}, {"id": 115, "type": "type_descriptor", "text": "const Vector4f", "parent": 114, "children": [116], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 39}}, {"id": 116, "type": "type_identifier", "text": "Vector4f", "parent": 115, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 39}}, {"id": 117, "type": "pointer_expression", "text": "& rhs", "parent": 113, "children": [118], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 44}}, {"id": 118, "type": "identifier", "text": "rhs", "parent": 117, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 44}}, {"id": 119, "type": "declaration", "text": "Vector4f operator*(float scalar) const;", "parent": 9, "children": [120, 121, 123], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 43}}, {"id": 120, "type": "type_identifier", "text": "Vector4f", "parent": 119, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 12}}, {"id": 121, "type": "ERROR", "text": "operator", "parent": 119, "children": [122], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 21}}, {"id": 122, "type": "identifier", "text": "operator", "parent": 121, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 21}}, {"id": 123, "type": "pointer_declarator", "text": "*(float scalar)", "parent": 119, "children": [124, 125], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 36}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 22}}, {"id": 125, "type": "parenthesized_declarator", "text": "(float scalar)", "parent": 123, "children": [126, 128], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 36}}, {"id": 126, "type": "ERROR", "text": "float", "parent": 125, "children": [127], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 28}}, {"id": 127, "type": "identifier", "text": "float", "parent": 126, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 28}}, {"id": 128, "type": "identifier", "text": "scalar", "parent": 125, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 35}}, {"id": 129, "type": "binary_expression", "text": "Vector4f& operator*=(float scalar)", "parent": 9, "children": [130, 131], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 38}}, {"id": 130, "type": "identifier", "text": "Vector4f", "parent": 129, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 12}}, {"id": 131, "type": "assignment_expression", "text": "operator*=(float scalar)", "parent": 129, "children": [132, 133, 134], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 38}}, {"id": 132, "type": "identifier", "text": "operator", "parent": 131, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 22}}, {"id": 133, "type": "*=", "text": "*=", "parent": 131, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 24}}, {"id": 134, "type": "parenthesized_expression", "text": "(float scalar)", "parent": 131, "children": [135, 137], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 38}}, {"id": 135, "type": "ERROR", "text": "float", "parent": 134, "children": [136], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 30}}, {"id": 136, "type": "primitive_type", "text": "float", "parent": 135, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 30}}, {"id": 137, "type": "identifier", "text": "scalar", "parent": 134, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 37}}, {"id": 138, "type": "declaration", "text": "Vector4f operator/(float scalar) const;", "parent": 9, "children": [139, 140, 141], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 43}}, {"id": 139, "type": "type_identifier", "text": "Vector4f", "parent": 138, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 12}}, {"id": 140, "type": "identifier", "text": "operator", "parent": 138, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 21}}, {"id": 141, "type": "ERROR", "text": "/(float scalar) const", "parent": 138, "children": [142, 143, 144], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 42}}, {"id": 142, "type": "/", "text": "/", "parent": 141, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 22}}, {"id": 143, "type": "primitive_type", "text": "float", "parent": 141, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 28}}, {"id": 144, "type": "identifier", "text": "scalar", "parent": 141, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 35}}, {"id": 145, "type": "binary_expression", "text": "Vector4f& operator/=(float scalar)", "parent": 9, "children": [146, 147], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 38}}, {"id": 146, "type": "identifier", "text": "Vector4f", "parent": 145, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 12}}, {"id": 147, "type": "assignment_expression", "text": "operator/=(float scalar)", "parent": 145, "children": [148, 149, 150], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 38}}, {"id": 148, "type": "identifier", "text": "operator", "parent": 147, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 22}}, {"id": 149, "type": "/=", "text": "/=", "parent": 147, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 24}}, {"id": 150, "type": "parenthesized_expression", "text": "(float scalar)", "parent": 147, "children": [151, 153], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 38}}, {"id": 151, "type": "ERROR", "text": "float", "parent": 150, "children": [152], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 30}}, {"id": 152, "type": "primitive_type", "text": "float", "parent": 151, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 30}}, {"id": 153, "type": "identifier", "text": "scalar", "parent": 150, "children": [], "start_point": {"row": 67, "column": 31}, "end_point": {"row": 67, "column": 37}}, {"id": 154, "type": "ERROR", "text": "bool operator==(const Vector4f& rhs) const", "parent": 9, "children": [155, 156, 157, 158, 159], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 46}}, {"id": 155, "type": "primitive_type", "text": "bool", "parent": 154, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 8}}, {"id": 156, "type": "identifier", "text": "operator", "parent": 154, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 17}}, {"id": 157, "type": "==", "text": "==", "parent": 154, "children": [], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 19}}, {"id": 158, "type": "type_identifier", "text": "Vector4f", "parent": 154, "children": [], "start_point": {"row": 69, "column": 26}, "end_point": {"row": 69, "column": 34}}, {"id": 159, "type": "pointer_expression", "text": "& rhs", "parent": 154, "children": [160], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 39}}, {"id": 160, "type": "identifier", "text": "rhs", "parent": 159, "children": [], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 69, "column": 39}}, {"id": 161, "type": "ERROR", "text": "bool operator!=(const Vector4f& rhs) const", "parent": 9, "children": [162, 163, 164, 165, 166], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 46}}, {"id": 162, "type": "primitive_type", "text": "bool", "parent": 161, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 163, "type": "identifier", "text": "operator", "parent": 161, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 17}}, {"id": 164, "type": "!=", "text": "!=", "parent": 161, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 19}}, {"id": 165, "type": "type_identifier", "text": "Vector4f", "parent": 161, "children": [], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 34}}, {"id": 166, "type": "pointer_expression", "text": "& rhs", "parent": 161, "children": [167], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 39}}, {"id": 167, "type": "identifier", "text": "rhs", "parent": 166, "children": [], "start_point": {"row": 71, "column": 36}, "end_point": {"row": 71, "column": 39}}, {"id": 168, "type": "ERROR", "text": "float Dot(const Vector4f& v2) const", "parent": 9, "children": [169, 170], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 39}}, {"id": 169, "type": "primitive_type", "text": "float", "parent": 168, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 9}}, {"id": 170, "type": "function_declarator", "text": "Dot(const Vector4f& v2) const", "parent": 168, "children": [171, 172], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 39}}, {"id": 171, "type": "identifier", "text": "Dot", "parent": 170, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 13}}, {"id": 172, "type": "parameter_list", "text": "(const Vector4f& v2)", "parent": 170, "children": [173], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 33}}, {"id": 173, "type": "parameter_declaration", "text": "const Vector4f& v2", "parent": 172, "children": [174, 175], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 32}}, {"id": 174, "type": "type_identifier", "text": "Vector4f", "parent": 173, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 28}}, {"id": 175, "type": "identifier", "text": "v2", "parent": 173, "children": [], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 32}}, {"id": 176, "type": "declaration", "text": "static float Dot(const Vector4f& v1, const Vector4f& v2);", "parent": 9, "children": [177, 178], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 61}}, {"id": 177, "type": "primitive_type", "text": "float", "parent": 176, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 16}}, {"id": 178, "type": "function_declarator", "text": "Dot(const Vector4f& v1, const Vector4f& v2)", "parent": 176, "children": [179, 180], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 60}}, {"id": 179, "type": "identifier", "text": "Dot", "parent": 178, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 20}}, {"id": 180, "type": "parameter_list", "text": "(const Vector4f& v1, const Vector4f& v2)", "parent": 178, "children": [181, 184], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 60}}, {"id": 181, "type": "parameter_declaration", "text": "const Vector4f& v1", "parent": 180, "children": [182, 183], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 39}}, {"id": 182, "type": "type_identifier", "text": "Vector4f", "parent": 181, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 35}}, {"id": 183, "type": "identifier", "text": "v1", "parent": 181, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 39}}, {"id": 184, "type": "parameter_declaration", "text": "const Vector4f& v2", "parent": 180, "children": [185, 186], "start_point": {"row": 76, "column": 41}, "end_point": {"row": 76, "column": 59}}, {"id": 185, "type": "type_identifier", "text": "Vector4f", "parent": 184, "children": [], "start_point": {"row": 76, "column": 47}, "end_point": {"row": 76, "column": 55}}, {"id": 186, "type": "identifier", "text": "v2", "parent": 184, "children": [], "start_point": {"row": 76, "column": 57}, "end_point": {"row": 76, "column": 59}}, {"id": 187, "type": "ERROR", "text": "float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);", "parent": 9, "children": [188, 189, 192, 218, 223, 228, 239], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 98, "column": 74}}, {"id": 188, "type": "primitive_type", "text": "float", "parent": 187, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 9}}, {"id": 189, "type": "function_declarator", "text": "Magnitude()", "parent": 187, "children": [190, 191], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 21}}, {"id": 190, "type": "identifier", "text": "Magnitude", "parent": 189, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 19}}, {"id": 191, "type": "parameter_list", "text": "()", "parent": 189, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 21}}, {"id": 192, "type": "declaration", "text": "const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);", "parent": 187, "children": [193, 194, 209], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 88, "column": 41}}, {"id": 193, "type": "primitive_type", "text": "float", "parent": 192, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 9}}, {"id": 194, "type": "ERROR", "text": "SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float&", "parent": 192, "children": [195, 198, 199, 208], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 88, "column": 10}}, {"id": 195, "type": "function_declarator", "text": "SqrMagnitude() const", "parent": 194, "children": [196, 197], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 30}}, {"id": 196, "type": "identifier", "text": "SqrMagnitude", "parent": 195, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 22}}, {"id": 197, "type": "parameter_list", "text": "()", "parent": 195, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 24}}, {"id": 198, "type": "primitive_type", "text": "float", "parent": 194, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 9}}, {"id": 199, "type": "function_declarator", "text": "operator[](std::size_t index) const", "parent": 194, "children": [200, 202], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 45}}, {"id": 200, "type": "array_declarator", "text": "operator[]", "parent": 199, "children": [201], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 20}}, {"id": 201, "type": "identifier", "text": "operator", "parent": 200, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 18}}, {"id": 202, "type": "parameter_list", "text": "(std::size_t index)", "parent": 199, "children": [203, 205], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 39}}, {"id": 203, "type": "ERROR", "text": "std::", "parent": 202, "children": [204], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 26}}, {"id": 204, "type": "type_identifier", "text": "std", "parent": 203, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 24}}, {"id": 205, "type": "parameter_declaration", "text": "size_t index", "parent": 202, "children": [206, 207], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 38}}, {"id": 206, "type": "primitive_type", "text": "size_t", "parent": 205, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 32}}, {"id": 207, "type": "identifier", "text": "index", "parent": 205, "children": [], "start_point": {"row": 85, "column": 33}, "end_point": {"row": 85, "column": 38}}, {"id": 208, "type": "primitive_type", "text": "float", "parent": 194, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 9}}, {"id": 209, "type": "function_declarator", "text": "operator[](std::size_t index)", "parent": 192, "children": [210, 212], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 40}}, {"id": 210, "type": "array_declarator", "text": "operator[]", "parent": 209, "children": [211], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 21}}, {"id": 211, "type": "identifier", "text": "operator", "parent": 210, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 19}}, {"id": 212, "type": "parameter_list", "text": "(std::size_t index)", "parent": 209, "children": [213, 215], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 40}}, {"id": 213, "type": "ERROR", "text": "std::", "parent": 212, "children": [214], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 27}}, {"id": 214, "type": "type_identifier", "text": "std", "parent": 213, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 25}}, {"id": 215, "type": "parameter_declaration", "text": "size_t index", "parent": 212, "children": [216, 217], "start_point": {"row": 88, "column": 27}, "end_point": {"row": 88, "column": 39}}, {"id": 216, "type": "primitive_type", "text": "size_t", "parent": 215, "children": [], "start_point": {"row": 88, "column": 27}, "end_point": {"row": 88, "column": 33}}, {"id": 217, "type": "identifier", "text": "index", "parent": 215, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 39}}, {"id": 218, "type": "ERROR", "text": "Vector4f Normalized() const;", "parent": 187, "children": [219, 220], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 32}}, {"id": 219, "type": "type_identifier", "text": "Vector4f", "parent": 218, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 12}}, {"id": 220, "type": "function_declarator", "text": "Normalized() const", "parent": 218, "children": [221, 222], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 31}}, {"id": 221, "type": "identifier", "text": "Normalized", "parent": 220, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 23}}, {"id": 222, "type": "parameter_list", "text": "()", "parent": 220, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 25}}, {"id": 223, "type": "declaration", "text": "void Normalize();", "parent": 187, "children": [224, 225], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 21}}, {"id": 224, "type": "primitive_type", "text": "void", "parent": 223, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 8}}, {"id": 225, "type": "function_declarator", "text": "Normalize()", "parent": 223, "children": [226, 227], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 20}}, {"id": 226, "type": "identifier", "text": "Normalize", "parent": 225, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 18}}, {"id": 227, "type": "parameter_list", "text": "()", "parent": 225, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 20}}, {"id": 228, "type": "ERROR", "text": "Vector4f Lerp(const Vector4f& v2, float t) const;", "parent": 187, "children": [229, 230], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 53}}, {"id": 229, "type": "type_identifier", "text": "Vector4f", "parent": 228, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 12}}, {"id": 230, "type": "function_declarator", "text": "Lerp(const Vector4f& v2, float t) const", "parent": 228, "children": [231, 232], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 52}}, {"id": 231, "type": "identifier", "text": "Lerp", "parent": 230, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 17}}, {"id": 232, "type": "parameter_list", "text": "(const Vector4f& v2, float t)", "parent": 230, "children": [233, 236], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 46}}, {"id": 233, "type": "parameter_declaration", "text": "const Vector4f& v2", "parent": 232, "children": [234, 235], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 36}}, {"id": 234, "type": "type_identifier", "text": "Vector4f", "parent": 233, "children": [], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 32}}, {"id": 235, "type": "identifier", "text": "v2", "parent": 233, "children": [], "start_point": {"row": 96, "column": 34}, "end_point": {"row": 96, "column": 36}}, {"id": 236, "type": "parameter_declaration", "text": "float t", "parent": 232, "children": [237, 238], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 45}}, {"id": 237, "type": "primitive_type", "text": "float", "parent": 236, "children": [], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 43}}, {"id": 238, "type": "identifier", "text": "t", "parent": 236, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 45}}, {"id": 239, "type": "declaration", "text": "static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);", "parent": 187, "children": [240, 241], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 74}}, {"id": 240, "type": "type_identifier", "text": "Vector4f", "parent": 239, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 19}}, {"id": 241, "type": "function_declarator", "text": "Lerp(const Vector4f& v1, const Vector4f& v2, float t)", "parent": 239, "children": [242, 243], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 73}}, {"id": 242, "type": "identifier", "text": "Lerp", "parent": 241, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 24}}, {"id": 243, "type": "parameter_list", "text": "(const Vector4f& v1, const Vector4f& v2, float t)", "parent": 241, "children": [244, 247, 250], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 73}}, {"id": 244, "type": "parameter_declaration", "text": "const Vector4f& v1", "parent": 243, "children": [245, 246], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 43}}, {"id": 245, "type": "type_identifier", "text": "Vector4f", "parent": 244, "children": [], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 39}}, {"id": 246, "type": "identifier", "text": "v1", "parent": 244, "children": [], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 43}}, {"id": 247, "type": "parameter_declaration", "text": "const Vector4f& v2", "parent": 243, "children": [248, 249], "start_point": {"row": 98, "column": 45}, "end_point": {"row": 98, "column": 63}}, {"id": 248, "type": "type_identifier", "text": "Vector4f", "parent": 247, "children": [], "start_point": {"row": 98, "column": 51}, "end_point": {"row": 98, "column": 59}}, {"id": 249, "type": "identifier", "text": "v2", "parent": 247, "children": [], "start_point": {"row": 98, "column": 61}, "end_point": {"row": 98, "column": 63}}, {"id": 250, "type": "parameter_declaration", "text": "float t", "parent": 243, "children": [251, 252], "start_point": {"row": 98, "column": 65}, "end_point": {"row": 98, "column": 72}}, {"id": 251, "type": "primitive_type", "text": "float", "parent": 250, "children": [], "start_point": {"row": 98, "column": 65}, "end_point": {"row": 98, "column": 70}}, {"id": 252, "type": "identifier", "text": "t", "parent": 250, "children": [], "start_point": {"row": 98, "column": 71}, "end_point": {"row": 98, "column": 72}}]}, "node_categories": {"declarations": {"functions": [6, 9, 37, 44, 49, 55, 60, 170, 178, 189, 195, 199, 209, 220, 225, 230, 241], "variables": [12, 15, 18, 21, 24, 27, 30, 63, 66, 69, 72, 75, 97, 119, 138, 173, 176, 181, 184, 192, 205, 215, 223, 233, 236, 239, 244, 247, 250], "classes": [13, 14, 16, 17], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [40, 78, 80, 84, 86, 91, 95, 100, 102, 106, 108, 113, 117, 129, 134, 145, 150, 159, 166], "assignments": [88, 110, 131, 147], "loops": [], "conditionals": [7, 8, 10, 20, 23, 26, 29, 33, 38, 41, 45, 50, 56, 61, 65, 68, 71, 74, 76, 77, 83, 85, 87, 89, 94, 96, 98, 99, 105, 107, 109, 111, 116, 118, 120, 122, 127, 128, 130, 132, 137, 139, 140, 144, 146, 148, 153, 156, 158, 160, 163, 165, 167, 171, 174, 175, 179, 182, 183, 185, 186, 190, 196, 201, 204, 207, 211, 214, 217, 219, 221, 226, 229, 231, 234, 235, 238, 240, 242, 245, 246, 248, 249, 252], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 34, 43, 48, 53, 59], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "Vector4f", "text_snippet": "namespace maths {\n/**\n * \\brief Class used to represent a 4D vector.\n */\nclass Vector4f {\npublic:\n "}, {"node_id": 9, "universal_type": "function", "name": "Vector4f", "text_snippet": "class Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n "}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "Vector4f()\n : x(0)"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "y(0)"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "z(0)"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "w(1)"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "Vector4f(float x, float y, float z, float w)"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "Dot(const Vector4f& v2) const"}, {"node_id": 178, "universal_type": "function", "name": "unknown", "text_snippet": "Dot(const Vector4f& v1, const Vector4f& v2)"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "Magnitude()"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "SqrMagnitude() const"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "operator[](std::size_t index) const"}, {"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "operator[](std::size_t index)"}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "Normalized() const"}, {"node_id": 225, "universal_type": "function", "name": "unknown", "text_snippet": "Normalize()"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "Lerp(const Vector4f& v2, float t) const"}, {"node_id": 241, "universal_type": "function", "name": "unknown", "text_snippet": "Lerp(const Vector4f& v1, const Vector4f& v2, float t)"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "{", "text_snippet": "union {\n struct {\n float x;\n float y;\n float z;\n "}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 16, "universal_type": "class", "name": "{", "text_snippet": "struct {\n float x;\n float y;\n float z;\n float w;\n "}, {"node_id": 17, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include \"maths/angle.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\nMIT License\n\nCopyright (c) 2021 SAE Institute Geneva\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n#pragma once\n#include \"maths/angle.h\"\n\nnamespace maths {\n/**\n * \\brief Class used to represent a 4D vector.\n */\nclass Vector4f {\npublic:\n union {\n struct {\n float x;\n float y;\n float z;\n float w;\n };\n\n float coord[4]{};\n };\n\n Vector4f()\n : x(0),\n y(0),\n z(0),\n w(1) {\n }\n\n Vector4f(float x, float y, float z, float w);\n\n Vector4f operator+(const Vector4f& rhs) const;\n\n Vector4f& operator+=(const Vector4f& rhs);\n\n Vector4f operator-(const Vector4f& rhs) const;\n\n Vector4f& operator-=(const Vector4f& rhs);\n\n Vector4f operator*(float scalar) const;\n\n Vector4f& operator*=(float scalar);\n\n Vector4f operator/(float scalar) const;\n\n Vector4f& operator/=(float scalar);\n\n bool operator==(const Vector4f& rhs) const;\n\n bool operator!=(const Vector4f& rhs) const;\n\n // This function does the Dot product of four vectors.\n float Dot(const Vector4f& v2) const;\n\n static float Dot(const Vector4f& v1, const Vector4f& v2);\n\n // This function calculates the norm.\n float Magnitude() const;\n\n // This function calculates the squared length of a vector.\n float SqrMagnitude() const;\n\n // Allows to read value at index.\n float operator[](std::size_t index) const;\n\n // Allows to write value at index.\n float& operator[](std::size_t index);\n\n // This function makes a vector have a magnitude of 1.\n Vector4f Normalized() const;\n\n void Normalize();\n\n // The function Lerp linearly interpolates between two points.\n Vector4f Lerp(const Vector4f& v2, float t) const;\n\n static Vector4f Lerp(const Vector4f& v1, const Vector4f& v2, float t);\n};\n} // namespace maths\n"}
80,406
c
#pragma once // from SDL_mouse.h #define MOUSE_BUTTON(X) (1 << ((X)-1)) #define MOUSE_BUTTON_LEFT 1 #define MOUSE_BUTTON_MIDDLE 2 #define MOUSE_BUTTON_RIGHT 3 #define MOUSE_BUTTON_X1 4 #define MOUSE_BUTTON_X2 5 #define MOUSE_BUTTON_LMASK MOUSE_BUTTON(V2D_BUTTON_LEFT) #define MOUSE_BUTTON_MMASK MOUSE_BUTTON(V2D_BUTTON_MIDDLE) #define MOUSE_BUTTON_RMASK MOUSE_BUTTON(V2D_BUTTON_RIGHT) #define MOUSE_BUTTON_X1MASK MOUSE_BUTTON(V2D_BUTTON_X1) #define MOUSE_BUTTON_X2MASK MOUSE_BUTTON(V2D_BUTTON_X2) namespace gueepo { typedef enum { MOUSE_LEFT = MOUSE_BUTTON_LEFT, MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE, MOUSE_RIGHT = MOUSE_BUTTON_RIGHT } Mousecode; }
33.9
20
(translation_unit) "#pragma once\n\n// from SDL_mouse.h\n#define MOUSE_BUTTON(X) (1 << ((X)-1))\n#define MOUSE_BUTTON_LEFT 1\n#define MOUSE_BUTTON_MIDDLE 2\n#define MOUSE_BUTTON_RIGHT 3\n#define MOUSE_BUTTON_X1 4\n#define MOUSE_BUTTON_X2 5\n#define MOUSE_BUTTON_LMASK MOUSE_BUTTON(V2D_BUTTON_LEFT)\n#define MOUSE_BUTTON_MMASK MOUSE_BUTTON(V2D_BUTTON_MIDDLE)\n#define MOUSE_BUTTON_RMASK MOUSE_BUTTON(V2D_BUTTON_RIGHT)\n#define MOUSE_BUTTON_X1MASK MOUSE_BUTTON(V2D_BUTTON_X1)\n#define MOUSE_BUTTON_X2MASK MOUSE_BUTTON(V2D_BUTTON_X2)\n\nnamespace gueepo {\n typedef enum {\n MOUSE_LEFT = MOUSE_BUTTON_LEFT,\n MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE,\n MOUSE_RIGHT = MOUSE_BUTTON_RIGHT\n } Mousecode;\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "// from SDL_mouse.h" (preproc_function_def) "#define MOUSE_BUTTON(X) (1 << ((X)-1))\n" (#define) "#define" (identifier) "MOUSE_BUTTON" (preproc_params) "(X)" (() "(" (identifier) "X" ()) ")" (preproc_arg) "(1 << ((X)-1))" (preproc_def) "#define MOUSE_BUTTON_LEFT 1\n" (#define) "#define" (identifier) "MOUSE_BUTTON_LEFT" (preproc_arg) "1" (preproc_def) "#define MOUSE_BUTTON_MIDDLE 2\n" (#define) "#define" (identifier) "MOUSE_BUTTON_MIDDLE" (preproc_arg) "2" (preproc_def) "#define MOUSE_BUTTON_RIGHT 3\n" (#define) "#define" (identifier) "MOUSE_BUTTON_RIGHT" (preproc_arg) "3" (preproc_def) "#define MOUSE_BUTTON_X1 4\n" (#define) "#define" (identifier) "MOUSE_BUTTON_X1" (preproc_arg) "4" (preproc_def) "#define MOUSE_BUTTON_X2 5\n" (#define) "#define" (identifier) "MOUSE_BUTTON_X2" (preproc_arg) "5" (preproc_def) "#define MOUSE_BUTTON_LMASK MOUSE_BUTTON(V2D_BUTTON_LEFT)\n" (#define) "#define" (identifier) "MOUSE_BUTTON_LMASK" (preproc_arg) "MOUSE_BUTTON(V2D_BUTTON_LEFT)" (preproc_def) "#define MOUSE_BUTTON_MMASK MOUSE_BUTTON(V2D_BUTTON_MIDDLE)\n" (#define) "#define" (identifier) "MOUSE_BUTTON_MMASK" (preproc_arg) "MOUSE_BUTTON(V2D_BUTTON_MIDDLE)" (preproc_def) "#define MOUSE_BUTTON_RMASK MOUSE_BUTTON(V2D_BUTTON_RIGHT)\n" (#define) "#define" (identifier) "MOUSE_BUTTON_RMASK" (preproc_arg) "MOUSE_BUTTON(V2D_BUTTON_RIGHT)" (preproc_def) "#define MOUSE_BUTTON_X1MASK MOUSE_BUTTON(V2D_BUTTON_X1)\n" (#define) "#define" (identifier) "MOUSE_BUTTON_X1MASK" (preproc_arg) "MOUSE_BUTTON(V2D_BUTTON_X1)" (preproc_def) "#define MOUSE_BUTTON_X2MASK MOUSE_BUTTON(V2D_BUTTON_X2)\n" (#define) "#define" (identifier) "MOUSE_BUTTON_X2MASK" (preproc_arg) "MOUSE_BUTTON(V2D_BUTTON_X2)" (function_definition) "namespace gueepo {\n typedef enum {\n MOUSE_LEFT = MOUSE_BUTTON_LEFT,\n MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE,\n MOUSE_RIGHT = MOUSE_BUTTON_RIGHT\n } Mousecode;\n}" (type_identifier) "namespace" (identifier) "gueepo" (compound_statement) "{\n typedef enum {\n MOUSE_LEFT = MOUSE_BUTTON_LEFT,\n MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE,\n MOUSE_RIGHT = MOUSE_BUTTON_RIGHT\n } Mousecode;\n}" ({) "{" (type_definition) "typedef enum {\n MOUSE_LEFT = MOUSE_BUTTON_LEFT,\n MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE,\n MOUSE_RIGHT = MOUSE_BUTTON_RIGHT\n } Mousecode;" (typedef) "typedef" (enum_specifier) "enum {\n MOUSE_LEFT = MOUSE_BUTTON_LEFT,\n MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE,\n MOUSE_RIGHT = MOUSE_BUTTON_RIGHT\n }" (enum) "enum" (enumerator_list) "{\n MOUSE_LEFT = MOUSE_BUTTON_LEFT,\n MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE,\n MOUSE_RIGHT = MOUSE_BUTTON_RIGHT\n }" ({) "{" (enumerator) "MOUSE_LEFT = MOUSE_BUTTON_LEFT" (identifier) "MOUSE_LEFT" (=) "=" (identifier) "MOUSE_BUTTON_LEFT" (,) "," (enumerator) "MOUSE_MIDDLE = MOUSE_BUTTON_MIDDLE" (identifier) "MOUSE_MIDDLE" (=) "=" (identifier) "MOUSE_BUTTON_MIDDLE" (,) "," (enumerator) "MOUSE_RIGHT = MOUSE_BUTTON_RIGHT" (identifier) "MOUSE_RIGHT" (=) "=" (identifier) "MOUSE_BUTTON_RIGHT" (}) "}" (type_identifier) "Mousecode" (;) ";" (}) "}"
82
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.9, "nodes": 70, "errors": 0, "source_hash": "573e2d97945b987b7e2ad8e6bf18296dd6c4f95ff3a1e05c34cb5b88d93eb2e6", "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_function_def", "text": "#define MOUSE_BUTTON(X) (1 << ((X)-1))\n", "parent": null, "children": [4, 5, 6, 8], "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": "MOUSE_BUTTON", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 20}}, {"id": 6, "type": "preproc_params", "text": "(X)", "parent": 3, "children": [7], "start_point": {"row": 3, "column": 20}, "end_point": {"row": 3, "column": 23}}, {"id": 7, "type": "identifier", "text": "X", "parent": 6, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 22}}, {"id": 8, "type": "preproc_arg", "text": "(1 << ((X)-1))", "parent": 3, "children": [], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 44}}, {"id": 9, "type": "preproc_def", "text": "#define MOUSE_BUTTON_LEFT 1\n", "parent": null, "children": [10, 11, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 11, "type": "identifier", "text": "MOUSE_BUTTON_LEFT", "parent": 9, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 25}}, {"id": 12, "type": "preproc_arg", "text": "1", "parent": 9, "children": [], "start_point": {"row": 4, "column": 30}, "end_point": {"row": 4, "column": 31}}, {"id": 13, "type": "preproc_def", "text": "#define MOUSE_BUTTON_MIDDLE 2\n", "parent": null, "children": [14, 15, 16], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 15, "type": "identifier", "text": "MOUSE_BUTTON_MIDDLE", "parent": 13, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 27}}, {"id": 16, "type": "preproc_arg", "text": "2", "parent": 13, "children": [], "start_point": {"row": 5, "column": 30}, "end_point": {"row": 5, "column": 31}}, {"id": 17, "type": "preproc_def", "text": "#define MOUSE_BUTTON_RIGHT 3\n", "parent": null, "children": [18, 19, 20], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 19, "type": "identifier", "text": "MOUSE_BUTTON_RIGHT", "parent": 17, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 26}}, {"id": 20, "type": "preproc_arg", "text": "3", "parent": 17, "children": [], "start_point": {"row": 6, "column": 30}, "end_point": {"row": 6, "column": 31}}, {"id": 21, "type": "preproc_def", "text": "#define MOUSE_BUTTON_X1 4\n", "parent": null, "children": [22, 23, 24], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 23, "type": "identifier", "text": "MOUSE_BUTTON_X1", "parent": 21, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 24, "type": "preproc_arg", "text": "4", "parent": 21, "children": [], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 31}}, {"id": 25, "type": "preproc_def", "text": "#define MOUSE_BUTTON_X2 5\n", "parent": null, "children": [26, 27, 28], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 27, "type": "identifier", "text": "MOUSE_BUTTON_X2", "parent": 25, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 28, "type": "preproc_arg", "text": "5", "parent": 25, "children": [], "start_point": {"row": 8, "column": 30}, "end_point": {"row": 8, "column": 31}}, {"id": 29, "type": "preproc_def", "text": "#define MOUSE_BUTTON_LMASK MOUSE_BUTTON(V2D_BUTTON_LEFT)\n", "parent": null, "children": [30, 31, 32], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 31, "type": "identifier", "text": "MOUSE_BUTTON_LMASK", "parent": 29, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 26}}, {"id": 32, "type": "preproc_arg", "text": "MOUSE_BUTTON(V2D_BUTTON_LEFT)", "parent": 29, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 59}}, {"id": 33, "type": "preproc_def", "text": "#define MOUSE_BUTTON_MMASK MOUSE_BUTTON(V2D_BUTTON_MIDDLE)\n", "parent": null, "children": [34, 35, 36], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 35, "type": "identifier", "text": "MOUSE_BUTTON_MMASK", "parent": 33, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 26}}, {"id": 36, "type": "preproc_arg", "text": "MOUSE_BUTTON(V2D_BUTTON_MIDDLE)", "parent": 33, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 61}}, {"id": 37, "type": "preproc_def", "text": "#define MOUSE_BUTTON_RMASK MOUSE_BUTTON(V2D_BUTTON_RIGHT)\n", "parent": null, "children": [38, 39, 40], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 39, "type": "identifier", "text": "MOUSE_BUTTON_RMASK", "parent": 37, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 26}}, {"id": 40, "type": "preproc_arg", "text": "MOUSE_BUTTON(V2D_BUTTON_RIGHT)", "parent": 37, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 60}}, {"id": 41, "type": "preproc_def", "text": "#define MOUSE_BUTTON_X1MASK MOUSE_BUTTON(V2D_BUTTON_X1)\n", "parent": null, "children": [42, 43, 44], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 43, "type": "identifier", "text": "MOUSE_BUTTON_X1MASK", "parent": 41, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 27}}, {"id": 44, "type": "preproc_arg", "text": "MOUSE_BUTTON(V2D_BUTTON_X1)", "parent": 41, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 57}}, {"id": 45, "type": "preproc_def", "text": "#define MOUSE_BUTTON_X2MASK MOUSE_BUTTON(V2D_BUTTON_X2)\n", "parent": null, "children": [46, 47, 48], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 47, "type": "identifier", "text": "MOUSE_BUTTON_X2MASK", "parent": 45, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 27}}, {"id": 48, "type": "preproc_arg", "text": "MOUSE_BUTTON(V2D_BUTTON_X2)", "parent": 45, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 57}}, {"id": 49, "type": "function_definition", "text": "namespace gueepo {\n\ttypedef enum {\n\t\tMOUSE_LEFT\t\t= MOUSE_BUTTON_LEFT,\n\t\tMOUSE_MIDDLE\t= MOUSE_BUTTON_MIDDLE,\n\t\tMOUSE_RIGHT\t\t\t= MOUSE_BUTTON_RIGHT\n\t} Mousecode;\n}", "parent": null, "children": [50, 51], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 50, "type": "type_identifier", "text": "namespace", "parent": 49, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 51, "type": "identifier", "text": "gueepo", "parent": 49, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 16}}, {"id": 52, "type": "type_definition", "text": "typedef enum {\n\t\tMOUSE_LEFT\t\t= MOUSE_BUTTON_LEFT,\n\t\tMOUSE_MIDDLE\t= MOUSE_BUTTON_MIDDLE,\n\t\tMOUSE_RIGHT\t\t\t= MOUSE_BUTTON_RIGHT\n\t} Mousecode;", "parent": 49, "children": [53, 54, 69], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 20, "column": 13}}, {"id": 53, "type": "typedef", "text": "typedef", "parent": 52, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 54, "type": "enum_specifier", "text": "enum {\n\t\tMOUSE_LEFT\t\t= MOUSE_BUTTON_LEFT,\n\t\tMOUSE_MIDDLE\t= MOUSE_BUTTON_MIDDLE,\n\t\tMOUSE_RIGHT\t\t\t= MOUSE_BUTTON_RIGHT\n\t}", "parent": 52, "children": [55, 56], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 20, "column": 2}}, {"id": 55, "type": "enum", "text": "enum", "parent": 54, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 56, "type": "enumerator_list", "text": "{\n\t\tMOUSE_LEFT\t\t= MOUSE_BUTTON_LEFT,\n\t\tMOUSE_MIDDLE\t= MOUSE_BUTTON_MIDDLE,\n\t\tMOUSE_RIGHT\t\t\t= MOUSE_BUTTON_RIGHT\n\t}", "parent": 54, "children": [57, 61, 65], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 20, "column": 2}}, {"id": 57, "type": "enumerator", "text": "MOUSE_LEFT\t\t= MOUSE_BUTTON_LEFT", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 33}}, {"id": 58, "type": "identifier", "text": "MOUSE_LEFT", "parent": 57, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 12}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 15}}, {"id": 60, "type": "identifier", "text": "MOUSE_BUTTON_LEFT", "parent": 57, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 33}}, {"id": 61, "type": "enumerator", "text": "MOUSE_MIDDLE\t= MOUSE_BUTTON_MIDDLE", "parent": 56, "children": [62, 63, 64], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 36}}, {"id": 62, "type": "identifier", "text": "MOUSE_MIDDLE", "parent": 61, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 14}}, {"id": 63, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 64, "type": "identifier", "text": "MOUSE_BUTTON_MIDDLE", "parent": 61, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 36}}, {"id": 65, "type": "enumerator", "text": "MOUSE_RIGHT\t\t\t= MOUSE_BUTTON_RIGHT", "parent": 56, "children": [66, 67, 68], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 36}}, {"id": 66, "type": "identifier", "text": "MOUSE_RIGHT", "parent": 65, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 13}}, {"id": 67, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 17}}, {"id": 68, "type": "identifier", "text": "MOUSE_BUTTON_RIGHT", "parent": 65, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 36}}, {"id": 69, "type": "type_identifier", "text": "Mousecode", "parent": 52, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 49], "variables": [52], "classes": [], "imports": [], "modules": [], "enums": [54, 55, 56, 57, 61, 65]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 50, 51, 58, 60, 62, 64, 66, 68, 69], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "#define MOUSE_BUTTON(X) (1 << ((X)-1))\n"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "namespace gueepo {\n\ttypedef enum {\n\t\tMOUSE_LEFT\t\t= MOUSE_BUTTON_LEFT,\n\t\tMOUSE_MIDDLE\t= MOUSE_BUTTON_"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#pragma once\n\n// from SDL_mouse.h\n#define MOUSE_BUTTON(X) (1 << ((X)-1))\n#define MOUSE_BUTTON_LEFT 1\n#define MOUSE_BUTTON_MIDDLE 2\n#define MOUSE_BUTTON_RIGHT 3\n#define MOUSE_BUTTON_X1 4\n#define MOUSE_BUTTON_X2 5\n#define MOUSE_BUTTON_LMASK MOUSE_BUTTON(V2D_BUTTON_LEFT)\n#define MOUSE_BUTTON_MMASK MOUSE_BUTTON(V2D_BUTTON_MIDDLE)\n#define MOUSE_BUTTON_RMASK MOUSE_BUTTON(V2D_BUTTON_RIGHT)\n#define MOUSE_BUTTON_X1MASK MOUSE_BUTTON(V2D_BUTTON_X1)\n#define MOUSE_BUTTON_X2MASK MOUSE_BUTTON(V2D_BUTTON_X2)\n\nnamespace gueepo {\n\ttypedef enum {\n\t\tMOUSE_LEFT\t\t= MOUSE_BUTTON_LEFT,\n\t\tMOUSE_MIDDLE\t= MOUSE_BUTTON_MIDDLE,\n\t\tMOUSE_RIGHT\t\t\t= MOUSE_BUTTON_RIGHT\n\t} Mousecode;\n}"}
80,407
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 NSDate, NSDictionary, NSError, NSString, OSALog; @interface PCCJob : NSObject { OSALog *_package; NSError *_errObj; NSString *_jid; NSString *_target; NSDictionary *_options; NSDictionary *_metadata; NSDate *_lastTouch; } @property(readonly) NSDate *lastTouch; // @synthesize lastTouch=_lastTouch; @property(readonly) NSDictionary *metadata; // @synthesize metadata=_metadata; @property(readonly) NSDictionary *options; // @synthesize options=_options; @property(readonly) NSString *target; // @synthesize target=_target; @property(readonly) NSString *jid; // @synthesize jid=_jid; - (void).cxx_destruct; - (void)registerResult:(BOOL)arg1 error:(id)arg2; - (void)packageLog:(id)arg1 forRouting:(id)arg2 info:(id)arg3 options:(id)arg4; - (id)initWithID:(id)arg1 forTarget:(id)arg2 options:(id)arg3 forFile:(id)arg4; - (id)description; - (id)initWithID:(id)arg1 forTarget:(id)arg2 options:(id)arg3; @property(readonly) id result; @property(readonly) NSString *nextFilepath; @end
36.58
31
(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 NSDate, NSDictionary, NSError, NSString, OSALog;\n\n@interface PCCJob : NSObject\n{\n OSALog *_package;\n NSError *_errObj;\n NSString *_jid;\n NSString *_target;\n NSDictionary *_options;\n NSDictionary *_metadata;\n NSDate *_lastTouch;\n}\n\n@property(readonly) NSDate *lastTouch; // @synthesize lastTouch=_lastTouch;\n@property(readonly) NSDictionary *metadata; // @synthesize metadata=_metadata;\n@property(readonly) NSDictionary *options; // @synthesize options=_options;\n@property(readonly) NSString *target; // @synthesize target=_target;\n@property(readonly) NSString *jid; // @synthesize jid=_jid;\n- (void).cxx_destruct;\n- (void)registerResult:(BOOL)arg1 error:(id)arg2;\n- (void)packageLog:(id)arg1 forRouting:(id)arg2 info:(id)arg3 options:(id)arg4;\n- (id)initWithID:(id)arg1 forTarget:(id)arg2 options:(id)arg3 forFile:(id)arg4;\n- (id)description;\n- (id)initWithID:(id)arg1 forTarget:(id)arg2 options:(id)arg3;\n@property(readonly) id result;\n@property(readonly) NSString *nextFilepath;\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 NSDate, NSDictionary, NSError, NSString, OSALog;" (type_identifier) "class" (identifier) "NSDate" (,) "," (identifier) "NSDictionary" (,) "," (identifier) "NSError" (,) "," (identifier) "NSString" (,) "," (identifier) "OSALog" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface PCCJob : NSObject\n{\n OSALog *_package;\n NSError *_errObj;\n NSString *_jid;\n NSString *_target;\n NSDictionary *_options;\n NSDictionary *_metadata;\n NSDate *_lastTouch;\n}" (type_identifier) "interface" (ERROR) "PCCJob :" (identifier) "PCCJob" (:) ":" (identifier) "NSObject" (compound_statement) "{\n OSALog *_package;\n NSError *_errObj;\n NSString *_jid;\n NSString *_target;\n NSDictionary *_options;\n NSDictionary *_metadata;\n NSDate *_lastTouch;\n}" ({) "{" (declaration) "OSALog *_package;" (type_identifier) "OSALog" (pointer_declarator) "*_package" (*) "*" (identifier) "_package" (;) ";" (declaration) "NSError *_errObj;" (type_identifier) "NSError" (pointer_declarator) "*_errObj" (*) "*" (identifier) "_errObj" (;) ";" (declaration) "NSString *_jid;" (type_identifier) "NSString" (pointer_declarator) "*_jid" (*) "*" (identifier) "_jid" (;) ";" (declaration) "NSString *_target;" (type_identifier) "NSString" (pointer_declarator) "*_target" (*) "*" (identifier) "_target" (;) ";" (declaration) "NSDictionary *_options;" (type_identifier) "NSDictionary" (pointer_declarator) "*_options" (*) "*" (identifier) "_options" (;) ";" (declaration) "NSDictionary *_metadata;" (type_identifier) "NSDictionary" (pointer_declarator) "*_metadata" (*) "*" (identifier) "_metadata" (;) ";" (declaration) "NSDate *_lastTouch;" (type_identifier) "NSDate" (pointer_declarator) "*_lastTouch" (*) "*" (identifier) "_lastTouch" (;) ";" (}) "}" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSDate *lastTouch;" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "NSDate" (identifier) "NSDate" (pointer_declarator) "*lastTouch" (*) "*" (identifier) "lastTouch" (;) ";" (comment) "// @synthesize lastTouch=_lastTouch;" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSDictionary" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "NSDictionary" (;) "" (expression_statement) "*metadata;" (pointer_expression) "*metadata" (*) "*" (identifier) "metadata" (;) ";" (comment) "// @synthesize metadata=_metadata;" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSDictionary" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "NSDictionary" (;) "" (expression_statement) "*options;" (pointer_expression) "*options" (*) "*" (identifier) "options" (;) ";" (comment) "// @synthesize options=_options;" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSString *target;" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "NSString" (identifier) "NSString" (pointer_declarator) "*target" (*) "*" (identifier) "target" (;) ";" (comment) "// @synthesize target=_target;" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSString *jid;" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "NSString" (identifier) "NSString" (pointer_declarator) "*jid" (*) "*" (identifier) "jid" (;) ";" (comment) "// @synthesize jid=_jid;" (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) "- (void)registerResult:(BOOL)" (unary_expression) "- (void)registerResult" (-) "-" (cast_expression) "(void)registerResult" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "registerResult" (:) ":" (() "(" (identifier) "BOOL" ()) ")" (declaration) "arg1 error:(id)arg2;" (type_identifier) "arg1" (identifier) "error" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (void)packageLog:(id)" (unary_expression) "- (void)packageLog" (-) "-" (cast_expression) "(void)packageLog" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "packageLog" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 forRouting:(id)arg2 info:(id)arg3 options:(id)arg4;" (type_identifier) "arg1" (ERROR) "forRouting:(id)arg2 info:(id)arg3 options:(id)" (identifier) "forRouting" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "info" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (identifier) "options" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg4" (;) ";" (ERROR) "- (id)initWithID:(id)" (unary_expression) "- (id)initWithID" (-) "-" (cast_expression) "(id)initWithID" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithID" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 forTarget:(id)arg2 options:(id)arg3 forFile:(id)arg4;" (type_identifier) "arg1" (ERROR) "forTarget:(id)arg2 options:(id)arg3 forFile:(id)" (identifier) "forTarget" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "options" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (identifier) "forFile" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg4" (;) ";" (expression_statement) "- (id)description;" (unary_expression) "- (id)description" (-) "-" (cast_expression) "(id)description" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "description" (;) ";" (ERROR) "- (id)initWithID:(id)" (unary_expression) "- (id)initWithID" (-) "-" (cast_expression) "(id)initWithID" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithID" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 forTarget:(id)arg2 options:(id)arg3;" (type_identifier) "arg1" (ERROR) "forTarget:(id)arg2 options:(id)" (identifier) "forTarget" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "options" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) id result;" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "id" (identifier) "id" (identifier) "result" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) NSString *nextFilepath;" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "NSString" (identifier) "NSString" (pointer_declarator) "*nextFilepath" (*) "*" (identifier) "nextFilepath" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
335
35
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 36.58, "nodes": 218, "errors": 0, "source_hash": "09586d54528a95d1ed274be6e4ec6ada6e78dc9d794d18979fe3deb156c2be1f", "categorized_nodes": 136}, "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 NSDate, NSDictionary, NSError, NSString, OSALog;", "parent": null, "children": [6, 7, 8, 9, 10], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 55}}, {"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": "NSDictionary", "parent": 5, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 27}}, {"id": 8, "type": "identifier", "text": "NSError", "parent": 5, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 36}}, {"id": 9, "type": "identifier", "text": "NSString", "parent": 5, "children": [], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 46}}, {"id": 10, "type": "identifier", "text": "OSALog", "parent": 5, "children": [], "start_point": {"row": 8, "column": 48}, "end_point": {"row": 8, "column": 54}}, {"id": 11, "type": "ERROR", "text": "@", "parent": null, "children": [12], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 12, "type": "ERROR", "text": "@", "parent": 11, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 13, "type": "function_definition", "text": "interface PCCJob : NSObject\n{\n OSALog *_package;\n NSError *_errObj;\n NSString *_jid;\n NSString *_target;\n NSDictionary *_options;\n NSDictionary *_metadata;\n NSDate *_lastTouch;\n}", "parent": null, "children": [14, 15, 17], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 19, "column": 1}}, {"id": 14, "type": "type_identifier", "text": "interface", "parent": 13, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 15, "type": "ERROR", "text": "PCCJob :", "parent": 13, "children": [16], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 19}}, {"id": 16, "type": "identifier", "text": "PCCJob", "parent": 15, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 17}}, {"id": 17, "type": "identifier", "text": "NSObject", "parent": 13, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 28}}, {"id": 18, "type": "declaration", "text": "OSALog *_package;", "parent": 13, "children": [19, 20], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 21}}, {"id": 19, "type": "type_identifier", "text": "OSALog", "parent": 18, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 20, "type": "pointer_declarator", "text": "*_package", "parent": 18, "children": [21, 22], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 20}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 12}}, {"id": 22, "type": "identifier", "text": "_package", "parent": 20, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 20}}, {"id": 23, "type": "declaration", "text": "NSError *_errObj;", "parent": 13, "children": [24, 25], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 21}}, {"id": 24, "type": "type_identifier", "text": "NSError", "parent": 23, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 25, "type": "pointer_declarator", "text": "*_errObj", "parent": 23, "children": [26, 27], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 20}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 27, "type": "identifier", "text": "_errObj", "parent": 25, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 20}}, {"id": 28, "type": "declaration", "text": "NSString *_jid;", "parent": 13, "children": [29, 30], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 19}}, {"id": 29, "type": "type_identifier", "text": "NSString", "parent": 28, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 30, "type": "pointer_declarator", "text": "*_jid", "parent": 28, "children": [31, 32], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 18}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 32, "type": "identifier", "text": "_jid", "parent": 30, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 18}}, {"id": 33, "type": "declaration", "text": "NSString *_target;", "parent": 13, "children": [34, 35], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 22}}, {"id": 34, "type": "type_identifier", "text": "NSString", "parent": 33, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 12}}, {"id": 35, "type": "pointer_declarator", "text": "*_target", "parent": 33, "children": [36, 37], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 21}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 14}}, {"id": 37, "type": "identifier", "text": "_target", "parent": 35, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 21}}, {"id": 38, "type": "declaration", "text": "NSDictionary *_options;", "parent": 13, "children": [39, 40], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 27}}, {"id": 39, "type": "type_identifier", "text": "NSDictionary", "parent": 38, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 40, "type": "pointer_declarator", "text": "*_options", "parent": 38, "children": [41, 42], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 26}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 18}}, {"id": 42, "type": "identifier", "text": "_options", "parent": 40, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 26}}, {"id": 43, "type": "declaration", "text": "NSDictionary *_metadata;", "parent": 13, "children": [44, 45], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 28}}, {"id": 44, "type": "type_identifier", "text": "NSDictionary", "parent": 43, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 16}}, {"id": 45, "type": "pointer_declarator", "text": "*_metadata", "parent": 43, "children": [46, 47], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 27}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 18}}, {"id": 47, "type": "identifier", "text": "_metadata", "parent": 45, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 27}}, {"id": 48, "type": "declaration", "text": "NSDate *_lastTouch;", "parent": 13, "children": [49, 50], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 23}}, {"id": 49, "type": "type_identifier", "text": "NSDate", "parent": 48, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 10}}, {"id": 50, "type": "pointer_declarator", "text": "*_lastTouch", "parent": 48, "children": [51, 52], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 22}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 52, "type": "identifier", "text": "_lastTouch", "parent": 50, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 22}}, {"id": 53, "type": "ERROR", "text": "@", "parent": null, "children": [54], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 54, "type": "ERROR", "text": "@", "parent": 53, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 55, "type": "declaration", "text": "property(readonly) NSDate *lastTouch;", "parent": null, "children": [56, 60, 62], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 38}}, {"id": 56, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 55, "children": [57, 58], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 19}}, {"id": 57, "type": "identifier", "text": "property", "parent": 56, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 58, "type": "type_descriptor", "text": "readonly", "parent": 56, "children": [59], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 18}}, {"id": 59, "type": "type_identifier", "text": "readonly", "parent": 58, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 18}}, {"id": 60, "type": "ERROR", "text": "NSDate", "parent": 55, "children": [61], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 26}}, {"id": 61, "type": "identifier", "text": "NSDate", "parent": 60, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 26}}, {"id": 62, "type": "pointer_declarator", "text": "*lastTouch", "parent": 55, "children": [63, 64], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 37}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 28}}, {"id": 64, "type": "identifier", "text": "lastTouch", "parent": 62, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 37}}, {"id": 65, "type": "ERROR", "text": "@", "parent": null, "children": [66], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 66, "type": "ERROR", "text": "@", "parent": 65, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 67, "type": "declaration", "text": "property(readonly) NSDictionary", "parent": null, "children": [68, 72], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 32}}, {"id": 68, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 67, "children": [69, 70], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 19}}, {"id": 69, "type": "identifier", "text": "property", "parent": 68, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 70, "type": "type_descriptor", "text": "readonly", "parent": 68, "children": [71], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 18}}, {"id": 71, "type": "type_identifier", "text": "readonly", "parent": 70, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 18}}, {"id": 72, "type": "identifier", "text": "NSDictionary", "parent": 67, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 32}}, {"id": 73, "type": "pointer_expression", "text": "*metadata", "parent": null, "children": [74, 75], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 42}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 34}}, {"id": 75, "type": "identifier", "text": "metadata", "parent": 73, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 42}}, {"id": 76, "type": "ERROR", "text": "@", "parent": null, "children": [77], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 77, "type": "ERROR", "text": "@", "parent": 76, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 78, "type": "declaration", "text": "property(readonly) NSDictionary", "parent": null, "children": [79, 83], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 32}}, {"id": 79, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 78, "children": [80, 81], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 19}}, {"id": 80, "type": "identifier", "text": "property", "parent": 79, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 81, "type": "type_descriptor", "text": "readonly", "parent": 79, "children": [82], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 18}}, {"id": 82, "type": "type_identifier", "text": "readonly", "parent": 81, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 18}}, {"id": 83, "type": "identifier", "text": "NSDictionary", "parent": 78, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 32}}, {"id": 84, "type": "pointer_expression", "text": "*options", "parent": null, "children": [85, 86], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 41}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 34}}, {"id": 86, "type": "identifier", "text": "options", "parent": 84, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 41}}, {"id": 87, "type": "ERROR", "text": "@", "parent": null, "children": [88], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 88, "type": "ERROR", "text": "@", "parent": 87, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 89, "type": "declaration", "text": "property(readonly) NSString *target;", "parent": null, "children": [90, 94, 96], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 37}}, {"id": 90, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 89, "children": [91, 92], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 19}}, {"id": 91, "type": "identifier", "text": "property", "parent": 90, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 92, "type": "type_descriptor", "text": "readonly", "parent": 90, "children": [93], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 18}}, {"id": 93, "type": "type_identifier", "text": "readonly", "parent": 92, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 18}}, {"id": 94, "type": "ERROR", "text": "NSString", "parent": 89, "children": [95], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 28}}, {"id": 95, "type": "identifier", "text": "NSString", "parent": 94, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 28}}, {"id": 96, "type": "pointer_declarator", "text": "*target", "parent": 89, "children": [97, 98], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 36}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 30}}, {"id": 98, "type": "identifier", "text": "target", "parent": 96, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 36}}, {"id": 99, "type": "ERROR", "text": "@", "parent": null, "children": [100], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 100, "type": "ERROR", "text": "@", "parent": 99, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 101, "type": "declaration", "text": "property(readonly) NSString *jid;", "parent": null, "children": [102, 106, 108], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 34}}, {"id": 102, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 101, "children": [103, 104], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 19}}, {"id": 103, "type": "identifier", "text": "property", "parent": 102, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 104, "type": "type_descriptor", "text": "readonly", "parent": 102, "children": [105], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 18}}, {"id": 105, "type": "type_identifier", "text": "readonly", "parent": 104, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 18}}, {"id": 106, "type": "ERROR", "text": "NSString", "parent": 101, "children": [107], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 28}}, {"id": 107, "type": "identifier", "text": "NSString", "parent": 106, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 28}}, {"id": 108, "type": "pointer_declarator", "text": "*jid", "parent": 101, "children": [109, 110], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 33}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 30}}, {"id": 110, "type": "identifier", "text": "jid", "parent": 108, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 33}}, {"id": 111, "type": "unary_expression", "text": "- (void).cxx_destruct", "parent": null, "children": [112, 113], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 21}}, {"id": 112, "type": "-", "text": "-", "parent": 111, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 113, "type": "cast_expression", "text": "(void).cxx_destruct", "parent": 111, "children": [114, 116], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 21}}, {"id": 114, "type": "type_descriptor", "text": "void", "parent": 113, "children": [115], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 115, "type": "primitive_type", "text": "void", "parent": 114, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 116, "type": "identifier", "text": "cxx_destruct", "parent": 113, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 21}}, {"id": 117, "type": "ERROR", "text": "- (void)registerResult:(BOOL)", "parent": null, "children": [118, 124], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 29}}, {"id": 118, "type": "unary_expression", "text": "- (void)registerResult", "parent": 117, "children": [119, 120], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 22}}, {"id": 119, "type": "-", "text": "-", "parent": 118, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 120, "type": "cast_expression", "text": "(void)registerResult", "parent": 118, "children": [121, 123], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 22}}, {"id": 121, "type": "type_descriptor", "text": "void", "parent": 120, "children": [122], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 122, "type": "primitive_type", "text": "void", "parent": 121, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 123, "type": "identifier", "text": "registerResult", "parent": 120, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 22}}, {"id": 124, "type": "identifier", "text": "BOOL", "parent": 117, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 28}}, {"id": 125, "type": "declaration", "text": "arg1 error:(id)arg2;", "parent": null, "children": [126, 127, 128], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 49}}, {"id": 126, "type": "type_identifier", "text": "arg1", "parent": 125, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 33}}, {"id": 127, "type": "identifier", "text": "error", "parent": 125, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 39}}, {"id": 128, "type": "ERROR", "text": ":(id)arg2", "parent": 125, "children": [129, 130], "start_point": {"row": 27, "column": 39}, "end_point": {"row": 27, "column": 48}}, {"id": 129, "type": "identifier", "text": "id", "parent": 128, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 43}}, {"id": 130, "type": "identifier", "text": "arg2", "parent": 128, "children": [], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 48}}, {"id": 131, "type": "ERROR", "text": "- (void)packageLog:(id)", "parent": null, "children": [132, 138], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 23}}, {"id": 132, "type": "unary_expression", "text": "- (void)packageLog", "parent": 131, "children": [133, 134], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 18}}, {"id": 133, "type": "-", "text": "-", "parent": 132, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 134, "type": "cast_expression", "text": "(void)packageLog", "parent": 132, "children": [135, 137], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 135, "type": "type_descriptor", "text": "void", "parent": 134, "children": [136], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 136, "type": "primitive_type", "text": "void", "parent": 135, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 137, "type": "identifier", "text": "packageLog", "parent": 134, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 18}}, {"id": 138, "type": "identifier", "text": "id", "parent": 131, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 22}}, {"id": 139, "type": "declaration", "text": "arg1 forRouting:(id)arg2 info:(id)arg3 options:(id)arg4;", "parent": null, "children": [140, 141, 150], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 79}}, {"id": 140, "type": "type_identifier", "text": "arg1", "parent": 139, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 27}}, {"id": 141, "type": "ERROR", "text": "forRouting:(id)arg2 info:(id)arg3 options:(id)", "parent": 139, "children": [142, 143, 144, 145, 146, 147, 148, 149], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 74}}, {"id": 142, "type": "identifier", "text": "forRouting", "parent": 141, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 38}}, {"id": 143, "type": "identifier", "text": "id", "parent": 141, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 42}}, {"id": 144, "type": "identifier", "text": "arg2", "parent": 141, "children": [], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 47}}, {"id": 145, "type": "identifier", "text": "info", "parent": 141, "children": [], "start_point": {"row": 28, "column": 48}, "end_point": {"row": 28, "column": 52}}, {"id": 146, "type": "identifier", "text": "id", "parent": 141, "children": [], "start_point": {"row": 28, "column": 54}, "end_point": {"row": 28, "column": 56}}, {"id": 147, "type": "identifier", "text": "arg3", "parent": 141, "children": [], "start_point": {"row": 28, "column": 57}, "end_point": {"row": 28, "column": 61}}, {"id": 148, "type": "identifier", "text": "options", "parent": 141, "children": [], "start_point": {"row": 28, "column": 62}, "end_point": {"row": 28, "column": 69}}, {"id": 149, "type": "identifier", "text": "id", "parent": 141, "children": [], "start_point": {"row": 28, "column": 71}, "end_point": {"row": 28, "column": 73}}, {"id": 150, "type": "identifier", "text": "arg4", "parent": 139, "children": [], "start_point": {"row": 28, "column": 74}, "end_point": {"row": 28, "column": 78}}, {"id": 151, "type": "ERROR", "text": "- (id)initWithID:(id)", "parent": null, "children": [152, 158], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 21}}, {"id": 152, "type": "unary_expression", "text": "- (id)initWithID", "parent": 151, "children": [153, 154], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 16}}, {"id": 153, "type": "-", "text": "-", "parent": 152, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 154, "type": "cast_expression", "text": "(id)initWithID", "parent": 152, "children": [155, 157], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 16}}, {"id": 155, "type": "type_descriptor", "text": "id", "parent": 154, "children": [156], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 5}}, {"id": 156, "type": "type_identifier", "text": "id", "parent": 155, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 5}}, {"id": 157, "type": "identifier", "text": "initWithID", "parent": 154, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 16}}, {"id": 158, "type": "identifier", "text": "id", "parent": 151, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 20}}, {"id": 159, "type": "declaration", "text": "arg1 forTarget:(id)arg2 options:(id)arg3 forFile:(id)arg4;", "parent": null, "children": [160, 161, 170], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 79}}, {"id": 160, "type": "type_identifier", "text": "arg1", "parent": 159, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 25}}, {"id": 161, "type": "ERROR", "text": "forTarget:(id)arg2 options:(id)arg3 forFile:(id)", "parent": 159, "children": [162, 163, 164, 165, 166, 167, 168, 169], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 74}}, {"id": 162, "type": "identifier", "text": "forTarget", "parent": 161, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 35}}, {"id": 163, "type": "identifier", "text": "id", "parent": 161, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 39}}, {"id": 164, "type": "identifier", "text": "arg2", "parent": 161, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 44}}, {"id": 165, "type": "identifier", "text": "options", "parent": 161, "children": [], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 52}}, {"id": 166, "type": "identifier", "text": "id", "parent": 161, "children": [], "start_point": {"row": 29, "column": 54}, "end_point": {"row": 29, "column": 56}}, {"id": 167, "type": "identifier", "text": "arg3", "parent": 161, "children": [], "start_point": {"row": 29, "column": 57}, "end_point": {"row": 29, "column": 61}}, {"id": 168, "type": "identifier", "text": "forFile", "parent": 161, "children": [], "start_point": {"row": 29, "column": 62}, "end_point": {"row": 29, "column": 69}}, {"id": 169, "type": "identifier", "text": "id", "parent": 161, "children": [], "start_point": {"row": 29, "column": 71}, "end_point": {"row": 29, "column": 73}}, {"id": 170, "type": "identifier", "text": "arg4", "parent": 159, "children": [], "start_point": {"row": 29, "column": 74}, "end_point": {"row": 29, "column": 78}}, {"id": 171, "type": "unary_expression", "text": "- (id)description", "parent": null, "children": [172, 173], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 17}}, {"id": 172, "type": "-", "text": "-", "parent": 171, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 173, "type": "cast_expression", "text": "(id)description", "parent": 171, "children": [174, 176], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 17}}, {"id": 174, "type": "type_descriptor", "text": "id", "parent": 173, "children": [175], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 5}}, {"id": 175, "type": "type_identifier", "text": "id", "parent": 174, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 5}}, {"id": 176, "type": "identifier", "text": "description", "parent": 173, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 17}}, {"id": 177, "type": "ERROR", "text": "- (id)initWithID:(id)", "parent": null, "children": [178, 184], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 21}}, {"id": 178, "type": "unary_expression", "text": "- (id)initWithID", "parent": 177, "children": [179, 180], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 16}}, {"id": 179, "type": "-", "text": "-", "parent": 178, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 180, "type": "cast_expression", "text": "(id)initWithID", "parent": 178, "children": [181, 183], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 16}}, {"id": 181, "type": "type_descriptor", "text": "id", "parent": 180, "children": [182], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 5}}, {"id": 182, "type": "type_identifier", "text": "id", "parent": 181, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 5}}, {"id": 183, "type": "identifier", "text": "initWithID", "parent": 180, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 16}}, {"id": 184, "type": "identifier", "text": "id", "parent": 177, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 20}}, {"id": 185, "type": "declaration", "text": "arg1 forTarget:(id)arg2 options:(id)arg3;", "parent": null, "children": [186, 187, 193], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 62}}, {"id": 186, "type": "type_identifier", "text": "arg1", "parent": 185, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 25}}, {"id": 187, "type": "ERROR", "text": "forTarget:(id)arg2 options:(id)", "parent": 185, "children": [188, 189, 190, 191, 192], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 57}}, {"id": 188, "type": "identifier", "text": "forTarget", "parent": 187, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 35}}, {"id": 189, "type": "identifier", "text": "id", "parent": 187, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 39}}, {"id": 190, "type": "identifier", "text": "arg2", "parent": 187, "children": [], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 44}}, {"id": 191, "type": "identifier", "text": "options", "parent": 187, "children": [], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 52}}, {"id": 192, "type": "identifier", "text": "id", "parent": 187, "children": [], "start_point": {"row": 31, "column": 54}, "end_point": {"row": 31, "column": 56}}, {"id": 193, "type": "identifier", "text": "arg3", "parent": 185, "children": [], "start_point": {"row": 31, "column": 57}, "end_point": {"row": 31, "column": 61}}, {"id": 194, "type": "ERROR", "text": "@", "parent": null, "children": [195], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 195, "type": "ERROR", "text": "@", "parent": 194, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 196, "type": "declaration", "text": "property(readonly) id result;", "parent": null, "children": [197, 201, 203], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 30}}, {"id": 197, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 196, "children": [198, 199], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 19}}, {"id": 198, "type": "identifier", "text": "property", "parent": 197, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 9}}, {"id": 199, "type": "type_descriptor", "text": "readonly", "parent": 197, "children": [200], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 18}}, {"id": 200, "type": "type_identifier", "text": "readonly", "parent": 199, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 18}}, {"id": 201, "type": "ERROR", "text": "id", "parent": 196, "children": [202], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 22}}, {"id": 202, "type": "identifier", "text": "id", "parent": 201, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 22}}, {"id": 203, "type": "identifier", "text": "result", "parent": 196, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 29}}, {"id": 204, "type": "ERROR", "text": "@", "parent": null, "children": [205], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 205, "type": "ERROR", "text": "@", "parent": 204, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 206, "type": "declaration", "text": "property(readonly) NSString *nextFilepath;", "parent": null, "children": [207, 211, 213], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 43}}, {"id": 207, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 206, "children": [208, 209], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 19}}, {"id": 208, "type": "identifier", "text": "property", "parent": 207, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 209, "type": "type_descriptor", "text": "readonly", "parent": 207, "children": [210], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 18}}, {"id": 210, "type": "type_identifier", "text": "readonly", "parent": 209, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 18}}, {"id": 211, "type": "ERROR", "text": "NSString", "parent": 206, "children": [212], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 28}}, {"id": 212, "type": "identifier", "text": "NSString", "parent": 211, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 28}}, {"id": 213, "type": "pointer_declarator", "text": "*nextFilepath", "parent": 206, "children": [214, 215], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 42}}, {"id": 214, "type": "*", "text": "*", "parent": 213, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 30}}, {"id": 215, "type": "identifier", "text": "nextFilepath", "parent": 213, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 42}}, {"id": 216, "type": "ERROR", "text": "@", "parent": null, "children": [217], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 217, "type": "ERROR", "text": "@", "parent": 216, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}]}, "node_categories": {"declarations": {"functions": [13], "variables": [5, 18, 23, 28, 33, 38, 43, 48, 55, 67, 78, 89, 101, 125, 139, 159, 185, 196, 206], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [73, 84, 111, 113, 118, 120, 132, 134, 152, 154, 171, 173, 178, 180], "assignments": [], "loops": [], "conditionals": [6, 7, 8, 9, 10, 14, 16, 17, 19, 22, 24, 27, 29, 32, 34, 37, 39, 42, 44, 47, 49, 52, 56, 57, 59, 61, 64, 68, 69, 71, 72, 75, 79, 80, 82, 83, 86, 90, 91, 93, 95, 98, 102, 103, 105, 107, 110, 116, 123, 124, 126, 127, 129, 130, 137, 138, 140, 142, 143, 144, 145, 146, 147, 148, 149, 150, 156, 157, 158, 160, 162, 163, 164, 165, 166, 167, 168, 169, 170, 175, 176, 182, 183, 184, 186, 188, 189, 190, 191, 192, 193, 197, 198, 200, 202, 203, 207, 208, 210, 212, 215], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "PCCJob", "text_snippet": "interface PCCJob : NSObject\n{\n OSALog *_package;\n NSError *_errObj;\n NSString *_jid;\n NS"}], "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 NSDate, NSDictionary, NSError, NSString, OSALog;\n\n@interface PCCJob : NSObject\n{\n OSALog *_package;\n NSError *_errObj;\n NSString *_jid;\n NSString *_target;\n NSDictionary *_options;\n NSDictionary *_metadata;\n NSDate *_lastTouch;\n}\n\n@property(readonly) NSDate *lastTouch; // @synthesize lastTouch=_lastTouch;\n@property(readonly) NSDictionary *metadata; // @synthesize metadata=_metadata;\n@property(readonly) NSDictionary *options; // @synthesize options=_options;\n@property(readonly) NSString *target; // @synthesize target=_target;\n@property(readonly) NSString *jid; // @synthesize jid=_jid;\n- (void).cxx_destruct;\n- (void)registerResult:(BOOL)arg1 error:(id)arg2;\n- (void)packageLog:(id)arg1 forRouting:(id)arg2 info:(id)arg3 options:(id)arg4;\n- (id)initWithID:(id)arg1 forTarget:(id)arg2 options:(id)arg3 forFile:(id)arg4;\n- (id)description;\n- (id)initWithID:(id)arg1 forTarget:(id)arg2 options:(id)arg3;\n@property(readonly) id result;\n@property(readonly) NSString *nextFilepath;\n\n@end\n\n"}
80,408
c
/* * File: PPFnGetProperty.h * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #ifndef __PPFNGETPROPERTY_H #define __PPFNGETPROPERTY_H #include "common/sedna.h" #include "tr/executor/base/PPBase.h" class PPFnGetProperty : public PPIterator { private: PPOpIn child; bool first_time; private: virtual void do_open (); virtual void do_reopen (); virtual void do_close (); virtual void do_next (xqp_tuple &t); virtual void do_accept (PPVisitor &v); virtual PPIterator* do_copy(dynamic_context *_cxt_); public: PPFnGetProperty(dynamic_context *_cxt_, operation_info _info_, PPOpIn _child_); virtual ~PPFnGetProperty(); }; #endif
26.89
28
(translation_unit) "/*\n * File: PPFnGetProperty.h\n * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)\n */\n\n#ifndef __PPFNGETPROPERTY_H\n#define __PPFNGETPROPERTY_H\n\n#include "common/sedna.h"\n#include "tr/executor/base/PPBase.h"\n\nclass PPFnGetProperty : public PPIterator\n{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate: \n virtual void do_open ();\n virtual void do_reopen ();\n virtual void do_close ();\n virtual void do_next (xqp_tuple &t);\n virtual void do_accept (PPVisitor &v);\n \n virtual PPIterator* do_copy(dynamic_context *_cxt_);\n\npublic: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);\n virtual ~PPFnGetProperty();\n};\n\n#endif\n" (comment) "/*\n * File: PPFnGetProperty.h\n * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)\n */" (preproc_ifdef) "#ifndef __PPFNGETPROPERTY_H\n#define __PPFNGETPROPERTY_H\n\n#include "common/sedna.h"\n#include "tr/executor/base/PPBase.h"\n\nclass PPFnGetProperty : public PPIterator\n{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate: \n virtual void do_open ();\n virtual void do_reopen ();\n virtual void do_close ();\n virtual void do_next (xqp_tuple &t);\n virtual void do_accept (PPVisitor &v);\n \n virtual PPIterator* do_copy(dynamic_context *_cxt_);\n\npublic: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);\n virtual ~PPFnGetProperty();\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "__PPFNGETPROPERTY_H" (preproc_def) "#define __PPFNGETPROPERTY_H\n" (#define) "#define" (identifier) "__PPFNGETPROPERTY_H" (preproc_include) "#include "common/sedna.h"\n" (#include) "#include" (string_literal) ""common/sedna.h"" (") """ (string_content) "common/sedna.h" (") """ (preproc_include) "#include "tr/executor/base/PPBase.h"\n" (#include) "#include" (string_literal) ""tr/executor/base/PPBase.h"" (") """ (string_content) "tr/executor/base/PPBase.h" (") """ (function_definition) "class PPFnGetProperty : public PPIterator\n{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate: \n virtual void do_open ();\n virtual void do_reopen ();\n virtual void do_close ();\n virtual void do_next (xqp_tuple &t);\n virtual void do_accept (PPVisitor &v);\n \n virtual PPIterator* do_copy(dynamic_context *_cxt_);\n\npublic: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);\n virtual ~PPFnGetProperty();\n}" (type_identifier) "class" (identifier) "PPFnGetProperty" (ERROR) ": public PPIterator" (:) ":" (identifier) "public" (identifier) "PPIterator" (compound_statement) "{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate: \n virtual void do_open ();\n virtual void do_reopen ();\n virtual void do_close ();\n virtual void do_next (xqp_tuple &t);\n virtual void do_accept (PPVisitor &v);\n \n virtual PPIterator* do_copy(dynamic_context *_cxt_);\n\npublic: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);\n virtual ~PPFnGetProperty();\n}" ({) "{" (labeled_statement) "private:\n PPOpIn child;" (statement_identifier) "private" (:) ":" (declaration) "PPOpIn child;" (type_identifier) "PPOpIn" (identifier) "child" (;) ";" (declaration) "bool first_time;" (primitive_type) "bool" (identifier) "first_time" (;) ";" (labeled_statement) "private: \n virtual void do_open ();" (statement_identifier) "private" (:) ":" (declaration) "virtual void do_open ();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "do_open ()" (identifier) "do_open" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void do_reopen ();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "do_reopen ()" (identifier) "do_reopen" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void do_close ();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "do_close ()" (identifier) "do_close" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "do_next (xqp_tuple &t);" (call_expression) "do_next (xqp_tuple &t)" (identifier) "do_next" (argument_list) "(xqp_tuple &t)" (() "(" (binary_expression) "xqp_tuple &t" (identifier) "xqp_tuple" (&) "&" (identifier) "t" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "do_accept (PPVisitor &v);" (call_expression) "do_accept (PPVisitor &v)" (identifier) "do_accept" (argument_list) "(PPVisitor &v)" (() "(" (binary_expression) "PPVisitor &v" (identifier) "PPVisitor" (&) "&" (identifier) "v" ()) ")" (;) ";" (declaration) "virtual PPIterator* do_copy(dynamic_context *_cxt_);" (type_identifier) "virtual" (ERROR) "PPIterator" (identifier) "PPIterator" (pointer_declarator) "* do_copy(dynamic_context *_cxt_)" (*) "*" (function_declarator) "do_copy(dynamic_context *_cxt_)" (identifier) "do_copy" (parameter_list) "(dynamic_context *_cxt_)" (() "(" (parameter_declaration) "dynamic_context *_cxt_" (type_identifier) "dynamic_context" (pointer_declarator) "*_cxt_" (*) "*" (identifier) "_cxt_" ()) ")" (;) ";" (labeled_statement) "public: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);" (statement_identifier) "public" (:) ":" (expression_statement) "PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);" (call_expression) "PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_)" (identifier) "PPFnGetProperty" (argument_list) "(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_)" (() "(" (binary_expression) "dynamic_context *_cxt_" (identifier) "dynamic_context" (*) "*" (identifier) "_cxt_" (,) "," (identifier) "operation_info" (ERROR) "_info_" (identifier) "_info_" (,) "," (ERROR) "PPOpIn" (identifier) "PPOpIn" (identifier) "_child_" ()) ")" (;) ";" (declaration) "virtual ~PPFnGetProperty();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "PPFnGetProperty()" (identifier) "PPFnGetProperty" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
156
8
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 26.89, "nodes": 99, "errors": 0, "source_hash": "1305db630378eaf10bd995f351363e4b833e6bb0aa5e072b256af63a25db6ee9", "categorized_nodes": 71}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __PPFNGETPROPERTY_H\n#define __PPFNGETPROPERTY_H\n\n#include \"common/sedna.h\"\n#include \"tr/executor/base/PPBase.h\"\n\nclass PPFnGetProperty : public PPIterator\n{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate: \n virtual void do_open ();\n virtual void do_reopen ();\n virtual void do_close ();\n virtual void do_next (xqp_tuple &t);\n virtual void do_accept (PPVisitor &v);\n \n virtual PPIterator* do_copy(dynamic_context *_cxt_);\n\npublic: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);\n virtual ~PPFnGetProperty();\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 98], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "identifier", "text": "__PPFNGETPROPERTY_H", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define __PPFNGETPROPERTY_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 5, "type": "identifier", "text": "__PPFNGETPROPERTY_H", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"common/sedna.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"common/sedna.h\"", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include \"tr/executor/base/PPBase.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"tr/executor/base/PPBase.h\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 36}}, {"id": 12, "type": "function_definition", "text": "class PPFnGetProperty : public PPIterator\n{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate: \n virtual void do_open ();\n virtual void do_reopen ();\n virtual void do_close ();\n virtual void do_next (xqp_tuple &t);\n virtual void do_accept (PPVisitor &v);\n \n virtual PPIterator* do_copy(dynamic_context *_cxt_);\n\npublic: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);\n virtual ~PPFnGetProperty();\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 13, "type": "identifier", "text": "PPFnGetProperty", "parent": 12, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 21}}, {"id": 14, "type": "ERROR", "text": ": public PPIterator", "parent": 12, "children": [15], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 41}}, {"id": 15, "type": "identifier", "text": "PPIterator", "parent": 14, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 41}}, {"id": 16, "type": "labeled_statement", "text": "private:\n PPOpIn child;", "parent": 12, "children": [17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 17, "type": "declaration", "text": "PPOpIn child;", "parent": 16, "children": [18, 19], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 17}}, {"id": 18, "type": "type_identifier", "text": "PPOpIn", "parent": 17, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 19, "type": "identifier", "text": "child", "parent": 17, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 16}}, {"id": 20, "type": "declaration", "text": "bool first_time;", "parent": 12, "children": [21, 22], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 20}}, {"id": 21, "type": "primitive_type", "text": "bool", "parent": 20, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 22, "type": "identifier", "text": "first_time", "parent": 20, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 19}}, {"id": 23, "type": "labeled_statement", "text": "private: \n virtual void do_open ();", "parent": 12, "children": [24], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 30}}, {"id": 24, "type": "declaration", "text": "virtual void do_open ();", "parent": 23, "children": [25, 26, 28], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 30}}, {"id": 25, "type": "type_identifier", "text": "virtual", "parent": 24, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 11}}, {"id": 26, "type": "ERROR", "text": "void", "parent": 24, "children": [27], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 16}}, {"id": 27, "type": "identifier", "text": "void", "parent": 26, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 16}}, {"id": 28, "type": "function_declarator", "text": "do_open ()", "parent": 24, "children": [29, 30], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 29}}, {"id": 29, "type": "identifier", "text": "do_open", "parent": 28, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 24}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 29}}, {"id": 31, "type": "declaration", "text": "virtual void do_reopen ();", "parent": 12, "children": [32, 33, 35], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 30}}, {"id": 32, "type": "type_identifier", "text": "virtual", "parent": 31, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 11}}, {"id": 33, "type": "ERROR", "text": "void", "parent": 31, "children": [34], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 16}}, {"id": 34, "type": "identifier", "text": "void", "parent": 33, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 16}}, {"id": 35, "type": "function_declarator", "text": "do_reopen ()", "parent": 31, "children": [36, 37], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 29}}, {"id": 36, "type": "identifier", "text": "do_reopen", "parent": 35, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 26}}, {"id": 37, "type": "parameter_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 29}}, {"id": 38, "type": "declaration", "text": "virtual void do_close ();", "parent": 12, "children": [39, 40, 42], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 30}}, {"id": 39, "type": "type_identifier", "text": "virtual", "parent": 38, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 11}}, {"id": 40, "type": "ERROR", "text": "void", "parent": 38, "children": [41], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 16}}, {"id": 41, "type": "identifier", "text": "void", "parent": 40, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 16}}, {"id": 42, "type": "function_declarator", "text": "do_close ()", "parent": 38, "children": [43, 44], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 29}}, {"id": 43, "type": "identifier", "text": "do_close", "parent": 42, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 25}}, {"id": 44, "type": "parameter_list", "text": "()", "parent": 42, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 29}}, {"id": 45, "type": "declaration", "text": "virtual void", "parent": 12, "children": [46, 47], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 16}}, {"id": 46, "type": "type_identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 11}}, {"id": 47, "type": "identifier", "text": "void", "parent": 45, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 48, "type": "call_expression", "text": "do_next (xqp_tuple &t)", "parent": 12, "children": [49, 50], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 41}}, {"id": 49, "type": "identifier", "text": "do_next", "parent": 48, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 24}}, {"id": 50, "type": "argument_list", "text": "(xqp_tuple &t)", "parent": 48, "children": [51], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 41}}, {"id": 51, "type": "binary_expression", "text": "xqp_tuple &t", "parent": 50, "children": [52, 53], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 40}}, {"id": 52, "type": "identifier", "text": "xqp_tuple", "parent": 51, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 37}}, {"id": 53, "type": "identifier", "text": "t", "parent": 51, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 40}}, {"id": 54, "type": "declaration", "text": "virtual void", "parent": 12, "children": [55, 56], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 16}}, {"id": 55, "type": "type_identifier", "text": "virtual", "parent": 54, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 56, "type": "identifier", "text": "void", "parent": 54, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 57, "type": "call_expression", "text": "do_accept (PPVisitor &v)", "parent": 12, "children": [58, 59], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 41}}, {"id": 58, "type": "identifier", "text": "do_accept", "parent": 57, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 26}}, {"id": 59, "type": "argument_list", "text": "(PPVisitor &v)", "parent": 57, "children": [60], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 41}}, {"id": 60, "type": "binary_expression", "text": "PPVisitor &v", "parent": 59, "children": [61, 62], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 40}}, {"id": 61, "type": "identifier", "text": "PPVisitor", "parent": 60, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 37}}, {"id": 62, "type": "identifier", "text": "v", "parent": 60, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 40}}, {"id": 63, "type": "declaration", "text": "virtual PPIterator* do_copy(dynamic_context *_cxt_);", "parent": 12, "children": [64, 65, 67], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 56}}, {"id": 64, "type": "type_identifier", "text": "virtual", "parent": 63, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 11}}, {"id": 65, "type": "ERROR", "text": "PPIterator", "parent": 63, "children": [66], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 22}}, {"id": 66, "type": "identifier", "text": "PPIterator", "parent": 65, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 22}}, {"id": 67, "type": "pointer_declarator", "text": "* do_copy(dynamic_context *_cxt_)", "parent": 63, "children": [68, 69], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 55}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 69, "type": "function_declarator", "text": "do_copy(dynamic_context *_cxt_)", "parent": 67, "children": [70, 71], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 55}}, {"id": 70, "type": "identifier", "text": "do_copy", "parent": 69, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 31}}, {"id": 71, "type": "parameter_list", "text": "(dynamic_context *_cxt_)", "parent": 69, "children": [72], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 55}}, {"id": 72, "type": "parameter_declaration", "text": "dynamic_context *_cxt_", "parent": 71, "children": [73, 74], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 54}}, {"id": 73, "type": "type_identifier", "text": "dynamic_context", "parent": 72, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 47}}, {"id": 74, "type": "pointer_declarator", "text": "*_cxt_", "parent": 72, "children": [75, 76], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 54}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 49}}, {"id": 76, "type": "identifier", "text": "_cxt_", "parent": 74, "children": [], "start_point": {"row": 24, "column": 49}, "end_point": {"row": 24, "column": 54}}, {"id": 77, "type": "labeled_statement", "text": "public: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);", "parent": 12, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 29, "column": 36}}, {"id": 78, "type": "call_expression", "text": "PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_)", "parent": 77, "children": [79, 80], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 29, "column": 35}}, {"id": 79, "type": "identifier", "text": "PPFnGetProperty", "parent": 78, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 19}}, {"id": 80, "type": "argument_list", "text": "(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_)", "parent": 78, "children": [81, 85, 86, 88, 90], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 29, "column": 35}}, {"id": 81, "type": "binary_expression", "text": "dynamic_context *_cxt_", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 42}}, {"id": 82, "type": "identifier", "text": "dynamic_context", "parent": 81, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 35}}, {"id": 83, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 37}}, {"id": 84, "type": "identifier", "text": "_cxt_", "parent": 81, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 42}}, {"id": 85, "type": "identifier", "text": "operation_info", "parent": 80, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 34}}, {"id": 86, "type": "ERROR", "text": "_info_", "parent": 80, "children": [87], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 41}}, {"id": 87, "type": "identifier", "text": "_info_", "parent": 86, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 41}}, {"id": 88, "type": "ERROR", "text": "PPOpIn", "parent": 80, "children": [89], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 26}}, {"id": 89, "type": "identifier", "text": "PPOpIn", "parent": 88, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 26}}, {"id": 90, "type": "identifier", "text": "_child_", "parent": 80, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 34}}, {"id": 91, "type": "declaration", "text": "virtual ~PPFnGetProperty();", "parent": 12, "children": [92, 93, 95], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 31}}, {"id": 92, "type": "type_identifier", "text": "virtual", "parent": 91, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 11}}, {"id": 93, "type": "ERROR", "text": "~", "parent": 91, "children": [94], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 94, "type": "~", "text": "~", "parent": 93, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 95, "type": "function_declarator", "text": "PPFnGetProperty()", "parent": 91, "children": [96, 97], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 30}}, {"id": 96, "type": "identifier", "text": "PPFnGetProperty", "parent": 95, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 28}}, {"id": 97, "type": "parameter_list", "text": "()", "parent": 95, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 30}}, {"id": 98, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 28, 35, 42, 69, 95], "variables": [17, 20, 24, 31, 38, 45, 54, 63, 72, 91], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [48, 51, 57, 60, 78, 81], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 18, 19, 22, 25, 27, 29, 32, 34, 36, 39, 41, 43, 46, 47, 49, 52, 53, 55, 56, 58, 61, 62, 64, 66, 70, 73, 76, 79, 82, 84, 85, 87, 89, 90, 92, 96, 98], "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": "PPFnGetProperty", "text_snippet": "class PPFnGetProperty : public PPIterator\n{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "do_open ()"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "do_reopen ()"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "do_close ()"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "do_copy(dynamic_context *_cxt_)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "PPFnGetProperty()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"common/sedna.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"tr/executor/base/PPBase.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * File: PPFnGetProperty.h\n * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)\n */\n\n#ifndef __PPFNGETPROPERTY_H\n#define __PPFNGETPROPERTY_H\n\n#include \"common/sedna.h\"\n#include \"tr/executor/base/PPBase.h\"\n\nclass PPFnGetProperty : public PPIterator\n{\nprivate:\n PPOpIn child;\n bool first_time;\n\nprivate: \n virtual void do_open ();\n virtual void do_reopen ();\n virtual void do_close ();\n virtual void do_next (xqp_tuple &t);\n virtual void do_accept (PPVisitor &v);\n \n virtual PPIterator* do_copy(dynamic_context *_cxt_);\n\npublic: \n PPFnGetProperty(dynamic_context *_cxt_,\n operation_info _info_,\n PPOpIn _child_);\n virtual ~PPFnGetProperty();\n};\n\n#endif\n"}
80,409
c
// // EMMessage+PushKit.h // EaseMobCallKit // // Created by 杜洁鹏 on 2020/8/13. // Copyright © 2020 djp. All rights reserved. // #import <Hyphenate/Hyphenate.h> NS_ASSUME_NONNULL_BEGIN @interface EMMessage (PushKit) + (void)sendPushKitCallMessageToUser:(NSString *)aUsername myNickname:(NSString *)aNickname; + (void)sendCancelPushKitMessageToUser:(NSString *)aUsername; @end NS_ASSUME_NONNULL_END
27.47
15
(translation_unit) "//\n// EMMessage+PushKit.h\n// EaseMobCallKit\n//\n// Created by 杜洁鹏 on 2020/8/13.\n// Copyright © 2020 djp. All rights reserved.\n//\n\n#import <Hyphenate/Hyphenate.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface EMMessage (PushKit)\n+ (void)sendPushKitCallMessageToUser:(NSString *)aUsername\n myNickname:(NSString *)aNickname;\n\n+ (void)sendCancelPushKitMessageToUser:(NSString *)aUsername;\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// EMMessage+PushKit.h" (comment) "// EaseMobCallKit" (comment) "//" (comment) "// Created by 杜洁鹏 on 2020/8/13.\n// C" (comment) "pyright © 2020 djp. All rights reserved.\n//\n\n#i" (comment) "po" (preproc_call) " <Hyphenate/Hyphenate.h>\n\nNS_ASS" (preproc_directive) " <Hyphe" (preproc_arg) "ate/Hyphenate.h>\n\nNS_AS" (declaration) "ME_NONNULL_BEGIN\n\n@interface EMMessage (PushKit)\n+ (void)sendPus" (type_identifier) "ME_NONNULL_BEGIN\n\n@inte" (ERROR) "ace EMMessage (PushKit)\n+ (void)" (ERROR) "a" (identifier) "ce EMMess" (function_declarator) "ge (PushKit)\n+ (voi" (identifier) "ge (PushK" (parameter_list) "t)\n+ (voi" (() "t" (identifier) ")\n+ (vo" ()) "i" (+) ")" (parenthesized_declarator) "endPus" (() "e" (identifier) "ndPu" ()) "s" (;) "" (labeled_statement) "hKitCallMessageToUser:(NSString *)aUsername\n " (statement_identifier) "hKitCallMessageToUser:(NSStr" (:) "i" (expression_statement) "ng *)aUsername\n " (cast_expression) "ng *)aUsername\n " (() "n" (type_descriptor) "g *)aUsern" (type_identifier) "g *)aUse" (abstract_pointer_declarator) "n" (*) "n" ()) "a" (identifier) "me\n " (;) "" (labeled_statement) "ame:(NSString *)aNickname;\n\n+ (vo" (statement_identifier) "ame:(NSStr" (:) "i" (expression_statement) "ng *)aNickname;\n\n+ (vo" (cast_expression) "ng *)aNickname;\n\n+ (v" (() "n" (type_descriptor) "g *)aNickn" (type_identifier) "g *)aNic" (abstract_pointer_declarator) "n" (*) "n" ()) "a" (identifier) "me;\n\n+ (v" (;) "o" (ERROR) ")sendCancelPushKitMessageToUser:(NSString *)aUsername;\n@end\n\nNS" (binary_expression) ")sendCancelPushKitMessageToUser:(NSString *)aUsername;\n@end\n" (unary_expression) ")sendCancelPushKitMessageToUser:(NSStr" (+) ")" (cast_expression) "endCancelPushKitMessageToUser:(NSStr" (() "e" (type_descriptor) "ndCa" (primitive_type) "ndCa" ()) "n" (identifier) "celPushKitMessageToUser:(NSStr" (ERROR) "ing *)aUse" (:) "i" (() "n" (identifier) "g *)aUse" (*) "n" (ERROR) "a" ()) "a" (identifier) "me;\n@end\n" (;) "\n" (ERROR) "S" (declaration) "_ASSUME_NONNULL_END\n" (type_identifier) "_AS" (identifier) "ME_NONNULL_END\n" (;) ""
78
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 27.47, "nodes": 46, "errors": 0, "source_hash": "fa4ce84a0d9eb81c5335e21e2106a3bc7b5fbe8071643219b7a459c66c2ce2fa", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Hyphenate/Hyphenate.h>\n\nNS_ASS", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": " <Hyphe", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "ate/Hyphenate.h>\n\nNS_AS", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 31}}, {"id": 3, "type": "declaration", "text": "ME_NONNULL_BEGIN\n\n@interface EMMessage (PushKit)\n+ (void)sendPus", "parent": null, "children": [4, 5, 12], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 4, "type": "type_identifier", "text": "ME_NONNULL_BEGIN\n\n@inte", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 5, "type": "ERROR", "text": "ace EMMessage (PushKit)\n+ (void)", "parent": 3, "children": [6, 7, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 6, "type": "ERROR", "text": "a", "parent": 5, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 7, "type": "identifier", "text": "ce EMMess", "parent": 5, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 8, "type": "function_declarator", "text": "ge (PushKit)\n+ (voi", "parent": 5, "children": [9, 10], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 30}}, {"id": 9, "type": "identifier", "text": "ge (PushK", "parent": 8, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 20}}, {"id": 10, "type": "parameter_list", "text": "t)\n+ (voi", "parent": 8, "children": [11], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 30}}, {"id": 11, "type": "identifier", "text": ")\n+ (vo", "parent": 10, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 29}}, {"id": 12, "type": "parenthesized_declarator", "text": "endPus", "parent": 3, "children": [13], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 13, "type": "identifier", "text": "ndPu", "parent": 12, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 7}}, {"id": 14, "type": "labeled_statement", "text": "hKitCallMessageToUser:(NSString *)aUsername\n ", "parent": null, "children": [15], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 58}}, {"id": 15, "type": "statement_identifier", "text": "hKitCallMessageToUser:(NSStr", "parent": 14, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 36}}, {"id": 16, "type": "cast_expression", "text": "ng *)aUsername\n ", "parent": 14, "children": [17, 21], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 58}}, {"id": 17, "type": "type_descriptor", "text": "g *)aUsern", "parent": 16, "children": [18, 19], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 48}}, {"id": 18, "type": "type_identifier", "text": "g *)aUse", "parent": 17, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 46}}, {"id": 19, "type": "abstract_pointer_declarator", "text": "n", "parent": 17, "children": [20], "start_point": {"row": 13, "column": 47}, "end_point": {"row": 13, "column": 48}}, {"id": 20, "type": "*", "text": "n", "parent": 19, "children": [], "start_point": {"row": 13, "column": 47}, "end_point": {"row": 13, "column": 48}}, {"id": 21, "type": "identifier", "text": "me\n ", "parent": 16, "children": [], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 58}}, {"id": 22, "type": "labeled_statement", "text": "ame:(NSString *)aNickname;\n\n+ (vo", "parent": null, "children": [23], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 59}}, {"id": 23, "type": "statement_identifier", "text": "ame:(NSStr", "parent": 22, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 36}}, {"id": 24, "type": "cast_expression", "text": "ng *)aNickname;\n\n+ (v", "parent": 22, "children": [25, 29], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 58}}, {"id": 25, "type": "type_descriptor", "text": "g *)aNickn", "parent": 24, "children": [26, 27], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 48}}, {"id": 26, "type": "type_identifier", "text": "g *)aNic", "parent": 25, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 46}}, {"id": 27, "type": "abstract_pointer_declarator", "text": "n", "parent": 25, "children": [28], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 48}}, {"id": 28, "type": "*", "text": "n", "parent": 27, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 48}}, {"id": 29, "type": "identifier", "text": "me;\n\n+ (v", "parent": 24, "children": [], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 58}}, {"id": 30, "type": "ERROR", "text": ")sendCancelPushKitMessageToUser:(NSString *)aUsername;\n@end\n\nNS", "parent": null, "children": [31, 42], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 31, "type": "binary_expression", "text": ")sendCancelPushKitMessageToUser:(NSString *)aUsername;\n@end\n", "parent": 30, "children": [32, 37, 39, 40, 41], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 60}}, {"id": 32, "type": "unary_expression", "text": ")sendCancelPushKitMessageToUser:(NSStr", "parent": 31, "children": [33], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 38}}, {"id": 33, "type": "cast_expression", "text": "endCancelPushKitMessageToUser:(NSStr", "parent": 32, "children": [34, 36], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 38}}, {"id": 34, "type": "type_descriptor", "text": "ndCa", "parent": 33, "children": [35], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 35, "type": "primitive_type", "text": "ndCa", "parent": 34, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 36, "type": "identifier", "text": "celPushKitMessageToUser:(NSStr", "parent": 33, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 38}}, {"id": 37, "type": "ERROR", "text": "ing *)aUse", "parent": 31, "children": [38], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 48}}, {"id": 38, "type": "identifier", "text": "g *)aUse", "parent": 37, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 48}}, {"id": 39, "type": "*", "text": "n", "parent": 31, "children": [], "start_point": {"row": 16, "column": 49}, "end_point": {"row": 16, "column": 50}}, {"id": 40, "type": "ERROR", "text": "a", "parent": 31, "children": [], "start_point": {"row": 16, "column": 50}, "end_point": {"row": 16, "column": 51}}, {"id": 41, "type": "identifier", "text": "me;\n@end\n", "parent": 31, "children": [], "start_point": {"row": 16, "column": 51}, "end_point": {"row": 16, "column": 60}}, {"id": 42, "type": "ERROR", "text": "S", "parent": 30, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 43, "type": "declaration", "text": "_ASSUME_NONNULL_END\n", "parent": null, "children": [44, 45], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 19, "column": 21}}, {"id": 44, "type": "type_identifier", "text": "_AS", "parent": 43, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}, {"id": 45, "type": "identifier", "text": "ME_NONNULL_END\n", "parent": 43, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 21}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [3, 43], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [16, 24, 31, 32, 33], "assignments": [], "loops": [], "conditionals": [4, 7, 9, 11, 13, 15, 18, 21, 23, 26, 29, 36, 38, 41, 44, 45], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "ge (PushKit)\n+ (voi"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// EMMessage+PushKit.h\n// EaseMobCallKit\n//\n// Created by \u675c\u6d01\u9e4f on 2020/8/13.\n// Copyright \u00a9 2020 djp. All rights reserved.\n//\n\n#import <Hyphenate/Hyphenate.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface EMMessage (PushKit)\n+ (void)sendPushKitCallMessageToUser:(NSString *)aUsername\n myNickname:(NSString *)aNickname;\n\n+ (void)sendCancelPushKitMessageToUser:(NSString *)aUsername;\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,410
c
/** * @cond ___LICENSE___ * * Copyright (c) 2016-2018 Zefiros Software. * * 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. * * @endcond */ #pragma once #ifndef __SERIALISATION_WRITEBUFFER_H__ #define __SERIALISATION_WRITEBUFFER_H__ #include "serialisation/streamWriter.h" #include "serialisation/defines.h" #include <cstring> class BufferedStreamWriter { public: explicit BufferedStreamWriter(const std::string &fileName); explicit BufferedStreamWriter(std::ofstream &stream); explicit BufferedStreamWriter(std::fstream &stream); explicit BufferedStreamWriter(std::ostream &stream); ~BufferedStreamWriter(); void ClearBuffer(); void Close(); SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount) { uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex; const char *c = firstByte; while (diff < byteCount) { memcpy(mWriteBuffer + mWriteIndex, c, diff); mWriteIndex += diff; c += diff; byteCount -= diff; ClearBuffer(); diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex; } memcpy(mWriteBuffer + mWriteIndex, c, byteCount); mWriteIndex += static_cast<uint32_t>(byteCount); } SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount) { uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex; if (byteCount < diff) { memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount); mWriteIndex += static_cast<uint32_t>(byteCount); } else { ClearBuffer(); mStreamWriter.WriteBytes(firstByte, byteCount); } } SERIALISATION_FORCEINLINE void WriteSize(size_t size) { uint8_t bufferIndex; for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++) { mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80); } mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size); WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex); } template< typename TPrimitive > SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value) { WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive)); } template< typename TPrimitive > SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count) { const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive); while (count > 0) { const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count; WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive)); count -= writeBlockSize; first += writeBlockSize; } } private: char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ]; StreamWriter mStreamWriter; uint8_t mVarIntBuffer[ 10 ]; uint32_t mWriteIndex; BufferedStreamWriter &operator=(const BufferedStreamWriter &); BufferedStreamWriter(const BufferedStreamWriter &); }; #ifndef SERIALISATION_NO_HEADER_ONLY # include "../../src/bufferedStreamWriter.cpp" #endif #endif
38.76
110
(translation_unit) "/**\n * @cond ___LICENSE___\n *\n * Copyright (c) 2016-2018 Zefiros Software.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * @endcond\n */\n#pragma once\n#ifndef __SERIALISATION_WRITEBUFFER_H__\n#define __SERIALISATION_WRITEBUFFER_H__\n\n#include "serialisation/streamWriter.h"\n#include "serialisation/defines.h"\n\n#include <cstring>\n\nclass BufferedStreamWriter\n{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName);\n\n explicit BufferedStreamWriter(std::ofstream &stream);\n\n explicit BufferedStreamWriter(std::fstream &stream);\n\n explicit BufferedStreamWriter(std::ostream &stream);\n\n ~BufferedStreamWriter();\n\n void ClearBuffer();\n\n void Close();\n\n SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n\n SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }\n\n SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }\n\nprivate:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];\n\n StreamWriter mStreamWriter;\n\n uint8_t mVarIntBuffer[ 10 ];\n\n uint32_t mWriteIndex;\n\n BufferedStreamWriter &operator=(const BufferedStreamWriter &);\n BufferedStreamWriter(const BufferedStreamWriter &);\n};\n\n#ifndef SERIALISATION_NO_HEADER_ONLY\n# include "../../src/bufferedStreamWriter.cpp"\n#endif\n\n#endif" (comment) "/**\n * @cond ___LICENSE___\n *\n * Copyright (c) 2016-2018 Zefiros Software.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * @endcond\n */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifndef __SERIALISATION_WRITEBUFFER_H__\n#define __SERIALISATION_WRITEBUFFER_H__\n\n#include "serialisation/streamWriter.h"\n#include "serialisation/defines.h"\n\n#include <cstring>\n\nclass BufferedStreamWriter\n{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName);\n\n explicit BufferedStreamWriter(std::ofstream &stream);\n\n explicit BufferedStreamWriter(std::fstream &stream);\n\n explicit BufferedStreamWriter(std::ostream &stream);\n\n ~BufferedStreamWriter();\n\n void ClearBuffer();\n\n void Close();\n\n SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n\n SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }\n\n SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }\n\nprivate:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];\n\n StreamWriter mStreamWriter;\n\n uint8_t mVarIntBuffer[ 10 ];\n\n uint32_t mWriteIndex;\n\n BufferedStreamWriter &operator=(const BufferedStreamWriter &);\n BufferedStreamWriter(const BufferedStreamWriter &);\n};\n\n#ifndef SERIALISATION_NO_HEADER_ONLY\n# include "../../src/bufferedStreamWriter.cpp"\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "__SERIALISATION_WRITEBUFFER_H__" (preproc_def) "#define __SERIALISATION_WRITEBUFFER_H__\n" (#define) "#define" (identifier) "__SERIALISATION_WRITEBUFFER_H__" (preproc_include) "#include "serialisation/streamWriter.h"\n" (#include) "#include" (string_literal) ""serialisation/streamWriter.h"" (") """ (string_content) "serialisation/streamWriter.h" (") """ (preproc_include) "#include "serialisation/defines.h"\n" (#include) "#include" (string_literal) ""serialisation/defines.h"" (") """ (string_content) "serialisation/defines.h" (") """ (preproc_include) "#include <cstring>\n" (#include) "#include" (system_lib_string) "<cstring>" (function_definition) "class BufferedStreamWriter\n{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName);\n\n explicit BufferedStreamWriter(std::ofstream &stream);\n\n explicit BufferedStreamWriter(std::fstream &stream);\n\n explicit BufferedStreamWriter(std::ostream &stream);\n\n ~BufferedStreamWriter();\n\n void ClearBuffer();\n\n void Close();\n\n SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n\n SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }\n\n SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }\n\nprivate:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];\n\n StreamWriter mStreamWriter;\n\n uint8_t mVarIntBuffer[ 10 ];\n\n uint32_t mWriteIndex;\n\n BufferedStreamWriter &operator=(const BufferedStreamWriter &);\n BufferedStreamWriter(const BufferedStreamWriter &);\n}" (type_identifier) "class" (identifier) "BufferedStreamWriter" (compound_statement) "{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName);\n\n explicit BufferedStreamWriter(std::ofstream &stream);\n\n explicit BufferedStreamWriter(std::fstream &stream);\n\n explicit BufferedStreamWriter(std::ostream &stream);\n\n ~BufferedStreamWriter();\n\n void ClearBuffer();\n\n void Close();\n\n SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n\n SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }\n\n SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }\n\nprivate:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];\n\n StreamWriter mStreamWriter;\n\n uint8_t mVarIntBuffer[ 10 ];\n\n uint32_t mWriteIndex;\n\n BufferedStreamWriter &operator=(const BufferedStreamWriter &);\n BufferedStreamWriter(const BufferedStreamWriter &);\n}" ({) "{" (labeled_statement) "public:\n\n explicit BufferedStreamWriter(const std::string &fileName);" (statement_identifier) "public" (:) ":" (declaration) "explicit BufferedStreamWriter(const std::string &fileName);" (type_identifier) "explicit" (function_declarator) "BufferedStreamWriter(const std::string &fileName)" (identifier) "BufferedStreamWriter" (parameter_list) "(const std::string &fileName)" (() "(" (parameter_declaration) "const std::string &fileName" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "fileName" ()) ")" (;) ";" (declaration) "explicit BufferedStreamWriter(std::ofstream &stream);" (type_identifier) "explicit" (function_declarator) "BufferedStreamWriter(std::ofstream &stream)" (identifier) "BufferedStreamWriter" (parameter_list) "(std::ofstream &stream)" (() "(" (parameter_declaration) "std::ofstream &stream" (type_identifier) "std" (ERROR) "::ofstream &" (:) ":" (:) ":" (identifier) "ofstream" (&) "&" (identifier) "stream" ()) ")" (;) ";" (declaration) "explicit BufferedStreamWriter(std::fstream &stream);" (type_identifier) "explicit" (function_declarator) "BufferedStreamWriter(std::fstream &stream)" (identifier) "BufferedStreamWriter" (parameter_list) "(std::fstream &stream)" (() "(" (parameter_declaration) "std::fstream &stream" (type_identifier) "std" (ERROR) "::fstream &" (:) ":" (:) ":" (identifier) "fstream" (&) "&" (identifier) "stream" ()) ")" (;) ";" (declaration) "explicit BufferedStreamWriter(std::ostream &stream);" (type_identifier) "explicit" (function_declarator) "BufferedStreamWriter(std::ostream &stream)" (identifier) "BufferedStreamWriter" (parameter_list) "(std::ostream &stream)" (() "(" (parameter_declaration) "std::ostream &stream" (type_identifier) "std" (ERROR) "::ostream &" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (identifier) "stream" ()) ")" (;) ";" (expression_statement) "~BufferedStreamWriter();" (unary_expression) "~BufferedStreamWriter()" (~) "~" (call_expression) "BufferedStreamWriter()" (identifier) "BufferedStreamWriter" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void ClearBuffer();" (primitive_type) "void" (function_declarator) "ClearBuffer()" (identifier) "ClearBuffer" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void Close();" (primitive_type) "void" (function_declarator) "Close()" (identifier) "Close" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }" (type_identifier) "SERIALISATION_FORCEINLINE" (ERROR) "void" (identifier) "void" (function_declarator) "WriteBytes(const char *const firstByte, size_t byteCount)" (identifier) "WriteBytes" (parameter_list) "(const char *const firstByte, size_t byteCount)" (() "(" (parameter_declaration) "const char *const firstByte" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*const firstByte" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "firstByte" (,) "," (parameter_declaration) "size_t byteCount" (primitive_type) "size_t" (identifier) "byteCount" ()) ")" (compound_statement) "{\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }" ({) "{" (declaration) "uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;" (primitive_type) "uint32_t" (init_declarator) "diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex" (identifier) "diff" (=) "=" (binary_expression) "SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex" (identifier) "SERIALISATION_SERIALISERS_BUFFERSIZE" (-) "-" (identifier) "mWriteIndex" (;) ";" (declaration) "const char *c = firstByte;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*c = firstByte" (pointer_declarator) "*c" (*) "*" (identifier) "c" (=) "=" (identifier) "firstByte" (;) ";" (while_statement) "while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }" (while) "while" (parenthesized_expression) "(diff < byteCount)" (() "(" (binary_expression) "diff < byteCount" (identifier) "diff" (<) "<" (identifier) "byteCount" ()) ")" (compound_statement) "{\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }" ({) "{" (expression_statement) "memcpy(mWriteBuffer + mWriteIndex, c, diff);" (call_expression) "memcpy(mWriteBuffer + mWriteIndex, c, diff)" (identifier) "memcpy" (argument_list) "(mWriteBuffer + mWriteIndex, c, diff)" (() "(" (binary_expression) "mWriteBuffer + mWriteIndex" (identifier) "mWriteBuffer" (+) "+" (identifier) "mWriteIndex" (,) "," (identifier) "c" (,) "," (identifier) "diff" ()) ")" (;) ";" (expression_statement) "mWriteIndex += diff;" (assignment_expression) "mWriteIndex += diff" (identifier) "mWriteIndex" (+=) "+=" (identifier) "diff" (;) ";" (expression_statement) "c += diff;" (assignment_expression) "c += diff" (identifier) "c" (+=) "+=" (identifier) "diff" (;) ";" (expression_statement) "byteCount -= diff;" (assignment_expression) "byteCount -= diff" (identifier) "byteCount" (-=) "-=" (identifier) "diff" (;) ";" (expression_statement) "ClearBuffer();" (call_expression) "ClearBuffer()" (identifier) "ClearBuffer" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;" (assignment_expression) "diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex" (identifier) "diff" (=) "=" (binary_expression) "SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex" (identifier) "SERIALISATION_SERIALISERS_BUFFERSIZE" (-) "-" (identifier) "mWriteIndex" (;) ";" (}) "}" (expression_statement) "memcpy(mWriteBuffer + mWriteIndex, c, byteCount);" (call_expression) "memcpy(mWriteBuffer + mWriteIndex, c, byteCount)" (identifier) "memcpy" (argument_list) "(mWriteBuffer + mWriteIndex, c, byteCount)" (() "(" (binary_expression) "mWriteBuffer + mWriteIndex" (identifier) "mWriteBuffer" (+) "+" (identifier) "mWriteIndex" (,) "," (identifier) "c" (,) "," (identifier) "byteCount" ()) ")" (;) ";" (expression_statement) "mWriteIndex += static_cast<uint32_t>(byteCount);" (assignment_expression) "mWriteIndex += static_cast<uint32_t>(byteCount)" (identifier) "mWriteIndex" (+=) "+=" (binary_expression) "static_cast<uint32_t>(byteCount)" (binary_expression) "static_cast<uint32_t" (identifier) "static_cast" (<) "<" (identifier) "uint32_t" (>) ">" (parenthesized_expression) "(byteCount)" (() "(" (identifier) "byteCount" ()) ")" (;) ";" (}) "}" (function_definition) "SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }" (type_identifier) "SERIALISATION_FORCEINLINE" (ERROR) "void" (identifier) "void" (function_declarator) "WriteBlock(const char *const firstByte, size_t byteCount)" (identifier) "WriteBlock" (parameter_list) "(const char *const firstByte, size_t byteCount)" (() "(" (parameter_declaration) "const char *const firstByte" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*const firstByte" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "firstByte" (,) "," (parameter_declaration) "size_t byteCount" (primitive_type) "size_t" (identifier) "byteCount" ()) ")" (compound_statement) "{\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }" ({) "{" (declaration) "uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;" (primitive_type) "uint32_t" (init_declarator) "diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex" (identifier) "diff" (=) "=" (binary_expression) "SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex" (identifier) "SERIALISATION_SERIALISERS_BUFFERSIZE" (-) "-" (identifier) "mWriteIndex" (;) ";" (if_statement) "if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }" (if) "if" (parenthesized_expression) "(byteCount < diff)" (() "(" (binary_expression) "byteCount < diff" (identifier) "byteCount" (<) "<" (identifier) "diff" ()) ")" (compound_statement) "{\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }" ({) "{" (expression_statement) "memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);" (call_expression) "memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount)" (identifier) "memcpy" (argument_list) "(mWriteBuffer + mWriteIndex, firstByte, byteCount)" (() "(" (binary_expression) "mWriteBuffer + mWriteIndex" (identifier) "mWriteBuffer" (+) "+" (identifier) "mWriteIndex" (,) "," (identifier) "firstByte" (,) "," (identifier) "byteCount" ()) ")" (;) ";" (expression_statement) "mWriteIndex += static_cast<uint32_t>(byteCount);" (assignment_expression) "mWriteIndex += static_cast<uint32_t>(byteCount)" (identifier) "mWriteIndex" (+=) "+=" (binary_expression) "static_cast<uint32_t>(byteCount)" (binary_expression) "static_cast<uint32_t" (identifier) "static_cast" (<) "<" (identifier) "uint32_t" (>) ">" (parenthesized_expression) "(byteCount)" (() "(" (identifier) "byteCount" ()) ")" (;) ";" (}) "}" (else_clause) "else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }" (else) "else" (compound_statement) "{\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }" ({) "{" (expression_statement) "ClearBuffer();" (call_expression) "ClearBuffer()" (identifier) "ClearBuffer" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "mStreamWriter.WriteBytes(firstByte, byteCount);" (call_expression) "mStreamWriter.WriteBytes(firstByte, byteCount)" (field_expression) "mStreamWriter.WriteBytes" (identifier) "mStreamWriter" (.) "." (field_identifier) "WriteBytes" (argument_list) "(firstByte, byteCount)" (() "(" (identifier) "firstByte" (,) "," (identifier) "byteCount" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }" (type_identifier) "SERIALISATION_FORCEINLINE" (ERROR) "void" (identifier) "void" (function_declarator) "WriteSize(size_t size)" (identifier) "WriteSize" (parameter_list) "(size_t size)" (() "(" (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (compound_statement) "{\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }" ({) "{" (declaration) "uint8_t bufferIndex;" (primitive_type) "uint8_t" (identifier) "bufferIndex" (;) ";" (for_statement) "for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }" (for) "for" (() "(" (assignment_expression) "bufferIndex = 0" (identifier) "bufferIndex" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "size >= 0x80" (identifier) "size" (>=) ">=" (number_literal) "0x80" (;) ";" (comma_expression) "size >>= 7, bufferIndex++" (assignment_expression) "size >>= 7" (identifier) "size" (>>=) ">>=" (number_literal) "7" (,) "," (update_expression) "bufferIndex++" (identifier) "bufferIndex" (++) "++" ()) ")" (compound_statement) "{\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }" ({) "{" (expression_statement) "mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);" (assignment_expression) "mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80)" (subscript_expression) "mVarIntBuffer[bufferIndex]" (identifier) "mVarIntBuffer" ([) "[" (identifier) "bufferIndex" (]) "]" (=) "=" (binary_expression) "static_cast<uint8_t>((size & 0x7F) | 0x80)" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (>) ">" (parenthesized_expression) "((size & 0x7F) | 0x80)" (() "(" (binary_expression) "(size & 0x7F) | 0x80" (parenthesized_expression) "(size & 0x7F)" (() "(" (binary_expression) "size & 0x7F" (identifier) "size" (&) "&" (number_literal) "0x7F" ()) ")" (|) "|" (number_literal) "0x80" ()) ")" (;) ";" (}) "}" (expression_statement) "mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);" (assignment_expression) "mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size)" (subscript_expression) "mVarIntBuffer[bufferIndex]" (identifier) "mVarIntBuffer" ([) "[" (identifier) "bufferIndex" (]) "]" (=) "=" (binary_expression) "static_cast<uint8_t>(size)" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (>) ">" (parenthesized_expression) "(size)" (() "(" (identifier) "size" ()) ")" (;) ";" (expression_statement) "WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);" (call_expression) "WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex)" (identifier) "WriteBytes" (argument_list) "(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex)" (() "(" (binary_expression) "reinterpret_cast<char *>(mVarIntBuffer)" (binary_expression) "reinterpret_cast<char" (identifier) "reinterpret_cast" (<) "<" (identifier) "char" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(mVarIntBuffer)" (() "(" (identifier) "mVarIntBuffer" ()) ")" (,) "," (update_expression) "++bufferIndex" (++) "++" (identifier) "bufferIndex" ()) ")" (;) ";" (}) "}" (expression_statement) "template< typename TPrimitive >\n SERIALISATION_FORCEINLINE" (binary_expression) "template< typename TPrimitive >\n SERIALISATION_FORCEINLINE" (binary_expression) "template< typename TPrimitive" (identifier) "template" (<) "<" (ERROR) "typename" (identifier) "typename" (identifier) "TPrimitive" (>) ">" (identifier) "SERIALISATION_FORCEINLINE" (;) "" (function_definition) "void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }" (primitive_type) "void" (function_declarator) "WritePrimitive(const TPrimitive &value)" (identifier) "WritePrimitive" (parameter_list) "(const TPrimitive &value)" (() "(" (parameter_declaration) "const TPrimitive &value" (type_qualifier) "const" (const) "const" (type_identifier) "TPrimitive" (ERROR) "&" (&) "&" (identifier) "value" ()) ")" (compound_statement) "{\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }" ({) "{" (expression_statement) "WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));" (call_expression) "WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive))" (identifier) "WriteBytes" (argument_list) "(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive))" (() "(" (binary_expression) "reinterpret_cast< const char *const >(&value)" (binary_expression) "reinterpret_cast< const char *const" (identifier) "reinterpret_cast" (<) "<" (binary_expression) "const char *const" (identifier) "const" (ERROR) "char" (identifier) "char" (*) "*" (identifier) "const" (>) ">" (parenthesized_expression) "(&value)" (() "(" (pointer_expression) "&value" (&) "&" (identifier) "value" ()) ")" (,) "," (sizeof_expression) "sizeof(TPrimitive)" (sizeof) "sizeof" (parenthesized_expression) "(TPrimitive)" (() "(" (identifier) "TPrimitive" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "template< typename TPrimitive >\n SERIALISATION_FORCEINLINE" (binary_expression) "template< typename TPrimitive >\n SERIALISATION_FORCEINLINE" (binary_expression) "template< typename TPrimitive" (identifier) "template" (<) "<" (ERROR) "typename" (identifier) "typename" (identifier) "TPrimitive" (>) ">" (identifier) "SERIALISATION_FORCEINLINE" (;) "" (function_definition) "void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }" (primitive_type) "void" (function_declarator) "WritePrimitiveBlock(const TPrimitive *first, size_t count)" (identifier) "WritePrimitiveBlock" (parameter_list) "(const TPrimitive *first, size_t count)" (() "(" (parameter_declaration) "const TPrimitive *first" (type_qualifier) "const" (const) "const" (type_identifier) "TPrimitive" (pointer_declarator) "*first" (*) "*" (identifier) "first" (,) "," (parameter_declaration) "size_t count" (primitive_type) "size_t" (identifier) "count" ()) ")" (compound_statement) "{\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }" ({) "{" (declaration) "const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);" (type_qualifier) "const" (const) "const" (primitive_type) "size_t" (init_declarator) "maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive)" (identifier) "maxBlockSize" (=) "=" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "numeric_limits< size_t >::max() / sizeof(TPrimitive)" (binary_expression) "numeric_limits< size_t" (identifier) "numeric_limits" (<) "<" (identifier) "size_t" (>) ">" (ERROR) "::" (:) ":" (:) ":" (binary_expression) "max() / sizeof(TPrimitive)" (call_expression) "max()" (identifier) "max" (argument_list) "()" (() "(" ()) ")" (/) "/" (sizeof_expression) "sizeof(TPrimitive)" (sizeof) "sizeof" (parenthesized_expression) "(TPrimitive)" (() "(" (identifier) "TPrimitive" ()) ")" (;) ";" (while_statement) "while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }" (while) "while" (parenthesized_expression) "(count > 0)" (() "(" (binary_expression) "count > 0" (identifier) "count" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }" ({) "{" (declaration) "const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;" (type_qualifier) "const" (const) "const" (primitive_type) "size_t" (init_declarator) "writeBlockSize = count > maxBlockSize ? maxBlockSize : count" (identifier) "writeBlockSize" (=) "=" (conditional_expression) "count > maxBlockSize ? maxBlockSize : count" (binary_expression) "count > maxBlockSize" (identifier) "count" (>) ">" (identifier) "maxBlockSize" (?) "?" (identifier) "maxBlockSize" (:) ":" (identifier) "count" (;) ";" (expression_statement) "WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));" (call_expression) "WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive))" (identifier) "WriteBlock" (argument_list) "(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive))" (() "(" (binary_expression) "reinterpret_cast< const char *const >(first)" (binary_expression) "reinterpret_cast< const char *const" (identifier) "reinterpret_cast" (<) "<" (binary_expression) "const char *const" (identifier) "const" (ERROR) "char" (identifier) "char" (*) "*" (identifier) "const" (>) ">" (parenthesized_expression) "(first)" (() "(" (identifier) "first" ()) ")" (,) "," (binary_expression) "writeBlockSize * sizeof(TPrimitive)" (identifier) "writeBlockSize" (*) "*" (sizeof_expression) "sizeof(TPrimitive)" (sizeof) "sizeof" (parenthesized_expression) "(TPrimitive)" (() "(" (identifier) "TPrimitive" ()) ")" ()) ")" (;) ";" (expression_statement) "count -= writeBlockSize;" (assignment_expression) "count -= writeBlockSize" (identifier) "count" (-=) "-=" (identifier) "writeBlockSize" (;) ";" (expression_statement) "first += writeBlockSize;" (assignment_expression) "first += writeBlockSize" (identifier) "first" (+=) "+=" (identifier) "writeBlockSize" (;) ";" (}) "}" (}) "}" (labeled_statement) "private:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];" (statement_identifier) "private" (:) ":" (declaration) "char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];" (primitive_type) "char" (array_declarator) "mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ]" (identifier) "mWriteBuffer" ([) "[" (identifier) "SERIALISATION_SERIALISERS_BUFFERSIZE" (]) "]" (;) ";" (declaration) "StreamWriter mStreamWriter;" (type_identifier) "StreamWriter" (identifier) "mStreamWriter" (;) ";" (declaration) "uint8_t mVarIntBuffer[ 10 ];" (primitive_type) "uint8_t" (array_declarator) "mVarIntBuffer[ 10 ]" (identifier) "mVarIntBuffer" ([) "[" (number_literal) "10" (]) "]" (;) ";" (declaration) "uint32_t mWriteIndex;" (primitive_type) "uint32_t" (identifier) "mWriteIndex" (;) ";" (expression_statement) "BufferedStreamWriter &operator=(const BufferedStreamWriter &);" (binary_expression) "BufferedStreamWriter &operator=(const BufferedStreamWriter &)" (identifier) "BufferedStreamWriter" (&) "&" (assignment_expression) "operator=(const BufferedStreamWriter &)" (identifier) "operator" (=) "=" (cast_expression) "(const BufferedStreamWriter &)" (() "(" (type_descriptor) "const BufferedStreamWriter" (type_qualifier) "const" (const) "const" (type_identifier) "BufferedStreamWriter" (ERROR) "&" (&) "&" ()) ")" (identifier) "" (;) ";" (macro_type_specifier) "BufferedStreamWriter(const BufferedStreamWriter &)" (identifier) "BufferedStreamWriter" (() "(" (type_descriptor) "const BufferedStreamWriter" (type_qualifier) "const" (const) "const" (type_identifier) "BufferedStreamWriter" (ERROR) "&" (&) "&" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (preproc_ifdef) "#ifndef SERIALISATION_NO_HEADER_ONLY\n# include "../../src/bufferedStreamWriter.cpp"\n#endif" (#ifndef) "#ifndef" (identifier) "SERIALISATION_NO_HEADER_ONLY" (preproc_include) "# include "../../src/bufferedStreamWriter.cpp"\n" (#include) "# include" (string_literal) ""../../src/bufferedStreamWriter.cpp"" (") """ (string_content) "../../src/bufferedStreamWriter.cpp" (") """ (#endif) "#endif" (#endif) "#endif"
747
17
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 38.76, "nodes": 466, "errors": 0, "source_hash": "db29c707a2ffabc5a360841941b9375e3b3437da188e0eac7a930e0eb9368ff8", "categorized_nodes": 330}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef __SERIALISATION_WRITEBUFFER_H__\n#define __SERIALISATION_WRITEBUFFER_H__\n\n#include \"serialisation/streamWriter.h\"\n#include \"serialisation/defines.h\"\n\n#include <cstring>\n\nclass BufferedStreamWriter\n{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName);\n\n explicit BufferedStreamWriter(std::ofstream &stream);\n\n explicit BufferedStreamWriter(std::fstream &stream);\n\n explicit BufferedStreamWriter(std::ostream &stream);\n\n ~BufferedStreamWriter();\n\n void ClearBuffer();\n\n void Close();\n\n SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n\n SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }\n\n SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }\n\nprivate:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];\n\n StreamWriter mStreamWriter;\n\n uint8_t mVarIntBuffer[ 10 ];\n\n uint32_t mWriteIndex;\n\n BufferedStreamWriter &operator=(const BufferedStreamWriter &);\n BufferedStreamWriter(const BufferedStreamWriter &);\n};\n\n#ifndef SERIALISATION_NO_HEADER_ONLY\n# include \"../../src/bufferedStreamWriter.cpp\"\n#endif\n\n#endif", "parent": null, "children": [4, 5, 6, 9, 12, 15, 18, 458, 465], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 145, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 5, "type": "identifier", "text": "__SERIALISATION_WRITEBUFFER_H__", "parent": 3, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 39}}, {"id": 6, "type": "preproc_def", "text": "#define __SERIALISATION_WRITEBUFFER_H__\n", "parent": 3, "children": [7, 8], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 8, "type": "identifier", "text": "__SERIALISATION_WRITEBUFFER_H__", "parent": 6, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 39}}, {"id": 9, "type": "preproc_include", "text": "#include \"serialisation/streamWriter.h\"\n", "parent": 3, "children": [10, 11], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"serialisation/streamWriter.h\"", "parent": 9, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 39}}, {"id": 12, "type": "preproc_include", "text": "#include \"serialisation/defines.h\"\n", "parent": 3, "children": [13, 14], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"serialisation/defines.h\"", "parent": 12, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 34}}, {"id": 15, "type": "preproc_include", "text": "#include <cstring>\n", "parent": 3, "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": "<cstring>", "parent": 15, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 18}}, {"id": 18, "type": "function_definition", "text": "class BufferedStreamWriter\n{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName);\n\n explicit BufferedStreamWriter(std::ofstream &stream);\n\n explicit BufferedStreamWriter(std::fstream &stream);\n\n explicit BufferedStreamWriter(std::ostream &stream);\n\n ~BufferedStreamWriter();\n\n void ClearBuffer();\n\n void Close();\n\n SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n\n SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }\n\n SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }\n\nprivate:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];\n\n StreamWriter mStreamWriter;\n\n uint8_t mVarIntBuffer[ 10 ];\n\n uint32_t mWriteIndex;\n\n BufferedStreamWriter &operator=(const BufferedStreamWriter &);\n BufferedStreamWriter(const BufferedStreamWriter &);\n}", "parent": 3, "children": [19], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 19, "type": "identifier", "text": "BufferedStreamWriter", "parent": 18, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 26}}, {"id": 20, "type": "labeled_statement", "text": "public:\n\n explicit BufferedStreamWriter(const std::string &fileName);", "parent": 18, "children": [21], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 38, "column": 63}}, {"id": 21, "type": "declaration", "text": "explicit BufferedStreamWriter(const std::string &fileName);", "parent": 20, "children": [22, 23], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 63}}, {"id": 22, "type": "type_identifier", "text": "explicit", "parent": 21, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 12}}, {"id": 23, "type": "function_declarator", "text": "BufferedStreamWriter(const std::string &fileName)", "parent": 21, "children": [24, 25], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 62}}, {"id": 24, "type": "identifier", "text": "BufferedStreamWriter", "parent": 23, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 33}}, {"id": 25, "type": "parameter_list", "text": "(const std::string &fileName)", "parent": 23, "children": [26], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 62}}, {"id": 26, "type": "parameter_declaration", "text": "const std::string &fileName", "parent": 25, "children": [27, 28, 30], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 61}}, {"id": 27, "type": "type_identifier", "text": "std", "parent": 26, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 43}}, {"id": 28, "type": "ERROR", "text": "::string &", "parent": 26, "children": [29], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 53}}, {"id": 29, "type": "identifier", "text": "string", "parent": 28, "children": [], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 51}}, {"id": 30, "type": "identifier", "text": "fileName", "parent": 26, "children": [], "start_point": {"row": 38, "column": 53}, "end_point": {"row": 38, "column": 61}}, {"id": 31, "type": "declaration", "text": "explicit BufferedStreamWriter(std::ofstream &stream);", "parent": 18, "children": [32, 33], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 57}}, {"id": 32, "type": "type_identifier", "text": "explicit", "parent": 31, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 12}}, {"id": 33, "type": "function_declarator", "text": "BufferedStreamWriter(std::ofstream &stream)", "parent": 31, "children": [34, 35], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 56}}, {"id": 34, "type": "identifier", "text": "BufferedStreamWriter", "parent": 33, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 33}}, {"id": 35, "type": "parameter_list", "text": "(std::ofstream &stream)", "parent": 33, "children": [36], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 56}}, {"id": 36, "type": "parameter_declaration", "text": "std::ofstream &stream", "parent": 35, "children": [37, 38, 40], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 55}}, {"id": 37, "type": "type_identifier", "text": "std", "parent": 36, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 37}}, {"id": 38, "type": "ERROR", "text": "::ofstream &", "parent": 36, "children": [39], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 49}}, {"id": 39, "type": "identifier", "text": "ofstream", "parent": 38, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 47}}, {"id": 40, "type": "identifier", "text": "stream", "parent": 36, "children": [], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 55}}, {"id": 41, "type": "declaration", "text": "explicit BufferedStreamWriter(std::fstream &stream);", "parent": 18, "children": [42, 43], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 56}}, {"id": 42, "type": "type_identifier", "text": "explicit", "parent": 41, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 12}}, {"id": 43, "type": "function_declarator", "text": "BufferedStreamWriter(std::fstream &stream)", "parent": 41, "children": [44, 45], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 55}}, {"id": 44, "type": "identifier", "text": "BufferedStreamWriter", "parent": 43, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 33}}, {"id": 45, "type": "parameter_list", "text": "(std::fstream &stream)", "parent": 43, "children": [46], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 55}}, {"id": 46, "type": "parameter_declaration", "text": "std::fstream &stream", "parent": 45, "children": [47, 48, 50], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 54}}, {"id": 47, "type": "type_identifier", "text": "std", "parent": 46, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 37}}, {"id": 48, "type": "ERROR", "text": "::fstream &", "parent": 46, "children": [49], "start_point": {"row": 42, "column": 37}, "end_point": {"row": 42, "column": 48}}, {"id": 49, "type": "identifier", "text": "fstream", "parent": 48, "children": [], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 46}}, {"id": 50, "type": "identifier", "text": "stream", "parent": 46, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 54}}, {"id": 51, "type": "declaration", "text": "explicit BufferedStreamWriter(std::ostream &stream);", "parent": 18, "children": [52, 53], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 56}}, {"id": 52, "type": "type_identifier", "text": "explicit", "parent": 51, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 12}}, {"id": 53, "type": "function_declarator", "text": "BufferedStreamWriter(std::ostream &stream)", "parent": 51, "children": [54, 55], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 55}}, {"id": 54, "type": "identifier", "text": "BufferedStreamWriter", "parent": 53, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 33}}, {"id": 55, "type": "parameter_list", "text": "(std::ostream &stream)", "parent": 53, "children": [56], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 55}}, {"id": 56, "type": "parameter_declaration", "text": "std::ostream &stream", "parent": 55, "children": [57, 58, 60], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 54}}, {"id": 57, "type": "type_identifier", "text": "std", "parent": 56, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 37}}, {"id": 58, "type": "ERROR", "text": "::ostream &", "parent": 56, "children": [59], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 48}}, {"id": 59, "type": "identifier", "text": "ostream", "parent": 58, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 46}}, {"id": 60, "type": "identifier", "text": "stream", "parent": 56, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 54}}, {"id": 61, "type": "unary_expression", "text": "~BufferedStreamWriter()", "parent": 18, "children": [62, 63], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 27}}, {"id": 62, "type": "~", "text": "~", "parent": 61, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 63, "type": "call_expression", "text": "BufferedStreamWriter()", "parent": 61, "children": [64, 65], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 27}}, {"id": 64, "type": "identifier", "text": "BufferedStreamWriter", "parent": 63, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 25}}, {"id": 65, "type": "argument_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 27}}, {"id": 66, "type": "declaration", "text": "void ClearBuffer();", "parent": 18, "children": [67, 68], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 23}}, {"id": 67, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 8}}, {"id": 68, "type": "function_declarator", "text": "ClearBuffer()", "parent": 66, "children": [69, 70], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 22}}, {"id": 69, "type": "identifier", "text": "ClearBuffer", "parent": 68, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 20}}, {"id": 70, "type": "parameter_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 22}}, {"id": 71, "type": "declaration", "text": "void Close();", "parent": 18, "children": [72, 73], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 17}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 73, "type": "function_declarator", "text": "Close()", "parent": 71, "children": [74, 75], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 16}}, {"id": 74, "type": "identifier", "text": "Close", "parent": 73, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 14}}, {"id": 75, "type": "parameter_list", "text": "()", "parent": 73, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 16}}, {"id": 76, "type": "function_definition", "text": "SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }", "parent": 18, "children": [77, 78, 80], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 73, "column": 5}}, {"id": 77, "type": "type_identifier", "text": "SERIALISATION_FORCEINLINE", "parent": 76, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 29}}, {"id": 78, "type": "ERROR", "text": "void", "parent": 76, "children": [79], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 34}}, {"id": 79, "type": "identifier", "text": "void", "parent": 78, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 34}}, {"id": 80, "type": "function_declarator", "text": "WriteBytes(const char *const firstByte, size_t byteCount)", "parent": 76, "children": [81, 82], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 92}}, {"id": 81, "type": "identifier", "text": "WriteBytes", "parent": 80, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 45}}, {"id": 82, "type": "parameter_list", "text": "(const char *const firstByte, size_t byteCount)", "parent": 80, "children": [83, 88], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 92}}, {"id": 83, "type": "parameter_declaration", "text": "const char *const firstByte", "parent": 82, "children": [84, 85], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 73}}, {"id": 84, "type": "primitive_type", "text": "char", "parent": 83, "children": [], "start_point": {"row": 52, "column": 52}, "end_point": {"row": 52, "column": 56}}, {"id": 85, "type": "pointer_declarator", "text": "*const firstByte", "parent": 83, "children": [86, 87], "start_point": {"row": 52, "column": 57}, "end_point": {"row": 52, "column": 73}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 52, "column": 57}, "end_point": {"row": 52, "column": 58}}, {"id": 87, "type": "identifier", "text": "firstByte", "parent": 85, "children": [], "start_point": {"row": 52, "column": 64}, "end_point": {"row": 52, "column": 73}}, {"id": 88, "type": "parameter_declaration", "text": "size_t byteCount", "parent": 82, "children": [89, 90], "start_point": {"row": 52, "column": 75}, "end_point": {"row": 52, "column": 91}}, {"id": 89, "type": "primitive_type", "text": "size_t", "parent": 88, "children": [], "start_point": {"row": 52, "column": 75}, "end_point": {"row": 52, "column": 81}}, {"id": 90, "type": "identifier", "text": "byteCount", "parent": 88, "children": [], "start_point": {"row": 52, "column": 82}, "end_point": {"row": 52, "column": 91}}, {"id": 91, "type": "declaration", "text": "uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;", "parent": 76, "children": [92, 93], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 75}}, {"id": 92, "type": "primitive_type", "text": "uint32_t", "parent": 91, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 16}}, {"id": 93, "type": "init_declarator", "text": "diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex", "parent": 91, "children": [94, 95, 96], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 74}}, {"id": 94, "type": "identifier", "text": "diff", "parent": 93, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 21}}, {"id": 95, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 23}}, {"id": 96, "type": "binary_expression", "text": "SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex", "parent": 93, "children": [97, 98, 99], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 74}}, {"id": 97, "type": "identifier", "text": "SERIALISATION_SERIALISERS_BUFFERSIZE", "parent": 96, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 60}}, {"id": 98, "type": "-", "text": "-", "parent": 96, "children": [], "start_point": {"row": 54, "column": 61}, "end_point": {"row": 54, "column": 62}}, {"id": 99, "type": "identifier", "text": "mWriteIndex", "parent": 96, "children": [], "start_point": {"row": 54, "column": 63}, "end_point": {"row": 54, "column": 74}}, {"id": 100, "type": "declaration", "text": "const char *c = firstByte;", "parent": 76, "children": [101, 102], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 101, "type": "primitive_type", "text": "char", "parent": 100, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 18}}, {"id": 102, "type": "init_declarator", "text": "*c = firstByte", "parent": 100, "children": [103, 106, 107], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 33}}, {"id": 103, "type": "pointer_declarator", "text": "*c", "parent": 102, "children": [104, 105], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 21}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 20}}, {"id": 105, "type": "identifier", "text": "c", "parent": 103, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 106, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 23}}, {"id": 107, "type": "identifier", "text": "firstByte", "parent": 102, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 33}}, {"id": 108, "type": "while_statement", "text": "while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }", "parent": 76, "children": [109], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 109, "type": "parenthesized_expression", "text": "(diff < byteCount)", "parent": 108, "children": [110], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 32}}, {"id": 110, "type": "binary_expression", "text": "diff < byteCount", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 31}}, {"id": 111, "type": "identifier", "text": "diff", "parent": 110, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 19}}, {"id": 112, "type": "<", "text": "<", "parent": 110, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 21}}, {"id": 113, "type": "identifier", "text": "byteCount", "parent": 110, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 31}}, {"id": 114, "type": "call_expression", "text": "memcpy(mWriteBuffer + mWriteIndex, c, diff)", "parent": 108, "children": [115, 116], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 55}}, {"id": 115, "type": "identifier", "text": "memcpy", "parent": 114, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 18}}, {"id": 116, "type": "argument_list", "text": "(mWriteBuffer + mWriteIndex, c, diff)", "parent": 114, "children": [117, 121, 122], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 55}}, {"id": 117, "type": "binary_expression", "text": "mWriteBuffer + mWriteIndex", "parent": 116, "children": [118, 119, 120], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 45}}, {"id": 118, "type": "identifier", "text": "mWriteBuffer", "parent": 117, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 31}}, {"id": 119, "type": "+", "text": "+", "parent": 117, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 33}}, {"id": 120, "type": "identifier", "text": "mWriteIndex", "parent": 117, "children": [], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 45}}, {"id": 121, "type": "identifier", "text": "c", "parent": 116, "children": [], "start_point": {"row": 60, "column": 47}, "end_point": {"row": 60, "column": 48}}, {"id": 122, "type": "identifier", "text": "diff", "parent": 116, "children": [], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 54}}, {"id": 123, "type": "assignment_expression", "text": "mWriteIndex += diff", "parent": 108, "children": [124, 125, 126], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 31}}, {"id": 124, "type": "identifier", "text": "mWriteIndex", "parent": 123, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 23}}, {"id": 125, "type": "+=", "text": "+=", "parent": 123, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 26}}, {"id": 126, "type": "identifier", "text": "diff", "parent": 123, "children": [], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 31}}, {"id": 127, "type": "assignment_expression", "text": "c += diff", "parent": 108, "children": [128, 129, 130], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 21}}, {"id": 128, "type": "identifier", "text": "c", "parent": 127, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 13}}, {"id": 129, "type": "+=", "text": "+=", "parent": 127, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 16}}, {"id": 130, "type": "identifier", "text": "diff", "parent": 127, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 21}}, {"id": 131, "type": "assignment_expression", "text": "byteCount -= diff", "parent": 108, "children": [132, 133, 134], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 29}}, {"id": 132, "type": "identifier", "text": "byteCount", "parent": 131, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 21}}, {"id": 133, "type": "-=", "text": "-=", "parent": 131, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 24}}, {"id": 134, "type": "identifier", "text": "diff", "parent": 131, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 29}}, {"id": 135, "type": "call_expression", "text": "ClearBuffer()", "parent": 108, "children": [136, 137], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 25}}, {"id": 136, "type": "identifier", "text": "ClearBuffer", "parent": 135, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 23}}, {"id": 137, "type": "argument_list", "text": "()", "parent": 135, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 25}}, {"id": 138, "type": "assignment_expression", "text": "diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex", "parent": 108, "children": [139, 140, 141], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 69}}, {"id": 139, "type": "identifier", "text": "diff", "parent": 138, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 16}}, {"id": 140, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 18}}, {"id": 141, "type": "binary_expression", "text": "SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex", "parent": 138, "children": [142, 143, 144], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 69}}, {"id": 142, "type": "identifier", "text": "SERIALISATION_SERIALISERS_BUFFERSIZE", "parent": 141, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 55}}, {"id": 143, "type": "-", "text": "-", "parent": 141, "children": [], "start_point": {"row": 68, "column": 56}, "end_point": {"row": 68, "column": 57}}, {"id": 144, "type": "identifier", "text": "mWriteIndex", "parent": 141, "children": [], "start_point": {"row": 68, "column": 58}, "end_point": {"row": 68, "column": 69}}, {"id": 145, "type": "call_expression", "text": "memcpy(mWriteBuffer + mWriteIndex, c, byteCount)", "parent": 76, "children": [146, 147], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 56}}, {"id": 146, "type": "identifier", "text": "memcpy", "parent": 145, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 147, "type": "argument_list", "text": "(mWriteBuffer + mWriteIndex, c, byteCount)", "parent": 145, "children": [148, 152, 153], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 56}}, {"id": 148, "type": "binary_expression", "text": "mWriteBuffer + mWriteIndex", "parent": 147, "children": [149, 150, 151], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 41}}, {"id": 149, "type": "identifier", "text": "mWriteBuffer", "parent": 148, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 27}}, {"id": 150, "type": "+", "text": "+", "parent": 148, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 29}}, {"id": 151, "type": "identifier", "text": "mWriteIndex", "parent": 148, "children": [], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 41}}, {"id": 152, "type": "identifier", "text": "c", "parent": 147, "children": [], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 44}}, {"id": 153, "type": "identifier", "text": "byteCount", "parent": 147, "children": [], "start_point": {"row": 71, "column": 46}, "end_point": {"row": 71, "column": 55}}, {"id": 154, "type": "assignment_expression", "text": "mWriteIndex += static_cast<uint32_t>(byteCount)", "parent": 76, "children": [155, 156, 157], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 55}}, {"id": 155, "type": "identifier", "text": "mWriteIndex", "parent": 154, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 19}}, {"id": 156, "type": "+=", "text": "+=", "parent": 154, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 22}}, {"id": 157, "type": "binary_expression", "text": "static_cast<uint32_t>(byteCount)", "parent": 154, "children": [158, 162, 163], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 55}}, {"id": 158, "type": "binary_expression", "text": "static_cast<uint32_t", "parent": 157, "children": [159, 160, 161], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 43}}, {"id": 159, "type": "identifier", "text": "static_cast", "parent": 158, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 34}}, {"id": 160, "type": "<", "text": "<", "parent": 158, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 35}}, {"id": 161, "type": "identifier", "text": "uint32_t", "parent": 158, "children": [], "start_point": {"row": 72, "column": 35}, "end_point": {"row": 72, "column": 43}}, {"id": 162, "type": ">", "text": ">", "parent": 157, "children": [], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 44}}, {"id": 163, "type": "parenthesized_expression", "text": "(byteCount)", "parent": 157, "children": [164], "start_point": {"row": 72, "column": 44}, "end_point": {"row": 72, "column": 55}}, {"id": 164, "type": "identifier", "text": "byteCount", "parent": 163, "children": [], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 54}}, {"id": 165, "type": "function_definition", "text": "SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }", "parent": 18, "children": [166, 167, 169], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 90, "column": 5}}, {"id": 166, "type": "type_identifier", "text": "SERIALISATION_FORCEINLINE", "parent": 165, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 29}}, {"id": 167, "type": "ERROR", "text": "void", "parent": 165, "children": [168], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 34}}, {"id": 168, "type": "identifier", "text": "void", "parent": 167, "children": [], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 34}}, {"id": 169, "type": "function_declarator", "text": "WriteBlock(const char *const firstByte, size_t byteCount)", "parent": 165, "children": [170, 171], "start_point": {"row": 75, "column": 35}, "end_point": {"row": 75, "column": 92}}, {"id": 170, "type": "identifier", "text": "WriteBlock", "parent": 169, "children": [], "start_point": {"row": 75, "column": 35}, "end_point": {"row": 75, "column": 45}}, {"id": 171, "type": "parameter_list", "text": "(const char *const firstByte, size_t byteCount)", "parent": 169, "children": [172, 177], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 92}}, {"id": 172, "type": "parameter_declaration", "text": "const char *const firstByte", "parent": 171, "children": [173, 174], "start_point": {"row": 75, "column": 46}, "end_point": {"row": 75, "column": 73}}, {"id": 173, "type": "primitive_type", "text": "char", "parent": 172, "children": [], "start_point": {"row": 75, "column": 52}, "end_point": {"row": 75, "column": 56}}, {"id": 174, "type": "pointer_declarator", "text": "*const firstByte", "parent": 172, "children": [175, 176], "start_point": {"row": 75, "column": 57}, "end_point": {"row": 75, "column": 73}}, {"id": 175, "type": "*", "text": "*", "parent": 174, "children": [], "start_point": {"row": 75, "column": 57}, "end_point": {"row": 75, "column": 58}}, {"id": 176, "type": "identifier", "text": "firstByte", "parent": 174, "children": [], "start_point": {"row": 75, "column": 64}, "end_point": {"row": 75, "column": 73}}, {"id": 177, "type": "parameter_declaration", "text": "size_t byteCount", "parent": 171, "children": [178, 179], "start_point": {"row": 75, "column": 75}, "end_point": {"row": 75, "column": 91}}, {"id": 178, "type": "primitive_type", "text": "size_t", "parent": 177, "children": [], "start_point": {"row": 75, "column": 75}, "end_point": {"row": 75, "column": 81}}, {"id": 179, "type": "identifier", "text": "byteCount", "parent": 177, "children": [], "start_point": {"row": 75, "column": 82}, "end_point": {"row": 75, "column": 91}}, {"id": 180, "type": "declaration", "text": "uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;", "parent": 165, "children": [181, 182], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 75}}, {"id": 181, "type": "primitive_type", "text": "uint32_t", "parent": 180, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 16}}, {"id": 182, "type": "init_declarator", "text": "diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex", "parent": 180, "children": [183, 184, 185], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 74}}, {"id": 183, "type": "identifier", "text": "diff", "parent": 182, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 21}}, {"id": 184, "type": "=", "text": "=", "parent": 182, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 23}}, {"id": 185, "type": "binary_expression", "text": "SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex", "parent": 182, "children": [186, 187, 188], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 74}}, {"id": 186, "type": "identifier", "text": "SERIALISATION_SERIALISERS_BUFFERSIZE", "parent": 185, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 60}}, {"id": 187, "type": "-", "text": "-", "parent": 185, "children": [], "start_point": {"row": 77, "column": 61}, "end_point": {"row": 77, "column": 62}}, {"id": 188, "type": "identifier", "text": "mWriteIndex", "parent": 185, "children": [], "start_point": {"row": 77, "column": 63}, "end_point": {"row": 77, "column": 74}}, {"id": 189, "type": "if_statement", "text": "if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }", "parent": 165, "children": [190, 215], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 190, "type": "parenthesized_expression", "text": "(byteCount < diff)", "parent": 189, "children": [191], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 29}}, {"id": 191, "type": "binary_expression", "text": "byteCount < diff", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 28}}, {"id": 192, "type": "identifier", "text": "byteCount", "parent": 191, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 21}}, {"id": 193, "type": "<", "text": "<", "parent": 191, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 23}}, {"id": 194, "type": "identifier", "text": "diff", "parent": 191, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 28}}, {"id": 195, "type": "call_expression", "text": "memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount)", "parent": 189, "children": [196, 197], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 68}}, {"id": 196, "type": "identifier", "text": "memcpy", "parent": 195, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 18}}, {"id": 197, "type": "argument_list", "text": "(mWriteBuffer + mWriteIndex, firstByte, byteCount)", "parent": 195, "children": [198, 202, 203], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 68}}, {"id": 198, "type": "binary_expression", "text": "mWriteBuffer + mWriteIndex", "parent": 197, "children": [199, 200, 201], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 45}}, {"id": 199, "type": "identifier", "text": "mWriteBuffer", "parent": 198, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 31}}, {"id": 200, "type": "+", "text": "+", "parent": 198, "children": [], "start_point": {"row": 81, "column": 32}, "end_point": {"row": 81, "column": 33}}, {"id": 201, "type": "identifier", "text": "mWriteIndex", "parent": 198, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 45}}, {"id": 202, "type": "identifier", "text": "firstByte", "parent": 197, "children": [], "start_point": {"row": 81, "column": 47}, "end_point": {"row": 81, "column": 56}}, {"id": 203, "type": "identifier", "text": "byteCount", "parent": 197, "children": [], "start_point": {"row": 81, "column": 58}, "end_point": {"row": 81, "column": 67}}, {"id": 204, "type": "assignment_expression", "text": "mWriteIndex += static_cast<uint32_t>(byteCount)", "parent": 189, "children": [205, 206, 207], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 59}}, {"id": 205, "type": "identifier", "text": "mWriteIndex", "parent": 204, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 23}}, {"id": 206, "type": "+=", "text": "+=", "parent": 204, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 26}}, {"id": 207, "type": "binary_expression", "text": "static_cast<uint32_t>(byteCount)", "parent": 204, "children": [208, 212, 213], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 59}}, {"id": 208, "type": "binary_expression", "text": "static_cast<uint32_t", "parent": 207, "children": [209, 210, 211], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 47}}, {"id": 209, "type": "identifier", "text": "static_cast", "parent": 208, "children": [], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 38}}, {"id": 210, "type": "<", "text": "<", "parent": 208, "children": [], "start_point": {"row": 82, "column": 38}, "end_point": {"row": 82, "column": 39}}, {"id": 211, "type": "identifier", "text": "uint32_t", "parent": 208, "children": [], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 47}}, {"id": 212, "type": ">", "text": ">", "parent": 207, "children": [], "start_point": {"row": 82, "column": 47}, "end_point": {"row": 82, "column": 48}}, {"id": 213, "type": "parenthesized_expression", "text": "(byteCount)", "parent": 207, "children": [214], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 59}}, {"id": 214, "type": "identifier", "text": "byteCount", "parent": 213, "children": [], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 58}}, {"id": 215, "type": "else_clause", "text": "else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }", "parent": 189, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 216, "type": "call_expression", "text": "ClearBuffer()", "parent": 215, "children": [217, 218], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 25}}, {"id": 217, "type": "identifier", "text": "ClearBuffer", "parent": 216, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 23}}, {"id": 218, "type": "argument_list", "text": "()", "parent": 216, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 25}}, {"id": 219, "type": "call_expression", "text": "mStreamWriter.WriteBytes(firstByte, byteCount)", "parent": 215, "children": [220, 223], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 58}}, {"id": 220, "type": "field_expression", "text": "mStreamWriter.WriteBytes", "parent": 219, "children": [221, 222], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 36}}, {"id": 221, "type": "identifier", "text": "mStreamWriter", "parent": 220, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 25}}, {"id": 222, "type": "field_identifier", "text": "WriteBytes", "parent": 220, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 36}}, {"id": 223, "type": "argument_list", "text": "(firstByte, byteCount)", "parent": 219, "children": [224, 225], "start_point": {"row": 88, "column": 36}, "end_point": {"row": 88, "column": 58}}, {"id": 224, "type": "identifier", "text": "firstByte", "parent": 223, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 46}}, {"id": 225, "type": "identifier", "text": "byteCount", "parent": 223, "children": [], "start_point": {"row": 88, "column": 48}, "end_point": {"row": 88, "column": 57}}, {"id": 226, "type": "function_definition", "text": "SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }", "parent": 18, "children": [227, 228, 230], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 104, "column": 5}}, {"id": 227, "type": "type_identifier", "text": "SERIALISATION_FORCEINLINE", "parent": 226, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 29}}, {"id": 228, "type": "ERROR", "text": "void", "parent": 226, "children": [229], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 34}}, {"id": 229, "type": "identifier", "text": "void", "parent": 228, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 34}}, {"id": 230, "type": "function_declarator", "text": "WriteSize(size_t size)", "parent": 226, "children": [231, 232], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 57}}, {"id": 231, "type": "identifier", "text": "WriteSize", "parent": 230, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 44}}, {"id": 232, "type": "parameter_list", "text": "(size_t size)", "parent": 230, "children": [233], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 57}}, {"id": 233, "type": "parameter_declaration", "text": "size_t size", "parent": 232, "children": [234, 235], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 56}}, {"id": 234, "type": "primitive_type", "text": "size_t", "parent": 233, "children": [], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 51}}, {"id": 235, "type": "identifier", "text": "size", "parent": 233, "children": [], "start_point": {"row": 92, "column": 52}, "end_point": {"row": 92, "column": 56}}, {"id": 236, "type": "declaration", "text": "uint8_t bufferIndex;", "parent": 226, "children": [237, 238], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 28}}, {"id": 237, "type": "primitive_type", "text": "uint8_t", "parent": 236, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 15}}, {"id": 238, "type": "identifier", "text": "bufferIndex", "parent": 236, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 27}}, {"id": 239, "type": "for_statement", "text": "for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }", "parent": 226, "children": [240, 244, 248], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 99, "column": 9}}, {"id": 240, "type": "assignment_expression", "text": "bufferIndex = 0", "parent": 239, "children": [241, 242, 243], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 28}}, {"id": 241, "type": "identifier", "text": "bufferIndex", "parent": 240, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 24}}, {"id": 242, "type": "=", "text": "=", "parent": 240, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 26}}, {"id": 243, "type": "number_literal", "text": "0", "parent": 240, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 28}}, {"id": 244, "type": "binary_expression", "text": "size >= 0x80", "parent": 239, "children": [245, 246, 247], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 42}}, {"id": 245, "type": "identifier", "text": "size", "parent": 244, "children": [], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 34}}, {"id": 246, "type": ">=", "text": ">=", "parent": 244, "children": [], "start_point": {"row": 96, "column": 35}, "end_point": {"row": 96, "column": 37}}, {"id": 247, "type": "number_literal", "text": "0x80", "parent": 244, "children": [], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 42}}, {"id": 248, "type": "comma_expression", "text": "size >>= 7, bufferIndex++", "parent": 239, "children": [249, 253], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 69}}, {"id": 249, "type": "assignment_expression", "text": "size >>= 7", "parent": 248, "children": [250, 251, 252], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 54}}, {"id": 250, "type": "identifier", "text": "size", "parent": 249, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 48}}, {"id": 251, "type": ">>=", "text": ">>=", "parent": 249, "children": [], "start_point": {"row": 96, "column": 49}, "end_point": {"row": 96, "column": 52}}, {"id": 252, "type": "number_literal", "text": "7", "parent": 249, "children": [], "start_point": {"row": 96, "column": 53}, "end_point": {"row": 96, "column": 54}}, {"id": 253, "type": "update_expression", "text": "bufferIndex++", "parent": 248, "children": [254, 255], "start_point": {"row": 96, "column": 56}, "end_point": {"row": 96, "column": 69}}, {"id": 254, "type": "identifier", "text": "bufferIndex", "parent": 253, "children": [], "start_point": {"row": 96, "column": 56}, "end_point": {"row": 96, "column": 67}}, {"id": 255, "type": "++", "text": "++", "parent": 253, "children": [], "start_point": {"row": 96, "column": 67}, "end_point": {"row": 96, "column": 69}}, {"id": 256, "type": "assignment_expression", "text": "mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80)", "parent": 239, "children": [257, 260, 261], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 83}}, {"id": 257, "type": "subscript_expression", "text": "mVarIntBuffer[bufferIndex]", "parent": 256, "children": [258, 259], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 38}}, {"id": 258, "type": "identifier", "text": "mVarIntBuffer", "parent": 257, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 25}}, {"id": 259, "type": "identifier", "text": "bufferIndex", "parent": 257, "children": [], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 37}}, {"id": 260, "type": "=", "text": "=", "parent": 256, "children": [], "start_point": {"row": 98, "column": 39}, "end_point": {"row": 98, "column": 40}}, {"id": 261, "type": "binary_expression", "text": "static_cast<uint8_t>((size & 0x7F) | 0x80)", "parent": 256, "children": [262, 266, 267], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 83}}, {"id": 262, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 261, "children": [263, 264, 265], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 60}}, {"id": 263, "type": "identifier", "text": "static_cast", "parent": 262, "children": [], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 52}}, {"id": 264, "type": "<", "text": "<", "parent": 262, "children": [], "start_point": {"row": 98, "column": 52}, "end_point": {"row": 98, "column": 53}}, {"id": 265, "type": "identifier", "text": "uint8_t", "parent": 262, "children": [], "start_point": {"row": 98, "column": 53}, "end_point": {"row": 98, "column": 60}}, {"id": 266, "type": ">", "text": ">", "parent": 261, "children": [], "start_point": {"row": 98, "column": 60}, "end_point": {"row": 98, "column": 61}}, {"id": 267, "type": "parenthesized_expression", "text": "((size & 0x7F) | 0x80)", "parent": 261, "children": [268], "start_point": {"row": 98, "column": 61}, "end_point": {"row": 98, "column": 83}}, {"id": 268, "type": "binary_expression", "text": "(size & 0x7F) | 0x80", "parent": 267, "children": [269, 273], "start_point": {"row": 98, "column": 62}, "end_point": {"row": 98, "column": 82}}, {"id": 269, "type": "parenthesized_expression", "text": "(size & 0x7F)", "parent": 268, "children": [270], "start_point": {"row": 98, "column": 62}, "end_point": {"row": 98, "column": 75}}, {"id": 270, "type": "binary_expression", "text": "size & 0x7F", "parent": 269, "children": [271, 272], "start_point": {"row": 98, "column": 63}, "end_point": {"row": 98, "column": 74}}, {"id": 271, "type": "identifier", "text": "size", "parent": 270, "children": [], "start_point": {"row": 98, "column": 63}, "end_point": {"row": 98, "column": 67}}, {"id": 272, "type": "number_literal", "text": "0x7F", "parent": 270, "children": [], "start_point": {"row": 98, "column": 70}, "end_point": {"row": 98, "column": 74}}, {"id": 273, "type": "number_literal", "text": "0x80", "parent": 268, "children": [], "start_point": {"row": 98, "column": 78}, "end_point": {"row": 98, "column": 82}}, {"id": 274, "type": "assignment_expression", "text": "mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size)", "parent": 226, "children": [275, 278, 279], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 63}}, {"id": 275, "type": "subscript_expression", "text": "mVarIntBuffer[bufferIndex]", "parent": 274, "children": [276, 277], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 34}}, {"id": 276, "type": "identifier", "text": "mVarIntBuffer", "parent": 275, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 21}}, {"id": 277, "type": "identifier", "text": "bufferIndex", "parent": 275, "children": [], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 33}}, {"id": 278, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 101, "column": 35}, "end_point": {"row": 101, "column": 36}}, {"id": 279, "type": "binary_expression", "text": "static_cast<uint8_t>(size)", "parent": 274, "children": [280, 284, 285], "start_point": {"row": 101, "column": 37}, "end_point": {"row": 101, "column": 63}}, {"id": 280, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 279, "children": [281, 282, 283], "start_point": {"row": 101, "column": 37}, "end_point": {"row": 101, "column": 56}}, {"id": 281, "type": "identifier", "text": "static_cast", "parent": 280, "children": [], "start_point": {"row": 101, "column": 37}, "end_point": {"row": 101, "column": 48}}, {"id": 282, "type": "<", "text": "<", "parent": 280, "children": [], "start_point": {"row": 101, "column": 48}, "end_point": {"row": 101, "column": 49}}, {"id": 283, "type": "identifier", "text": "uint8_t", "parent": 280, "children": [], "start_point": {"row": 101, "column": 49}, "end_point": {"row": 101, "column": 56}}, {"id": 284, "type": ">", "text": ">", "parent": 279, "children": [], "start_point": {"row": 101, "column": 56}, "end_point": {"row": 101, "column": 57}}, {"id": 285, "type": "parenthesized_expression", "text": "(size)", "parent": 279, "children": [286], "start_point": {"row": 101, "column": 57}, "end_point": {"row": 101, "column": 63}}, {"id": 286, "type": "identifier", "text": "size", "parent": 285, "children": [], "start_point": {"row": 101, "column": 58}, "end_point": {"row": 101, "column": 62}}, {"id": 287, "type": "call_expression", "text": "WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex)", "parent": 226, "children": [288, 289], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 74}}, {"id": 288, "type": "identifier", "text": "WriteBytes", "parent": 287, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 18}}, {"id": 289, "type": "argument_list", "text": "(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex)", "parent": 287, "children": [290, 300], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 74}}, {"id": 290, "type": "binary_expression", "text": "reinterpret_cast<char *>(mVarIntBuffer)", "parent": 289, "children": [291, 295, 297, 298], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 58}}, {"id": 291, "type": "binary_expression", "text": "reinterpret_cast<char", "parent": 290, "children": [292, 293, 294], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 40}}, {"id": 292, "type": "identifier", "text": "reinterpret_cast", "parent": 291, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 35}}, {"id": 293, "type": "<", "text": "<", "parent": 291, "children": [], "start_point": {"row": 103, "column": 35}, "end_point": {"row": 103, "column": 36}}, {"id": 294, "type": "identifier", "text": "char", "parent": 291, "children": [], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 40}}, {"id": 295, "type": "ERROR", "text": "*", "parent": 290, "children": [296], "start_point": {"row": 103, "column": 41}, "end_point": {"row": 103, "column": 42}}, {"id": 296, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 103, "column": 41}, "end_point": {"row": 103, "column": 42}}, {"id": 297, "type": ">", "text": ">", "parent": 290, "children": [], "start_point": {"row": 103, "column": 42}, "end_point": {"row": 103, "column": 43}}, {"id": 298, "type": "parenthesized_expression", "text": "(mVarIntBuffer)", "parent": 290, "children": [299], "start_point": {"row": 103, "column": 43}, "end_point": {"row": 103, "column": 58}}, {"id": 299, "type": "identifier", "text": "mVarIntBuffer", "parent": 298, "children": [], "start_point": {"row": 103, "column": 44}, "end_point": {"row": 103, "column": 57}}, {"id": 300, "type": "update_expression", "text": "++bufferIndex", "parent": 289, "children": [301, 302], "start_point": {"row": 103, "column": 60}, "end_point": {"row": 103, "column": 73}}, {"id": 301, "type": "++", "text": "++", "parent": 300, "children": [], "start_point": {"row": 103, "column": 60}, "end_point": {"row": 103, "column": 62}}, {"id": 302, "type": "identifier", "text": "bufferIndex", "parent": 300, "children": [], "start_point": {"row": 103, "column": 62}, "end_point": {"row": 103, "column": 73}}, {"id": 303, "type": "binary_expression", "text": "template< typename TPrimitive >\n SERIALISATION_FORCEINLINE", "parent": 18, "children": [304, 310, 311], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 107, "column": 29}}, {"id": 304, "type": "binary_expression", "text": "template< typename TPrimitive", "parent": 303, "children": [305, 306, 307, 309], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 33}}, {"id": 305, "type": "identifier", "text": "template", "parent": 304, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 12}}, {"id": 306, "type": "<", "text": "<", "parent": 304, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 13}}, {"id": 307, "type": "ERROR", "text": "typename", "parent": 304, "children": [308], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 22}}, {"id": 308, "type": "identifier", "text": "typename", "parent": 307, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 22}}, {"id": 309, "type": "identifier", "text": "TPrimitive", "parent": 304, "children": [], "start_point": {"row": 106, "column": 23}, "end_point": {"row": 106, "column": 33}}, {"id": 310, "type": ">", "text": ">", "parent": 303, "children": [], "start_point": {"row": 106, "column": 34}, "end_point": {"row": 106, "column": 35}}, {"id": 311, "type": "identifier", "text": "SERIALISATION_FORCEINLINE", "parent": 303, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 29}}, {"id": 312, "type": "function_definition", "text": "void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }", "parent": 18, "children": [313, 314], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 110, "column": 5}}, {"id": 313, "type": "primitive_type", "text": "void", "parent": 312, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 34}}, {"id": 314, "type": "function_declarator", "text": "WritePrimitive(const TPrimitive &value)", "parent": 312, "children": [315, 316], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 74}}, {"id": 315, "type": "identifier", "text": "WritePrimitive", "parent": 314, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 49}}, {"id": 316, "type": "parameter_list", "text": "(const TPrimitive &value)", "parent": 314, "children": [317], "start_point": {"row": 107, "column": 49}, "end_point": {"row": 107, "column": 74}}, {"id": 317, "type": "parameter_declaration", "text": "const TPrimitive &value", "parent": 316, "children": [318, 319], "start_point": {"row": 107, "column": 50}, "end_point": {"row": 107, "column": 73}}, {"id": 318, "type": "type_identifier", "text": "TPrimitive", "parent": 317, "children": [], "start_point": {"row": 107, "column": 56}, "end_point": {"row": 107, "column": 66}}, {"id": 319, "type": "identifier", "text": "value", "parent": 317, "children": [], "start_point": {"row": 107, "column": 68}, "end_point": {"row": 107, "column": 73}}, {"id": 320, "type": "call_expression", "text": "WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive))", "parent": 312, "children": [321, 322], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 85}}, {"id": 321, "type": "identifier", "text": "WriteBytes", "parent": 320, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 18}}, {"id": 322, "type": "argument_list", "text": "(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive))", "parent": 320, "children": [323, 335], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 85}}, {"id": 323, "type": "binary_expression", "text": "reinterpret_cast< const char *const >(&value)", "parent": 322, "children": [324, 331, 332], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 64}}, {"id": 324, "type": "binary_expression", "text": "reinterpret_cast< const char *const", "parent": 323, "children": [325, 326, 327], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 54}}, {"id": 325, "type": "identifier", "text": "reinterpret_cast", "parent": 324, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 35}}, {"id": 326, "type": "<", "text": "<", "parent": 324, "children": [], "start_point": {"row": 109, "column": 35}, "end_point": {"row": 109, "column": 36}}, {"id": 327, "type": "binary_expression", "text": "const char *const", "parent": 324, "children": [328, 330], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 54}}, {"id": 328, "type": "ERROR", "text": "char", "parent": 327, "children": [329], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 47}}, {"id": 329, "type": "identifier", "text": "char", "parent": 328, "children": [], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 47}}, {"id": 330, "type": "*", "text": "*", "parent": 327, "children": [], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 49}}, {"id": 331, "type": ">", "text": ">", "parent": 323, "children": [], "start_point": {"row": 109, "column": 55}, "end_point": {"row": 109, "column": 56}}, {"id": 332, "type": "parenthesized_expression", "text": "(&value)", "parent": 323, "children": [333], "start_point": {"row": 109, "column": 56}, "end_point": {"row": 109, "column": 64}}, {"id": 333, "type": "pointer_expression", "text": "&value", "parent": 332, "children": [334], "start_point": {"row": 109, "column": 57}, "end_point": {"row": 109, "column": 63}}, {"id": 334, "type": "identifier", "text": "value", "parent": 333, "children": [], "start_point": {"row": 109, "column": 58}, "end_point": {"row": 109, "column": 63}}, {"id": 335, "type": "sizeof_expression", "text": "sizeof(TPrimitive)", "parent": 322, "children": [336], "start_point": {"row": 109, "column": 66}, "end_point": {"row": 109, "column": 84}}, {"id": 336, "type": "parenthesized_expression", "text": "(TPrimitive)", "parent": 335, "children": [337], "start_point": {"row": 109, "column": 72}, "end_point": {"row": 109, "column": 84}}, {"id": 337, "type": "identifier", "text": "TPrimitive", "parent": 336, "children": [], "start_point": {"row": 109, "column": 73}, "end_point": {"row": 109, "column": 83}}, {"id": 338, "type": "binary_expression", "text": "template< typename TPrimitive >\n SERIALISATION_FORCEINLINE", "parent": 18, "children": [339, 345, 346], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 113, "column": 29}}, {"id": 339, "type": "binary_expression", "text": "template< typename TPrimitive", "parent": 338, "children": [340, 341, 342, 344], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 33}}, {"id": 340, "type": "identifier", "text": "template", "parent": 339, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 12}}, {"id": 341, "type": "<", "text": "<", "parent": 339, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 13}}, {"id": 342, "type": "ERROR", "text": "typename", "parent": 339, "children": [343], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 22}}, {"id": 343, "type": "identifier", "text": "typename", "parent": 342, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 22}}, {"id": 344, "type": "identifier", "text": "TPrimitive", "parent": 339, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 33}}, {"id": 345, "type": ">", "text": ">", "parent": 338, "children": [], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 35}}, {"id": 346, "type": "identifier", "text": "SERIALISATION_FORCEINLINE", "parent": 338, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 29}}, {"id": 347, "type": "function_definition", "text": "void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }", "parent": 18, "children": [348, 349], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 125, "column": 5}}, {"id": 348, "type": "primitive_type", "text": "void", "parent": 347, "children": [], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 34}}, {"id": 349, "type": "function_declarator", "text": "WritePrimitiveBlock(const TPrimitive *first, size_t count)", "parent": 347, "children": [350, 351], "start_point": {"row": 113, "column": 35}, "end_point": {"row": 113, "column": 93}}, {"id": 350, "type": "identifier", "text": "WritePrimitiveBlock", "parent": 349, "children": [], "start_point": {"row": 113, "column": 35}, "end_point": {"row": 113, "column": 54}}, {"id": 351, "type": "parameter_list", "text": "(const TPrimitive *first, size_t count)", "parent": 349, "children": [352, 357], "start_point": {"row": 113, "column": 54}, "end_point": {"row": 113, "column": 93}}, {"id": 352, "type": "parameter_declaration", "text": "const TPrimitive *first", "parent": 351, "children": [353, 354], "start_point": {"row": 113, "column": 55}, "end_point": {"row": 113, "column": 78}}, {"id": 353, "type": "type_identifier", "text": "TPrimitive", "parent": 352, "children": [], "start_point": {"row": 113, "column": 61}, "end_point": {"row": 113, "column": 71}}, {"id": 354, "type": "pointer_declarator", "text": "*first", "parent": 352, "children": [355, 356], "start_point": {"row": 113, "column": 72}, "end_point": {"row": 113, "column": 78}}, {"id": 355, "type": "*", "text": "*", "parent": 354, "children": [], "start_point": {"row": 113, "column": 72}, "end_point": {"row": 113, "column": 73}}, {"id": 356, "type": "identifier", "text": "first", "parent": 354, "children": [], "start_point": {"row": 113, "column": 73}, "end_point": {"row": 113, "column": 78}}, {"id": 357, "type": "parameter_declaration", "text": "size_t count", "parent": 351, "children": [358, 359], "start_point": {"row": 113, "column": 80}, "end_point": {"row": 113, "column": 92}}, {"id": 358, "type": "primitive_type", "text": "size_t", "parent": 357, "children": [], "start_point": {"row": 113, "column": 80}, "end_point": {"row": 113, "column": 86}}, {"id": 359, "type": "identifier", "text": "count", "parent": 357, "children": [], "start_point": {"row": 113, "column": 87}, "end_point": {"row": 113, "column": 92}}, {"id": 360, "type": "declaration", "text": "const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);", "parent": 347, "children": [361, 362], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 94}}, {"id": 361, "type": "primitive_type", "text": "size_t", "parent": 360, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 20}}, {"id": 362, "type": "init_declarator", "text": "maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive)", "parent": 360, "children": [363, 364, 365, 367], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 93}}, {"id": 363, "type": "identifier", "text": "maxBlockSize", "parent": 362, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 33}}, {"id": 364, "type": "=", "text": "=", "parent": 362, "children": [], "start_point": {"row": 115, "column": 34}, "end_point": {"row": 115, "column": 35}}, {"id": 365, "type": "ERROR", "text": "std::", "parent": 362, "children": [366], "start_point": {"row": 115, "column": 36}, "end_point": {"row": 115, "column": 41}}, {"id": 366, "type": "identifier", "text": "std", "parent": 365, "children": [], "start_point": {"row": 115, "column": 36}, "end_point": {"row": 115, "column": 39}}, {"id": 367, "type": "binary_expression", "text": "numeric_limits< size_t >::max() / sizeof(TPrimitive)", "parent": 362, "children": [368, 372, 373], "start_point": {"row": 115, "column": 41}, "end_point": {"row": 115, "column": 93}}, {"id": 368, "type": "binary_expression", "text": "numeric_limits< size_t", "parent": 367, "children": [369, 370, 371], "start_point": {"row": 115, "column": 41}, "end_point": {"row": 115, "column": 63}}, {"id": 369, "type": "identifier", "text": "numeric_limits", "parent": 368, "children": [], "start_point": {"row": 115, "column": 41}, "end_point": {"row": 115, "column": 55}}, {"id": 370, "type": "<", "text": "<", "parent": 368, "children": [], "start_point": {"row": 115, "column": 55}, "end_point": {"row": 115, "column": 56}}, {"id": 371, "type": "identifier", "text": "size_t", "parent": 368, "children": [], "start_point": {"row": 115, "column": 57}, "end_point": {"row": 115, "column": 63}}, {"id": 372, "type": ">", "text": ">", "parent": 367, "children": [], "start_point": {"row": 115, "column": 64}, "end_point": {"row": 115, "column": 65}}, {"id": 373, "type": "binary_expression", "text": "max() / sizeof(TPrimitive)", "parent": 367, "children": [374, 377, 378], "start_point": {"row": 115, "column": 67}, "end_point": {"row": 115, "column": 93}}, {"id": 374, "type": "call_expression", "text": "max()", "parent": 373, "children": [375, 376], "start_point": {"row": 115, "column": 67}, "end_point": {"row": 115, "column": 72}}, {"id": 375, "type": "identifier", "text": "max", "parent": 374, "children": [], "start_point": {"row": 115, "column": 67}, "end_point": {"row": 115, "column": 70}}, {"id": 376, "type": "argument_list", "text": "()", "parent": 374, "children": [], "start_point": {"row": 115, "column": 70}, "end_point": {"row": 115, "column": 72}}, {"id": 377, "type": "/", "text": "/", "parent": 373, "children": [], "start_point": {"row": 115, "column": 73}, "end_point": {"row": 115, "column": 74}}, {"id": 378, "type": "sizeof_expression", "text": "sizeof(TPrimitive)", "parent": 373, "children": [379], "start_point": {"row": 115, "column": 75}, "end_point": {"row": 115, "column": 93}}, {"id": 379, "type": "parenthesized_expression", "text": "(TPrimitive)", "parent": 378, "children": [380], "start_point": {"row": 115, "column": 81}, "end_point": {"row": 115, "column": 93}}, {"id": 380, "type": "identifier", "text": "TPrimitive", "parent": 379, "children": [], "start_point": {"row": 115, "column": 82}, "end_point": {"row": 115, "column": 92}}, {"id": 381, "type": "while_statement", "text": "while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }", "parent": 347, "children": [382], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 124, "column": 9}}, {"id": 382, "type": "parenthesized_expression", "text": "(count > 0)", "parent": 381, "children": [383], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 25}}, {"id": 383, "type": "binary_expression", "text": "count > 0", "parent": 382, "children": [384, 385, 386], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 24}}, {"id": 384, "type": "identifier", "text": "count", "parent": 383, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 20}}, {"id": 385, "type": ">", "text": ">", "parent": 383, "children": [], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 22}}, {"id": 386, "type": "number_literal", "text": "0", "parent": 383, "children": [], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 24}}, {"id": 387, "type": "declaration", "text": "const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;", "parent": 381, "children": [388, 389], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 86}}, {"id": 388, "type": "primitive_type", "text": "size_t", "parent": 387, "children": [], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 24}}, {"id": 389, "type": "init_declarator", "text": "writeBlockSize = count > maxBlockSize ? maxBlockSize : count", "parent": 387, "children": [390, 391, 392], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 85}}, {"id": 390, "type": "identifier", "text": "writeBlockSize", "parent": 389, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 39}}, {"id": 391, "type": "=", "text": "=", "parent": 389, "children": [], "start_point": {"row": 119, "column": 40}, "end_point": {"row": 119, "column": 41}}, {"id": 392, "type": "conditional_expression", "text": "count > maxBlockSize ? maxBlockSize : count", "parent": 389, "children": [393, 397, 398, 399], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 85}}, {"id": 393, "type": "binary_expression", "text": "count > maxBlockSize", "parent": 392, "children": [394, 395, 396], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 62}}, {"id": 394, "type": "identifier", "text": "count", "parent": 393, "children": [], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 47}}, {"id": 395, "type": ">", "text": ">", "parent": 393, "children": [], "start_point": {"row": 119, "column": 48}, "end_point": {"row": 119, "column": 49}}, {"id": 396, "type": "identifier", "text": "maxBlockSize", "parent": 393, "children": [], "start_point": {"row": 119, "column": 50}, "end_point": {"row": 119, "column": 62}}, {"id": 397, "type": "?", "text": "?", "parent": 392, "children": [], "start_point": {"row": 119, "column": 63}, "end_point": {"row": 119, "column": 64}}, {"id": 398, "type": "identifier", "text": "maxBlockSize", "parent": 392, "children": [], "start_point": {"row": 119, "column": 65}, "end_point": {"row": 119, "column": 77}}, {"id": 399, "type": "identifier", "text": "count", "parent": 392, "children": [], "start_point": {"row": 119, "column": 80}, "end_point": {"row": 119, "column": 85}}, {"id": 400, "type": "call_expression", "text": "WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive))", "parent": 381, "children": [401, 402], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 105}}, {"id": 401, "type": "identifier", "text": "WriteBlock", "parent": 400, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 22}}, {"id": 402, "type": "argument_list", "text": "(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive))", "parent": 400, "children": [403, 414], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 105}}, {"id": 403, "type": "binary_expression", "text": "reinterpret_cast< const char *const >(first)", "parent": 402, "children": [404, 411, 412], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 67}}, {"id": 404, "type": "binary_expression", "text": "reinterpret_cast< const char *const", "parent": 403, "children": [405, 406, 407], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 58}}, {"id": 405, "type": "identifier", "text": "reinterpret_cast", "parent": 404, "children": [], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 39}}, {"id": 406, "type": "<", "text": "<", "parent": 404, "children": [], "start_point": {"row": 121, "column": 39}, "end_point": {"row": 121, "column": 40}}, {"id": 407, "type": "binary_expression", "text": "const char *const", "parent": 404, "children": [408, 410], "start_point": {"row": 121, "column": 41}, "end_point": {"row": 121, "column": 58}}, {"id": 408, "type": "ERROR", "text": "char", "parent": 407, "children": [409], "start_point": {"row": 121, "column": 47}, "end_point": {"row": 121, "column": 51}}, {"id": 409, "type": "identifier", "text": "char", "parent": 408, "children": [], "start_point": {"row": 121, "column": 47}, "end_point": {"row": 121, "column": 51}}, {"id": 410, "type": "*", "text": "*", "parent": 407, "children": [], "start_point": {"row": 121, "column": 52}, "end_point": {"row": 121, "column": 53}}, {"id": 411, "type": ">", "text": ">", "parent": 403, "children": [], "start_point": {"row": 121, "column": 59}, "end_point": {"row": 121, "column": 60}}, {"id": 412, "type": "parenthesized_expression", "text": "(first)", "parent": 403, "children": [413], "start_point": {"row": 121, "column": 60}, "end_point": {"row": 121, "column": 67}}, {"id": 413, "type": "identifier", "text": "first", "parent": 412, "children": [], "start_point": {"row": 121, "column": 61}, "end_point": {"row": 121, "column": 66}}, {"id": 414, "type": "binary_expression", "text": "writeBlockSize * sizeof(TPrimitive)", "parent": 402, "children": [415, 416, 417], "start_point": {"row": 121, "column": 69}, "end_point": {"row": 121, "column": 104}}, {"id": 415, "type": "identifier", "text": "writeBlockSize", "parent": 414, "children": [], "start_point": {"row": 121, "column": 69}, "end_point": {"row": 121, "column": 83}}, {"id": 416, "type": "*", "text": "*", "parent": 414, "children": [], "start_point": {"row": 121, "column": 84}, "end_point": {"row": 121, "column": 85}}, {"id": 417, "type": "sizeof_expression", "text": "sizeof(TPrimitive)", "parent": 414, "children": [418], "start_point": {"row": 121, "column": 86}, "end_point": {"row": 121, "column": 104}}, {"id": 418, "type": "parenthesized_expression", "text": "(TPrimitive)", "parent": 417, "children": [419], "start_point": {"row": 121, "column": 92}, "end_point": {"row": 121, "column": 104}}, {"id": 419, "type": "identifier", "text": "TPrimitive", "parent": 418, "children": [], "start_point": {"row": 121, "column": 93}, "end_point": {"row": 121, "column": 103}}, {"id": 420, "type": "assignment_expression", "text": "count -= writeBlockSize", "parent": 381, "children": [421, 422, 423], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 35}}, {"id": 421, "type": "identifier", "text": "count", "parent": 420, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 17}}, {"id": 422, "type": "-=", "text": "-=", "parent": 420, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 20}}, {"id": 423, "type": "identifier", "text": "writeBlockSize", "parent": 420, "children": [], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 35}}, {"id": 424, "type": "assignment_expression", "text": "first += writeBlockSize", "parent": 381, "children": [425, 426, 427], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 35}}, {"id": 425, "type": "identifier", "text": "first", "parent": 424, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 17}}, {"id": 426, "type": "+=", "text": "+=", "parent": 424, "children": [], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 20}}, {"id": 427, "type": "identifier", "text": "writeBlockSize", "parent": 424, "children": [], "start_point": {"row": 123, "column": 21}, "end_point": {"row": 123, "column": 35}}, {"id": 428, "type": "labeled_statement", "text": "private:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];", "parent": 18, "children": [429], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 129, "column": 62}}, {"id": 429, "type": "declaration", "text": "char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];", "parent": 428, "children": [430, 431], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 62}}, {"id": 430, "type": "primitive_type", "text": "char", "parent": 429, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 8}}, {"id": 431, "type": "array_declarator", "text": "mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ]", "parent": 429, "children": [432, 433], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 61}}, {"id": 432, "type": "identifier", "text": "mWriteBuffer", "parent": 431, "children": [], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 21}}, {"id": 433, "type": "identifier", "text": "SERIALISATION_SERIALISERS_BUFFERSIZE", "parent": 431, "children": [], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 59}}, {"id": 434, "type": "declaration", "text": "StreamWriter mStreamWriter;", "parent": 18, "children": [435, 436], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 31}}, {"id": 435, "type": "type_identifier", "text": "StreamWriter", "parent": 434, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 16}}, {"id": 436, "type": "identifier", "text": "mStreamWriter", "parent": 434, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 30}}, {"id": 437, "type": "declaration", "text": "uint8_t mVarIntBuffer[ 10 ];", "parent": 18, "children": [438, 439], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 32}}, {"id": 438, "type": "primitive_type", "text": "uint8_t", "parent": 437, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 11}}, {"id": 439, "type": "array_declarator", "text": "mVarIntBuffer[ 10 ]", "parent": 437, "children": [440, 441], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 31}}, {"id": 440, "type": "identifier", "text": "mVarIntBuffer", "parent": 439, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 25}}, {"id": 441, "type": "number_literal", "text": "10", "parent": 439, "children": [], "start_point": {"row": 133, "column": 27}, "end_point": {"row": 133, "column": 29}}, {"id": 442, "type": "declaration", "text": "uint32_t mWriteIndex;", "parent": 18, "children": [443, 444], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 25}}, {"id": 443, "type": "primitive_type", "text": "uint32_t", "parent": 442, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 12}}, {"id": 444, "type": "identifier", "text": "mWriteIndex", "parent": 442, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 24}}, {"id": 445, "type": "binary_expression", "text": "BufferedStreamWriter &operator=(const BufferedStreamWriter &)", "parent": 18, "children": [446, 447], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 65}}, {"id": 446, "type": "identifier", "text": "BufferedStreamWriter", "parent": 445, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 24}}, {"id": 447, "type": "assignment_expression", "text": "operator=(const BufferedStreamWriter &)", "parent": 445, "children": [448, 449, 450], "start_point": {"row": 137, "column": 26}, "end_point": {"row": 137, "column": 65}}, {"id": 448, "type": "identifier", "text": "operator", "parent": 447, "children": [], "start_point": {"row": 137, "column": 26}, "end_point": {"row": 137, "column": 34}}, {"id": 449, "type": "=", "text": "=", "parent": 447, "children": [], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 35}}, {"id": 450, "type": "cast_expression", "text": "(const BufferedStreamWriter &)", "parent": 447, "children": [451, 453], "start_point": {"row": 137, "column": 35}, "end_point": {"row": 137, "column": 65}}, {"id": 451, "type": "type_descriptor", "text": "const BufferedStreamWriter", "parent": 450, "children": [452], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 62}}, {"id": 452, "type": "type_identifier", "text": "BufferedStreamWriter", "parent": 451, "children": [], "start_point": {"row": 137, "column": 42}, "end_point": {"row": 137, "column": 62}}, {"id": 453, "type": "identifier", "text": "", "parent": 450, "children": [], "start_point": {"row": 137, "column": 65}, "end_point": {"row": 137, "column": 65}}, {"id": 454, "type": "macro_type_specifier", "text": "BufferedStreamWriter(const BufferedStreamWriter &)", "parent": 18, "children": [455, 456], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 54}}, {"id": 455, "type": "identifier", "text": "BufferedStreamWriter", "parent": 454, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 24}}, {"id": 456, "type": "type_descriptor", "text": "const BufferedStreamWriter", "parent": 454, "children": [457], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 51}}, {"id": 457, "type": "type_identifier", "text": "BufferedStreamWriter", "parent": 456, "children": [], "start_point": {"row": 138, "column": 31}, "end_point": {"row": 138, "column": 51}}, {"id": 458, "type": "preproc_ifdef", "text": "#ifndef SERIALISATION_NO_HEADER_ONLY\n# include \"../../src/bufferedStreamWriter.cpp\"\n#endif", "parent": 3, "children": [459, 460, 461, 464], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 143, "column": 6}}, {"id": 459, "type": "#ifndef", "text": "#ifndef", "parent": 458, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 7}}, {"id": 460, "type": "identifier", "text": "SERIALISATION_NO_HEADER_ONLY", "parent": 458, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 36}}, {"id": 461, "type": "preproc_include", "text": "# include \"../../src/bufferedStreamWriter.cpp\"\n", "parent": 458, "children": [462, 463], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 143, "column": 0}}, {"id": 462, "type": "#include", "text": "# include", "parent": 461, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 11}}, {"id": 463, "type": "string_literal", "text": "\"../../src/bufferedStreamWriter.cpp\"", "parent": 461, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 48}}, {"id": 464, "type": "#endif", "text": "#endif", "parent": 458, "children": [], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 6}}, {"id": 465, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 23, 33, 43, 53, 68, 73, 76, 80, 165, 169, 226, 230, 312, 314, 347, 349], "variables": [21, 26, 31, 36, 41, 46, 51, 56, 66, 71, 83, 88, 91, 100, 172, 177, 180, 233, 236, 317, 352, 357, 360, 387, 429, 434, 437, 442], "classes": [], "imports": [9, 10, 12, 13, 15, 16, 461, 462], "modules": [], "enums": []}, "statements": {"expressions": [61, 63, 96, 109, 110, 114, 117, 135, 141, 145, 148, 157, 158, 163, 185, 190, 191, 195, 198, 207, 208, 213, 216, 219, 220, 244, 248, 253, 257, 261, 262, 267, 268, 269, 270, 275, 279, 280, 285, 287, 290, 291, 298, 300, 303, 304, 320, 323, 324, 327, 332, 333, 335, 336, 338, 339, 367, 368, 373, 374, 378, 379, 382, 383, 393, 400, 403, 404, 407, 412, 414, 417, 418, 445, 450], "assignments": [123, 127, 131, 138, 154, 204, 240, 249, 256, 274, 420, 424, 447], "loops": [108, 239, 381], "conditionals": [3, 4, 5, 8, 19, 22, 24, 27, 29, 30, 32, 34, 37, 39, 40, 42, 44, 47, 49, 50, 52, 54, 57, 59, 60, 64, 69, 74, 77, 79, 81, 87, 90, 94, 97, 99, 105, 107, 111, 113, 115, 118, 120, 121, 122, 124, 126, 128, 130, 132, 134, 136, 139, 142, 144, 146, 149, 151, 152, 153, 155, 159, 161, 164, 166, 168, 170, 176, 179, 183, 186, 188, 189, 192, 194, 196, 199, 201, 202, 203, 205, 209, 211, 214, 217, 221, 222, 224, 225, 227, 229, 231, 235, 238, 241, 245, 250, 254, 258, 259, 263, 265, 271, 276, 277, 281, 283, 286, 288, 292, 294, 299, 302, 305, 308, 309, 311, 315, 318, 319, 321, 325, 329, 334, 337, 340, 343, 344, 346, 350, 353, 356, 359, 363, 366, 369, 371, 375, 380, 384, 390, 392, 394, 396, 398, 399, 401, 405, 409, 413, 415, 419, 421, 423, 425, 427, 432, 433, 435, 436, 440, 444, 446, 448, 452, 453, 454, 455, 457, 458, 459, 460, 464, 465], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [11, 14, 17, 243, 247, 252, 272, 273, 386, 441, 463], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "BufferedStreamWriter", "text_snippet": "class BufferedStreamWriter\n{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName)"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "BufferedStreamWriter(const std::string &fileName)"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "BufferedStreamWriter(std::ofstream &stream)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "BufferedStreamWriter(std::fstream &stream)"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "BufferedStreamWriter(std::ostream &stream)"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "ClearBuffer()"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "Close()"}, {"node_id": 76, "universal_type": "function", "name": "WriteBytes", "text_snippet": "SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n "}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "WriteBytes(const char *const firstByte, size_t byteCount)"}, {"node_id": 165, "universal_type": "function", "name": "WriteBlock", "text_snippet": "SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n "}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "WriteBlock(const char *const firstByte, size_t byteCount)"}, {"node_id": 226, "universal_type": "function", "name": "WriteSize", "text_snippet": "SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n fo"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "WriteSize(size_t size)"}, {"node_id": 312, "universal_type": "function", "name": "WritePrimitive", "text_snippet": "void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *"}, {"node_id": 314, "universal_type": "function", "name": "unknown", "text_snippet": "WritePrimitive(const TPrimitive &value)"}, {"node_id": 347, "universal_type": "function", "name": "WritePrimitiveBlock", "text_snippet": "void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockS"}, {"node_id": 349, "universal_type": "function", "name": "unknown", "text_snippet": "WritePrimitiveBlock(const TPrimitive *first, size_t count)"}], "class_declarations": [], "import_statements": [{"node_id": 9, "text": "#include \"serialisation/streamWriter.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"serialisation/defines.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <cstring>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 461, "text": "# include \"../../src/bufferedStreamWriter.cpp\"\n"}, {"node_id": 462, "text": "# include"}]}, "original_source_code": "/**\n * @cond ___LICENSE___\n *\n * Copyright (c) 2016-2018 Zefiros Software.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * @endcond\n */\n#pragma once\n#ifndef __SERIALISATION_WRITEBUFFER_H__\n#define __SERIALISATION_WRITEBUFFER_H__\n\n#include \"serialisation/streamWriter.h\"\n#include \"serialisation/defines.h\"\n\n#include <cstring>\n\nclass BufferedStreamWriter\n{\npublic:\n\n explicit BufferedStreamWriter(const std::string &fileName);\n\n explicit BufferedStreamWriter(std::ofstream &stream);\n\n explicit BufferedStreamWriter(std::fstream &stream);\n\n explicit BufferedStreamWriter(std::ostream &stream);\n\n ~BufferedStreamWriter();\n\n void ClearBuffer();\n\n void Close();\n\n SERIALISATION_FORCEINLINE void WriteBytes(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n const char *c = firstByte;\n\n while (diff < byteCount)\n {\n memcpy(mWriteBuffer + mWriteIndex, c, diff);\n\n mWriteIndex += diff;\n c += diff;\n byteCount -= diff;\n\n ClearBuffer();\n\n diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n }\n\n memcpy(mWriteBuffer + mWriteIndex, c, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n\n SERIALISATION_FORCEINLINE void WriteBlock(const char *const firstByte, size_t byteCount)\n {\n uint32_t diff = SERIALISATION_SERIALISERS_BUFFERSIZE - mWriteIndex;\n\n if (byteCount < diff)\n {\n memcpy(mWriteBuffer + mWriteIndex, firstByte, byteCount);\n mWriteIndex += static_cast<uint32_t>(byteCount);\n }\n else\n {\n ClearBuffer();\n\n mStreamWriter.WriteBytes(firstByte, byteCount);\n }\n }\n\n SERIALISATION_FORCEINLINE void WriteSize(size_t size)\n {\n uint8_t bufferIndex;\n\n for (bufferIndex = 0; size >= 0x80; size >>= 7, bufferIndex++)\n {\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>((size & 0x7F) | 0x80);\n }\n\n mVarIntBuffer[bufferIndex] = static_cast<uint8_t>(size);\n\n WriteBytes(reinterpret_cast<char *>(mVarIntBuffer), ++bufferIndex);\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitive(const TPrimitive &value)\n {\n WriteBytes(reinterpret_cast< const char *const >(&value), sizeof(TPrimitive));\n }\n\n template< typename TPrimitive >\n SERIALISATION_FORCEINLINE void WritePrimitiveBlock(const TPrimitive *first, size_t count)\n {\n const size_t maxBlockSize = std::numeric_limits< size_t >::max() / sizeof(TPrimitive);\n\n while (count > 0)\n {\n const size_t writeBlockSize = count > maxBlockSize ? maxBlockSize : count;\n\n WriteBlock(reinterpret_cast< const char *const >(first), writeBlockSize * sizeof(TPrimitive));\n count -= writeBlockSize;\n first += writeBlockSize;\n }\n }\n\nprivate:\n\n char mWriteBuffer[ SERIALISATION_SERIALISERS_BUFFERSIZE ];\n\n StreamWriter mStreamWriter;\n\n uint8_t mVarIntBuffer[ 10 ];\n\n uint32_t mWriteIndex;\n\n BufferedStreamWriter &operator=(const BufferedStreamWriter &);\n BufferedStreamWriter(const BufferedStreamWriter &);\n};\n\n#ifndef SERIALISATION_NO_HEADER_ONLY\n# include \"../../src/bufferedStreamWriter.cpp\"\n#endif\n\n#endif"}
80,411
c
// // Created by peter on 3/28/15. // #ifndef WORD_BRAIN_SOLVER_READER_H #define WORD_BRAIN_SOLVER_READER_H #include "Board.h" #include <memory> class Reader { public: Reader() {} virtual ~Reader() {} virtual std::unique_ptr<Board> getBoard()=0; virtual const std::vector<int>& getWordLengths()=0; }; #endif //WORD_BRAIN_SOLVER_READER_H
22.53
15
(translation_unit) "//\n// Created by peter on 3/28/15.\n//\n\n#ifndef WORD_BRAIN_SOLVER_READER_H\n#define WORD_BRAIN_SOLVER_READER_H\n\n#include "Board.h"\n#include <memory>\n\nclass Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::vector<int>& getWordLengths()=0;\n};\n\n#endif //WORD_BRAIN_SOLVER_READER_H\n" (comment) "//" (comment) "// Created by peter on 3/28/15." (comment) "//" (preproc_ifdef) "#ifndef WORD_BRAIN_SOLVER_READER_H\n#define WORD_BRAIN_SOLVER_READER_H\n\n#include "Board.h"\n#include <memory>\n\nclass Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::vector<int>& getWordLengths()=0;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "WORD_BRAIN_SOLVER_READER_H" (preproc_def) "#define WORD_BRAIN_SOLVER_READER_H\n" (#define) "#define" (identifier) "WORD_BRAIN_SOLVER_READER_H" (preproc_include) "#include "Board.h"\n" (#include) "#include" (string_literal) ""Board.h"" (") """ (string_content) "Board.h" (") """ (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (function_definition) "class Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::vector<int>& getWordLengths()=0;\n}" (type_identifier) "class" (identifier) "Reader" (compound_statement) "{\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::vector<int>& getWordLengths()=0;\n}" ({) "{" (labeled_statement) "public:\n Reader() {}" (statement_identifier) "public" (:) ":" (ERROR) "Reader()" (call_expression) "Reader()" (identifier) "Reader" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "virtual ~Reader() {}" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Reader()" (identifier) "Reader" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (declaration) "virtual std::unique_ptr<Board> getBoard()=0;" (type_identifier) "virtual" (ERROR) "std::unique_ptr<Board>" (identifier) "std" (:) ":" (:) ":" (identifier) "unique_ptr" (<) "<" (identifier) "Board" (>) ">" (init_declarator) "getBoard()=0" (function_declarator) "getBoard()" (identifier) "getBoard" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual const std::vector<int>& getWordLengths()=0;" (type_identifier) "virtual" (type_qualifier) "const" (const) "const" (ERROR) "std::vector<int>&" (identifier) "std" (:) ":" (:) ":" (identifier) "vector" (<) "<" (primitive_type) "int" (>) ">" (&) "&" (init_declarator) "getWordLengths()=0" (function_declarator) "getWordLengths()" (identifier) "getWordLengths" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "//WORD_BRAIN_SOLVER_READER_H"
94
4
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 22.53, "nodes": 55, "errors": 0, "source_hash": "3dd49e661b4ab5d97b99f86964c6e0e283ce6689a97a7fa540f61a8b3c100afb", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef WORD_BRAIN_SOLVER_READER_H\n#define WORD_BRAIN_SOLVER_READER_H\n\n#include \"Board.h\"\n#include <memory>\n\nclass Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::vector<int>& getWordLengths()=0;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 54], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 18, "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": "WORD_BRAIN_SOLVER_READER_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 34}}, {"id": 3, "type": "preproc_def", "text": "#define WORD_BRAIN_SOLVER_READER_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": "WORD_BRAIN_SOLVER_READER_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 34}}, {"id": 6, "type": "preproc_include", "text": "#include \"Board.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": "\"Board.h\"", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <memory>\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": "<memory>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 12, "type": "function_definition", "text": "class Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::vector<int>& getWordLengths()=0;\n}", "parent": 0, "children": [13], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "identifier", "text": "Reader", "parent": 12, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 14, "type": "labeled_statement", "text": "public:\n Reader() {}", "parent": 12, "children": [15], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 15}}, {"id": 15, "type": "ERROR", "text": "Reader()", "parent": 14, "children": [16], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 16, "type": "call_expression", "text": "Reader()", "parent": 15, "children": [17, 18], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 17, "type": "identifier", "text": "Reader", "parent": 16, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 18, "type": "argument_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 12}}, {"id": 19, "type": "function_definition", "text": "virtual ~Reader() {}", "parent": 12, "children": [20, 21, 23], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 24}}, {"id": 20, "type": "type_identifier", "text": "virtual", "parent": 19, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 21, "type": "ERROR", "text": "~", "parent": 19, "children": [22], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 22, "type": "~", "text": "~", "parent": 21, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 23, "type": "function_declarator", "text": "Reader()", "parent": 19, "children": [24, 25], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 21}}, {"id": 24, "type": "identifier", "text": "Reader", "parent": 23, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 19}}, {"id": 25, "type": "parameter_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 21}}, {"id": 26, "type": "declaration", "text": "virtual std::unique_ptr<Board> getBoard()=0;", "parent": 12, "children": [27, 28, 34], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 48}}, {"id": 27, "type": "type_identifier", "text": "virtual", "parent": 26, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 11}}, {"id": 28, "type": "ERROR", "text": "std::unique_ptr<Board>", "parent": 26, "children": [29, 30, 31, 32, 33], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 34}}, {"id": 29, "type": "identifier", "text": "std", "parent": 28, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 15}}, {"id": 30, "type": "identifier", "text": "unique_ptr", "parent": 28, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 27}}, {"id": 31, "type": "<", "text": "<", "parent": 28, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 28}}, {"id": 32, "type": "identifier", "text": "Board", "parent": 28, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 33}}, {"id": 33, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 34}}, {"id": 34, "type": "init_declarator", "text": "getBoard()=0", "parent": 26, "children": [35, 38, 39], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 47}}, {"id": 35, "type": "function_declarator", "text": "getBoard()", "parent": 34, "children": [36, 37], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 45}}, {"id": 36, "type": "identifier", "text": "getBoard", "parent": 35, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 43}}, {"id": 37, "type": "parameter_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 45}}, {"id": 38, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 46}}, {"id": 39, "type": "number_literal", "text": "0", "parent": 34, "children": [], "start_point": {"row": 14, "column": 46}, "end_point": {"row": 14, "column": 47}}, {"id": 40, "type": "declaration", "text": "virtual const std::vector<int>& getWordLengths()=0;", "parent": 12, "children": [41, 42, 48], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 55}}, {"id": 41, "type": "type_identifier", "text": "virtual", "parent": 40, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 42, "type": "ERROR", "text": "std::vector<int>&", "parent": 40, "children": [43, 44, 45, 46, 47], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 35}}, {"id": 43, "type": "identifier", "text": "std", "parent": 42, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 21}}, {"id": 44, "type": "identifier", "text": "vector", "parent": 42, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 29}}, {"id": 45, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 30}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 33}}, {"id": 47, "type": ">", "text": ">", "parent": 42, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 34}}, {"id": 48, "type": "init_declarator", "text": "getWordLengths()=0", "parent": 40, "children": [49, 52, 53], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 54}}, {"id": 49, "type": "function_declarator", "text": "getWordLengths()", "parent": 48, "children": [50, 51], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 52}}, {"id": 50, "type": "identifier", "text": "getWordLengths", "parent": 49, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 50}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 52}}, {"id": 52, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 15, "column": 52}, "end_point": {"row": 15, "column": 53}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 48, "children": [], "start_point": {"row": 15, "column": 53}, "end_point": {"row": 15, "column": 54}}, {"id": 54, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 19, 23, 35, 49], "variables": [26, 40], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [16], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 17, 20, 24, 27, 29, 30, 32, 36, 41, 43, 44, 50, 54], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 39, 53], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "Reader", "text_snippet": "class Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> g"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~Reader() {}"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "Reader()"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "getBoard()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "getWordLengths()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Board.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <memory>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "//\n// Created by peter on 3/28/15.\n//\n\n#ifndef WORD_BRAIN_SOLVER_READER_H\n#define WORD_BRAIN_SOLVER_READER_H\n\n#include \"Board.h\"\n#include <memory>\n\nclass Reader {\npublic:\n Reader() {}\n virtual ~Reader() {}\n virtual std::unique_ptr<Board> getBoard()=0;\n virtual const std::vector<int>& getWordLengths()=0;\n};\n\n#endif //WORD_BRAIN_SOLVER_READER_H\n"}
80,412
c
// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*- // vi:set ts=4 sts=4 sw=4 noet : // Copyright 2008, The TPIE development team // // This file is part of TPIE. // // TPIE is free software: you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License as published by the // Free Software Foundation, either version 3 of the License, or (at your // option) any later version. // // TPIE 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 Lesser General Public // License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with TPIE. If not, see <http://www.gnu.org/licenses/> #ifndef _TPIE_BTE_STREAM_HEADER_H #define _TPIE_BTE_STREAM_HEADER_H namespace tpie { namespace bte { // BTE stream header info. struct stream_header { // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER. unsigned int m_magicNumber; // Should be 2 for current version (version 1 has been deprecated). unsigned int m_version; // The type of BTE_STREAM that created this header. Not all types of // BTE's are readable by all BTE implementations. For example, // BTE_STREAM_STDIO streams are not readable by either // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is // reserved for the base class. Use numbers bigger than 0 for the // various implementations. unsigned int m_type; // The number of bytes in this structure. TPIE_OS_SIZE_T m_headerLength; // The size of each item in the stream. TPIE_OS_SIZE_T m_itemSize; // The size of a physical block on the device this stream resides. TPIE_OS_SIZE_T m_osBlockSize; // Size in bytes of each logical block, if applicable. TPIE_OS_SIZE_T m_blockSize; // For all intents and purposes, the length of the stream in number // of items. TPIE_OS_OFFSET m_itemLogicalEOF; }; } // bte namespace } // tpie namespace #endif // _TPIE_BTE_STREAM_HEADER_H
36.51
59
(translation_unit) "// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*-\n// vi:set ts=4 sts=4 sw=4 noet :\n// Copyright 2008, The TPIE development team\n// \n// This file is part of TPIE.\n// \n// TPIE is free software: you can redistribute it and/or modify it under\n// the terms of the GNU Lesser General Public License as published by the\n// Free Software Foundation, either version 3 of the License, or (at your\n// option) any later version.\n// \n// TPIE is distributed in the hope that it will be useful, but WITHOUT ANY\n// WARRANTY; without even the implied warranty of MERCHANTABILITY or\n// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public\n// License for more details.\n// \n// You should have received a copy of the GNU Lesser General Public License\n// along with TPIE. If not, see <http://www.gnu.org/licenses/>\n\n#ifndef _TPIE_BTE_STREAM_HEADER_H\n#define _TPIE_BTE_STREAM_HEADER_H\n\nnamespace tpie {\n\n namespace bte {\n\n// BTE stream header info.\n struct stream_header {\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n };\n \n } // bte namespace\n\n} // tpie namespace \n\n#endif // _TPIE_BTE_STREAM_HEADER_H\n\n" (comment) "// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*-" (comment) "// vi:set ts=4 sts=4 sw=4 noet :" (comment) "// Copyright 2008, The TPIE development team" (comment) "// " (comment) "// This file is part of TPIE." (comment) "// " (comment) "// TPIE is free software: you can redistribute it and/or modify it under" (comment) "// the terms of the GNU Lesser General Public License as published by the" (comment) "// Free Software Foundation, either version 3 of the License, or (at your" (comment) "// option) any later version." (comment) "// " (comment) "// TPIE is distributed in the hope that it will be useful, but WITHOUT ANY" (comment) "// WARRANTY; without even the implied warranty of MERCHANTABILITY or" (comment) "// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public" (comment) "// License for more details." (comment) "// " (comment) "// You should have received a copy of the GNU Lesser General Public License" (comment) "// along with TPIE. If not, see <http://www.gnu.org/licenses/>" (preproc_ifdef) "#ifndef _TPIE_BTE_STREAM_HEADER_H\n#define _TPIE_BTE_STREAM_HEADER_H\n\nnamespace tpie {\n\n namespace bte {\n\n// BTE stream header info.\n struct stream_header {\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n };\n \n } // bte namespace\n\n} // tpie namespace \n\n#endif" (#ifndef) "#ifndef" (identifier) "_TPIE_BTE_STREAM_HEADER_H" (preproc_def) "#define _TPIE_BTE_STREAM_HEADER_H\n" (#define) "#define" (identifier) "_TPIE_BTE_STREAM_HEADER_H" (function_definition) "namespace tpie {\n\n namespace bte {\n\n// BTE stream header info.\n struct stream_header {\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n };\n \n } // bte namespace\n\n}" (type_identifier) "namespace" (identifier) "tpie" (compound_statement) "{\n\n namespace bte {\n\n// BTE stream header info.\n struct stream_header {\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n };\n \n } // bte namespace\n\n}" ({) "{" (function_definition) "namespace bte {\n\n// BTE stream header info.\n struct stream_header {\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n };\n \n }" (type_identifier) "namespace" (identifier) "bte" (compound_statement) "{\n\n// BTE stream header info.\n struct stream_header {\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n };\n \n }" ({) "{" (comment) "// BTE stream header info." (struct_specifier) "struct stream_header {\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n }" (struct) "struct" (type_identifier) "stream_header" (field_declaration_list) "{\n \n // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n unsigned int m_magicNumber;\n \n // Should be 2 for current version (version 1 has been deprecated).\n unsigned int m_version;\n \n // The type of BTE_STREAM that created this header. Not all types of\n // BTE's are readable by all BTE implementations. For example,\n // BTE_STREAM_STDIO streams are not readable by either\n // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n // reserved for the base class. Use numbers bigger than 0 for the\n // various implementations.\n unsigned int m_type;\n \n // The number of bytes in this structure.\n TPIE_OS_SIZE_T m_headerLength;\n \n // The size of each item in the stream.\n TPIE_OS_SIZE_T m_itemSize;\n \n // The size of a physical block on the device this stream resides.\n TPIE_OS_SIZE_T m_osBlockSize;\n \n // Size in bytes of each logical block, if applicable.\n TPIE_OS_SIZE_T m_blockSize;\n \n // For all intents and purposes, the length of the stream in number\n // of items.\n TPIE_OS_OFFSET m_itemLogicalEOF;\n }" ({) "{" (comment) "// Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER." (field_declaration) "unsigned int m_magicNumber;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "m_magicNumber" (;) ";" (comment) "// Should be 2 for current version (version 1 has been deprecated)." (field_declaration) "unsigned int m_version;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "m_version" (;) ";" (comment) "// The type of BTE_STREAM that created this header. Not all types of" (comment) "// BTE's are readable by all BTE implementations. For example," (comment) "// BTE_STREAM_STDIO streams are not readable by either" (comment) "// BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is" (comment) "// reserved for the base class. Use numbers bigger than 0 for the" (comment) "// various implementations." (field_declaration) "unsigned int m_type;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (field_identifier) "m_type" (;) ";" (comment) "// The number of bytes in this structure." (field_declaration) "TPIE_OS_SIZE_T m_headerLength;" (type_identifier) "TPIE_OS_SIZE_T" (field_identifier) "m_headerLength" (;) ";" (comment) "// The size of each item in the stream." (field_declaration) "TPIE_OS_SIZE_T m_itemSize;" (type_identifier) "TPIE_OS_SIZE_T" (field_identifier) "m_itemSize" (;) ";" (comment) "// The size of a physical block on the device this stream resides." (field_declaration) "TPIE_OS_SIZE_T m_osBlockSize;" (type_identifier) "TPIE_OS_SIZE_T" (field_identifier) "m_osBlockSize" (;) ";" (comment) "// Size in bytes of each logical block, if applicable." (field_declaration) "TPIE_OS_SIZE_T m_blockSize;" (type_identifier) "TPIE_OS_SIZE_T" (field_identifier) "m_blockSize" (;) ";" (comment) "// For all intents and purposes, the length of the stream in number" (comment) "// of items." (field_declaration) "TPIE_OS_OFFSET m_itemLogicalEOF;" (type_identifier) "TPIE_OS_OFFSET" (field_identifier) "m_itemLogicalEOF" (;) ";" (}) "}" (;) ";" (}) "}" (comment) "// bte namespace" (}) "}" (comment) "// tpie namespace " (#endif) "#endif" (comment) "// _TPIE_BTE_STREAM_HEADER_H"
101
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 36.51, "nodes": 46, "errors": 0, "source_hash": "6da4b81b616c4cbcec18d092b8f54e69e028d6dee6ebafb79f28bf0168c54793", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _TPIE_BTE_STREAM_HEADER_H\n#define _TPIE_BTE_STREAM_HEADER_H\n\nnamespace tpie {\n\n namespace bte {\n\n// BTE stream header info.\n\tstruct stream_header {\n\t\n\t // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n\t unsigned int m_magicNumber;\n\t\n\t // Should be 2 for current version (version 1 has been deprecated).\n\t unsigned int m_version;\n\t\n\t // The type of BTE_STREAM that created this header. Not all types of\n\t // BTE's are readable by all BTE implementations. For example,\n\t // BTE_STREAM_STDIO streams are not readable by either\n\t // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n\t // reserved for the base class. Use numbers bigger than 0 for the\n\t // various implementations.\n\t unsigned int m_type;\n\t\n\t // The number of bytes in this structure.\n\t TPIE_OS_SIZE_T m_headerLength;\n\t\n\t // The size of each item in the stream.\n\t TPIE_OS_SIZE_T m_itemSize;\n\t\n\t // The size of a physical block on the device this stream resides.\n\t TPIE_OS_SIZE_T m_osBlockSize;\n\t\n\t // Size in bytes of each logical block, if applicable.\n\t TPIE_OS_SIZE_T m_blockSize;\n\t\n\t // For all intents and purposes, the length of the stream in number\n\t // of items.\n\t TPIE_OS_OFFSET m_itemLogicalEOF;\n\t};\n \n } // bte namespace\n\n} // tpie namespace \n\n#endif", "parent": null, "children": [1, 2, 3, 6, 45], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 64, "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": "_TPIE_BTE_STREAM_HEADER_H", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 33}}, {"id": 3, "type": "preproc_def", "text": "#define _TPIE_BTE_STREAM_HEADER_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": "_TPIE_BTE_STREAM_HEADER_H", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 33}}, {"id": 6, "type": "function_definition", "text": "namespace tpie {\n\n namespace bte {\n\n// BTE stream header info.\n\tstruct stream_header {\n\t\n\t // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n\t unsigned int m_magicNumber;\n\t\n\t // Should be 2 for current version (version 1 has been deprecated).\n\t unsigned int m_version;\n\t\n\t // The type of BTE_STREAM that created this header. Not all types of\n\t // BTE's are readable by all BTE implementations. For example,\n\t // BTE_STREAM_STDIO streams are not readable by either\n\t // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n\t // reserved for the base class. Use numbers bigger than 0 for the\n\t // various implementations.\n\t unsigned int m_type;\n\t\n\t // The number of bytes in this structure.\n\t TPIE_OS_SIZE_T m_headerLength;\n\t\n\t // The size of each item in the stream.\n\t TPIE_OS_SIZE_T m_itemSize;\n\t\n\t // The size of a physical block on the device this stream resides.\n\t TPIE_OS_SIZE_T m_osBlockSize;\n\t\n\t // Size in bytes of each logical block, if applicable.\n\t TPIE_OS_SIZE_T m_blockSize;\n\t\n\t // For all intents and purposes, the length of the stream in number\n\t // of items.\n\t TPIE_OS_OFFSET m_itemLogicalEOF;\n\t};\n \n } // bte namespace\n\n}", "parent": 0, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 9}}, {"id": 8, "type": "identifier", "text": "tpie", "parent": 6, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 14}}, {"id": 9, "type": "function_definition", "text": "namespace bte {\n\n// BTE stream header info.\n\tstruct stream_header {\n\t\n\t // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n\t unsigned int m_magicNumber;\n\t\n\t // Should be 2 for current version (version 1 has been deprecated).\n\t unsigned int m_version;\n\t\n\t // The type of BTE_STREAM that created this header. Not all types of\n\t // BTE's are readable by all BTE implementations. For example,\n\t // BTE_STREAM_STDIO streams are not readable by either\n\t // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n\t // reserved for the base class. Use numbers bigger than 0 for the\n\t // various implementations.\n\t unsigned int m_type;\n\t\n\t // The number of bytes in this structure.\n\t TPIE_OS_SIZE_T m_headerLength;\n\t\n\t // The size of each item in the stream.\n\t TPIE_OS_SIZE_T m_itemSize;\n\t\n\t // The size of a physical block on the device this stream resides.\n\t TPIE_OS_SIZE_T m_osBlockSize;\n\t\n\t // Size in bytes of each logical block, if applicable.\n\t TPIE_OS_SIZE_T m_blockSize;\n\t\n\t // For all intents and purposes, the length of the stream in number\n\t // of items.\n\t TPIE_OS_OFFSET m_itemLogicalEOF;\n\t};\n \n }", "parent": 6, "children": [10, 11], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 13}}, {"id": 11, "type": "identifier", "text": "bte", "parent": 9, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 17}}, {"id": 12, "type": "struct_specifier", "text": "struct stream_header {\n\t\n\t // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n\t unsigned int m_magicNumber;\n\t\n\t // Should be 2 for current version (version 1 has been deprecated).\n\t unsigned int m_version;\n\t\n\t // The type of BTE_STREAM that created this header. Not all types of\n\t // BTE's are readable by all BTE implementations. For example,\n\t // BTE_STREAM_STDIO streams are not readable by either\n\t // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n\t // reserved for the base class. Use numbers bigger than 0 for the\n\t // various implementations.\n\t unsigned int m_type;\n\t\n\t // The number of bytes in this structure.\n\t TPIE_OS_SIZE_T m_headerLength;\n\t\n\t // The size of each item in the stream.\n\t TPIE_OS_SIZE_T m_itemSize;\n\t\n\t // The size of a physical block on the device this stream resides.\n\t TPIE_OS_SIZE_T m_osBlockSize;\n\t\n\t // Size in bytes of each logical block, if applicable.\n\t TPIE_OS_SIZE_T m_blockSize;\n\t\n\t // For all intents and purposes, the length of the stream in number\n\t // of items.\n\t TPIE_OS_OFFSET m_itemLogicalEOF;\n\t}", "parent": 9, "children": [13, 14], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 58, "column": 2}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 7}}, {"id": 14, "type": "type_identifier", "text": "stream_header", "parent": 12, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 21}}, {"id": 15, "type": "field_declaration", "text": "unsigned int m_magicNumber;", "parent": 12, "children": [16, 19], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 32}}, {"id": 16, "type": "sized_type_specifier", "text": "unsigned int", "parent": 15, "children": [17, 18], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 17}}, {"id": 17, "type": "unsigned", "text": "unsigned", "parent": 16, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 13}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 17}}, {"id": 19, "type": "field_identifier", "text": "m_magicNumber", "parent": 15, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 31}}, {"id": 20, "type": "field_declaration", "text": "unsigned int m_version;", "parent": 12, "children": [21, 24], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 28}}, {"id": 21, "type": "sized_type_specifier", "text": "unsigned int", "parent": 20, "children": [22, 23], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 17}}, {"id": 22, "type": "unsigned", "text": "unsigned", "parent": 21, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 13}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 17}}, {"id": 24, "type": "field_identifier", "text": "m_version", "parent": 20, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 27}}, {"id": 25, "type": "field_declaration", "text": "unsigned int m_type;", "parent": 12, "children": [26, 29], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 25}}, {"id": 26, "type": "sized_type_specifier", "text": "unsigned int", "parent": 25, "children": [27, 28], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 17}}, {"id": 27, "type": "unsigned", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 13}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 17}}, {"id": 29, "type": "field_identifier", "text": "m_type", "parent": 25, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 24}}, {"id": 30, "type": "field_declaration", "text": "TPIE_OS_SIZE_T m_headerLength;", "parent": 12, "children": [31, 32], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 35}}, {"id": 31, "type": "type_identifier", "text": "TPIE_OS_SIZE_T", "parent": 30, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 19}}, {"id": 32, "type": "field_identifier", "text": "m_headerLength", "parent": 30, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 34}}, {"id": 33, "type": "field_declaration", "text": "TPIE_OS_SIZE_T m_itemSize;", "parent": 12, "children": [34, 35], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 31}}, {"id": 34, "type": "type_identifier", "text": "TPIE_OS_SIZE_T", "parent": 33, "children": [], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 19}}, {"id": 35, "type": "field_identifier", "text": "m_itemSize", "parent": 33, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 30}}, {"id": 36, "type": "field_declaration", "text": "TPIE_OS_SIZE_T m_osBlockSize;", "parent": 12, "children": [37, 38], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 34}}, {"id": 37, "type": "type_identifier", "text": "TPIE_OS_SIZE_T", "parent": 36, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 19}}, {"id": 38, "type": "field_identifier", "text": "m_osBlockSize", "parent": 36, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 33}}, {"id": 39, "type": "field_declaration", "text": "TPIE_OS_SIZE_T m_blockSize;", "parent": 12, "children": [40, 41], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 32}}, {"id": 40, "type": "type_identifier", "text": "TPIE_OS_SIZE_T", "parent": 39, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 19}}, {"id": 41, "type": "field_identifier", "text": "m_blockSize", "parent": 39, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 31}}, {"id": 42, "type": "field_declaration", "text": "TPIE_OS_OFFSET m_itemLogicalEOF;", "parent": 12, "children": [43, 44], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 37}}, {"id": 43, "type": "type_identifier", "text": "TPIE_OS_OFFSET", "parent": 42, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 19}}, {"id": 44, "type": "field_identifier", "text": "m_itemLogicalEOF", "parent": 42, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 36}}, {"id": 45, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6, 9], "variables": [15, 20, 25, 30, 33, 36, 39, 42], "classes": [12, 13], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 8, 10, 11, 14, 16, 19, 21, 24, 26, 29, 31, 32, 34, 35, 37, 38, 40, 41, 43, 44, 45], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "stream_header", "text_snippet": "namespace tpie {\n\n namespace bte {\n\n// BTE stream header info.\n\tstruct stream_header {\n\t\n\t // "}, {"node_id": 9, "universal_type": "function", "name": "stream_header", "text_snippet": "namespace bte {\n\n// BTE stream header info.\n\tstruct stream_header {\n\t\n\t // Unique header identifi"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "stream_header", "text_snippet": "struct stream_header {\n\t\n\t // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n\t "}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: \"stroustrup\"; -*-\n// vi:set ts=4 sts=4 sw=4 noet :\n// Copyright 2008, The TPIE development team\n// \n// This file is part of TPIE.\n// \n// TPIE is free software: you can redistribute it and/or modify it under\n// the terms of the GNU Lesser General Public License as published by the\n// Free Software Foundation, either version 3 of the License, or (at your\n// option) any later version.\n// \n// TPIE is distributed in the hope that it will be useful, but WITHOUT ANY\n// WARRANTY; without even the implied warranty of MERCHANTABILITY or\n// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public\n// License for more details.\n// \n// You should have received a copy of the GNU Lesser General Public License\n// along with TPIE. If not, see <http://www.gnu.org/licenses/>\n\n#ifndef _TPIE_BTE_STREAM_HEADER_H\n#define _TPIE_BTE_STREAM_HEADER_H\n\nnamespace tpie {\n\n namespace bte {\n\n// BTE stream header info.\n\tstruct stream_header {\n\t\n\t // Unique header identifier. Set to BTE_STREAM_HEADER_MAGIC_NUMBER.\n\t unsigned int m_magicNumber;\n\t\n\t // Should be 2 for current version (version 1 has been deprecated).\n\t unsigned int m_version;\n\t\n\t // The type of BTE_STREAM that created this header. Not all types of\n\t // BTE's are readable by all BTE implementations. For example,\n\t // BTE_STREAM_STDIO streams are not readable by either\n\t // BTE_STREAM_UFS or BTE_STREAM_MMAP implementations. The value 0 is\n\t // reserved for the base class. Use numbers bigger than 0 for the\n\t // various implementations.\n\t unsigned int m_type;\n\t\n\t // The number of bytes in this structure.\n\t TPIE_OS_SIZE_T m_headerLength;\n\t\n\t // The size of each item in the stream.\n\t TPIE_OS_SIZE_T m_itemSize;\n\t\n\t // The size of a physical block on the device this stream resides.\n\t TPIE_OS_SIZE_T m_osBlockSize;\n\t\n\t // Size in bytes of each logical block, if applicable.\n\t TPIE_OS_SIZE_T m_blockSize;\n\t\n\t // For all intents and purposes, the length of the stream in number\n\t // of items.\n\t TPIE_OS_OFFSET m_itemLogicalEOF;\n\t};\n \n } // bte namespace\n\n} // tpie namespace \n\n#endif // _TPIE_BTE_STREAM_HEADER_H\n\n"}
80,413
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "utils.h" #define INTEGER 0 #define VARCHAR 1 #define TIMESTAMP 2 #define NUMERIC 3 #define MAXLINESIZE 1024 int getyear(int date); int getmonth(int date); int getday(int date); void table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes); int main(int argc, char **argv) { int i,length; char string[MAXLINESIZE], *loc; Stringlist slist; Stringlist wlist; long long numrows; int numcols; int col_types[100]; double col_mins[100],col_maxes[100]; char punctuation[8] = { ' ', '.', '/', '\\', '(', ')', ',', '\0' }; srand(12); FILE *infile; if ((argc-1) < 2) { printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0]); exit(1); } if ( (infile=fopen(argv[1],"r")) == NULL ) { printf("error opening file %s for reading\n",argv[1]); exit(2); } if (sscanf(argv[2],"%lli",&numrows) != 1) { printf("error scanning number of rows from command line: %s\n",argv[2]); exit(2); } //printf("Number of rows to be generated: %ld\n",numrows); //exit(0); slist.list=NULL; slist.used_size=0; slist.chunksize=100; slist.alloc_size=0; while ( (fgets(string, MAXLINESIZE, infile)) != NULL) { //Find the number of characters in the string, includes the newline but not the \0 length = strlen(string); //Trim off the trailing newline string[length-1]='\0'; //Ensure that there's sufficient space for another string in the list slist.used_size++; alloc_more_stringlist(&slist,slist.used_size); //Allocate space for the length of the string *(slist.pos)=(char *)malloc(sizeof(char)*length); //Copy the string into the list strcpy(*(slist.pos),string); //Increment the string pointer to the next string in the list slist.pos++; } //Reset the string pointer slist.pos = slist.list; //Initialize the wlist wlist.list=NULL; wlist.used_size=0; wlist.chunksize=100; wlist.alloc_size=0; //Parse the string list into words for (i=0; i<slist.used_size; i++) { //Ensure that there's sufficient space for another word in the list wlist.used_size++; alloc_more_stringlist(&wlist,wlist.used_size); loc = strtok(slist.list[i],(char *)punctuation); if (loc != NULL) { //Allocate space for the length of the word length = strlen(loc)+1; *(wlist.pos)=(char *)malloc(sizeof(char)*length); strcpy(*(wlist.pos),loc); wlist.pos++; } while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) { //Ensure that there's sufficient space for another word in the list wlist.used_size++; alloc_more_stringlist(&wlist,wlist.used_size); //Allocate space for the length of the word length = strlen(loc)+1; *(wlist.pos)=(char *)malloc(sizeof(char)*length); strcpy(*(wlist.pos),loc); wlist.pos++; } } /* //Print the wordlist for (i=0; i<wlist.used_size; i++) { //printf("String: \"%s\"\n",*(slist.pos)); //slist.pos++; printf("String: \"%s\"\n",wlist.list[(int)randomrange(0,wlist.used_size-1)]); //printf("String: \"%s\"\n",wlist.list[i]); } */ /* * Setup the table characteristics * numcols = number of columns * arrays of size numcols: * column_types = type of column, mapped to integers: * INTEGER * VARCHAR * NUMERIC * TIMESTAMP * column_mins = max value of columns * column_maxes = max value of columns */ numcols = 15; col_types[0] = TIMESTAMP; col_mins[0] = 20040101; col_maxes[0] = 20041231; col_types[1] = VARCHAR; col_mins[1] = 1; col_maxes[1] = 750/100; col_types[2] = VARCHAR; col_mins[2] = 1; col_maxes[2] = 100/100; col_types[3] = INTEGER; col_mins[3] = 0; col_maxes[3] = 0; col_types[4] = INTEGER; col_mins[4] = 1; col_maxes[4] = 40; col_types[5] = INTEGER; col_mins[5] = 0; col_maxes[5] = 0; col_types[6] = INTEGER; col_mins[6] = 1; col_maxes[6] = 4; col_types[7] = NUMERIC; col_mins[7] = 0.02; col_maxes[7] = 0.8; col_types[8] = VARCHAR; col_mins[8] = 1; col_maxes[8] = 1500/300; col_types[9] = VARCHAR; col_mins[9] = 1; col_maxes[9] = 1500/300; col_types[10] = VARCHAR; col_mins[10] = 1; col_maxes[10] = 1500/300; col_types[11] = INTEGER; col_mins[11] = 0; col_maxes[11] = 2; col_types[12] = INTEGER; col_mins[12] = 0; col_maxes[12] = 4; col_types[13] = VARCHAR; col_mins[13] = 1; col_maxes[13] = 1500/300; col_types[14] = VARCHAR; col_mins[14] = 1; col_maxes[14] = 1500/300; table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes); exit(0); } void table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes) { int itemp; int i,j,ii, nwords; int year, month, day, hour, minute, second; int minyear, minmonth, minday; int maxyear, maxmonth, maxday; int leaps[] = LEAPS; int nonleaps[] = NONLEAPS; //printf("Number of rows to be generated: %ld\n",nrows); //exit(0); for (i=0; i<nrows; i++) { for (j=0; j<numcols; j++) { switch (column_types[j]) { case INTEGER: //printf("column_type[%d] = INTEGER\n",j+1); printf("%d",(int)randomrange(column_mins[j],column_maxes[j])); break;; case VARCHAR: //printf("column_type[%d] = VARCHAR\n",j+1); nwords = (int)randomrange(column_mins[j],column_maxes[j]); for (ii=0; ii<nwords ; ii++) { itemp = (int)randomrange(0,wlist.used_size-1); printf("%s",wlist.list[itemp]); if (ii != (nwords-1)) printf(" "); } break;; case TIMESTAMP: //printf("column_type[%d] = TIMESTAMP\n",j+1); minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]); minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]); minday = getday(column_mins[j]); maxday = getday(column_maxes[j]); year = (int)randomrange(minyear,maxyear); month = (int)randomrange(minmonth,maxmonth); day = (int)randomrange(minday,maxday); if (ISLEAP(year)) { day = MIN(leaps[month-1],day); } else { day = MIN(nonleaps[month-1],day); } hour = (int)randomrange(0,23); minute = (int)randomrange(0,59); second = (int)randomrange(0,59); printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second); break;; case NUMERIC: //printf("column_type[%d] = NUMERIC\n",j+1); printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j])); break;; } if (j != (numcols-1)) printf("|"); } //End of numcolumns printf("\n"); } } int getyear(int date) { return date/10000; } int getmonth(int date) { return (date-10000*getyear(date))/100; } int getday(int date) { return (date-10000*getyear(date)-100*getmonth(date)); }
35.69
188
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include "utils.h"\n\n#define INTEGER 0\n#define VARCHAR 1\n#define TIMESTAMP 2\n#define NUMERIC 3\n\n#define MAXLINESIZE 1024\n\nint getyear(int date);\nint getmonth(int date);\nint getday(int date);\n\nvoid table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes);\n\nint main(int argc, char **argv) {\n \n int i,length;\n\n char string[MAXLINESIZE], *loc;\n Stringlist slist;\n Stringlist wlist;\n\n long long numrows;\n\n int numcols;\n int col_types[100];\n double col_mins[100],col_maxes[100];\n\n char punctuation[8] = { ' ', '.', '/', '\\', '(', ')', ',', '\0' };\n\n srand(12);\n\n FILE *infile;\n\n if ((argc-1) < 2) {\n printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0]);\n exit(1);\n }\n\n if ( (infile=fopen(argv[1],"r")) == NULL ) {\n printf("error opening file %s for reading\n",argv[1]);\n exit(2);\n } \n\n if (sscanf(argv[2],"%lli",&numrows) != 1) {\n printf("error scanning number of rows from command line: %s\n",argv[2]);\n exit(2);\n } \n //printf("Number of rows to be generated: %ld\n",numrows);\n //exit(0);\n\n slist.list=NULL; slist.used_size=0; slist.chunksize=100; slist.alloc_size=0;\n\n while ( (fgets(string, MAXLINESIZE, infile)) != NULL) {\n\n //Find the number of characters in the string, includes the newline but not the \0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }\n\n //Reset the string pointer\n slist.pos = slist.list;\n\n //Initialize the wlist\n wlist.list=NULL; wlist.used_size=0; wlist.chunksize=100; wlist.alloc_size=0;\n\n //Parse the string list into words\n for (i=0; i<slist.used_size; i++) {\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }\n\n /*\n //Print the wordlist\n for (i=0; i<wlist.used_size; i++) {\n //printf("String: \"%s\"\n",*(slist.pos));\n //slist.pos++;\n printf("String: \"%s\"\n",wlist.list[(int)randomrange(0,wlist.used_size-1)]);\n //printf("String: \"%s\"\n",wlist.list[i]);\n }\n */\n\n /*\n * Setup the table characteristics\n * numcols = number of columns\n * arrays of size numcols:\n * column_types = type of column, mapped to integers:\n * INTEGER\n * VARCHAR\n * NUMERIC\n * TIMESTAMP\n * column_mins = max value of columns\n * column_maxes = max value of columns\n */\n\n numcols = 15;\n col_types[0] = TIMESTAMP; col_mins[0] = 20040101; col_maxes[0] = 20041231;\n col_types[1] = VARCHAR; col_mins[1] = 1; col_maxes[1] = 750/100;\n col_types[2] = VARCHAR; col_mins[2] = 1; col_maxes[2] = 100/100;\n col_types[3] = INTEGER; col_mins[3] = 0; col_maxes[3] = 0;\n col_types[4] = INTEGER; col_mins[4] = 1; col_maxes[4] = 40;\n col_types[5] = INTEGER; col_mins[5] = 0; col_maxes[5] = 0;\n col_types[6] = INTEGER; col_mins[6] = 1; col_maxes[6] = 4;\n col_types[7] = NUMERIC; col_mins[7] = 0.02; col_maxes[7] = 0.8;\n col_types[8] = VARCHAR; col_mins[8] = 1; col_maxes[8] = 1500/300;\n col_types[9] = VARCHAR; col_mins[9] = 1; col_maxes[9] = 1500/300;\n col_types[10] = VARCHAR; col_mins[10] = 1; col_maxes[10] = 1500/300;\n col_types[11] = INTEGER; col_mins[11] = 0; col_maxes[11] = 2;\n col_types[12] = INTEGER; col_mins[12] = 0; col_maxes[12] = 4;\n col_types[13] = VARCHAR; col_mins[13] = 1; col_maxes[13] = 1500/300;\n col_types[14] = VARCHAR; col_mins[14] = 1; col_maxes[14] = 1500/300;\n\n\n table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes); \n\n exit(0);\n\n}\n\nvoid table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes) {\n\n int itemp;\n int i,j,ii, nwords;\n int year, month, day, hour, minute, second;\n int minyear, minmonth, minday;\n int maxyear, maxmonth, maxday;\n\n int leaps[] = LEAPS;\n int nonleaps[] = NONLEAPS;\n\n //printf("Number of rows to be generated: %ld\n",nrows);\n //exit(0);\n\n for (i=0; i<nrows; i++) {\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }\n if (j != (numcols-1)) printf("|");\n\n } //End of numcolumns\n printf("\n");\n\n }\n\n}\n\nint getyear(int date) {\n return date/10000;\n}\n\nint getmonth(int date) {\n return (date-10000*getyear(date))/100;\n}\n\nint getday(int date) {\n return (date-10000*getyear(date)-100*getmonth(date));\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 "utils.h"\n" (#include) "#include" (string_literal) ""utils.h"" (") """ (string_content) "utils.h" (") """ (preproc_def) "#define INTEGER 0\n" (#define) "#define" (identifier) "INTEGER" (preproc_arg) "0" (preproc_def) "#define VARCHAR 1\n" (#define) "#define" (identifier) "VARCHAR" (preproc_arg) "1" (preproc_def) "#define TIMESTAMP 2\n" (#define) "#define" (identifier) "TIMESTAMP" (preproc_arg) "2" (preproc_def) "#define NUMERIC 3\n" (#define) "#define" (identifier) "NUMERIC" (preproc_arg) "3" (preproc_def) "#define MAXLINESIZE 1024\n" (#define) "#define" (identifier) "MAXLINESIZE" (preproc_arg) "1024" (declaration) "int getyear(int date);" (primitive_type) "int" (function_declarator) "getyear(int date)" (identifier) "getyear" (parameter_list) "(int date)" (() "(" (parameter_declaration) "int date" (primitive_type) "int" (identifier) "date" ()) ")" (;) ";" (declaration) "int getmonth(int date);" (primitive_type) "int" (function_declarator) "getmonth(int date)" (identifier) "getmonth" (parameter_list) "(int date)" (() "(" (parameter_declaration) "int date" (primitive_type) "int" (identifier) "date" ()) ")" (;) ";" (declaration) "int getday(int date);" (primitive_type) "int" (function_declarator) "getday(int date)" (identifier) "getday" (parameter_list) "(int date)" (() "(" (parameter_declaration) "int date" (primitive_type) "int" (identifier) "date" ()) ")" (;) ";" (declaration) "void table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes);" (primitive_type) "void" (function_declarator) "table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)" (identifier) "table_gen" (parameter_list) "(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)" (() "(" (parameter_declaration) "long long nrows" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "nrows" (,) "," (parameter_declaration) "Stringlist wlist" (type_identifier) "Stringlist" (identifier) "wlist" (,) "," (parameter_declaration) "int numcols" (primitive_type) "int" (identifier) "numcols" (,) "," (parameter_declaration) "int *column_types" (primitive_type) "int" (pointer_declarator) "*column_types" (*) "*" (identifier) "column_types" (,) "," (parameter_declaration) "double *column_mins" (primitive_type) "double" (pointer_declarator) "*column_mins" (*) "*" (identifier) "column_mins" (,) "," (parameter_declaration) "double *column_maxes" (primitive_type) "double" (pointer_declarator) "*column_maxes" (*) "*" (identifier) "column_maxes" ()) ")" (;) ";" (function_definition) "int main(int argc, char **argv) {\n \n int i,length;\n\n char string[MAXLINESIZE], *loc;\n Stringlist slist;\n Stringlist wlist;\n\n long long numrows;\n\n int numcols;\n int col_types[100];\n double col_mins[100],col_maxes[100];\n\n char punctuation[8] = { ' ', '.', '/', '\\', '(', ')', ',', '\0' };\n\n srand(12);\n\n FILE *infile;\n\n if ((argc-1) < 2) {\n printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0]);\n exit(1);\n }\n\n if ( (infile=fopen(argv[1],"r")) == NULL ) {\n printf("error opening file %s for reading\n",argv[1]);\n exit(2);\n } \n\n if (sscanf(argv[2],"%lli",&numrows) != 1) {\n printf("error scanning number of rows from command line: %s\n",argv[2]);\n exit(2);\n } \n //printf("Number of rows to be generated: %ld\n",numrows);\n //exit(0);\n\n slist.list=NULL; slist.used_size=0; slist.chunksize=100; slist.alloc_size=0;\n\n while ( (fgets(string, MAXLINESIZE, infile)) != NULL) {\n\n //Find the number of characters in the string, includes the newline but not the \0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }\n\n //Reset the string pointer\n slist.pos = slist.list;\n\n //Initialize the wlist\n wlist.list=NULL; wlist.used_size=0; wlist.chunksize=100; wlist.alloc_size=0;\n\n //Parse the string list into words\n for (i=0; i<slist.used_size; i++) {\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }\n\n /*\n //Print the wordlist\n for (i=0; i<wlist.used_size; i++) {\n //printf("String: \"%s\"\n",*(slist.pos));\n //slist.pos++;\n printf("String: \"%s\"\n",wlist.list[(int)randomrange(0,wlist.used_size-1)]);\n //printf("String: \"%s\"\n",wlist.list[i]);\n }\n */\n\n /*\n * Setup the table characteristics\n * numcols = number of columns\n * arrays of size numcols:\n * column_types = type of column, mapped to integers:\n * INTEGER\n * VARCHAR\n * NUMERIC\n * TIMESTAMP\n * column_mins = max value of columns\n * column_maxes = max value of columns\n */\n\n numcols = 15;\n col_types[0] = TIMESTAMP; col_mins[0] = 20040101; col_maxes[0] = 20041231;\n col_types[1] = VARCHAR; col_mins[1] = 1; col_maxes[1] = 750/100;\n col_types[2] = VARCHAR; col_mins[2] = 1; col_maxes[2] = 100/100;\n col_types[3] = INTEGER; col_mins[3] = 0; col_maxes[3] = 0;\n col_types[4] = INTEGER; col_mins[4] = 1; col_maxes[4] = 40;\n col_types[5] = INTEGER; col_mins[5] = 0; col_maxes[5] = 0;\n col_types[6] = INTEGER; col_mins[6] = 1; col_maxes[6] = 4;\n col_types[7] = NUMERIC; col_mins[7] = 0.02; col_maxes[7] = 0.8;\n col_types[8] = VARCHAR; col_mins[8] = 1; col_maxes[8] = 1500/300;\n col_types[9] = VARCHAR; col_mins[9] = 1; col_maxes[9] = 1500/300;\n col_types[10] = VARCHAR; col_mins[10] = 1; col_maxes[10] = 1500/300;\n col_types[11] = INTEGER; col_mins[11] = 0; col_maxes[11] = 2;\n col_types[12] = INTEGER; col_mins[12] = 0; col_maxes[12] = 4;\n col_types[13] = VARCHAR; col_mins[13] = 1; col_maxes[13] = 1500/300;\n col_types[14] = VARCHAR; col_mins[14] = 1; col_maxes[14] = 1500/300;\n\n\n table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes); \n\n exit(0);\n\n}" (primitive_type) "int" (function_declarator) "main(int argc, char **argv)" (identifier) "main" (parameter_list) "(int argc, char **argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char **argv" (primitive_type) "char" (pointer_declarator) "**argv" (*) "*" (pointer_declarator) "*argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n \n int i,length;\n\n char string[MAXLINESIZE], *loc;\n Stringlist slist;\n Stringlist wlist;\n\n long long numrows;\n\n int numcols;\n int col_types[100];\n double col_mins[100],col_maxes[100];\n\n char punctuation[8] = { ' ', '.', '/', '\\', '(', ')', ',', '\0' };\n\n srand(12);\n\n FILE *infile;\n\n if ((argc-1) < 2) {\n printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0]);\n exit(1);\n }\n\n if ( (infile=fopen(argv[1],"r")) == NULL ) {\n printf("error opening file %s for reading\n",argv[1]);\n exit(2);\n } \n\n if (sscanf(argv[2],"%lli",&numrows) != 1) {\n printf("error scanning number of rows from command line: %s\n",argv[2]);\n exit(2);\n } \n //printf("Number of rows to be generated: %ld\n",numrows);\n //exit(0);\n\n slist.list=NULL; slist.used_size=0; slist.chunksize=100; slist.alloc_size=0;\n\n while ( (fgets(string, MAXLINESIZE, infile)) != NULL) {\n\n //Find the number of characters in the string, includes the newline but not the \0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }\n\n //Reset the string pointer\n slist.pos = slist.list;\n\n //Initialize the wlist\n wlist.list=NULL; wlist.used_size=0; wlist.chunksize=100; wlist.alloc_size=0;\n\n //Parse the string list into words\n for (i=0; i<slist.used_size; i++) {\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }\n\n /*\n //Print the wordlist\n for (i=0; i<wlist.used_size; i++) {\n //printf("String: \"%s\"\n",*(slist.pos));\n //slist.pos++;\n printf("String: \"%s\"\n",wlist.list[(int)randomrange(0,wlist.used_size-1)]);\n //printf("String: \"%s\"\n",wlist.list[i]);\n }\n */\n\n /*\n * Setup the table characteristics\n * numcols = number of columns\n * arrays of size numcols:\n * column_types = type of column, mapped to integers:\n * INTEGER\n * VARCHAR\n * NUMERIC\n * TIMESTAMP\n * column_mins = max value of columns\n * column_maxes = max value of columns\n */\n\n numcols = 15;\n col_types[0] = TIMESTAMP; col_mins[0] = 20040101; col_maxes[0] = 20041231;\n col_types[1] = VARCHAR; col_mins[1] = 1; col_maxes[1] = 750/100;\n col_types[2] = VARCHAR; col_mins[2] = 1; col_maxes[2] = 100/100;\n col_types[3] = INTEGER; col_mins[3] = 0; col_maxes[3] = 0;\n col_types[4] = INTEGER; col_mins[4] = 1; col_maxes[4] = 40;\n col_types[5] = INTEGER; col_mins[5] = 0; col_maxes[5] = 0;\n col_types[6] = INTEGER; col_mins[6] = 1; col_maxes[6] = 4;\n col_types[7] = NUMERIC; col_mins[7] = 0.02; col_maxes[7] = 0.8;\n col_types[8] = VARCHAR; col_mins[8] = 1; col_maxes[8] = 1500/300;\n col_types[9] = VARCHAR; col_mins[9] = 1; col_maxes[9] = 1500/300;\n col_types[10] = VARCHAR; col_mins[10] = 1; col_maxes[10] = 1500/300;\n col_types[11] = INTEGER; col_mins[11] = 0; col_maxes[11] = 2;\n col_types[12] = INTEGER; col_mins[12] = 0; col_maxes[12] = 4;\n col_types[13] = VARCHAR; col_mins[13] = 1; col_maxes[13] = 1500/300;\n col_types[14] = VARCHAR; col_mins[14] = 1; col_maxes[14] = 1500/300;\n\n\n table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes); \n\n exit(0);\n\n}" ({) "{" (declaration) "int i,length;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "length" (;) ";" (declaration) "char string[MAXLINESIZE], *loc;" (primitive_type) "char" (array_declarator) "string[MAXLINESIZE]" (identifier) "string" ([) "[" (identifier) "MAXLINESIZE" (]) "]" (,) "," (pointer_declarator) "*loc" (*) "*" (identifier) "loc" (;) ";" (declaration) "Stringlist slist;" (type_identifier) "Stringlist" (identifier) "slist" (;) ";" (declaration) "Stringlist wlist;" (type_identifier) "Stringlist" (identifier) "wlist" (;) ";" (declaration) "long long numrows;" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "numrows" (;) ";" (declaration) "int numcols;" (primitive_type) "int" (identifier) "numcols" (;) ";" (declaration) "int col_types[100];" (primitive_type) "int" (array_declarator) "col_types[100]" (identifier) "col_types" ([) "[" (number_literal) "100" (]) "]" (;) ";" (declaration) "double col_mins[100],col_maxes[100];" (primitive_type) "double" (array_declarator) "col_mins[100]" (identifier) "col_mins" ([) "[" (number_literal) "100" (]) "]" (,) "," (array_declarator) "col_maxes[100]" (identifier) "col_maxes" ([) "[" (number_literal) "100" (]) "]" (;) ";" (declaration) "char punctuation[8] = { ' ', '.', '/', '\\', '(', ')', ',', '\0' };" (primitive_type) "char" (init_declarator) "punctuation[8] = { ' ', '.', '/', '\\', '(', ')', ',', '\0' }" (array_declarator) "punctuation[8]" (identifier) "punctuation" ([) "[" (number_literal) "8" (]) "]" (=) "=" (initializer_list) "{ ' ', '.', '/', '\\', '(', ')', ',', '\0' }" ({) "{" (char_literal) "' '" (') "'" (character) " " (') "'" (,) "," (char_literal) "'.'" (') "'" (character) "." (') "'" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" (,) "," (char_literal) "'\\'" (') "'" (escape_sequence) "\\" (') "'" (,) "," (char_literal) "'('" (') "'" (character) "(" (') "'" (,) "," (char_literal) "')'" (') "'" (character) ")" (') "'" (,) "," (char_literal) "','" (') "'" (character) "," (') "'" (,) "," (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (}) "}" (;) ";" (expression_statement) "srand(12);" (call_expression) "srand(12)" (identifier) "srand" (argument_list) "(12)" (() "(" (number_literal) "12" ()) ")" (;) ";" (declaration) "FILE *infile;" (type_identifier) "FILE" (pointer_declarator) "*infile" (*) "*" (identifier) "infile" (;) ";" (if_statement) "if ((argc-1) < 2) {\n printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0]);\n exit(1);\n }" (if) "if" (parenthesized_expression) "((argc-1) < 2)" (() "(" (binary_expression) "(argc-1) < 2" (parenthesized_expression) "(argc-1)" (() "(" (binary_expression) "argc-1" (identifier) "argc" (-) "-" (number_literal) "1" ()) ")" (<) "<" (number_literal) "2" ()) ")" (compound_statement) "{\n printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0]);\n exit(1);\n }" ({) "{" (expression_statement) "printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0]);" (call_expression) "printf("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0])" (identifier) "printf" (argument_list) "("usage: %s text_seed_input_file_name number_of_rows_to_generate\n",argv[0])" (() "(" (string_literal) ""usage: %s text_seed_input_file_name number_of_rows_to_generate\n"" (") """ (string_content) "usage: %s text_seed_input_file_name number_of_rows_to_generate" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (if_statement) "if ( (infile=fopen(argv[1],"r")) == NULL ) {\n printf("error opening file %s for reading\n",argv[1]);\n exit(2);\n }" (if) "if" (parenthesized_expression) "( (infile=fopen(argv[1],"r")) == NULL )" (() "(" (binary_expression) "(infile=fopen(argv[1],"r")) == NULL" (parenthesized_expression) "(infile=fopen(argv[1],"r"))" (() "(" (assignment_expression) "infile=fopen(argv[1],"r")" (identifier) "infile" (=) "=" (call_expression) "fopen(argv[1],"r")" (identifier) "fopen" (argument_list) "(argv[1],"r")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("error opening file %s for reading\n",argv[1]);\n exit(2);\n }" ({) "{" (expression_statement) "printf("error opening file %s for reading\n",argv[1]);" (call_expression) "printf("error opening file %s for reading\n",argv[1])" (identifier) "printf" (argument_list) "("error opening file %s for reading\n",argv[1])" (() "(" (string_literal) ""error opening file %s for reading\n"" (") """ (string_content) "error opening file %s for reading" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" ()) ")" (;) ";" (expression_statement) "exit(2);" (call_expression) "exit(2)" (identifier) "exit" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (;) ";" (}) "}" (if_statement) "if (sscanf(argv[2],"%lli",&numrows) != 1) {\n printf("error scanning number of rows from command line: %s\n",argv[2]);\n exit(2);\n }" (if) "if" (parenthesized_expression) "(sscanf(argv[2],"%lli",&numrows) != 1)" (() "(" (binary_expression) "sscanf(argv[2],"%lli",&numrows) != 1" (call_expression) "sscanf(argv[2],"%lli",&numrows)" (identifier) "sscanf" (argument_list) "(argv[2],"%lli",&numrows)" (() "(" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" (,) "," (string_literal) ""%lli"" (") """ (string_content) "%lli" (") """ (,) "," (pointer_expression) "&numrows" (&) "&" (identifier) "numrows" ()) ")" (!=) "!=" (number_literal) "1" ()) ")" (compound_statement) "{\n printf("error scanning number of rows from command line: %s\n",argv[2]);\n exit(2);\n }" ({) "{" (expression_statement) "printf("error scanning number of rows from command line: %s\n",argv[2]);" (call_expression) "printf("error scanning number of rows from command line: %s\n",argv[2])" (identifier) "printf" (argument_list) "("error scanning number of rows from command line: %s\n",argv[2])" (() "(" (string_literal) ""error scanning number of rows from command line: %s\n"" (") """ (string_content) "error scanning number of rows from command line: %s" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" ()) ")" (;) ";" (expression_statement) "exit(2);" (call_expression) "exit(2)" (identifier) "exit" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (;) ";" (}) "}" (comment) "//printf("Number of rows to be generated: %ld\n",numrows);" (comment) "//exit(0);" (expression_statement) "slist.list=NULL;" (assignment_expression) "slist.list=NULL" (field_expression) "slist.list" (identifier) "slist" (.) "." (field_identifier) "list" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "slist.used_size=0;" (assignment_expression) "slist.used_size=0" (field_expression) "slist.used_size" (identifier) "slist" (.) "." (field_identifier) "used_size" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "slist.chunksize=100;" (assignment_expression) "slist.chunksize=100" (field_expression) "slist.chunksize" (identifier) "slist" (.) "." (field_identifier) "chunksize" (=) "=" (number_literal) "100" (;) ";" (expression_statement) "slist.alloc_size=0;" (assignment_expression) "slist.alloc_size=0" (field_expression) "slist.alloc_size" (identifier) "slist" (.) "." (field_identifier) "alloc_size" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while ( (fgets(string, MAXLINESIZE, infile)) != NULL) {\n\n //Find the number of characters in the string, includes the newline but not the \0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }" (while) "while" (parenthesized_expression) "( (fgets(string, MAXLINESIZE, infile)) != NULL)" (() "(" (binary_expression) "(fgets(string, MAXLINESIZE, infile)) != NULL" (parenthesized_expression) "(fgets(string, MAXLINESIZE, infile))" (() "(" (call_expression) "fgets(string, MAXLINESIZE, infile)" (identifier) "fgets" (argument_list) "(string, MAXLINESIZE, infile)" (() "(" (identifier) "string" (,) "," (identifier) "MAXLINESIZE" (,) "," (identifier) "infile" ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n\n //Find the number of characters in the string, includes the newline but not the \0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }" ({) "{" (comment) "//Find the number of characters in the string, includes the newline but not the \0" (expression_statement) "length = strlen(string);" (assignment_expression) "length = strlen(string)" (identifier) "length" (=) "=" (call_expression) "strlen(string)" (identifier) "strlen" (argument_list) "(string)" (() "(" (identifier) "string" ()) ")" (;) ";" (comment) "//Trim off the trailing newline" (expression_statement) "string[length-1]='\0';" (assignment_expression) "string[length-1]='\0'" (subscript_expression) "string[length-1]" (identifier) "string" ([) "[" (binary_expression) "length-1" (identifier) "length" (-) "-" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (comment) "//Ensure that there's sufficient space for another string in the list" (expression_statement) "slist.used_size++;" (update_expression) "slist.used_size++" (field_expression) "slist.used_size" (identifier) "slist" (.) "." (field_identifier) "used_size" (++) "++" (;) ";" (expression_statement) "alloc_more_stringlist(&slist,slist.used_size);" (call_expression) "alloc_more_stringlist(&slist,slist.used_size)" (identifier) "alloc_more_stringlist" (argument_list) "(&slist,slist.used_size)" (() "(" (pointer_expression) "&slist" (&) "&" (identifier) "slist" (,) "," (field_expression) "slist.used_size" (identifier) "slist" (.) "." (field_identifier) "used_size" ()) ")" (;) ";" (comment) "//Allocate space for the length of the string" (expression_statement) "*(slist.pos)=(char *)malloc(sizeof(char)*length);" (assignment_expression) "*(slist.pos)=(char *)malloc(sizeof(char)*length)" (pointer_expression) "*(slist.pos)" (*) "*" (parenthesized_expression) "(slist.pos)" (() "(" (field_expression) "slist.pos" (identifier) "slist" (.) "." (field_identifier) "pos" ()) ")" (=) "=" (cast_expression) "(char *)malloc(sizeof(char)*length)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(char)*length)" (identifier) "malloc" (argument_list) "(sizeof(char)*length)" (() "(" (binary_expression) "sizeof(char)*length" (sizeof_expression) "sizeof(char)" (sizeof) "sizeof" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" (*) "*" (identifier) "length" ()) ")" (;) ";" (comment) "//Copy the string into the list" (expression_statement) "strcpy(*(slist.pos),string);" (call_expression) "strcpy(*(slist.pos),string)" (identifier) "strcpy" (argument_list) "(*(slist.pos),string)" (() "(" (pointer_expression) "*(slist.pos)" (*) "*" (parenthesized_expression) "(slist.pos)" (() "(" (field_expression) "slist.pos" (identifier) "slist" (.) "." (field_identifier) "pos" ()) ")" (,) "," (identifier) "string" ()) ")" (;) ";" (comment) "//Increment the string pointer to the next string in the list" (expression_statement) "slist.pos++;" (update_expression) "slist.pos++" (field_expression) "slist.pos" (identifier) "slist" (.) "." (field_identifier) "pos" (++) "++" (;) ";" (}) "}" (comment) "//Reset the string pointer" (expression_statement) "slist.pos = slist.list;" (assignment_expression) "slist.pos = slist.list" (field_expression) "slist.pos" (identifier) "slist" (.) "." (field_identifier) "pos" (=) "=" (field_expression) "slist.list" (identifier) "slist" (.) "." (field_identifier) "list" (;) ";" (comment) "//Initialize the wlist" (expression_statement) "wlist.list=NULL;" (assignment_expression) "wlist.list=NULL" (field_expression) "wlist.list" (identifier) "wlist" (.) "." (field_identifier) "list" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "wlist.used_size=0;" (assignment_expression) "wlist.used_size=0" (field_expression) "wlist.used_size" (identifier) "wlist" (.) "." (field_identifier) "used_size" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "wlist.chunksize=100;" (assignment_expression) "wlist.chunksize=100" (field_expression) "wlist.chunksize" (identifier) "wlist" (.) "." (field_identifier) "chunksize" (=) "=" (number_literal) "100" (;) ";" (expression_statement) "wlist.alloc_size=0;" (assignment_expression) "wlist.alloc_size=0" (field_expression) "wlist.alloc_size" (identifier) "wlist" (.) "." (field_identifier) "alloc_size" (=) "=" (number_literal) "0" (;) ";" (comment) "//Parse the string list into words" (for_statement) "for (i=0; i<slist.used_size; i++) {\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<slist.used_size" (identifier) "i" (<) "<" (field_expression) "slist.used_size" (identifier) "slist" (.) "." (field_identifier) "used_size" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }" ({) "{" (comment) "//Ensure that there's sufficient space for another word in the list" (expression_statement) "wlist.used_size++;" (update_expression) "wlist.used_size++" (field_expression) "wlist.used_size" (identifier) "wlist" (.) "." (field_identifier) "used_size" (++) "++" (;) ";" (expression_statement) "alloc_more_stringlist(&wlist,wlist.used_size);" (call_expression) "alloc_more_stringlist(&wlist,wlist.used_size)" (identifier) "alloc_more_stringlist" (argument_list) "(&wlist,wlist.used_size)" (() "(" (pointer_expression) "&wlist" (&) "&" (identifier) "wlist" (,) "," (field_expression) "wlist.used_size" (identifier) "wlist" (.) "." (field_identifier) "used_size" ()) ")" (;) ";" (expression_statement) "loc = strtok(slist.list[i],(char *)punctuation);" (assignment_expression) "loc = strtok(slist.list[i],(char *)punctuation)" (identifier) "loc" (=) "=" (call_expression) "strtok(slist.list[i],(char *)punctuation)" (identifier) "strtok" (argument_list) "(slist.list[i],(char *)punctuation)" (() "(" (subscript_expression) "slist.list[i]" (field_expression) "slist.list" (identifier) "slist" (.) "." (field_identifier) "list" ([) "[" (identifier) "i" (]) "]" (,) "," (cast_expression) "(char *)punctuation" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "punctuation" ()) ")" (;) ";" (if_statement) "if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }" (if) "if" (parenthesized_expression) "(loc != NULL)" (() "(" (binary_expression) "loc != NULL" (identifier) "loc" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }" ({) "{" (comment) "//Allocate space for the length of the word" (expression_statement) "length = strlen(loc)+1;" (assignment_expression) "length = strlen(loc)+1" (identifier) "length" (=) "=" (binary_expression) "strlen(loc)+1" (call_expression) "strlen(loc)" (identifier) "strlen" (argument_list) "(loc)" (() "(" (identifier) "loc" ()) ")" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "*(wlist.pos)=(char *)malloc(sizeof(char)*length);" (assignment_expression) "*(wlist.pos)=(char *)malloc(sizeof(char)*length)" (pointer_expression) "*(wlist.pos)" (*) "*" (parenthesized_expression) "(wlist.pos)" (() "(" (field_expression) "wlist.pos" (identifier) "wlist" (.) "." (field_identifier) "pos" ()) ")" (=) "=" (cast_expression) "(char *)malloc(sizeof(char)*length)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(char)*length)" (identifier) "malloc" (argument_list) "(sizeof(char)*length)" (() "(" (binary_expression) "sizeof(char)*length" (sizeof_expression) "sizeof(char)" (sizeof) "sizeof" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" (*) "*" (identifier) "length" ()) ")" (;) ";" (expression_statement) "strcpy(*(wlist.pos),loc);" (call_expression) "strcpy(*(wlist.pos),loc)" (identifier) "strcpy" (argument_list) "(*(wlist.pos),loc)" (() "(" (pointer_expression) "*(wlist.pos)" (*) "*" (parenthesized_expression) "(wlist.pos)" (() "(" (field_expression) "wlist.pos" (identifier) "wlist" (.) "." (field_identifier) "pos" ()) ")" (,) "," (identifier) "loc" ()) ")" (;) ";" (expression_statement) "wlist.pos++;" (update_expression) "wlist.pos++" (field_expression) "wlist.pos" (identifier) "wlist" (.) "." (field_identifier) "pos" (++) "++" (;) ";" (}) "}" (while_statement) "while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }" (while) "while" (parenthesized_expression) "( (loc = strtok(NULL,(char *)punctuation)) != NULL)" (() "(" (binary_expression) "(loc = strtok(NULL,(char *)punctuation)) != NULL" (parenthesized_expression) "(loc = strtok(NULL,(char *)punctuation))" (() "(" (assignment_expression) "loc = strtok(NULL,(char *)punctuation)" (identifier) "loc" (=) "=" (call_expression) "strtok(NULL,(char *)punctuation)" (identifier) "strtok" (argument_list) "(NULL,(char *)punctuation)" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (cast_expression) "(char *)punctuation" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "punctuation" ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }" ({) "{" (comment) "//Ensure that there's sufficient space for another word in the list" (expression_statement) "wlist.used_size++;" (update_expression) "wlist.used_size++" (field_expression) "wlist.used_size" (identifier) "wlist" (.) "." (field_identifier) "used_size" (++) "++" (;) ";" (expression_statement) "alloc_more_stringlist(&wlist,wlist.used_size);" (call_expression) "alloc_more_stringlist(&wlist,wlist.used_size)" (identifier) "alloc_more_stringlist" (argument_list) "(&wlist,wlist.used_size)" (() "(" (pointer_expression) "&wlist" (&) "&" (identifier) "wlist" (,) "," (field_expression) "wlist.used_size" (identifier) "wlist" (.) "." (field_identifier) "used_size" ()) ")" (;) ";" (comment) "//Allocate space for the length of the word" (expression_statement) "length = strlen(loc)+1;" (assignment_expression) "length = strlen(loc)+1" (identifier) "length" (=) "=" (binary_expression) "strlen(loc)+1" (call_expression) "strlen(loc)" (identifier) "strlen" (argument_list) "(loc)" (() "(" (identifier) "loc" ()) ")" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "*(wlist.pos)=(char *)malloc(sizeof(char)*length);" (assignment_expression) "*(wlist.pos)=(char *)malloc(sizeof(char)*length)" (pointer_expression) "*(wlist.pos)" (*) "*" (parenthesized_expression) "(wlist.pos)" (() "(" (field_expression) "wlist.pos" (identifier) "wlist" (.) "." (field_identifier) "pos" ()) ")" (=) "=" (cast_expression) "(char *)malloc(sizeof(char)*length)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(char)*length)" (identifier) "malloc" (argument_list) "(sizeof(char)*length)" (() "(" (binary_expression) "sizeof(char)*length" (sizeof_expression) "sizeof(char)" (sizeof) "sizeof" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" (*) "*" (identifier) "length" ()) ")" (;) ";" (expression_statement) "strcpy(*(wlist.pos),loc);" (call_expression) "strcpy(*(wlist.pos),loc)" (identifier) "strcpy" (argument_list) "(*(wlist.pos),loc)" (() "(" (pointer_expression) "*(wlist.pos)" (*) "*" (parenthesized_expression) "(wlist.pos)" (() "(" (field_expression) "wlist.pos" (identifier) "wlist" (.) "." (field_identifier) "pos" ()) ")" (,) "," (identifier) "loc" ()) ")" (;) ";" (expression_statement) "wlist.pos++;" (update_expression) "wlist.pos++" (field_expression) "wlist.pos" (identifier) "wlist" (.) "." (field_identifier) "pos" (++) "++" (;) ";" (}) "}" (}) "}" (comment) "/*\n //Print the wordlist\n for (i=0; i<wlist.used_size; i++) {\n //printf("String: \"%s\"\n",*(slist.pos));\n //slist.pos++;\n printf("String: \"%s\"\n",wlist.list[(int)randomrange(0,wlist.used_size-1)]);\n //printf("String: \"%s\"\n",wlist.list[i]);\n }\n */" (comment) "/*\n * Setup the table characteristics\n * numcols = number of columns\n * arrays of size numcols:\n * column_types = type of column, mapped to integers:\n * INTEGER\n * VARCHAR\n * NUMERIC\n * TIMESTAMP\n * column_mins = max value of columns\n * column_maxes = max value of columns\n */" (expression_statement) "numcols = 15;" (assignment_expression) "numcols = 15" (identifier) "numcols" (=) "=" (number_literal) "15" (;) ";" (expression_statement) "col_types[0] = TIMESTAMP;" (assignment_expression) "col_types[0] = TIMESTAMP" (subscript_expression) "col_types[0]" (identifier) "col_types" ([) "[" (number_literal) "0" (]) "]" (=) "=" (identifier) "TIMESTAMP" (;) ";" (expression_statement) "col_mins[0] = 20040101;" (assignment_expression) "col_mins[0] = 20040101" (subscript_expression) "col_mins[0]" (identifier) "col_mins" ([) "[" (number_literal) "0" (]) "]" (=) "=" (number_literal) "20040101" (;) ";" (expression_statement) "col_maxes[0] = 20041231;" (assignment_expression) "col_maxes[0] = 20041231" (subscript_expression) "col_maxes[0]" (identifier) "col_maxes" ([) "[" (number_literal) "0" (]) "]" (=) "=" (number_literal) "20041231" (;) ";" (expression_statement) "col_types[1] = VARCHAR;" (assignment_expression) "col_types[1] = VARCHAR" (subscript_expression) "col_types[1]" (identifier) "col_types" ([) "[" (number_literal) "1" (]) "]" (=) "=" (identifier) "VARCHAR" (;) ";" (expression_statement) "col_mins[1] = 1;" (assignment_expression) "col_mins[1] = 1" (subscript_expression) "col_mins[1]" (identifier) "col_mins" ([) "[" (number_literal) "1" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[1] = 750/100;" (assignment_expression) "col_maxes[1] = 750/100" (subscript_expression) "col_maxes[1]" (identifier) "col_maxes" ([) "[" (number_literal) "1" (]) "]" (=) "=" (binary_expression) "750/100" (number_literal) "750" (/) "/" (number_literal) "100" (;) ";" (expression_statement) "col_types[2] = VARCHAR;" (assignment_expression) "col_types[2] = VARCHAR" (subscript_expression) "col_types[2]" (identifier) "col_types" ([) "[" (number_literal) "2" (]) "]" (=) "=" (identifier) "VARCHAR" (;) ";" (expression_statement) "col_mins[2] = 1;" (assignment_expression) "col_mins[2] = 1" (subscript_expression) "col_mins[2]" (identifier) "col_mins" ([) "[" (number_literal) "2" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[2] = 100/100;" (assignment_expression) "col_maxes[2] = 100/100" (subscript_expression) "col_maxes[2]" (identifier) "col_maxes" ([) "[" (number_literal) "2" (]) "]" (=) "=" (binary_expression) "100/100" (number_literal) "100" (/) "/" (number_literal) "100" (;) ";" (expression_statement) "col_types[3] = INTEGER;" (assignment_expression) "col_types[3] = INTEGER" (subscript_expression) "col_types[3]" (identifier) "col_types" ([) "[" (number_literal) "3" (]) "]" (=) "=" (identifier) "INTEGER" (;) ";" (expression_statement) "col_mins[3] = 0;" (assignment_expression) "col_mins[3] = 0" (subscript_expression) "col_mins[3]" (identifier) "col_mins" ([) "[" (number_literal) "3" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "col_maxes[3] = 0;" (assignment_expression) "col_maxes[3] = 0" (subscript_expression) "col_maxes[3]" (identifier) "col_maxes" ([) "[" (number_literal) "3" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "col_types[4] = INTEGER;" (assignment_expression) "col_types[4] = INTEGER" (subscript_expression) "col_types[4]" (identifier) "col_types" ([) "[" (number_literal) "4" (]) "]" (=) "=" (identifier) "INTEGER" (;) ";" (expression_statement) "col_mins[4] = 1;" (assignment_expression) "col_mins[4] = 1" (subscript_expression) "col_mins[4]" (identifier) "col_mins" ([) "[" (number_literal) "4" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[4] = 40;" (assignment_expression) "col_maxes[4] = 40" (subscript_expression) "col_maxes[4]" (identifier) "col_maxes" ([) "[" (number_literal) "4" (]) "]" (=) "=" (number_literal) "40" (;) ";" (expression_statement) "col_types[5] = INTEGER;" (assignment_expression) "col_types[5] = INTEGER" (subscript_expression) "col_types[5]" (identifier) "col_types" ([) "[" (number_literal) "5" (]) "]" (=) "=" (identifier) "INTEGER" (;) ";" (expression_statement) "col_mins[5] = 0;" (assignment_expression) "col_mins[5] = 0" (subscript_expression) "col_mins[5]" (identifier) "col_mins" ([) "[" (number_literal) "5" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "col_maxes[5] = 0;" (assignment_expression) "col_maxes[5] = 0" (subscript_expression) "col_maxes[5]" (identifier) "col_maxes" ([) "[" (number_literal) "5" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "col_types[6] = INTEGER;" (assignment_expression) "col_types[6] = INTEGER" (subscript_expression) "col_types[6]" (identifier) "col_types" ([) "[" (number_literal) "6" (]) "]" (=) "=" (identifier) "INTEGER" (;) ";" (expression_statement) "col_mins[6] = 1;" (assignment_expression) "col_mins[6] = 1" (subscript_expression) "col_mins[6]" (identifier) "col_mins" ([) "[" (number_literal) "6" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[6] = 4;" (assignment_expression) "col_maxes[6] = 4" (subscript_expression) "col_maxes[6]" (identifier) "col_maxes" ([) "[" (number_literal) "6" (]) "]" (=) "=" (number_literal) "4" (;) ";" (expression_statement) "col_types[7] = NUMERIC;" (assignment_expression) "col_types[7] = NUMERIC" (subscript_expression) "col_types[7]" (identifier) "col_types" ([) "[" (number_literal) "7" (]) "]" (=) "=" (identifier) "NUMERIC" (;) ";" (expression_statement) "col_mins[7] = 0.02;" (assignment_expression) "col_mins[7] = 0.02" (subscript_expression) "col_mins[7]" (identifier) "col_mins" ([) "[" (number_literal) "7" (]) "]" (=) "=" (number_literal) "0.02" (;) ";" (expression_statement) "col_maxes[7] = 0.8;" (assignment_expression) "col_maxes[7] = 0.8" (subscript_expression) "col_maxes[7]" (identifier) "col_maxes" ([) "[" (number_literal) "7" (]) "]" (=) "=" (number_literal) "0.8" (;) ";" (expression_statement) "col_types[8] = VARCHAR;" (assignment_expression) "col_types[8] = VARCHAR" (subscript_expression) "col_types[8]" (identifier) "col_types" ([) "[" (number_literal) "8" (]) "]" (=) "=" (identifier) "VARCHAR" (;) ";" (expression_statement) "col_mins[8] = 1;" (assignment_expression) "col_mins[8] = 1" (subscript_expression) "col_mins[8]" (identifier) "col_mins" ([) "[" (number_literal) "8" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[8] = 1500/300;" (assignment_expression) "col_maxes[8] = 1500/300" (subscript_expression) "col_maxes[8]" (identifier) "col_maxes" ([) "[" (number_literal) "8" (]) "]" (=) "=" (binary_expression) "1500/300" (number_literal) "1500" (/) "/" (number_literal) "300" (;) ";" (expression_statement) "col_types[9] = VARCHAR;" (assignment_expression) "col_types[9] = VARCHAR" (subscript_expression) "col_types[9]" (identifier) "col_types" ([) "[" (number_literal) "9" (]) "]" (=) "=" (identifier) "VARCHAR" (;) ";" (expression_statement) "col_mins[9] = 1;" (assignment_expression) "col_mins[9] = 1" (subscript_expression) "col_mins[9]" (identifier) "col_mins" ([) "[" (number_literal) "9" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[9] = 1500/300;" (assignment_expression) "col_maxes[9] = 1500/300" (subscript_expression) "col_maxes[9]" (identifier) "col_maxes" ([) "[" (number_literal) "9" (]) "]" (=) "=" (binary_expression) "1500/300" (number_literal) "1500" (/) "/" (number_literal) "300" (;) ";" (expression_statement) "col_types[10] = VARCHAR;" (assignment_expression) "col_types[10] = VARCHAR" (subscript_expression) "col_types[10]" (identifier) "col_types" ([) "[" (number_literal) "10" (]) "]" (=) "=" (identifier) "VARCHAR" (;) ";" (expression_statement) "col_mins[10] = 1;" (assignment_expression) "col_mins[10] = 1" (subscript_expression) "col_mins[10]" (identifier) "col_mins" ([) "[" (number_literal) "10" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[10] = 1500/300;" (assignment_expression) "col_maxes[10] = 1500/300" (subscript_expression) "col_maxes[10]" (identifier) "col_maxes" ([) "[" (number_literal) "10" (]) "]" (=) "=" (binary_expression) "1500/300" (number_literal) "1500" (/) "/" (number_literal) "300" (;) ";" (expression_statement) "col_types[11] = INTEGER;" (assignment_expression) "col_types[11] = INTEGER" (subscript_expression) "col_types[11]" (identifier) "col_types" ([) "[" (number_literal) "11" (]) "]" (=) "=" (identifier) "INTEGER" (;) ";" (expression_statement) "col_mins[11] = 0;" (assignment_expression) "col_mins[11] = 0" (subscript_expression) "col_mins[11]" (identifier) "col_mins" ([) "[" (number_literal) "11" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "col_maxes[11] = 2;" (assignment_expression) "col_maxes[11] = 2" (subscript_expression) "col_maxes[11]" (identifier) "col_maxes" ([) "[" (number_literal) "11" (]) "]" (=) "=" (number_literal) "2" (;) ";" (expression_statement) "col_types[12] = INTEGER;" (assignment_expression) "col_types[12] = INTEGER" (subscript_expression) "col_types[12]" (identifier) "col_types" ([) "[" (number_literal) "12" (]) "]" (=) "=" (identifier) "INTEGER" (;) ";" (expression_statement) "col_mins[12] = 0;" (assignment_expression) "col_mins[12] = 0" (subscript_expression) "col_mins[12]" (identifier) "col_mins" ([) "[" (number_literal) "12" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "col_maxes[12] = 4;" (assignment_expression) "col_maxes[12] = 4" (subscript_expression) "col_maxes[12]" (identifier) "col_maxes" ([) "[" (number_literal) "12" (]) "]" (=) "=" (number_literal) "4" (;) ";" (expression_statement) "col_types[13] = VARCHAR;" (assignment_expression) "col_types[13] = VARCHAR" (subscript_expression) "col_types[13]" (identifier) "col_types" ([) "[" (number_literal) "13" (]) "]" (=) "=" (identifier) "VARCHAR" (;) ";" (expression_statement) "col_mins[13] = 1;" (assignment_expression) "col_mins[13] = 1" (subscript_expression) "col_mins[13]" (identifier) "col_mins" ([) "[" (number_literal) "13" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[13] = 1500/300;" (assignment_expression) "col_maxes[13] = 1500/300" (subscript_expression) "col_maxes[13]" (identifier) "col_maxes" ([) "[" (number_literal) "13" (]) "]" (=) "=" (binary_expression) "1500/300" (number_literal) "1500" (/) "/" (number_literal) "300" (;) ";" (expression_statement) "col_types[14] = VARCHAR;" (assignment_expression) "col_types[14] = VARCHAR" (subscript_expression) "col_types[14]" (identifier) "col_types" ([) "[" (number_literal) "14" (]) "]" (=) "=" (identifier) "VARCHAR" (;) ";" (expression_statement) "col_mins[14] = 1;" (assignment_expression) "col_mins[14] = 1" (subscript_expression) "col_mins[14]" (identifier) "col_mins" ([) "[" (number_literal) "14" (]) "]" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "col_maxes[14] = 1500/300;" (assignment_expression) "col_maxes[14] = 1500/300" (subscript_expression) "col_maxes[14]" (identifier) "col_maxes" ([) "[" (number_literal) "14" (]) "]" (=) "=" (binary_expression) "1500/300" (number_literal) "1500" (/) "/" (number_literal) "300" (;) ";" (expression_statement) "table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes);" (call_expression) "table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes)" (identifier) "table_gen" (argument_list) "(numrows, wlist,numcols,col_types,col_mins,col_maxes)" (() "(" (identifier) "numrows" (,) "," (identifier) "wlist" (,) "," (identifier) "numcols" (,) "," (identifier) "col_types" (,) "," (identifier) "col_mins" (,) "," (identifier) "col_maxes" ()) ")" (;) ";" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (function_definition) "void table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes) {\n\n int itemp;\n int i,j,ii, nwords;\n int year, month, day, hour, minute, second;\n int minyear, minmonth, minday;\n int maxyear, maxmonth, maxday;\n\n int leaps[] = LEAPS;\n int nonleaps[] = NONLEAPS;\n\n //printf("Number of rows to be generated: %ld\n",nrows);\n //exit(0);\n\n for (i=0; i<nrows; i++) {\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }\n if (j != (numcols-1)) printf("|");\n\n } //End of numcolumns\n printf("\n");\n\n }\n\n}" (primitive_type) "void" (function_declarator) "table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)" (identifier) "table_gen" (parameter_list) "(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)" (() "(" (parameter_declaration) "long long nrows" (sized_type_specifier) "long long" (long) "long" (long) "long" (identifier) "nrows" (,) "," (parameter_declaration) "Stringlist wlist" (type_identifier) "Stringlist" (identifier) "wlist" (,) "," (parameter_declaration) "int numcols" (primitive_type) "int" (identifier) "numcols" (,) "," (parameter_declaration) "int *column_types" (primitive_type) "int" (pointer_declarator) "*column_types" (*) "*" (identifier) "column_types" (,) "," (parameter_declaration) "double *column_mins" (primitive_type) "double" (pointer_declarator) "*column_mins" (*) "*" (identifier) "column_mins" (,) "," (parameter_declaration) "double *column_maxes" (primitive_type) "double" (pointer_declarator) "*column_maxes" (*) "*" (identifier) "column_maxes" ()) ")" (compound_statement) "{\n\n int itemp;\n int i,j,ii, nwords;\n int year, month, day, hour, minute, second;\n int minyear, minmonth, minday;\n int maxyear, maxmonth, maxday;\n\n int leaps[] = LEAPS;\n int nonleaps[] = NONLEAPS;\n\n //printf("Number of rows to be generated: %ld\n",nrows);\n //exit(0);\n\n for (i=0; i<nrows; i++) {\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }\n if (j != (numcols-1)) printf("|");\n\n } //End of numcolumns\n printf("\n");\n\n }\n\n}" ({) "{" (declaration) "int itemp;" (primitive_type) "int" (identifier) "itemp" (;) ";" (declaration) "int i,j,ii, nwords;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (,) "," (identifier) "ii" (,) "," (identifier) "nwords" (;) ";" (declaration) "int year, month, day, hour, minute, second;" (primitive_type) "int" (identifier) "year" (,) "," (identifier) "month" (,) "," (identifier) "day" (,) "," (identifier) "hour" (,) "," (identifier) "minute" (,) "," (identifier) "second" (;) ";" (declaration) "int minyear, minmonth, minday;" (primitive_type) "int" (identifier) "minyear" (,) "," (identifier) "minmonth" (,) "," (identifier) "minday" (;) ";" (declaration) "int maxyear, maxmonth, maxday;" (primitive_type) "int" (identifier) "maxyear" (,) "," (identifier) "maxmonth" (,) "," (identifier) "maxday" (;) ";" (declaration) "int leaps[] = LEAPS;" (primitive_type) "int" (init_declarator) "leaps[] = LEAPS" (array_declarator) "leaps[]" (identifier) "leaps" ([) "[" (]) "]" (=) "=" (identifier) "LEAPS" (;) ";" (declaration) "int nonleaps[] = NONLEAPS;" (primitive_type) "int" (init_declarator) "nonleaps[] = NONLEAPS" (array_declarator) "nonleaps[]" (identifier) "nonleaps" ([) "[" (]) "]" (=) "=" (identifier) "NONLEAPS" (;) ";" (comment) "//printf("Number of rows to be generated: %ld\n",nrows);" (comment) "//exit(0);" (for_statement) "for (i=0; i<nrows; i++) {\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }\n if (j != (numcols-1)) printf("|");\n\n } //End of numcolumns\n printf("\n");\n\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<nrows" (identifier) "i" (<) "<" (identifier) "nrows" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }\n if (j != (numcols-1)) printf("|");\n\n } //End of numcolumns\n printf("\n");\n\n }" ({) "{" (for_statement) "for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }\n if (j != (numcols-1)) printf("|");\n\n }" (for) "for" (() "(" (assignment_expression) "j=0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j<numcols" (identifier) "j" (<) "<" (identifier) "numcols" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }\n if (j != (numcols-1)) printf("|");\n\n }" ({) "{" (switch_statement) "switch (column_types[j]) {\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }" (switch) "switch" (parenthesized_expression) "(column_types[j])" (() "(" (subscript_expression) "column_types[j]" (identifier) "column_types" ([) "[" (identifier) "j" (]) "]" ()) ")" (compound_statement) "{\n case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;\n case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;\n case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;\n case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;\n }" ({) "{" (case_statement) "case INTEGER:\n //printf("column_type[%d] = INTEGER\n",j+1);\n printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));\n break;;" (case) "case" (identifier) "INTEGER" (:) ":" (comment) "//printf("column_type[%d] = INTEGER\n",j+1);" (expression_statement) "printf("%d",(int)randomrange(column_mins[j],column_maxes[j]));" (call_expression) "printf("%d",(int)randomrange(column_mins[j],column_maxes[j]))" (identifier) "printf" (argument_list) "("%d",(int)randomrange(column_mins[j],column_maxes[j]))" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (cast_expression) "(int)randomrange(column_mins[j],column_maxes[j])" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(column_mins[j],column_maxes[j])" (identifier) "randomrange" (argument_list) "(column_mins[j],column_maxes[j])" (() "(" (subscript_expression) "column_mins[j]" (identifier) "column_mins" ([) "[" (identifier) "j" (]) "]" (,) "," (subscript_expression) "column_maxes[j]" (identifier) "column_maxes" ([) "[" (identifier) "j" (]) "]" ()) ")" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) ";" (;) ";" (case_statement) "case VARCHAR:\n //printf("column_type[%d] = VARCHAR\n",j+1);\n nwords = (int)randomrange(column_mins[j],column_maxes[j]);\n for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }\n break;;" (case) "case" (identifier) "VARCHAR" (:) ":" (comment) "//printf("column_type[%d] = VARCHAR\n",j+1);" (expression_statement) "nwords = (int)randomrange(column_mins[j],column_maxes[j]);" (assignment_expression) "nwords = (int)randomrange(column_mins[j],column_maxes[j])" (identifier) "nwords" (=) "=" (cast_expression) "(int)randomrange(column_mins[j],column_maxes[j])" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(column_mins[j],column_maxes[j])" (identifier) "randomrange" (argument_list) "(column_mins[j],column_maxes[j])" (() "(" (subscript_expression) "column_mins[j]" (identifier) "column_mins" ([) "[" (identifier) "j" (]) "]" (,) "," (subscript_expression) "column_maxes[j]" (identifier) "column_maxes" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (for_statement) "for (ii=0; ii<nwords ; ii++) {\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }" (for) "for" (() "(" (assignment_expression) "ii=0" (identifier) "ii" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "ii<nwords" (identifier) "ii" (<) "<" (identifier) "nwords" (;) ";" (update_expression) "ii++" (identifier) "ii" (++) "++" ()) ")" (compound_statement) "{\n itemp = (int)randomrange(0,wlist.used_size-1);\n printf("%s",wlist.list[itemp]);\n if (ii != (nwords-1)) printf(" ");\n }" ({) "{" (expression_statement) "itemp = (int)randomrange(0,wlist.used_size-1);" (assignment_expression) "itemp = (int)randomrange(0,wlist.used_size-1)" (identifier) "itemp" (=) "=" (cast_expression) "(int)randomrange(0,wlist.used_size-1)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(0,wlist.used_size-1)" (identifier) "randomrange" (argument_list) "(0,wlist.used_size-1)" (() "(" (number_literal) "0" (,) "," (binary_expression) "wlist.used_size-1" (field_expression) "wlist.used_size" (identifier) "wlist" (.) "." (field_identifier) "used_size" (-) "-" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "printf("%s",wlist.list[itemp]);" (call_expression) "printf("%s",wlist.list[itemp])" (identifier) "printf" (argument_list) "("%s",wlist.list[itemp])" (() "(" (string_literal) ""%s"" (") """ (string_content) "%s" (") """ (,) "," (subscript_expression) "wlist.list[itemp]" (field_expression) "wlist.list" (identifier) "wlist" (.) "." (field_identifier) "list" ([) "[" (identifier) "itemp" (]) "]" ()) ")" (;) ";" (if_statement) "if (ii != (nwords-1)) printf(" ");" (if) "if" (parenthesized_expression) "(ii != (nwords-1))" (() "(" (binary_expression) "ii != (nwords-1)" (identifier) "ii" (!=) "!=" (parenthesized_expression) "(nwords-1)" (() "(" (binary_expression) "nwords-1" (identifier) "nwords" (-) "-" (number_literal) "1" ()) ")" ()) ")" (expression_statement) "printf(" ");" (call_expression) "printf(" ")" (identifier) "printf" (argument_list) "(" ")" (() "(" (string_literal) "" "" (") """ (string_content) " " (") """ ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) ";" (;) ";" (case_statement) "case TIMESTAMP:\n //printf("column_type[%d] = TIMESTAMP\n",j+1);\n minyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n minmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n minday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n year = (int)randomrange(minyear,maxyear);\n month = (int)randomrange(minmonth,maxmonth);\n day = (int)randomrange(minday,maxday);\n if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }\n hour = (int)randomrange(0,23);\n minute = (int)randomrange(0,59);\n second = (int)randomrange(0,59);\n\n printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);\n break;;" (case) "case" (identifier) "TIMESTAMP" (:) ":" (comment) "//printf("column_type[%d] = TIMESTAMP\n",j+1);" (expression_statement) "minyear = getyear(column_mins[j]);" (assignment_expression) "minyear = getyear(column_mins[j])" (identifier) "minyear" (=) "=" (call_expression) "getyear(column_mins[j])" (identifier) "getyear" (argument_list) "(column_mins[j])" (() "(" (subscript_expression) "column_mins[j]" (identifier) "column_mins" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "maxyear = getyear(column_maxes[j]);" (assignment_expression) "maxyear = getyear(column_maxes[j])" (identifier) "maxyear" (=) "=" (call_expression) "getyear(column_maxes[j])" (identifier) "getyear" (argument_list) "(column_maxes[j])" (() "(" (subscript_expression) "column_maxes[j]" (identifier) "column_maxes" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "minmonth = getmonth(column_mins[j]);" (assignment_expression) "minmonth = getmonth(column_mins[j])" (identifier) "minmonth" (=) "=" (call_expression) "getmonth(column_mins[j])" (identifier) "getmonth" (argument_list) "(column_mins[j])" (() "(" (subscript_expression) "column_mins[j]" (identifier) "column_mins" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "maxmonth = getmonth(column_maxes[j]);" (assignment_expression) "maxmonth = getmonth(column_maxes[j])" (identifier) "maxmonth" (=) "=" (call_expression) "getmonth(column_maxes[j])" (identifier) "getmonth" (argument_list) "(column_maxes[j])" (() "(" (subscript_expression) "column_maxes[j]" (identifier) "column_maxes" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "minday = getday(column_mins[j]);" (assignment_expression) "minday = getday(column_mins[j])" (identifier) "minday" (=) "=" (call_expression) "getday(column_mins[j])" (identifier) "getday" (argument_list) "(column_mins[j])" (() "(" (subscript_expression) "column_mins[j]" (identifier) "column_mins" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "maxday = getday(column_maxes[j]);" (assignment_expression) "maxday = getday(column_maxes[j])" (identifier) "maxday" (=) "=" (call_expression) "getday(column_maxes[j])" (identifier) "getday" (argument_list) "(column_maxes[j])" (() "(" (subscript_expression) "column_maxes[j]" (identifier) "column_maxes" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "year = (int)randomrange(minyear,maxyear);" (assignment_expression) "year = (int)randomrange(minyear,maxyear)" (identifier) "year" (=) "=" (cast_expression) "(int)randomrange(minyear,maxyear)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(minyear,maxyear)" (identifier) "randomrange" (argument_list) "(minyear,maxyear)" (() "(" (identifier) "minyear" (,) "," (identifier) "maxyear" ()) ")" (;) ";" (expression_statement) "month = (int)randomrange(minmonth,maxmonth);" (assignment_expression) "month = (int)randomrange(minmonth,maxmonth)" (identifier) "month" (=) "=" (cast_expression) "(int)randomrange(minmonth,maxmonth)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(minmonth,maxmonth)" (identifier) "randomrange" (argument_list) "(minmonth,maxmonth)" (() "(" (identifier) "minmonth" (,) "," (identifier) "maxmonth" ()) ")" (;) ";" (expression_statement) "day = (int)randomrange(minday,maxday);" (assignment_expression) "day = (int)randomrange(minday,maxday)" (identifier) "day" (=) "=" (cast_expression) "(int)randomrange(minday,maxday)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(minday,maxday)" (identifier) "randomrange" (argument_list) "(minday,maxday)" (() "(" (identifier) "minday" (,) "," (identifier) "maxday" ()) ")" (;) ";" (if_statement) "if (ISLEAP(year)) {\n day = MIN(leaps[month-1],day);\n } else {\n day = MIN(nonleaps[month-1],day);\n }" (if) "if" (parenthesized_expression) "(ISLEAP(year))" (() "(" (call_expression) "ISLEAP(year)" (identifier) "ISLEAP" (argument_list) "(year)" (() "(" (identifier) "year" ()) ")" ()) ")" (compound_statement) "{\n day = MIN(leaps[month-1],day);\n }" ({) "{" (expression_statement) "day = MIN(leaps[month-1],day);" (assignment_expression) "day = MIN(leaps[month-1],day)" (identifier) "day" (=) "=" (call_expression) "MIN(leaps[month-1],day)" (identifier) "MIN" (argument_list) "(leaps[month-1],day)" (() "(" (subscript_expression) "leaps[month-1]" (identifier) "leaps" ([) "[" (binary_expression) "month-1" (identifier) "month" (-) "-" (number_literal) "1" (]) "]" (,) "," (identifier) "day" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n day = MIN(nonleaps[month-1],day);\n }" (else) "else" (compound_statement) "{\n day = MIN(nonleaps[month-1],day);\n }" ({) "{" (expression_statement) "day = MIN(nonleaps[month-1],day);" (assignment_expression) "day = MIN(nonleaps[month-1],day)" (identifier) "day" (=) "=" (call_expression) "MIN(nonleaps[month-1],day)" (identifier) "MIN" (argument_list) "(nonleaps[month-1],day)" (() "(" (subscript_expression) "nonleaps[month-1]" (identifier) "nonleaps" ([) "[" (binary_expression) "month-1" (identifier) "month" (-) "-" (number_literal) "1" (]) "]" (,) "," (identifier) "day" ()) ")" (;) ";" (}) "}" (expression_statement) "hour = (int)randomrange(0,23);" (assignment_expression) "hour = (int)randomrange(0,23)" (identifier) "hour" (=) "=" (cast_expression) "(int)randomrange(0,23)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(0,23)" (identifier) "randomrange" (argument_list) "(0,23)" (() "(" (number_literal) "0" (,) "," (number_literal) "23" ()) ")" (;) ";" (expression_statement) "minute = (int)randomrange(0,59);" (assignment_expression) "minute = (int)randomrange(0,59)" (identifier) "minute" (=) "=" (cast_expression) "(int)randomrange(0,59)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(0,59)" (identifier) "randomrange" (argument_list) "(0,59)" (() "(" (number_literal) "0" (,) "," (number_literal) "59" ()) ")" (;) ";" (expression_statement) "second = (int)randomrange(0,59);" (assignment_expression) "second = (int)randomrange(0,59)" (identifier) "second" (=) "=" (cast_expression) "(int)randomrange(0,59)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (call_expression) "randomrange(0,59)" (identifier) "randomrange" (argument_list) "(0,59)" (() "(" (number_literal) "0" (,) "," (number_literal) "59" ()) ")" (;) ";" (expression_statement) "printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second);" (call_expression) "printf("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second)" (identifier) "printf" (argument_list) "("%.4d-%.2d-%.2d %.2d:%.2d:%.2d",year,month,day,hour,minute,second)" (() "(" (string_literal) ""%.4d-%.2d-%.2d %.2d:%.2d:%.2d"" (") """ (string_content) "%.4d-%.2d-%.2d %.2d:%.2d:%.2d" (") """ (,) "," (identifier) "year" (,) "," (identifier) "month" (,) "," (identifier) "day" (,) "," (identifier) "hour" (,) "," (identifier) "minute" (,) "," (identifier) "second" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) ";" (;) ";" (case_statement) "case NUMERIC:\n //printf("column_type[%d] = NUMERIC\n",j+1);\n printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));\n break;;" (case) "case" (identifier) "NUMERIC" (:) ":" (comment) "//printf("column_type[%d] = NUMERIC\n",j+1);" (expression_statement) "printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]));" (call_expression) "printf("%.6f",(float)randomrange(column_mins[j],column_maxes[j]))" (identifier) "printf" (argument_list) "("%.6f",(float)randomrange(column_mins[j],column_maxes[j]))" (() "(" (string_literal) ""%.6f"" (") """ (string_content) "%.6f" (") """ (,) "," (cast_expression) "(float)randomrange(column_mins[j],column_maxes[j])" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (call_expression) "randomrange(column_mins[j],column_maxes[j])" (identifier) "randomrange" (argument_list) "(column_mins[j],column_maxes[j])" (() "(" (subscript_expression) "column_mins[j]" (identifier) "column_mins" ([) "[" (identifier) "j" (]) "]" (,) "," (subscript_expression) "column_maxes[j]" (identifier) "column_maxes" ([) "[" (identifier) "j" (]) "]" ()) ")" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) ";" (;) ";" (}) "}" (if_statement) "if (j != (numcols-1)) printf("|");" (if) "if" (parenthesized_expression) "(j != (numcols-1))" (() "(" (binary_expression) "j != (numcols-1)" (identifier) "j" (!=) "!=" (parenthesized_expression) "(numcols-1)" (() "(" (binary_expression) "numcols-1" (identifier) "numcols" (-) "-" (number_literal) "1" ()) ")" ()) ")" (expression_statement) "printf("|");" (call_expression) "printf("|")" (identifier) "printf" (argument_list) "("|")" (() "(" (string_literal) ""|"" (") """ (string_content) "|" (") """ ()) ")" (;) ";" (}) "}" (comment) "//End of numcolumns" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "int getyear(int date) {\n return date/10000;\n}" (primitive_type) "int" (function_declarator) "getyear(int date)" (identifier) "getyear" (parameter_list) "(int date)" (() "(" (parameter_declaration) "int date" (primitive_type) "int" (identifier) "date" ()) ")" (compound_statement) "{\n return date/10000;\n}" ({) "{" (return_statement) "return date/10000;" (return) "return" (binary_expression) "date/10000" (identifier) "date" (/) "/" (number_literal) "10000" (;) ";" (}) "}" (function_definition) "int getmonth(int date) {\n return (date-10000*getyear(date))/100;\n}" (primitive_type) "int" (function_declarator) "getmonth(int date)" (identifier) "getmonth" (parameter_list) "(int date)" (() "(" (parameter_declaration) "int date" (primitive_type) "int" (identifier) "date" ()) ")" (compound_statement) "{\n return (date-10000*getyear(date))/100;\n}" ({) "{" (return_statement) "return (date-10000*getyear(date))/100;" (return) "return" (binary_expression) "(date-10000*getyear(date))/100" (parenthesized_expression) "(date-10000*getyear(date))" (() "(" (binary_expression) "date-10000*getyear(date)" (identifier) "date" (-) "-" (binary_expression) "10000*getyear(date)" (number_literal) "10000" (*) "*" (call_expression) "getyear(date)" (identifier) "getyear" (argument_list) "(date)" (() "(" (identifier) "date" ()) ")" ()) ")" (/) "/" (number_literal) "100" (;) ";" (}) "}" (function_definition) "int getday(int date) {\n return (date-10000*getyear(date)-100*getmonth(date));\n}" (primitive_type) "int" (function_declarator) "getday(int date)" (identifier) "getday" (parameter_list) "(int date)" (() "(" (parameter_declaration) "int date" (primitive_type) "int" (identifier) "date" ()) ")" (compound_statement) "{\n return (date-10000*getyear(date)-100*getmonth(date));\n}" ({) "{" (return_statement) "return (date-10000*getyear(date)-100*getmonth(date));" (return) "return" (parenthesized_expression) "(date-10000*getyear(date)-100*getmonth(date))" (() "(" (binary_expression) "date-10000*getyear(date)-100*getmonth(date)" (binary_expression) "date-10000*getyear(date)" (identifier) "date" (-) "-" (binary_expression) "10000*getyear(date)" (number_literal) "10000" (*) "*" (call_expression) "getyear(date)" (identifier) "getyear" (argument_list) "(date)" (() "(" (identifier) "date" ()) ")" (-) "-" (binary_expression) "100*getmonth(date)" (number_literal) "100" (*) "*" (call_expression) "getmonth(date)" (identifier) "getmonth" (argument_list) "(date)" (() "(" (identifier) "date" ()) ")" ()) ")" (;) ";" (}) "}"
2,240
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 35.69, "nodes": 1357, "errors": 0, "source_hash": "bbe7a8fdf90b8e398ef3e2c8899b8e889cedccff5fc0a5393866064ba5882352", "categorized_nodes": 964}, "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 \"utils.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": "\"utils.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 12, "type": "preproc_def", "text": "#define INTEGER 0\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 14, "type": "identifier", "text": "INTEGER", "parent": 12, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 15}}, {"id": 15, "type": "preproc_arg", "text": "0", "parent": 12, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 17}}, {"id": 16, "type": "preproc_def", "text": "#define VARCHAR 1\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 18, "type": "identifier", "text": "VARCHAR", "parent": 16, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 15}}, {"id": 19, "type": "preproc_arg", "text": "1", "parent": 16, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 17}}, {"id": 20, "type": "preproc_def", "text": "#define TIMESTAMP 2\n", "parent": null, "children": [21, 22, 23], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 22, "type": "identifier", "text": "TIMESTAMP", "parent": 20, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 17}}, {"id": 23, "type": "preproc_arg", "text": "2", "parent": 20, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 19}}, {"id": 24, "type": "preproc_def", "text": "#define NUMERIC 3\n", "parent": null, "children": [25, 26, 27], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 26, "type": "identifier", "text": "NUMERIC", "parent": 24, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 15}}, {"id": 27, "type": "preproc_arg", "text": "3", "parent": 24, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 17}}, {"id": 28, "type": "preproc_def", "text": "#define MAXLINESIZE 1024\n", "parent": null, "children": [29, 30, 31], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 30, "type": "identifier", "text": "MAXLINESIZE", "parent": 28, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 19}}, {"id": 31, "type": "preproc_arg", "text": "1024", "parent": 28, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 24}}, {"id": 32, "type": "declaration", "text": "int getyear(int date);", "parent": null, "children": [33, 34], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 22}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 3}}, {"id": 34, "type": "function_declarator", "text": "getyear(int date)", "parent": 32, "children": [35, 36], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 21}}, {"id": 35, "type": "identifier", "text": "getyear", "parent": 34, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 36, "type": "parameter_list", "text": "(int date)", "parent": 34, "children": [37], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 21}}, {"id": 37, "type": "parameter_declaration", "text": "int date", "parent": 36, "children": [38, 39], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 20}}, {"id": 38, "type": "primitive_type", "text": "int", "parent": 37, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 15}}, {"id": 39, "type": "identifier", "text": "date", "parent": 37, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 20}}, {"id": 40, "type": "declaration", "text": "int getmonth(int date);", "parent": null, "children": [41, 42], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 23}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 3}}, {"id": 42, "type": "function_declarator", "text": "getmonth(int date)", "parent": 40, "children": [43, 44], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 22}}, {"id": 43, "type": "identifier", "text": "getmonth", "parent": 42, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 44, "type": "parameter_list", "text": "(int date)", "parent": 42, "children": [45], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 22}}, {"id": 45, "type": "parameter_declaration", "text": "int date", "parent": 44, "children": [46, 47], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 21}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 16}}, {"id": 47, "type": "identifier", "text": "date", "parent": 45, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 21}}, {"id": 48, "type": "declaration", "text": "int getday(int date);", "parent": null, "children": [49, 50], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 21}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 48, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 3}}, {"id": 50, "type": "function_declarator", "text": "getday(int date)", "parent": 48, "children": [51, 52], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 20}}, {"id": 51, "type": "identifier", "text": "getday", "parent": 50, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 52, "type": "parameter_list", "text": "(int date)", "parent": 50, "children": [53], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 20}}, {"id": 53, "type": "parameter_declaration", "text": "int date", "parent": 52, "children": [54, 55], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 19}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 14}}, {"id": 55, "type": "identifier", "text": "date", "parent": 53, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 19}}, {"id": 56, "type": "declaration", "text": "void table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes);", "parent": null, "children": [57, 58], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 124}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 56, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 58, "type": "function_declarator", "text": "table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)", "parent": 56, "children": [59, 60], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 123}}, {"id": 59, "type": "identifier", "text": "table_gen", "parent": 58, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 14}}, {"id": 60, "type": "parameter_list", "text": "(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)", "parent": 58, "children": [61, 66, 69, 72, 77, 82], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 123}}, {"id": 61, "type": "parameter_declaration", "text": "long long nrows", "parent": 60, "children": [62, 65], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 30}}, {"id": 62, "type": "sized_type_specifier", "text": "long long", "parent": 61, "children": [63, 64], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 24}}, {"id": 63, "type": "long", "text": "long", "parent": 62, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 19}}, {"id": 64, "type": "long", "text": "long", "parent": 62, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 24}}, {"id": 65, "type": "identifier", "text": "nrows", "parent": 61, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 30}}, {"id": 66, "type": "parameter_declaration", "text": "Stringlist wlist", "parent": 60, "children": [67, 68], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 48}}, {"id": 67, "type": "type_identifier", "text": "Stringlist", "parent": 66, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 42}}, {"id": 68, "type": "identifier", "text": "wlist", "parent": 66, "children": [], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 48}}, {"id": 69, "type": "parameter_declaration", "text": "int numcols", "parent": 60, "children": [70, 71], "start_point": {"row": 17, "column": 49}, "end_point": {"row": 17, "column": 60}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 17, "column": 49}, "end_point": {"row": 17, "column": 52}}, {"id": 71, "type": "identifier", "text": "numcols", "parent": 69, "children": [], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 60}}, {"id": 72, "type": "parameter_declaration", "text": "int *column_types", "parent": 60, "children": [73, 74], "start_point": {"row": 17, "column": 62}, "end_point": {"row": 17, "column": 79}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 17, "column": 62}, "end_point": {"row": 17, "column": 65}}, {"id": 74, "type": "pointer_declarator", "text": "*column_types", "parent": 72, "children": [75, 76], "start_point": {"row": 17, "column": 66}, "end_point": {"row": 17, "column": 79}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 17, "column": 66}, "end_point": {"row": 17, "column": 67}}, {"id": 76, "type": "identifier", "text": "column_types", "parent": 74, "children": [], "start_point": {"row": 17, "column": 67}, "end_point": {"row": 17, "column": 79}}, {"id": 77, "type": "parameter_declaration", "text": "double *column_mins", "parent": 60, "children": [78, 79], "start_point": {"row": 17, "column": 81}, "end_point": {"row": 17, "column": 100}}, {"id": 78, "type": "primitive_type", "text": "double", "parent": 77, "children": [], "start_point": {"row": 17, "column": 81}, "end_point": {"row": 17, "column": 87}}, {"id": 79, "type": "pointer_declarator", "text": "*column_mins", "parent": 77, "children": [80, 81], "start_point": {"row": 17, "column": 88}, "end_point": {"row": 17, "column": 100}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 17, "column": 88}, "end_point": {"row": 17, "column": 89}}, {"id": 81, "type": "identifier", "text": "column_mins", "parent": 79, "children": [], "start_point": {"row": 17, "column": 89}, "end_point": {"row": 17, "column": 100}}, {"id": 82, "type": "parameter_declaration", "text": "double *column_maxes", "parent": 60, "children": [83, 84], "start_point": {"row": 17, "column": 102}, "end_point": {"row": 17, "column": 122}}, {"id": 83, "type": "primitive_type", "text": "double", "parent": 82, "children": [], "start_point": {"row": 17, "column": 102}, "end_point": {"row": 17, "column": 108}}, {"id": 84, "type": "pointer_declarator", "text": "*column_maxes", "parent": 82, "children": [85, 86], "start_point": {"row": 17, "column": 109}, "end_point": {"row": 17, "column": 122}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 17, "column": 109}, "end_point": {"row": 17, "column": 110}}, {"id": 86, "type": "identifier", "text": "column_maxes", "parent": 84, "children": [], "start_point": {"row": 17, "column": 110}, "end_point": {"row": 17, "column": 122}}, {"id": 87, "type": "function_definition", "text": "int main(int argc, char **argv) {\n \n int i,length;\n\n char string[MAXLINESIZE], *loc;\n Stringlist slist;\n Stringlist wlist;\n\n long long numrows;\n\n int numcols;\n int col_types[100];\n double col_mins[100],col_maxes[100];\n\n char punctuation[8] = { ' ', '.', '/', '\\\\', '(', ')', ',', '\\0' };\n\n srand(12);\n\n FILE *infile;\n\n if ((argc-1) < 2) {\n printf(\"usage: %s text_seed_input_file_name number_of_rows_to_generate\\n\",argv[0]);\n exit(1);\n }\n\n if ( (infile=fopen(argv[1],\"r\")) == NULL ) {\n printf(\"error opening file %s for reading\\n\",argv[1]);\n exit(2);\n } \n\n if (sscanf(argv[2],\"%lli\",&numrows) != 1) {\n printf(\"error scanning number of rows from command line: %s\\n\",argv[2]);\n exit(2);\n } \n //printf(\"Number of rows to be generated: %ld\\n\",numrows);\n //exit(0);\n\n slist.list=NULL; slist.used_size=0; slist.chunksize=100; slist.alloc_size=0;\n\n while ( (fgets(string, MAXLINESIZE, infile)) != NULL) {\n\n //Find the number of characters in the string, includes the newline but not the \\0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }\n\n //Reset the string pointer\n slist.pos = slist.list;\n\n //Initialize the wlist\n wlist.list=NULL; wlist.used_size=0; wlist.chunksize=100; wlist.alloc_size=0;\n\n //Parse the string list into words\n for (i=0; i<slist.used_size; i++) {\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }\n\n /*\n //Print the wordlist\n for (i=0; i<wlist.used_size; i++) {\n //printf(\"String: \\\"%s\\\"\\n\",*(slist.pos));\n //slist.pos++;\n printf(\"String: \\\"%s\\\"\\n\",wlist.list[(int)randomrange(0,wlist.used_size-1)]);\n //printf(\"String: \\\"%s\\\"\\n\",wlist.list[i]);\n }\n */\n\n /*\n * Setup the table characteristics\n * \tnumcols\t\t= number of columns\n *\tarrays of size numcols:\n * \tcolumn_types\t= type of column, mapped to integers:\n *\t\t\tINTEGER\n *\t\t\tVARCHAR\n *\t\t\tNUMERIC\n *\t\t\tTIMESTAMP\n *\t\tcolumn_mins \t= max value of columns\n *\t\tcolumn_maxes\t= max value of columns\n */\n\n numcols = 15;\n col_types[0] = TIMESTAMP; col_mins[0] = 20040101; col_maxes[0] = 20041231;\n col_types[1] = VARCHAR; col_mins[1] = 1; col_maxes[1] = 750/100;\n col_types[2] = VARCHAR; col_mins[2] = 1; col_maxes[2] = 100/100;\n col_types[3] = INTEGER; col_mins[3] = 0; col_maxes[3] = 0;\n col_types[4] = INTEGER; col_mins[4] = 1; col_maxes[4] = 40;\n col_types[5] = INTEGER; col_mins[5] = 0; col_maxes[5] = 0;\n col_types[6] = INTEGER; col_mins[6] = 1; col_maxes[6] = 4;\n col_types[7] = NUMERIC; col_mins[7] = 0.02; col_maxes[7] = 0.8;\n col_types[8] = VARCHAR; col_mins[8] = 1; col_maxes[8] = 1500/300;\n col_types[9] = VARCHAR; col_mins[9] = 1; col_maxes[9] = 1500/300;\n col_types[10] = VARCHAR; col_mins[10] = 1; col_maxes[10] = 1500/300;\n col_types[11] = INTEGER; col_mins[11] = 0; col_maxes[11] = 2;\n col_types[12] = INTEGER; col_mins[12] = 0; col_maxes[12] = 4;\n col_types[13] = VARCHAR; col_mins[13] = 1; col_maxes[13] = 1500/300;\n col_types[14] = VARCHAR; col_mins[14] = 1; col_maxes[14] = 1500/300;\n\n\n table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes); \n\n exit(0);\n\n}", "parent": null, "children": [88, 89], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 160, "column": 1}}, {"id": 88, "type": "primitive_type", "text": "int", "parent": 87, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 89, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 87, "children": [90, 91], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 31}}, {"id": 90, "type": "identifier", "text": "main", "parent": 89, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 91, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 89, "children": [92, 95], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 31}}, {"id": 92, "type": "parameter_declaration", "text": "int argc", "parent": 91, "children": [93, 94], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 93, "type": "primitive_type", "text": "int", "parent": 92, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 12}}, {"id": 94, "type": "identifier", "text": "argc", "parent": 92, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 17}}, {"id": 95, "type": "parameter_declaration", "text": "char **argv", "parent": 91, "children": [96, 97], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 30}}, {"id": 96, "type": "primitive_type", "text": "char", "parent": 95, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 23}}, {"id": 97, "type": "pointer_declarator", "text": "**argv", "parent": 95, "children": [98, 99], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 30}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 25}}, {"id": 99, "type": "pointer_declarator", "text": "*argv", "parent": 97, "children": [100, 101], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 30}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 26}}, {"id": 101, "type": "identifier", "text": "argv", "parent": 99, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 30}}, {"id": 102, "type": "declaration", "text": "int i,length;", "parent": 87, "children": [103, 104, 105], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 15}}, {"id": 103, "type": "primitive_type", "text": "int", "parent": 102, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 5}}, {"id": 104, "type": "identifier", "text": "i", "parent": 102, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 7}}, {"id": 105, "type": "identifier", "text": "length", "parent": 102, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 14}}, {"id": 106, "type": "declaration", "text": "char string[MAXLINESIZE], *loc;", "parent": 87, "children": [107, 108, 111], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 33}}, {"id": 107, "type": "primitive_type", "text": "char", "parent": 106, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 108, "type": "array_declarator", "text": "string[MAXLINESIZE]", "parent": 106, "children": [109, 110], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 26}}, {"id": 109, "type": "identifier", "text": "string", "parent": 108, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 13}}, {"id": 110, "type": "identifier", "text": "MAXLINESIZE", "parent": 108, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 25}}, {"id": 111, "type": "pointer_declarator", "text": "*loc", "parent": 106, "children": [112, 113], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 32}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 29}}, {"id": 113, "type": "identifier", "text": "loc", "parent": 111, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 32}}, {"id": 114, "type": "declaration", "text": "Stringlist slist;", "parent": 87, "children": [115, 116], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 19}}, {"id": 115, "type": "type_identifier", "text": "Stringlist", "parent": 114, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 12}}, {"id": 116, "type": "identifier", "text": "slist", "parent": 114, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 18}}, {"id": 117, "type": "declaration", "text": "Stringlist wlist;", "parent": 87, "children": [118, 119], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 19}}, {"id": 118, "type": "type_identifier", "text": "Stringlist", "parent": 117, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 12}}, {"id": 119, "type": "identifier", "text": "wlist", "parent": 117, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 18}}, {"id": 120, "type": "declaration", "text": "long long numrows;", "parent": 87, "children": [121, 124], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 20}}, {"id": 121, "type": "sized_type_specifier", "text": "long long", "parent": 120, "children": [122, 123], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 11}}, {"id": 122, "type": "long", "text": "long", "parent": 121, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 6}}, {"id": 123, "type": "long", "text": "long", "parent": 121, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 11}}, {"id": 124, "type": "identifier", "text": "numrows", "parent": 120, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 19}}, {"id": 125, "type": "declaration", "text": "int numcols;", "parent": 87, "children": [126, 127], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 14}}, {"id": 126, "type": "primitive_type", "text": "int", "parent": 125, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 5}}, {"id": 127, "type": "identifier", "text": "numcols", "parent": 125, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 13}}, {"id": 128, "type": "declaration", "text": "int col_types[100];", "parent": 87, "children": [129, 130], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 21}}, {"id": 129, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 5}}, {"id": 130, "type": "array_declarator", "text": "col_types[100]", "parent": 128, "children": [131, 132], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 20}}, {"id": 131, "type": "identifier", "text": "col_types", "parent": 130, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 15}}, {"id": 132, "type": "number_literal", "text": "100", "parent": 130, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 19}}, {"id": 133, "type": "declaration", "text": "double col_mins[100],col_maxes[100];", "parent": 87, "children": [134, 135, 138], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 38}}, {"id": 134, "type": "primitive_type", "text": "double", "parent": 133, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 8}}, {"id": 135, "type": "array_declarator", "text": "col_mins[100]", "parent": 133, "children": [136, 137], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 22}}, {"id": 136, "type": "identifier", "text": "col_mins", "parent": 135, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 17}}, {"id": 137, "type": "number_literal", "text": "100", "parent": 135, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 21}}, {"id": 138, "type": "array_declarator", "text": "col_maxes[100]", "parent": 133, "children": [139, 140], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 37}}, {"id": 139, "type": "identifier", "text": "col_maxes", "parent": 138, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 32}}, {"id": 140, "type": "number_literal", "text": "100", "parent": 138, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 36}}, {"id": 141, "type": "declaration", "text": "char punctuation[8] = { ' ', '.', '/', '\\\\', '(', ')', ',', '\\0' };", "parent": 87, "children": [142, 143], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 69}}, {"id": 142, "type": "primitive_type", "text": "char", "parent": 141, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 6}}, {"id": 143, "type": "init_declarator", "text": "punctuation[8] = { ' ', '.', '/', '\\\\', '(', ')', ',', '\\0' }", "parent": 141, "children": [144, 147, 148], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 68}}, {"id": 144, "type": "array_declarator", "text": "punctuation[8]", "parent": 143, "children": [145, 146], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 21}}, {"id": 145, "type": "identifier", "text": "punctuation", "parent": 144, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 18}}, {"id": 146, "type": "number_literal", "text": "8", "parent": 144, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 147, "type": "=", "text": "=", "parent": 143, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 23}}, {"id": 148, "type": "initializer_list", "text": "{ ' ', '.', '/', '\\\\', '(', ')', ',', '\\0' }", "parent": 143, "children": [149, 153, 156, 160, 164, 167, 170, 173], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 68}}, {"id": 149, "type": "char_literal", "text": "' '", "parent": 148, "children": [150, 151, 152], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 29}}, {"id": 150, "type": "'", "text": "'", "parent": 149, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 27}}, {"id": 151, "type": "character", "text": " ", "parent": 149, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 28}}, {"id": 152, "type": "'", "text": "'", "parent": 149, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 29}}, {"id": 153, "type": "char_literal", "text": "'.'", "parent": 148, "children": [154, 155], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 34}}, {"id": 154, "type": "'", "text": "'", "parent": 153, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 155, "type": "'", "text": "'", "parent": 153, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 34}}, {"id": 156, "type": "char_literal", "text": "'/'", "parent": 148, "children": [157, 158, 159], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 39}}, {"id": 157, "type": "'", "text": "'", "parent": 156, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 37}}, {"id": 158, "type": "character", "text": "/", "parent": 156, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 38}}, {"id": 159, "type": "'", "text": "'", "parent": 156, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 39}}, {"id": 160, "type": "char_literal", "text": "'\\\\'", "parent": 148, "children": [161, 162, 163], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 45}}, {"id": 161, "type": "'", "text": "'", "parent": 160, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 42}}, {"id": 162, "type": "escape_sequence", "text": "\\\\", "parent": 160, "children": [], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 44}}, {"id": 163, "type": "'", "text": "'", "parent": 160, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 45}}, {"id": 164, "type": "char_literal", "text": "'('", "parent": 148, "children": [165, 166], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 50}}, {"id": 165, "type": "'", "text": "'", "parent": 164, "children": [], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 48}}, {"id": 166, "type": "'", "text": "'", "parent": 164, "children": [], "start_point": {"row": 33, "column": 49}, "end_point": {"row": 33, "column": 50}}, {"id": 167, "type": "char_literal", "text": "')'", "parent": 148, "children": [168, 169], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 55}}, {"id": 168, "type": "'", "text": "'", "parent": 167, "children": [], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 53}}, {"id": 169, "type": "'", "text": "'", "parent": 167, "children": [], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 55}}, {"id": 170, "type": "char_literal", "text": "','", "parent": 148, "children": [171, 172], "start_point": {"row": 33, "column": 57}, "end_point": {"row": 33, "column": 60}}, {"id": 171, "type": "'", "text": "'", "parent": 170, "children": [], "start_point": {"row": 33, "column": 57}, "end_point": {"row": 33, "column": 58}}, {"id": 172, "type": "'", "text": "'", "parent": 170, "children": [], "start_point": {"row": 33, "column": 59}, "end_point": {"row": 33, "column": 60}}, {"id": 173, "type": "char_literal", "text": "'\\0'", "parent": 148, "children": [174, 175, 176], "start_point": {"row": 33, "column": 62}, "end_point": {"row": 33, "column": 66}}, {"id": 174, "type": "'", "text": "'", "parent": 173, "children": [], "start_point": {"row": 33, "column": 62}, "end_point": {"row": 33, "column": 63}}, {"id": 175, "type": "escape_sequence", "text": "\\0", "parent": 173, "children": [], "start_point": {"row": 33, "column": 63}, "end_point": {"row": 33, "column": 65}}, {"id": 176, "type": "'", "text": "'", "parent": 173, "children": [], "start_point": {"row": 33, "column": 65}, "end_point": {"row": 33, "column": 66}}, {"id": 177, "type": "call_expression", "text": "srand(12)", "parent": 87, "children": [178, 179], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 11}}, {"id": 178, "type": "identifier", "text": "srand", "parent": 177, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 7}}, {"id": 179, "type": "argument_list", "text": "(12)", "parent": 177, "children": [180], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 180, "type": "number_literal", "text": "12", "parent": 179, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 10}}, {"id": 181, "type": "declaration", "text": "FILE *infile;", "parent": 87, "children": [182, 183], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 15}}, {"id": 182, "type": "type_identifier", "text": "FILE", "parent": 181, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 6}}, {"id": 183, "type": "pointer_declarator", "text": "*infile", "parent": 181, "children": [184, 185], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 14}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 8}}, {"id": 185, "type": "identifier", "text": "infile", "parent": 183, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 186, "type": "if_statement", "text": "if ((argc-1) < 2) {\n printf(\"usage: %s text_seed_input_file_name number_of_rows_to_generate\\n\",argv[0]);\n exit(1);\n }", "parent": 87, "children": [187], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 42, "column": 3}}, {"id": 187, "type": "parenthesized_expression", "text": "((argc-1) < 2)", "parent": 186, "children": [188], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 19}}, {"id": 188, "type": "binary_expression", "text": "(argc-1) < 2", "parent": 187, "children": [189, 194, 195], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 18}}, {"id": 189, "type": "parenthesized_expression", "text": "(argc-1)", "parent": 188, "children": [190], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 14}}, {"id": 190, "type": "binary_expression", "text": "argc-1", "parent": 189, "children": [191, 192, 193], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 13}}, {"id": 191, "type": "identifier", "text": "argc", "parent": 190, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 192, "type": "-", "text": "-", "parent": 190, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}, {"id": 193, "type": "number_literal", "text": "1", "parent": 190, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 13}}, {"id": 194, "type": "<", "text": "<", "parent": 188, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 195, "type": "number_literal", "text": "2", "parent": 188, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 18}}, {"id": 196, "type": "call_expression", "text": "printf(\"usage: %s text_seed_input_file_name number_of_rows_to_generate\\n\",argv[0])", "parent": 186, "children": [197, 198], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 86}}, {"id": 197, "type": "identifier", "text": "printf", "parent": 196, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 10}}, {"id": 198, "type": "argument_list", "text": "(\"usage: %s text_seed_input_file_name number_of_rows_to_generate\\n\",argv[0])", "parent": 196, "children": [199, 201], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 86}}, {"id": 199, "type": "string_literal", "text": "\"usage: %s text_seed_input_file_name number_of_rows_to_generate\\n\"", "parent": 198, "children": [200], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 77}}, {"id": 200, "type": "escape_sequence", "text": "\\n", "parent": 199, "children": [], "start_point": {"row": 40, "column": 74}, "end_point": {"row": 40, "column": 76}}, {"id": 201, "type": "subscript_expression", "text": "argv[0]", "parent": 198, "children": [202, 203], "start_point": {"row": 40, "column": 78}, "end_point": {"row": 40, "column": 85}}, {"id": 202, "type": "identifier", "text": "argv", "parent": 201, "children": [], "start_point": {"row": 40, "column": 78}, "end_point": {"row": 40, "column": 82}}, {"id": 203, "type": "number_literal", "text": "0", "parent": 201, "children": [], "start_point": {"row": 40, "column": 83}, "end_point": {"row": 40, "column": 84}}, {"id": 204, "type": "call_expression", "text": "exit(1)", "parent": 186, "children": [205, 206], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 11}}, {"id": 205, "type": "identifier", "text": "exit", "parent": 204, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 8}}, {"id": 206, "type": "argument_list", "text": "(1)", "parent": 204, "children": [207], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 11}}, {"id": 207, "type": "number_literal", "text": "1", "parent": 206, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 10}}, {"id": 208, "type": "if_statement", "text": "if ( (infile=fopen(argv[1],\"r\")) == NULL ) {\n printf(\"error opening file %s for reading\\n\",argv[1]);\n exit(2);\n }", "parent": 87, "children": [209], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 47, "column": 3}}, {"id": 209, "type": "parenthesized_expression", "text": "( (infile=fopen(argv[1],\"r\")) == NULL )", "parent": 208, "children": [210], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 44}}, {"id": 210, "type": "binary_expression", "text": "(infile=fopen(argv[1],\"r\")) == NULL", "parent": 209, "children": [211, 222, 223], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 42}}, {"id": 211, "type": "parenthesized_expression", "text": "(infile=fopen(argv[1],\"r\"))", "parent": 210, "children": [212], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 34}}, {"id": 212, "type": "assignment_expression", "text": "infile=fopen(argv[1],\"r\")", "parent": 211, "children": [213, 214, 215], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 33}}, {"id": 213, "type": "identifier", "text": "infile", "parent": 212, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 14}}, {"id": 214, "type": "=", "text": "=", "parent": 212, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 215, "type": "call_expression", "text": "fopen(argv[1],\"r\")", "parent": 212, "children": [216, 217], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 33}}, {"id": 216, "type": "identifier", "text": "fopen", "parent": 215, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 20}}, {"id": 217, "type": "argument_list", "text": "(argv[1],\"r\")", "parent": 215, "children": [218, 221], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 33}}, {"id": 218, "type": "subscript_expression", "text": "argv[1]", "parent": 217, "children": [219, 220], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 28}}, {"id": 219, "type": "identifier", "text": "argv", "parent": 218, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 25}}, {"id": 220, "type": "number_literal", "text": "1", "parent": 218, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 27}}, {"id": 221, "type": "string_literal", "text": "\"r\"", "parent": 217, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 32}}, {"id": 222, "type": "==", "text": "==", "parent": 210, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 37}}, {"id": 223, "type": "null", "text": "NULL", "parent": 210, "children": [224], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 42}}, {"id": 224, "type": "NULL", "text": "NULL", "parent": 223, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 42}}, {"id": 225, "type": "call_expression", "text": "printf(\"error opening file %s for reading\\n\",argv[1])", "parent": 208, "children": [226, 227], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 57}}, {"id": 226, "type": "identifier", "text": "printf", "parent": 225, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 10}}, {"id": 227, "type": "argument_list", "text": "(\"error opening file %s for reading\\n\",argv[1])", "parent": 225, "children": [228, 230], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 57}}, {"id": 228, "type": "string_literal", "text": "\"error opening file %s for reading\\n\"", "parent": 227, "children": [229], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 48}}, {"id": 229, "type": "escape_sequence", "text": "\\n", "parent": 228, "children": [], "start_point": {"row": 45, "column": 45}, "end_point": {"row": 45, "column": 47}}, {"id": 230, "type": "subscript_expression", "text": "argv[1]", "parent": 227, "children": [231, 232], "start_point": {"row": 45, "column": 49}, "end_point": {"row": 45, "column": 56}}, {"id": 231, "type": "identifier", "text": "argv", "parent": 230, "children": [], "start_point": {"row": 45, "column": 49}, "end_point": {"row": 45, "column": 53}}, {"id": 232, "type": "number_literal", "text": "1", "parent": 230, "children": [], "start_point": {"row": 45, "column": 54}, "end_point": {"row": 45, "column": 55}}, {"id": 233, "type": "call_expression", "text": "exit(2)", "parent": 208, "children": [234, 235], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 11}}, {"id": 234, "type": "identifier", "text": "exit", "parent": 233, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 8}}, {"id": 235, "type": "argument_list", "text": "(2)", "parent": 233, "children": [236], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 11}}, {"id": 236, "type": "number_literal", "text": "2", "parent": 235, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 10}}, {"id": 237, "type": "if_statement", "text": "if (sscanf(argv[2],\"%lli\",&numrows) != 1) {\n printf(\"error scanning number of rows from command line: %s\\n\",argv[2]);\n exit(2);\n }", "parent": 87, "children": [238], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 52, "column": 3}}, {"id": 238, "type": "parenthesized_expression", "text": "(sscanf(argv[2],\"%lli\",&numrows) != 1)", "parent": 237, "children": [239], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 43}}, {"id": 239, "type": "binary_expression", "text": "sscanf(argv[2],\"%lli\",&numrows) != 1", "parent": 238, "children": [240, 249, 250], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 42}}, {"id": 240, "type": "call_expression", "text": "sscanf(argv[2],\"%lli\",&numrows)", "parent": 239, "children": [241, 242], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 37}}, {"id": 241, "type": "identifier", "text": "sscanf", "parent": 240, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 12}}, {"id": 242, "type": "argument_list", "text": "(argv[2],\"%lli\",&numrows)", "parent": 240, "children": [243, 246, 247], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 37}}, {"id": 243, "type": "subscript_expression", "text": "argv[2]", "parent": 242, "children": [244, 245], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 20}}, {"id": 244, "type": "identifier", "text": "argv", "parent": 243, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 17}}, {"id": 245, "type": "number_literal", "text": "2", "parent": 243, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 19}}, {"id": 246, "type": "string_literal", "text": "\"%lli\"", "parent": 242, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 27}}, {"id": 247, "type": "pointer_expression", "text": "&numrows", "parent": 242, "children": [248], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 36}}, {"id": 248, "type": "identifier", "text": "numrows", "parent": 247, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 36}}, {"id": 249, "type": "!=", "text": "!=", "parent": 239, "children": [], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 40}}, {"id": 250, "type": "number_literal", "text": "1", "parent": 239, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 42}}, {"id": 251, "type": "call_expression", "text": "printf(\"error scanning number of rows from command line: %s\\n\",argv[2])", "parent": 237, "children": [252, 253], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 75}}, {"id": 252, "type": "identifier", "text": "printf", "parent": 251, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 10}}, {"id": 253, "type": "argument_list", "text": "(\"error scanning number of rows from command line: %s\\n\",argv[2])", "parent": 251, "children": [254, 256], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 75}}, {"id": 254, "type": "string_literal", "text": "\"error scanning number of rows from command line: %s\\n\"", "parent": 253, "children": [255], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 66}}, {"id": 255, "type": "escape_sequence", "text": "\\n", "parent": 254, "children": [], "start_point": {"row": 50, "column": 63}, "end_point": {"row": 50, "column": 65}}, {"id": 256, "type": "subscript_expression", "text": "argv[2]", "parent": 253, "children": [257, 258], "start_point": {"row": 50, "column": 67}, "end_point": {"row": 50, "column": 74}}, {"id": 257, "type": "identifier", "text": "argv", "parent": 256, "children": [], "start_point": {"row": 50, "column": 67}, "end_point": {"row": 50, "column": 71}}, {"id": 258, "type": "number_literal", "text": "2", "parent": 256, "children": [], "start_point": {"row": 50, "column": 72}, "end_point": {"row": 50, "column": 73}}, {"id": 259, "type": "call_expression", "text": "exit(2)", "parent": 237, "children": [260, 261], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 11}}, {"id": 260, "type": "identifier", "text": "exit", "parent": 259, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 261, "type": "argument_list", "text": "(2)", "parent": 259, "children": [262], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 11}}, {"id": 262, "type": "number_literal", "text": "2", "parent": 261, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 263, "type": "assignment_expression", "text": "slist.list=NULL", "parent": 87, "children": [264, 267, 268], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 17}}, {"id": 264, "type": "field_expression", "text": "slist.list", "parent": 263, "children": [265, 266], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 12}}, {"id": 265, "type": "identifier", "text": "slist", "parent": 264, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 7}}, {"id": 266, "type": "field_identifier", "text": "list", "parent": 264, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 12}}, {"id": 267, "type": "=", "text": "=", "parent": 263, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 13}}, {"id": 268, "type": "null", "text": "NULL", "parent": 263, "children": [269], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 17}}, {"id": 269, "type": "NULL", "text": "NULL", "parent": 268, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 17}}, {"id": 270, "type": "assignment_expression", "text": "slist.used_size=0", "parent": 87, "children": [271, 274, 275], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 36}}, {"id": 271, "type": "field_expression", "text": "slist.used_size", "parent": 270, "children": [272, 273], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 34}}, {"id": 272, "type": "identifier", "text": "slist", "parent": 271, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 24}}, {"id": 273, "type": "field_identifier", "text": "used_size", "parent": 271, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 34}}, {"id": 274, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 35}}, {"id": 275, "type": "number_literal", "text": "0", "parent": 270, "children": [], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 36}}, {"id": 276, "type": "assignment_expression", "text": "slist.chunksize=100", "parent": 87, "children": [277, 280, 281], "start_point": {"row": 56, "column": 38}, "end_point": {"row": 56, "column": 57}}, {"id": 277, "type": "field_expression", "text": "slist.chunksize", "parent": 276, "children": [278, 279], "start_point": {"row": 56, "column": 38}, "end_point": {"row": 56, "column": 53}}, {"id": 278, "type": "identifier", "text": "slist", "parent": 277, "children": [], "start_point": {"row": 56, "column": 38}, "end_point": {"row": 56, "column": 43}}, {"id": 279, "type": "field_identifier", "text": "chunksize", "parent": 277, "children": [], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 53}}, {"id": 280, "type": "=", "text": "=", "parent": 276, "children": [], "start_point": {"row": 56, "column": 53}, "end_point": {"row": 56, "column": 54}}, {"id": 281, "type": "number_literal", "text": "100", "parent": 276, "children": [], "start_point": {"row": 56, "column": 54}, "end_point": {"row": 56, "column": 57}}, {"id": 282, "type": "assignment_expression", "text": "slist.alloc_size=0", "parent": 87, "children": [283, 286, 287], "start_point": {"row": 56, "column": 59}, "end_point": {"row": 56, "column": 77}}, {"id": 283, "type": "field_expression", "text": "slist.alloc_size", "parent": 282, "children": [284, 285], "start_point": {"row": 56, "column": 59}, "end_point": {"row": 56, "column": 75}}, {"id": 284, "type": "identifier", "text": "slist", "parent": 283, "children": [], "start_point": {"row": 56, "column": 59}, "end_point": {"row": 56, "column": 64}}, {"id": 285, "type": "field_identifier", "text": "alloc_size", "parent": 283, "children": [], "start_point": {"row": 56, "column": 65}, "end_point": {"row": 56, "column": 75}}, {"id": 286, "type": "=", "text": "=", "parent": 282, "children": [], "start_point": {"row": 56, "column": 75}, "end_point": {"row": 56, "column": 76}}, {"id": 287, "type": "number_literal", "text": "0", "parent": 282, "children": [], "start_point": {"row": 56, "column": 76}, "end_point": {"row": 56, "column": 77}}, {"id": 288, "type": "while_statement", "text": "while ( (fgets(string, MAXLINESIZE, infile)) != NULL) {\n\n //Find the number of characters in the string, includes the newline but not the \\0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }", "parent": 87, "children": [289], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 78, "column": 3}}, {"id": 289, "type": "parenthesized_expression", "text": "( (fgets(string, MAXLINESIZE, infile)) != NULL)", "parent": 288, "children": [290], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 55}}, {"id": 290, "type": "binary_expression", "text": "(fgets(string, MAXLINESIZE, infile)) != NULL", "parent": 289, "children": [291, 298, 299], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 54}}, {"id": 291, "type": "parenthesized_expression", "text": "(fgets(string, MAXLINESIZE, infile))", "parent": 290, "children": [292], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 46}}, {"id": 292, "type": "call_expression", "text": "fgets(string, MAXLINESIZE, infile)", "parent": 291, "children": [293, 294], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 45}}, {"id": 293, "type": "identifier", "text": "fgets", "parent": 292, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 16}}, {"id": 294, "type": "argument_list", "text": "(string, MAXLINESIZE, infile)", "parent": 292, "children": [295, 296, 297], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 45}}, {"id": 295, "type": "identifier", "text": "string", "parent": 294, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 23}}, {"id": 296, "type": "identifier", "text": "MAXLINESIZE", "parent": 294, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 36}}, {"id": 297, "type": "identifier", "text": "infile", "parent": 294, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 44}}, {"id": 298, "type": "!=", "text": "!=", "parent": 290, "children": [], "start_point": {"row": 58, "column": 47}, "end_point": {"row": 58, "column": 49}}, {"id": 299, "type": "null", "text": "NULL", "parent": 290, "children": [300], "start_point": {"row": 58, "column": 50}, "end_point": {"row": 58, "column": 54}}, {"id": 300, "type": "NULL", "text": "NULL", "parent": 299, "children": [], "start_point": {"row": 58, "column": 50}, "end_point": {"row": 58, "column": 54}}, {"id": 301, "type": "assignment_expression", "text": "length = strlen(string)", "parent": 288, "children": [302, 303, 304], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 27}}, {"id": 302, "type": "identifier", "text": "length", "parent": 301, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 10}}, {"id": 303, "type": "=", "text": "=", "parent": 301, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 12}}, {"id": 304, "type": "call_expression", "text": "strlen(string)", "parent": 301, "children": [305, 306], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 27}}, {"id": 305, "type": "identifier", "text": "strlen", "parent": 304, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 19}}, {"id": 306, "type": "argument_list", "text": "(string)", "parent": 304, "children": [307], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 27}}, {"id": 307, "type": "identifier", "text": "string", "parent": 306, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 26}}, {"id": 308, "type": "assignment_expression", "text": "string[length-1]='\\0'", "parent": 288, "children": [309, 315, 316], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 25}}, {"id": 309, "type": "subscript_expression", "text": "string[length-1]", "parent": 308, "children": [310, 311], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 20}}, {"id": 310, "type": "identifier", "text": "string", "parent": 309, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 10}}, {"id": 311, "type": "binary_expression", "text": "length-1", "parent": 309, "children": [312, 313, 314], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 19}}, {"id": 312, "type": "identifier", "text": "length", "parent": 311, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 17}}, {"id": 313, "type": "-", "text": "-", "parent": 311, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 18}}, {"id": 314, "type": "number_literal", "text": "1", "parent": 311, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 19}}, {"id": 315, "type": "=", "text": "=", "parent": 308, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 21}}, {"id": 316, "type": "char_literal", "text": "'\\0'", "parent": 308, "children": [317, 318, 319], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 25}}, {"id": 317, "type": "'", "text": "'", "parent": 316, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 22}}, {"id": 318, "type": "escape_sequence", "text": "\\0", "parent": 316, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 24}}, {"id": 319, "type": "'", "text": "'", "parent": 316, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 320, "type": "update_expression", "text": "slist.used_size++", "parent": 288, "children": [321, 324], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 21}}, {"id": 321, "type": "field_expression", "text": "slist.used_size", "parent": 320, "children": [322, 323], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 19}}, {"id": 322, "type": "identifier", "text": "slist", "parent": 321, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 9}}, {"id": 323, "type": "field_identifier", "text": "used_size", "parent": 321, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 19}}, {"id": 324, "type": "++", "text": "++", "parent": 320, "children": [], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 21}}, {"id": 325, "type": "call_expression", "text": "alloc_more_stringlist(&slist,slist.used_size)", "parent": 288, "children": [326, 327], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 49}}, {"id": 326, "type": "identifier", "text": "alloc_more_stringlist", "parent": 325, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 25}}, {"id": 327, "type": "argument_list", "text": "(&slist,slist.used_size)", "parent": 325, "children": [328, 330], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 49}}, {"id": 328, "type": "pointer_expression", "text": "&slist", "parent": 327, "children": [329], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 32}}, {"id": 329, "type": "identifier", "text": "slist", "parent": 328, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 32}}, {"id": 330, "type": "field_expression", "text": "slist.used_size", "parent": 327, "children": [331, 332], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 48}}, {"id": 331, "type": "identifier", "text": "slist", "parent": 330, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 38}}, {"id": 332, "type": "field_identifier", "text": "used_size", "parent": 330, "children": [], "start_point": {"row": 67, "column": 39}, "end_point": {"row": 67, "column": 48}}, {"id": 333, "type": "assignment_expression", "text": "*(slist.pos)=(char *)malloc(sizeof(char)*length)", "parent": 288, "children": [334, 340, 341], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 52}}, {"id": 334, "type": "pointer_expression", "text": "*(slist.pos)", "parent": 333, "children": [335, 336], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 16}}, {"id": 335, "type": "*", "text": "*", "parent": 334, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 336, "type": "parenthesized_expression", "text": "(slist.pos)", "parent": 334, "children": [337], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 16}}, {"id": 337, "type": "field_expression", "text": "slist.pos", "parent": 336, "children": [338, 339], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 15}}, {"id": 338, "type": "identifier", "text": "slist", "parent": 337, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 11}}, {"id": 339, "type": "field_identifier", "text": "pos", "parent": 337, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 15}}, {"id": 340, "type": "=", "text": "=", "parent": 333, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 17}}, {"id": 341, "type": "cast_expression", "text": "(char *)malloc(sizeof(char)*length)", "parent": 333, "children": [342, 346], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 52}}, {"id": 342, "type": "type_descriptor", "text": "char *", "parent": 341, "children": [343, 344], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 24}}, {"id": 343, "type": "primitive_type", "text": "char", "parent": 342, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 22}}, {"id": 344, "type": "abstract_pointer_declarator", "text": "*", "parent": 342, "children": [345], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 24}}, {"id": 345, "type": "*", "text": "*", "parent": 344, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 24}}, {"id": 346, "type": "call_expression", "text": "malloc(sizeof(char)*length)", "parent": 341, "children": [347, 348], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 52}}, {"id": 347, "type": "identifier", "text": "malloc", "parent": 346, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 31}}, {"id": 348, "type": "argument_list", "text": "(sizeof(char)*length)", "parent": 346, "children": [349], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 52}}, {"id": 349, "type": "binary_expression", "text": "sizeof(char)*length", "parent": 348, "children": [350, 353, 354], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 51}}, {"id": 350, "type": "sizeof_expression", "text": "sizeof(char)", "parent": 349, "children": [351], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 44}}, {"id": 351, "type": "type_descriptor", "text": "char", "parent": 350, "children": [352], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 70, "column": 43}}, {"id": 352, "type": "primitive_type", "text": "char", "parent": 351, "children": [], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 70, "column": 43}}, {"id": 353, "type": "*", "text": "*", "parent": 349, "children": [], "start_point": {"row": 70, "column": 44}, "end_point": {"row": 70, "column": 45}}, {"id": 354, "type": "identifier", "text": "length", "parent": 349, "children": [], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 51}}, {"id": 355, "type": "call_expression", "text": "strcpy(*(slist.pos),string)", "parent": 288, "children": [356, 357], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 31}}, {"id": 356, "type": "identifier", "text": "strcpy", "parent": 355, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 10}}, {"id": 357, "type": "argument_list", "text": "(*(slist.pos),string)", "parent": 355, "children": [358, 364], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 31}}, {"id": 358, "type": "pointer_expression", "text": "*(slist.pos)", "parent": 357, "children": [359, 360], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 23}}, {"id": 359, "type": "*", "text": "*", "parent": 358, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 12}}, {"id": 360, "type": "parenthesized_expression", "text": "(slist.pos)", "parent": 358, "children": [361], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 23}}, {"id": 361, "type": "field_expression", "text": "slist.pos", "parent": 360, "children": [362, 363], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 22}}, {"id": 362, "type": "identifier", "text": "slist", "parent": 361, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 18}}, {"id": 363, "type": "field_identifier", "text": "pos", "parent": 361, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 22}}, {"id": 364, "type": "identifier", "text": "string", "parent": 357, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 30}}, {"id": 365, "type": "update_expression", "text": "slist.pos++", "parent": 288, "children": [366, 369], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 15}}, {"id": 366, "type": "field_expression", "text": "slist.pos", "parent": 365, "children": [367, 368], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 13}}, {"id": 367, "type": "identifier", "text": "slist", "parent": 366, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 9}}, {"id": 368, "type": "field_identifier", "text": "pos", "parent": 366, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 13}}, {"id": 369, "type": "++", "text": "++", "parent": 365, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 15}}, {"id": 370, "type": "assignment_expression", "text": "slist.pos = slist.list", "parent": 87, "children": [371, 374, 375], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 24}}, {"id": 371, "type": "field_expression", "text": "slist.pos", "parent": 370, "children": [372, 373], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 11}}, {"id": 372, "type": "identifier", "text": "slist", "parent": 371, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 7}}, {"id": 373, "type": "field_identifier", "text": "pos", "parent": 371, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 11}}, {"id": 374, "type": "=", "text": "=", "parent": 370, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 13}}, {"id": 375, "type": "field_expression", "text": "slist.list", "parent": 370, "children": [376, 377], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 24}}, {"id": 376, "type": "identifier", "text": "slist", "parent": 375, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 19}}, {"id": 377, "type": "field_identifier", "text": "list", "parent": 375, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 24}}, {"id": 378, "type": "assignment_expression", "text": "wlist.list=NULL", "parent": 87, "children": [379, 382, 383], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 17}}, {"id": 379, "type": "field_expression", "text": "wlist.list", "parent": 378, "children": [380, 381], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 12}}, {"id": 380, "type": "identifier", "text": "wlist", "parent": 379, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 7}}, {"id": 381, "type": "field_identifier", "text": "list", "parent": 379, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 12}}, {"id": 382, "type": "=", "text": "=", "parent": 378, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 13}}, {"id": 383, "type": "null", "text": "NULL", "parent": 378, "children": [384], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 17}}, {"id": 384, "type": "NULL", "text": "NULL", "parent": 383, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 17}}, {"id": 385, "type": "assignment_expression", "text": "wlist.used_size=0", "parent": 87, "children": [386, 389, 390], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 36}}, {"id": 386, "type": "field_expression", "text": "wlist.used_size", "parent": 385, "children": [387, 388], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 34}}, {"id": 387, "type": "identifier", "text": "wlist", "parent": 386, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 24}}, {"id": 388, "type": "field_identifier", "text": "used_size", "parent": 386, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 34}}, {"id": 389, "type": "=", "text": "=", "parent": 385, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 35}}, {"id": 390, "type": "number_literal", "text": "0", "parent": 385, "children": [], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 36}}, {"id": 391, "type": "assignment_expression", "text": "wlist.chunksize=100", "parent": 87, "children": [392, 395, 396], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 84, "column": 57}}, {"id": 392, "type": "field_expression", "text": "wlist.chunksize", "parent": 391, "children": [393, 394], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 84, "column": 53}}, {"id": 393, "type": "identifier", "text": "wlist", "parent": 392, "children": [], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 84, "column": 43}}, {"id": 394, "type": "field_identifier", "text": "chunksize", "parent": 392, "children": [], "start_point": {"row": 84, "column": 44}, "end_point": {"row": 84, "column": 53}}, {"id": 395, "type": "=", "text": "=", "parent": 391, "children": [], "start_point": {"row": 84, "column": 53}, "end_point": {"row": 84, "column": 54}}, {"id": 396, "type": "number_literal", "text": "100", "parent": 391, "children": [], "start_point": {"row": 84, "column": 54}, "end_point": {"row": 84, "column": 57}}, {"id": 397, "type": "assignment_expression", "text": "wlist.alloc_size=0", "parent": 87, "children": [398, 401, 402], "start_point": {"row": 84, "column": 59}, "end_point": {"row": 84, "column": 77}}, {"id": 398, "type": "field_expression", "text": "wlist.alloc_size", "parent": 397, "children": [399, 400], "start_point": {"row": 84, "column": 59}, "end_point": {"row": 84, "column": 75}}, {"id": 399, "type": "identifier", "text": "wlist", "parent": 398, "children": [], "start_point": {"row": 84, "column": 59}, "end_point": {"row": 84, "column": 64}}, {"id": 400, "type": "field_identifier", "text": "alloc_size", "parent": 398, "children": [], "start_point": {"row": 84, "column": 65}, "end_point": {"row": 84, "column": 75}}, {"id": 401, "type": "=", "text": "=", "parent": 397, "children": [], "start_point": {"row": 84, "column": 75}, "end_point": {"row": 84, "column": 76}}, {"id": 402, "type": "number_literal", "text": "0", "parent": 397, "children": [], "start_point": {"row": 84, "column": 76}, "end_point": {"row": 84, "column": 77}}, {"id": 403, "type": "for_statement", "text": "for (i=0; i<slist.used_size; i++) {\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }", "parent": 87, "children": [404, 408, 414], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 113, "column": 3}}, {"id": 404, "type": "assignment_expression", "text": "i=0", "parent": 403, "children": [405, 406, 407], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 10}}, {"id": 405, "type": "identifier", "text": "i", "parent": 404, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 8}}, {"id": 406, "type": "=", "text": "=", "parent": 404, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 407, "type": "number_literal", "text": "0", "parent": 404, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 10}}, {"id": 408, "type": "binary_expression", "text": "i<slist.used_size", "parent": 403, "children": [409, 410, 411], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 29}}, {"id": 409, "type": "identifier", "text": "i", "parent": 408, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 13}}, {"id": 410, "type": "<", "text": "<", "parent": 408, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 14}}, {"id": 411, "type": "field_expression", "text": "slist.used_size", "parent": 408, "children": [412, 413], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 29}}, {"id": 412, "type": "identifier", "text": "slist", "parent": 411, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 19}}, {"id": 413, "type": "field_identifier", "text": "used_size", "parent": 411, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 29}}, {"id": 414, "type": "update_expression", "text": "i++", "parent": 403, "children": [415, 416], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 34}}, {"id": 415, "type": "identifier", "text": "i", "parent": 414, "children": [], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 32}}, {"id": 416, "type": "++", "text": "++", "parent": 414, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 34}}, {"id": 417, "type": "update_expression", "text": "wlist.used_size++", "parent": 403, "children": [418, 421], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 21}}, {"id": 418, "type": "field_expression", "text": "wlist.used_size", "parent": 417, "children": [419, 420], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 19}}, {"id": 419, "type": "identifier", "text": "wlist", "parent": 418, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 9}}, {"id": 420, "type": "field_identifier", "text": "used_size", "parent": 418, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 19}}, {"id": 421, "type": "++", "text": "++", "parent": 417, "children": [], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 21}}, {"id": 422, "type": "call_expression", "text": "alloc_more_stringlist(&wlist,wlist.used_size)", "parent": 403, "children": [423, 424], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 49}}, {"id": 423, "type": "identifier", "text": "alloc_more_stringlist", "parent": 422, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 25}}, {"id": 424, "type": "argument_list", "text": "(&wlist,wlist.used_size)", "parent": 422, "children": [425, 427], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 49}}, {"id": 425, "type": "pointer_expression", "text": "&wlist", "parent": 424, "children": [426], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 32}}, {"id": 426, "type": "identifier", "text": "wlist", "parent": 425, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 32}}, {"id": 427, "type": "field_expression", "text": "wlist.used_size", "parent": 424, "children": [428, 429], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 48}}, {"id": 428, "type": "identifier", "text": "wlist", "parent": 427, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 38}}, {"id": 429, "type": "field_identifier", "text": "used_size", "parent": 427, "children": [], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 48}}, {"id": 430, "type": "assignment_expression", "text": "loc = strtok(slist.list[i],(char *)punctuation)", "parent": 403, "children": [431, 432, 433], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 51}}, {"id": 431, "type": "identifier", "text": "loc", "parent": 430, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 7}}, {"id": 432, "type": "=", "text": "=", "parent": 430, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 433, "type": "call_expression", "text": "strtok(slist.list[i],(char *)punctuation)", "parent": 430, "children": [434, 435], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 51}}, {"id": 434, "type": "identifier", "text": "strtok", "parent": 433, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 16}}, {"id": 435, "type": "argument_list", "text": "(slist.list[i],(char *)punctuation)", "parent": 433, "children": [436, 441], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 51}}, {"id": 436, "type": "subscript_expression", "text": "slist.list[i]", "parent": 435, "children": [437, 440], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 30}}, {"id": 437, "type": "field_expression", "text": "slist.list", "parent": 436, "children": [438, 439], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 27}}, {"id": 438, "type": "identifier", "text": "slist", "parent": 437, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 22}}, {"id": 439, "type": "field_identifier", "text": "list", "parent": 437, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 27}}, {"id": 440, "type": "identifier", "text": "i", "parent": 436, "children": [], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 29}}, {"id": 441, "type": "cast_expression", "text": "(char *)punctuation", "parent": 435, "children": [442, 446], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 50}}, {"id": 442, "type": "type_descriptor", "text": "char *", "parent": 441, "children": [443, 444], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 38}}, {"id": 443, "type": "primitive_type", "text": "char", "parent": 442, "children": [], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 36}}, {"id": 444, "type": "abstract_pointer_declarator", "text": "*", "parent": 442, "children": [445], "start_point": {"row": 93, "column": 37}, "end_point": {"row": 93, "column": 38}}, {"id": 445, "type": "*", "text": "*", "parent": 444, "children": [], "start_point": {"row": 93, "column": 37}, "end_point": {"row": 93, "column": 38}}, {"id": 446, "type": "identifier", "text": "punctuation", "parent": 441, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 50}}, {"id": 447, "type": "if_statement", "text": "if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }", "parent": 403, "children": [448], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 101, "column": 5}}, {"id": 448, "type": "parenthesized_expression", "text": "(loc != NULL)", "parent": 447, "children": [449], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 20}}, {"id": 449, "type": "binary_expression", "text": "loc != NULL", "parent": 448, "children": [450, 451, 452], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 19}}, {"id": 450, "type": "identifier", "text": "loc", "parent": 449, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 11}}, {"id": 451, "type": "!=", "text": "!=", "parent": 449, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 14}}, {"id": 452, "type": "null", "text": "NULL", "parent": 449, "children": [453], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 19}}, {"id": 453, "type": "NULL", "text": "NULL", "parent": 452, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 19}}, {"id": 454, "type": "assignment_expression", "text": "length = strlen(loc)+1", "parent": 447, "children": [455, 456, 457], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 28}}, {"id": 455, "type": "identifier", "text": "length", "parent": 454, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 12}}, {"id": 456, "type": "=", "text": "=", "parent": 454, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 14}}, {"id": 457, "type": "binary_expression", "text": "strlen(loc)+1", "parent": 454, "children": [458, 462, 463], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 28}}, {"id": 458, "type": "call_expression", "text": "strlen(loc)", "parent": 457, "children": [459, 460], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 26}}, {"id": 459, "type": "identifier", "text": "strlen", "parent": 458, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 21}}, {"id": 460, "type": "argument_list", "text": "(loc)", "parent": 458, "children": [461], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 26}}, {"id": 461, "type": "identifier", "text": "loc", "parent": 460, "children": [], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 25}}, {"id": 462, "type": "+", "text": "+", "parent": 457, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 27}}, {"id": 463, "type": "number_literal", "text": "1", "parent": 457, "children": [], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 28}}, {"id": 464, "type": "assignment_expression", "text": "*(wlist.pos)=(char *)malloc(sizeof(char)*length)", "parent": 447, "children": [465, 471, 472], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 54}}, {"id": 465, "type": "pointer_expression", "text": "*(wlist.pos)", "parent": 464, "children": [466, 467], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 18}}, {"id": 466, "type": "*", "text": "*", "parent": 465, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 7}}, {"id": 467, "type": "parenthesized_expression", "text": "(wlist.pos)", "parent": 465, "children": [468], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 18}}, {"id": 468, "type": "field_expression", "text": "wlist.pos", "parent": 467, "children": [469, 470], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 17}}, {"id": 469, "type": "identifier", "text": "wlist", "parent": 468, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 13}}, {"id": 470, "type": "field_identifier", "text": "pos", "parent": 468, "children": [], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 17}}, {"id": 471, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 19}}, {"id": 472, "type": "cast_expression", "text": "(char *)malloc(sizeof(char)*length)", "parent": 464, "children": [473, 477], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 54}}, {"id": 473, "type": "type_descriptor", "text": "char *", "parent": 472, "children": [474, 475], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 26}}, {"id": 474, "type": "primitive_type", "text": "char", "parent": 473, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 24}}, {"id": 475, "type": "abstract_pointer_declarator", "text": "*", "parent": 473, "children": [476], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 26}}, {"id": 476, "type": "*", "text": "*", "parent": 475, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 26}}, {"id": 477, "type": "call_expression", "text": "malloc(sizeof(char)*length)", "parent": 472, "children": [478, 479], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 54}}, {"id": 478, "type": "identifier", "text": "malloc", "parent": 477, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 33}}, {"id": 479, "type": "argument_list", "text": "(sizeof(char)*length)", "parent": 477, "children": [480], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 54}}, {"id": 480, "type": "binary_expression", "text": "sizeof(char)*length", "parent": 479, "children": [481, 484, 485], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 53}}, {"id": 481, "type": "sizeof_expression", "text": "sizeof(char)", "parent": 480, "children": [482], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 46}}, {"id": 482, "type": "type_descriptor", "text": "char", "parent": 481, "children": [483], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 45}}, {"id": 483, "type": "primitive_type", "text": "char", "parent": 482, "children": [], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 45}}, {"id": 484, "type": "*", "text": "*", "parent": 480, "children": [], "start_point": {"row": 98, "column": 46}, "end_point": {"row": 98, "column": 47}}, {"id": 485, "type": "identifier", "text": "length", "parent": 480, "children": [], "start_point": {"row": 98, "column": 47}, "end_point": {"row": 98, "column": 53}}, {"id": 486, "type": "call_expression", "text": "strcpy(*(wlist.pos),loc)", "parent": 447, "children": [487, 488], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 30}}, {"id": 487, "type": "identifier", "text": "strcpy", "parent": 486, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 12}}, {"id": 488, "type": "argument_list", "text": "(*(wlist.pos),loc)", "parent": 486, "children": [489, 495], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 30}}, {"id": 489, "type": "pointer_expression", "text": "*(wlist.pos)", "parent": 488, "children": [490, 491], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 25}}, {"id": 490, "type": "*", "text": "*", "parent": 489, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 491, "type": "parenthesized_expression", "text": "(wlist.pos)", "parent": 489, "children": [492], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 25}}, {"id": 492, "type": "field_expression", "text": "wlist.pos", "parent": 491, "children": [493, 494], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 24}}, {"id": 493, "type": "identifier", "text": "wlist", "parent": 492, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 20}}, {"id": 494, "type": "field_identifier", "text": "pos", "parent": 492, "children": [], "start_point": {"row": 99, "column": 21}, "end_point": {"row": 99, "column": 24}}, {"id": 495, "type": "identifier", "text": "loc", "parent": 488, "children": [], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 29}}, {"id": 496, "type": "update_expression", "text": "wlist.pos++", "parent": 447, "children": [497, 500], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 17}}, {"id": 497, "type": "field_expression", "text": "wlist.pos", "parent": 496, "children": [498, 499], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 15}}, {"id": 498, "type": "identifier", "text": "wlist", "parent": 497, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 11}}, {"id": 499, "type": "field_identifier", "text": "pos", "parent": 497, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 15}}, {"id": 500, "type": "++", "text": "++", "parent": 496, "children": [], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 17}}, {"id": 501, "type": "while_statement", "text": "while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }", "parent": 403, "children": [502], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 112, "column": 5}}, {"id": 502, "type": "parenthesized_expression", "text": "( (loc = strtok(NULL,(char *)punctuation)) != NULL)", "parent": 501, "children": [503], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 61}}, {"id": 503, "type": "binary_expression", "text": "(loc = strtok(NULL,(char *)punctuation)) != NULL", "parent": 502, "children": [504, 519, 520], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 60}}, {"id": 504, "type": "parenthesized_expression", "text": "(loc = strtok(NULL,(char *)punctuation))", "parent": 503, "children": [505], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 52}}, {"id": 505, "type": "assignment_expression", "text": "loc = strtok(NULL,(char *)punctuation)", "parent": 504, "children": [506, 507, 508], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 51}}, {"id": 506, "type": "identifier", "text": "loc", "parent": 505, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 16}}, {"id": 507, "type": "=", "text": "=", "parent": 505, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 508, "type": "call_expression", "text": "strtok(NULL,(char *)punctuation)", "parent": 505, "children": [509, 510], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 51}}, {"id": 509, "type": "identifier", "text": "strtok", "parent": 508, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 25}}, {"id": 510, "type": "argument_list", "text": "(NULL,(char *)punctuation)", "parent": 508, "children": [511, 513], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 51}}, {"id": 511, "type": "null", "text": "NULL", "parent": 510, "children": [512], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 30}}, {"id": 512, "type": "NULL", "text": "NULL", "parent": 511, "children": [], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 30}}, {"id": 513, "type": "cast_expression", "text": "(char *)punctuation", "parent": 510, "children": [514, 518], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 50}}, {"id": 514, "type": "type_descriptor", "text": "char *", "parent": 513, "children": [515, 516], "start_point": {"row": 103, "column": 32}, "end_point": {"row": 103, "column": 38}}, {"id": 515, "type": "primitive_type", "text": "char", "parent": 514, "children": [], "start_point": {"row": 103, "column": 32}, "end_point": {"row": 103, "column": 36}}, {"id": 516, "type": "abstract_pointer_declarator", "text": "*", "parent": 514, "children": [517], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 38}}, {"id": 517, "type": "*", "text": "*", "parent": 516, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 38}}, {"id": 518, "type": "identifier", "text": "punctuation", "parent": 513, "children": [], "start_point": {"row": 103, "column": 39}, "end_point": {"row": 103, "column": 50}}, {"id": 519, "type": "!=", "text": "!=", "parent": 503, "children": [], "start_point": {"row": 103, "column": 53}, "end_point": {"row": 103, "column": 55}}, {"id": 520, "type": "null", "text": "NULL", "parent": 503, "children": [521], "start_point": {"row": 103, "column": 56}, "end_point": {"row": 103, "column": 60}}, {"id": 521, "type": "NULL", "text": "NULL", "parent": 520, "children": [], "start_point": {"row": 103, "column": 56}, "end_point": {"row": 103, "column": 60}}, {"id": 522, "type": "update_expression", "text": "wlist.used_size++", "parent": 501, "children": [523, 526], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 23}}, {"id": 523, "type": "field_expression", "text": "wlist.used_size", "parent": 522, "children": [524, 525], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 21}}, {"id": 524, "type": "identifier", "text": "wlist", "parent": 523, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 11}}, {"id": 525, "type": "field_identifier", "text": "used_size", "parent": 523, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 21}}, {"id": 526, "type": "++", "text": "++", "parent": 522, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 23}}, {"id": 527, "type": "call_expression", "text": "alloc_more_stringlist(&wlist,wlist.used_size)", "parent": 501, "children": [528, 529], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 51}}, {"id": 528, "type": "identifier", "text": "alloc_more_stringlist", "parent": 527, "children": [], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 27}}, {"id": 529, "type": "argument_list", "text": "(&wlist,wlist.used_size)", "parent": 527, "children": [530, 532], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 51}}, {"id": 530, "type": "pointer_expression", "text": "&wlist", "parent": 529, "children": [531], "start_point": {"row": 106, "column": 28}, "end_point": {"row": 106, "column": 34}}, {"id": 531, "type": "identifier", "text": "wlist", "parent": 530, "children": [], "start_point": {"row": 106, "column": 29}, "end_point": {"row": 106, "column": 34}}, {"id": 532, "type": "field_expression", "text": "wlist.used_size", "parent": 529, "children": [533, 534], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 50}}, {"id": 533, "type": "identifier", "text": "wlist", "parent": 532, "children": [], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 40}}, {"id": 534, "type": "field_identifier", "text": "used_size", "parent": 532, "children": [], "start_point": {"row": 106, "column": 41}, "end_point": {"row": 106, "column": 50}}, {"id": 535, "type": "assignment_expression", "text": "length = strlen(loc)+1", "parent": 501, "children": [536, 537, 538], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 28}}, {"id": 536, "type": "identifier", "text": "length", "parent": 535, "children": [], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 12}}, {"id": 537, "type": "=", "text": "=", "parent": 535, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 14}}, {"id": 538, "type": "binary_expression", "text": "strlen(loc)+1", "parent": 535, "children": [539, 543, 544], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 28}}, {"id": 539, "type": "call_expression", "text": "strlen(loc)", "parent": 538, "children": [540, 541], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 26}}, {"id": 540, "type": "identifier", "text": "strlen", "parent": 539, "children": [], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 21}}, {"id": 541, "type": "argument_list", "text": "(loc)", "parent": 539, "children": [542], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 26}}, {"id": 542, "type": "identifier", "text": "loc", "parent": 541, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 25}}, {"id": 543, "type": "+", "text": "+", "parent": 538, "children": [], "start_point": {"row": 108, "column": 26}, "end_point": {"row": 108, "column": 27}}, {"id": 544, "type": "number_literal", "text": "1", "parent": 538, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 28}}, {"id": 545, "type": "assignment_expression", "text": "*(wlist.pos)=(char *)malloc(sizeof(char)*length)", "parent": 501, "children": [546, 552, 553], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 54}}, {"id": 546, "type": "pointer_expression", "text": "*(wlist.pos)", "parent": 545, "children": [547, 548], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 18}}, {"id": 547, "type": "*", "text": "*", "parent": 546, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 7}}, {"id": 548, "type": "parenthesized_expression", "text": "(wlist.pos)", "parent": 546, "children": [549], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 18}}, {"id": 549, "type": "field_expression", "text": "wlist.pos", "parent": 548, "children": [550, 551], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 17}}, {"id": 550, "type": "identifier", "text": "wlist", "parent": 549, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 13}}, {"id": 551, "type": "field_identifier", "text": "pos", "parent": 549, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 17}}, {"id": 552, "type": "=", "text": "=", "parent": 545, "children": [], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 19}}, {"id": 553, "type": "cast_expression", "text": "(char *)malloc(sizeof(char)*length)", "parent": 545, "children": [554, 558], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 54}}, {"id": 554, "type": "type_descriptor", "text": "char *", "parent": 553, "children": [555, 556], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 26}}, {"id": 555, "type": "primitive_type", "text": "char", "parent": 554, "children": [], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 24}}, {"id": 556, "type": "abstract_pointer_declarator", "text": "*", "parent": 554, "children": [557], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 26}}, {"id": 557, "type": "*", "text": "*", "parent": 556, "children": [], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 26}}, {"id": 558, "type": "call_expression", "text": "malloc(sizeof(char)*length)", "parent": 553, "children": [559, 560], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 54}}, {"id": 559, "type": "identifier", "text": "malloc", "parent": 558, "children": [], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 33}}, {"id": 560, "type": "argument_list", "text": "(sizeof(char)*length)", "parent": 558, "children": [561], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 54}}, {"id": 561, "type": "binary_expression", "text": "sizeof(char)*length", "parent": 560, "children": [562, 565, 566], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 53}}, {"id": 562, "type": "sizeof_expression", "text": "sizeof(char)", "parent": 561, "children": [563], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 46}}, {"id": 563, "type": "type_descriptor", "text": "char", "parent": 562, "children": [564], "start_point": {"row": 109, "column": 41}, "end_point": {"row": 109, "column": 45}}, {"id": 564, "type": "primitive_type", "text": "char", "parent": 563, "children": [], "start_point": {"row": 109, "column": 41}, "end_point": {"row": 109, "column": 45}}, {"id": 565, "type": "*", "text": "*", "parent": 561, "children": [], "start_point": {"row": 109, "column": 46}, "end_point": {"row": 109, "column": 47}}, {"id": 566, "type": "identifier", "text": "length", "parent": 561, "children": [], "start_point": {"row": 109, "column": 47}, "end_point": {"row": 109, "column": 53}}, {"id": 567, "type": "call_expression", "text": "strcpy(*(wlist.pos),loc)", "parent": 501, "children": [568, 569], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 30}}, {"id": 568, "type": "identifier", "text": "strcpy", "parent": 567, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 12}}, {"id": 569, "type": "argument_list", "text": "(*(wlist.pos),loc)", "parent": 567, "children": [570, 576], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 30}}, {"id": 570, "type": "pointer_expression", "text": "*(wlist.pos)", "parent": 569, "children": [571, 572], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 25}}, {"id": 571, "type": "*", "text": "*", "parent": 570, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 14}}, {"id": 572, "type": "parenthesized_expression", "text": "(wlist.pos)", "parent": 570, "children": [573], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 25}}, {"id": 573, "type": "field_expression", "text": "wlist.pos", "parent": 572, "children": [574, 575], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 24}}, {"id": 574, "type": "identifier", "text": "wlist", "parent": 573, "children": [], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 20}}, {"id": 575, "type": "field_identifier", "text": "pos", "parent": 573, "children": [], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 24}}, {"id": 576, "type": "identifier", "text": "loc", "parent": 569, "children": [], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 29}}, {"id": 577, "type": "update_expression", "text": "wlist.pos++", "parent": 501, "children": [578, 581], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 17}}, {"id": 578, "type": "field_expression", "text": "wlist.pos", "parent": 577, "children": [579, 580], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 15}}, {"id": 579, "type": "identifier", "text": "wlist", "parent": 578, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 11}}, {"id": 580, "type": "field_identifier", "text": "pos", "parent": 578, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 15}}, {"id": 581, "type": "++", "text": "++", "parent": 577, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 17}}, {"id": 582, "type": "assignment_expression", "text": "numcols = 15", "parent": 87, "children": [583, 584, 585], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 14}}, {"id": 583, "type": "identifier", "text": "numcols", "parent": 582, "children": [], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 9}}, {"id": 584, "type": "=", "text": "=", "parent": 582, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 11}}, {"id": 585, "type": "number_literal", "text": "15", "parent": 582, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 14}}, {"id": 586, "type": "assignment_expression", "text": "col_types[0] = TIMESTAMP", "parent": 87, "children": [587, 590, 591], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 27}}, {"id": 587, "type": "subscript_expression", "text": "col_types[0]", "parent": 586, "children": [588, 589], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 14}}, {"id": 588, "type": "identifier", "text": "col_types", "parent": 587, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 11}}, {"id": 589, "type": "number_literal", "text": "0", "parent": 587, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 13}}, {"id": 590, "type": "=", "text": "=", "parent": 586, "children": [], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 17}}, {"id": 591, "type": "identifier", "text": "TIMESTAMP", "parent": 586, "children": [], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 27}}, {"id": 592, "type": "assignment_expression", "text": "col_mins[0] = 20040101", "parent": 87, "children": [593, 596, 597], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 52}}, {"id": 593, "type": "subscript_expression", "text": "col_mins[0]", "parent": 592, "children": [594, 595], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 40}}, {"id": 594, "type": "identifier", "text": "col_mins", "parent": 593, "children": [], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 37}}, {"id": 595, "type": "number_literal", "text": "0", "parent": 593, "children": [], "start_point": {"row": 139, "column": 38}, "end_point": {"row": 139, "column": 39}}, {"id": 596, "type": "=", "text": "=", "parent": 592, "children": [], "start_point": {"row": 139, "column": 42}, "end_point": {"row": 139, "column": 43}}, {"id": 597, "type": "number_literal", "text": "20040101", "parent": 592, "children": [], "start_point": {"row": 139, "column": 44}, "end_point": {"row": 139, "column": 52}}, {"id": 598, "type": "assignment_expression", "text": "col_maxes[0] = 20041231", "parent": 87, "children": [599, 602, 603], "start_point": {"row": 139, "column": 54}, "end_point": {"row": 139, "column": 78}}, {"id": 599, "type": "subscript_expression", "text": "col_maxes[0]", "parent": 598, "children": [600, 601], "start_point": {"row": 139, "column": 54}, "end_point": {"row": 139, "column": 66}}, {"id": 600, "type": "identifier", "text": "col_maxes", "parent": 599, "children": [], "start_point": {"row": 139, "column": 54}, "end_point": {"row": 139, "column": 63}}, {"id": 601, "type": "number_literal", "text": "0", "parent": 599, "children": [], "start_point": {"row": 139, "column": 64}, "end_point": {"row": 139, "column": 65}}, {"id": 602, "type": "=", "text": "=", "parent": 598, "children": [], "start_point": {"row": 139, "column": 68}, "end_point": {"row": 139, "column": 69}}, {"id": 603, "type": "number_literal", "text": "20041231", "parent": 598, "children": [], "start_point": {"row": 139, "column": 70}, "end_point": {"row": 139, "column": 78}}, {"id": 604, "type": "assignment_expression", "text": "col_types[1] = VARCHAR", "parent": 87, "children": [605, 608, 609], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 25}}, {"id": 605, "type": "subscript_expression", "text": "col_types[1]", "parent": 604, "children": [606, 607], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 14}}, {"id": 606, "type": "identifier", "text": "col_types", "parent": 605, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 11}}, {"id": 607, "type": "number_literal", "text": "1", "parent": 605, "children": [], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 13}}, {"id": 608, "type": "=", "text": "=", "parent": 604, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 17}}, {"id": 609, "type": "identifier", "text": "VARCHAR", "parent": 604, "children": [], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 25}}, {"id": 610, "type": "assignment_expression", "text": "col_mins[1] = 1", "parent": 87, "children": [611, 614, 615], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 45}}, {"id": 611, "type": "subscript_expression", "text": "col_mins[1]", "parent": 610, "children": [612, 613], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 40}}, {"id": 612, "type": "identifier", "text": "col_mins", "parent": 611, "children": [], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 37}}, {"id": 613, "type": "number_literal", "text": "1", "parent": 611, "children": [], "start_point": {"row": 140, "column": 38}, "end_point": {"row": 140, "column": 39}}, {"id": 614, "type": "=", "text": "=", "parent": 610, "children": [], "start_point": {"row": 140, "column": 42}, "end_point": {"row": 140, "column": 43}}, {"id": 615, "type": "number_literal", "text": "1", "parent": 610, "children": [], "start_point": {"row": 140, "column": 44}, "end_point": {"row": 140, "column": 45}}, {"id": 616, "type": "assignment_expression", "text": "col_maxes[1] = 750/100", "parent": 87, "children": [617, 620, 621], "start_point": {"row": 140, "column": 54}, "end_point": {"row": 140, "column": 77}}, {"id": 617, "type": "subscript_expression", "text": "col_maxes[1]", "parent": 616, "children": [618, 619], "start_point": {"row": 140, "column": 54}, "end_point": {"row": 140, "column": 66}}, {"id": 618, "type": "identifier", "text": "col_maxes", "parent": 617, "children": [], "start_point": {"row": 140, "column": 54}, "end_point": {"row": 140, "column": 63}}, {"id": 619, "type": "number_literal", "text": "1", "parent": 617, "children": [], "start_point": {"row": 140, "column": 64}, "end_point": {"row": 140, "column": 65}}, {"id": 620, "type": "=", "text": "=", "parent": 616, "children": [], "start_point": {"row": 140, "column": 68}, "end_point": {"row": 140, "column": 69}}, {"id": 621, "type": "binary_expression", "text": "750/100", "parent": 616, "children": [622, 623, 624], "start_point": {"row": 140, "column": 70}, "end_point": {"row": 140, "column": 77}}, {"id": 622, "type": "number_literal", "text": "750", "parent": 621, "children": [], "start_point": {"row": 140, "column": 70}, "end_point": {"row": 140, "column": 73}}, {"id": 623, "type": "/", "text": "/", "parent": 621, "children": [], "start_point": {"row": 140, "column": 73}, "end_point": {"row": 140, "column": 74}}, {"id": 624, "type": "number_literal", "text": "100", "parent": 621, "children": [], "start_point": {"row": 140, "column": 74}, "end_point": {"row": 140, "column": 77}}, {"id": 625, "type": "assignment_expression", "text": "col_types[2] = VARCHAR", "parent": 87, "children": [626, 629, 630], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 25}}, {"id": 626, "type": "subscript_expression", "text": "col_types[2]", "parent": 625, "children": [627, 628], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 14}}, {"id": 627, "type": "identifier", "text": "col_types", "parent": 626, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 11}}, {"id": 628, "type": "number_literal", "text": "2", "parent": 626, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 13}}, {"id": 629, "type": "=", "text": "=", "parent": 625, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 17}}, {"id": 630, "type": "identifier", "text": "VARCHAR", "parent": 625, "children": [], "start_point": {"row": 141, "column": 18}, "end_point": {"row": 141, "column": 25}}, {"id": 631, "type": "assignment_expression", "text": "col_mins[2] = 1", "parent": 87, "children": [632, 635, 636], "start_point": {"row": 141, "column": 29}, "end_point": {"row": 141, "column": 45}}, {"id": 632, "type": "subscript_expression", "text": "col_mins[2]", "parent": 631, "children": [633, 634], "start_point": {"row": 141, "column": 29}, "end_point": {"row": 141, "column": 40}}, {"id": 633, "type": "identifier", "text": "col_mins", "parent": 632, "children": [], "start_point": {"row": 141, "column": 29}, "end_point": {"row": 141, "column": 37}}, {"id": 634, "type": "number_literal", "text": "2", "parent": 632, "children": [], "start_point": {"row": 141, "column": 38}, "end_point": {"row": 141, "column": 39}}, {"id": 635, "type": "=", "text": "=", "parent": 631, "children": [], "start_point": {"row": 141, "column": 42}, "end_point": {"row": 141, "column": 43}}, {"id": 636, "type": "number_literal", "text": "1", "parent": 631, "children": [], "start_point": {"row": 141, "column": 44}, "end_point": {"row": 141, "column": 45}}, {"id": 637, "type": "assignment_expression", "text": "col_maxes[2] = 100/100", "parent": 87, "children": [638, 641, 642], "start_point": {"row": 141, "column": 54}, "end_point": {"row": 141, "column": 77}}, {"id": 638, "type": "subscript_expression", "text": "col_maxes[2]", "parent": 637, "children": [639, 640], "start_point": {"row": 141, "column": 54}, "end_point": {"row": 141, "column": 66}}, {"id": 639, "type": "identifier", "text": "col_maxes", "parent": 638, "children": [], "start_point": {"row": 141, "column": 54}, "end_point": {"row": 141, "column": 63}}, {"id": 640, "type": "number_literal", "text": "2", "parent": 638, "children": [], "start_point": {"row": 141, "column": 64}, "end_point": {"row": 141, "column": 65}}, {"id": 641, "type": "=", "text": "=", "parent": 637, "children": [], "start_point": {"row": 141, "column": 68}, "end_point": {"row": 141, "column": 69}}, {"id": 642, "type": "binary_expression", "text": "100/100", "parent": 637, "children": [643, 644, 645], "start_point": {"row": 141, "column": 70}, "end_point": {"row": 141, "column": 77}}, {"id": 643, "type": "number_literal", "text": "100", "parent": 642, "children": [], "start_point": {"row": 141, "column": 70}, "end_point": {"row": 141, "column": 73}}, {"id": 644, "type": "/", "text": "/", "parent": 642, "children": [], "start_point": {"row": 141, "column": 73}, "end_point": {"row": 141, "column": 74}}, {"id": 645, "type": "number_literal", "text": "100", "parent": 642, "children": [], "start_point": {"row": 141, "column": 74}, "end_point": {"row": 141, "column": 77}}, {"id": 646, "type": "assignment_expression", "text": "col_types[3] = INTEGER", "parent": 87, "children": [647, 650, 651], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 25}}, {"id": 647, "type": "subscript_expression", "text": "col_types[3]", "parent": 646, "children": [648, 649], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 14}}, {"id": 648, "type": "identifier", "text": "col_types", "parent": 647, "children": [], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 11}}, {"id": 649, "type": "number_literal", "text": "3", "parent": 647, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 13}}, {"id": 650, "type": "=", "text": "=", "parent": 646, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 17}}, {"id": 651, "type": "identifier", "text": "INTEGER", "parent": 646, "children": [], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 25}}, {"id": 652, "type": "assignment_expression", "text": "col_mins[3] = 0", "parent": 87, "children": [653, 656, 657], "start_point": {"row": 142, "column": 29}, "end_point": {"row": 142, "column": 45}}, {"id": 653, "type": "subscript_expression", "text": "col_mins[3]", "parent": 652, "children": [654, 655], "start_point": {"row": 142, "column": 29}, "end_point": {"row": 142, "column": 40}}, {"id": 654, "type": "identifier", "text": "col_mins", "parent": 653, "children": [], "start_point": {"row": 142, "column": 29}, "end_point": {"row": 142, "column": 37}}, {"id": 655, "type": "number_literal", "text": "3", "parent": 653, "children": [], "start_point": {"row": 142, "column": 38}, "end_point": {"row": 142, "column": 39}}, {"id": 656, "type": "=", "text": "=", "parent": 652, "children": [], "start_point": {"row": 142, "column": 42}, "end_point": {"row": 142, "column": 43}}, {"id": 657, "type": "number_literal", "text": "0", "parent": 652, "children": [], "start_point": {"row": 142, "column": 44}, "end_point": {"row": 142, "column": 45}}, {"id": 658, "type": "assignment_expression", "text": "col_maxes[3] = 0", "parent": 87, "children": [659, 662, 663], "start_point": {"row": 142, "column": 54}, "end_point": {"row": 142, "column": 71}}, {"id": 659, "type": "subscript_expression", "text": "col_maxes[3]", "parent": 658, "children": [660, 661], "start_point": {"row": 142, "column": 54}, "end_point": {"row": 142, "column": 66}}, {"id": 660, "type": "identifier", "text": "col_maxes", "parent": 659, "children": [], "start_point": {"row": 142, "column": 54}, "end_point": {"row": 142, "column": 63}}, {"id": 661, "type": "number_literal", "text": "3", "parent": 659, "children": [], "start_point": {"row": 142, "column": 64}, "end_point": {"row": 142, "column": 65}}, {"id": 662, "type": "=", "text": "=", "parent": 658, "children": [], "start_point": {"row": 142, "column": 68}, "end_point": {"row": 142, "column": 69}}, {"id": 663, "type": "number_literal", "text": "0", "parent": 658, "children": [], "start_point": {"row": 142, "column": 70}, "end_point": {"row": 142, "column": 71}}, {"id": 664, "type": "assignment_expression", "text": "col_types[4] = INTEGER", "parent": 87, "children": [665, 668, 669], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 25}}, {"id": 665, "type": "subscript_expression", "text": "col_types[4]", "parent": 664, "children": [666, 667], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 14}}, {"id": 666, "type": "identifier", "text": "col_types", "parent": 665, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 11}}, {"id": 667, "type": "number_literal", "text": "4", "parent": 665, "children": [], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 13}}, {"id": 668, "type": "=", "text": "=", "parent": 664, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 17}}, {"id": 669, "type": "identifier", "text": "INTEGER", "parent": 664, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 25}}, {"id": 670, "type": "assignment_expression", "text": "col_mins[4] = 1", "parent": 87, "children": [671, 674, 675], "start_point": {"row": 143, "column": 29}, "end_point": {"row": 143, "column": 45}}, {"id": 671, "type": "subscript_expression", "text": "col_mins[4]", "parent": 670, "children": [672, 673], "start_point": {"row": 143, "column": 29}, "end_point": {"row": 143, "column": 40}}, {"id": 672, "type": "identifier", "text": "col_mins", "parent": 671, "children": [], "start_point": {"row": 143, "column": 29}, "end_point": {"row": 143, "column": 37}}, {"id": 673, "type": "number_literal", "text": "4", "parent": 671, "children": [], "start_point": {"row": 143, "column": 38}, "end_point": {"row": 143, "column": 39}}, {"id": 674, "type": "=", "text": "=", "parent": 670, "children": [], "start_point": {"row": 143, "column": 42}, "end_point": {"row": 143, "column": 43}}, {"id": 675, "type": "number_literal", "text": "1", "parent": 670, "children": [], "start_point": {"row": 143, "column": 44}, "end_point": {"row": 143, "column": 45}}, {"id": 676, "type": "assignment_expression", "text": "col_maxes[4] = 40", "parent": 87, "children": [677, 680, 681], "start_point": {"row": 143, "column": 54}, "end_point": {"row": 143, "column": 72}}, {"id": 677, "type": "subscript_expression", "text": "col_maxes[4]", "parent": 676, "children": [678, 679], "start_point": {"row": 143, "column": 54}, "end_point": {"row": 143, "column": 66}}, {"id": 678, "type": "identifier", "text": "col_maxes", "parent": 677, "children": [], "start_point": {"row": 143, "column": 54}, "end_point": {"row": 143, "column": 63}}, {"id": 679, "type": "number_literal", "text": "4", "parent": 677, "children": [], "start_point": {"row": 143, "column": 64}, "end_point": {"row": 143, "column": 65}}, {"id": 680, "type": "=", "text": "=", "parent": 676, "children": [], "start_point": {"row": 143, "column": 68}, "end_point": {"row": 143, "column": 69}}, {"id": 681, "type": "number_literal", "text": "40", "parent": 676, "children": [], "start_point": {"row": 143, "column": 70}, "end_point": {"row": 143, "column": 72}}, {"id": 682, "type": "assignment_expression", "text": "col_types[5] = INTEGER", "parent": 87, "children": [683, 686, 687], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 25}}, {"id": 683, "type": "subscript_expression", "text": "col_types[5]", "parent": 682, "children": [684, 685], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 14}}, {"id": 684, "type": "identifier", "text": "col_types", "parent": 683, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 11}}, {"id": 685, "type": "number_literal", "text": "5", "parent": 683, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 686, "type": "=", "text": "=", "parent": 682, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 17}}, {"id": 687, "type": "identifier", "text": "INTEGER", "parent": 682, "children": [], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 25}}, {"id": 688, "type": "assignment_expression", "text": "col_mins[5] = 0", "parent": 87, "children": [689, 692, 693], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 45}}, {"id": 689, "type": "subscript_expression", "text": "col_mins[5]", "parent": 688, "children": [690, 691], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 40}}, {"id": 690, "type": "identifier", "text": "col_mins", "parent": 689, "children": [], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 37}}, {"id": 691, "type": "number_literal", "text": "5", "parent": 689, "children": [], "start_point": {"row": 144, "column": 38}, "end_point": {"row": 144, "column": 39}}, {"id": 692, "type": "=", "text": "=", "parent": 688, "children": [], "start_point": {"row": 144, "column": 42}, "end_point": {"row": 144, "column": 43}}, {"id": 693, "type": "number_literal", "text": "0", "parent": 688, "children": [], "start_point": {"row": 144, "column": 44}, "end_point": {"row": 144, "column": 45}}, {"id": 694, "type": "assignment_expression", "text": "col_maxes[5] = 0", "parent": 87, "children": [695, 698, 699], "start_point": {"row": 144, "column": 54}, "end_point": {"row": 144, "column": 71}}, {"id": 695, "type": "subscript_expression", "text": "col_maxes[5]", "parent": 694, "children": [696, 697], "start_point": {"row": 144, "column": 54}, "end_point": {"row": 144, "column": 66}}, {"id": 696, "type": "identifier", "text": "col_maxes", "parent": 695, "children": [], "start_point": {"row": 144, "column": 54}, "end_point": {"row": 144, "column": 63}}, {"id": 697, "type": "number_literal", "text": "5", "parent": 695, "children": [], "start_point": {"row": 144, "column": 64}, "end_point": {"row": 144, "column": 65}}, {"id": 698, "type": "=", "text": "=", "parent": 694, "children": [], "start_point": {"row": 144, "column": 68}, "end_point": {"row": 144, "column": 69}}, {"id": 699, "type": "number_literal", "text": "0", "parent": 694, "children": [], "start_point": {"row": 144, "column": 70}, "end_point": {"row": 144, "column": 71}}, {"id": 700, "type": "assignment_expression", "text": "col_types[6] = INTEGER", "parent": 87, "children": [701, 704, 705], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 25}}, {"id": 701, "type": "subscript_expression", "text": "col_types[6]", "parent": 700, "children": [702, 703], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 14}}, {"id": 702, "type": "identifier", "text": "col_types", "parent": 701, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 11}}, {"id": 703, "type": "number_literal", "text": "6", "parent": 701, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 13}}, {"id": 704, "type": "=", "text": "=", "parent": 700, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 17}}, {"id": 705, "type": "identifier", "text": "INTEGER", "parent": 700, "children": [], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 25}}, {"id": 706, "type": "assignment_expression", "text": "col_mins[6] = 1", "parent": 87, "children": [707, 710, 711], "start_point": {"row": 145, "column": 29}, "end_point": {"row": 145, "column": 45}}, {"id": 707, "type": "subscript_expression", "text": "col_mins[6]", "parent": 706, "children": [708, 709], "start_point": {"row": 145, "column": 29}, "end_point": {"row": 145, "column": 40}}, {"id": 708, "type": "identifier", "text": "col_mins", "parent": 707, "children": [], "start_point": {"row": 145, "column": 29}, "end_point": {"row": 145, "column": 37}}, {"id": 709, "type": "number_literal", "text": "6", "parent": 707, "children": [], "start_point": {"row": 145, "column": 38}, "end_point": {"row": 145, "column": 39}}, {"id": 710, "type": "=", "text": "=", "parent": 706, "children": [], "start_point": {"row": 145, "column": 42}, "end_point": {"row": 145, "column": 43}}, {"id": 711, "type": "number_literal", "text": "1", "parent": 706, "children": [], "start_point": {"row": 145, "column": 44}, "end_point": {"row": 145, "column": 45}}, {"id": 712, "type": "assignment_expression", "text": "col_maxes[6] = 4", "parent": 87, "children": [713, 716, 717], "start_point": {"row": 145, "column": 54}, "end_point": {"row": 145, "column": 71}}, {"id": 713, "type": "subscript_expression", "text": "col_maxes[6]", "parent": 712, "children": [714, 715], "start_point": {"row": 145, "column": 54}, "end_point": {"row": 145, "column": 66}}, {"id": 714, "type": "identifier", "text": "col_maxes", "parent": 713, "children": [], "start_point": {"row": 145, "column": 54}, "end_point": {"row": 145, "column": 63}}, {"id": 715, "type": "number_literal", "text": "6", "parent": 713, "children": [], "start_point": {"row": 145, "column": 64}, "end_point": {"row": 145, "column": 65}}, {"id": 716, "type": "=", "text": "=", "parent": 712, "children": [], "start_point": {"row": 145, "column": 68}, "end_point": {"row": 145, "column": 69}}, {"id": 717, "type": "number_literal", "text": "4", "parent": 712, "children": [], "start_point": {"row": 145, "column": 70}, "end_point": {"row": 145, "column": 71}}, {"id": 718, "type": "assignment_expression", "text": "col_types[7] = NUMERIC", "parent": 87, "children": [719, 722, 723], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 25}}, {"id": 719, "type": "subscript_expression", "text": "col_types[7]", "parent": 718, "children": [720, 721], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 14}}, {"id": 720, "type": "identifier", "text": "col_types", "parent": 719, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 11}}, {"id": 721, "type": "number_literal", "text": "7", "parent": 719, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 13}}, {"id": 722, "type": "=", "text": "=", "parent": 718, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 17}}, {"id": 723, "type": "identifier", "text": "NUMERIC", "parent": 718, "children": [], "start_point": {"row": 146, "column": 18}, "end_point": {"row": 146, "column": 25}}, {"id": 724, "type": "assignment_expression", "text": "col_mins[7] = 0.02", "parent": 87, "children": [725, 728, 729], "start_point": {"row": 146, "column": 29}, "end_point": {"row": 146, "column": 48}}, {"id": 725, "type": "subscript_expression", "text": "col_mins[7]", "parent": 724, "children": [726, 727], "start_point": {"row": 146, "column": 29}, "end_point": {"row": 146, "column": 40}}, {"id": 726, "type": "identifier", "text": "col_mins", "parent": 725, "children": [], "start_point": {"row": 146, "column": 29}, "end_point": {"row": 146, "column": 37}}, {"id": 727, "type": "number_literal", "text": "7", "parent": 725, "children": [], "start_point": {"row": 146, "column": 38}, "end_point": {"row": 146, "column": 39}}, {"id": 728, "type": "=", "text": "=", "parent": 724, "children": [], "start_point": {"row": 146, "column": 42}, "end_point": {"row": 146, "column": 43}}, {"id": 729, "type": "number_literal", "text": "0.02", "parent": 724, "children": [], "start_point": {"row": 146, "column": 44}, "end_point": {"row": 146, "column": 48}}, {"id": 730, "type": "assignment_expression", "text": "col_maxes[7] = 0.8", "parent": 87, "children": [731, 734, 735], "start_point": {"row": 146, "column": 54}, "end_point": {"row": 146, "column": 73}}, {"id": 731, "type": "subscript_expression", "text": "col_maxes[7]", "parent": 730, "children": [732, 733], "start_point": {"row": 146, "column": 54}, "end_point": {"row": 146, "column": 66}}, {"id": 732, "type": "identifier", "text": "col_maxes", "parent": 731, "children": [], "start_point": {"row": 146, "column": 54}, "end_point": {"row": 146, "column": 63}}, {"id": 733, "type": "number_literal", "text": "7", "parent": 731, "children": [], "start_point": {"row": 146, "column": 64}, "end_point": {"row": 146, "column": 65}}, {"id": 734, "type": "=", "text": "=", "parent": 730, "children": [], "start_point": {"row": 146, "column": 68}, "end_point": {"row": 146, "column": 69}}, {"id": 735, "type": "number_literal", "text": "0.8", "parent": 730, "children": [], "start_point": {"row": 146, "column": 70}, "end_point": {"row": 146, "column": 73}}, {"id": 736, "type": "assignment_expression", "text": "col_types[8] = VARCHAR", "parent": 87, "children": [737, 740, 741], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 25}}, {"id": 737, "type": "subscript_expression", "text": "col_types[8]", "parent": 736, "children": [738, 739], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 14}}, {"id": 738, "type": "identifier", "text": "col_types", "parent": 737, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 11}}, {"id": 739, "type": "number_literal", "text": "8", "parent": 737, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 13}}, {"id": 740, "type": "=", "text": "=", "parent": 736, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 17}}, {"id": 741, "type": "identifier", "text": "VARCHAR", "parent": 736, "children": [], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 25}}, {"id": 742, "type": "assignment_expression", "text": "col_mins[8] = 1", "parent": 87, "children": [743, 746, 747], "start_point": {"row": 147, "column": 29}, "end_point": {"row": 147, "column": 45}}, {"id": 743, "type": "subscript_expression", "text": "col_mins[8]", "parent": 742, "children": [744, 745], "start_point": {"row": 147, "column": 29}, "end_point": {"row": 147, "column": 40}}, {"id": 744, "type": "identifier", "text": "col_mins", "parent": 743, "children": [], "start_point": {"row": 147, "column": 29}, "end_point": {"row": 147, "column": 37}}, {"id": 745, "type": "number_literal", "text": "8", "parent": 743, "children": [], "start_point": {"row": 147, "column": 38}, "end_point": {"row": 147, "column": 39}}, {"id": 746, "type": "=", "text": "=", "parent": 742, "children": [], "start_point": {"row": 147, "column": 42}, "end_point": {"row": 147, "column": 43}}, {"id": 747, "type": "number_literal", "text": "1", "parent": 742, "children": [], "start_point": {"row": 147, "column": 44}, "end_point": {"row": 147, "column": 45}}, {"id": 748, "type": "assignment_expression", "text": "col_maxes[8] = 1500/300", "parent": 87, "children": [749, 752, 753], "start_point": {"row": 147, "column": 54}, "end_point": {"row": 147, "column": 78}}, {"id": 749, "type": "subscript_expression", "text": "col_maxes[8]", "parent": 748, "children": [750, 751], "start_point": {"row": 147, "column": 54}, "end_point": {"row": 147, "column": 66}}, {"id": 750, "type": "identifier", "text": "col_maxes", "parent": 749, "children": [], "start_point": {"row": 147, "column": 54}, "end_point": {"row": 147, "column": 63}}, {"id": 751, "type": "number_literal", "text": "8", "parent": 749, "children": [], "start_point": {"row": 147, "column": 64}, "end_point": {"row": 147, "column": 65}}, {"id": 752, "type": "=", "text": "=", "parent": 748, "children": [], "start_point": {"row": 147, "column": 68}, "end_point": {"row": 147, "column": 69}}, {"id": 753, "type": "binary_expression", "text": "1500/300", "parent": 748, "children": [754, 755, 756], "start_point": {"row": 147, "column": 70}, "end_point": {"row": 147, "column": 78}}, {"id": 754, "type": "number_literal", "text": "1500", "parent": 753, "children": [], "start_point": {"row": 147, "column": 70}, "end_point": {"row": 147, "column": 74}}, {"id": 755, "type": "/", "text": "/", "parent": 753, "children": [], "start_point": {"row": 147, "column": 74}, "end_point": {"row": 147, "column": 75}}, {"id": 756, "type": "number_literal", "text": "300", "parent": 753, "children": [], "start_point": {"row": 147, "column": 75}, "end_point": {"row": 147, "column": 78}}, {"id": 757, "type": "assignment_expression", "text": "col_types[9] = VARCHAR", "parent": 87, "children": [758, 761, 762], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 25}}, {"id": 758, "type": "subscript_expression", "text": "col_types[9]", "parent": 757, "children": [759, 760], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 14}}, {"id": 759, "type": "identifier", "text": "col_types", "parent": 758, "children": [], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 11}}, {"id": 760, "type": "number_literal", "text": "9", "parent": 758, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 13}}, {"id": 761, "type": "=", "text": "=", "parent": 757, "children": [], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 17}}, {"id": 762, "type": "identifier", "text": "VARCHAR", "parent": 757, "children": [], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 25}}, {"id": 763, "type": "assignment_expression", "text": "col_mins[9] = 1", "parent": 87, "children": [764, 767, 768], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 45}}, {"id": 764, "type": "subscript_expression", "text": "col_mins[9]", "parent": 763, "children": [765, 766], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 40}}, {"id": 765, "type": "identifier", "text": "col_mins", "parent": 764, "children": [], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 37}}, {"id": 766, "type": "number_literal", "text": "9", "parent": 764, "children": [], "start_point": {"row": 148, "column": 38}, "end_point": {"row": 148, "column": 39}}, {"id": 767, "type": "=", "text": "=", "parent": 763, "children": [], "start_point": {"row": 148, "column": 42}, "end_point": {"row": 148, "column": 43}}, {"id": 768, "type": "number_literal", "text": "1", "parent": 763, "children": [], "start_point": {"row": 148, "column": 44}, "end_point": {"row": 148, "column": 45}}, {"id": 769, "type": "assignment_expression", "text": "col_maxes[9] = 1500/300", "parent": 87, "children": [770, 773, 774], "start_point": {"row": 148, "column": 54}, "end_point": {"row": 148, "column": 78}}, {"id": 770, "type": "subscript_expression", "text": "col_maxes[9]", "parent": 769, "children": [771, 772], "start_point": {"row": 148, "column": 54}, "end_point": {"row": 148, "column": 66}}, {"id": 771, "type": "identifier", "text": "col_maxes", "parent": 770, "children": [], "start_point": {"row": 148, "column": 54}, "end_point": {"row": 148, "column": 63}}, {"id": 772, "type": "number_literal", "text": "9", "parent": 770, "children": [], "start_point": {"row": 148, "column": 64}, "end_point": {"row": 148, "column": 65}}, {"id": 773, "type": "=", "text": "=", "parent": 769, "children": [], "start_point": {"row": 148, "column": 68}, "end_point": {"row": 148, "column": 69}}, {"id": 774, "type": "binary_expression", "text": "1500/300", "parent": 769, "children": [775, 776, 777], "start_point": {"row": 148, "column": 70}, "end_point": {"row": 148, "column": 78}}, {"id": 775, "type": "number_literal", "text": "1500", "parent": 774, "children": [], "start_point": {"row": 148, "column": 70}, "end_point": {"row": 148, "column": 74}}, {"id": 776, "type": "/", "text": "/", "parent": 774, "children": [], "start_point": {"row": 148, "column": 74}, "end_point": {"row": 148, "column": 75}}, {"id": 777, "type": "number_literal", "text": "300", "parent": 774, "children": [], "start_point": {"row": 148, "column": 75}, "end_point": {"row": 148, "column": 78}}, {"id": 778, "type": "assignment_expression", "text": "col_types[10] = VARCHAR", "parent": 87, "children": [779, 782, 783], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 25}}, {"id": 779, "type": "subscript_expression", "text": "col_types[10]", "parent": 778, "children": [780, 781], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 15}}, {"id": 780, "type": "identifier", "text": "col_types", "parent": 779, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 11}}, {"id": 781, "type": "number_literal", "text": "10", "parent": 779, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 14}}, {"id": 782, "type": "=", "text": "=", "parent": 778, "children": [], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 17}}, {"id": 783, "type": "identifier", "text": "VARCHAR", "parent": 778, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 25}}, {"id": 784, "type": "assignment_expression", "text": "col_mins[10] = 1", "parent": 87, "children": [785, 788, 789], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 45}}, {"id": 785, "type": "subscript_expression", "text": "col_mins[10]", "parent": 784, "children": [786, 787], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 41}}, {"id": 786, "type": "identifier", "text": "col_mins", "parent": 785, "children": [], "start_point": {"row": 149, "column": 29}, "end_point": {"row": 149, "column": 37}}, {"id": 787, "type": "number_literal", "text": "10", "parent": 785, "children": [], "start_point": {"row": 149, "column": 38}, "end_point": {"row": 149, "column": 40}}, {"id": 788, "type": "=", "text": "=", "parent": 784, "children": [], "start_point": {"row": 149, "column": 42}, "end_point": {"row": 149, "column": 43}}, {"id": 789, "type": "number_literal", "text": "1", "parent": 784, "children": [], "start_point": {"row": 149, "column": 44}, "end_point": {"row": 149, "column": 45}}, {"id": 790, "type": "assignment_expression", "text": "col_maxes[10] = 1500/300", "parent": 87, "children": [791, 794, 795], "start_point": {"row": 149, "column": 54}, "end_point": {"row": 149, "column": 78}}, {"id": 791, "type": "subscript_expression", "text": "col_maxes[10]", "parent": 790, "children": [792, 793], "start_point": {"row": 149, "column": 54}, "end_point": {"row": 149, "column": 67}}, {"id": 792, "type": "identifier", "text": "col_maxes", "parent": 791, "children": [], "start_point": {"row": 149, "column": 54}, "end_point": {"row": 149, "column": 63}}, {"id": 793, "type": "number_literal", "text": "10", "parent": 791, "children": [], "start_point": {"row": 149, "column": 64}, "end_point": {"row": 149, "column": 66}}, {"id": 794, "type": "=", "text": "=", "parent": 790, "children": [], "start_point": {"row": 149, "column": 68}, "end_point": {"row": 149, "column": 69}}, {"id": 795, "type": "binary_expression", "text": "1500/300", "parent": 790, "children": [796, 797, 798], "start_point": {"row": 149, "column": 70}, "end_point": {"row": 149, "column": 78}}, {"id": 796, "type": "number_literal", "text": "1500", "parent": 795, "children": [], "start_point": {"row": 149, "column": 70}, "end_point": {"row": 149, "column": 74}}, {"id": 797, "type": "/", "text": "/", "parent": 795, "children": [], "start_point": {"row": 149, "column": 74}, "end_point": {"row": 149, "column": 75}}, {"id": 798, "type": "number_literal", "text": "300", "parent": 795, "children": [], "start_point": {"row": 149, "column": 75}, "end_point": {"row": 149, "column": 78}}, {"id": 799, "type": "assignment_expression", "text": "col_types[11] = INTEGER", "parent": 87, "children": [800, 803, 804], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 25}}, {"id": 800, "type": "subscript_expression", "text": "col_types[11]", "parent": 799, "children": [801, 802], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 15}}, {"id": 801, "type": "identifier", "text": "col_types", "parent": 800, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 11}}, {"id": 802, "type": "number_literal", "text": "11", "parent": 800, "children": [], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 14}}, {"id": 803, "type": "=", "text": "=", "parent": 799, "children": [], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 17}}, {"id": 804, "type": "identifier", "text": "INTEGER", "parent": 799, "children": [], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 25}}, {"id": 805, "type": "assignment_expression", "text": "col_mins[11] = 0", "parent": 87, "children": [806, 809, 810], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 45}}, {"id": 806, "type": "subscript_expression", "text": "col_mins[11]", "parent": 805, "children": [807, 808], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 41}}, {"id": 807, "type": "identifier", "text": "col_mins", "parent": 806, "children": [], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 37}}, {"id": 808, "type": "number_literal", "text": "11", "parent": 806, "children": [], "start_point": {"row": 150, "column": 38}, "end_point": {"row": 150, "column": 40}}, {"id": 809, "type": "=", "text": "=", "parent": 805, "children": [], "start_point": {"row": 150, "column": 42}, "end_point": {"row": 150, "column": 43}}, {"id": 810, "type": "number_literal", "text": "0", "parent": 805, "children": [], "start_point": {"row": 150, "column": 44}, "end_point": {"row": 150, "column": 45}}, {"id": 811, "type": "assignment_expression", "text": "col_maxes[11] = 2", "parent": 87, "children": [812, 815, 816], "start_point": {"row": 150, "column": 54}, "end_point": {"row": 150, "column": 71}}, {"id": 812, "type": "subscript_expression", "text": "col_maxes[11]", "parent": 811, "children": [813, 814], "start_point": {"row": 150, "column": 54}, "end_point": {"row": 150, "column": 67}}, {"id": 813, "type": "identifier", "text": "col_maxes", "parent": 812, "children": [], "start_point": {"row": 150, "column": 54}, "end_point": {"row": 150, "column": 63}}, {"id": 814, "type": "number_literal", "text": "11", "parent": 812, "children": [], "start_point": {"row": 150, "column": 64}, "end_point": {"row": 150, "column": 66}}, {"id": 815, "type": "=", "text": "=", "parent": 811, "children": [], "start_point": {"row": 150, "column": 68}, "end_point": {"row": 150, "column": 69}}, {"id": 816, "type": "number_literal", "text": "2", "parent": 811, "children": [], "start_point": {"row": 150, "column": 70}, "end_point": {"row": 150, "column": 71}}, {"id": 817, "type": "assignment_expression", "text": "col_types[12] = INTEGER", "parent": 87, "children": [818, 821, 822], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 25}}, {"id": 818, "type": "subscript_expression", "text": "col_types[12]", "parent": 817, "children": [819, 820], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 15}}, {"id": 819, "type": "identifier", "text": "col_types", "parent": 818, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 11}}, {"id": 820, "type": "number_literal", "text": "12", "parent": 818, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 14}}, {"id": 821, "type": "=", "text": "=", "parent": 817, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 17}}, {"id": 822, "type": "identifier", "text": "INTEGER", "parent": 817, "children": [], "start_point": {"row": 151, "column": 18}, "end_point": {"row": 151, "column": 25}}, {"id": 823, "type": "assignment_expression", "text": "col_mins[12] = 0", "parent": 87, "children": [824, 827, 828], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 45}}, {"id": 824, "type": "subscript_expression", "text": "col_mins[12]", "parent": 823, "children": [825, 826], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 41}}, {"id": 825, "type": "identifier", "text": "col_mins", "parent": 824, "children": [], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 37}}, {"id": 826, "type": "number_literal", "text": "12", "parent": 824, "children": [], "start_point": {"row": 151, "column": 38}, "end_point": {"row": 151, "column": 40}}, {"id": 827, "type": "=", "text": "=", "parent": 823, "children": [], "start_point": {"row": 151, "column": 42}, "end_point": {"row": 151, "column": 43}}, {"id": 828, "type": "number_literal", "text": "0", "parent": 823, "children": [], "start_point": {"row": 151, "column": 44}, "end_point": {"row": 151, "column": 45}}, {"id": 829, "type": "assignment_expression", "text": "col_maxes[12] = 4", "parent": 87, "children": [830, 833, 834], "start_point": {"row": 151, "column": 54}, "end_point": {"row": 151, "column": 71}}, {"id": 830, "type": "subscript_expression", "text": "col_maxes[12]", "parent": 829, "children": [831, 832], "start_point": {"row": 151, "column": 54}, "end_point": {"row": 151, "column": 67}}, {"id": 831, "type": "identifier", "text": "col_maxes", "parent": 830, "children": [], "start_point": {"row": 151, "column": 54}, "end_point": {"row": 151, "column": 63}}, {"id": 832, "type": "number_literal", "text": "12", "parent": 830, "children": [], "start_point": {"row": 151, "column": 64}, "end_point": {"row": 151, "column": 66}}, {"id": 833, "type": "=", "text": "=", "parent": 829, "children": [], "start_point": {"row": 151, "column": 68}, "end_point": {"row": 151, "column": 69}}, {"id": 834, "type": "number_literal", "text": "4", "parent": 829, "children": [], "start_point": {"row": 151, "column": 70}, "end_point": {"row": 151, "column": 71}}, {"id": 835, "type": "assignment_expression", "text": "col_types[13] = VARCHAR", "parent": 87, "children": [836, 839, 840], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 25}}, {"id": 836, "type": "subscript_expression", "text": "col_types[13]", "parent": 835, "children": [837, 838], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 15}}, {"id": 837, "type": "identifier", "text": "col_types", "parent": 836, "children": [], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 11}}, {"id": 838, "type": "number_literal", "text": "13", "parent": 836, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 14}}, {"id": 839, "type": "=", "text": "=", "parent": 835, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 17}}, {"id": 840, "type": "identifier", "text": "VARCHAR", "parent": 835, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 25}}, {"id": 841, "type": "assignment_expression", "text": "col_mins[13] = 1", "parent": 87, "children": [842, 845, 846], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 45}}, {"id": 842, "type": "subscript_expression", "text": "col_mins[13]", "parent": 841, "children": [843, 844], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 41}}, {"id": 843, "type": "identifier", "text": "col_mins", "parent": 842, "children": [], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 37}}, {"id": 844, "type": "number_literal", "text": "13", "parent": 842, "children": [], "start_point": {"row": 152, "column": 38}, "end_point": {"row": 152, "column": 40}}, {"id": 845, "type": "=", "text": "=", "parent": 841, "children": [], "start_point": {"row": 152, "column": 42}, "end_point": {"row": 152, "column": 43}}, {"id": 846, "type": "number_literal", "text": "1", "parent": 841, "children": [], "start_point": {"row": 152, "column": 44}, "end_point": {"row": 152, "column": 45}}, {"id": 847, "type": "assignment_expression", "text": "col_maxes[13] = 1500/300", "parent": 87, "children": [848, 851, 852], "start_point": {"row": 152, "column": 54}, "end_point": {"row": 152, "column": 78}}, {"id": 848, "type": "subscript_expression", "text": "col_maxes[13]", "parent": 847, "children": [849, 850], "start_point": {"row": 152, "column": 54}, "end_point": {"row": 152, "column": 67}}, {"id": 849, "type": "identifier", "text": "col_maxes", "parent": 848, "children": [], "start_point": {"row": 152, "column": 54}, "end_point": {"row": 152, "column": 63}}, {"id": 850, "type": "number_literal", "text": "13", "parent": 848, "children": [], "start_point": {"row": 152, "column": 64}, "end_point": {"row": 152, "column": 66}}, {"id": 851, "type": "=", "text": "=", "parent": 847, "children": [], "start_point": {"row": 152, "column": 68}, "end_point": {"row": 152, "column": 69}}, {"id": 852, "type": "binary_expression", "text": "1500/300", "parent": 847, "children": [853, 854, 855], "start_point": {"row": 152, "column": 70}, "end_point": {"row": 152, "column": 78}}, {"id": 853, "type": "number_literal", "text": "1500", "parent": 852, "children": [], "start_point": {"row": 152, "column": 70}, "end_point": {"row": 152, "column": 74}}, {"id": 854, "type": "/", "text": "/", "parent": 852, "children": [], "start_point": {"row": 152, "column": 74}, "end_point": {"row": 152, "column": 75}}, {"id": 855, "type": "number_literal", "text": "300", "parent": 852, "children": [], "start_point": {"row": 152, "column": 75}, "end_point": {"row": 152, "column": 78}}, {"id": 856, "type": "assignment_expression", "text": "col_types[14] = VARCHAR", "parent": 87, "children": [857, 860, 861], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 25}}, {"id": 857, "type": "subscript_expression", "text": "col_types[14]", "parent": 856, "children": [858, 859], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 15}}, {"id": 858, "type": "identifier", "text": "col_types", "parent": 857, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 11}}, {"id": 859, "type": "number_literal", "text": "14", "parent": 857, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 14}}, {"id": 860, "type": "=", "text": "=", "parent": 856, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 17}}, {"id": 861, "type": "identifier", "text": "VARCHAR", "parent": 856, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 25}}, {"id": 862, "type": "assignment_expression", "text": "col_mins[14] = 1", "parent": 87, "children": [863, 866, 867], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 45}}, {"id": 863, "type": "subscript_expression", "text": "col_mins[14]", "parent": 862, "children": [864, 865], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 41}}, {"id": 864, "type": "identifier", "text": "col_mins", "parent": 863, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 37}}, {"id": 865, "type": "number_literal", "text": "14", "parent": 863, "children": [], "start_point": {"row": 153, "column": 38}, "end_point": {"row": 153, "column": 40}}, {"id": 866, "type": "=", "text": "=", "parent": 862, "children": [], "start_point": {"row": 153, "column": 42}, "end_point": {"row": 153, "column": 43}}, {"id": 867, "type": "number_literal", "text": "1", "parent": 862, "children": [], "start_point": {"row": 153, "column": 44}, "end_point": {"row": 153, "column": 45}}, {"id": 868, "type": "assignment_expression", "text": "col_maxes[14] = 1500/300", "parent": 87, "children": [869, 872, 873], "start_point": {"row": 153, "column": 54}, "end_point": {"row": 153, "column": 78}}, {"id": 869, "type": "subscript_expression", "text": "col_maxes[14]", "parent": 868, "children": [870, 871], "start_point": {"row": 153, "column": 54}, "end_point": {"row": 153, "column": 67}}, {"id": 870, "type": "identifier", "text": "col_maxes", "parent": 869, "children": [], "start_point": {"row": 153, "column": 54}, "end_point": {"row": 153, "column": 63}}, {"id": 871, "type": "number_literal", "text": "14", "parent": 869, "children": [], "start_point": {"row": 153, "column": 64}, "end_point": {"row": 153, "column": 66}}, {"id": 872, "type": "=", "text": "=", "parent": 868, "children": [], "start_point": {"row": 153, "column": 68}, "end_point": {"row": 153, "column": 69}}, {"id": 873, "type": "binary_expression", "text": "1500/300", "parent": 868, "children": [874, 875, 876], "start_point": {"row": 153, "column": 70}, "end_point": {"row": 153, "column": 78}}, {"id": 874, "type": "number_literal", "text": "1500", "parent": 873, "children": [], "start_point": {"row": 153, "column": 70}, "end_point": {"row": 153, "column": 74}}, {"id": 875, "type": "/", "text": "/", "parent": 873, "children": [], "start_point": {"row": 153, "column": 74}, "end_point": {"row": 153, "column": 75}}, {"id": 876, "type": "number_literal", "text": "300", "parent": 873, "children": [], "start_point": {"row": 153, "column": 75}, "end_point": {"row": 153, "column": 78}}, {"id": 877, "type": "call_expression", "text": "table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes)", "parent": 87, "children": [878, 879], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 64}}, {"id": 878, "type": "identifier", "text": "table_gen", "parent": 877, "children": [], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 11}}, {"id": 879, "type": "argument_list", "text": "(numrows, wlist,numcols,col_types,col_mins,col_maxes)", "parent": 877, "children": [880, 881, 882, 883, 884, 885], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 64}}, {"id": 880, "type": "identifier", "text": "numrows", "parent": 879, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 19}}, {"id": 881, "type": "identifier", "text": "wlist", "parent": 879, "children": [], "start_point": {"row": 156, "column": 21}, "end_point": {"row": 156, "column": 26}}, {"id": 882, "type": "identifier", "text": "numcols", "parent": 879, "children": [], "start_point": {"row": 156, "column": 27}, "end_point": {"row": 156, "column": 34}}, {"id": 883, "type": "identifier", "text": "col_types", "parent": 879, "children": [], "start_point": {"row": 156, "column": 35}, "end_point": {"row": 156, "column": 44}}, {"id": 884, "type": "identifier", "text": "col_mins", "parent": 879, "children": [], "start_point": {"row": 156, "column": 45}, "end_point": {"row": 156, "column": 53}}, {"id": 885, "type": "identifier", "text": "col_maxes", "parent": 879, "children": [], "start_point": {"row": 156, "column": 54}, "end_point": {"row": 156, "column": 63}}, {"id": 886, "type": "call_expression", "text": "exit(0)", "parent": 87, "children": [887, 888], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 9}}, {"id": 887, "type": "identifier", "text": "exit", "parent": 886, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 6}}, {"id": 888, "type": "argument_list", "text": "(0)", "parent": 886, "children": [889], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 9}}, {"id": 889, "type": "number_literal", "text": "0", "parent": 888, "children": [], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 8}}, {"id": 890, "type": "function_definition", "text": "void table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes) {\n\n int itemp;\n int i,j,ii, nwords;\n int year, month, day, hour, minute, second;\n int minyear, minmonth, minday;\n int maxyear, maxmonth, maxday;\n\n int leaps[] = LEAPS;\n int nonleaps[] = NONLEAPS;\n\n //printf(\"Number of rows to be generated: %ld\\n\",nrows);\n //exit(0);\n\n for (i=0; i<nrows; i++) {\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf(\"column_type[%d] = INTEGER\\n\",j+1);\n\tprintf(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n case VARCHAR:\n //printf(\"column_type[%d] = VARCHAR\\n\",j+1);\n\tnwords = (int)randomrange(column_mins[j],column_maxes[j]);\n\tfor (ii=0; ii<nwords ; ii++) {\n\t itemp = (int)randomrange(0,wlist.used_size-1);\n\t printf(\"%s\",wlist.list[itemp]);\n\t if (ii != (nwords-1)) printf(\" \");\n }\n\tbreak;;\n case TIMESTAMP:\n //printf(\"column_type[%d] = TIMESTAMP\\n\",j+1);\n\tminyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n\tminmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n\tminday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n\tyear \t= (int)randomrange(minyear,maxyear);\n\tmonth \t= (int)randomrange(minmonth,maxmonth);\n\tday \t= (int)randomrange(minday,maxday);\n\tif (ISLEAP(year)) {\n\t day = MIN(leaps[month-1],day);\n } else {\n\t day = MIN(nonleaps[month-1],day);\n }\n\thour \t= (int)randomrange(0,23);\n\tminute \t= (int)randomrange(0,59);\n\tsecond \t= (int)randomrange(0,59);\n\n\tprintf(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second);\n\tbreak;;\n case NUMERIC:\n //printf(\"column_type[%d] = NUMERIC\\n\",j+1);\n\tprintf(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n }\n if (j != (numcols-1)) printf(\"|\");\n\n } //End of numcolumns\n printf(\"\\n\");\n\n }\n\n}", "parent": null, "children": [891, 892], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 225, "column": 1}}, {"id": 891, "type": "primitive_type", "text": "void", "parent": 890, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 4}}, {"id": 892, "type": "function_declarator", "text": "table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)", "parent": 890, "children": [893, 894], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 123}}, {"id": 893, "type": "identifier", "text": "table_gen", "parent": 892, "children": [], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 14}}, {"id": 894, "type": "parameter_list", "text": "(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes)", "parent": 892, "children": [895, 900, 903, 906, 911, 916], "start_point": {"row": 162, "column": 14}, "end_point": {"row": 162, "column": 123}}, {"id": 895, "type": "parameter_declaration", "text": "long long nrows", "parent": 894, "children": [896, 899], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 30}}, {"id": 896, "type": "sized_type_specifier", "text": "long long", "parent": 895, "children": [897, 898], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 24}}, {"id": 897, "type": "long", "text": "long", "parent": 896, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 19}}, {"id": 898, "type": "long", "text": "long", "parent": 896, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 24}}, {"id": 899, "type": "identifier", "text": "nrows", "parent": 895, "children": [], "start_point": {"row": 162, "column": 25}, "end_point": {"row": 162, "column": 30}}, {"id": 900, "type": "parameter_declaration", "text": "Stringlist wlist", "parent": 894, "children": [901, 902], "start_point": {"row": 162, "column": 32}, "end_point": {"row": 162, "column": 48}}, {"id": 901, "type": "type_identifier", "text": "Stringlist", "parent": 900, "children": [], "start_point": {"row": 162, "column": 32}, "end_point": {"row": 162, "column": 42}}, {"id": 902, "type": "identifier", "text": "wlist", "parent": 900, "children": [], "start_point": {"row": 162, "column": 43}, "end_point": {"row": 162, "column": 48}}, {"id": 903, "type": "parameter_declaration", "text": "int numcols", "parent": 894, "children": [904, 905], "start_point": {"row": 162, "column": 49}, "end_point": {"row": 162, "column": 60}}, {"id": 904, "type": "primitive_type", "text": "int", "parent": 903, "children": [], "start_point": {"row": 162, "column": 49}, "end_point": {"row": 162, "column": 52}}, {"id": 905, "type": "identifier", "text": "numcols", "parent": 903, "children": [], "start_point": {"row": 162, "column": 53}, "end_point": {"row": 162, "column": 60}}, {"id": 906, "type": "parameter_declaration", "text": "int *column_types", "parent": 894, "children": [907, 908], "start_point": {"row": 162, "column": 62}, "end_point": {"row": 162, "column": 79}}, {"id": 907, "type": "primitive_type", "text": "int", "parent": 906, "children": [], "start_point": {"row": 162, "column": 62}, "end_point": {"row": 162, "column": 65}}, {"id": 908, "type": "pointer_declarator", "text": "*column_types", "parent": 906, "children": [909, 910], "start_point": {"row": 162, "column": 66}, "end_point": {"row": 162, "column": 79}}, {"id": 909, "type": "*", "text": "*", "parent": 908, "children": [], "start_point": {"row": 162, "column": 66}, "end_point": {"row": 162, "column": 67}}, {"id": 910, "type": "identifier", "text": "column_types", "parent": 908, "children": [], "start_point": {"row": 162, "column": 67}, "end_point": {"row": 162, "column": 79}}, {"id": 911, "type": "parameter_declaration", "text": "double *column_mins", "parent": 894, "children": [912, 913], "start_point": {"row": 162, "column": 81}, "end_point": {"row": 162, "column": 100}}, {"id": 912, "type": "primitive_type", "text": "double", "parent": 911, "children": [], "start_point": {"row": 162, "column": 81}, "end_point": {"row": 162, "column": 87}}, {"id": 913, "type": "pointer_declarator", "text": "*column_mins", "parent": 911, "children": [914, 915], "start_point": {"row": 162, "column": 88}, "end_point": {"row": 162, "column": 100}}, {"id": 914, "type": "*", "text": "*", "parent": 913, "children": [], "start_point": {"row": 162, "column": 88}, "end_point": {"row": 162, "column": 89}}, {"id": 915, "type": "identifier", "text": "column_mins", "parent": 913, "children": [], "start_point": {"row": 162, "column": 89}, "end_point": {"row": 162, "column": 100}}, {"id": 916, "type": "parameter_declaration", "text": "double *column_maxes", "parent": 894, "children": [917, 918], "start_point": {"row": 162, "column": 102}, "end_point": {"row": 162, "column": 122}}, {"id": 917, "type": "primitive_type", "text": "double", "parent": 916, "children": [], "start_point": {"row": 162, "column": 102}, "end_point": {"row": 162, "column": 108}}, {"id": 918, "type": "pointer_declarator", "text": "*column_maxes", "parent": 916, "children": [919, 920], "start_point": {"row": 162, "column": 109}, "end_point": {"row": 162, "column": 122}}, {"id": 919, "type": "*", "text": "*", "parent": 918, "children": [], "start_point": {"row": 162, "column": 109}, "end_point": {"row": 162, "column": 110}}, {"id": 920, "type": "identifier", "text": "column_maxes", "parent": 918, "children": [], "start_point": {"row": 162, "column": 110}, "end_point": {"row": 162, "column": 122}}, {"id": 921, "type": "declaration", "text": "int itemp;", "parent": 890, "children": [922, 923], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 12}}, {"id": 922, "type": "primitive_type", "text": "int", "parent": 921, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 5}}, {"id": 923, "type": "identifier", "text": "itemp", "parent": 921, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 11}}, {"id": 924, "type": "declaration", "text": "int i,j,ii, nwords;", "parent": 890, "children": [925, 926, 927, 928, 929], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 21}}, {"id": 925, "type": "primitive_type", "text": "int", "parent": 924, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 5}}, {"id": 926, "type": "identifier", "text": "i", "parent": 924, "children": [], "start_point": {"row": 165, "column": 6}, "end_point": {"row": 165, "column": 7}}, {"id": 927, "type": "identifier", "text": "j", "parent": 924, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 9}}, {"id": 928, "type": "identifier", "text": "ii", "parent": 924, "children": [], "start_point": {"row": 165, "column": 10}, "end_point": {"row": 165, "column": 12}}, {"id": 929, "type": "identifier", "text": "nwords", "parent": 924, "children": [], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 20}}, {"id": 930, "type": "declaration", "text": "int year, month, day, hour, minute, second;", "parent": 890, "children": [931, 932, 933, 934, 935, 936, 937], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 45}}, {"id": 931, "type": "primitive_type", "text": "int", "parent": 930, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 5}}, {"id": 932, "type": "identifier", "text": "year", "parent": 930, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 10}}, {"id": 933, "type": "identifier", "text": "month", "parent": 930, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 17}}, {"id": 934, "type": "identifier", "text": "day", "parent": 930, "children": [], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 22}}, {"id": 935, "type": "identifier", "text": "hour", "parent": 930, "children": [], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 28}}, {"id": 936, "type": "identifier", "text": "minute", "parent": 930, "children": [], "start_point": {"row": 166, "column": 30}, "end_point": {"row": 166, "column": 36}}, {"id": 937, "type": "identifier", "text": "second", "parent": 930, "children": [], "start_point": {"row": 166, "column": 38}, "end_point": {"row": 166, "column": 44}}, {"id": 938, "type": "declaration", "text": "int minyear, minmonth, minday;", "parent": 890, "children": [939, 940, 941, 942], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 32}}, {"id": 939, "type": "primitive_type", "text": "int", "parent": 938, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 5}}, {"id": 940, "type": "identifier", "text": "minyear", "parent": 938, "children": [], "start_point": {"row": 167, "column": 6}, "end_point": {"row": 167, "column": 13}}, {"id": 941, "type": "identifier", "text": "minmonth", "parent": 938, "children": [], "start_point": {"row": 167, "column": 15}, "end_point": {"row": 167, "column": 23}}, {"id": 942, "type": "identifier", "text": "minday", "parent": 938, "children": [], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 31}}, {"id": 943, "type": "declaration", "text": "int maxyear, maxmonth, maxday;", "parent": 890, "children": [944, 945, 946, 947], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 32}}, {"id": 944, "type": "primitive_type", "text": "int", "parent": 943, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 5}}, {"id": 945, "type": "identifier", "text": "maxyear", "parent": 943, "children": [], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 13}}, {"id": 946, "type": "identifier", "text": "maxmonth", "parent": 943, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 23}}, {"id": 947, "type": "identifier", "text": "maxday", "parent": 943, "children": [], "start_point": {"row": 168, "column": 25}, "end_point": {"row": 168, "column": 31}}, {"id": 948, "type": "declaration", "text": "int leaps[] = LEAPS;", "parent": 890, "children": [949, 950], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 22}}, {"id": 949, "type": "primitive_type", "text": "int", "parent": 948, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 5}}, {"id": 950, "type": "init_declarator", "text": "leaps[] = LEAPS", "parent": 948, "children": [951, 953, 954], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 21}}, {"id": 951, "type": "array_declarator", "text": "leaps[]", "parent": 950, "children": [952], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 13}}, {"id": 952, "type": "identifier", "text": "leaps", "parent": 951, "children": [], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 11}}, {"id": 953, "type": "=", "text": "=", "parent": 950, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 15}}, {"id": 954, "type": "identifier", "text": "LEAPS", "parent": 950, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 21}}, {"id": 955, "type": "declaration", "text": "int nonleaps[] = NONLEAPS;", "parent": 890, "children": [956, 957], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 28}}, {"id": 956, "type": "primitive_type", "text": "int", "parent": 955, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 5}}, {"id": 957, "type": "init_declarator", "text": "nonleaps[] = NONLEAPS", "parent": 955, "children": [958, 960, 961], "start_point": {"row": 171, "column": 6}, "end_point": {"row": 171, "column": 27}}, {"id": 958, "type": "array_declarator", "text": "nonleaps[]", "parent": 957, "children": [959], "start_point": {"row": 171, "column": 6}, "end_point": {"row": 171, "column": 16}}, {"id": 959, "type": "identifier", "text": "nonleaps", "parent": 958, "children": [], "start_point": {"row": 171, "column": 6}, "end_point": {"row": 171, "column": 14}}, {"id": 960, "type": "=", "text": "=", "parent": 957, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 18}}, {"id": 961, "type": "identifier", "text": "NONLEAPS", "parent": 957, "children": [], "start_point": {"row": 171, "column": 19}, "end_point": {"row": 171, "column": 27}}, {"id": 962, "type": "for_statement", "text": "for (i=0; i<nrows; i++) {\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf(\"column_type[%d] = INTEGER\\n\",j+1);\n\tprintf(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n case VARCHAR:\n //printf(\"column_type[%d] = VARCHAR\\n\",j+1);\n\tnwords = (int)randomrange(column_mins[j],column_maxes[j]);\n\tfor (ii=0; ii<nwords ; ii++) {\n\t itemp = (int)randomrange(0,wlist.used_size-1);\n\t printf(\"%s\",wlist.list[itemp]);\n\t if (ii != (nwords-1)) printf(\" \");\n }\n\tbreak;;\n case TIMESTAMP:\n //printf(\"column_type[%d] = TIMESTAMP\\n\",j+1);\n\tminyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n\tminmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n\tminday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n\tyear \t= (int)randomrange(minyear,maxyear);\n\tmonth \t= (int)randomrange(minmonth,maxmonth);\n\tday \t= (int)randomrange(minday,maxday);\n\tif (ISLEAP(year)) {\n\t day = MIN(leaps[month-1],day);\n } else {\n\t day = MIN(nonleaps[month-1],day);\n }\n\thour \t= (int)randomrange(0,23);\n\tminute \t= (int)randomrange(0,59);\n\tsecond \t= (int)randomrange(0,59);\n\n\tprintf(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second);\n\tbreak;;\n case NUMERIC:\n //printf(\"column_type[%d] = NUMERIC\\n\",j+1);\n\tprintf(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n }\n if (j != (numcols-1)) printf(\"|\");\n\n } //End of numcolumns\n printf(\"\\n\");\n\n }", "parent": 890, "children": [963, 967, 971], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 223, "column": 3}}, {"id": 963, "type": "assignment_expression", "text": "i=0", "parent": 962, "children": [964, 965, 966], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 10}}, {"id": 964, "type": "identifier", "text": "i", "parent": 963, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 8}}, {"id": 965, "type": "=", "text": "=", "parent": 963, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 9}}, {"id": 966, "type": "number_literal", "text": "0", "parent": 963, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 10}}, {"id": 967, "type": "binary_expression", "text": "i<nrows", "parent": 962, "children": [968, 969, 970], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 19}}, {"id": 968, "type": "identifier", "text": "i", "parent": 967, "children": [], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 13}}, {"id": 969, "type": "<", "text": "<", "parent": 967, "children": [], "start_point": {"row": 176, "column": 13}, "end_point": {"row": 176, "column": 14}}, {"id": 970, "type": "identifier", "text": "nrows", "parent": 967, "children": [], "start_point": {"row": 176, "column": 14}, "end_point": {"row": 176, "column": 19}}, {"id": 971, "type": "update_expression", "text": "i++", "parent": 962, "children": [972, 973], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 24}}, {"id": 972, "type": "identifier", "text": "i", "parent": 971, "children": [], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 22}}, {"id": 973, "type": "++", "text": "++", "parent": 971, "children": [], "start_point": {"row": 176, "column": 22}, "end_point": {"row": 176, "column": 24}}, {"id": 974, "type": "for_statement", "text": "for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf(\"column_type[%d] = INTEGER\\n\",j+1);\n\tprintf(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n case VARCHAR:\n //printf(\"column_type[%d] = VARCHAR\\n\",j+1);\n\tnwords = (int)randomrange(column_mins[j],column_maxes[j]);\n\tfor (ii=0; ii<nwords ; ii++) {\n\t itemp = (int)randomrange(0,wlist.used_size-1);\n\t printf(\"%s\",wlist.list[itemp]);\n\t if (ii != (nwords-1)) printf(\" \");\n }\n\tbreak;;\n case TIMESTAMP:\n //printf(\"column_type[%d] = TIMESTAMP\\n\",j+1);\n\tminyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n\tminmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n\tminday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n\tyear \t= (int)randomrange(minyear,maxyear);\n\tmonth \t= (int)randomrange(minmonth,maxmonth);\n\tday \t= (int)randomrange(minday,maxday);\n\tif (ISLEAP(year)) {\n\t day = MIN(leaps[month-1],day);\n } else {\n\t day = MIN(nonleaps[month-1],day);\n }\n\thour \t= (int)randomrange(0,23);\n\tminute \t= (int)randomrange(0,59);\n\tsecond \t= (int)randomrange(0,59);\n\n\tprintf(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second);\n\tbreak;;\n case NUMERIC:\n //printf(\"column_type[%d] = NUMERIC\\n\",j+1);\n\tprintf(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n }\n if (j != (numcols-1)) printf(\"|\");\n\n }", "parent": 962, "children": [975, 979, 983], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 220, "column": 4}}, {"id": 975, "type": "assignment_expression", "text": "j=0", "parent": 974, "children": [976, 977, 978], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 11}}, {"id": 976, "type": "identifier", "text": "j", "parent": 975, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 9}}, {"id": 977, "type": "=", "text": "=", "parent": 975, "children": [], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 10}}, {"id": 978, "type": "number_literal", "text": "0", "parent": 975, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 11}}, {"id": 979, "type": "binary_expression", "text": "j<numcols", "parent": 974, "children": [980, 981, 982], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 22}}, {"id": 980, "type": "identifier", "text": "j", "parent": 979, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 14}}, {"id": 981, "type": "<", "text": "<", "parent": 979, "children": [], "start_point": {"row": 178, "column": 14}, "end_point": {"row": 178, "column": 15}}, {"id": 982, "type": "identifier", "text": "numcols", "parent": 979, "children": [], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 22}}, {"id": 983, "type": "update_expression", "text": "j++", "parent": 974, "children": [984, 985], "start_point": {"row": 178, "column": 24}, "end_point": {"row": 178, "column": 27}}, {"id": 984, "type": "identifier", "text": "j", "parent": 983, "children": [], "start_point": {"row": 178, "column": 24}, "end_point": {"row": 178, "column": 25}}, {"id": 985, "type": "++", "text": "++", "parent": 983, "children": [], "start_point": {"row": 178, "column": 25}, "end_point": {"row": 178, "column": 27}}, {"id": 986, "type": "switch_statement", "text": "switch (column_types[j]) {\n case INTEGER:\n //printf(\"column_type[%d] = INTEGER\\n\",j+1);\n\tprintf(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n case VARCHAR:\n //printf(\"column_type[%d] = VARCHAR\\n\",j+1);\n\tnwords = (int)randomrange(column_mins[j],column_maxes[j]);\n\tfor (ii=0; ii<nwords ; ii++) {\n\t itemp = (int)randomrange(0,wlist.used_size-1);\n\t printf(\"%s\",wlist.list[itemp]);\n\t if (ii != (nwords-1)) printf(\" \");\n }\n\tbreak;;\n case TIMESTAMP:\n //printf(\"column_type[%d] = TIMESTAMP\\n\",j+1);\n\tminyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n\tminmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n\tminday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n\tyear \t= (int)randomrange(minyear,maxyear);\n\tmonth \t= (int)randomrange(minmonth,maxmonth);\n\tday \t= (int)randomrange(minday,maxday);\n\tif (ISLEAP(year)) {\n\t day = MIN(leaps[month-1],day);\n } else {\n\t day = MIN(nonleaps[month-1],day);\n }\n\thour \t= (int)randomrange(0,23);\n\tminute \t= (int)randomrange(0,59);\n\tsecond \t= (int)randomrange(0,59);\n\n\tprintf(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second);\n\tbreak;;\n case NUMERIC:\n //printf(\"column_type[%d] = NUMERIC\\n\",j+1);\n\tprintf(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n }", "parent": 974, "children": [987, 988], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 217, "column": 5}}, {"id": 987, "type": "switch", "text": "switch", "parent": 986, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 10}}, {"id": 988, "type": "parenthesized_expression", "text": "(column_types[j])", "parent": 986, "children": [989], "start_point": {"row": 179, "column": 11}, "end_point": {"row": 179, "column": 28}}, {"id": 989, "type": "subscript_expression", "text": "column_types[j]", "parent": 988, "children": [990, 991], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 27}}, {"id": 990, "type": "identifier", "text": "column_types", "parent": 989, "children": [], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 24}}, {"id": 991, "type": "identifier", "text": "j", "parent": 989, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 26}}, {"id": 992, "type": "case_statement", "text": "case INTEGER:\n //printf(\"column_type[%d] = INTEGER\\n\",j+1);\n\tprintf(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;", "parent": 986, "children": [993, 994, 1011], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 183, "column": 8}}, {"id": 993, "type": "case", "text": "case", "parent": 992, "children": [], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 10}}, {"id": 994, "type": "identifier", "text": "INTEGER", "parent": 992, "children": [], "start_point": {"row": 180, "column": 11}, "end_point": {"row": 180, "column": 18}}, {"id": 995, "type": "call_expression", "text": "printf(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]))", "parent": 992, "children": [996, 997], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 62}}, {"id": 996, "type": "identifier", "text": "printf", "parent": 995, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 7}}, {"id": 997, "type": "argument_list", "text": "(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]))", "parent": 995, "children": [998, 999], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 62}}, {"id": 998, "type": "string_literal", "text": "\"%d\"", "parent": 997, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 12}}, {"id": 999, "type": "cast_expression", "text": "(int)randomrange(column_mins[j],column_maxes[j])", "parent": 997, "children": [1000, 1002], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 61}}, {"id": 1000, "type": "type_descriptor", "text": "int", "parent": 999, "children": [1001], "start_point": {"row": 182, "column": 14}, "end_point": {"row": 182, "column": 17}}, {"id": 1001, "type": "primitive_type", "text": "int", "parent": 1000, "children": [], "start_point": {"row": 182, "column": 14}, "end_point": {"row": 182, "column": 17}}, {"id": 1002, "type": "call_expression", "text": "randomrange(column_mins[j],column_maxes[j])", "parent": 999, "children": [1003, 1004], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 61}}, {"id": 1003, "type": "identifier", "text": "randomrange", "parent": 1002, "children": [], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 29}}, {"id": 1004, "type": "argument_list", "text": "(column_mins[j],column_maxes[j])", "parent": 1002, "children": [1005, 1008], "start_point": {"row": 182, "column": 29}, "end_point": {"row": 182, "column": 61}}, {"id": 1005, "type": "subscript_expression", "text": "column_mins[j]", "parent": 1004, "children": [1006, 1007], "start_point": {"row": 182, "column": 30}, "end_point": {"row": 182, "column": 44}}, {"id": 1006, "type": "identifier", "text": "column_mins", "parent": 1005, "children": [], "start_point": {"row": 182, "column": 30}, "end_point": {"row": 182, "column": 41}}, {"id": 1007, "type": "identifier", "text": "j", "parent": 1005, "children": [], "start_point": {"row": 182, "column": 42}, "end_point": {"row": 182, "column": 43}}, {"id": 1008, "type": "subscript_expression", "text": "column_maxes[j]", "parent": 1004, "children": [1009, 1010], "start_point": {"row": 182, "column": 45}, "end_point": {"row": 182, "column": 60}}, {"id": 1009, "type": "identifier", "text": "column_maxes", "parent": 1008, "children": [], "start_point": {"row": 182, "column": 45}, "end_point": {"row": 182, "column": 57}}, {"id": 1010, "type": "identifier", "text": "j", "parent": 1008, "children": [], "start_point": {"row": 182, "column": 58}, "end_point": {"row": 182, "column": 59}}, {"id": 1011, "type": "break_statement", "text": "break;", "parent": 992, "children": [1012], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 7}}, {"id": 1012, "type": "break", "text": "break", "parent": 1011, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 6}}, {"id": 1013, "type": "case_statement", "text": "case VARCHAR:\n //printf(\"column_type[%d] = VARCHAR\\n\",j+1);\n\tnwords = (int)randomrange(column_mins[j],column_maxes[j]);\n\tfor (ii=0; ii<nwords ; ii++) {\n\t itemp = (int)randomrange(0,wlist.used_size-1);\n\t printf(\"%s\",wlist.list[itemp]);\n\t if (ii != (nwords-1)) printf(\" \");\n }\n\tbreak;;", "parent": 986, "children": [1014, 1015, 1031, 1082], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 192, "column": 8}}, {"id": 1014, "type": "case", "text": "case", "parent": 1013, "children": [], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 10}}, {"id": 1015, "type": "identifier", "text": "VARCHAR", "parent": 1013, "children": [], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 18}}, {"id": 1016, "type": "assignment_expression", "text": "nwords = (int)randomrange(column_mins[j],column_maxes[j])", "parent": 1013, "children": [1017, 1018, 1019], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 58}}, {"id": 1017, "type": "identifier", "text": "nwords", "parent": 1016, "children": [], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 7}}, {"id": 1018, "type": "=", "text": "=", "parent": 1016, "children": [], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 186, "column": 9}}, {"id": 1019, "type": "cast_expression", "text": "(int)randomrange(column_mins[j],column_maxes[j])", "parent": 1016, "children": [1020, 1022], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 58}}, {"id": 1020, "type": "type_descriptor", "text": "int", "parent": 1019, "children": [1021], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 14}}, {"id": 1021, "type": "primitive_type", "text": "int", "parent": 1020, "children": [], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 14}}, {"id": 1022, "type": "call_expression", "text": "randomrange(column_mins[j],column_maxes[j])", "parent": 1019, "children": [1023, 1024], "start_point": {"row": 186, "column": 15}, "end_point": {"row": 186, "column": 58}}, {"id": 1023, "type": "identifier", "text": "randomrange", "parent": 1022, "children": [], "start_point": {"row": 186, "column": 15}, "end_point": {"row": 186, "column": 26}}, {"id": 1024, "type": "argument_list", "text": "(column_mins[j],column_maxes[j])", "parent": 1022, "children": [1025, 1028], "start_point": {"row": 186, "column": 26}, "end_point": {"row": 186, "column": 58}}, {"id": 1025, "type": "subscript_expression", "text": "column_mins[j]", "parent": 1024, "children": [1026, 1027], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 41}}, {"id": 1026, "type": "identifier", "text": "column_mins", "parent": 1025, "children": [], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 38}}, {"id": 1027, "type": "identifier", "text": "j", "parent": 1025, "children": [], "start_point": {"row": 186, "column": 39}, "end_point": {"row": 186, "column": 40}}, {"id": 1028, "type": "subscript_expression", "text": "column_maxes[j]", "parent": 1024, "children": [1029, 1030], "start_point": {"row": 186, "column": 42}, "end_point": {"row": 186, "column": 57}}, {"id": 1029, "type": "identifier", "text": "column_maxes", "parent": 1028, "children": [], "start_point": {"row": 186, "column": 42}, "end_point": {"row": 186, "column": 54}}, {"id": 1030, "type": "identifier", "text": "j", "parent": 1028, "children": [], "start_point": {"row": 186, "column": 55}, "end_point": {"row": 186, "column": 56}}, {"id": 1031, "type": "for_statement", "text": "for (ii=0; ii<nwords ; ii++) {\n\t itemp = (int)randomrange(0,wlist.used_size-1);\n\t printf(\"%s\",wlist.list[itemp]);\n\t if (ii != (nwords-1)) printf(\" \");\n }", "parent": 1013, "children": [1032, 1036, 1040], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 191, "column": 9}}, {"id": 1032, "type": "assignment_expression", "text": "ii=0", "parent": 1031, "children": [1033, 1034, 1035], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 10}}, {"id": 1033, "type": "identifier", "text": "ii", "parent": 1032, "children": [], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 8}}, {"id": 1034, "type": "=", "text": "=", "parent": 1032, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 9}}, {"id": 1035, "type": "number_literal", "text": "0", "parent": 1032, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 10}}, {"id": 1036, "type": "binary_expression", "text": "ii<nwords", "parent": 1031, "children": [1037, 1038, 1039], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 21}}, {"id": 1037, "type": "identifier", "text": "ii", "parent": 1036, "children": [], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 14}}, {"id": 1038, "type": "<", "text": "<", "parent": 1036, "children": [], "start_point": {"row": 187, "column": 14}, "end_point": {"row": 187, "column": 15}}, {"id": 1039, "type": "identifier", "text": "nwords", "parent": 1036, "children": [], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 21}}, {"id": 1040, "type": "update_expression", "text": "ii++", "parent": 1031, "children": [1041, 1042], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 28}}, {"id": 1041, "type": "identifier", "text": "ii", "parent": 1040, "children": [], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 26}}, {"id": 1042, "type": "++", "text": "++", "parent": 1040, "children": [], "start_point": {"row": 187, "column": 26}, "end_point": {"row": 187, "column": 28}}, {"id": 1043, "type": "assignment_expression", "text": "itemp = (int)randomrange(0,wlist.used_size-1)", "parent": 1031, "children": [1044, 1045, 1046], "start_point": {"row": 188, "column": 3}, "end_point": {"row": 188, "column": 48}}, {"id": 1044, "type": "identifier", "text": "itemp", "parent": 1043, "children": [], "start_point": {"row": 188, "column": 3}, "end_point": {"row": 188, "column": 8}}, {"id": 1045, "type": "=", "text": "=", "parent": 1043, "children": [], "start_point": {"row": 188, "column": 9}, "end_point": {"row": 188, "column": 10}}, {"id": 1046, "type": "cast_expression", "text": "(int)randomrange(0,wlist.used_size-1)", "parent": 1043, "children": [1047, 1049], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 188, "column": 48}}, {"id": 1047, "type": "type_descriptor", "text": "int", "parent": 1046, "children": [1048], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 15}}, {"id": 1048, "type": "primitive_type", "text": "int", "parent": 1047, "children": [], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 15}}, {"id": 1049, "type": "call_expression", "text": "randomrange(0,wlist.used_size-1)", "parent": 1046, "children": [1050, 1051], "start_point": {"row": 188, "column": 16}, "end_point": {"row": 188, "column": 48}}, {"id": 1050, "type": "identifier", "text": "randomrange", "parent": 1049, "children": [], "start_point": {"row": 188, "column": 16}, "end_point": {"row": 188, "column": 27}}, {"id": 1051, "type": "argument_list", "text": "(0,wlist.used_size-1)", "parent": 1049, "children": [1052, 1053], "start_point": {"row": 188, "column": 27}, "end_point": {"row": 188, "column": 48}}, {"id": 1052, "type": "number_literal", "text": "0", "parent": 1051, "children": [], "start_point": {"row": 188, "column": 28}, "end_point": {"row": 188, "column": 29}}, {"id": 1053, "type": "binary_expression", "text": "wlist.used_size-1", "parent": 1051, "children": [1054, 1057, 1058], "start_point": {"row": 188, "column": 30}, "end_point": {"row": 188, "column": 47}}, {"id": 1054, "type": "field_expression", "text": "wlist.used_size", "parent": 1053, "children": [1055, 1056], "start_point": {"row": 188, "column": 30}, "end_point": {"row": 188, "column": 45}}, {"id": 1055, "type": "identifier", "text": "wlist", "parent": 1054, "children": [], "start_point": {"row": 188, "column": 30}, "end_point": {"row": 188, "column": 35}}, {"id": 1056, "type": "field_identifier", "text": "used_size", "parent": 1054, "children": [], "start_point": {"row": 188, "column": 36}, "end_point": {"row": 188, "column": 45}}, {"id": 1057, "type": "-", "text": "-", "parent": 1053, "children": [], "start_point": {"row": 188, "column": 45}, "end_point": {"row": 188, "column": 46}}, {"id": 1058, "type": "number_literal", "text": "1", "parent": 1053, "children": [], "start_point": {"row": 188, "column": 46}, "end_point": {"row": 188, "column": 47}}, {"id": 1059, "type": "call_expression", "text": "printf(\"%s\",wlist.list[itemp])", "parent": 1031, "children": [1060, 1061], "start_point": {"row": 189, "column": 3}, "end_point": {"row": 189, "column": 33}}, {"id": 1060, "type": "identifier", "text": "printf", "parent": 1059, "children": [], "start_point": {"row": 189, "column": 3}, "end_point": {"row": 189, "column": 9}}, {"id": 1061, "type": "argument_list", "text": "(\"%s\",wlist.list[itemp])", "parent": 1059, "children": [1062, 1063], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 33}}, {"id": 1062, "type": "string_literal", "text": "\"%s\"", "parent": 1061, "children": [], "start_point": {"row": 189, "column": 10}, "end_point": {"row": 189, "column": 14}}, {"id": 1063, "type": "subscript_expression", "text": "wlist.list[itemp]", "parent": 1061, "children": [1064, 1067], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 32}}, {"id": 1064, "type": "field_expression", "text": "wlist.list", "parent": 1063, "children": [1065, 1066], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 25}}, {"id": 1065, "type": "identifier", "text": "wlist", "parent": 1064, "children": [], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 20}}, {"id": 1066, "type": "field_identifier", "text": "list", "parent": 1064, "children": [], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 25}}, {"id": 1067, "type": "identifier", "text": "itemp", "parent": 1063, "children": [], "start_point": {"row": 189, "column": 26}, "end_point": {"row": 189, "column": 31}}, {"id": 1068, "type": "if_statement", "text": "if (ii != (nwords-1)) printf(\" \");", "parent": 1031, "children": [1069], "start_point": {"row": 190, "column": 3}, "end_point": {"row": 190, "column": 37}}, {"id": 1069, "type": "parenthesized_expression", "text": "(ii != (nwords-1))", "parent": 1068, "children": [1070], "start_point": {"row": 190, "column": 6}, "end_point": {"row": 190, "column": 24}}, {"id": 1070, "type": "binary_expression", "text": "ii != (nwords-1)", "parent": 1069, "children": [1071, 1072, 1073], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 23}}, {"id": 1071, "type": "identifier", "text": "ii", "parent": 1070, "children": [], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 9}}, {"id": 1072, "type": "!=", "text": "!=", "parent": 1070, "children": [], "start_point": {"row": 190, "column": 10}, "end_point": {"row": 190, "column": 12}}, {"id": 1073, "type": "parenthesized_expression", "text": "(nwords-1)", "parent": 1070, "children": [1074], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 23}}, {"id": 1074, "type": "binary_expression", "text": "nwords-1", "parent": 1073, "children": [1075, 1076, 1077], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 22}}, {"id": 1075, "type": "identifier", "text": "nwords", "parent": 1074, "children": [], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 20}}, {"id": 1076, "type": "-", "text": "-", "parent": 1074, "children": [], "start_point": {"row": 190, "column": 20}, "end_point": {"row": 190, "column": 21}}, {"id": 1077, "type": "number_literal", "text": "1", "parent": 1074, "children": [], "start_point": {"row": 190, "column": 21}, "end_point": {"row": 190, "column": 22}}, {"id": 1078, "type": "call_expression", "text": "printf(\" \")", "parent": 1068, "children": [1079, 1080], "start_point": {"row": 190, "column": 25}, "end_point": {"row": 190, "column": 36}}, {"id": 1079, "type": "identifier", "text": "printf", "parent": 1078, "children": [], "start_point": {"row": 190, "column": 25}, "end_point": {"row": 190, "column": 31}}, {"id": 1080, "type": "argument_list", "text": "(\" \")", "parent": 1078, "children": [1081], "start_point": {"row": 190, "column": 31}, "end_point": {"row": 190, "column": 36}}, {"id": 1081, "type": "string_literal", "text": "\" \"", "parent": 1080, "children": [], "start_point": {"row": 190, "column": 32}, "end_point": {"row": 190, "column": 35}}, {"id": 1082, "type": "break_statement", "text": "break;", "parent": 1013, "children": [1083], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 7}}, {"id": 1083, "type": "break", "text": "break", "parent": 1082, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 6}}, {"id": 1084, "type": "case_statement", "text": "case TIMESTAMP:\n //printf(\"column_type[%d] = TIMESTAMP\\n\",j+1);\n\tminyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n\tminmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n\tminday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n\tyear \t= (int)randomrange(minyear,maxyear);\n\tmonth \t= (int)randomrange(minmonth,maxmonth);\n\tday \t= (int)randomrange(minday,maxday);\n\tif (ISLEAP(year)) {\n\t day = MIN(leaps[month-1],day);\n } else {\n\t day = MIN(nonleaps[month-1],day);\n }\n\thour \t= (int)randomrange(0,23);\n\tminute \t= (int)randomrange(0,59);\n\tsecond \t= (int)randomrange(0,59);\n\n\tprintf(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second);\n\tbreak;;", "parent": 986, "children": [1085, 1086, 1174, 1250], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 212, "column": 8}}, {"id": 1085, "type": "case", "text": "case", "parent": 1084, "children": [], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 10}}, {"id": 1086, "type": "identifier", "text": "TIMESTAMP", "parent": 1084, "children": [], "start_point": {"row": 193, "column": 11}, "end_point": {"row": 193, "column": 20}}, {"id": 1087, "type": "assignment_expression", "text": "minyear = getyear(column_mins[j])", "parent": 1084, "children": [1088, 1089, 1090], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 34}}, {"id": 1088, "type": "identifier", "text": "minyear", "parent": 1087, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 8}}, {"id": 1089, "type": "=", "text": "=", "parent": 1087, "children": [], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 195, "column": 10}}, {"id": 1090, "type": "call_expression", "text": "getyear(column_mins[j])", "parent": 1087, "children": [1091, 1092], "start_point": {"row": 195, "column": 11}, "end_point": {"row": 195, "column": 34}}, {"id": 1091, "type": "identifier", "text": "getyear", "parent": 1090, "children": [], "start_point": {"row": 195, "column": 11}, "end_point": {"row": 195, "column": 18}}, {"id": 1092, "type": "argument_list", "text": "(column_mins[j])", "parent": 1090, "children": [1093], "start_point": {"row": 195, "column": 18}, "end_point": {"row": 195, "column": 34}}, {"id": 1093, "type": "subscript_expression", "text": "column_mins[j]", "parent": 1092, "children": [1094, 1095], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 33}}, {"id": 1094, "type": "identifier", "text": "column_mins", "parent": 1093, "children": [], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 30}}, {"id": 1095, "type": "identifier", "text": "j", "parent": 1093, "children": [], "start_point": {"row": 195, "column": 31}, "end_point": {"row": 195, "column": 32}}, {"id": 1096, "type": "assignment_expression", "text": "maxyear = getyear(column_maxes[j])", "parent": 1084, "children": [1097, 1098, 1099], "start_point": {"row": 195, "column": 36}, "end_point": {"row": 195, "column": 70}}, {"id": 1097, "type": "identifier", "text": "maxyear", "parent": 1096, "children": [], "start_point": {"row": 195, "column": 36}, "end_point": {"row": 195, "column": 43}}, {"id": 1098, "type": "=", "text": "=", "parent": 1096, "children": [], "start_point": {"row": 195, "column": 44}, "end_point": {"row": 195, "column": 45}}, {"id": 1099, "type": "call_expression", "text": "getyear(column_maxes[j])", "parent": 1096, "children": [1100, 1101], "start_point": {"row": 195, "column": 46}, "end_point": {"row": 195, "column": 70}}, {"id": 1100, "type": "identifier", "text": "getyear", "parent": 1099, "children": [], "start_point": {"row": 195, "column": 46}, "end_point": {"row": 195, "column": 53}}, {"id": 1101, "type": "argument_list", "text": "(column_maxes[j])", "parent": 1099, "children": [1102], "start_point": {"row": 195, "column": 53}, "end_point": {"row": 195, "column": 70}}, {"id": 1102, "type": "subscript_expression", "text": "column_maxes[j]", "parent": 1101, "children": [1103, 1104], "start_point": {"row": 195, "column": 54}, "end_point": {"row": 195, "column": 69}}, {"id": 1103, "type": "identifier", "text": "column_maxes", "parent": 1102, "children": [], "start_point": {"row": 195, "column": 54}, "end_point": {"row": 195, "column": 66}}, {"id": 1104, "type": "identifier", "text": "j", "parent": 1102, "children": [], "start_point": {"row": 195, "column": 67}, "end_point": {"row": 195, "column": 68}}, {"id": 1105, "type": "assignment_expression", "text": "minmonth = getmonth(column_mins[j])", "parent": 1084, "children": [1106, 1107, 1108], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 36}}, {"id": 1106, "type": "identifier", "text": "minmonth", "parent": 1105, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 9}}, {"id": 1107, "type": "=", "text": "=", "parent": 1105, "children": [], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 11}}, {"id": 1108, "type": "call_expression", "text": "getmonth(column_mins[j])", "parent": 1105, "children": [1109, 1110], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 36}}, {"id": 1109, "type": "identifier", "text": "getmonth", "parent": 1108, "children": [], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 20}}, {"id": 1110, "type": "argument_list", "text": "(column_mins[j])", "parent": 1108, "children": [1111], "start_point": {"row": 196, "column": 20}, "end_point": {"row": 196, "column": 36}}, {"id": 1111, "type": "subscript_expression", "text": "column_mins[j]", "parent": 1110, "children": [1112, 1113], "start_point": {"row": 196, "column": 21}, "end_point": {"row": 196, "column": 35}}, {"id": 1112, "type": "identifier", "text": "column_mins", "parent": 1111, "children": [], "start_point": {"row": 196, "column": 21}, "end_point": {"row": 196, "column": 32}}, {"id": 1113, "type": "identifier", "text": "j", "parent": 1111, "children": [], "start_point": {"row": 196, "column": 33}, "end_point": {"row": 196, "column": 34}}, {"id": 1114, "type": "assignment_expression", "text": "maxmonth = getmonth(column_maxes[j])", "parent": 1084, "children": [1115, 1116, 1117], "start_point": {"row": 196, "column": 38}, "end_point": {"row": 196, "column": 74}}, {"id": 1115, "type": "identifier", "text": "maxmonth", "parent": 1114, "children": [], "start_point": {"row": 196, "column": 38}, "end_point": {"row": 196, "column": 46}}, {"id": 1116, "type": "=", "text": "=", "parent": 1114, "children": [], "start_point": {"row": 196, "column": 47}, "end_point": {"row": 196, "column": 48}}, {"id": 1117, "type": "call_expression", "text": "getmonth(column_maxes[j])", "parent": 1114, "children": [1118, 1119], "start_point": {"row": 196, "column": 49}, "end_point": {"row": 196, "column": 74}}, {"id": 1118, "type": "identifier", "text": "getmonth", "parent": 1117, "children": [], "start_point": {"row": 196, "column": 49}, "end_point": {"row": 196, "column": 57}}, {"id": 1119, "type": "argument_list", "text": "(column_maxes[j])", "parent": 1117, "children": [1120], "start_point": {"row": 196, "column": 57}, "end_point": {"row": 196, "column": 74}}, {"id": 1120, "type": "subscript_expression", "text": "column_maxes[j]", "parent": 1119, "children": [1121, 1122], "start_point": {"row": 196, "column": 58}, "end_point": {"row": 196, "column": 73}}, {"id": 1121, "type": "identifier", "text": "column_maxes", "parent": 1120, "children": [], "start_point": {"row": 196, "column": 58}, "end_point": {"row": 196, "column": 70}}, {"id": 1122, "type": "identifier", "text": "j", "parent": 1120, "children": [], "start_point": {"row": 196, "column": 71}, "end_point": {"row": 196, "column": 72}}, {"id": 1123, "type": "assignment_expression", "text": "minday = getday(column_mins[j])", "parent": 1084, "children": [1124, 1125, 1126], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 32}}, {"id": 1124, "type": "identifier", "text": "minday", "parent": 1123, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 7}}, {"id": 1125, "type": "=", "text": "=", "parent": 1123, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 9}}, {"id": 1126, "type": "call_expression", "text": "getday(column_mins[j])", "parent": 1123, "children": [1127, 1128], "start_point": {"row": 197, "column": 10}, "end_point": {"row": 197, "column": 32}}, {"id": 1127, "type": "identifier", "text": "getday", "parent": 1126, "children": [], "start_point": {"row": 197, "column": 10}, "end_point": {"row": 197, "column": 16}}, {"id": 1128, "type": "argument_list", "text": "(column_mins[j])", "parent": 1126, "children": [1129], "start_point": {"row": 197, "column": 16}, "end_point": {"row": 197, "column": 32}}, {"id": 1129, "type": "subscript_expression", "text": "column_mins[j]", "parent": 1128, "children": [1130, 1131], "start_point": {"row": 197, "column": 17}, "end_point": {"row": 197, "column": 31}}, {"id": 1130, "type": "identifier", "text": "column_mins", "parent": 1129, "children": [], "start_point": {"row": 197, "column": 17}, "end_point": {"row": 197, "column": 28}}, {"id": 1131, "type": "identifier", "text": "j", "parent": 1129, "children": [], "start_point": {"row": 197, "column": 29}, "end_point": {"row": 197, "column": 30}}, {"id": 1132, "type": "assignment_expression", "text": "maxday = getday(column_maxes[j])", "parent": 1084, "children": [1133, 1134, 1135], "start_point": {"row": 197, "column": 34}, "end_point": {"row": 197, "column": 66}}, {"id": 1133, "type": "identifier", "text": "maxday", "parent": 1132, "children": [], "start_point": {"row": 197, "column": 34}, "end_point": {"row": 197, "column": 40}}, {"id": 1134, "type": "=", "text": "=", "parent": 1132, "children": [], "start_point": {"row": 197, "column": 41}, "end_point": {"row": 197, "column": 42}}, {"id": 1135, "type": "call_expression", "text": "getday(column_maxes[j])", "parent": 1132, "children": [1136, 1137], "start_point": {"row": 197, "column": 43}, "end_point": {"row": 197, "column": 66}}, {"id": 1136, "type": "identifier", "text": "getday", "parent": 1135, "children": [], "start_point": {"row": 197, "column": 43}, "end_point": {"row": 197, "column": 49}}, {"id": 1137, "type": "argument_list", "text": "(column_maxes[j])", "parent": 1135, "children": [1138], "start_point": {"row": 197, "column": 49}, "end_point": {"row": 197, "column": 66}}, {"id": 1138, "type": "subscript_expression", "text": "column_maxes[j]", "parent": 1137, "children": [1139, 1140], "start_point": {"row": 197, "column": 50}, "end_point": {"row": 197, "column": 65}}, {"id": 1139, "type": "identifier", "text": "column_maxes", "parent": 1138, "children": [], "start_point": {"row": 197, "column": 50}, "end_point": {"row": 197, "column": 62}}, {"id": 1140, "type": "identifier", "text": "j", "parent": 1138, "children": [], "start_point": {"row": 197, "column": 63}, "end_point": {"row": 197, "column": 64}}, {"id": 1141, "type": "assignment_expression", "text": "year \t= (int)randomrange(minyear,maxyear)", "parent": 1084, "children": [1142, 1143, 1144], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 42}}, {"id": 1142, "type": "identifier", "text": "year", "parent": 1141, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 5}}, {"id": 1143, "type": "=", "text": "=", "parent": 1141, "children": [], "start_point": {"row": 199, "column": 7}, "end_point": {"row": 199, "column": 8}}, {"id": 1144, "type": "cast_expression", "text": "(int)randomrange(minyear,maxyear)", "parent": 1141, "children": [1145, 1147], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 42}}, {"id": 1145, "type": "type_descriptor", "text": "int", "parent": 1144, "children": [1146], "start_point": {"row": 199, "column": 10}, "end_point": {"row": 199, "column": 13}}, {"id": 1146, "type": "primitive_type", "text": "int", "parent": 1145, "children": [], "start_point": {"row": 199, "column": 10}, "end_point": {"row": 199, "column": 13}}, {"id": 1147, "type": "call_expression", "text": "randomrange(minyear,maxyear)", "parent": 1144, "children": [1148, 1149], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 42}}, {"id": 1148, "type": "identifier", "text": "randomrange", "parent": 1147, "children": [], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 25}}, {"id": 1149, "type": "argument_list", "text": "(minyear,maxyear)", "parent": 1147, "children": [1150, 1151], "start_point": {"row": 199, "column": 25}, "end_point": {"row": 199, "column": 42}}, {"id": 1150, "type": "identifier", "text": "minyear", "parent": 1149, "children": [], "start_point": {"row": 199, "column": 26}, "end_point": {"row": 199, "column": 33}}, {"id": 1151, "type": "identifier", "text": "maxyear", "parent": 1149, "children": [], "start_point": {"row": 199, "column": 34}, "end_point": {"row": 199, "column": 41}}, {"id": 1152, "type": "assignment_expression", "text": "month \t= (int)randomrange(minmonth,maxmonth)", "parent": 1084, "children": [1153, 1154, 1155], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 45}}, {"id": 1153, "type": "identifier", "text": "month", "parent": 1152, "children": [], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 6}}, {"id": 1154, "type": "=", "text": "=", "parent": 1152, "children": [], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 9}}, {"id": 1155, "type": "cast_expression", "text": "(int)randomrange(minmonth,maxmonth)", "parent": 1152, "children": [1156, 1158], "start_point": {"row": 200, "column": 10}, "end_point": {"row": 200, "column": 45}}, {"id": 1156, "type": "type_descriptor", "text": "int", "parent": 1155, "children": [1157], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 14}}, {"id": 1157, "type": "primitive_type", "text": "int", "parent": 1156, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 14}}, {"id": 1158, "type": "call_expression", "text": "randomrange(minmonth,maxmonth)", "parent": 1155, "children": [1159, 1160], "start_point": {"row": 200, "column": 15}, "end_point": {"row": 200, "column": 45}}, {"id": 1159, "type": "identifier", "text": "randomrange", "parent": 1158, "children": [], "start_point": {"row": 200, "column": 15}, "end_point": {"row": 200, "column": 26}}, {"id": 1160, "type": "argument_list", "text": "(minmonth,maxmonth)", "parent": 1158, "children": [1161, 1162], "start_point": {"row": 200, "column": 26}, "end_point": {"row": 200, "column": 45}}, {"id": 1161, "type": "identifier", "text": "minmonth", "parent": 1160, "children": [], "start_point": {"row": 200, "column": 27}, "end_point": {"row": 200, "column": 35}}, {"id": 1162, "type": "identifier", "text": "maxmonth", "parent": 1160, "children": [], "start_point": {"row": 200, "column": 36}, "end_point": {"row": 200, "column": 44}}, {"id": 1163, "type": "assignment_expression", "text": "day \t= (int)randomrange(minday,maxday)", "parent": 1084, "children": [1164, 1165, 1166], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 39}}, {"id": 1164, "type": "identifier", "text": "day", "parent": 1163, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 4}}, {"id": 1165, "type": "=", "text": "=", "parent": 1163, "children": [], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 7}}, {"id": 1166, "type": "cast_expression", "text": "(int)randomrange(minday,maxday)", "parent": 1163, "children": [1167, 1169], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 39}}, {"id": 1167, "type": "type_descriptor", "text": "int", "parent": 1166, "children": [1168], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 12}}, {"id": 1168, "type": "primitive_type", "text": "int", "parent": 1167, "children": [], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 12}}, {"id": 1169, "type": "call_expression", "text": "randomrange(minday,maxday)", "parent": 1166, "children": [1170, 1171], "start_point": {"row": 201, "column": 13}, "end_point": {"row": 201, "column": 39}}, {"id": 1170, "type": "identifier", "text": "randomrange", "parent": 1169, "children": [], "start_point": {"row": 201, "column": 13}, "end_point": {"row": 201, "column": 24}}, {"id": 1171, "type": "argument_list", "text": "(minday,maxday)", "parent": 1169, "children": [1172, 1173], "start_point": {"row": 201, "column": 24}, "end_point": {"row": 201, "column": 39}}, {"id": 1172, "type": "identifier", "text": "minday", "parent": 1171, "children": [], "start_point": {"row": 201, "column": 25}, "end_point": {"row": 201, "column": 31}}, {"id": 1173, "type": "identifier", "text": "maxday", "parent": 1171, "children": [], "start_point": {"row": 201, "column": 32}, "end_point": {"row": 201, "column": 38}}, {"id": 1174, "type": "if_statement", "text": "if (ISLEAP(year)) {\n\t day = MIN(leaps[month-1],day);\n } else {\n\t day = MIN(nonleaps[month-1],day);\n }", "parent": 1084, "children": [1175, 1193], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 206, "column": 9}}, {"id": 1175, "type": "parenthesized_expression", "text": "(ISLEAP(year))", "parent": 1174, "children": [1176], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 18}}, {"id": 1176, "type": "call_expression", "text": "ISLEAP(year)", "parent": 1175, "children": [1177, 1178], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 17}}, {"id": 1177, "type": "identifier", "text": "ISLEAP", "parent": 1176, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 11}}, {"id": 1178, "type": "argument_list", "text": "(year)", "parent": 1176, "children": [1179], "start_point": {"row": 202, "column": 11}, "end_point": {"row": 202, "column": 17}}, {"id": 1179, "type": "identifier", "text": "year", "parent": 1178, "children": [], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 16}}, {"id": 1180, "type": "assignment_expression", "text": "day = MIN(leaps[month-1],day)", "parent": 1174, "children": [1181, 1182, 1183], "start_point": {"row": 203, "column": 3}, "end_point": {"row": 203, "column": 32}}, {"id": 1181, "type": "identifier", "text": "day", "parent": 1180, "children": [], "start_point": {"row": 203, "column": 3}, "end_point": {"row": 203, "column": 6}}, {"id": 1182, "type": "=", "text": "=", "parent": 1180, "children": [], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 8}}, {"id": 1183, "type": "call_expression", "text": "MIN(leaps[month-1],day)", "parent": 1180, "children": [1184, 1185], "start_point": {"row": 203, "column": 9}, "end_point": {"row": 203, "column": 32}}, {"id": 1184, "type": "identifier", "text": "MIN", "parent": 1183, "children": [], "start_point": {"row": 203, "column": 9}, "end_point": {"row": 203, "column": 12}}, {"id": 1185, "type": "argument_list", "text": "(leaps[month-1],day)", "parent": 1183, "children": [1186, 1192], "start_point": {"row": 203, "column": 12}, "end_point": {"row": 203, "column": 32}}, {"id": 1186, "type": "subscript_expression", "text": "leaps[month-1]", "parent": 1185, "children": [1187, 1188], "start_point": {"row": 203, "column": 13}, "end_point": {"row": 203, "column": 27}}, {"id": 1187, "type": "identifier", "text": "leaps", "parent": 1186, "children": [], "start_point": {"row": 203, "column": 13}, "end_point": {"row": 203, "column": 18}}, {"id": 1188, "type": "binary_expression", "text": "month-1", "parent": 1186, "children": [1189, 1190, 1191], "start_point": {"row": 203, "column": 19}, "end_point": {"row": 203, "column": 26}}, {"id": 1189, "type": "identifier", "text": "month", "parent": 1188, "children": [], "start_point": {"row": 203, "column": 19}, "end_point": {"row": 203, "column": 24}}, {"id": 1190, "type": "-", "text": "-", "parent": 1188, "children": [], "start_point": {"row": 203, "column": 24}, "end_point": {"row": 203, "column": 25}}, {"id": 1191, "type": "number_literal", "text": "1", "parent": 1188, "children": [], "start_point": {"row": 203, "column": 25}, "end_point": {"row": 203, "column": 26}}, {"id": 1192, "type": "identifier", "text": "day", "parent": 1185, "children": [], "start_point": {"row": 203, "column": 28}, "end_point": {"row": 203, "column": 31}}, {"id": 1193, "type": "else_clause", "text": "else {\n\t day = MIN(nonleaps[month-1],day);\n }", "parent": 1174, "children": [], "start_point": {"row": 204, "column": 10}, "end_point": {"row": 206, "column": 9}}, {"id": 1194, "type": "assignment_expression", "text": "day = MIN(nonleaps[month-1],day)", "parent": 1193, "children": [1195, 1196, 1197], "start_point": {"row": 205, "column": 3}, "end_point": {"row": 205, "column": 35}}, {"id": 1195, "type": "identifier", "text": "day", "parent": 1194, "children": [], "start_point": {"row": 205, "column": 3}, "end_point": {"row": 205, "column": 6}}, {"id": 1196, "type": "=", "text": "=", "parent": 1194, "children": [], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 8}}, {"id": 1197, "type": "call_expression", "text": "MIN(nonleaps[month-1],day)", "parent": 1194, "children": [1198, 1199], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 35}}, {"id": 1198, "type": "identifier", "text": "MIN", "parent": 1197, "children": [], "start_point": {"row": 205, "column": 9}, "end_point": {"row": 205, "column": 12}}, {"id": 1199, "type": "argument_list", "text": "(nonleaps[month-1],day)", "parent": 1197, "children": [1200, 1206], "start_point": {"row": 205, "column": 12}, "end_point": {"row": 205, "column": 35}}, {"id": 1200, "type": "subscript_expression", "text": "nonleaps[month-1]", "parent": 1199, "children": [1201, 1202], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 30}}, {"id": 1201, "type": "identifier", "text": "nonleaps", "parent": 1200, "children": [], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 21}}, {"id": 1202, "type": "binary_expression", "text": "month-1", "parent": 1200, "children": [1203, 1204, 1205], "start_point": {"row": 205, "column": 22}, "end_point": {"row": 205, "column": 29}}, {"id": 1203, "type": "identifier", "text": "month", "parent": 1202, "children": [], "start_point": {"row": 205, "column": 22}, "end_point": {"row": 205, "column": 27}}, {"id": 1204, "type": "-", "text": "-", "parent": 1202, "children": [], "start_point": {"row": 205, "column": 27}, "end_point": {"row": 205, "column": 28}}, {"id": 1205, "type": "number_literal", "text": "1", "parent": 1202, "children": [], "start_point": {"row": 205, "column": 28}, "end_point": {"row": 205, "column": 29}}, {"id": 1206, "type": "identifier", "text": "day", "parent": 1199, "children": [], "start_point": {"row": 205, "column": 31}, "end_point": {"row": 205, "column": 34}}, {"id": 1207, "type": "assignment_expression", "text": "hour \t= (int)randomrange(0,23)", "parent": 1084, "children": [1208, 1209, 1210], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 31}}, {"id": 1208, "type": "identifier", "text": "hour", "parent": 1207, "children": [], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 5}}, {"id": 1209, "type": "=", "text": "=", "parent": 1207, "children": [], "start_point": {"row": 207, "column": 7}, "end_point": {"row": 207, "column": 8}}, {"id": 1210, "type": "cast_expression", "text": "(int)randomrange(0,23)", "parent": 1207, "children": [1211, 1213], "start_point": {"row": 207, "column": 9}, "end_point": {"row": 207, "column": 31}}, {"id": 1211, "type": "type_descriptor", "text": "int", "parent": 1210, "children": [1212], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 13}}, {"id": 1212, "type": "primitive_type", "text": "int", "parent": 1211, "children": [], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 13}}, {"id": 1213, "type": "call_expression", "text": "randomrange(0,23)", "parent": 1210, "children": [1214, 1215], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 31}}, {"id": 1214, "type": "identifier", "text": "randomrange", "parent": 1213, "children": [], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 25}}, {"id": 1215, "type": "argument_list", "text": "(0,23)", "parent": 1213, "children": [1216, 1217], "start_point": {"row": 207, "column": 25}, "end_point": {"row": 207, "column": 31}}, {"id": 1216, "type": "number_literal", "text": "0", "parent": 1215, "children": [], "start_point": {"row": 207, "column": 26}, "end_point": {"row": 207, "column": 27}}, {"id": 1217, "type": "number_literal", "text": "23", "parent": 1215, "children": [], "start_point": {"row": 207, "column": 28}, "end_point": {"row": 207, "column": 30}}, {"id": 1218, "type": "assignment_expression", "text": "minute \t= (int)randomrange(0,59)", "parent": 1084, "children": [1219, 1220, 1221], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 33}}, {"id": 1219, "type": "identifier", "text": "minute", "parent": 1218, "children": [], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 7}}, {"id": 1220, "type": "=", "text": "=", "parent": 1218, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 10}}, {"id": 1221, "type": "cast_expression", "text": "(int)randomrange(0,59)", "parent": 1218, "children": [1222, 1224], "start_point": {"row": 208, "column": 11}, "end_point": {"row": 208, "column": 33}}, {"id": 1222, "type": "type_descriptor", "text": "int", "parent": 1221, "children": [1223], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 15}}, {"id": 1223, "type": "primitive_type", "text": "int", "parent": 1222, "children": [], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 15}}, {"id": 1224, "type": "call_expression", "text": "randomrange(0,59)", "parent": 1221, "children": [1225, 1226], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 33}}, {"id": 1225, "type": "identifier", "text": "randomrange", "parent": 1224, "children": [], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 27}}, {"id": 1226, "type": "argument_list", "text": "(0,59)", "parent": 1224, "children": [1227, 1228], "start_point": {"row": 208, "column": 27}, "end_point": {"row": 208, "column": 33}}, {"id": 1227, "type": "number_literal", "text": "0", "parent": 1226, "children": [], "start_point": {"row": 208, "column": 28}, "end_point": {"row": 208, "column": 29}}, {"id": 1228, "type": "number_literal", "text": "59", "parent": 1226, "children": [], "start_point": {"row": 208, "column": 30}, "end_point": {"row": 208, "column": 32}}, {"id": 1229, "type": "assignment_expression", "text": "second \t= (int)randomrange(0,59)", "parent": 1084, "children": [1230, 1231, 1232], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 33}}, {"id": 1230, "type": "identifier", "text": "second", "parent": 1229, "children": [], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 7}}, {"id": 1231, "type": "=", "text": "=", "parent": 1229, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 10}}, {"id": 1232, "type": "cast_expression", "text": "(int)randomrange(0,59)", "parent": 1229, "children": [1233, 1235], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 33}}, {"id": 1233, "type": "type_descriptor", "text": "int", "parent": 1232, "children": [1234], "start_point": {"row": 209, "column": 12}, "end_point": {"row": 209, "column": 15}}, {"id": 1234, "type": "primitive_type", "text": "int", "parent": 1233, "children": [], "start_point": {"row": 209, "column": 12}, "end_point": {"row": 209, "column": 15}}, {"id": 1235, "type": "call_expression", "text": "randomrange(0,59)", "parent": 1232, "children": [1236, 1237], "start_point": {"row": 209, "column": 16}, "end_point": {"row": 209, "column": 33}}, {"id": 1236, "type": "identifier", "text": "randomrange", "parent": 1235, "children": [], "start_point": {"row": 209, "column": 16}, "end_point": {"row": 209, "column": 27}}, {"id": 1237, "type": "argument_list", "text": "(0,59)", "parent": 1235, "children": [1238, 1239], "start_point": {"row": 209, "column": 27}, "end_point": {"row": 209, "column": 33}}, {"id": 1238, "type": "number_literal", "text": "0", "parent": 1237, "children": [], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 29}}, {"id": 1239, "type": "number_literal", "text": "59", "parent": 1237, "children": [], "start_point": {"row": 209, "column": 30}, "end_point": {"row": 209, "column": 32}}, {"id": 1240, "type": "call_expression", "text": "printf(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second)", "parent": 1084, "children": [1241, 1242], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 74}}, {"id": 1241, "type": "identifier", "text": "printf", "parent": 1240, "children": [], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 7}}, {"id": 1242, "type": "argument_list", "text": "(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second)", "parent": 1240, "children": [1243, 1244, 1245, 1246, 1247, 1248, 1249], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 74}}, {"id": 1243, "type": "string_literal", "text": "\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\"", "parent": 1242, "children": [], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 39}}, {"id": 1244, "type": "identifier", "text": "year", "parent": 1242, "children": [], "start_point": {"row": 211, "column": 40}, "end_point": {"row": 211, "column": 44}}, {"id": 1245, "type": "identifier", "text": "month", "parent": 1242, "children": [], "start_point": {"row": 211, "column": 45}, "end_point": {"row": 211, "column": 50}}, {"id": 1246, "type": "identifier", "text": "day", "parent": 1242, "children": [], "start_point": {"row": 211, "column": 51}, "end_point": {"row": 211, "column": 54}}, {"id": 1247, "type": "identifier", "text": "hour", "parent": 1242, "children": [], "start_point": {"row": 211, "column": 55}, "end_point": {"row": 211, "column": 59}}, {"id": 1248, "type": "identifier", "text": "minute", "parent": 1242, "children": [], "start_point": {"row": 211, "column": 60}, "end_point": {"row": 211, "column": 66}}, {"id": 1249, "type": "identifier", "text": "second", "parent": 1242, "children": [], "start_point": {"row": 211, "column": 67}, "end_point": {"row": 211, "column": 73}}, {"id": 1250, "type": "break_statement", "text": "break;", "parent": 1084, "children": [1251], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 7}}, {"id": 1251, "type": "break", "text": "break", "parent": 1250, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 6}}, {"id": 1252, "type": "case_statement", "text": "case NUMERIC:\n //printf(\"column_type[%d] = NUMERIC\\n\",j+1);\n\tprintf(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;", "parent": 986, "children": [1253, 1254, 1271], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 216, "column": 8}}, {"id": 1253, "type": "case", "text": "case", "parent": 1252, "children": [], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 213, "column": 10}}, {"id": 1254, "type": "identifier", "text": "NUMERIC", "parent": 1252, "children": [], "start_point": {"row": 213, "column": 11}, "end_point": {"row": 213, "column": 18}}, {"id": 1255, "type": "call_expression", "text": "printf(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]))", "parent": 1252, "children": [1256, 1257], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 66}}, {"id": 1256, "type": "identifier", "text": "printf", "parent": 1255, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 7}}, {"id": 1257, "type": "argument_list", "text": "(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]))", "parent": 1255, "children": [1258, 1259], "start_point": {"row": 215, "column": 7}, "end_point": {"row": 215, "column": 66}}, {"id": 1258, "type": "string_literal", "text": "\"%.6f\"", "parent": 1257, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 14}}, {"id": 1259, "type": "cast_expression", "text": "(float)randomrange(column_mins[j],column_maxes[j])", "parent": 1257, "children": [1260, 1262], "start_point": {"row": 215, "column": 15}, "end_point": {"row": 215, "column": 65}}, {"id": 1260, "type": "type_descriptor", "text": "float", "parent": 1259, "children": [1261], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 21}}, {"id": 1261, "type": "primitive_type", "text": "float", "parent": 1260, "children": [], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 21}}, {"id": 1262, "type": "call_expression", "text": "randomrange(column_mins[j],column_maxes[j])", "parent": 1259, "children": [1263, 1264], "start_point": {"row": 215, "column": 22}, "end_point": {"row": 215, "column": 65}}, {"id": 1263, "type": "identifier", "text": "randomrange", "parent": 1262, "children": [], "start_point": {"row": 215, "column": 22}, "end_point": {"row": 215, "column": 33}}, {"id": 1264, "type": "argument_list", "text": "(column_mins[j],column_maxes[j])", "parent": 1262, "children": [1265, 1268], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 65}}, {"id": 1265, "type": "subscript_expression", "text": "column_mins[j]", "parent": 1264, "children": [1266, 1267], "start_point": {"row": 215, "column": 34}, "end_point": {"row": 215, "column": 48}}, {"id": 1266, "type": "identifier", "text": "column_mins", "parent": 1265, "children": [], "start_point": {"row": 215, "column": 34}, "end_point": {"row": 215, "column": 45}}, {"id": 1267, "type": "identifier", "text": "j", "parent": 1265, "children": [], "start_point": {"row": 215, "column": 46}, "end_point": {"row": 215, "column": 47}}, {"id": 1268, "type": "subscript_expression", "text": "column_maxes[j]", "parent": 1264, "children": [1269, 1270], "start_point": {"row": 215, "column": 49}, "end_point": {"row": 215, "column": 64}}, {"id": 1269, "type": "identifier", "text": "column_maxes", "parent": 1268, "children": [], "start_point": {"row": 215, "column": 49}, "end_point": {"row": 215, "column": 61}}, {"id": 1270, "type": "identifier", "text": "j", "parent": 1268, "children": [], "start_point": {"row": 215, "column": 62}, "end_point": {"row": 215, "column": 63}}, {"id": 1271, "type": "break_statement", "text": "break;", "parent": 1252, "children": [1272], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 7}}, {"id": 1272, "type": "break", "text": "break", "parent": 1271, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 6}}, {"id": 1273, "type": "if_statement", "text": "if (j != (numcols-1)) printf(\"|\");", "parent": 974, "children": [1274], "start_point": {"row": 218, "column": 4}, "end_point": {"row": 218, "column": 38}}, {"id": 1274, "type": "parenthesized_expression", "text": "(j != (numcols-1))", "parent": 1273, "children": [1275], "start_point": {"row": 218, "column": 7}, "end_point": {"row": 218, "column": 25}}, {"id": 1275, "type": "binary_expression", "text": "j != (numcols-1)", "parent": 1274, "children": [1276, 1277, 1278], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 218, "column": 24}}, {"id": 1276, "type": "identifier", "text": "j", "parent": 1275, "children": [], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 218, "column": 9}}, {"id": 1277, "type": "!=", "text": "!=", "parent": 1275, "children": [], "start_point": {"row": 218, "column": 10}, "end_point": {"row": 218, "column": 12}}, {"id": 1278, "type": "parenthesized_expression", "text": "(numcols-1)", "parent": 1275, "children": [1279], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 24}}, {"id": 1279, "type": "binary_expression", "text": "numcols-1", "parent": 1278, "children": [1280, 1281, 1282], "start_point": {"row": 218, "column": 14}, "end_point": {"row": 218, "column": 23}}, {"id": 1280, "type": "identifier", "text": "numcols", "parent": 1279, "children": [], "start_point": {"row": 218, "column": 14}, "end_point": {"row": 218, "column": 21}}, {"id": 1281, "type": "-", "text": "-", "parent": 1279, "children": [], "start_point": {"row": 218, "column": 21}, "end_point": {"row": 218, "column": 22}}, {"id": 1282, "type": "number_literal", "text": "1", "parent": 1279, "children": [], "start_point": {"row": 218, "column": 22}, "end_point": {"row": 218, "column": 23}}, {"id": 1283, "type": "call_expression", "text": "printf(\"|\")", "parent": 1273, "children": [1284, 1285], "start_point": {"row": 218, "column": 26}, "end_point": {"row": 218, "column": 37}}, {"id": 1284, "type": "identifier", "text": "printf", "parent": 1283, "children": [], "start_point": {"row": 218, "column": 26}, "end_point": {"row": 218, "column": 32}}, {"id": 1285, "type": "argument_list", "text": "(\"|\")", "parent": 1283, "children": [1286], "start_point": {"row": 218, "column": 32}, "end_point": {"row": 218, "column": 37}}, {"id": 1286, "type": "string_literal", "text": "\"|\"", "parent": 1285, "children": [], "start_point": {"row": 218, "column": 33}, "end_point": {"row": 218, "column": 36}}, {"id": 1287, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 962, "children": [1288, 1289], "start_point": {"row": 221, "column": 3}, "end_point": {"row": 221, "column": 15}}, {"id": 1288, "type": "identifier", "text": "printf", "parent": 1287, "children": [], "start_point": {"row": 221, "column": 3}, "end_point": {"row": 221, "column": 9}}, {"id": 1289, "type": "argument_list", "text": "(\"\\n\")", "parent": 1287, "children": [1290], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 15}}, {"id": 1290, "type": "string_literal", "text": "\"\\n\"", "parent": 1289, "children": [1291], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 14}}, {"id": 1291, "type": "escape_sequence", "text": "\\n", "parent": 1290, "children": [], "start_point": {"row": 221, "column": 11}, "end_point": {"row": 221, "column": 13}}, {"id": 1292, "type": "function_definition", "text": "int getyear(int date) {\n return date/10000;\n}", "parent": null, "children": [1293, 1294], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 229, "column": 1}}, {"id": 1293, "type": "primitive_type", "text": "int", "parent": 1292, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 3}}, {"id": 1294, "type": "function_declarator", "text": "getyear(int date)", "parent": 1292, "children": [1295, 1296], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 21}}, {"id": 1295, "type": "identifier", "text": "getyear", "parent": 1294, "children": [], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 11}}, {"id": 1296, "type": "parameter_list", "text": "(int date)", "parent": 1294, "children": [1297], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 21}}, {"id": 1297, "type": "parameter_declaration", "text": "int date", "parent": 1296, "children": [1298, 1299], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 20}}, {"id": 1298, "type": "primitive_type", "text": "int", "parent": 1297, "children": [], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 15}}, {"id": 1299, "type": "identifier", "text": "date", "parent": 1297, "children": [], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 20}}, {"id": 1300, "type": "return_statement", "text": "return date/10000;", "parent": 1292, "children": [1301], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 20}}, {"id": 1301, "type": "binary_expression", "text": "date/10000", "parent": 1300, "children": [1302, 1303, 1304], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 19}}, {"id": 1302, "type": "identifier", "text": "date", "parent": 1301, "children": [], "start_point": {"row": 228, "column": 9}, "end_point": {"row": 228, "column": 13}}, {"id": 1303, "type": "/", "text": "/", "parent": 1301, "children": [], "start_point": {"row": 228, "column": 13}, "end_point": {"row": 228, "column": 14}}, {"id": 1304, "type": "number_literal", "text": "10000", "parent": 1301, "children": [], "start_point": {"row": 228, "column": 14}, "end_point": {"row": 228, "column": 19}}, {"id": 1305, "type": "function_definition", "text": "int getmonth(int date) {\n return (date-10000*getyear(date))/100;\n}", "parent": null, "children": [1306, 1307], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 233, "column": 1}}, {"id": 1306, "type": "primitive_type", "text": "int", "parent": 1305, "children": [], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 231, "column": 3}}, {"id": 1307, "type": "function_declarator", "text": "getmonth(int date)", "parent": 1305, "children": [1308, 1309], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 22}}, {"id": 1308, "type": "identifier", "text": "getmonth", "parent": 1307, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 12}}, {"id": 1309, "type": "parameter_list", "text": "(int date)", "parent": 1307, "children": [1310], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 22}}, {"id": 1310, "type": "parameter_declaration", "text": "int date", "parent": 1309, "children": [1311, 1312], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 21}}, {"id": 1311, "type": "primitive_type", "text": "int", "parent": 1310, "children": [], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 16}}, {"id": 1312, "type": "identifier", "text": "date", "parent": 1310, "children": [], "start_point": {"row": 231, "column": 17}, "end_point": {"row": 231, "column": 21}}, {"id": 1313, "type": "return_statement", "text": "return (date-10000*getyear(date))/100;", "parent": 1305, "children": [1314], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 40}}, {"id": 1314, "type": "binary_expression", "text": "(date-10000*getyear(date))/100", "parent": 1313, "children": [1315, 1326, 1327], "start_point": {"row": 232, "column": 9}, "end_point": {"row": 232, "column": 39}}, {"id": 1315, "type": "parenthesized_expression", "text": "(date-10000*getyear(date))", "parent": 1314, "children": [1316], "start_point": {"row": 232, "column": 9}, "end_point": {"row": 232, "column": 35}}, {"id": 1316, "type": "binary_expression", "text": "date-10000*getyear(date)", "parent": 1315, "children": [1317, 1318, 1319], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 34}}, {"id": 1317, "type": "identifier", "text": "date", "parent": 1316, "children": [], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 14}}, {"id": 1318, "type": "-", "text": "-", "parent": 1316, "children": [], "start_point": {"row": 232, "column": 14}, "end_point": {"row": 232, "column": 15}}, {"id": 1319, "type": "binary_expression", "text": "10000*getyear(date)", "parent": 1316, "children": [1320, 1321, 1322], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 34}}, {"id": 1320, "type": "number_literal", "text": "10000", "parent": 1319, "children": [], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 20}}, {"id": 1321, "type": "*", "text": "*", "parent": 1319, "children": [], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 21}}, {"id": 1322, "type": "call_expression", "text": "getyear(date)", "parent": 1319, "children": [1323, 1324], "start_point": {"row": 232, "column": 21}, "end_point": {"row": 232, "column": 34}}, {"id": 1323, "type": "identifier", "text": "getyear", "parent": 1322, "children": [], "start_point": {"row": 232, "column": 21}, "end_point": {"row": 232, "column": 28}}, {"id": 1324, "type": "argument_list", "text": "(date)", "parent": 1322, "children": [1325], "start_point": {"row": 232, "column": 28}, "end_point": {"row": 232, "column": 34}}, {"id": 1325, "type": "identifier", "text": "date", "parent": 1324, "children": [], "start_point": {"row": 232, "column": 29}, "end_point": {"row": 232, "column": 33}}, {"id": 1326, "type": "/", "text": "/", "parent": 1314, "children": [], "start_point": {"row": 232, "column": 35}, "end_point": {"row": 232, "column": 36}}, {"id": 1327, "type": "number_literal", "text": "100", "parent": 1314, "children": [], "start_point": {"row": 232, "column": 36}, "end_point": {"row": 232, "column": 39}}, {"id": 1328, "type": "function_definition", "text": "int getday(int date) {\n return (date-10000*getyear(date)-100*getmonth(date));\n}", "parent": null, "children": [1329, 1330], "start_point": {"row": 235, "column": 0}, "end_point": {"row": 237, "column": 1}}, {"id": 1329, "type": "primitive_type", "text": "int", "parent": 1328, "children": [], "start_point": {"row": 235, "column": 0}, "end_point": {"row": 235, "column": 3}}, {"id": 1330, "type": "function_declarator", "text": "getday(int date)", "parent": 1328, "children": [1331, 1332], "start_point": {"row": 235, "column": 4}, "end_point": {"row": 235, "column": 20}}, {"id": 1331, "type": "identifier", "text": "getday", "parent": 1330, "children": [], "start_point": {"row": 235, "column": 4}, "end_point": {"row": 235, "column": 10}}, {"id": 1332, "type": "parameter_list", "text": "(int date)", "parent": 1330, "children": [1333], "start_point": {"row": 235, "column": 10}, "end_point": {"row": 235, "column": 20}}, {"id": 1333, "type": "parameter_declaration", "text": "int date", "parent": 1332, "children": [1334, 1335], "start_point": {"row": 235, "column": 11}, "end_point": {"row": 235, "column": 19}}, {"id": 1334, "type": "primitive_type", "text": "int", "parent": 1333, "children": [], "start_point": {"row": 235, "column": 11}, "end_point": {"row": 235, "column": 14}}, {"id": 1335, "type": "identifier", "text": "date", "parent": 1333, "children": [], "start_point": {"row": 235, "column": 15}, "end_point": {"row": 235, "column": 19}}, {"id": 1336, "type": "return_statement", "text": "return (date-10000*getyear(date)-100*getmonth(date));", "parent": 1328, "children": [1337], "start_point": {"row": 236, "column": 2}, "end_point": {"row": 236, "column": 55}}, {"id": 1337, "type": "parenthesized_expression", "text": "(date-10000*getyear(date)-100*getmonth(date))", "parent": 1336, "children": [1338], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 54}}, {"id": 1338, "type": "binary_expression", "text": "date-10000*getyear(date)-100*getmonth(date)", "parent": 1337, "children": [1339, 1349, 1350], "start_point": {"row": 236, "column": 10}, "end_point": {"row": 236, "column": 53}}, {"id": 1339, "type": "binary_expression", "text": "date-10000*getyear(date)", "parent": 1338, "children": [1340, 1341, 1342], "start_point": {"row": 236, "column": 10}, "end_point": {"row": 236, "column": 34}}, {"id": 1340, "type": "identifier", "text": "date", "parent": 1339, "children": [], "start_point": {"row": 236, "column": 10}, "end_point": {"row": 236, "column": 14}}, {"id": 1341, "type": "-", "text": "-", "parent": 1339, "children": [], "start_point": {"row": 236, "column": 14}, "end_point": {"row": 236, "column": 15}}, {"id": 1342, "type": "binary_expression", "text": "10000*getyear(date)", "parent": 1339, "children": [1343, 1344, 1345], "start_point": {"row": 236, "column": 15}, "end_point": {"row": 236, "column": 34}}, {"id": 1343, "type": "number_literal", "text": "10000", "parent": 1342, "children": [], "start_point": {"row": 236, "column": 15}, "end_point": {"row": 236, "column": 20}}, {"id": 1344, "type": "*", "text": "*", "parent": 1342, "children": [], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 21}}, {"id": 1345, "type": "call_expression", "text": "getyear(date)", "parent": 1342, "children": [1346, 1347], "start_point": {"row": 236, "column": 21}, "end_point": {"row": 236, "column": 34}}, {"id": 1346, "type": "identifier", "text": "getyear", "parent": 1345, "children": [], "start_point": {"row": 236, "column": 21}, "end_point": {"row": 236, "column": 28}}, {"id": 1347, "type": "argument_list", "text": "(date)", "parent": 1345, "children": [1348], "start_point": {"row": 236, "column": 28}, "end_point": {"row": 236, "column": 34}}, {"id": 1348, "type": "identifier", "text": "date", "parent": 1347, "children": [], "start_point": {"row": 236, "column": 29}, "end_point": {"row": 236, "column": 33}}, {"id": 1349, "type": "-", "text": "-", "parent": 1338, "children": [], "start_point": {"row": 236, "column": 34}, "end_point": {"row": 236, "column": 35}}, {"id": 1350, "type": "binary_expression", "text": "100*getmonth(date)", "parent": 1338, "children": [1351, 1352, 1353], "start_point": {"row": 236, "column": 35}, "end_point": {"row": 236, "column": 53}}, {"id": 1351, "type": "number_literal", "text": "100", "parent": 1350, "children": [], "start_point": {"row": 236, "column": 35}, "end_point": {"row": 236, "column": 38}}, {"id": 1352, "type": "*", "text": "*", "parent": 1350, "children": [], "start_point": {"row": 236, "column": 38}, "end_point": {"row": 236, "column": 39}}, {"id": 1353, "type": "call_expression", "text": "getmonth(date)", "parent": 1350, "children": [1354, 1355], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 53}}, {"id": 1354, "type": "identifier", "text": "getmonth", "parent": 1353, "children": [], "start_point": {"row": 236, "column": 39}, "end_point": {"row": 236, "column": 47}}, {"id": 1355, "type": "argument_list", "text": "(date)", "parent": 1353, "children": [1356], "start_point": {"row": 236, "column": 47}, "end_point": {"row": 236, "column": 53}}, {"id": 1356, "type": "identifier", "text": "date", "parent": 1355, "children": [], "start_point": {"row": 236, "column": 48}, "end_point": {"row": 236, "column": 52}}]}, "node_categories": {"declarations": {"functions": [34, 42, 50, 58, 87, 89, 890, 892, 1292, 1294, 1305, 1307, 1328, 1330], "variables": [32, 37, 40, 45, 48, 53, 56, 61, 66, 69, 72, 77, 82, 92, 95, 102, 106, 114, 117, 120, 125, 128, 133, 141, 181, 895, 900, 903, 906, 911, 916, 921, 924, 930, 938, 943, 948, 955, 1297, 1310, 1333], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [177, 187, 188, 189, 190, 196, 201, 204, 209, 210, 211, 215, 218, 225, 230, 233, 238, 239, 240, 243, 247, 251, 256, 259, 264, 271, 277, 283, 289, 290, 291, 292, 304, 309, 311, 320, 321, 325, 328, 330, 334, 336, 337, 341, 346, 349, 350, 355, 358, 360, 361, 365, 366, 371, 375, 379, 386, 392, 398, 408, 411, 414, 417, 418, 422, 425, 427, 433, 436, 437, 441, 448, 449, 457, 458, 465, 467, 468, 472, 477, 480, 481, 486, 489, 491, 492, 496, 497, 502, 503, 504, 508, 513, 522, 523, 527, 530, 532, 538, 539, 546, 548, 549, 553, 558, 561, 562, 567, 570, 572, 573, 577, 578, 587, 593, 599, 605, 611, 617, 621, 626, 632, 638, 642, 647, 653, 659, 665, 671, 677, 683, 689, 695, 701, 707, 713, 719, 725, 731, 737, 743, 749, 753, 758, 764, 770, 774, 779, 785, 791, 795, 800, 806, 812, 818, 824, 830, 836, 842, 848, 852, 857, 863, 869, 873, 877, 886, 967, 971, 979, 983, 988, 989, 995, 999, 1002, 1005, 1008, 1019, 1022, 1025, 1028, 1036, 1040, 1046, 1049, 1053, 1054, 1059, 1063, 1064, 1069, 1070, 1073, 1074, 1078, 1090, 1093, 1099, 1102, 1108, 1111, 1117, 1120, 1126, 1129, 1135, 1138, 1144, 1147, 1155, 1158, 1166, 1169, 1175, 1176, 1183, 1186, 1188, 1197, 1200, 1202, 1210, 1213, 1221, 1224, 1232, 1235, 1240, 1255, 1259, 1262, 1265, 1268, 1274, 1275, 1278, 1279, 1283, 1287, 1301, 1314, 1315, 1316, 1319, 1322, 1337, 1338, 1339, 1342, 1345, 1350, 1353], "assignments": [212, 263, 270, 276, 282, 301, 308, 333, 370, 378, 385, 391, 397, 404, 430, 454, 464, 505, 535, 545, 582, 586, 592, 598, 604, 610, 616, 625, 631, 637, 646, 652, 658, 664, 670, 676, 682, 688, 694, 700, 706, 712, 718, 724, 730, 736, 742, 748, 757, 763, 769, 778, 784, 790, 799, 805, 811, 817, 823, 829, 835, 841, 847, 856, 862, 868, 963, 975, 1016, 1032, 1043, 1087, 1096, 1105, 1114, 1123, 1132, 1141, 1152, 1163, 1180, 1194, 1207, 1218, 1229], "loops": [288, 403, 501, 962, 974, 1031], "conditionals": [14, 18, 22, 26, 30, 35, 39, 43, 47, 51, 55, 59, 62, 65, 67, 68, 71, 76, 81, 86, 90, 94, 101, 104, 105, 109, 110, 113, 115, 116, 118, 119, 121, 124, 127, 131, 136, 139, 145, 178, 182, 185, 186, 191, 197, 202, 205, 208, 213, 216, 219, 226, 231, 234, 237, 241, 244, 248, 252, 257, 260, 265, 266, 272, 273, 278, 279, 284, 285, 293, 295, 296, 297, 302, 305, 307, 310, 312, 322, 323, 326, 329, 331, 332, 338, 339, 347, 354, 356, 362, 363, 364, 367, 368, 372, 373, 376, 377, 380, 381, 387, 388, 393, 394, 399, 400, 405, 409, 412, 413, 415, 419, 420, 423, 426, 428, 429, 431, 434, 438, 439, 440, 446, 447, 450, 455, 459, 461, 469, 470, 478, 485, 487, 493, 494, 495, 498, 499, 506, 509, 518, 524, 525, 528, 531, 533, 534, 536, 540, 542, 550, 551, 559, 566, 568, 574, 575, 576, 579, 580, 583, 588, 591, 594, 600, 606, 609, 612, 618, 627, 630, 633, 639, 648, 651, 654, 660, 666, 669, 672, 678, 684, 687, 690, 696, 702, 705, 708, 714, 720, 723, 726, 732, 738, 741, 744, 750, 759, 762, 765, 771, 780, 783, 786, 792, 801, 804, 807, 813, 819, 822, 825, 831, 837, 840, 843, 849, 858, 861, 864, 870, 878, 880, 881, 882, 883, 884, 885, 887, 893, 896, 899, 901, 902, 905, 910, 915, 920, 923, 926, 927, 928, 929, 932, 933, 934, 935, 936, 937, 940, 941, 942, 945, 946, 947, 952, 954, 959, 961, 964, 968, 970, 972, 976, 980, 982, 984, 986, 987, 990, 991, 992, 993, 994, 996, 1003, 1006, 1007, 1009, 1010, 1013, 1014, 1015, 1017, 1023, 1026, 1027, 1029, 1030, 1033, 1037, 1039, 1041, 1044, 1050, 1055, 1056, 1060, 1065, 1066, 1067, 1068, 1071, 1075, 1079, 1084, 1085, 1086, 1088, 1091, 1094, 1095, 1097, 1100, 1103, 1104, 1106, 1109, 1112, 1113, 1115, 1118, 1121, 1122, 1124, 1127, 1130, 1131, 1133, 1136, 1139, 1140, 1142, 1148, 1150, 1151, 1153, 1159, 1161, 1162, 1164, 1170, 1172, 1173, 1174, 1177, 1179, 1181, 1184, 1187, 1189, 1192, 1195, 1198, 1201, 1203, 1206, 1208, 1214, 1219, 1225, 1230, 1236, 1241, 1244, 1245, 1246, 1247, 1248, 1249, 1252, 1253, 1254, 1256, 1263, 1266, 1267, 1269, 1270, 1273, 1276, 1280, 1284, 1288, 1295, 1299, 1302, 1308, 1312, 1317, 1323, 1325, 1331, 1335, 1340, 1346, 1348, 1354, 1356], "returns": [1300, 1313, 1336], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 132, 137, 140, 146, 149, 153, 156, 160, 164, 167, 170, 173, 180, 193, 195, 199, 203, 207, 220, 221, 228, 232, 236, 245, 246, 250, 254, 258, 262, 275, 281, 287, 314, 316, 390, 396, 402, 407, 463, 544, 585, 589, 595, 597, 601, 603, 607, 613, 615, 619, 622, 624, 628, 634, 636, 640, 643, 645, 649, 655, 657, 661, 663, 667, 673, 675, 679, 681, 685, 691, 693, 697, 699, 703, 709, 711, 715, 717, 721, 727, 729, 733, 735, 739, 745, 747, 751, 754, 756, 760, 766, 768, 772, 775, 777, 781, 787, 789, 793, 796, 798, 802, 808, 810, 814, 816, 820, 826, 828, 832, 834, 838, 844, 846, 850, 853, 855, 859, 865, 867, 871, 874, 876, 889, 966, 978, 998, 1035, 1052, 1058, 1062, 1077, 1081, 1191, 1205, 1216, 1217, 1227, 1228, 1238, 1239, 1243, 1258, 1282, 1286, 1290, 1304, 1320, 1327, 1343, 1351], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "getyear(int date)"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "getmonth(int date)"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "getday(int date)"}, {"node_id": 58, "universal_type": "function", "name": "*column_types,", "text_snippet": "table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, dou"}, {"node_id": 87, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char **argv) {\n \n int i,length;\n\n char string[MAXLINESIZE], *loc;\n Stringlist"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char **argv)"}, {"node_id": 890, "universal_type": "function", "name": "table_gen", "text_snippet": "void table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins"}, {"node_id": 892, "universal_type": "function", "name": "*column_types,", "text_snippet": "table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, dou"}, {"node_id": 1292, "universal_type": "function", "name": "getyear", "text_snippet": "int getyear(int date) {\n return date/10000;\n}"}, {"node_id": 1294, "universal_type": "function", "name": "unknown", "text_snippet": "getyear(int date)"}, {"node_id": 1305, "universal_type": "function", "name": "getmonth", "text_snippet": "int getmonth(int date) {\n return (date-10000*getyear(date))/100;\n}"}, {"node_id": 1307, "universal_type": "function", "name": "unknown", "text_snippet": "getmonth(int date)"}, {"node_id": 1328, "universal_type": "function", "name": "getday", "text_snippet": "int getday(int date) {\n return (date-10000*getyear(date)-100*getmonth(date));\n}"}, {"node_id": 1330, "universal_type": "function", "name": "unknown", "text_snippet": "getday(int date)"}], "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 <string.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"utils.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#include \"utils.h\"\n\n#define INTEGER 0\n#define VARCHAR 1\n#define TIMESTAMP 2\n#define NUMERIC 3\n\n#define MAXLINESIZE 1024\n\nint getyear(int date);\nint getmonth(int date);\nint getday(int date);\n\nvoid table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes);\n\nint main(int argc, char **argv) {\n \n int i,length;\n\n char string[MAXLINESIZE], *loc;\n Stringlist slist;\n Stringlist wlist;\n\n long long numrows;\n\n int numcols;\n int col_types[100];\n double col_mins[100],col_maxes[100];\n\n char punctuation[8] = { ' ', '.', '/', '\\\\', '(', ')', ',', '\\0' };\n\n srand(12);\n\n FILE *infile;\n\n if ((argc-1) < 2) {\n printf(\"usage: %s text_seed_input_file_name number_of_rows_to_generate\\n\",argv[0]);\n exit(1);\n }\n\n if ( (infile=fopen(argv[1],\"r\")) == NULL ) {\n printf(\"error opening file %s for reading\\n\",argv[1]);\n exit(2);\n } \n\n if (sscanf(argv[2],\"%lli\",&numrows) != 1) {\n printf(\"error scanning number of rows from command line: %s\\n\",argv[2]);\n exit(2);\n } \n //printf(\"Number of rows to be generated: %ld\\n\",numrows);\n //exit(0);\n\n slist.list=NULL; slist.used_size=0; slist.chunksize=100; slist.alloc_size=0;\n\n while ( (fgets(string, MAXLINESIZE, infile)) != NULL) {\n\n //Find the number of characters in the string, includes the newline but not the \\0\n length = strlen(string);\n //Trim off the trailing newline\n string[length-1]='\\0';\n\n //Ensure that there's sufficient space for another string in the list\n slist.used_size++;\n alloc_more_stringlist(&slist,slist.used_size);\n\n //Allocate space for the length of the string\n *(slist.pos)=(char *)malloc(sizeof(char)*length);\n\n //Copy the string into the list\n strcpy(*(slist.pos),string);\n\n //Increment the string pointer to the next string in the list\n slist.pos++;\n\n }\n\n //Reset the string pointer\n slist.pos = slist.list;\n\n //Initialize the wlist\n wlist.list=NULL; wlist.used_size=0; wlist.chunksize=100; wlist.alloc_size=0;\n\n //Parse the string list into words\n for (i=0; i<slist.used_size; i++) {\n\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n\n loc = strtok(slist.list[i],(char *)punctuation);\n\n if (loc != NULL) {\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n\n while ( (loc = strtok(NULL,(char *)punctuation)) != NULL) {\n //Ensure that there's sufficient space for another word in the list\n wlist.used_size++;\n alloc_more_stringlist(&wlist,wlist.used_size);\n //Allocate space for the length of the word\n length = strlen(loc)+1;\n *(wlist.pos)=(char *)malloc(sizeof(char)*length);\n strcpy(*(wlist.pos),loc);\n wlist.pos++;\n }\n }\n\n /*\n //Print the wordlist\n for (i=0; i<wlist.used_size; i++) {\n //printf(\"String: \\\"%s\\\"\\n\",*(slist.pos));\n //slist.pos++;\n printf(\"String: \\\"%s\\\"\\n\",wlist.list[(int)randomrange(0,wlist.used_size-1)]);\n //printf(\"String: \\\"%s\\\"\\n\",wlist.list[i]);\n }\n */\n\n /*\n * Setup the table characteristics\n * \tnumcols\t\t= number of columns\n *\tarrays of size numcols:\n * \tcolumn_types\t= type of column, mapped to integers:\n *\t\t\tINTEGER\n *\t\t\tVARCHAR\n *\t\t\tNUMERIC\n *\t\t\tTIMESTAMP\n *\t\tcolumn_mins \t= max value of columns\n *\t\tcolumn_maxes\t= max value of columns\n */\n\n numcols = 15;\n col_types[0] = TIMESTAMP; col_mins[0] = 20040101; col_maxes[0] = 20041231;\n col_types[1] = VARCHAR; col_mins[1] = 1; col_maxes[1] = 750/100;\n col_types[2] = VARCHAR; col_mins[2] = 1; col_maxes[2] = 100/100;\n col_types[3] = INTEGER; col_mins[3] = 0; col_maxes[3] = 0;\n col_types[4] = INTEGER; col_mins[4] = 1; col_maxes[4] = 40;\n col_types[5] = INTEGER; col_mins[5] = 0; col_maxes[5] = 0;\n col_types[6] = INTEGER; col_mins[6] = 1; col_maxes[6] = 4;\n col_types[7] = NUMERIC; col_mins[7] = 0.02; col_maxes[7] = 0.8;\n col_types[8] = VARCHAR; col_mins[8] = 1; col_maxes[8] = 1500/300;\n col_types[9] = VARCHAR; col_mins[9] = 1; col_maxes[9] = 1500/300;\n col_types[10] = VARCHAR; col_mins[10] = 1; col_maxes[10] = 1500/300;\n col_types[11] = INTEGER; col_mins[11] = 0; col_maxes[11] = 2;\n col_types[12] = INTEGER; col_mins[12] = 0; col_maxes[12] = 4;\n col_types[13] = VARCHAR; col_mins[13] = 1; col_maxes[13] = 1500/300;\n col_types[14] = VARCHAR; col_mins[14] = 1; col_maxes[14] = 1500/300;\n\n\n table_gen(numrows, wlist,numcols,col_types,col_mins,col_maxes); \n\n exit(0);\n\n}\n\nvoid table_gen(long long nrows, Stringlist wlist,int numcols, int *column_types, double *column_mins, double *column_maxes) {\n\n int itemp;\n int i,j,ii, nwords;\n int year, month, day, hour, minute, second;\n int minyear, minmonth, minday;\n int maxyear, maxmonth, maxday;\n\n int leaps[] = LEAPS;\n int nonleaps[] = NONLEAPS;\n\n //printf(\"Number of rows to be generated: %ld\\n\",nrows);\n //exit(0);\n\n for (i=0; i<nrows; i++) {\n\n for (j=0; j<numcols; j++) {\n switch (column_types[j]) {\n case INTEGER:\n //printf(\"column_type[%d] = INTEGER\\n\",j+1);\n\tprintf(\"%d\",(int)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n case VARCHAR:\n //printf(\"column_type[%d] = VARCHAR\\n\",j+1);\n\tnwords = (int)randomrange(column_mins[j],column_maxes[j]);\n\tfor (ii=0; ii<nwords ; ii++) {\n\t itemp = (int)randomrange(0,wlist.used_size-1);\n\t printf(\"%s\",wlist.list[itemp]);\n\t if (ii != (nwords-1)) printf(\" \");\n }\n\tbreak;;\n case TIMESTAMP:\n //printf(\"column_type[%d] = TIMESTAMP\\n\",j+1);\n\tminyear = getyear(column_mins[j]); maxyear = getyear(column_maxes[j]);\n\tminmonth = getmonth(column_mins[j]); maxmonth = getmonth(column_maxes[j]);\n\tminday = getday(column_mins[j]); maxday = getday(column_maxes[j]);\n\n\tyear \t= (int)randomrange(minyear,maxyear);\n\tmonth \t= (int)randomrange(minmonth,maxmonth);\n\tday \t= (int)randomrange(minday,maxday);\n\tif (ISLEAP(year)) {\n\t day = MIN(leaps[month-1],day);\n } else {\n\t day = MIN(nonleaps[month-1],day);\n }\n\thour \t= (int)randomrange(0,23);\n\tminute \t= (int)randomrange(0,59);\n\tsecond \t= (int)randomrange(0,59);\n\n\tprintf(\"%.4d-%.2d-%.2d %.2d:%.2d:%.2d\",year,month,day,hour,minute,second);\n\tbreak;;\n case NUMERIC:\n //printf(\"column_type[%d] = NUMERIC\\n\",j+1);\n\tprintf(\"%.6f\",(float)randomrange(column_mins[j],column_maxes[j]));\n\tbreak;;\n }\n if (j != (numcols-1)) printf(\"|\");\n\n } //End of numcolumns\n printf(\"\\n\");\n\n }\n\n}\n\nint getyear(int date) {\n return date/10000;\n}\n\nint getmonth(int date) {\n return (date-10000*getyear(date))/100;\n}\n\nint getday(int date) {\n return (date-10000*getyear(date)-100*getmonth(date));\n}\n"}
80,414
c
#ifndef DSA_SDK_ACK_MESSAGE_H #define DSA_SDK_ACK_MESSAGE_H #if defined(_MSC_VER) #pragma once #endif #include "base_message.h" namespace dsa { class AckMessage final : public Message { public: AckMessage(const uint8_t* data, size_t size); AckMessage(); void set_ack(int32_t ack) { _ack = ack; }; int32_t get_ack() const { return _ack; } void print_message(std::ostream& os, int32_t rid) const final; protected: int32_t _ack; void update_static_header() final; void write_dynamic_data(uint8_t* data) const final; }; } #endif // DSA_SDK_ACK_MESSAGE_H
26.1
21
(translation_unit) "#ifndef DSA_SDK_ACK_MESSAGE_H\n#define DSA_SDK_ACK_MESSAGE_H\n\n#if defined(_MSC_VER)\n#pragma once\n#endif\n\n#include "base_message.h"\n\nnamespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n};\n}\n\n#endif // DSA_SDK_ACK_MESSAGE_H\n" (preproc_ifdef) "#ifndef DSA_SDK_ACK_MESSAGE_H\n#define DSA_SDK_ACK_MESSAGE_H\n\n#if defined(_MSC_VER)\n#pragma once\n#endif\n\n#include "base_message.h"\n\nnamespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n};\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "DSA_SDK_ACK_MESSAGE_H" (preproc_def) "#define DSA_SDK_ACK_MESSAGE_H\n" (#define) "#define" (identifier) "DSA_SDK_ACK_MESSAGE_H" (preproc_if) "#if defined(_MSC_VER)\n#pragma once\n#endif" (#if) "#if" (preproc_defined) "defined(_MSC_VER)" (defined) "defined" (() "(" (identifier) "_MSC_VER" ()) ")" ( ) "\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (#endif) "#endif" (preproc_include) "#include "base_message.h"\n" (#include) "#include" (string_literal) ""base_message.h"" (") """ (string_content) "base_message.h" (") """ (function_definition) "namespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n};\n}" (type_identifier) "namespace" (identifier) "dsa" (compound_statement) "{\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n};\n}" ({) "{" (declaration) "class AckMessage" (type_identifier) "class" (identifier) "AckMessage" (;) "" (labeled_statement) "final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n}" (statement_identifier) "final" (:) ":" (ERROR) "public Message" (type_identifier) "public" (identifier) "Message" (compound_statement) "{\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n}" ({) "{" (labeled_statement) "public:\n AckMessage(const uint8_t* data, size_t size);" (statement_identifier) "public" (:) ":" (declaration) "AckMessage(const uint8_t* data, size_t size);" (macro_type_specifier) "AckMessage(const uint8_t*" (identifier) "AckMessage" (() "(" (type_descriptor) "const uint8_t*" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) "" (identifier) "data" (,) "," (identifier) "size_t" (ERROR) "size)" (identifier) "size" ()) ")" (;) ";" (expression_statement) "AckMessage();" (call_expression) "AckMessage()" (identifier) "AckMessage" (argument_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "void set_ack(int32_t ack) { _ack = ack; }" (primitive_type) "void" (function_declarator) "set_ack(int32_t ack)" (identifier) "set_ack" (parameter_list) "(int32_t ack)" (() "(" (parameter_declaration) "int32_t ack" (primitive_type) "int32_t" (identifier) "ack" ()) ")" (compound_statement) "{ _ack = ack; }" ({) "{" (expression_statement) "_ack = ack;" (assignment_expression) "_ack = ack" (identifier) "_ack" (=) "=" (identifier) "ack" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "int32_t get_ack() const" (primitive_type) "int32_t" (function_declarator) "get_ack()" (identifier) "get_ack" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return _ack; }" ({) "{" (return_statement) "return _ack;" (return) "return" (identifier) "_ack" (;) ";" (}) "}" (ERROR) "void print_message(std::ostream& os, int32_t rid) const final" (primitive_type) "void" (function_declarator) "print_message(std::ostream& os, int32_t rid) const final" (identifier) "print_message" (parameter_list) "(std::ostream& os, int32_t rid)" (() "(" (parameter_declaration) "std::ostream& os" (type_identifier) "std" (ERROR) "::ostream&" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (identifier) "os" (,) "," (parameter_declaration) "int32_t rid" (primitive_type) "int32_t" (identifier) "rid" ()) ")" (identifier) "const" (identifier) "final" (expression_statement) ";" (;) ";" (labeled_statement) "protected:\n int32_t _ack;" (statement_identifier) "protected" (:) ":" (declaration) "int32_t _ack;" (primitive_type) "int32_t" (identifier) "_ack" (;) ";" (ERROR) "void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final" (primitive_type) "void" (function_declarator) "update_static_header()" (identifier) "update_static_header" (parameter_list) "()" (() "(" ()) ")" (declaration) "final;" (type_identifier) "final" (identifier) "" (;) ";" (primitive_type) "void" (function_declarator) "write_dynamic_data(uint8_t* data) const final" (identifier) "write_dynamic_data" (parameter_list) "(uint8_t* data)" (() "(" (parameter_declaration) "uint8_t* data" (primitive_type) "uint8_t" (pointer_declarator) "* data" (*) "*" (identifier) "data" ()) ")" (identifier) "const" (identifier) "final" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif" (comment) "// DSA_SDK_ACK_MESSAGE_H"
169
6
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 26.1, "nodes": 99, "errors": 0, "source_hash": "e784068601753bcce8cd835a250d68a24d187da1e101abb13afcbfd458d27491", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DSA_SDK_ACK_MESSAGE_H\n#define DSA_SDK_ACK_MESSAGE_H\n\n#if defined(_MSC_VER)\n#pragma once\n#endif\n\n#include \"base_message.h\"\n\nnamespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n};\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 16, 19, 98], "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": "DSA_SDK_ACK_MESSAGE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define DSA_SDK_ACK_MESSAGE_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": "DSA_SDK_ACK_MESSAGE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 29}}, {"id": 6, "type": "preproc_if", "text": "#if defined(_MSC_VER)\n#pragma once\n#endif", "parent": 0, "children": [7, 8, 11, 12, 15], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 7, "type": "#if", "text": "#if", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 8, "type": "preproc_defined", "text": "defined(_MSC_VER)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "defined", "text": "defined", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 11}}, {"id": 10, "type": "identifier", "text": "_MSC_VER", "parent": 8, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 20}}, {"id": 11, "type": "\n", "text": "\n", "parent": 6, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 4, "column": 0}}, {"id": 12, "type": "preproc_call", "text": "#pragma once\n", "parent": 6, "children": [13, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#pragma", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 14, "type": "preproc_arg", "text": "once", "parent": 12, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 15, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 16, "type": "preproc_include", "text": "#include \"base_message.h\"\n", "parent": 0, "children": [17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 18, "type": "string_literal", "text": "\"base_message.h\"", "parent": 16, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 25}}, {"id": 19, "type": "function_definition", "text": "namespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n};\n}", "parent": 0, "children": [20, 21], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 20, "type": "type_identifier", "text": "namespace", "parent": 19, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 21, "type": "identifier", "text": "dsa", "parent": 19, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 13}}, {"id": 22, "type": "declaration", "text": "class AckMessage", "parent": 19, "children": [23], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 16}}, {"id": 23, "type": "identifier", "text": "AckMessage", "parent": 22, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 16}}, {"id": 24, "type": "labeled_statement", "text": "final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n}", "parent": 19, "children": [25, 26], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 25, "column": 1}}, {"id": 25, "type": "statement_identifier", "text": "final", "parent": 24, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 22}}, {"id": 26, "type": "ERROR", "text": "public Message", "parent": 24, "children": [27], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 39}}, {"id": 27, "type": "identifier", "text": "Message", "parent": 26, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 39}}, {"id": 28, "type": "labeled_statement", "text": "public:\n AckMessage(const uint8_t* data, size_t size);", "parent": 24, "children": [29], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 12, "column": 47}}, {"id": 29, "type": "declaration", "text": "AckMessage(const uint8_t* data, size_t size);", "parent": 28, "children": [30, 36, 37, 38], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 47}}, {"id": 30, "type": "macro_type_specifier", "text": "AckMessage(const uint8_t*", "parent": 29, "children": [31, 32], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 27}}, {"id": 31, "type": "identifier", "text": "AckMessage", "parent": 30, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 12}}, {"id": 32, "type": "type_descriptor", "text": "const uint8_t*", "parent": 30, "children": [33, 34], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 27}}, {"id": 33, "type": "primitive_type", "text": "uint8_t", "parent": 32, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 26}}, {"id": 34, "type": "abstract_pointer_declarator", "text": "*", "parent": 32, "children": [35], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 27}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 27}}, {"id": 36, "type": "identifier", "text": "data", "parent": 29, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 32}}, {"id": 37, "type": "identifier", "text": "size_t", "parent": 29, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 40}}, {"id": 38, "type": "ERROR", "text": "size)", "parent": 29, "children": [39], "start_point": {"row": 12, "column": 41}, "end_point": {"row": 12, "column": 46}}, {"id": 39, "type": "identifier", "text": "size", "parent": 38, "children": [], "start_point": {"row": 12, "column": 41}, "end_point": {"row": 12, "column": 45}}, {"id": 40, "type": "call_expression", "text": "AckMessage()", "parent": 24, "children": [41, 42], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 14}}, {"id": 41, "type": "identifier", "text": "AckMessage", "parent": 40, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 12}}, {"id": 42, "type": "argument_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 14}}, {"id": 43, "type": "function_definition", "text": "void set_ack(int32_t ack) { _ack = ack; }", "parent": 24, "children": [44, 45], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 43}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 45, "type": "function_declarator", "text": "set_ack(int32_t ack)", "parent": 43, "children": [46, 47], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 27}}, {"id": 46, "type": "identifier", "text": "set_ack", "parent": 45, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 14}}, {"id": 47, "type": "parameter_list", "text": "(int32_t ack)", "parent": 45, "children": [48], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 27}}, {"id": 48, "type": "parameter_declaration", "text": "int32_t ack", "parent": 47, "children": [49, 50], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 26}}, {"id": 49, "type": "primitive_type", "text": "int32_t", "parent": 48, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 22}}, {"id": 50, "type": "identifier", "text": "ack", "parent": 48, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 26}}, {"id": 51, "type": "assignment_expression", "text": "_ack = ack", "parent": 43, "children": [52, 53, 54], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 40}}, {"id": 52, "type": "identifier", "text": "_ack", "parent": 51, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 34}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 36}}, {"id": 54, "type": "identifier", "text": "ack", "parent": 51, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 40}}, {"id": 55, "type": "ERROR", "text": "int32_t get_ack() const", "parent": 24, "children": [56, 57], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 25}}, {"id": 56, "type": "primitive_type", "text": "int32_t", "parent": 55, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 9}}, {"id": 57, "type": "function_declarator", "text": "get_ack()", "parent": 55, "children": [58, 59], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 19}}, {"id": 58, "type": "identifier", "text": "get_ack", "parent": 57, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 17}}, {"id": 59, "type": "parameter_list", "text": "()", "parent": 57, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 19}}, {"id": 60, "type": "return_statement", "text": "return _ack;", "parent": 24, "children": [61], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 40}}, {"id": 61, "type": "identifier", "text": "_ack", "parent": 60, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 39}}, {"id": 62, "type": "ERROR", "text": "void print_message(std::ostream& os, int32_t rid) const final", "parent": 24, "children": [63, 64], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 63}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 64, "type": "function_declarator", "text": "print_message(std::ostream& os, int32_t rid) const final", "parent": 62, "children": [65, 66, 75], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 63}}, {"id": 65, "type": "identifier", "text": "print_message", "parent": 64, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 20}}, {"id": 66, "type": "parameter_list", "text": "(std::ostream& os, int32_t rid)", "parent": 64, "children": [67, 72], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 51}}, {"id": 67, "type": "parameter_declaration", "text": "std::ostream& os", "parent": 66, "children": [68, 69, 71], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 37}}, {"id": 68, "type": "type_identifier", "text": "std", "parent": 67, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 24}}, {"id": 69, "type": "ERROR", "text": "::ostream&", "parent": 67, "children": [70], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 34}}, {"id": 70, "type": "identifier", "text": "ostream", "parent": 69, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 33}}, {"id": 71, "type": "identifier", "text": "os", "parent": 67, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 37}}, {"id": 72, "type": "parameter_declaration", "text": "int32_t rid", "parent": 66, "children": [73, 74], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 50}}, {"id": 73, "type": "primitive_type", "text": "int32_t", "parent": 72, "children": [], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 46}}, {"id": 74, "type": "identifier", "text": "rid", "parent": 72, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 50}}, {"id": 75, "type": "identifier", "text": "final", "parent": 64, "children": [], "start_point": {"row": 18, "column": 58}, "end_point": {"row": 18, "column": 63}}, {"id": 76, "type": "labeled_statement", "text": "protected:\n int32_t _ack;", "parent": 24, "children": [77], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 21, "column": 15}}, {"id": 77, "type": "declaration", "text": "int32_t _ack;", "parent": 76, "children": [78, 79], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 15}}, {"id": 78, "type": "primitive_type", "text": "int32_t", "parent": 77, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 9}}, {"id": 79, "type": "identifier", "text": "_ack", "parent": 77, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 80, "type": "ERROR", "text": "void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final", "parent": 24, "children": [81, 82, 85, 88, 89], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 24, "column": 52}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 82, "type": "function_declarator", "text": "update_static_header()", "parent": 80, "children": [83, 84], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 29}}, {"id": 83, "type": "identifier", "text": "update_static_header", "parent": 82, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 27}}, {"id": 84, "type": "parameter_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 29}}, {"id": 85, "type": "declaration", "text": "final;", "parent": 80, "children": [86, 87], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 36}}, {"id": 86, "type": "type_identifier", "text": "final", "parent": 85, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 35}}, {"id": 87, "type": "identifier", "text": "", "parent": 85, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 35}}, {"id": 88, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 89, "type": "function_declarator", "text": "write_dynamic_data(uint8_t* data) const final", "parent": 80, "children": [90, 91, 97], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 52}}, {"id": 90, "type": "identifier", "text": "write_dynamic_data", "parent": 89, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 25}}, {"id": 91, "type": "parameter_list", "text": "(uint8_t* data)", "parent": 89, "children": [92], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 40}}, {"id": 92, "type": "parameter_declaration", "text": "uint8_t* data", "parent": 91, "children": [93, 94], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 39}}, {"id": 93, "type": "primitive_type", "text": "uint8_t", "parent": 92, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 33}}, {"id": 94, "type": "pointer_declarator", "text": "* data", "parent": 92, "children": [95, 96], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 39}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 34}}, {"id": 96, "type": "identifier", "text": "data", "parent": 94, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 39}}, {"id": 97, "type": "identifier", "text": "final", "parent": 89, "children": [], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 52}}, {"id": 98, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}]}, "node_categories": {"declarations": {"functions": [19, 43, 45, 57, 64, 82, 89], "variables": [22, 29, 48, 67, 72, 77, 85, 92], "classes": [], "imports": [16, 17], "modules": [], "enums": []}, "statements": {"expressions": [40], "assignments": [51], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 10, 15, 20, 21, 23, 25, 27, 30, 31, 36, 37, 39, 41, 46, 50, 52, 54, 58, 61, 65, 68, 70, 71, 74, 75, 79, 83, 86, 87, 90, 96, 97, 98], "returns": [60], "exceptions": []}, "expressions": {"calls": [12], "literals": [18], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 19, "universal_type": "function", "name": "AckMessage", "text_snippet": "namespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data,"}, {"node_id": 43, "universal_type": "function", "name": "set_ack", "text_snippet": "void set_ack(int32_t ack) { _ack = ack; }"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "set_ack(int32_t ack)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "get_ack()"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "print_message(std::ostream& os, int32_t rid) const final"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "update_static_header()"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "write_dynamic_data(uint8_t* data) const final"}], "class_declarations": [], "import_statements": [{"node_id": 16, "text": "#include \"base_message.h\"\n"}, {"node_id": 17, "text": "#include"}]}, "original_source_code": "#ifndef DSA_SDK_ACK_MESSAGE_H\n#define DSA_SDK_ACK_MESSAGE_H\n\n#if defined(_MSC_VER)\n#pragma once\n#endif\n\n#include \"base_message.h\"\n\nnamespace dsa {\nclass AckMessage final : public Message {\n public:\n AckMessage(const uint8_t* data, size_t size);\n AckMessage();\n\n void set_ack(int32_t ack) { _ack = ack; };\n int32_t get_ack() const { return _ack; }\n\n void print_message(std::ostream& os, int32_t rid) const final;\n\n protected:\n int32_t _ack;\n\n void update_static_header() final;\n void write_dynamic_data(uint8_t* data) const final;\n};\n}\n\n#endif // DSA_SDK_ACK_MESSAGE_H\n"}
80,415
c
// // Created by ooooo on 2020/4/11. // #ifndef CPP_055_1__SOLUTION3_H_ #define CPP_055_1__SOLUTION3_H_ #include "TreeNode.h" #include <queue> /** * dfs */ class Solution { public: int maxDepth(TreeNode *root) { if (!root) return 0; return max(maxDepth(root->left), maxDepth(root->right)) + 1; } }; #endif //CPP_055_1__SOLUTION3_H_
18.28
18
(translation_unit) "//\n// Created by ooooo on 2020/4/11.\n//\n#ifndef CPP_055_1__SOLUTION3_H_\n#define CPP_055_1__SOLUTION3_H_\n\n#include "TreeNode.h"\n#include <queue>\n\n/**\n * dfs\n */\nclass Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }\n};\n\n#endif //CPP_055_1__SOLUTION3_H_\n" (comment) "//" (comment) "// Created by ooooo on 2020/4/11." (comment) "//" (preproc_ifdef) "#ifndef CPP_055_1__SOLUTION3_H_\n#define CPP_055_1__SOLUTION3_H_\n\n#include "TreeNode.h"\n#include <queue>\n\n/**\n * dfs\n */\nclass Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "CPP_055_1__SOLUTION3_H_" (preproc_def) "#define CPP_055_1__SOLUTION3_H_\n" (#define) "#define" (identifier) "CPP_055_1__SOLUTION3_H_" (preproc_include) "#include "TreeNode.h"\n" (#include) "#include" (string_literal) ""TreeNode.h"" (") """ (string_content) "TreeNode.h" (") """ (preproc_include) "#include <queue>\n" (#include) "#include" (system_lib_string) "<queue>" (comment) "/**\n * dfs\n */" (function_definition) "class Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }\n}" (type_identifier) "class" (identifier) "Solution" (compound_statement) "{\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }\n}" ({) "{" (labeled_statement) "public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }" (statement_identifier) "public" (:) ":" (ERROR) "int maxDepth(TreeNode *root)" (primitive_type) "int" (function_declarator) "maxDepth(TreeNode *root)" (identifier) "maxDepth" (parameter_list) "(TreeNode *root)" (() "(" (parameter_declaration) "TreeNode *root" (type_identifier) "TreeNode" (pointer_declarator) "*root" (*) "*" (identifier) "root" ()) ")" (compound_statement) "{\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }" ({) "{" (if_statement) "if (!root) return 0;" (if) "if" (parenthesized_expression) "(!root)" (() "(" (unary_expression) "!root" (!) "!" (identifier) "root" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (return_statement) "return max(maxDepth(root->left), maxDepth(root->right)) + 1;" (return) "return" (binary_expression) "max(maxDepth(root->left), maxDepth(root->right)) + 1" (call_expression) "max(maxDepth(root->left), maxDepth(root->right))" (identifier) "max" (argument_list) "(maxDepth(root->left), maxDepth(root->right))" (() "(" (call_expression) "maxDepth(root->left)" (identifier) "maxDepth" (argument_list) "(root->left)" (() "(" (field_expression) "root->left" (identifier) "root" (->) "->" (field_identifier) "left" ()) ")" (,) "," (call_expression) "maxDepth(root->right)" (identifier) "maxDepth" (argument_list) "(root->right)" (() "(" (field_expression) "root->right" (identifier) "root" (->) "->" (field_identifier) "right" ()) ")" ()) ")" (+) "+" (number_literal) "1" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "//CPP_055_1__SOLUTION3_H_"
90
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 18.28, "nodes": 52, "errors": 0, "source_hash": "acb2706d030a7aa0c7401c3234166f878473562d618bc05c4456cd5028cf8889", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CPP_055_1__SOLUTION3_H_\n#define CPP_055_1__SOLUTION3_H_\n\n#include \"TreeNode.h\"\n#include <queue>\n\n/**\n * dfs\n */\nclass Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 51], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "identifier", "text": "CPP_055_1__SOLUTION3_H_", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 31}}, {"id": 3, "type": "preproc_def", "text": "#define CPP_055_1__SOLUTION3_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 5, "type": "identifier", "text": "CPP_055_1__SOLUTION3_H_", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 31}}, {"id": 6, "type": "preproc_include", "text": "#include \"TreeNode.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"TreeNode.h\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <queue>\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": "system_lib_string", "text": "<queue>", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 16}}, {"id": 12, "type": "function_definition", "text": "class Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }\n}", "parent": 0, "children": [13], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 13, "type": "identifier", "text": "Solution", "parent": 12, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 14}}, {"id": 14, "type": "labeled_statement", "text": "public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }", "parent": 12, "children": [15], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 18, "column": 3}}, {"id": 15, "type": "ERROR", "text": "int maxDepth(TreeNode *root)", "parent": 14, "children": [16, 17], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 30}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 5}}, {"id": 17, "type": "function_declarator", "text": "maxDepth(TreeNode *root)", "parent": 15, "children": [18, 19], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 30}}, {"id": 18, "type": "identifier", "text": "maxDepth", "parent": 17, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 14}}, {"id": 19, "type": "parameter_list", "text": "(TreeNode *root)", "parent": 17, "children": [20], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 30}}, {"id": 20, "type": "parameter_declaration", "text": "TreeNode *root", "parent": 19, "children": [21, 22], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 29}}, {"id": 21, "type": "type_identifier", "text": "TreeNode", "parent": 20, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 23}}, {"id": 22, "type": "pointer_declarator", "text": "*root", "parent": 20, "children": [23, 24], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 29}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 25}}, {"id": 24, "type": "identifier", "text": "root", "parent": 22, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 29}}, {"id": 25, "type": "if_statement", "text": "if (!root) return 0;", "parent": 14, "children": [26, 30], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 24}}, {"id": 26, "type": "parenthesized_expression", "text": "(!root)", "parent": 25, "children": [27], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 14}}, {"id": 27, "type": "unary_expression", "text": "!root", "parent": 26, "children": [28, 29], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 13}}, {"id": 28, "type": "!", "text": "!", "parent": 27, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}, {"id": 29, "type": "identifier", "text": "root", "parent": 27, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 30, "type": "return_statement", "text": "return 0;", "parent": 25, "children": [31], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 24}}, {"id": 31, "type": "number_literal", "text": "0", "parent": 30, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 23}}, {"id": 32, "type": "return_statement", "text": "return max(maxDepth(root->left), maxDepth(root->right)) + 1;", "parent": 14, "children": [33], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 64}}, {"id": 33, "type": "binary_expression", "text": "max(maxDepth(root->left), maxDepth(root->right)) + 1", "parent": 32, "children": [34, 49, 50], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 63}}, {"id": 34, "type": "call_expression", "text": "max(maxDepth(root->left), maxDepth(root->right))", "parent": 33, "children": [35, 36], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 59}}, {"id": 35, "type": "identifier", "text": "max", "parent": 34, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 14}}, {"id": 36, "type": "argument_list", "text": "(maxDepth(root->left), maxDepth(root->right))", "parent": 34, "children": [37, 43], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 59}}, {"id": 37, "type": "call_expression", "text": "maxDepth(root->left)", "parent": 36, "children": [38, 39], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 35}}, {"id": 38, "type": "identifier", "text": "maxDepth", "parent": 37, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 23}}, {"id": 39, "type": "argument_list", "text": "(root->left)", "parent": 37, "children": [40], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 35}}, {"id": 40, "type": "field_expression", "text": "root->left", "parent": 39, "children": [41, 42], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 34}}, {"id": 41, "type": "identifier", "text": "root", "parent": 40, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 28}}, {"id": 42, "type": "field_identifier", "text": "left", "parent": 40, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 34}}, {"id": 43, "type": "call_expression", "text": "maxDepth(root->right)", "parent": 36, "children": [44, 45], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 58}}, {"id": 44, "type": "identifier", "text": "maxDepth", "parent": 43, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 45}}, {"id": 45, "type": "argument_list", "text": "(root->right)", "parent": 43, "children": [46], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 58}}, {"id": 46, "type": "field_expression", "text": "root->right", "parent": 45, "children": [47, 48], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 57}}, {"id": 47, "type": "identifier", "text": "root", "parent": 46, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 50}}, {"id": 48, "type": "field_identifier", "text": "right", "parent": 46, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 57}}, {"id": 49, "type": "+", "text": "+", "parent": 33, "children": [], "start_point": {"row": 17, "column": 60}, "end_point": {"row": 17, "column": 61}}, {"id": 50, "type": "number_literal", "text": "1", "parent": 33, "children": [], "start_point": {"row": 17, "column": 62}, "end_point": {"row": 17, "column": 63}}, {"id": 51, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 17], "variables": [20], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [26, 27, 33, 34, 37, 40, 43, 46], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 18, 21, 24, 25, 29, 35, 38, 41, 42, 44, 47, 48, 51], "returns": [30, 32], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 31, 50], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "Solution", "text_snippet": "class Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max("}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "maxDepth(TreeNode *root)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"TreeNode.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <queue>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "//\n// Created by ooooo on 2020/4/11.\n//\n#ifndef CPP_055_1__SOLUTION3_H_\n#define CPP_055_1__SOLUTION3_H_\n\n#include \"TreeNode.h\"\n#include <queue>\n\n/**\n * dfs\n */\nclass Solution {\n public:\n\n int maxDepth(TreeNode *root) {\n if (!root) return 0;\n return max(maxDepth(root->left), maxDepth(root->right)) + 1;\n }\n};\n\n#endif //CPP_055_1__SOLUTION3_H_\n"}
80,416
c
#pragma once // File automatically generated by mapry. DO NOT EDIT OR APPEND! namespace some { namespace graph { struct SomeGraph; // defines some object graph. struct SomeGraph { // defines some float. double some_float_gt_0_lt_100 = 0.0; // defines some float. double some_float_ge_0_le_100 = 0.0; // defines an unconstrained float. double unconstrained_float = 0.0; }; } // namespace graph } // namespace some // File automatically generated by mapry. DO NOT EDIT OR APPEND!
26.39
18
(translation_unit) "#pragma once\n\n// File automatically generated by mapry. DO NOT EDIT OR APPEND!\n\n\n\nnamespace some {\nnamespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n} // namespace graph\n} // namespace some\n\n// File automatically generated by mapry. DO NOT EDIT OR APPEND!\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "// File automatically generated by mapry. DO NOT EDIT OR APPEND!" (function_definition) "namespace some {\nnamespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n} // namespace graph\n}" (type_identifier) "namespace" (identifier) "some" (compound_statement) "{\nnamespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n} // namespace graph\n}" ({) "{" (function_definition) "namespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n}" (type_identifier) "namespace" (identifier) "graph" (compound_statement) "{\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n}" ({) "{" (struct_specifier) "struct SomeGraph" (struct) "struct" (type_identifier) "SomeGraph" (;) ";" (comment) "// defines some object graph." (struct_specifier) "struct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n}" (struct) "struct" (type_identifier) "SomeGraph" (field_declaration_list) "{\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n}" ({) "{" (comment) "// defines some float." (field_declaration) "double some_float_gt_0_lt_100 = 0.0;" (primitive_type) "double" (field_identifier) "some_float_gt_0_lt_100" (ERROR) "= 0.0" (=) "=" (number_literal) "0.0" (;) ";" (comment) "// defines some float." (field_declaration) "double some_float_ge_0_le_100 = 0.0;" (primitive_type) "double" (field_identifier) "some_float_ge_0_le_100" (ERROR) "= 0.0" (=) "=" (number_literal) "0.0" (;) ";" (comment) "// defines an unconstrained float." (field_declaration) "double unconstrained_float = 0.0;" (primitive_type) "double" (field_identifier) "unconstrained_float" (ERROR) "= 0.0" (=) "=" (number_literal) "0.0" (;) ";" (}) "}" (;) ";" (}) "}" (comment) "// namespace graph" (}) "}" (comment) "// namespace some" (comment) "// File automatically generated by mapry. DO NOT EDIT OR APPEND!"
56
3
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 26.39, "nodes": 33, "errors": 0, "source_hash": "397d29ac2180a7dc8d1160b26f5fa426cda872eb84c70d89026cb4a46de26345", "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": 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": "function_definition", "text": "namespace some {\nnamespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n} // namespace graph\n}", "parent": null, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "namespace", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 5, "type": "identifier", "text": "some", "parent": 3, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 14}}, {"id": 6, "type": "function_definition", "text": "namespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n}", "parent": 3, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 8, "type": "identifier", "text": "graph", "parent": 6, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 15}}, {"id": 9, "type": "struct_specifier", "text": "struct SomeGraph", "parent": 6, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 16}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "SomeGraph", "parent": 9, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 16}}, {"id": 12, "type": "struct_specifier", "text": "struct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n}", "parent": 6, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 14, "type": "type_identifier", "text": "SomeGraph", "parent": 12, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 16}}, {"id": 15, "type": "field_declaration", "text": "double some_float_gt_0_lt_100 = 0.0;", "parent": 12, "children": [16, 17, 18], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 38}}, {"id": 16, "type": "primitive_type", "text": "double", "parent": 15, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 8}}, {"id": 17, "type": "field_identifier", "text": "some_float_gt_0_lt_100", "parent": 15, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 31}}, {"id": 18, "type": "ERROR", "text": "= 0.0", "parent": 15, "children": [19, 20], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 37}}, {"id": 19, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 33}}, {"id": 20, "type": "number_literal", "text": "0.0", "parent": 18, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 37}}, {"id": 21, "type": "field_declaration", "text": "double some_float_ge_0_le_100 = 0.0;", "parent": 12, "children": [22, 23, 24], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 38}}, {"id": 22, "type": "primitive_type", "text": "double", "parent": 21, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 8}}, {"id": 23, "type": "field_identifier", "text": "some_float_ge_0_le_100", "parent": 21, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 31}}, {"id": 24, "type": "ERROR", "text": "= 0.0", "parent": 21, "children": [25, 26], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 37}}, {"id": 25, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 33}}, {"id": 26, "type": "number_literal", "text": "0.0", "parent": 24, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 37}}, {"id": 27, "type": "field_declaration", "text": "double unconstrained_float = 0.0;", "parent": 12, "children": [28, 29, 30], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 35}}, {"id": 28, "type": "primitive_type", "text": "double", "parent": 27, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 8}}, {"id": 29, "type": "field_identifier", "text": "unconstrained_float", "parent": 27, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 28}}, {"id": 30, "type": "ERROR", "text": "= 0.0", "parent": 27, "children": [31, 32], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 34}}, {"id": 31, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 30}}, {"id": 32, "type": "number_literal", "text": "0.0", "parent": 30, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 34}}]}, "node_categories": {"declarations": {"functions": [3, 6], "variables": [15, 21, 27], "classes": [9, 10, 12, 13], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 5, 7, 8, 11, 14, 17, 23, 29], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [20, 26, 32], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "SomeGraph;", "text_snippet": "namespace some {\nnamespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGrap"}, {"node_id": 6, "universal_type": "function", "name": "SomeGraph;", "text_snippet": "namespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines "}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "SomeGraph", "text_snippet": "struct SomeGraph"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 12, "universal_type": "class", "name": "SomeGraph", "text_snippet": "struct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines som"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#pragma once\n\n// File automatically generated by mapry. DO NOT EDIT OR APPEND!\n\n\n\nnamespace some {\nnamespace graph {\n\nstruct SomeGraph;\n\n// defines some object graph.\nstruct SomeGraph {\n // defines some float.\n double some_float_gt_0_lt_100 = 0.0;\n\n // defines some float.\n double some_float_ge_0_le_100 = 0.0;\n\n // defines an unconstrained float.\n double unconstrained_float = 0.0;\n};\n\n} // namespace graph\n} // namespace some\n\n// File automatically generated by mapry. DO NOT EDIT OR APPEND!\n"}
80,417
c
/****************************************************************************/ /* */ /* */ /* This code and any software associated is covered by */ /* GNU Lesser Public License (LGPL) */ /* */ /* Author: <NAME> */ /* */ /* Desc : */ /* */ /****************************************************************************/ #include <jvmrt.h> #include <jvmmcros.h> enum { CONFIG_ID_STACK = 0, CONFIG_ID_OP_STACK, CONFIG_ID_MAX, CONFIG_REGULAR_CLASS, CONFIG_JARRED_CLASS, CONFIG_ERROR }; typedef struct JVM_CONFIG_INFO { JAVA_INT jiJavaArgc; JAVA_ARRAYREF jarRefArgv; JVM_INT nNativeStackSize; JVM_INT nJavaStackSize; JVM_INT nMaxHeapSize; JVM_INT nInitHeapSize; JVM_INT nFinalHeapSize; JVM_U32 ju32Flags; JVM_INT nJavaArgc; JVM_PBYTE* ppJavaArgv; JAVA_ARRAYREF jarArgv; JVM_STRING jsClassPath; }JVM_CONFIG_INFO; JVM_BOOL JvmConfigInit( G_STATE_P state); JVM_VOID JvmConfigExit(); JVM_LONG JvmConfigGetSize(JVM_INT jiID); JVM_INT JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName ); JVM_BOOL JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo ); JVM_BOOL JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs );
31.83
54
(translation_unit) "/****************************************************************************/ \n/* */ \n/* */ \n/* This code and any software associated is covered by */ \n/* GNU Lesser Public License (LGPL) */ \n/* */ \n/* Author: <NAME> */ \n/* */ \n/* Desc : */ \n/* */ \n/****************************************************************************/ \n \n#include <jvmrt.h> \n#include <jvmmcros.h> \n \n \nenum { \n CONFIG_ID_STACK = 0, \n CONFIG_ID_OP_STACK, \n CONFIG_ID_MAX, \n CONFIG_REGULAR_CLASS, \n CONFIG_JARRED_CLASS, \n CONFIG_ERROR \n}; \n \n \ntypedef struct JVM_CONFIG_INFO \n{ \n JAVA_INT jiJavaArgc; \n JAVA_ARRAYREF jarRefArgv; \n JVM_INT nNativeStackSize; \n JVM_INT nJavaStackSize; \n JVM_INT nMaxHeapSize; \n JVM_INT nInitHeapSize; \n JVM_INT nFinalHeapSize; \n JVM_U32 ju32Flags; \n JVM_INT nJavaArgc; \n JVM_PBYTE* ppJavaArgv; \n JAVA_ARRAYREF jarArgv; \n JVM_STRING jsClassPath; \n}JVM_CONFIG_INFO; \n \n \n \nJVM_BOOL JvmConfigInit( G_STATE_P state); \nJVM_VOID JvmConfigExit(); \n \nJVM_LONG JvmConfigGetSize(JVM_INT jiID); \n \nJVM_INT JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName ); \n \nJVM_BOOL JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo ); \n \nJVM_BOOL JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs );" (comment) "/****************************************************************************/" (comment) "/* */" (comment) "/* */" (comment) "/* This code and any software associated is covered by */" (comment) "/* GNU Lesser Public License (LGPL) */" (comment) "/* */" (comment) "/* Author: <NAME> */" (comment) "/* */" (comment) "/* Desc : */" (comment) "/* */" (comment) "/****************************************************************************/" (preproc_include) "#include <jvmrt.h> \n" (#include) "#include" (system_lib_string) "<jvmrt.h>" (preproc_include) "#include <jvmmcros.h> \n" (#include) "#include" (system_lib_string) "<jvmmcros.h>" (enum_specifier) "enum { \n CONFIG_ID_STACK = 0, \n CONFIG_ID_OP_STACK, \n CONFIG_ID_MAX, \n CONFIG_REGULAR_CLASS, \n CONFIG_JARRED_CLASS, \n CONFIG_ERROR \n}" (enum) "enum" (enumerator_list) "{ \n CONFIG_ID_STACK = 0, \n CONFIG_ID_OP_STACK, \n CONFIG_ID_MAX, \n CONFIG_REGULAR_CLASS, \n CONFIG_JARRED_CLASS, \n CONFIG_ERROR \n}" ({) "{" (enumerator) "CONFIG_ID_STACK = 0" (identifier) "CONFIG_ID_STACK" (=) "=" (number_literal) "0" (,) "," (enumerator) "CONFIG_ID_OP_STACK" (identifier) "CONFIG_ID_OP_STACK" (,) "," (enumerator) "CONFIG_ID_MAX" (identifier) "CONFIG_ID_MAX" (,) "," (enumerator) "CONFIG_REGULAR_CLASS" (identifier) "CONFIG_REGULAR_CLASS" (,) "," (enumerator) "CONFIG_JARRED_CLASS" (identifier) "CONFIG_JARRED_CLASS" (,) "," (enumerator) "CONFIG_ERROR" (identifier) "CONFIG_ERROR" (}) "}" (;) ";" (type_definition) "typedef struct JVM_CONFIG_INFO \n{ \n JAVA_INT jiJavaArgc; \n JAVA_ARRAYREF jarRefArgv; \n JVM_INT nNativeStackSize; \n JVM_INT nJavaStackSize; \n JVM_INT nMaxHeapSize; \n JVM_INT nInitHeapSize; \n JVM_INT nFinalHeapSize; \n JVM_U32 ju32Flags; \n JVM_INT nJavaArgc; \n JVM_PBYTE* ppJavaArgv; \n JAVA_ARRAYREF jarArgv; \n JVM_STRING jsClassPath; \n}JVM_CONFIG_INFO;" (typedef) "typedef" (struct_specifier) "struct JVM_CONFIG_INFO \n{ \n JAVA_INT jiJavaArgc; \n JAVA_ARRAYREF jarRefArgv; \n JVM_INT nNativeStackSize; \n JVM_INT nJavaStackSize; \n JVM_INT nMaxHeapSize; \n JVM_INT nInitHeapSize; \n JVM_INT nFinalHeapSize; \n JVM_U32 ju32Flags; \n JVM_INT nJavaArgc; \n JVM_PBYTE* ppJavaArgv; \n JAVA_ARRAYREF jarArgv; \n JVM_STRING jsClassPath; \n}" (struct) "struct" (type_identifier) "JVM_CONFIG_INFO" (field_declaration_list) "{ \n JAVA_INT jiJavaArgc; \n JAVA_ARRAYREF jarRefArgv; \n JVM_INT nNativeStackSize; \n JVM_INT nJavaStackSize; \n JVM_INT nMaxHeapSize; \n JVM_INT nInitHeapSize; \n JVM_INT nFinalHeapSize; \n JVM_U32 ju32Flags; \n JVM_INT nJavaArgc; \n JVM_PBYTE* ppJavaArgv; \n JAVA_ARRAYREF jarArgv; \n JVM_STRING jsClassPath; \n}" ({) "{" (field_declaration) "JAVA_INT jiJavaArgc;" (type_identifier) "JAVA_INT" (field_identifier) "jiJavaArgc" (;) ";" (field_declaration) "JAVA_ARRAYREF jarRefArgv;" (type_identifier) "JAVA_ARRAYREF" (field_identifier) "jarRefArgv" (;) ";" (field_declaration) "JVM_INT nNativeStackSize;" (type_identifier) "JVM_INT" (field_identifier) "nNativeStackSize" (;) ";" (field_declaration) "JVM_INT nJavaStackSize;" (type_identifier) "JVM_INT" (field_identifier) "nJavaStackSize" (;) ";" (field_declaration) "JVM_INT nMaxHeapSize;" (type_identifier) "JVM_INT" (field_identifier) "nMaxHeapSize" (;) ";" (field_declaration) "JVM_INT nInitHeapSize;" (type_identifier) "JVM_INT" (field_identifier) "nInitHeapSize" (;) ";" (field_declaration) "JVM_INT nFinalHeapSize;" (type_identifier) "JVM_INT" (field_identifier) "nFinalHeapSize" (;) ";" (field_declaration) "JVM_U32 ju32Flags;" (type_identifier) "JVM_U32" (field_identifier) "ju32Flags" (;) ";" (field_declaration) "JVM_INT nJavaArgc;" (type_identifier) "JVM_INT" (field_identifier) "nJavaArgc" (;) ";" (field_declaration) "JVM_PBYTE* ppJavaArgv;" (type_identifier) "JVM_PBYTE" (pointer_declarator) "* ppJavaArgv" (*) "*" (field_identifier) "ppJavaArgv" (;) ";" (field_declaration) "JAVA_ARRAYREF jarArgv;" (type_identifier) "JAVA_ARRAYREF" (field_identifier) "jarArgv" (;) ";" (field_declaration) "JVM_STRING jsClassPath;" (type_identifier) "JVM_STRING" (field_identifier) "jsClassPath" (;) ";" (}) "}" (type_identifier) "JVM_CONFIG_INFO" (;) ";" (declaration) "JVM_BOOL JvmConfigInit( G_STATE_P state);" (type_identifier) "JVM_BOOL" (function_declarator) "JvmConfigInit( G_STATE_P state)" (identifier) "JvmConfigInit" (parameter_list) "( G_STATE_P state)" (() "(" (parameter_declaration) "G_STATE_P state" (type_identifier) "G_STATE_P" (identifier) "state" ()) ")" (;) ";" (declaration) "JVM_VOID JvmConfigExit();" (type_identifier) "JVM_VOID" (function_declarator) "JvmConfigExit()" (identifier) "JvmConfigExit" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "JVM_LONG JvmConfigGetSize(JVM_INT jiID);" (type_identifier) "JVM_LONG" (function_declarator) "JvmConfigGetSize(JVM_INT jiID)" (identifier) "JvmConfigGetSize" (parameter_list) "(JVM_INT jiID)" (() "(" (parameter_declaration) "JVM_INT jiID" (type_identifier) "JVM_INT" (identifier) "jiID" ()) ")" (;) ";" (declaration) "JVM_INT JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName );" (type_identifier) "JVM_INT" (function_declarator) "JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName )" (identifier) "JvmConfigLocateClass" (parameter_list) "( JVM_STRING jsClassName, JVM_STRING * pjsFileName )" (() "(" (parameter_declaration) "JVM_STRING jsClassName" (type_identifier) "JVM_STRING" (identifier) "jsClassName" (,) "," (parameter_declaration) "JVM_STRING * pjsFileName" (type_identifier) "JVM_STRING" (pointer_declarator) "* pjsFileName" (*) "*" (identifier) "pjsFileName" ()) ")" (;) ";" (declaration) "JVM_BOOL JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo );" (type_identifier) "JVM_BOOL" (function_declarator) "JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo )" (identifier) "JvmConfigCompleteParse" (parameter_list) "( JVM_CONFIG_INFO * pjciInfo )" (() "(" (parameter_declaration) "JVM_CONFIG_INFO * pjciInfo" (type_identifier) "JVM_CONFIG_INFO" (pointer_declarator) "* pjciInfo" (*) "*" (identifier) "pjciInfo" ()) ")" (;) ";" (declaration) "JVM_BOOL JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs );" (type_identifier) "JVM_BOOL" (function_declarator) "JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs )" (identifier) "JvmConfigGetJavaArgs" (parameter_list) "( IN JAVA_ARRAYREF * pjarArgs )" (() "(" (parameter_declaration) "IN JAVA_ARRAYREF * pjarArgs" (type_identifier) "IN" (ERROR) "JAVA_ARRAYREF" (identifier) "JAVA_ARRAYREF" (pointer_declarator) "* pjarArgs" (*) "*" (identifier) "pjarArgs" ()) ")" (;) ";"
178
1
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 31.83, "nodes": 123, "errors": 0, "source_hash": "b75b9fc023582ffabbcbb306c79353849b2283b49327cbec05f956fd5e4c2ec7", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <jvmrt.h>\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<jvmrt.h>", "parent": 0, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <jvmmcros.h>\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<jvmmcros.h>", "parent": 3, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 6, "type": "enum_specifier", "text": "enum {\r\n CONFIG_ID_STACK = 0,\r\n\t CONFIG_ID_OP_STACK,\r\n\t CONFIG_ID_MAX,\r\n\t CONFIG_REGULAR_CLASS,\r\n\t CONFIG_JARRED_CLASS,\r\n CONFIG_ERROR\r\n}", "parent": null, "children": [7, 8], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 7, "type": "enum", "text": "enum", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 8, "type": "enumerator_list", "text": "{\r\n CONFIG_ID_STACK = 0,\r\n\t CONFIG_ID_OP_STACK,\r\n\t CONFIG_ID_MAX,\r\n\t CONFIG_REGULAR_CLASS,\r\n\t CONFIG_JARRED_CLASS,\r\n CONFIG_ERROR\r\n}", "parent": 6, "children": [9, 13, 15, 17, 19, 21], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 23, "column": 1}}, {"id": 9, "type": "enumerator", "text": "CONFIG_ID_STACK = 0", "parent": 8, "children": [10, 11, 12], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 23}}, {"id": 10, "type": "identifier", "text": "CONFIG_ID_STACK", "parent": 9, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 19}}, {"id": 11, "type": "=", "text": "=", "parent": 9, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 12, "type": "number_literal", "text": "0", "parent": 9, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 23}}, {"id": 13, "type": "enumerator", "text": "CONFIG_ID_OP_STACK", "parent": 8, "children": [14], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 21}}, {"id": 14, "type": "identifier", "text": "CONFIG_ID_OP_STACK", "parent": 13, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 21}}, {"id": 15, "type": "enumerator", "text": "CONFIG_ID_MAX", "parent": 8, "children": [16], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 16}}, {"id": 16, "type": "identifier", "text": "CONFIG_ID_MAX", "parent": 15, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 16}}, {"id": 17, "type": "enumerator", "text": "CONFIG_REGULAR_CLASS", "parent": 8, "children": [18], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 23}}, {"id": 18, "type": "identifier", "text": "CONFIG_REGULAR_CLASS", "parent": 17, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 23}}, {"id": 19, "type": "enumerator", "text": "CONFIG_JARRED_CLASS", "parent": 8, "children": [20], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 22}}, {"id": 20, "type": "identifier", "text": "CONFIG_JARRED_CLASS", "parent": 19, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 22}}, {"id": 21, "type": "enumerator", "text": "CONFIG_ERROR", "parent": 8, "children": [22], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 16}}, {"id": 22, "type": "identifier", "text": "CONFIG_ERROR", "parent": 21, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 16}}, {"id": 23, "type": "type_definition", "text": "typedef struct JVM_CONFIG_INFO\r\n{\r\n JAVA_INT jiJavaArgc;\r\n JAVA_ARRAYREF jarRefArgv;\r\n JVM_INT nNativeStackSize;\r\n JVM_INT nJavaStackSize;\r\n JVM_INT nMaxHeapSize;\r\n JVM_INT nInitHeapSize;\r\n JVM_INT nFinalHeapSize;\r\n JVM_U32 ju32Flags;\r\n JVM_INT nJavaArgc;\r\n JVM_PBYTE* ppJavaArgv;\r\n JAVA_ARRAYREF jarArgv;\r\n JVM_STRING jsClassPath;\r\n}JVM_CONFIG_INFO;", "parent": null, "children": [24, 25, 66], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 40, "column": 17}}, {"id": 24, "type": "typedef", "text": "typedef", "parent": 23, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 25, "type": "struct_specifier", "text": "struct JVM_CONFIG_INFO\r\n{\r\n JAVA_INT jiJavaArgc;\r\n JAVA_ARRAYREF jarRefArgv;\r\n JVM_INT nNativeStackSize;\r\n JVM_INT nJavaStackSize;\r\n JVM_INT nMaxHeapSize;\r\n JVM_INT nInitHeapSize;\r\n JVM_INT nFinalHeapSize;\r\n JVM_U32 ju32Flags;\r\n JVM_INT nJavaArgc;\r\n JVM_PBYTE* ppJavaArgv;\r\n JAVA_ARRAYREF jarArgv;\r\n JVM_STRING jsClassPath;\r\n}", "parent": 23, "children": [26, 27], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 40, "column": 1}}, {"id": 26, "type": "struct", "text": "struct", "parent": 25, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 14}}, {"id": 27, "type": "type_identifier", "text": "JVM_CONFIG_INFO", "parent": 25, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 30}}, {"id": 28, "type": "field_declaration", "text": "JAVA_INT jiJavaArgc;", "parent": 25, "children": [29, 30], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 22}}, {"id": 29, "type": "type_identifier", "text": "JAVA_INT", "parent": 28, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 10}}, {"id": 30, "type": "field_identifier", "text": "jiJavaArgc", "parent": 28, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 21}}, {"id": 31, "type": "field_declaration", "text": "JAVA_ARRAYREF jarRefArgv;", "parent": 25, "children": [32, 33], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 27}}, {"id": 32, "type": "type_identifier", "text": "JAVA_ARRAYREF", "parent": 31, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 15}}, {"id": 33, "type": "field_identifier", "text": "jarRefArgv", "parent": 31, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 26}}, {"id": 34, "type": "field_declaration", "text": "JVM_INT nNativeStackSize;", "parent": 25, "children": [35, 36], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 27}}, {"id": 35, "type": "type_identifier", "text": "JVM_INT", "parent": 34, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 36, "type": "field_identifier", "text": "nNativeStackSize", "parent": 34, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 26}}, {"id": 37, "type": "field_declaration", "text": "JVM_INT nJavaStackSize;", "parent": 25, "children": [38, 39], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 25}}, {"id": 38, "type": "type_identifier", "text": "JVM_INT", "parent": 37, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 39, "type": "field_identifier", "text": "nJavaStackSize", "parent": 37, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 24}}, {"id": 40, "type": "field_declaration", "text": "JVM_INT nMaxHeapSize;", "parent": 25, "children": [41, 42], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 23}}, {"id": 41, "type": "type_identifier", "text": "JVM_INT", "parent": 40, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 9}}, {"id": 42, "type": "field_identifier", "text": "nMaxHeapSize", "parent": 40, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 22}}, {"id": 43, "type": "field_declaration", "text": "JVM_INT nInitHeapSize;", "parent": 25, "children": [44, 45], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 24}}, {"id": 44, "type": "type_identifier", "text": "JVM_INT", "parent": 43, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 9}}, {"id": 45, "type": "field_identifier", "text": "nInitHeapSize", "parent": 43, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 23}}, {"id": 46, "type": "field_declaration", "text": "JVM_INT nFinalHeapSize;", "parent": 25, "children": [47, 48], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 25}}, {"id": 47, "type": "type_identifier", "text": "JVM_INT", "parent": 46, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 9}}, {"id": 48, "type": "field_identifier", "text": "nFinalHeapSize", "parent": 46, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 24}}, {"id": 49, "type": "field_declaration", "text": "JVM_U32 ju32Flags;", "parent": 25, "children": [50, 51], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 20}}, {"id": 50, "type": "type_identifier", "text": "JVM_U32", "parent": 49, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 9}}, {"id": 51, "type": "field_identifier", "text": "ju32Flags", "parent": 49, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 19}}, {"id": 52, "type": "field_declaration", "text": "JVM_INT nJavaArgc;", "parent": 25, "children": [53, 54], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 22}}, {"id": 53, "type": "type_identifier", "text": "JVM_INT", "parent": 52, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 54, "type": "field_identifier", "text": "nJavaArgc", "parent": 52, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 21}}, {"id": 55, "type": "field_declaration", "text": "JVM_PBYTE* ppJavaArgv;", "parent": 25, "children": [56, 57], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 24}}, {"id": 56, "type": "type_identifier", "text": "JVM_PBYTE", "parent": 55, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 11}}, {"id": 57, "type": "pointer_declarator", "text": "* ppJavaArgv", "parent": 55, "children": [58, 59], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 23}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 12}}, {"id": 59, "type": "field_identifier", "text": "ppJavaArgv", "parent": 57, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 23}}, {"id": 60, "type": "field_declaration", "text": "JAVA_ARRAYREF jarArgv;", "parent": 25, "children": [61, 62], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 24}}, {"id": 61, "type": "type_identifier", "text": "JAVA_ARRAYREF", "parent": 60, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 15}}, {"id": 62, "type": "field_identifier", "text": "jarArgv", "parent": 60, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 23}}, {"id": 63, "type": "field_declaration", "text": "JVM_STRING jsClassPath;", "parent": 25, "children": [64, 65], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 25}}, {"id": 64, "type": "type_identifier", "text": "JVM_STRING", "parent": 63, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 12}}, {"id": 65, "type": "field_identifier", "text": "jsClassPath", "parent": 63, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 24}}, {"id": 66, "type": "type_identifier", "text": "JVM_CONFIG_INFO", "parent": 23, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 16}}, {"id": 67, "type": "declaration", "text": "JVM_BOOL JvmConfigInit( G_STATE_P state);", "parent": null, "children": [68, 69], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 41}}, {"id": 68, "type": "type_identifier", "text": "JVM_BOOL", "parent": 67, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 69, "type": "function_declarator", "text": "JvmConfigInit( G_STATE_P state)", "parent": 67, "children": [70, 71], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 40}}, {"id": 70, "type": "identifier", "text": "JvmConfigInit", "parent": 69, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 22}}, {"id": 71, "type": "parameter_list", "text": "( G_STATE_P state)", "parent": 69, "children": [72], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 40}}, {"id": 72, "type": "parameter_declaration", "text": "G_STATE_P state", "parent": 71, "children": [73, 74], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 39}}, {"id": 73, "type": "type_identifier", "text": "G_STATE_P", "parent": 72, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 33}}, {"id": 74, "type": "identifier", "text": "state", "parent": 72, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 39}}, {"id": 75, "type": "declaration", "text": "JVM_VOID JvmConfigExit();", "parent": null, "children": [76, 77], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 25}}, {"id": 76, "type": "type_identifier", "text": "JVM_VOID", "parent": 75, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 8}}, {"id": 77, "type": "function_declarator", "text": "JvmConfigExit()", "parent": 75, "children": [78, 79], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 24}}, {"id": 78, "type": "identifier", "text": "JvmConfigExit", "parent": 77, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 22}}, {"id": 79, "type": "parameter_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 24}}, {"id": 80, "type": "declaration", "text": "JVM_LONG JvmConfigGetSize(JVM_INT jiID);", "parent": null, "children": [81, 82], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 40}}, {"id": 81, "type": "type_identifier", "text": "JVM_LONG", "parent": 80, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 82, "type": "function_declarator", "text": "JvmConfigGetSize(JVM_INT jiID)", "parent": 80, "children": [83, 84], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 39}}, {"id": 83, "type": "identifier", "text": "JvmConfigGetSize", "parent": 82, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 25}}, {"id": 84, "type": "parameter_list", "text": "(JVM_INT jiID)", "parent": 82, "children": [85], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 39}}, {"id": 85, "type": "parameter_declaration", "text": "JVM_INT jiID", "parent": 84, "children": [86, 87], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 38}}, {"id": 86, "type": "type_identifier", "text": "JVM_INT", "parent": 85, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 33}}, {"id": 87, "type": "identifier", "text": "jiID", "parent": 85, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 38}}, {"id": 88, "type": "declaration", "text": "JVM_INT JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName );", "parent": null, "children": [89, 90], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 81}}, {"id": 89, "type": "type_identifier", "text": "JVM_INT", "parent": 88, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 90, "type": "function_declarator", "text": "JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName )", "parent": 88, "children": [91, 92], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 80}}, {"id": 91, "type": "identifier", "text": "JvmConfigLocateClass", "parent": 90, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 28}}, {"id": 92, "type": "parameter_list", "text": "( JVM_STRING jsClassName, JVM_STRING * pjsFileName )", "parent": 90, "children": [93, 96], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 80}}, {"id": 93, "type": "parameter_declaration", "text": "JVM_STRING jsClassName", "parent": 92, "children": [94, 95], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 52}}, {"id": 94, "type": "type_identifier", "text": "JVM_STRING", "parent": 93, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 40}}, {"id": 95, "type": "identifier", "text": "jsClassName", "parent": 93, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 52}}, {"id": 96, "type": "parameter_declaration", "text": "JVM_STRING * pjsFileName", "parent": 92, "children": [97, 98], "start_point": {"row": 49, "column": 54}, "end_point": {"row": 49, "column": 78}}, {"id": 97, "type": "type_identifier", "text": "JVM_STRING", "parent": 96, "children": [], "start_point": {"row": 49, "column": 54}, "end_point": {"row": 49, "column": 64}}, {"id": 98, "type": "pointer_declarator", "text": "* pjsFileName", "parent": 96, "children": [99, 100], "start_point": {"row": 49, "column": 65}, "end_point": {"row": 49, "column": 78}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 49, "column": 65}, "end_point": {"row": 49, "column": 66}}, {"id": 100, "type": "identifier", "text": "pjsFileName", "parent": 98, "children": [], "start_point": {"row": 49, "column": 67}, "end_point": {"row": 49, "column": 78}}, {"id": 101, "type": "declaration", "text": "JVM_BOOL JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo );", "parent": null, "children": [102, 103], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 62}}, {"id": 102, "type": "type_identifier", "text": "JVM_BOOL", "parent": 101, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 8}}, {"id": 103, "type": "function_declarator", "text": "JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo )", "parent": 101, "children": [104, 105], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 61}}, {"id": 104, "type": "identifier", "text": "JvmConfigCompleteParse", "parent": 103, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 31}}, {"id": 105, "type": "parameter_list", "text": "( JVM_CONFIG_INFO * pjciInfo )", "parent": 103, "children": [106], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 61}}, {"id": 106, "type": "parameter_declaration", "text": "JVM_CONFIG_INFO * pjciInfo", "parent": 105, "children": [107, 108], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 59}}, {"id": 107, "type": "type_identifier", "text": "JVM_CONFIG_INFO", "parent": 106, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 48}}, {"id": 108, "type": "pointer_declarator", "text": "* pjciInfo", "parent": 106, "children": [109, 110], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 59}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 50}}, {"id": 110, "type": "identifier", "text": "pjciInfo", "parent": 108, "children": [], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 59}}, {"id": 111, "type": "declaration", "text": "JVM_BOOL JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs );", "parent": null, "children": [112, 113], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 61}}, {"id": 112, "type": "type_identifier", "text": "JVM_BOOL", "parent": 111, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 8}}, {"id": 113, "type": "function_declarator", "text": "JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs )", "parent": 111, "children": [114, 115], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 60}}, {"id": 114, "type": "identifier", "text": "JvmConfigGetJavaArgs", "parent": 113, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 29}}, {"id": 115, "type": "parameter_list", "text": "( IN JAVA_ARRAYREF * pjarArgs )", "parent": 113, "children": [116], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 60}}, {"id": 116, "type": "parameter_declaration", "text": "IN JAVA_ARRAYREF * pjarArgs", "parent": 115, "children": [117, 118, 120], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 58}}, {"id": 117, "type": "type_identifier", "text": "IN", "parent": 116, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 33}}, {"id": 118, "type": "ERROR", "text": "JAVA_ARRAYREF", "parent": 116, "children": [119], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 47}}, {"id": 119, "type": "identifier", "text": "JAVA_ARRAYREF", "parent": 118, "children": [], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 47}}, {"id": 120, "type": "pointer_declarator", "text": "* pjarArgs", "parent": 116, "children": [121, 122], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 58}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 49}}, {"id": 122, "type": "identifier", "text": "pjarArgs", "parent": 120, "children": [], "start_point": {"row": 53, "column": 50}, "end_point": {"row": 53, "column": 58}}]}, "node_categories": {"declarations": {"functions": [69, 77, 82, 90, 103, 113], "variables": [23, 28, 31, 34, 37, 40, 43, 46, 49, 52, 55, 60, 63, 67, 72, 75, 80, 85, 88, 93, 96, 101, 106, 111, 116], "classes": [25, 26], "imports": [0, 1, 3, 4], "modules": [], "enums": [6, 7, 8, 9, 13, 15, 17, 19, 21]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [10, 14, 16, 18, 20, 22, 27, 29, 30, 32, 33, 35, 36, 38, 39, 41, 42, 44, 45, 47, 48, 50, 51, 53, 54, 56, 59, 61, 62, 64, 65, 66, 68, 70, 73, 74, 76, 78, 81, 83, 86, 87, 89, 91, 94, 95, 97, 100, 102, 104, 107, 110, 112, 114, 117, 119, 122], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 12], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "JvmConfigInit( G_STATE_P state)"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "JvmConfigExit()"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "JvmConfigGetSize(JVM_INT jiID)"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName )"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo )"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs )"}], "class_declarations": [{"node_id": 25, "universal_type": "class", "name": "JVM_CONFIG_INFO", "text_snippet": "struct JVM_CONFIG_INFO\r\n{\r\n JAVA_INT jiJavaArgc;\r\n JAVA_ARRAYREF jarRefArgv;\r\n JVM_INT nNativeSta"}, {"node_id": 26, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <jvmrt.h>\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <jvmmcros.h>\r\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/****************************************************************************/\r\n/* */\r\n/* */\r\n/* This code and any software associated is covered by */\r\n/* GNU Lesser Public License (LGPL) */\r\n/* */\r\n/* Author: <NAME> */\r\n/* */\r\n/* Desc : */\r\n/* */\r\n/****************************************************************************/\r\n\r\n#include <jvmrt.h>\r\n#include <jvmmcros.h>\r\n\r\n\r\nenum {\r\n CONFIG_ID_STACK = 0,\r\n\t CONFIG_ID_OP_STACK,\r\n\t CONFIG_ID_MAX,\r\n\t CONFIG_REGULAR_CLASS,\r\n\t CONFIG_JARRED_CLASS,\r\n CONFIG_ERROR\r\n};\r\n\r\n\r\ntypedef struct JVM_CONFIG_INFO\r\n{\r\n JAVA_INT jiJavaArgc;\r\n JAVA_ARRAYREF jarRefArgv;\r\n JVM_INT nNativeStackSize;\r\n JVM_INT nJavaStackSize;\r\n JVM_INT nMaxHeapSize;\r\n JVM_INT nInitHeapSize;\r\n JVM_INT nFinalHeapSize;\r\n JVM_U32 ju32Flags;\r\n JVM_INT nJavaArgc;\r\n JVM_PBYTE* ppJavaArgv;\r\n JAVA_ARRAYREF jarArgv;\r\n JVM_STRING jsClassPath;\r\n}JVM_CONFIG_INFO;\r\n\r\n\r\n\r\nJVM_BOOL JvmConfigInit( G_STATE_P state);\r\nJVM_VOID JvmConfigExit();\r\n\r\nJVM_LONG JvmConfigGetSize(JVM_INT jiID);\r\n\r\nJVM_INT JvmConfigLocateClass( JVM_STRING jsClassName, JVM_STRING * pjsFileName );\r\n\r\nJVM_BOOL JvmConfigCompleteParse( JVM_CONFIG_INFO * pjciInfo );\r\n\r\nJVM_BOOL JvmConfigGetJavaArgs( IN JAVA_ARRAYREF * pjarArgs );"}
80,418
c
// // NSString+StripHTML.h // Golfarenan // // Created by <NAME> on 2013-07-02. // Copyright (c) 2013 Apping AB. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (APFoundation) /* Strips everything that looks like a HTML tag */ - (NSString *)ap_stringByStrippingHTML; - (NSUInteger)ap_integerValueFromHex; + (BOOL)ap_stringHasCharacters:(NSString *)string; + (NSString *)ap_generateUUID; @end
24.18
17
(translation_unit) "//\n// NSString+StripHTML.h\n// Golfarenan\n//\n// Created by <NAME> on 2013-07-02.\n// Copyright (c) 2013 Apping AB. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (APFoundation)\n\n/*\n Strips everything that looks like a HTML tag\n */\n- (NSString *)ap_stringByStrippingHTML;\n\n- (NSUInteger)ap_integerValueFromHex;\n\n+ (BOOL)ap_stringHasCharacters:(NSString *)string;\n\n+ (NSString *)ap_generateUUID;\n\n@end\n" (comment) "//" (comment) "// NSString+StripHTML.h" (comment) "// Golfarenan" (comment) "//" (comment) "// Created by <NAME> on 2013-07-02." (comment) "// Copyright (c) 2013 Apping AB. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (ERROR) "@interface NSString (APFoundation)" (ERROR) "@" (type_identifier) "interface" (function_declarator) "NSString (APFoundation)" (identifier) "NSString" (parameter_list) "(APFoundation)" (() "(" (identifier) "APFoundation" ()) ")" (comment) "/*\n Strips everything that looks like a HTML tag\n */" (expression_statement) "- (NSString *)ap_stringByStrippingHTML;" (unary_expression) "- (NSString *)ap_stringByStrippingHTML" (-) "-" (cast_expression) "(NSString *)ap_stringByStrippingHTML" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "ap_stringByStrippingHTML" (;) ";" (expression_statement) "- (NSUInteger)ap_integerValueFromHex;" (unary_expression) "- (NSUInteger)ap_integerValueFromHex" (-) "-" (cast_expression) "(NSUInteger)ap_integerValueFromHex" (() "(" (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" ()) ")" (identifier) "ap_integerValueFromHex" (;) ";" (expression_statement) "+ (BOOL)ap_stringHasCharacters:(NSString *)string;" (update_expression) "+ (BOOL)ap_stringHasCharacters:(NSString *)string" (binary_expression) "+ (BOOL)ap_stringHasCharacters:(NSString *)string" (unary_expression) "+ (BOOL)ap_stringHasCharacters" (+) "+" (cast_expression) "(BOOL)ap_stringHasCharacters" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "ap_stringHasCharacters" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "string" (--) "" (;) ";" (expression_statement) "+ (NSString *)ap_generateUUID;" (unary_expression) "+ (NSString *)ap_generateUUID" (+) "+" (cast_expression) "(NSString *)ap_generateUUID" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "ap_generateUUID" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
81
6
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 24.18, "nodes": 47, "errors": 0, "source_hash": "56a71da39f5da8602d661e2d740a2fe204ffb55a31cd90f1c6d8ec4ea726b629", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.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": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": "@interface NSString (APFoundation)", "parent": null, "children": [4, 5, 6], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 34}}, {"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": "function_declarator", "text": "NSString (APFoundation)", "parent": 3, "children": [7, 8], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 34}}, {"id": 7, "type": "identifier", "text": "NSString", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 19}}, {"id": 8, "type": "parameter_list", "text": "(APFoundation)", "parent": 6, "children": [9], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 34}}, {"id": 9, "type": "identifier", "text": "APFoundation", "parent": 8, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 33}}, {"id": 10, "type": "unary_expression", "text": "- (NSString *)ap_stringByStrippingHTML", "parent": null, "children": [11, 12], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 38}}, {"id": 11, "type": "-", "text": "-", "parent": 10, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 12, "type": "cast_expression", "text": "(NSString *)ap_stringByStrippingHTML", "parent": 10, "children": [13, 17], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 38}}, {"id": 13, "type": "type_descriptor", "text": "NSString *", "parent": 12, "children": [14, 15], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 13}}, {"id": 14, "type": "type_identifier", "text": "NSString", "parent": 13, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 11}}, {"id": 15, "type": "abstract_pointer_declarator", "text": "*", "parent": 13, "children": [16], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 17, "type": "identifier", "text": "ap_stringByStrippingHTML", "parent": 12, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 38}}, {"id": 18, "type": "unary_expression", "text": "- (NSUInteger)ap_integerValueFromHex", "parent": null, "children": [19, 20], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 36}}, {"id": 19, "type": "-", "text": "-", "parent": 18, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 20, "type": "cast_expression", "text": "(NSUInteger)ap_integerValueFromHex", "parent": 18, "children": [21, 23], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 36}}, {"id": 21, "type": "type_descriptor", "text": "NSUInteger", "parent": 20, "children": [22], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 13}}, {"id": 22, "type": "type_identifier", "text": "NSUInteger", "parent": 21, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 13}}, {"id": 23, "type": "identifier", "text": "ap_integerValueFromHex", "parent": 20, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 36}}, {"id": 24, "type": "update_expression", "text": "+ (BOOL)ap_stringHasCharacters:(NSString *)string", "parent": null, "children": [25, 36], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 49}}, {"id": 25, "type": "binary_expression", "text": "+ (BOOL)ap_stringHasCharacters:(NSString *)string", "parent": 24, "children": [26, 32, 34, 35], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 49}}, {"id": 26, "type": "unary_expression", "text": "+ (BOOL)ap_stringHasCharacters", "parent": 25, "children": [27, 28], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 30}}, {"id": 27, "type": "+", "text": "+", "parent": 26, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 28, "type": "cast_expression", "text": "(BOOL)ap_stringHasCharacters", "parent": 26, "children": [29, 31], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 30}}, {"id": 29, "type": "type_descriptor", "text": "BOOL", "parent": 28, "children": [30], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 30, "type": "type_identifier", "text": "BOOL", "parent": 29, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 31, "type": "identifier", "text": "ap_stringHasCharacters", "parent": 28, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 30}}, {"id": 32, "type": "ERROR", "text": ":(NSString", "parent": 25, "children": [33], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 40}}, {"id": 33, "type": "identifier", "text": "NSString", "parent": 32, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 40}}, {"id": 34, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 42}}, {"id": 35, "type": "identifier", "text": "string", "parent": 25, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 49}}, {"id": 36, "type": "--", "text": "", "parent": 24, "children": [], "start_point": {"row": 19, "column": 49}, "end_point": {"row": 19, "column": 49}}, {"id": 37, "type": "unary_expression", "text": "+ (NSString *)ap_generateUUID", "parent": null, "children": [38, 39], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 29}}, {"id": 38, "type": "+", "text": "+", "parent": 37, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 39, "type": "cast_expression", "text": "(NSString *)ap_generateUUID", "parent": 37, "children": [40, 44], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 29}}, {"id": 40, "type": "type_descriptor", "text": "NSString *", "parent": 39, "children": [41, 42], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 13}}, {"id": 41, "type": "type_identifier", "text": "NSString", "parent": 40, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 11}}, {"id": 42, "type": "abstract_pointer_declarator", "text": "*", "parent": 40, "children": [43], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 44, "type": "identifier", "text": "ap_generateUUID", "parent": 39, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 29}}, {"id": 45, "type": "ERROR", "text": "@", "parent": null, "children": [46], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 46, "type": "ERROR", "text": "@", "parent": 45, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 12, 18, 20, 24, 25, 26, 28, 37, 39], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 14, 17, 22, 23, 30, 31, 33, 35, 41, 44], "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": "NSString (APFoundation)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// NSString+StripHTML.h\n// Golfarenan\n//\n// Created by <NAME> on 2013-07-02.\n// Copyright (c) 2013 Apping AB. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSString (APFoundation)\n\n/*\n Strips everything that looks like a HTML tag\n */\n- (NSString *)ap_stringByStrippingHTML;\n\n- (NSUInteger)ap_integerValueFromHex;\n\n+ (BOOL)ap_stringHasCharacters:(NSString *)string;\n\n+ (NSString *)ap_generateUUID;\n\n@end\n"}
80,419
c
#ifndef QT_SANDBOX_CONFIGURATION_H_ #define QT_SANDBOX_CONFIGURATION_H_ #include <memory> #include <vector> #include <QObject> #include <QSettings> #include <QMetaType> #include <QFileSystemWatcher> #include <QDebug> #include <ui.h> #define GOS_CONFIGURATION_FILE_PATH "configuration.ini" namespace qt { namespace sandbox { class Configuration; } } bool operator==( const ::qt::sandbox::Configuration& lhs, const ::qt::sandbox::Configuration& rhs); bool operator!=( const ::qt::sandbox::Configuration& lhs, const ::qt::sandbox::Configuration& rhs); int compare( const ::qt::sandbox::Configuration& first, const ::qt::sandbox::Configuration& second); namespace qt { namespace sandbox { class Configuration : public QObject { Q_OBJECT /* UI configuration */ Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged) protected: const QSettings::Format SettingsFormat = QSettings::IniFormat; public: explicit Configuration(const QString& filepath, QObject* parent = nullptr); explicit Configuration(QObject* parent = nullptr); virtual QSettings* initialize(); virtual QSettings* read(const bool& sync = false); virtual QSettings* write(const bool& sync = false); /* Ui configuration */ Ui* ui(); bool applyUiDialog(Ui* ui); signals: void uiChanged(); public slots: private slots: private: typedef std::unique_ptr<QSettings> SettingsPointer; typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer; /* Writing */ QSettings* startWriting(); void writeUi(); virtual QSettings* completeWriting(const bool& sync = false); /* Ui configuration */ Ui ui_; /* Private */ SettingsPointer settings_; WatcherPointer watcher_; QString filepath_; }; } } #endif
27.8
59
(translation_unit) "#ifndef QT_SANDBOX_CONFIGURATION_H_\n#define QT_SANDBOX_CONFIGURATION_H_\n\n#include <memory>\n#include <vector>\n\n#include <QObject>\n#include <QSettings>\n#include <QMetaType>\n#include <QFileSystemWatcher>\n#include <QDebug>\n\n#include <ui.h>\n\n#define GOS_CONFIGURATION_FILE_PATH "configuration.ini"\n\nnamespace qt { namespace sandbox { class Configuration; } }\n\nbool operator==(\n const ::qt::sandbox::Configuration& lhs, \n const ::qt::sandbox::Configuration& rhs);\nbool operator!=(\n const ::qt::sandbox::Configuration& lhs,\n const ::qt::sandbox::Configuration& rhs);\n\nint compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second);\n\nnamespace qt {\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}\n}\n\n#endif\n" (preproc_ifdef) "#ifndef QT_SANDBOX_CONFIGURATION_H_\n#define QT_SANDBOX_CONFIGURATION_H_\n\n#include <memory>\n#include <vector>\n\n#include <QObject>\n#include <QSettings>\n#include <QMetaType>\n#include <QFileSystemWatcher>\n#include <QDebug>\n\n#include <ui.h>\n\n#define GOS_CONFIGURATION_FILE_PATH "configuration.ini"\n\nnamespace qt { namespace sandbox { class Configuration; } }\n\nbool operator==(\n const ::qt::sandbox::Configuration& lhs, \n const ::qt::sandbox::Configuration& rhs);\nbool operator!=(\n const ::qt::sandbox::Configuration& lhs,\n const ::qt::sandbox::Configuration& rhs);\n\nint compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second);\n\nnamespace qt {\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "QT_SANDBOX_CONFIGURATION_H_" (preproc_def) "#define QT_SANDBOX_CONFIGURATION_H_\n" (#define) "#define" (identifier) "QT_SANDBOX_CONFIGURATION_H_" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <QObject>\n" (#include) "#include" (system_lib_string) "<QObject>" (preproc_include) "#include <QSettings>\n" (#include) "#include" (system_lib_string) "<QSettings>" (preproc_include) "#include <QMetaType>\n" (#include) "#include" (system_lib_string) "<QMetaType>" (preproc_include) "#include <QFileSystemWatcher>\n" (#include) "#include" (system_lib_string) "<QFileSystemWatcher>" (preproc_include) "#include <QDebug>\n" (#include) "#include" (system_lib_string) "<QDebug>" (preproc_include) "#include <ui.h>\n" (#include) "#include" (system_lib_string) "<ui.h>" (preproc_def) "#define GOS_CONFIGURATION_FILE_PATH "configuration.ini"\n" (#define) "#define" (identifier) "GOS_CONFIGURATION_FILE_PATH" (preproc_arg) ""configuration.ini"" (function_definition) "namespace qt { namespace sandbox { class Configuration; } }" (type_identifier) "namespace" (identifier) "qt" (compound_statement) "{ namespace sandbox { class Configuration; } }" ({) "{" (function_definition) "namespace sandbox { class Configuration; }" (type_identifier) "namespace" (identifier) "sandbox" (compound_statement) "{ class Configuration; }" ({) "{" (declaration) "class Configuration;" (type_identifier) "class" (identifier) "Configuration" (;) ";" (}) "}" (}) "}" (declaration) "bool operator==(\n const ::qt::sandbox::Configuration& lhs, \n const ::qt::sandbox::Configuration& rhs);" (primitive_type) "bool" (ERROR) "operator==(\n const ::qt::sandbox::Configuration&" (identifier) "operator" (==) "==" (() "(" (const) "const" (:) ":" (:) ":" (identifier) "qt" (:) ":" (:) ":" (identifier) "sandbox" (:) ":" (:) ":" (identifier) "Configuration" (&) "&" (identifier) "lhs" (,) "," (ERROR) "const ::qt::sandbox::Configuration&" (identifier) "const" (:) ":" (:) ":" (identifier) "qt" (:) ":" (:) ":" (identifier) "sandbox" (:) ":" (:) ":" (identifier) "Configuration" (&) "&" (identifier) "rhs" (ERROR) ")" ()) ")" (;) ";" (declaration) "bool operator!=(\n const ::qt::sandbox::Configuration& lhs,\n const ::qt::sandbox::Configuration& rhs);" (primitive_type) "bool" (ERROR) "operator!=(\n const ::qt::sandbox::Configuration&" (identifier) "operator" (!=) "!=" (() "(" (const) "const" (:) ":" (:) ":" (identifier) "qt" (:) ":" (:) ":" (identifier) "sandbox" (:) ":" (:) ":" (identifier) "Configuration" (&) "&" (identifier) "lhs" (,) "," (ERROR) "const ::qt::sandbox::Configuration&" (identifier) "const" (:) ":" (:) ":" (identifier) "qt" (:) ":" (:) ":" (identifier) "sandbox" (:) ":" (:) ":" (identifier) "Configuration" (&) "&" (identifier) "rhs" (ERROR) ")" ()) ")" (;) ";" (declaration) "int compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second);" (primitive_type) "int" (function_declarator) "compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second)" (identifier) "compare" (parameter_list) "(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second)" (() "(" (parameter_declaration) "const ::qt::sandbox::Configuration& first" (type_qualifier) "const" (const) "const" (ERROR) "::" (:) ":" (:) ":" (type_identifier) "qt" (ERROR) "::sandbox::Configuration&" (:) ":" (:) ":" (identifier) "sandbox" (:) ":" (:) ":" (identifier) "Configuration" (&) "&" (identifier) "first" (,) "," (parameter_declaration) "const ::qt::sandbox::Configuration& second" (type_qualifier) "const" (const) "const" (ERROR) "::" (:) ":" (:) ":" (type_identifier) "qt" (ERROR) "::sandbox::Configuration&" (:) ":" (:) ":" (identifier) "sandbox" (:) ":" (:) ":" (identifier) "Configuration" (&) "&" (identifier) "second" ()) ")" (;) ";" (function_definition) "namespace qt {\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}\n}" (type_identifier) "namespace" (identifier) "qt" (compound_statement) "{\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}\n}" ({) "{" (function_definition) "namespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}" (type_identifier) "namespace" (identifier) "sandbox" (compound_statement) "{\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}" ({) "{" (function_definition) "class Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n}" (type_identifier) "class" (identifier) "Configuration" (ERROR) ": public QObject" (:) ":" (identifier) "public" (identifier) "QObject" (compound_statement) "{\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n}" ({) "{" (declaration) "Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;" (type_identifier) "Q_OBJECT" (comment) "/* UI configuration */" (ERROR) "Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format" (function_declarator) "Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged" (identifier) "Q_PROPERTY" (parameter_list) "(Ui* ui" (() "(" (parameter_declaration) "Ui* ui" (type_identifier) "Ui" (pointer_declarator) "* ui" (*) "*" (identifier) "ui" ()) "" (identifier) "READ" (identifier) "ui" (identifier) "NOTIFY" (identifier) "uiChanged" ()) ")" (identifier) "protected" (:) ":" (const) "const" (identifier) "QSettings" (:) ":" (:) ":" (identifier) "Format" (init_declarator) "SettingsFormat = QSettings" (identifier) "SettingsFormat" (=) "=" (identifier) "QSettings" (ERROR) "::IniFormat" (:) ":" (:) ":" (identifier) "IniFormat" (;) ";" (labeled_statement) "public:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);" (statement_identifier) "public" (:) ":" (declaration) "explicit Configuration(const QString& filepath, QObject* parent = nullptr);" (type_identifier) "explicit" (init_declarator) "Configuration(const QString& filepath, QObject* parent = nullptr" (function_declarator) "Configuration(const QString& filepath, QObject* parent" (identifier) "Configuration" (parameter_list) "(const QString& filepath, QObject* parent" (() "(" (parameter_declaration) "const QString& filepath" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "filepath" (,) "," (parameter_declaration) "QObject* parent" (type_identifier) "QObject" (pointer_declarator) "* parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (declaration) "explicit Configuration(QObject* parent = nullptr);" (type_identifier) "explicit" (init_declarator) "Configuration(QObject* parent = nullptr" (function_declarator) "Configuration(QObject* parent" (identifier) "Configuration" (parameter_list) "(QObject* parent" (() "(" (parameter_declaration) "QObject* parent" (type_identifier) "QObject" (pointer_declarator) "* parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (declaration) "virtual QSettings* initialize();" (type_identifier) "virtual" (ERROR) "QSettings" (identifier) "QSettings" (pointer_declarator) "* initialize()" (*) "*" (function_declarator) "initialize()" (identifier) "initialize" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "virtual QSettings* read(const bool" (type_identifier) "virtual" (ERROR) "QSettings" (identifier) "QSettings" (*) "*" (identifier) "read" (() "(" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (expression_statement) "& sync = false);" (assignment_expression) "& sync = false" (pointer_expression) "& sync" (&) "&" (identifier) "sync" (=) "=" (false) "false" (ERROR) ")" ()) ")" (;) ";" (declaration) "virtual QSettings* write(const bool& sync = false);" (type_identifier) "virtual" (ERROR) "QSettings" (identifier) "QSettings" (init_declarator) "* write(const bool& sync = false" (pointer_declarator) "* write(const bool& sync" (*) "*" (function_declarator) "write(const bool& sync" (identifier) "write" (parameter_list) "(const bool& sync" (() "(" (parameter_declaration) "const bool& sync" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (ERROR) "&" (&) "&" (identifier) "sync" ()) "" (=) "=" (false) "false" (ERROR) ")" ()) ")" (;) ";" (comment) "/* Ui configuration */" (declaration) "Ui* ui();" (type_identifier) "Ui" (pointer_declarator) "* ui()" (*) "*" (function_declarator) "ui()" (identifier) "ui" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool applyUiDialog(Ui* ui);" (primitive_type) "bool" (function_declarator) "applyUiDialog(Ui* ui)" (identifier) "applyUiDialog" (parameter_list) "(Ui* ui)" (() "(" (parameter_declaration) "Ui* ui" (type_identifier) "Ui" (pointer_declarator) "* ui" (*) "*" (identifier) "ui" ()) ")" (;) ";" (labeled_statement) "signals:\n void uiChanged();" (statement_identifier) "signals" (:) ":" (declaration) "void uiChanged();" (primitive_type) "void" (function_declarator) "uiChanged()" (identifier) "uiChanged" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "public slots:\n\nprivate" (type_identifier) "public" (ERROR) "slots:" (identifier) "slots" (:) ":" (identifier) "private" (;) "" (labeled_statement) "slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;" (statement_identifier) "slots" (:) ":" (labeled_statement) "private:\n typedef std::unique_ptr<QSettings> SettingsPointer;" (statement_identifier) "private" (ERROR) ":\n typedef std:" (:) ":" (type_identifier) "typedef" (identifier) "std" (:) ":" (:) ":" (expression_statement) "unique_ptr<QSettings> SettingsPointer;" (binary_expression) "unique_ptr<QSettings> SettingsPointer" (binary_expression) "unique_ptr<QSettings" (identifier) "unique_ptr" (<) "<" (identifier) "QSettings" (>) ">" (identifier) "SettingsPointer" (;) ";" (type_definition) "typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;" (typedef) "typedef" (type_identifier) "std" (ERROR) "::unique_ptr<QFileSystemWatcher>" (:) ":" (:) ":" (type_identifier) "unique_ptr" (<) "<" (type_identifier) "QFileSystemWatcher" (>) ">" (type_identifier) "WatcherPointer" (;) ";" (comment) "/* Writing */" (declaration) "QSettings* startWriting();" (type_identifier) "QSettings" (pointer_declarator) "* startWriting()" (*) "*" (function_declarator) "startWriting()" (identifier) "startWriting" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void writeUi();" (primitive_type) "void" (function_declarator) "writeUi()" (identifier) "writeUi" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual QSettings* completeWriting(const bool& sync = false);" (type_identifier) "virtual" (ERROR) "QSettings" (identifier) "QSettings" (init_declarator) "* completeWriting(const bool& sync = false" (pointer_declarator) "* completeWriting(const bool& sync" (*) "*" (function_declarator) "completeWriting(const bool& sync" (identifier) "completeWriting" (parameter_list) "(const bool& sync" (() "(" (parameter_declaration) "const bool& sync" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (ERROR) "&" (&) "&" (identifier) "sync" ()) "" (=) "=" (false) "false" (ERROR) ")" ()) ")" (;) ";" (comment) "/* Ui configuration */" (declaration) "Ui ui_;" (type_identifier) "Ui" (identifier) "ui_" (;) ";" (comment) "/* Private */" (declaration) "SettingsPointer settings_;" (type_identifier) "SettingsPointer" (identifier) "settings_" (;) ";" (declaration) "WatcherPointer watcher_;" (type_identifier) "WatcherPointer" (identifier) "watcher_" (;) ";" (declaration) "QString filepath_;" (type_identifier) "QString" (identifier) "filepath_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}" (#endif) "#endif"
462
29
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 27.8, "nodes": 277, "errors": 0, "source_hash": "db58bc0e2aaf975b1681f63ef784ae8cfa3ac4e8de6346b924ae88b6bc4ddddb", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef QT_SANDBOX_CONFIGURATION_H_\n#define QT_SANDBOX_CONFIGURATION_H_\n\n#include <memory>\n#include <vector>\n\n#include <QObject>\n#include <QSettings>\n#include <QMetaType>\n#include <QFileSystemWatcher>\n#include <QDebug>\n\n#include <ui.h>\n\n#define GOS_CONFIGURATION_FILE_PATH \"configuration.ini\"\n\nnamespace qt { namespace sandbox { class Configuration; } }\n\nbool operator==(\n const ::qt::sandbox::Configuration& lhs, \n const ::qt::sandbox::Configuration& rhs);\nbool operator!=(\n const ::qt::sandbox::Configuration& lhs,\n const ::qt::sandbox::Configuration& rhs);\n\nint compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second);\n\nnamespace qt {\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 34, 42, 56, 70, 87, 276], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 84, "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": "QT_SANDBOX_CONFIGURATION_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 35}}, {"id": 3, "type": "preproc_def", "text": "#define QT_SANDBOX_CONFIGURATION_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": "QT_SANDBOX_CONFIGURATION_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 35}}, {"id": 6, "type": "preproc_include", "text": "#include <memory>\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": "<memory>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <QObject>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<QObject>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <QSettings>\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": "<QSettings>", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 20}}, {"id": 18, "type": "preproc_include", "text": "#include <QMetaType>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<QMetaType>", "parent": 18, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 21, "type": "preproc_include", "text": "#include <QFileSystemWatcher>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<QFileSystemWatcher>", "parent": 21, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 29}}, {"id": 24, "type": "preproc_include", "text": "#include <QDebug>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<QDebug>", "parent": 24, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 17}}, {"id": 27, "type": "preproc_include", "text": "#include <ui.h>\n", "parent": 0, "children": [28, 29], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<ui.h>", "parent": 27, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 15}}, {"id": 30, "type": "preproc_def", "text": "#define GOS_CONFIGURATION_FILE_PATH \"configuration.ini\"\n", "parent": 0, "children": [31, 32, 33], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 32, "type": "identifier", "text": "GOS_CONFIGURATION_FILE_PATH", "parent": 30, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 35}}, {"id": 33, "type": "preproc_arg", "text": "\"configuration.ini\"", "parent": 30, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 55}}, {"id": 34, "type": "function_definition", "text": "namespace qt { namespace sandbox { class Configuration; } }", "parent": 0, "children": [35, 36], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 59}}, {"id": 35, "type": "type_identifier", "text": "namespace", "parent": 34, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 36, "type": "identifier", "text": "qt", "parent": 34, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 12}}, {"id": 37, "type": "function_definition", "text": "namespace sandbox { class Configuration; }", "parent": 34, "children": [38, 39], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 57}}, {"id": 38, "type": "type_identifier", "text": "namespace", "parent": 37, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 24}}, {"id": 39, "type": "identifier", "text": "sandbox", "parent": 37, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 32}}, {"id": 40, "type": "declaration", "text": "class Configuration;", "parent": 37, "children": [41], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 55}}, {"id": 41, "type": "identifier", "text": "Configuration", "parent": 40, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 54}}, {"id": 42, "type": "declaration", "text": "bool operator==(\n const ::qt::sandbox::Configuration& lhs, \n const ::qt::sandbox::Configuration& rhs);", "parent": 0, "children": [43, 44, 50, 51, 55], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 20, "column": 43}}, {"id": 43, "type": "primitive_type", "text": "bool", "parent": 42, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 44, "type": "ERROR", "text": "operator==(\n const ::qt::sandbox::Configuration&", "parent": 42, "children": [45, 46, 47, 48, 49], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 19, "column": 37}}, {"id": 45, "type": "identifier", "text": "operator", "parent": 44, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 13}}, {"id": 46, "type": "==", "text": "==", "parent": 44, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 15}}, {"id": 47, "type": "identifier", "text": "qt", "parent": 44, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 12}}, {"id": 48, "type": "identifier", "text": "sandbox", "parent": 44, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 21}}, {"id": 49, "type": "identifier", "text": "Configuration", "parent": 44, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 36}}, {"id": 50, "type": "identifier", "text": "lhs", "parent": 42, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 41}}, {"id": 51, "type": "ERROR", "text": "const ::qt::sandbox::Configuration&", "parent": 42, "children": [52, 53, 54], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 37}}, {"id": 52, "type": "identifier", "text": "qt", "parent": 51, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 12}}, {"id": 53, "type": "identifier", "text": "sandbox", "parent": 51, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 21}}, {"id": 54, "type": "identifier", "text": "Configuration", "parent": 51, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 36}}, {"id": 55, "type": "identifier", "text": "rhs", "parent": 42, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 41}}, {"id": 56, "type": "declaration", "text": "bool operator!=(\n const ::qt::sandbox::Configuration& lhs,\n const ::qt::sandbox::Configuration& rhs);", "parent": 0, "children": [57, 58, 64, 65, 69], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 43}}, {"id": 57, "type": "primitive_type", "text": "bool", "parent": 56, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 58, "type": "ERROR", "text": "operator!=(\n const ::qt::sandbox::Configuration&", "parent": 56, "children": [59, 60, 61, 62, 63], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 22, "column": 37}}, {"id": 59, "type": "identifier", "text": "operator", "parent": 58, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 13}}, {"id": 60, "type": "!=", "text": "!=", "parent": 58, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 15}}, {"id": 61, "type": "identifier", "text": "qt", "parent": 58, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 12}}, {"id": 62, "type": "identifier", "text": "sandbox", "parent": 58, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 21}}, {"id": 63, "type": "identifier", "text": "Configuration", "parent": 58, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 36}}, {"id": 64, "type": "identifier", "text": "lhs", "parent": 56, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 41}}, {"id": 65, "type": "ERROR", "text": "const ::qt::sandbox::Configuration&", "parent": 56, "children": [66, 67, 68], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 37}}, {"id": 66, "type": "identifier", "text": "qt", "parent": 65, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 12}}, {"id": 67, "type": "identifier", "text": "sandbox", "parent": 65, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 21}}, {"id": 68, "type": "identifier", "text": "Configuration", "parent": 65, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 36}}, {"id": 69, "type": "identifier", "text": "rhs", "parent": 56, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 41}}, {"id": 70, "type": "declaration", "text": "int compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second);", "parent": 0, "children": [71, 72], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 27, "column": 46}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 70, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 3}}, {"id": 72, "type": "function_declarator", "text": "compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second)", "parent": 70, "children": [73, 74], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 27, "column": 45}}, {"id": 73, "type": "identifier", "text": "compare", "parent": 72, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 11}}, {"id": 74, "type": "parameter_list", "text": "(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second)", "parent": 72, "children": [75, 81], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 27, "column": 45}}, {"id": 75, "type": "parameter_declaration", "text": "const ::qt::sandbox::Configuration& first", "parent": 74, "children": [76, 77, 80], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 43}}, {"id": 76, "type": "type_identifier", "text": "qt", "parent": 75, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 12}}, {"id": 77, "type": "ERROR", "text": "::sandbox::Configuration&", "parent": 75, "children": [78, 79], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 37}}, {"id": 78, "type": "identifier", "text": "sandbox", "parent": 77, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 21}}, {"id": 79, "type": "identifier", "text": "Configuration", "parent": 77, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 36}}, {"id": 80, "type": "identifier", "text": "first", "parent": 75, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 43}}, {"id": 81, "type": "parameter_declaration", "text": "const ::qt::sandbox::Configuration& second", "parent": 74, "children": [82, 83, 86], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 44}}, {"id": 82, "type": "type_identifier", "text": "qt", "parent": 81, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 12}}, {"id": 83, "type": "ERROR", "text": "::sandbox::Configuration&", "parent": 81, "children": [84, 85], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 37}}, {"id": 84, "type": "identifier", "text": "sandbox", "parent": 83, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 21}}, {"id": 85, "type": "identifier", "text": "Configuration", "parent": 83, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 36}}, {"id": 86, "type": "identifier", "text": "second", "parent": 81, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 44}}, {"id": 87, "type": "function_definition", "text": "namespace qt {\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}\n}", "parent": 0, "children": [88, 89], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 88, "type": "type_identifier", "text": "namespace", "parent": 87, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 9}}, {"id": 89, "type": "identifier", "text": "qt", "parent": 87, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 12}}, {"id": 90, "type": "function_definition", "text": "namespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}", "parent": 87, "children": [91, 92], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 91, "type": "type_identifier", "text": "namespace", "parent": 90, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 9}}, {"id": 92, "type": "identifier", "text": "sandbox", "parent": 90, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 17}}, {"id": 93, "type": "function_definition", "text": "class Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n}", "parent": 90, "children": [94, 95], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 94, "type": "identifier", "text": "Configuration", "parent": 93, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 19}}, {"id": 95, "type": "ERROR", "text": ": public QObject", "parent": 93, "children": [96], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 36}}, {"id": 96, "type": "identifier", "text": "QObject", "parent": 95, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 36}}, {"id": 97, "type": "declaration", "text": "Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;", "parent": 93, "children": [98, 99, 114, 118], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 39, "column": 64}}, {"id": 98, "type": "type_identifier", "text": "Q_OBJECT", "parent": 97, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 10}}, {"id": 99, "type": "ERROR", "text": "Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format", "parent": 97, "children": [100, 112, 113], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 39, "column": 25}}, {"id": 100, "type": "function_declarator", "text": "Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged", "parent": 99, "children": [101, 102, 108, 109, 110, 111], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 46}}, {"id": 101, "type": "identifier", "text": "Q_PROPERTY", "parent": 100, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 14}}, {"id": 102, "type": "parameter_list", "text": "(Ui* ui", "parent": 100, "children": [103], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 21}}, {"id": 103, "type": "parameter_declaration", "text": "Ui* ui", "parent": 102, "children": [104, 105], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 21}}, {"id": 104, "type": "type_identifier", "text": "Ui", "parent": 103, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 17}}, {"id": 105, "type": "pointer_declarator", "text": "* ui", "parent": 103, "children": [106, 107], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 21}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 18}}, {"id": 107, "type": "identifier", "text": "ui", "parent": 105, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 21}}, {"id": 108, "type": "identifier", "text": "READ", "parent": 100, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 26}}, {"id": 109, "type": "identifier", "text": "ui", "parent": 100, "children": [], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 29}}, {"id": 110, "type": "identifier", "text": "NOTIFY", "parent": 100, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 36}}, {"id": 111, "type": "identifier", "text": "uiChanged", "parent": 100, "children": [], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 46}}, {"id": 112, "type": "identifier", "text": "QSettings", "parent": 99, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 17}}, {"id": 113, "type": "identifier", "text": "Format", "parent": 99, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 25}}, {"id": 114, "type": "init_declarator", "text": "SettingsFormat = QSettings", "parent": 97, "children": [115, 116, 117], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 52}}, {"id": 115, "type": "identifier", "text": "SettingsFormat", "parent": 114, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 40}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 42}}, {"id": 117, "type": "identifier", "text": "QSettings", "parent": 114, "children": [], "start_point": {"row": 39, "column": 43}, "end_point": {"row": 39, "column": 52}}, {"id": 118, "type": "ERROR", "text": "::IniFormat", "parent": 97, "children": [119], "start_point": {"row": 39, "column": 52}, "end_point": {"row": 39, "column": 63}}, {"id": 119, "type": "identifier", "text": "IniFormat", "parent": 118, "children": [], "start_point": {"row": 39, "column": 54}, "end_point": {"row": 39, "column": 63}}, {"id": 120, "type": "labeled_statement", "text": "public:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);", "parent": 93, "children": [121], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 77}}, {"id": 121, "type": "declaration", "text": "explicit Configuration(const QString& filepath, QObject* parent = nullptr);", "parent": 120, "children": [122, 123], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 77}}, {"id": 122, "type": "type_identifier", "text": "explicit", "parent": 121, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 10}}, {"id": 123, "type": "init_declarator", "text": "Configuration(const QString& filepath, QObject* parent = nullptr", "parent": 121, "children": [124, 135, 136], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 75}}, {"id": 124, "type": "function_declarator", "text": "Configuration(const QString& filepath, QObject* parent", "parent": 123, "children": [125, 126], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 65}}, {"id": 125, "type": "identifier", "text": "Configuration", "parent": 124, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 24}}, {"id": 126, "type": "parameter_list", "text": "(const QString& filepath, QObject* parent", "parent": 124, "children": [127, 130], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 65}}, {"id": 127, "type": "parameter_declaration", "text": "const QString& filepath", "parent": 126, "children": [128, 129], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 48}}, {"id": 128, "type": "type_identifier", "text": "QString", "parent": 127, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 38}}, {"id": 129, "type": "identifier", "text": "filepath", "parent": 127, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 48}}, {"id": 130, "type": "parameter_declaration", "text": "QObject* parent", "parent": 126, "children": [131, 132], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 65}}, {"id": 131, "type": "type_identifier", "text": "QObject", "parent": 130, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 57}}, {"id": 132, "type": "pointer_declarator", "text": "* parent", "parent": 130, "children": [133, 134], "start_point": {"row": 42, "column": 57}, "end_point": {"row": 42, "column": 65}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 42, "column": 57}, "end_point": {"row": 42, "column": 58}}, {"id": 134, "type": "identifier", "text": "parent", "parent": 132, "children": [], "start_point": {"row": 42, "column": 59}, "end_point": {"row": 42, "column": 65}}, {"id": 135, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 42, "column": 66}, "end_point": {"row": 42, "column": 67}}, {"id": 136, "type": "null", "text": "nullptr", "parent": 123, "children": [137], "start_point": {"row": 42, "column": 68}, "end_point": {"row": 42, "column": 75}}, {"id": 137, "type": "nullptr", "text": "nullptr", "parent": 136, "children": [], "start_point": {"row": 42, "column": 68}, "end_point": {"row": 42, "column": 75}}, {"id": 138, "type": "declaration", "text": "explicit Configuration(QObject* parent = nullptr);", "parent": 93, "children": [139, 140], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 52}}, {"id": 139, "type": "type_identifier", "text": "explicit", "parent": 138, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 10}}, {"id": 140, "type": "init_declarator", "text": "Configuration(QObject* parent = nullptr", "parent": 138, "children": [141, 149, 150], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 50}}, {"id": 141, "type": "function_declarator", "text": "Configuration(QObject* parent", "parent": 140, "children": [142, 143], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 40}}, {"id": 142, "type": "identifier", "text": "Configuration", "parent": 141, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 24}}, {"id": 143, "type": "parameter_list", "text": "(QObject* parent", "parent": 141, "children": [144], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 40}}, {"id": 144, "type": "parameter_declaration", "text": "QObject* parent", "parent": 143, "children": [145, 146], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 40}}, {"id": 145, "type": "type_identifier", "text": "QObject", "parent": 144, "children": [], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 32}}, {"id": 146, "type": "pointer_declarator", "text": "* parent", "parent": 144, "children": [147, 148], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 40}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 33}}, {"id": 148, "type": "identifier", "text": "parent", "parent": 146, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 40}}, {"id": 149, "type": "=", "text": "=", "parent": 140, "children": [], "start_point": {"row": 43, "column": 41}, "end_point": {"row": 43, "column": 42}}, {"id": 150, "type": "null", "text": "nullptr", "parent": 140, "children": [151], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 43, "column": 50}}, {"id": 151, "type": "nullptr", "text": "nullptr", "parent": 150, "children": [], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 43, "column": 50}}, {"id": 152, "type": "declaration", "text": "virtual QSettings* initialize();", "parent": 93, "children": [153, 154, 156], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 34}}, {"id": 153, "type": "type_identifier", "text": "virtual", "parent": 152, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 154, "type": "ERROR", "text": "QSettings", "parent": 152, "children": [155], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 19}}, {"id": 155, "type": "identifier", "text": "QSettings", "parent": 154, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 19}}, {"id": 156, "type": "pointer_declarator", "text": "* initialize()", "parent": 152, "children": [157, 158], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 33}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 20}}, {"id": 158, "type": "function_declarator", "text": "initialize()", "parent": 156, "children": [159, 160], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 33}}, {"id": 159, "type": "identifier", "text": "initialize", "parent": 158, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 31}}, {"id": 160, "type": "parameter_list", "text": "()", "parent": 158, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 33}}, {"id": 161, "type": "ERROR", "text": "virtual QSettings* read(const bool", "parent": 93, "children": [162, 163, 165, 166, 167], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 36}}, {"id": 162, "type": "type_identifier", "text": "virtual", "parent": 161, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 9}}, {"id": 163, "type": "ERROR", "text": "QSettings", "parent": 161, "children": [164], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 19}}, {"id": 164, "type": "identifier", "text": "QSettings", "parent": 163, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 19}}, {"id": 165, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 166, "type": "identifier", "text": "read", "parent": 161, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 25}}, {"id": 167, "type": "primitive_type", "text": "bool", "parent": 161, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 36}}, {"id": 168, "type": "assignment_expression", "text": "& sync = false", "parent": 93, "children": [169, 171, 172], "start_point": {"row": 47, "column": 36}, "end_point": {"row": 47, "column": 50}}, {"id": 169, "type": "pointer_expression", "text": "& sync", "parent": 168, "children": [170], "start_point": {"row": 47, "column": 36}, "end_point": {"row": 47, "column": 42}}, {"id": 170, "type": "identifier", "text": "sync", "parent": 169, "children": [], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 42}}, {"id": 171, "type": "=", "text": "=", "parent": 168, "children": [], "start_point": {"row": 47, "column": 43}, "end_point": {"row": 47, "column": 44}}, {"id": 172, "type": "false", "text": "false", "parent": 168, "children": [], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 50}}, {"id": 173, "type": "declaration", "text": "virtual QSettings* write(const bool& sync = false);", "parent": 93, "children": [174, 175, 177], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 53}}, {"id": 174, "type": "type_identifier", "text": "virtual", "parent": 173, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 9}}, {"id": 175, "type": "ERROR", "text": "QSettings", "parent": 173, "children": [176], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 19}}, {"id": 176, "type": "identifier", "text": "QSettings", "parent": 175, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 19}}, {"id": 177, "type": "init_declarator", "text": "* write(const bool& sync = false", "parent": 173, "children": [178, 186, 187], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 51}}, {"id": 178, "type": "pointer_declarator", "text": "* write(const bool& sync", "parent": 177, "children": [179, 180], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 43}}, {"id": 179, "type": "*", "text": "*", "parent": 178, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 20}}, {"id": 180, "type": "function_declarator", "text": "write(const bool& sync", "parent": 178, "children": [181, 182], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 43}}, {"id": 181, "type": "identifier", "text": "write", "parent": 180, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 26}}, {"id": 182, "type": "parameter_list", "text": "(const bool& sync", "parent": 180, "children": [183], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 43}}, {"id": 183, "type": "parameter_declaration", "text": "const bool& sync", "parent": 182, "children": [184, 185], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 43}}, {"id": 184, "type": "primitive_type", "text": "bool", "parent": 183, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 37}}, {"id": 185, "type": "identifier", "text": "sync", "parent": 183, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 43}}, {"id": 186, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 48, "column": 44}, "end_point": {"row": 48, "column": 45}}, {"id": 187, "type": "false", "text": "false", "parent": 177, "children": [], "start_point": {"row": 48, "column": 46}, "end_point": {"row": 48, "column": 51}}, {"id": 188, "type": "declaration", "text": "Ui* ui();", "parent": 93, "children": [189, 190], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 11}}, {"id": 189, "type": "type_identifier", "text": "Ui", "parent": 188, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 4}}, {"id": 190, "type": "pointer_declarator", "text": "* ui()", "parent": 188, "children": [191, 192], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 10}}, {"id": 191, "type": "*", "text": "*", "parent": 190, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 5}}, {"id": 192, "type": "function_declarator", "text": "ui()", "parent": 190, "children": [193, 194], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 10}}, {"id": 193, "type": "identifier", "text": "ui", "parent": 192, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 8}}, {"id": 194, "type": "parameter_list", "text": "()", "parent": 192, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 10}}, {"id": 195, "type": "declaration", "text": "bool applyUiDialog(Ui* ui);", "parent": 93, "children": [196, 197], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 29}}, {"id": 196, "type": "primitive_type", "text": "bool", "parent": 195, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 6}}, {"id": 197, "type": "function_declarator", "text": "applyUiDialog(Ui* ui)", "parent": 195, "children": [198, 199], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 28}}, {"id": 198, "type": "identifier", "text": "applyUiDialog", "parent": 197, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 20}}, {"id": 199, "type": "parameter_list", "text": "(Ui* ui)", "parent": 197, "children": [200], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 28}}, {"id": 200, "type": "parameter_declaration", "text": "Ui* ui", "parent": 199, "children": [201, 202], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 27}}, {"id": 201, "type": "type_identifier", "text": "Ui", "parent": 200, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 23}}, {"id": 202, "type": "pointer_declarator", "text": "* ui", "parent": 200, "children": [203, 204], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 27}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 24}}, {"id": 204, "type": "identifier", "text": "ui", "parent": 202, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 27}}, {"id": 205, "type": "labeled_statement", "text": "signals:\n void uiChanged();", "parent": 93, "children": [206, 207], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 19}}, {"id": 206, "type": "statement_identifier", "text": "signals", "parent": 205, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 207, "type": "declaration", "text": "void uiChanged();", "parent": 205, "children": [208, 209], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 19}}, {"id": 208, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 6}}, {"id": 209, "type": "function_declarator", "text": "uiChanged()", "parent": 207, "children": [210, 211], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 18}}, {"id": 210, "type": "identifier", "text": "uiChanged", "parent": 209, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 16}}, {"id": 211, "type": "parameter_list", "text": "()", "parent": 209, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 18}}, {"id": 212, "type": "declaration", "text": "public slots:\n\nprivate", "parent": 93, "children": [213], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 213, "type": "ERROR", "text": "slots:", "parent": 212, "children": [214], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 13}}, {"id": 214, "type": "identifier", "text": "slots", "parent": 213, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 12}}, {"id": 215, "type": "labeled_statement", "text": "slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;", "parent": 93, "children": [216, 217], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 63, "column": 53}}, {"id": 216, "type": "statement_identifier", "text": "slots", "parent": 215, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 13}}, {"id": 217, "type": "labeled_statement", "text": "private:\n typedef std::unique_ptr<QSettings> SettingsPointer;", "parent": 215, "children": [218], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 53}}, {"id": 218, "type": "ERROR", "text": ":\n typedef std:", "parent": 217, "children": [219, 220], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 63, "column": 14}}, {"id": 219, "type": "type_identifier", "text": "typedef", "parent": 218, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 9}}, {"id": 220, "type": "identifier", "text": "std", "parent": 218, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 13}}, {"id": 221, "type": "binary_expression", "text": "unique_ptr<QSettings> SettingsPointer", "parent": 217, "children": [222, 226, 227], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 52}}, {"id": 222, "type": "binary_expression", "text": "unique_ptr<QSettings", "parent": 221, "children": [223, 224, 225], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 35}}, {"id": 223, "type": "identifier", "text": "unique_ptr", "parent": 222, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 25}}, {"id": 224, "type": "<", "text": "<", "parent": 222, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 26}}, {"id": 225, "type": "identifier", "text": "QSettings", "parent": 222, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 35}}, {"id": 226, "type": ">", "text": ">", "parent": 221, "children": [], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 36}}, {"id": 227, "type": "identifier", "text": "SettingsPointer", "parent": 221, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 52}}, {"id": 228, "type": "type_definition", "text": "typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;", "parent": 93, "children": [229, 230, 231, 236], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 61}}, {"id": 229, "type": "typedef", "text": "typedef", "parent": 228, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 9}}, {"id": 230, "type": "type_identifier", "text": "std", "parent": 228, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 13}}, {"id": 231, "type": "ERROR", "text": "::unique_ptr<QFileSystemWatcher>", "parent": 228, "children": [232, 233, 234, 235], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 45}}, {"id": 232, "type": "type_identifier", "text": "unique_ptr", "parent": 231, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 25}}, {"id": 233, "type": "<", "text": "<", "parent": 231, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 26}}, {"id": 234, "type": "type_identifier", "text": "QFileSystemWatcher", "parent": 231, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 44}}, {"id": 235, "type": ">", "text": ">", "parent": 231, "children": [], "start_point": {"row": 64, "column": 44}, "end_point": {"row": 64, "column": 45}}, {"id": 236, "type": "type_identifier", "text": "WatcherPointer", "parent": 228, "children": [], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 60}}, {"id": 237, "type": "declaration", "text": "QSettings* startWriting();", "parent": 93, "children": [238, 239], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 28}}, {"id": 238, "type": "type_identifier", "text": "QSettings", "parent": 237, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 11}}, {"id": 239, "type": "pointer_declarator", "text": "* startWriting()", "parent": 237, "children": [240, 241], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 27}}, {"id": 240, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 12}}, {"id": 241, "type": "function_declarator", "text": "startWriting()", "parent": 239, "children": [242, 243], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 27}}, {"id": 242, "type": "identifier", "text": "startWriting", "parent": 241, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 25}}, {"id": 243, "type": "parameter_list", "text": "()", "parent": 241, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 27}}, {"id": 244, "type": "declaration", "text": "void writeUi();", "parent": 93, "children": [245, 246], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 17}}, {"id": 245, "type": "primitive_type", "text": "void", "parent": 244, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 6}}, {"id": 246, "type": "function_declarator", "text": "writeUi()", "parent": 244, "children": [247, 248], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 16}}, {"id": 247, "type": "identifier", "text": "writeUi", "parent": 246, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 14}}, {"id": 248, "type": "parameter_list", "text": "()", "parent": 246, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 16}}, {"id": 249, "type": "declaration", "text": "virtual QSettings* completeWriting(const bool& sync = false);", "parent": 93, "children": [250, 251, 253], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 63}}, {"id": 250, "type": "type_identifier", "text": "virtual", "parent": 249, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 9}}, {"id": 251, "type": "ERROR", "text": "QSettings", "parent": 249, "children": [252], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 19}}, {"id": 252, "type": "identifier", "text": "QSettings", "parent": 251, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 19}}, {"id": 253, "type": "init_declarator", "text": "* completeWriting(const bool& sync = false", "parent": 249, "children": [254, 262, 263], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 61}}, {"id": 254, "type": "pointer_declarator", "text": "* completeWriting(const bool& sync", "parent": 253, "children": [255, 256], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 53}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 20}}, {"id": 256, "type": "function_declarator", "text": "completeWriting(const bool& sync", "parent": 254, "children": [257, 258], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 53}}, {"id": 257, "type": "identifier", "text": "completeWriting", "parent": 256, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 36}}, {"id": 258, "type": "parameter_list", "text": "(const bool& sync", "parent": 256, "children": [259], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 69, "column": 53}}, {"id": 259, "type": "parameter_declaration", "text": "const bool& sync", "parent": 258, "children": [260, 261], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 53}}, {"id": 260, "type": "primitive_type", "text": "bool", "parent": 259, "children": [], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 47}}, {"id": 261, "type": "identifier", "text": "sync", "parent": 259, "children": [], "start_point": {"row": 69, "column": 49}, "end_point": {"row": 69, "column": 53}}, {"id": 262, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 69, "column": 54}, "end_point": {"row": 69, "column": 55}}, {"id": 263, "type": "false", "text": "false", "parent": 253, "children": [], "start_point": {"row": 69, "column": 56}, "end_point": {"row": 69, "column": 61}}, {"id": 264, "type": "declaration", "text": "Ui ui_;", "parent": 93, "children": [265, 266], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 9}}, {"id": 265, "type": "type_identifier", "text": "Ui", "parent": 264, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 4}}, {"id": 266, "type": "identifier", "text": "ui_", "parent": 264, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 8}}, {"id": 267, "type": "declaration", "text": "SettingsPointer settings_;", "parent": 93, "children": [268, 269], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 28}}, {"id": 268, "type": "type_identifier", "text": "SettingsPointer", "parent": 267, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 17}}, {"id": 269, "type": "identifier", "text": "settings_", "parent": 267, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 27}}, {"id": 270, "type": "declaration", "text": "WatcherPointer watcher_;", "parent": 93, "children": [271, 272], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 26}}, {"id": 271, "type": "type_identifier", "text": "WatcherPointer", "parent": 270, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 16}}, {"id": 272, "type": "identifier", "text": "watcher_", "parent": 270, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 25}}, {"id": 273, "type": "declaration", "text": "QString filepath_;", "parent": 93, "children": [274, 275], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 20}}, {"id": 274, "type": "type_identifier", "text": "QString", "parent": 273, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 9}}, {"id": 275, "type": "identifier", "text": "filepath_", "parent": 273, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 19}}, {"id": 276, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 6}}]}, "node_categories": {"declarations": {"functions": [34, 37, 72, 87, 90, 93, 100, 124, 141, 158, 180, 192, 197, 209, 241, 246, 256], "variables": [40, 42, 56, 70, 75, 81, 97, 103, 121, 127, 130, 138, 144, 152, 173, 183, 188, 195, 200, 207, 212, 228, 237, 244, 249, 259, 264, 267, 270, 273], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [169, 221, 222], "assignments": [168], "loops": [], "conditionals": [0, 1, 2, 5, 32, 35, 36, 38, 39, 41, 45, 47, 48, 49, 50, 52, 53, 54, 55, 59, 61, 62, 63, 64, 66, 67, 68, 69, 73, 76, 78, 79, 80, 82, 84, 85, 86, 88, 89, 91, 92, 94, 96, 98, 101, 104, 107, 108, 109, 110, 111, 112, 113, 115, 117, 119, 122, 125, 128, 129, 131, 134, 139, 142, 145, 148, 153, 155, 159, 162, 164, 166, 170, 174, 176, 181, 185, 189, 193, 198, 201, 204, 206, 210, 214, 216, 219, 220, 223, 225, 227, 230, 232, 234, 236, 238, 242, 247, 250, 252, 257, 261, 265, 266, 268, 269, 271, 272, 274, 275, 276], "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": 34, "universal_type": "function", "name": "Configuration;", "text_snippet": "namespace qt { namespace sandbox { class Configuration; } }"}, {"node_id": 37, "universal_type": "function", "name": "Configuration;", "text_snippet": "namespace sandbox { class Configuration; }"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second)"}, {"node_id": 87, "universal_type": "function", "name": "Configuration", "text_snippet": "namespace qt {\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI con"}, {"node_id": 90, "universal_type": "function", "name": "Configuration", "text_snippet": "namespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n "}, {"node_id": 93, "universal_type": "function", "name": "Configuration", "text_snippet": "class Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui "}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "Configuration(const QString& filepath, QObject* parent"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "Configuration(QObject* parent"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "initialize()"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "write(const bool& sync"}, {"node_id": 192, "universal_type": "function", "name": "unknown", "text_snippet": "ui()"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "applyUiDialog(Ui* ui)"}, {"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "uiChanged()"}, {"node_id": 241, "universal_type": "function", "name": "unknown", "text_snippet": "startWriting()"}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": "writeUi()"}, {"node_id": 256, "universal_type": "function", "name": "unknown", "text_snippet": "completeWriting(const bool& sync"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <memory>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QObject>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <QSettings>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <QMetaType>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <QFileSystemWatcher>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <QDebug>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <ui.h>\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "#ifndef QT_SANDBOX_CONFIGURATION_H_\n#define QT_SANDBOX_CONFIGURATION_H_\n\n#include <memory>\n#include <vector>\n\n#include <QObject>\n#include <QSettings>\n#include <QMetaType>\n#include <QFileSystemWatcher>\n#include <QDebug>\n\n#include <ui.h>\n\n#define GOS_CONFIGURATION_FILE_PATH \"configuration.ini\"\n\nnamespace qt { namespace sandbox { class Configuration; } }\n\nbool operator==(\n const ::qt::sandbox::Configuration& lhs, \n const ::qt::sandbox::Configuration& rhs);\nbool operator!=(\n const ::qt::sandbox::Configuration& lhs,\n const ::qt::sandbox::Configuration& rhs);\n\nint compare(\n const ::qt::sandbox::Configuration& first,\n const ::qt::sandbox::Configuration& second);\n\nnamespace qt {\nnamespace sandbox {\n\nclass Configuration : public QObject {\n Q_OBJECT\n\n /* UI configuration */\n Q_PROPERTY(Ui* ui READ ui NOTIFY uiChanged)\n\nprotected:\n const QSettings::Format SettingsFormat = QSettings::IniFormat;\n\npublic:\n explicit Configuration(const QString& filepath, QObject* parent = nullptr);\n explicit Configuration(QObject* parent = nullptr);\n\n virtual QSettings* initialize();\n\n virtual QSettings* read(const bool& sync = false);\n virtual QSettings* write(const bool& sync = false);\n\n /* Ui configuration */\n Ui* ui();\n\n bool applyUiDialog(Ui* ui);\n\nsignals:\n void uiChanged();\n\npublic slots:\n\nprivate slots:\n\nprivate:\n typedef std::unique_ptr<QSettings> SettingsPointer;\n typedef std::unique_ptr<QFileSystemWatcher> WatcherPointer;\n\n /* Writing */\n QSettings* startWriting();\n void writeUi();\n virtual QSettings* completeWriting(const bool& sync = false);\n\n /* Ui configuration */\n Ui ui_;\n\n /* Private */\n SettingsPointer settings_;\n WatcherPointer watcher_;\n\n QString filepath_;\n};\n\n}\n}\n\n#endif\n"}
80,420
c
#ifndef SP2_COLLISION_3D_CAPSULE_H #define SP2_COLLISION_3D_CAPSULE_H #include <sp2/collision/3d/shape.h> namespace sp { namespace collision { class Capsule3D : public Shape3D { public: enum class Direction { X, Y, Z }; Capsule3D(Direction direction, double radius, double height); private: Direction direction; double radius; double height; virtual btCollisionShape* createShape() const override; }; }//namespace collision }//namespace sp #endif//SP2_COLLISION_3D_CAPSULE_H
22.41
22
(translation_unit) "#ifndef SP2_COLLISION_3D_CAPSULE_H\n#define SP2_COLLISION_3D_CAPSULE_H\n\n#include <sp2/collision/3d/shape.h>\n\nnamespace sp {\nnamespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}//namespace collision\n}//namespace sp\n\n#endif//SP2_COLLISION_3D_CAPSULE_H\n" (ERROR) "#ifndef SP2_COLLISION_3D_CAPSULE_H\n#define SP2_COLLISION_3D_CAPSULE_H\n\n#include <sp2/collision/3d/shape.h>\n\nnamespace sp {\nnamespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}//namespace collision\n}//namespace sp\n\n#endif//SP2_COLLISION_3D_CAPSULE_H\n" (#ifndef) "#ifndef" (identifier) "SP2_COLLISION_3D_CAPSULE_H" (preproc_def) "#define SP2_COLLISION_3D_CAPSULE_H\n" (#define) "#define" (identifier) "SP2_COLLISION_3D_CAPSULE_H" (preproc_include) "#include <sp2/collision/3d/shape.h>\n" (#include) "#include" (system_lib_string) "<sp2/collision/3d/shape.h>" (type_identifier) "namespace" (identifier) "sp" ({) "{" (function_definition) "namespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}//namespace collision\n}" (type_identifier) "namespace" (identifier) "collision" (compound_statement) "{\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}//namespace collision\n}" ({) "{" (function_definition) "class Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}" (type_identifier) "class" (identifier) "Capsule3D" (ERROR) ": public Shape3D" (:) ":" (identifier) "public" (identifier) "Shape3D" (compound_statement) "{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}" ({) "{" (labeled_statement) "public:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n}" (statement_identifier) "public" (:) ":" (ERROR) "enum class Direction" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "Direction" (compound_statement) "{\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n}" ({) "{" (expression_statement) "X, Y, Z\n };" (comma_expression) "X, Y, Z" (identifier) "X" (,) "," (comma_expression) "Y, Z" (identifier) "Y" (,) "," (identifier) "Z" (ERROR) "}" (}) "}" (;) ";" (declaration) "Capsule3D(Direction direction, double radius, double height);" (macro_type_specifier) "Capsule3D(Direction" (identifier) "Capsule3D" (() "(" (type_descriptor) "Direction" (type_identifier) "Direction" ()) "" (identifier) "direction" (,) "," (identifier) "double" (ERROR) "radius" (identifier) "radius" (,) "," (identifier) "double" (ERROR) "height)" (identifier) "height" ()) ")" (;) ";" (labeled_statement) "private:\n Direction direction;" (statement_identifier) "private" (:) ":" (declaration) "Direction direction;" (type_identifier) "Direction" (identifier) "direction" (;) ";" (declaration) "double radius;" (primitive_type) "double" (identifier) "radius" (;) ";" (declaration) "double height;" (primitive_type) "double" (identifier) "height" (;) ";" (declaration) "virtual btCollisionShape* createShape() const override;" (type_identifier) "virtual" (ERROR) "btCollisionShape" (identifier) "btCollisionShape" (pointer_declarator) "* createShape() const override" (*) "*" (function_declarator) "createShape() const override" (identifier) "createShape" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "//namespace collision" (}) "}" (comment) "//namespace sp" (preproc_call) "#endif//SP2_COLLISION_3D_CAPSULE_H\n" (preproc_directive) "#endif" (comment) "//SP2_COLLISION_3D_CAPSULE_H"
105
7
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 22.41, "nodes": 62, "errors": 0, "source_hash": "c790745c545b35c92ce178bddbc5956a656e24bfd05c6ca5b4df12764708bf0b", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef SP2_COLLISION_3D_CAPSULE_H\n#define SP2_COLLISION_3D_CAPSULE_H\n\n#include <sp2/collision/3d/shape.h>\n\nnamespace sp {\nnamespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}//namespace collision\n}//namespace sp\n\n#endif//SP2_COLLISION_3D_CAPSULE_H\n", "parent": null, "children": [1, 2, 3, 6, 9, 10, 11, 60], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 29, "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": "SP2_COLLISION_3D_CAPSULE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 34}}, {"id": 3, "type": "preproc_def", "text": "#define SP2_COLLISION_3D_CAPSULE_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": "SP2_COLLISION_3D_CAPSULE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 34}}, {"id": 6, "type": "preproc_include", "text": "#include <sp2/collision/3d/shape.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<sp2/collision/3d/shape.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 35}}, {"id": 9, "type": "type_identifier", "text": "namespace", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 9}}, {"id": 10, "type": "identifier", "text": "sp", "parent": 0, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 12}}, {"id": 11, "type": "function_definition", "text": "namespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}//namespace collision\n}", "parent": 0, "children": [12, 13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "namespace", "parent": 11, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 13, "type": "identifier", "text": "collision", "parent": 11, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 19}}, {"id": 14, "type": "function_definition", "text": "class Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}", "parent": 11, "children": [15, 16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 15, "type": "identifier", "text": "Capsule3D", "parent": 14, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 15}}, {"id": 16, "type": "ERROR", "text": ": public Shape3D", "parent": 14, "children": [17], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 32}}, {"id": 17, "type": "identifier", "text": "Shape3D", "parent": 16, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 32}}, {"id": 18, "type": "labeled_statement", "text": "public:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n}", "parent": 14, "children": [19], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 19, "type": "ERROR", "text": "enum class Direction", "parent": 18, "children": [20, 22], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 24}}, {"id": 20, "type": "enum_specifier", "text": "enum class", "parent": 19, "children": [21], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 14}}, {"id": 21, "type": "enum", "text": "enum", "parent": 20, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 8}}, {"id": 22, "type": "identifier", "text": "Direction", "parent": 19, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 24}}, {"id": 23, "type": "comma_expression", "text": "X, Y, Z", "parent": 18, "children": [24, 25], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 15}}, {"id": 24, "type": "identifier", "text": "X", "parent": 23, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 25, "type": "comma_expression", "text": "Y, Z", "parent": 23, "children": [26, 27], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 15}}, {"id": 26, "type": "identifier", "text": "Y", "parent": 25, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 27, "type": "identifier", "text": "Z", "parent": 25, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 15}}, {"id": 28, "type": "declaration", "text": "Capsule3D(Direction direction, double radius, double height);", "parent": 18, "children": [29, 33, 34, 35, 37, 38], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 65}}, {"id": 29, "type": "macro_type_specifier", "text": "Capsule3D(Direction", "parent": 28, "children": [30, 31], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 23}}, {"id": 30, "type": "identifier", "text": "Capsule3D", "parent": 29, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 13}}, {"id": 31, "type": "type_descriptor", "text": "Direction", "parent": 29, "children": [32], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 23}}, {"id": 32, "type": "type_identifier", "text": "Direction", "parent": 31, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 23}}, {"id": 33, "type": "identifier", "text": "direction", "parent": 28, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 33}}, {"id": 34, "type": "identifier", "text": "double", "parent": 28, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 41}}, {"id": 35, "type": "ERROR", "text": "radius", "parent": 28, "children": [36], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 48}}, {"id": 36, "type": "identifier", "text": "radius", "parent": 35, "children": [], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 48}}, {"id": 37, "type": "identifier", "text": "double", "parent": 28, "children": [], "start_point": {"row": 16, "column": 50}, "end_point": {"row": 16, "column": 56}}, {"id": 38, "type": "ERROR", "text": "height)", "parent": 28, "children": [39], "start_point": {"row": 16, "column": 57}, "end_point": {"row": 16, "column": 64}}, {"id": 39, "type": "identifier", "text": "height", "parent": 38, "children": [], "start_point": {"row": 16, "column": 57}, "end_point": {"row": 16, "column": 63}}, {"id": 40, "type": "labeled_statement", "text": "private:\n Direction direction;", "parent": 18, "children": [41], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 24}}, {"id": 41, "type": "declaration", "text": "Direction direction;", "parent": 40, "children": [42, 43], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 24}}, {"id": 42, "type": "type_identifier", "text": "Direction", "parent": 41, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 13}}, {"id": 43, "type": "identifier", "text": "direction", "parent": 41, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 23}}, {"id": 44, "type": "declaration", "text": "double radius;", "parent": 18, "children": [45, 46], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 18}}, {"id": 45, "type": "primitive_type", "text": "double", "parent": 44, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 46, "type": "identifier", "text": "radius", "parent": 44, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 17}}, {"id": 47, "type": "declaration", "text": "double height;", "parent": 18, "children": [48, 49], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 18}}, {"id": 48, "type": "primitive_type", "text": "double", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 49, "type": "identifier", "text": "height", "parent": 47, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 17}}, {"id": 50, "type": "declaration", "text": "virtual btCollisionShape* createShape() const override;", "parent": 18, "children": [51, 52, 54], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 59}}, {"id": 51, "type": "type_identifier", "text": "virtual", "parent": 50, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 52, "type": "ERROR", "text": "btCollisionShape", "parent": 50, "children": [53], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 28}}, {"id": 53, "type": "identifier", "text": "btCollisionShape", "parent": 52, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 28}}, {"id": 54, "type": "pointer_declarator", "text": "* createShape() const override", "parent": 50, "children": [55, 56], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 58}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 29}}, {"id": 56, "type": "function_declarator", "text": "createShape() const override", "parent": 54, "children": [57, 58, 59], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 58}}, {"id": 57, "type": "identifier", "text": "createShape", "parent": 56, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 41}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 43}}, {"id": 59, "type": "identifier", "text": "override", "parent": 56, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 58}}, {"id": 60, "type": "preproc_call", "text": "#endif//SP2_COLLISION_3D_CAPSULE_H\n", "parent": 0, "children": [61], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 61, "type": "preproc_directive", "text": "#endif", "parent": 60, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11, 14, 56], "variables": [28, 41, 44, 47, 50], "classes": [], "imports": [6, 7], "modules": [], "enums": [20, 21]}, "statements": {"expressions": [23, 25], "assignments": [], "loops": [], "conditionals": [1, 2, 5, 9, 10, 12, 13, 15, 17, 22, 24, 26, 27, 29, 30, 32, 33, 34, 36, 37, 39, 42, 43, 46, 49, 51, 53, 57, 59], "returns": [], "exceptions": []}, "expressions": {"calls": [60], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "Capsule3D", "text_snippet": "namespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n "}, {"node_id": 14, "universal_type": "function", "name": "Capsule3D", "text_snippet": "class Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n "}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "createShape() const override"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <sp2/collision/3d/shape.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef SP2_COLLISION_3D_CAPSULE_H\n#define SP2_COLLISION_3D_CAPSULE_H\n\n#include <sp2/collision/3d/shape.h>\n\nnamespace sp {\nnamespace collision {\n\nclass Capsule3D : public Shape3D\n{\npublic:\n enum class Direction\n {\n X, Y, Z\n };\n\n Capsule3D(Direction direction, double radius, double height);\nprivate:\n Direction direction;\n double radius;\n double height;\n\n virtual btCollisionShape* createShape() const override;\n};\n\n}//namespace collision\n}//namespace sp\n\n#endif//SP2_COLLISION_3D_CAPSULE_H\n"}
80,421
c
/** * Copyright <NAME> 2007 - 2015. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * $Id: ITCLib::include/sys/mutex.h$ * * EMail: <EMAIL> * **/ #ifndef __USERLAND_MUTEX_H__ #define __USERLAND_MUTEX_H__ #include <atomic> #include <sys/sched_yield.h> #include <usecount.h> namespace itc { namespace sys { class mutex { private: std::atomic<bool> valid; mutable std::atomic<size_t> counter; std::atomic<pthread_t> mLock; public: explicit mutex():valid{true},counter{0},mLock{0} { } mutex(const mutex&)=delete; mutex(mutex&)=delete; void lock() { usecount uc(&counter); if(valid.load()) { pthread_t unused=0; static thread_local auto current=pthread_self(); while(!mLock.compare_exchange_strong(unused,current)) { unused=0; itc::sys::sched_yield(); } }else{ throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed"); } } void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it. { usecount uc(&counter); if(valid.load()) { static thread_local auto current=pthread_self(); if(!mLock.compare_exchange_strong(current,0)) { throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread"); } }else{ throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed"); } } void unlock_destroy() { usecount uc(&counter); bool val{true}; if(valid.compare_exchange_strong(val,false)) { static thread_local auto current=pthread_self(); if(!mLock.compare_exchange_strong(current,0)) { throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread"); } }else{ throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed"); } } const bool try_lock() { usecount uc(&counter); if(valid.load()) { pthread_t unused=0; static thread_local auto current=pthread_self(); return mLock.compare_exchange_strong(unused,current); } return false; } const bool busy() const { usecount uc(&counter); return (mLock.load() != 0) || (!valid.load()); } const bool isvalid() const { usecount uc(&counter); return valid.load(); } ~mutex() { valid.store(false); while((mLock.load() != 0)&&(counter.load() != 0)); } }; } } #endif /* __USERLAND_MUTEX_H__ */
25.95
120
(translation_unit) "/**\n * Copyright <NAME> 2007 - 2015.\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE_1_0.txt or copy at\n * http://www.boost.org/LICENSE_1_0.txt)\n * \n * $Id: ITCLib::include/sys/mutex.h$\n * \n * EMail: <EMAIL>\n * \n **/\n\n#ifndef __USERLAND_MUTEX_H__\n#define __USERLAND_MUTEX_H__\n#include <atomic>\n#include <sys/sched_yield.h>\n#include <usecount.h>\n\nnamespace itc {\n namespace sys {\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }\n}\n\n#endif /* __USERLAND_MUTEX_H__ */\n\n" (comment) "/**\n * Copyright <NAME> 2007 - 2015.\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE_1_0.txt or copy at\n * http://www.boost.org/LICENSE_1_0.txt)\n * \n * $Id: ITCLib::include/sys/mutex.h$\n * \n * EMail: <EMAIL>\n * \n **/" (ERROR) "#ifndef __USERLAND_MUTEX_H__\n#define __USERLAND_MUTEX_H__\n#include <atomic>\n#include <sys/sched_yield.h>\n#include <usecount.h>\n\nnamespace itc {\n namespace sys {\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }\n}\n\n#endif /* __USERLAND_MUTEX_H__ */\n" (#ifndef) "#ifndef" (identifier) "__USERLAND_MUTEX_H__" (preproc_def) "#define __USERLAND_MUTEX_H__\n" (#define) "#define" (identifier) "__USERLAND_MUTEX_H__" (preproc_include) "#include <atomic>\n" (#include) "#include" (system_lib_string) "<atomic>" (preproc_include) "#include <sys/sched_yield.h>\n" (#include) "#include" (system_lib_string) "<sys/sched_yield.h>" (preproc_include) "#include <usecount.h>\n" (#include) "#include" (system_lib_string) "<usecount.h>" (type_identifier) "namespace" (identifier) "itc" ({) "{" (function_definition) "namespace sys {\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }\n}" (type_identifier) "namespace" (identifier) "sys" (compound_statement) "{\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }\n}" ({) "{" (function_definition) "class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }" (type_identifier) "class" (identifier) "mutex" (compound_statement) "{\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }" ({) "{" (labeled_statement) "private:\n std::atomic<bool> valid;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::atomic<bool> valid;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "atomic<bool> valid;" (binary_expression) "atomic<bool> valid" (binary_expression) "atomic<bool" (identifier) "atomic" (<) "<" (identifier) "bool" (>) ">" (identifier) "valid" (;) ";" (declaration) "mutable std::atomic<size_t> counter;" (type_identifier) "mutable" (ERROR) "std::atomic<size_t>" (identifier) "std" (:) ":" (:) ":" (identifier) "atomic" (<) "<" (primitive_type) "size_t" (>) ">" (identifier) "counter" (;) ";" (labeled_statement) "std::atomic<pthread_t> mLock;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "atomic<pthread_t> mLock;" (binary_expression) "atomic<pthread_t> mLock" (binary_expression) "atomic<pthread_t" (identifier) "atomic" (<) "<" (identifier) "pthread_t" (>) ">" (identifier) "mLock" (;) ";" (labeled_statement) "public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }" (statement_identifier) "public" (:) ":" (ERROR) "explicit mutex():valid{true},counter{0},mLock{0}" (type_identifier) "explicit" (function_declarator) "mutex():valid" (identifier) "mutex" (parameter_list) "()" (() "(" ()) ")" (ERROR) ":" (:) ":" (identifier) "valid" ({) "{" (true) "true" (}) "}" (,) "," (identifier) "counter" ({) "{" (number_literal) "0" (}) "}" (,) "," (identifier) "mLock" ({) "{" (number_literal) "0" (}) "}" (compound_statement) "{\n }" ({) "{" (}) "}" (declaration) "mutex(const mutex&)=delete;" (macro_type_specifier) "mutex(const mutex&)" (identifier) "mutex" (() "(" (type_descriptor) "const mutex" (type_qualifier) "const" (const) "const" (type_identifier) "mutex" (ERROR) "&" (&) "&" ()) ")" (ERROR) "=" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "mutex(mutex&)=delete;" (assignment_expression) "mutex(mutex&)=delete" (call_expression) "mutex(mutex&)" (identifier) "mutex" (argument_list) "(mutex&)" (() "(" (binary_expression) "mutex&" (identifier) "mutex" (&) "&" (identifier) "" ()) ")" (=) "=" (identifier) "delete" (;) ";" (function_definition) "void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }" (primitive_type) "void" (function_declarator) "lock()" (identifier) "lock" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }" ({) "{" (declaration) "usecount uc(&counter);" (type_identifier) "usecount" (function_declarator) "uc(&counter)" (identifier) "uc" (parameter_list) "(&counter)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "counter" (type_identifier) "counter" ()) ")" (;) ";" (if_statement) "if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" (if) "if" (parenthesized_expression) "(valid.load())" (() "(" (call_expression) "valid.load()" (field_expression) "valid.load" (identifier) "valid" (.) "." (field_identifier) "load" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }" ({) "{" (declaration) "pthread_t unused=0;" (type_identifier) "pthread_t" (init_declarator) "unused=0" (identifier) "unused" (=) "=" (number_literal) "0" (;) ";" (declaration) "static thread_local auto current=pthread_self();" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "thread_local" (thread_local) "thread_local" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "current" (ERROR) "=" (=) "=" (function_declarator) "pthread_self()" (identifier) "pthread_self" (parameter_list) "()" (() "(" ()) ")" (;) ";" (while_statement) "while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }" (while) "while" (parenthesized_expression) "(!mLock.compare_exchange_strong(unused,current))" (() "(" (unary_expression) "!mLock.compare_exchange_strong(unused,current)" (!) "!" (call_expression) "mLock.compare_exchange_strong(unused,current)" (field_expression) "mLock.compare_exchange_strong" (identifier) "mLock" (.) "." (field_identifier) "compare_exchange_strong" (argument_list) "(unused,current)" (() "(" (identifier) "unused" (,) "," (identifier) "current" ()) ")" ()) ")" (compound_statement) "{\n unused=0;\n itc::sys::sched_yield();\n }" ({) "{" (expression_statement) "unused=0;" (assignment_expression) "unused=0" (identifier) "unused" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "itc::sys::sched_yield();" (statement_identifier) "itc" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "sys::sched_yield();" (statement_identifier) "sys" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "sched_yield();" (call_expression) "sched_yield()" (identifier) "sched_yield" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" (else) "else" (compound_statement) "{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" ({) "{" (ERROR) "throw std::system_error(EOWNERDEAD,std::system_category()," (type_identifier) "throw" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "system_error" (() "(" (parameter_declaration) "EOWNERDEAD,std::system_category()" (type_identifier) "EOWNERDEAD" (ERROR) ",std::" (,) "," (identifier) "std" (:) ":" (:) ":" (function_declarator) "system_category()" (identifier) "system_category" (parameter_list) "()" (() "(" ()) ")" (,) "," (expression_statement) ""itc::mutex::lock() - This mutex is being destroyed");" (string_literal) ""itc::mutex::lock() - This mutex is being destroyed"" (") """ (string_content) "itc::mutex::lock() - This mutex is being destroyed" (") """ (ERROR) ")" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }" (primitive_type) "void" (function_declarator) "unlock()" (identifier) "unlock" (parameter_list) "()" (() "(" ()) ")" (comment) "// Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it." (compound_statement) "{\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }" ({) "{" (declaration) "usecount uc(&counter);" (type_identifier) "usecount" (function_declarator) "uc(&counter)" (identifier) "uc" (parameter_list) "(&counter)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "counter" (type_identifier) "counter" ()) ")" (;) ";" (if_statement) "if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" (if) "if" (parenthesized_expression) "(valid.load())" (() "(" (call_expression) "valid.load()" (field_expression) "valid.load" (identifier) "valid" (.) "." (field_identifier) "load" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }" ({) "{" (declaration) "static thread_local auto current=pthread_self();" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "thread_local" (thread_local) "thread_local" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "current" (ERROR) "=" (=) "=" (function_declarator) "pthread_self()" (identifier) "pthread_self" (parameter_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }" (if) "if" (parenthesized_expression) "(!mLock.compare_exchange_strong(current,0))" (() "(" (unary_expression) "!mLock.compare_exchange_strong(current,0)" (!) "!" (call_expression) "mLock.compare_exchange_strong(current,0)" (field_expression) "mLock.compare_exchange_strong" (identifier) "mLock" (.) "." (field_identifier) "compare_exchange_strong" (argument_list) "(current,0)" (() "(" (identifier) "current" (,) "," (number_literal) "0" ()) ")" ()) ")" (compound_statement) "{\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }" ({) "{" (ERROR) "throw std::system_error(EACCES, std::system_category()," (type_identifier) "throw" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "system_error" (() "(" (parameter_declaration) "EACCES, std::system_category()" (type_identifier) "EACCES" (ERROR) ", std::" (,) "," (identifier) "std" (:) ":" (:) ":" (function_declarator) "system_category()" (identifier) "system_category" (parameter_list) "()" (() "(" ()) ")" (,) "," (expression_statement) ""An attempt to unlock the mutex owned by other thread");" (string_literal) ""An attempt to unlock the mutex owned by other thread"" (") """ (string_content) "An attempt to unlock the mutex owned by other thread" (") """ (ERROR) ")" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" (else) "else" (compound_statement) "{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" ({) "{" (ERROR) "throw std::system_error(EOWNERDEAD,std::system_category()," (type_identifier) "throw" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "system_error" (() "(" (parameter_declaration) "EOWNERDEAD,std::system_category()" (type_identifier) "EOWNERDEAD" (ERROR) ",std::" (,) "," (identifier) "std" (:) ":" (:) ":" (function_declarator) "system_category()" (identifier) "system_category" (parameter_list) "()" (() "(" ()) ")" (,) "," (expression_statement) ""itc::mutex::lock() - This mutex is being destroyed");" (string_literal) ""itc::mutex::lock() - This mutex is being destroyed"" (") """ (string_content) "itc::mutex::lock() - This mutex is being destroyed" (") """ (ERROR) ")" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n }" (primitive_type) "void" (function_declarator) "unlock_destroy()" (identifier) "unlock_destroy" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n }" ({) "{" (declaration) "usecount uc(&counter);" (type_identifier) "usecount" (function_declarator) "uc(&counter)" (identifier) "uc" (parameter_list) "(&counter)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "counter" (type_identifier) "counter" ()) ")" (;) ";" (function_definition) "bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }" (primitive_type) "bool" (identifier) "val" (compound_statement) "{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }\n }" ({) "{" (expression_statement) "true};" (true) "true" (ERROR) "}" (}) "}" (;) ";" (if_statement) "if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" (if) "if" (parenthesized_expression) "(valid.compare_exchange_strong(val,false))" (() "(" (call_expression) "valid.compare_exchange_strong(val,false)" (field_expression) "valid.compare_exchange_strong" (identifier) "valid" (.) "." (field_identifier) "compare_exchange_strong" (argument_list) "(val,false)" (() "(" (identifier) "val" (,) "," (false) "false" ()) ")" ()) ")" (compound_statement) "{\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }\n }" ({) "{" (declaration) "static thread_local auto current=pthread_self();" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "thread_local" (thread_local) "thread_local" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "current" (ERROR) "=" (=) "=" (function_declarator) "pthread_self()" (identifier) "pthread_self" (parameter_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }" (if) "if" (parenthesized_expression) "(!mLock.compare_exchange_strong(current,0))" (() "(" (unary_expression) "!mLock.compare_exchange_strong(current,0)" (!) "!" (call_expression) "mLock.compare_exchange_strong(current,0)" (field_expression) "mLock.compare_exchange_strong" (identifier) "mLock" (.) "." (field_identifier) "compare_exchange_strong" (argument_list) "(current,0)" (() "(" (identifier) "current" (,) "," (number_literal) "0" ()) ")" ()) ")" (compound_statement) "{\n throw std::system_error(EACCES, std::system_category(), "An attempt to unlock the mutex owned by other thread");\n }" ({) "{" (ERROR) "throw std::system_error(EACCES, std::system_category()," (type_identifier) "throw" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "system_error" (() "(" (parameter_declaration) "EACCES, std::system_category()" (type_identifier) "EACCES" (ERROR) ", std::" (,) "," (identifier) "std" (:) ":" (:) ":" (function_declarator) "system_category()" (identifier) "system_category" (parameter_list) "()" (() "(" ()) ")" (,) "," (expression_statement) ""An attempt to unlock the mutex owned by other thread");" (string_literal) ""An attempt to unlock the mutex owned by other thread"" (") """ (string_content) "An attempt to unlock the mutex owned by other thread" (") """ (ERROR) ")" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" (else) "else" (compound_statement) "{\n throw std::system_error(EOWNERDEAD,std::system_category(), "itc::mutex::lock() - This mutex is being destroyed");\n }" ({) "{" (ERROR) "throw std::system_error(EOWNERDEAD,std::system_category()," (type_identifier) "throw" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "system_error" (() "(" (parameter_declaration) "EOWNERDEAD,std::system_category()" (type_identifier) "EOWNERDEAD" (ERROR) ",std::" (,) "," (identifier) "std" (:) ":" (:) ":" (function_declarator) "system_category()" (identifier) "system_category" (parameter_list) "()" (() "(" ()) ")" (,) "," (expression_statement) ""itc::mutex::lock() - This mutex is being destroyed");" (string_literal) ""itc::mutex::lock() - This mutex is being destroyed"" (") """ (string_content) "itc::mutex::lock() - This mutex is being destroyed" (") """ (ERROR) ")" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (function_declarator) "try_lock()" (identifier) "try_lock" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }" ({) "{" (declaration) "usecount uc(&counter);" (type_identifier) "usecount" (function_declarator) "uc(&counter)" (identifier) "uc" (parameter_list) "(&counter)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "counter" (type_identifier) "counter" ()) ")" (;) ";" (if_statement) "if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }" (if) "if" (parenthesized_expression) "(valid.load())" (() "(" (call_expression) "valid.load()" (field_expression) "valid.load" (identifier) "valid" (.) "." (field_identifier) "load" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }" ({) "{" (declaration) "pthread_t unused=0;" (type_identifier) "pthread_t" (init_declarator) "unused=0" (identifier) "unused" (=) "=" (number_literal) "0" (;) ";" (declaration) "static thread_local auto current=pthread_self();" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "thread_local" (thread_local) "thread_local" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "current" (ERROR) "=" (=) "=" (function_declarator) "pthread_self()" (identifier) "pthread_self" (parameter_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return mLock.compare_exchange_strong(unused,current);" (return) "return" (call_expression) "mLock.compare_exchange_strong(unused,current)" (field_expression) "mLock.compare_exchange_strong" (identifier) "mLock" (.) "." (field_identifier) "compare_exchange_strong" (argument_list) "(unused,current)" (() "(" (identifier) "unused" (,) "," (identifier) "current" ()) ")" (;) ";" (}) "}" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (function_definition) "const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (function_declarator) "busy()" (identifier) "busy" (parameter_list) "()" (() "(" ()) ")" (declaration) "const\n {\n usecount uc(&counter);" (type_qualifier) "const" (const) "const" (ERROR) "{" ({) "{" (type_identifier) "usecount" (function_declarator) "uc(&counter)" (identifier) "uc" (parameter_list) "(&counter)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "counter" (type_identifier) "counter" ()) ")" (;) ";" (declaration) "return (mLock.load() != 0) || (!valid.load());" (macro_type_specifier) "return (mLock.load()" (identifier) "return" (() "(" (type_descriptor) "mLock" (type_identifier) "mLock" (ERROR) ".load(" (.) "." (identifier) "load" (() "(" ()) ")" (ERROR) "!= 0) ||" (!=) "!=" (number_literal) "0" ()) ")" (||) "||" (parenthesized_declarator) "(!valid.load())" (() "(" (ERROR) "!valid." (!) "!" (identifier) "valid" (.) "." (function_declarator) "load()" (identifier) "load" (parameter_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (ERROR) "}\n \n const bool isvalid() const" (}) "}" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (function_declarator) "isvalid() const" (identifier) "isvalid" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n usecount uc(&counter);\n return valid.load();\n }" ({) "{" (declaration) "usecount uc(&counter);" (type_identifier) "usecount" (function_declarator) "uc(&counter)" (identifier) "uc" (parameter_list) "(&counter)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "counter" (type_identifier) "counter" ()) ")" (;) ";" (return_statement) "return valid.load();" (return) "return" (call_expression) "valid.load()" (field_expression) "valid.load" (identifier) "valid" (.) "." (field_identifier) "load" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "~mutex()" (unary_expression) "~mutex()" (~) "~" (call_expression) "mutex()" (identifier) "mutex" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }" ({) "{" (expression_statement) "valid.store(false);" (call_expression) "valid.store(false)" (field_expression) "valid.store" (identifier) "valid" (.) "." (field_identifier) "store" (argument_list) "(false)" (() "(" (false) "false" ()) ")" (;) ";" (while_statement) "while((mLock.load() != 0)&&(counter.load() != 0));" (while) "while" (parenthesized_expression) "((mLock.load() != 0)&&(counter.load() != 0))" (() "(" (binary_expression) "(mLock.load() != 0)&&(counter.load() != 0)" (parenthesized_expression) "(mLock.load() != 0)" (() "(" (binary_expression) "mLock.load() != 0" (call_expression) "mLock.load()" (field_expression) "mLock.load" (identifier) "mLock" (.) "." (field_identifier) "load" (argument_list) "()" (() "(" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (&&) "&&" (parenthesized_expression) "(counter.load() != 0)" (() "(" (binary_expression) "counter.load() != 0" (call_expression) "counter.load()" (field_expression) "counter.load" (identifier) "counter" (.) "." (field_identifier) "load" (argument_list) "()" (() "(" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}" (preproc_call) "#endif /* __USERLAND_MUTEX_H__ */\n" (preproc_directive) "#endif" (comment) "/* __USERLAND_MUTEX_H__ */"
800
46
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 25.95, "nodes": 414, "errors": 0, "source_hash": "cee8bbc370af4036dee91d25b453033dede0c0c2a3330bda9ae12071a9c52f60", "categorized_nodes": 286}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef __USERLAND_MUTEX_H__\n#define __USERLAND_MUTEX_H__\n#include <atomic>\n#include <sys/sched_yield.h>\n#include <usecount.h>\n\nnamespace itc {\n namespace sys {\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }\n}\n\n#endif /* __USERLAND_MUTEX_H__ */\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 16, 17, 412], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 123, "column": 0}}, {"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": "__USERLAND_MUTEX_H__", "parent": 0, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define __USERLAND_MUTEX_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": "__USERLAND_MUTEX_H__", "parent": 3, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include <atomic>\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": "<atomic>", "parent": 6, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <sys/sched_yield.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<sys/sched_yield.h>", "parent": 9, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 28}}, {"id": 12, "type": "preproc_include", "text": "#include <usecount.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": "system_lib_string", "text": "<usecount.h>", "parent": 12, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 21}}, {"id": 15, "type": "type_identifier", "text": "namespace", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 16, "type": "identifier", "text": "itc", "parent": 0, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 13}}, {"id": 17, "type": "function_definition", "text": "namespace sys {\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }\n}", "parent": 0, "children": [18, 19], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 120, "column": 1}}, {"id": 18, "type": "type_identifier", "text": "namespace", "parent": 17, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 11}}, {"id": 19, "type": "identifier", "text": "sys", "parent": 17, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 15}}, {"id": 20, "type": "function_definition", "text": "class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }", "parent": 17, "children": [21], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 119, "column": 3}}, {"id": 21, "type": "identifier", "text": "mutex", "parent": 20, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 15}}, {"id": 22, "type": "labeled_statement", "text": "private:\n std::atomic<bool> valid;", "parent": 20, "children": [23], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 24, "column": 43}}, {"id": 23, "type": "labeled_statement", "text": "std::atomic<bool> valid;", "parent": 22, "children": [24], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 43}}, {"id": 24, "type": "statement_identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 9}}, {"id": 25, "type": "binary_expression", "text": "atomic<bool> valid", "parent": 23, "children": [26, 30, 31], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 42}}, {"id": 26, "type": "binary_expression", "text": "atomic<bool", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 22}}, {"id": 27, "type": "identifier", "text": "atomic", "parent": 26, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 17}}, {"id": 28, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 29, "type": "identifier", "text": "bool", "parent": 26, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 22}}, {"id": 30, "type": ">", "text": ">", "parent": 25, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 31, "type": "identifier", "text": "valid", "parent": 25, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 42}}, {"id": 32, "type": "declaration", "text": "mutable std::atomic<size_t> counter;", "parent": 20, "children": [33, 34, 40], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 45}}, {"id": 33, "type": "type_identifier", "text": "mutable", "parent": 32, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 13}}, {"id": 34, "type": "ERROR", "text": "std::atomic<size_t>", "parent": 32, "children": [35, 36, 37, 38, 39], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 33}}, {"id": 35, "type": "identifier", "text": "std", "parent": 34, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 17}}, {"id": 36, "type": "identifier", "text": "atomic", "parent": 34, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 25}}, {"id": 37, "type": "<", "text": "<", "parent": 34, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 26}}, {"id": 38, "type": "primitive_type", "text": "size_t", "parent": 34, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 32}}, {"id": 39, "type": ">", "text": ">", "parent": 34, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 33}}, {"id": 40, "type": "identifier", "text": "counter", "parent": 32, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 44}}, {"id": 41, "type": "labeled_statement", "text": "std::atomic<pthread_t> mLock;", "parent": 20, "children": [42], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 43}}, {"id": 42, "type": "statement_identifier", "text": "std", "parent": 41, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 9}}, {"id": 43, "type": "binary_expression", "text": "atomic<pthread_t> mLock", "parent": 41, "children": [44, 48, 49], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 42}}, {"id": 44, "type": "binary_expression", "text": "atomic<pthread_t", "parent": 43, "children": [45, 46, 47], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 27}}, {"id": 45, "type": "identifier", "text": "atomic", "parent": 44, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 17}}, {"id": 46, "type": "<", "text": "<", "parent": 44, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 18}}, {"id": 47, "type": "identifier", "text": "pthread_t", "parent": 44, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 27}}, {"id": 48, "type": ">", "text": ">", "parent": 43, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 28}}, {"id": 49, "type": "identifier", "text": "mLock", "parent": 43, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 42}}, {"id": 50, "type": "labeled_statement", "text": "public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }", "parent": 20, "children": [51], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 31, "column": 7}}, {"id": 51, "type": "ERROR", "text": "explicit mutex():valid{true},counter{0},mLock{0}", "parent": 50, "children": [52, 53, 57, 58, 59, 60, 61], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 54}}, {"id": 52, "type": "type_identifier", "text": "explicit", "parent": 51, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 14}}, {"id": 53, "type": "function_declarator", "text": "mutex():valid", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 28}}, {"id": 54, "type": "identifier", "text": "mutex", "parent": 53, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 20}}, {"id": 55, "type": "parameter_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 22}}, {"id": 56, "type": "identifier", "text": "valid", "parent": 53, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 28}}, {"id": 57, "type": "true", "text": "true", "parent": 51, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 33}}, {"id": 58, "type": "identifier", "text": "counter", "parent": 51, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 42}}, {"id": 59, "type": "number_literal", "text": "0", "parent": 51, "children": [], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 44}}, {"id": 60, "type": "identifier", "text": "mLock", "parent": 51, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 51}}, {"id": 61, "type": "number_literal", "text": "0", "parent": 51, "children": [], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 53}}, {"id": 62, "type": "declaration", "text": "mutex(const mutex&)=delete;", "parent": 20, "children": [63, 67], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 33}}, {"id": 63, "type": "macro_type_specifier", "text": "mutex(const mutex&)", "parent": 62, "children": [64, 65], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 25}}, {"id": 64, "type": "identifier", "text": "mutex", "parent": 63, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 11}}, {"id": 65, "type": "type_descriptor", "text": "const mutex", "parent": 63, "children": [66], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 23}}, {"id": 66, "type": "type_identifier", "text": "mutex", "parent": 65, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 23}}, {"id": 67, "type": "ERROR", "text": "=", "parent": 62, "children": [68], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 26}}, {"id": 68, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 26}}, {"id": 69, "type": "assignment_expression", "text": "mutex(mutex&)=delete", "parent": 20, "children": [70, 76], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 26}}, {"id": 70, "type": "call_expression", "text": "mutex(mutex&)", "parent": 69, "children": [71, 72], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 19}}, {"id": 71, "type": "identifier", "text": "mutex", "parent": 70, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 11}}, {"id": 72, "type": "argument_list", "text": "(mutex&)", "parent": 70, "children": [73], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 19}}, {"id": 73, "type": "binary_expression", "text": "mutex&", "parent": 72, "children": [74, 75], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 18}}, {"id": 74, "type": "identifier", "text": "mutex", "parent": 73, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 17}}, {"id": 75, "type": "identifier", "text": "", "parent": 73, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 18}}, {"id": 76, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 77, "type": "function_definition", "text": "void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }", "parent": 20, "children": [78, 79], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 51, "column": 7}}, {"id": 78, "type": "primitive_type", "text": "void", "parent": 77, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 10}}, {"id": 79, "type": "function_declarator", "text": "lock()", "parent": 77, "children": [80, 81], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 17}}, {"id": 80, "type": "identifier", "text": "lock", "parent": 79, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 15}}, {"id": 81, "type": "parameter_list", "text": "()", "parent": 79, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 17}}, {"id": 82, "type": "declaration", "text": "usecount uc(&counter);", "parent": 77, "children": [83, 84], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 30}}, {"id": 83, "type": "type_identifier", "text": "usecount", "parent": 82, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 16}}, {"id": 84, "type": "function_declarator", "text": "uc(&counter)", "parent": 82, "children": [85, 86], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 29}}, {"id": 85, "type": "identifier", "text": "uc", "parent": 84, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 19}}, {"id": 86, "type": "parameter_list", "text": "(&counter)", "parent": 84, "children": [87], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 29}}, {"id": 87, "type": "parameter_declaration", "text": "counter", "parent": 86, "children": [88], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 28}}, {"id": 88, "type": "type_identifier", "text": "counter", "parent": 87, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 28}}, {"id": 89, "type": "if_statement", "text": "if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }", "parent": 77, "children": [90, 135], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 90, "type": "parenthesized_expression", "text": "(valid.load())", "parent": 89, "children": [91], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 24}}, {"id": 91, "type": "call_expression", "text": "valid.load()", "parent": 90, "children": [92, 95], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 23}}, {"id": 92, "type": "field_expression", "text": "valid.load", "parent": 91, "children": [93, 94], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 21}}, {"id": 93, "type": "identifier", "text": "valid", "parent": 92, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 16}}, {"id": 94, "type": "field_identifier", "text": "load", "parent": 92, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 21}}, {"id": 95, "type": "argument_list", "text": "()", "parent": 91, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 23}}, {"id": 96, "type": "declaration", "text": "pthread_t unused=0;", "parent": 89, "children": [97, 98], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 29}}, {"id": 97, "type": "type_identifier", "text": "pthread_t", "parent": 96, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 19}}, {"id": 98, "type": "init_declarator", "text": "unused=0", "parent": 96, "children": [99, 100, 101], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 28}}, {"id": 99, "type": "identifier", "text": "unused", "parent": 98, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 26}}, {"id": 100, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 27}}, {"id": 101, "type": "number_literal", "text": "0", "parent": 98, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 28}}, {"id": 102, "type": "declaration", "text": "static thread_local auto current=pthread_self();", "parent": 89, "children": [103, 105, 107, 108, 110], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 58}}, {"id": 103, "type": "storage_class_specifier", "text": "thread_local", "parent": 102, "children": [104], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 29}}, {"id": 104, "type": "thread_local", "text": "thread_local", "parent": 103, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 29}}, {"id": 105, "type": "storage_class_specifier", "text": "auto", "parent": 102, "children": [106], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 34}}, {"id": 106, "type": "auto", "text": "auto", "parent": 105, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 34}}, {"id": 107, "type": "type_identifier", "text": "current", "parent": 102, "children": [], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 42}}, {"id": 108, "type": "ERROR", "text": "=", "parent": 102, "children": [109], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 43}}, {"id": 109, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 43}}, {"id": 110, "type": "function_declarator", "text": "pthread_self()", "parent": 102, "children": [111, 112], "start_point": {"row": 41, "column": 43}, "end_point": {"row": 41, "column": 57}}, {"id": 111, "type": "identifier", "text": "pthread_self", "parent": 110, "children": [], "start_point": {"row": 41, "column": 43}, "end_point": {"row": 41, "column": 55}}, {"id": 112, "type": "parameter_list", "text": "()", "parent": 110, "children": [], "start_point": {"row": 41, "column": 55}, "end_point": {"row": 41, "column": 57}}, {"id": 113, "type": "while_statement", "text": "while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }", "parent": 89, "children": [114], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 47, "column": 11}}, {"id": 114, "type": "parenthesized_expression", "text": "(!mLock.compare_exchange_strong(unused,current))", "parent": 113, "children": [115], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 63}}, {"id": 115, "type": "unary_expression", "text": "!mLock.compare_exchange_strong(unused,current)", "parent": 114, "children": [116, 117], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 62}}, {"id": 116, "type": "!", "text": "!", "parent": 115, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 17}}, {"id": 117, "type": "call_expression", "text": "mLock.compare_exchange_strong(unused,current)", "parent": 115, "children": [118, 121], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 62}}, {"id": 118, "type": "field_expression", "text": "mLock.compare_exchange_strong", "parent": 117, "children": [119, 120], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 46}}, {"id": 119, "type": "identifier", "text": "mLock", "parent": 118, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 22}}, {"id": 120, "type": "field_identifier", "text": "compare_exchange_strong", "parent": 118, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 46}}, {"id": 121, "type": "argument_list", "text": "(unused,current)", "parent": 117, "children": [122, 123], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 43, "column": 62}}, {"id": 122, "type": "identifier", "text": "unused", "parent": 121, "children": [], "start_point": {"row": 43, "column": 47}, "end_point": {"row": 43, "column": 53}}, {"id": 123, "type": "identifier", "text": "current", "parent": 121, "children": [], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 61}}, {"id": 124, "type": "assignment_expression", "text": "unused=0", "parent": 113, "children": [125, 126, 127], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 20}}, {"id": 125, "type": "identifier", "text": "unused", "parent": 124, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 18}}, {"id": 126, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 19}}, {"id": 127, "type": "number_literal", "text": "0", "parent": 124, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 20}}, {"id": 128, "type": "labeled_statement", "text": "itc::sys::sched_yield();", "parent": 113, "children": [129, 130], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 36}}, {"id": 129, "type": "statement_identifier", "text": "itc", "parent": 128, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 15}}, {"id": 130, "type": "labeled_statement", "text": "sys::sched_yield();", "parent": 128, "children": [131], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 36}}, {"id": 131, "type": "statement_identifier", "text": "sys", "parent": 130, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 20}}, {"id": 132, "type": "call_expression", "text": "sched_yield()", "parent": 130, "children": [133, 134], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 35}}, {"id": 133, "type": "identifier", "text": "sched_yield", "parent": 132, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 33}}, {"id": 134, "type": "argument_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 35}}, {"id": 135, "type": "else_clause", "text": "else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }", "parent": 89, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 50, "column": 9}}, {"id": 136, "type": "ERROR", "text": "throw std::system_error(EOWNERDEAD,std::system_category(),", "parent": 135, "children": [137, 139, 140], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 68}}, {"id": 137, "type": "ERROR", "text": "std::", "parent": 136, "children": [138], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 21}}, {"id": 138, "type": "identifier", "text": "std", "parent": 137, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 19}}, {"id": 139, "type": "identifier", "text": "system_error", "parent": 136, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 33}}, {"id": 140, "type": "parameter_declaration", "text": "EOWNERDEAD,std::system_category()", "parent": 136, "children": [141, 142, 144], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 67}}, {"id": 141, "type": "type_identifier", "text": "EOWNERDEAD", "parent": 140, "children": [], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 44}}, {"id": 142, "type": "ERROR", "text": ",std::", "parent": 140, "children": [143], "start_point": {"row": 49, "column": 44}, "end_point": {"row": 49, "column": 50}}, {"id": 143, "type": "identifier", "text": "std", "parent": 142, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 48}}, {"id": 144, "type": "function_declarator", "text": "system_category()", "parent": 140, "children": [145, 146], "start_point": {"row": 49, "column": 50}, "end_point": {"row": 49, "column": 67}}, {"id": 145, "type": "identifier", "text": "system_category", "parent": 144, "children": [], "start_point": {"row": 49, "column": 50}, "end_point": {"row": 49, "column": 65}}, {"id": 146, "type": "parameter_list", "text": "()", "parent": 144, "children": [], "start_point": {"row": 49, "column": 65}, "end_point": {"row": 49, "column": 67}}, {"id": 147, "type": "string_literal", "text": "\"itc::mutex::lock() - This mutex is being destroyed\"", "parent": 135, "children": [], "start_point": {"row": 49, "column": 69}, "end_point": {"row": 49, "column": 121}}, {"id": 148, "type": "function_definition", "text": "void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }", "parent": 20, "children": [149, 150], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 67, "column": 7}}, {"id": 149, "type": "primitive_type", "text": "void", "parent": 148, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 10}}, {"id": 150, "type": "function_declarator", "text": "unlock()", "parent": 148, "children": [151, 152], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 19}}, {"id": 151, "type": "identifier", "text": "unlock", "parent": 150, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 17}}, {"id": 152, "type": "parameter_list", "text": "()", "parent": 150, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 19}}, {"id": 153, "type": "declaration", "text": "usecount uc(&counter);", "parent": 148, "children": [154, 155], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 30}}, {"id": 154, "type": "type_identifier", "text": "usecount", "parent": 153, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 16}}, {"id": 155, "type": "function_declarator", "text": "uc(&counter)", "parent": 153, "children": [156, 157], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 29}}, {"id": 156, "type": "identifier", "text": "uc", "parent": 155, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 19}}, {"id": 157, "type": "parameter_list", "text": "(&counter)", "parent": 155, "children": [158], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 29}}, {"id": 158, "type": "parameter_declaration", "text": "counter", "parent": 157, "children": [159], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 28}}, {"id": 159, "type": "type_identifier", "text": "counter", "parent": 158, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 28}}, {"id": 160, "type": "if_statement", "text": "if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }", "parent": 148, "children": [161, 201], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 161, "type": "parenthesized_expression", "text": "(valid.load())", "parent": 160, "children": [162], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 24}}, {"id": 162, "type": "call_expression", "text": "valid.load()", "parent": 161, "children": [163, 166], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 23}}, {"id": 163, "type": "field_expression", "text": "valid.load", "parent": 162, "children": [164, 165], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 21}}, {"id": 164, "type": "identifier", "text": "valid", "parent": 163, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 16}}, {"id": 165, "type": "field_identifier", "text": "load", "parent": 163, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 21}}, {"id": 166, "type": "argument_list", "text": "()", "parent": 162, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 23}}, {"id": 167, "type": "declaration", "text": "static thread_local auto current=pthread_self();", "parent": 160, "children": [168, 170, 172, 173, 175], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 58}}, {"id": 168, "type": "storage_class_specifier", "text": "thread_local", "parent": 167, "children": [169], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 29}}, {"id": 169, "type": "thread_local", "text": "thread_local", "parent": 168, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 29}}, {"id": 170, "type": "storage_class_specifier", "text": "auto", "parent": 167, "children": [171], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 34}}, {"id": 171, "type": "auto", "text": "auto", "parent": 170, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 34}}, {"id": 172, "type": "type_identifier", "text": "current", "parent": 167, "children": [], "start_point": {"row": 58, "column": 35}, "end_point": {"row": 58, "column": 42}}, {"id": 173, "type": "ERROR", "text": "=", "parent": 167, "children": [174], "start_point": {"row": 58, "column": 42}, "end_point": {"row": 58, "column": 43}}, {"id": 174, "type": "=", "text": "=", "parent": 173, "children": [], "start_point": {"row": 58, "column": 42}, "end_point": {"row": 58, "column": 43}}, {"id": 175, "type": "function_declarator", "text": "pthread_self()", "parent": 167, "children": [176, 177], "start_point": {"row": 58, "column": 43}, "end_point": {"row": 58, "column": 57}}, {"id": 176, "type": "identifier", "text": "pthread_self", "parent": 175, "children": [], "start_point": {"row": 58, "column": 43}, "end_point": {"row": 58, "column": 55}}, {"id": 177, "type": "parameter_list", "text": "()", "parent": 175, "children": [], "start_point": {"row": 58, "column": 55}, "end_point": {"row": 58, "column": 57}}, {"id": 178, "type": "if_statement", "text": "if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }", "parent": 160, "children": [179], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 63, "column": 11}}, {"id": 179, "type": "parenthesized_expression", "text": "(!mLock.compare_exchange_strong(current,0))", "parent": 178, "children": [180], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 55}}, {"id": 180, "type": "unary_expression", "text": "!mLock.compare_exchange_strong(current,0)", "parent": 179, "children": [181, 182], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 54}}, {"id": 181, "type": "!", "text": "!", "parent": 180, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 14}}, {"id": 182, "type": "call_expression", "text": "mLock.compare_exchange_strong(current,0)", "parent": 180, "children": [183, 186], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 54}}, {"id": 183, "type": "field_expression", "text": "mLock.compare_exchange_strong", "parent": 182, "children": [184, 185], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 43}}, {"id": 184, "type": "identifier", "text": "mLock", "parent": 183, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 19}}, {"id": 185, "type": "field_identifier", "text": "compare_exchange_strong", "parent": 183, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 43}}, {"id": 186, "type": "argument_list", "text": "(current,0)", "parent": 182, "children": [187, 188], "start_point": {"row": 60, "column": 43}, "end_point": {"row": 60, "column": 54}}, {"id": 187, "type": "identifier", "text": "current", "parent": 186, "children": [], "start_point": {"row": 60, "column": 44}, "end_point": {"row": 60, "column": 51}}, {"id": 188, "type": "number_literal", "text": "0", "parent": 186, "children": [], "start_point": {"row": 60, "column": 52}, "end_point": {"row": 60, "column": 53}}, {"id": 189, "type": "ERROR", "text": "throw std::system_error(EACCES, std::system_category(),", "parent": 178, "children": [190, 192, 193], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 67}}, {"id": 190, "type": "ERROR", "text": "std::", "parent": 189, "children": [191], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 23}}, {"id": 191, "type": "identifier", "text": "std", "parent": 190, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 21}}, {"id": 192, "type": "identifier", "text": "system_error", "parent": 189, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 35}}, {"id": 193, "type": "parameter_declaration", "text": "EACCES, std::system_category()", "parent": 189, "children": [194, 195, 197], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 66}}, {"id": 194, "type": "type_identifier", "text": "EACCES", "parent": 193, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 42}}, {"id": 195, "type": "ERROR", "text": ", std::", "parent": 193, "children": [196], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 49}}, {"id": 196, "type": "identifier", "text": "std", "parent": 195, "children": [], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 47}}, {"id": 197, "type": "function_declarator", "text": "system_category()", "parent": 193, "children": [198, 199], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 66}}, {"id": 198, "type": "identifier", "text": "system_category", "parent": 197, "children": [], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 64}}, {"id": 199, "type": "parameter_list", "text": "()", "parent": 197, "children": [], "start_point": {"row": 62, "column": 64}, "end_point": {"row": 62, "column": 66}}, {"id": 200, "type": "string_literal", "text": "\"An attempt to unlock the mutex owned by other thread\"", "parent": 178, "children": [], "start_point": {"row": 62, "column": 68}, "end_point": {"row": 62, "column": 122}}, {"id": 201, "type": "else_clause", "text": "else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }", "parent": 160, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 66, "column": 9}}, {"id": 202, "type": "ERROR", "text": "throw std::system_error(EOWNERDEAD,std::system_category(),", "parent": 201, "children": [203, 205, 206], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 68}}, {"id": 203, "type": "ERROR", "text": "std::", "parent": 202, "children": [204], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 21}}, {"id": 204, "type": "identifier", "text": "std", "parent": 203, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 19}}, {"id": 205, "type": "identifier", "text": "system_error", "parent": 202, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 33}}, {"id": 206, "type": "parameter_declaration", "text": "EOWNERDEAD,std::system_category()", "parent": 202, "children": [207, 208, 210], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 67}}, {"id": 207, "type": "type_identifier", "text": "EOWNERDEAD", "parent": 206, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 44}}, {"id": 208, "type": "ERROR", "text": ",std::", "parent": 206, "children": [209], "start_point": {"row": 65, "column": 44}, "end_point": {"row": 65, "column": 50}}, {"id": 209, "type": "identifier", "text": "std", "parent": 208, "children": [], "start_point": {"row": 65, "column": 45}, "end_point": {"row": 65, "column": 48}}, {"id": 210, "type": "function_declarator", "text": "system_category()", "parent": 206, "children": [211, 212], "start_point": {"row": 65, "column": 50}, "end_point": {"row": 65, "column": 67}}, {"id": 211, "type": "identifier", "text": "system_category", "parent": 210, "children": [], "start_point": {"row": 65, "column": 50}, "end_point": {"row": 65, "column": 65}}, {"id": 212, "type": "parameter_list", "text": "()", "parent": 210, "children": [], "start_point": {"row": 65, "column": 65}, "end_point": {"row": 65, "column": 67}}, {"id": 213, "type": "string_literal", "text": "\"itc::mutex::lock() - This mutex is being destroyed\"", "parent": 201, "children": [], "start_point": {"row": 65, "column": 69}, "end_point": {"row": 65, "column": 121}}, {"id": 214, "type": "function_definition", "text": "void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n }", "parent": 20, "children": [215, 216], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 118, "column": 5}}, {"id": 215, "type": "primitive_type", "text": "void", "parent": 214, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 10}}, {"id": 216, "type": "function_declarator", "text": "unlock_destroy()", "parent": 214, "children": [217, 218], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 27}}, {"id": 217, "type": "identifier", "text": "unlock_destroy", "parent": 216, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 25}}, {"id": 218, "type": "parameter_list", "text": "()", "parent": 216, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 27}}, {"id": 219, "type": "declaration", "text": "usecount uc(&counter);", "parent": 214, "children": [220, 221], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 30}}, {"id": 220, "type": "type_identifier", "text": "usecount", "parent": 219, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 16}}, {"id": 221, "type": "function_declarator", "text": "uc(&counter)", "parent": 219, "children": [222, 223], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 29}}, {"id": 222, "type": "identifier", "text": "uc", "parent": 221, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 19}}, {"id": 223, "type": "parameter_list", "text": "(&counter)", "parent": 221, "children": [224], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 29}}, {"id": 224, "type": "parameter_declaration", "text": "counter", "parent": 223, "children": [225], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 28}}, {"id": 225, "type": "type_identifier", "text": "counter", "parent": 224, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 28}}, {"id": 226, "type": "function_definition", "text": "bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }", "parent": 214, "children": [227, 228], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 87, "column": 7}}, {"id": 227, "type": "primitive_type", "text": "bool", "parent": 226, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 12}}, {"id": 228, "type": "identifier", "text": "val", "parent": 226, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 16}}, {"id": 229, "type": "true", "text": "true", "parent": 226, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 21}}, {"id": 230, "type": "if_statement", "text": "if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }", "parent": 226, "children": [231, 273], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 86, "column": 9}}, {"id": 231, "type": "parenthesized_expression", "text": "(valid.compare_exchange_strong(val,false))", "parent": 230, "children": [232], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 52}}, {"id": 232, "type": "call_expression", "text": "valid.compare_exchange_strong(val,false)", "parent": 231, "children": [233, 236], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 51}}, {"id": 233, "type": "field_expression", "text": "valid.compare_exchange_strong", "parent": 232, "children": [234, 235], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 40}}, {"id": 234, "type": "identifier", "text": "valid", "parent": 233, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 16}}, {"id": 235, "type": "field_identifier", "text": "compare_exchange_strong", "parent": 233, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 40}}, {"id": 236, "type": "argument_list", "text": "(val,false)", "parent": 232, "children": [237, 238], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 51}}, {"id": 237, "type": "identifier", "text": "val", "parent": 236, "children": [], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 44}}, {"id": 238, "type": "false", "text": "false", "parent": 236, "children": [], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 50}}, {"id": 239, "type": "declaration", "text": "static thread_local auto current=pthread_self();", "parent": 230, "children": [240, 242, 244, 245, 247], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 58}}, {"id": 240, "type": "storage_class_specifier", "text": "thread_local", "parent": 239, "children": [241], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 29}}, {"id": 241, "type": "thread_local", "text": "thread_local", "parent": 240, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 29}}, {"id": 242, "type": "storage_class_specifier", "text": "auto", "parent": 239, "children": [243], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 34}}, {"id": 243, "type": "auto", "text": "auto", "parent": 242, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 34}}, {"id": 244, "type": "type_identifier", "text": "current", "parent": 239, "children": [], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 42}}, {"id": 245, "type": "ERROR", "text": "=", "parent": 239, "children": [246], "start_point": {"row": 78, "column": 42}, "end_point": {"row": 78, "column": 43}}, {"id": 246, "type": "=", "text": "=", "parent": 245, "children": [], "start_point": {"row": 78, "column": 42}, "end_point": {"row": 78, "column": 43}}, {"id": 247, "type": "function_declarator", "text": "pthread_self()", "parent": 239, "children": [248, 249], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 57}}, {"id": 248, "type": "identifier", "text": "pthread_self", "parent": 247, "children": [], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 55}}, {"id": 249, "type": "parameter_list", "text": "()", "parent": 247, "children": [], "start_point": {"row": 78, "column": 55}, "end_point": {"row": 78, "column": 57}}, {"id": 250, "type": "if_statement", "text": "if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }", "parent": 230, "children": [251], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 83, "column": 11}}, {"id": 251, "type": "parenthesized_expression", "text": "(!mLock.compare_exchange_strong(current,0))", "parent": 250, "children": [252], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 55}}, {"id": 252, "type": "unary_expression", "text": "!mLock.compare_exchange_strong(current,0)", "parent": 251, "children": [253, 254], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 54}}, {"id": 253, "type": "!", "text": "!", "parent": 252, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 14}}, {"id": 254, "type": "call_expression", "text": "mLock.compare_exchange_strong(current,0)", "parent": 252, "children": [255, 258], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 54}}, {"id": 255, "type": "field_expression", "text": "mLock.compare_exchange_strong", "parent": 254, "children": [256, 257], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 43}}, {"id": 256, "type": "identifier", "text": "mLock", "parent": 255, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 19}}, {"id": 257, "type": "field_identifier", "text": "compare_exchange_strong", "parent": 255, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 43}}, {"id": 258, "type": "argument_list", "text": "(current,0)", "parent": 254, "children": [259, 260], "start_point": {"row": 80, "column": 43}, "end_point": {"row": 80, "column": 54}}, {"id": 259, "type": "identifier", "text": "current", "parent": 258, "children": [], "start_point": {"row": 80, "column": 44}, "end_point": {"row": 80, "column": 51}}, {"id": 260, "type": "number_literal", "text": "0", "parent": 258, "children": [], "start_point": {"row": 80, "column": 52}, "end_point": {"row": 80, "column": 53}}, {"id": 261, "type": "ERROR", "text": "throw std::system_error(EACCES, std::system_category(),", "parent": 250, "children": [262, 264, 265], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 67}}, {"id": 262, "type": "ERROR", "text": "std::", "parent": 261, "children": [263], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 23}}, {"id": 263, "type": "identifier", "text": "std", "parent": 262, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 21}}, {"id": 264, "type": "identifier", "text": "system_error", "parent": 261, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 35}}, {"id": 265, "type": "parameter_declaration", "text": "EACCES, std::system_category()", "parent": 261, "children": [266, 267, 269], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 66}}, {"id": 266, "type": "type_identifier", "text": "EACCES", "parent": 265, "children": [], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 42}}, {"id": 267, "type": "ERROR", "text": ", std::", "parent": 265, "children": [268], "start_point": {"row": 82, "column": 42}, "end_point": {"row": 82, "column": 49}}, {"id": 268, "type": "identifier", "text": "std", "parent": 267, "children": [], "start_point": {"row": 82, "column": 44}, "end_point": {"row": 82, "column": 47}}, {"id": 269, "type": "function_declarator", "text": "system_category()", "parent": 265, "children": [270, 271], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 66}}, {"id": 270, "type": "identifier", "text": "system_category", "parent": 269, "children": [], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 64}}, {"id": 271, "type": "parameter_list", "text": "()", "parent": 269, "children": [], "start_point": {"row": 82, "column": 64}, "end_point": {"row": 82, "column": 66}}, {"id": 272, "type": "string_literal", "text": "\"An attempt to unlock the mutex owned by other thread\"", "parent": 250, "children": [], "start_point": {"row": 82, "column": 68}, "end_point": {"row": 82, "column": 122}}, {"id": 273, "type": "else_clause", "text": "else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }", "parent": 230, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 86, "column": 9}}, {"id": 274, "type": "ERROR", "text": "throw std::system_error(EOWNERDEAD,std::system_category(),", "parent": 273, "children": [275, 277, 278], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 68}}, {"id": 275, "type": "ERROR", "text": "std::", "parent": 274, "children": [276], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 21}}, {"id": 276, "type": "identifier", "text": "std", "parent": 275, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 19}}, {"id": 277, "type": "identifier", "text": "system_error", "parent": 274, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 33}}, {"id": 278, "type": "parameter_declaration", "text": "EOWNERDEAD,std::system_category()", "parent": 274, "children": [279, 280, 282], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 67}}, {"id": 279, "type": "type_identifier", "text": "EOWNERDEAD", "parent": 278, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 44}}, {"id": 280, "type": "ERROR", "text": ",std::", "parent": 278, "children": [281], "start_point": {"row": 85, "column": 44}, "end_point": {"row": 85, "column": 50}}, {"id": 281, "type": "identifier", "text": "std", "parent": 280, "children": [], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 48}}, {"id": 282, "type": "function_declarator", "text": "system_category()", "parent": 278, "children": [283, 284], "start_point": {"row": 85, "column": 50}, "end_point": {"row": 85, "column": 67}}, {"id": 283, "type": "identifier", "text": "system_category", "parent": 282, "children": [], "start_point": {"row": 85, "column": 50}, "end_point": {"row": 85, "column": 65}}, {"id": 284, "type": "parameter_list", "text": "()", "parent": 282, "children": [], "start_point": {"row": 85, "column": 65}, "end_point": {"row": 85, "column": 67}}, {"id": 285, "type": "string_literal", "text": "\"itc::mutex::lock() - This mutex is being destroyed\"", "parent": 273, "children": [], "start_point": {"row": 85, "column": 69}, "end_point": {"row": 85, "column": 121}}, {"id": 286, "type": "function_definition", "text": "const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }", "parent": 214, "children": [287, 288], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 99, "column": 7}}, {"id": 287, "type": "primitive_type", "text": "bool", "parent": 286, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 16}}, {"id": 288, "type": "function_declarator", "text": "try_lock()", "parent": 286, "children": [289, 290], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 27}}, {"id": 289, "type": "identifier", "text": "try_lock", "parent": 288, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 25}}, {"id": 290, "type": "parameter_list", "text": "()", "parent": 288, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 27}}, {"id": 291, "type": "declaration", "text": "usecount uc(&counter);", "parent": 286, "children": [292, 293], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 30}}, {"id": 292, "type": "type_identifier", "text": "usecount", "parent": 291, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 16}}, {"id": 293, "type": "function_declarator", "text": "uc(&counter)", "parent": 291, "children": [294, 295], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 29}}, {"id": 294, "type": "identifier", "text": "uc", "parent": 293, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 19}}, {"id": 295, "type": "parameter_list", "text": "(&counter)", "parent": 293, "children": [296], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 29}}, {"id": 296, "type": "parameter_declaration", "text": "counter", "parent": 295, "children": [297], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 28}}, {"id": 297, "type": "type_identifier", "text": "counter", "parent": 296, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 28}}, {"id": 298, "type": "if_statement", "text": "if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }", "parent": 286, "children": [299], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 97, "column": 9}}, {"id": 299, "type": "parenthesized_expression", "text": "(valid.load())", "parent": 298, "children": [300], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 24}}, {"id": 300, "type": "call_expression", "text": "valid.load()", "parent": 299, "children": [301, 304], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 23}}, {"id": 301, "type": "field_expression", "text": "valid.load", "parent": 300, "children": [302, 303], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 21}}, {"id": 302, "type": "identifier", "text": "valid", "parent": 301, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 16}}, {"id": 303, "type": "field_identifier", "text": "load", "parent": 301, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 21}}, {"id": 304, "type": "argument_list", "text": "()", "parent": 300, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 23}}, {"id": 305, "type": "declaration", "text": "pthread_t unused=0;", "parent": 298, "children": [306, 307], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 29}}, {"id": 306, "type": "type_identifier", "text": "pthread_t", "parent": 305, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 19}}, {"id": 307, "type": "init_declarator", "text": "unused=0", "parent": 305, "children": [308, 309, 310], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 28}}, {"id": 308, "type": "identifier", "text": "unused", "parent": 307, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 26}}, {"id": 309, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 27}}, {"id": 310, "type": "number_literal", "text": "0", "parent": 307, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 28}}, {"id": 311, "type": "declaration", "text": "static thread_local auto current=pthread_self();", "parent": 298, "children": [312, 314, 316, 317, 319], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 58}}, {"id": 312, "type": "storage_class_specifier", "text": "thread_local", "parent": 311, "children": [313], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 29}}, {"id": 313, "type": "thread_local", "text": "thread_local", "parent": 312, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 29}}, {"id": 314, "type": "storage_class_specifier", "text": "auto", "parent": 311, "children": [315], "start_point": {"row": 95, "column": 30}, "end_point": {"row": 95, "column": 34}}, {"id": 315, "type": "auto", "text": "auto", "parent": 314, "children": [], "start_point": {"row": 95, "column": 30}, "end_point": {"row": 95, "column": 34}}, {"id": 316, "type": "type_identifier", "text": "current", "parent": 311, "children": [], "start_point": {"row": 95, "column": 35}, "end_point": {"row": 95, "column": 42}}, {"id": 317, "type": "ERROR", "text": "=", "parent": 311, "children": [318], "start_point": {"row": 95, "column": 42}, "end_point": {"row": 95, "column": 43}}, {"id": 318, "type": "=", "text": "=", "parent": 317, "children": [], "start_point": {"row": 95, "column": 42}, "end_point": {"row": 95, "column": 43}}, {"id": 319, "type": "function_declarator", "text": "pthread_self()", "parent": 311, "children": [320, 321], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 57}}, {"id": 320, "type": "identifier", "text": "pthread_self", "parent": 319, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 55}}, {"id": 321, "type": "parameter_list", "text": "()", "parent": 319, "children": [], "start_point": {"row": 95, "column": 55}, "end_point": {"row": 95, "column": 57}}, {"id": 322, "type": "return_statement", "text": "return mLock.compare_exchange_strong(unused,current);", "parent": 298, "children": [323], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 63}}, {"id": 323, "type": "call_expression", "text": "mLock.compare_exchange_strong(unused,current)", "parent": 322, "children": [324, 327], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 62}}, {"id": 324, "type": "field_expression", "text": "mLock.compare_exchange_strong", "parent": 323, "children": [325, 326], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 46}}, {"id": 325, "type": "identifier", "text": "mLock", "parent": 324, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 22}}, {"id": 326, "type": "field_identifier", "text": "compare_exchange_strong", "parent": 324, "children": [], "start_point": {"row": 96, "column": 23}, "end_point": {"row": 96, "column": 46}}, {"id": 327, "type": "argument_list", "text": "(unused,current)", "parent": 323, "children": [328, 329], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 62}}, {"id": 328, "type": "identifier", "text": "unused", "parent": 327, "children": [], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 53}}, {"id": 329, "type": "identifier", "text": "current", "parent": 327, "children": [], "start_point": {"row": 96, "column": 54}, "end_point": {"row": 96, "column": 61}}, {"id": 330, "type": "return_statement", "text": "return false;", "parent": 286, "children": [331], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 21}}, {"id": 331, "type": "false", "text": "false", "parent": 330, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 20}}, {"id": 332, "type": "function_definition", "text": "const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }", "parent": 214, "children": [333, 334, 337, 344, 361], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 111, "column": 7}}, {"id": 333, "type": "primitive_type", "text": "bool", "parent": 332, "children": [], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 16}}, {"id": 334, "type": "function_declarator", "text": "busy()", "parent": 332, "children": [335, 336], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 23}}, {"id": 335, "type": "identifier", "text": "busy", "parent": 334, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 21}}, {"id": 336, "type": "parameter_list", "text": "()", "parent": 334, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 23}}, {"id": 337, "type": "declaration", "text": "const\n {\n usecount uc(&counter);", "parent": 332, "children": [338, 339], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 103, "column": 30}}, {"id": 338, "type": "type_identifier", "text": "usecount", "parent": 337, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 16}}, {"id": 339, "type": "function_declarator", "text": "uc(&counter)", "parent": 337, "children": [340, 341], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 29}}, {"id": 340, "type": "identifier", "text": "uc", "parent": 339, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 19}}, {"id": 341, "type": "parameter_list", "text": "(&counter)", "parent": 339, "children": [342], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 29}}, {"id": 342, "type": "parameter_declaration", "text": "counter", "parent": 341, "children": [343], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 28}}, {"id": 343, "type": "type_identifier", "text": "counter", "parent": 342, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 28}}, {"id": 344, "type": "declaration", "text": "return (mLock.load() != 0) || (!valid.load());", "parent": 332, "children": [345, 350, 354], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 54}}, {"id": 345, "type": "macro_type_specifier", "text": "return (mLock.load()", "parent": 344, "children": [346, 348], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 28}}, {"id": 346, "type": "type_descriptor", "text": "mLock", "parent": 345, "children": [347], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 21}}, {"id": 347, "type": "type_identifier", "text": "mLock", "parent": 346, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 21}}, {"id": 348, "type": "ERROR", "text": ".load(", "parent": 345, "children": [349], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 27}}, {"id": 349, "type": "identifier", "text": "load", "parent": 348, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 26}}, {"id": 350, "type": "ERROR", "text": "!= 0) ||", "parent": 344, "children": [351, 352, 353], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 37}}, {"id": 351, "type": "!=", "text": "!=", "parent": 350, "children": [], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 31}}, {"id": 352, "type": "number_literal", "text": "0", "parent": 350, "children": [], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 33}}, {"id": 353, "type": "||", "text": "||", "parent": 350, "children": [], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 37}}, {"id": 354, "type": "parenthesized_declarator", "text": "(!valid.load())", "parent": 344, "children": [355, 358], "start_point": {"row": 104, "column": 38}, "end_point": {"row": 104, "column": 53}}, {"id": 355, "type": "ERROR", "text": "!valid.", "parent": 354, "children": [356, 357], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 46}}, {"id": 356, "type": "!", "text": "!", "parent": 355, "children": [], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 40}}, {"id": 357, "type": "identifier", "text": "valid", "parent": 355, "children": [], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 45}}, {"id": 358, "type": "function_declarator", "text": "load()", "parent": 354, "children": [359, 360], "start_point": {"row": 104, "column": 46}, "end_point": {"row": 104, "column": 52}}, {"id": 359, "type": "identifier", "text": "load", "parent": 358, "children": [], "start_point": {"row": 104, "column": 46}, "end_point": {"row": 104, "column": 50}}, {"id": 360, "type": "parameter_list", "text": "()", "parent": 358, "children": [], "start_point": {"row": 104, "column": 50}, "end_point": {"row": 104, "column": 52}}, {"id": 361, "type": "ERROR", "text": "}\n \n const bool isvalid() const", "parent": 332, "children": [362, 363], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 107, "column": 32}}, {"id": 362, "type": "primitive_type", "text": "bool", "parent": 361, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 16}}, {"id": 363, "type": "function_declarator", "text": "isvalid() const", "parent": 361, "children": [364, 365], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 32}}, {"id": 364, "type": "identifier", "text": "isvalid", "parent": 363, "children": [], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 24}}, {"id": 365, "type": "parameter_list", "text": "()", "parent": 363, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 26}}, {"id": 366, "type": "declaration", "text": "usecount uc(&counter);", "parent": 332, "children": [367, 368], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 30}}, {"id": 367, "type": "type_identifier", "text": "usecount", "parent": 366, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 16}}, {"id": 368, "type": "function_declarator", "text": "uc(&counter)", "parent": 366, "children": [369, 370], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 29}}, {"id": 369, "type": "identifier", "text": "uc", "parent": 368, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 19}}, {"id": 370, "type": "parameter_list", "text": "(&counter)", "parent": 368, "children": [371], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 29}}, {"id": 371, "type": "parameter_declaration", "text": "counter", "parent": 370, "children": [372], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 28}}, {"id": 372, "type": "type_identifier", "text": "counter", "parent": 371, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 28}}, {"id": 373, "type": "return_statement", "text": "return valid.load();", "parent": 332, "children": [374], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 28}}, {"id": 374, "type": "call_expression", "text": "valid.load()", "parent": 373, "children": [375, 378], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 27}}, {"id": 375, "type": "field_expression", "text": "valid.load", "parent": 374, "children": [376, 377], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 25}}, {"id": 376, "type": "identifier", "text": "valid", "parent": 375, "children": [], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 20}}, {"id": 377, "type": "field_identifier", "text": "load", "parent": 375, "children": [], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 25}}, {"id": 378, "type": "argument_list", "text": "()", "parent": 374, "children": [], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 27}}, {"id": 379, "type": "unary_expression", "text": "~mutex()", "parent": 214, "children": [380, 381], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 14}}, {"id": 380, "type": "~", "text": "~", "parent": 379, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 7}}, {"id": 381, "type": "call_expression", "text": "mutex()", "parent": 379, "children": [382, 383], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 14}}, {"id": 382, "type": "identifier", "text": "mutex", "parent": 381, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 12}}, {"id": 383, "type": "argument_list", "text": "()", "parent": 381, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 14}}, {"id": 384, "type": "call_expression", "text": "valid.store(false)", "parent": 214, "children": [385, 388], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 26}}, {"id": 385, "type": "field_expression", "text": "valid.store", "parent": 384, "children": [386, 387], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 19}}, {"id": 386, "type": "identifier", "text": "valid", "parent": 385, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 13}}, {"id": 387, "type": "field_identifier", "text": "store", "parent": 385, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 19}}, {"id": 388, "type": "argument_list", "text": "(false)", "parent": 384, "children": [389], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 26}}, {"id": 389, "type": "false", "text": "false", "parent": 388, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 25}}, {"id": 390, "type": "while_statement", "text": "while((mLock.load() != 0)&&(counter.load() != 0));", "parent": 214, "children": [391], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 58}}, {"id": 391, "type": "parenthesized_expression", "text": "((mLock.load() != 0)&&(counter.load() != 0))", "parent": 390, "children": [392], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 57}}, {"id": 392, "type": "binary_expression", "text": "(mLock.load() != 0)&&(counter.load() != 0)", "parent": 391, "children": [393, 402, 403], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 56}}, {"id": 393, "type": "parenthesized_expression", "text": "(mLock.load() != 0)", "parent": 392, "children": [394], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 33}}, {"id": 394, "type": "binary_expression", "text": "mLock.load() != 0", "parent": 393, "children": [395, 400, 401], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 32}}, {"id": 395, "type": "call_expression", "text": "mLock.load()", "parent": 394, "children": [396, 399], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 27}}, {"id": 396, "type": "field_expression", "text": "mLock.load", "parent": 395, "children": [397, 398], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 25}}, {"id": 397, "type": "identifier", "text": "mLock", "parent": 396, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 20}}, {"id": 398, "type": "field_identifier", "text": "load", "parent": 396, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 25}}, {"id": 399, "type": "argument_list", "text": "()", "parent": 395, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 27}}, {"id": 400, "type": "!=", "text": "!=", "parent": 394, "children": [], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 30}}, {"id": 401, "type": "number_literal", "text": "0", "parent": 394, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 32}}, {"id": 402, "type": "&&", "text": "&&", "parent": 392, "children": [], "start_point": {"row": 116, "column": 33}, "end_point": {"row": 116, "column": 35}}, {"id": 403, "type": "parenthesized_expression", "text": "(counter.load() != 0)", "parent": 392, "children": [404], "start_point": {"row": 116, "column": 35}, "end_point": {"row": 116, "column": 56}}, {"id": 404, "type": "binary_expression", "text": "counter.load() != 0", "parent": 403, "children": [405, 410, 411], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 55}}, {"id": 405, "type": "call_expression", "text": "counter.load()", "parent": 404, "children": [406, 409], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 50}}, {"id": 406, "type": "field_expression", "text": "counter.load", "parent": 405, "children": [407, 408], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 48}}, {"id": 407, "type": "identifier", "text": "counter", "parent": 406, "children": [], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 43}}, {"id": 408, "type": "field_identifier", "text": "load", "parent": 406, "children": [], "start_point": {"row": 116, "column": 44}, "end_point": {"row": 116, "column": 48}}, {"id": 409, "type": "argument_list", "text": "()", "parent": 405, "children": [], "start_point": {"row": 116, "column": 48}, "end_point": {"row": 116, "column": 50}}, {"id": 410, "type": "!=", "text": "!=", "parent": 404, "children": [], "start_point": {"row": 116, "column": 51}, "end_point": {"row": 116, "column": 53}}, {"id": 411, "type": "number_literal", "text": "0", "parent": 404, "children": [], "start_point": {"row": 116, "column": 54}, "end_point": {"row": 116, "column": 55}}, {"id": 412, "type": "preproc_call", "text": "#endif /* __USERLAND_MUTEX_H__ */\n", "parent": 0, "children": [413], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 123, "column": 0}}, {"id": 413, "type": "preproc_directive", "text": "#endif", "parent": 412, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17, 20, 53, 77, 79, 84, 110, 144, 148, 150, 155, 175, 197, 210, 214, 216, 221, 226, 247, 269, 282, 286, 288, 293, 319, 332, 334, 339, 358, 363, 368], "variables": [32, 62, 82, 87, 96, 102, 140, 153, 158, 167, 193, 206, 219, 224, 239, 265, 278, 291, 296, 305, 311, 337, 342, 344, 366, 371], "classes": [103, 105, 168, 170, 240, 242, 312, 314], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [25, 26, 43, 44, 70, 73, 90, 91, 92, 114, 115, 117, 118, 132, 161, 162, 163, 179, 180, 182, 183, 231, 232, 233, 251, 252, 254, 255, 299, 300, 301, 323, 324, 374, 375, 379, 381, 384, 385, 391, 392, 393, 394, 395, 396, 403, 404, 405, 406], "assignments": [69, 124], "loops": [113, 390], "conditionals": [1, 2, 5, 15, 16, 18, 19, 21, 24, 27, 29, 31, 33, 35, 36, 40, 42, 45, 47, 49, 52, 54, 56, 58, 60, 63, 64, 66, 71, 74, 75, 80, 83, 85, 88, 89, 93, 94, 97, 99, 107, 111, 119, 120, 122, 123, 125, 129, 131, 133, 138, 139, 141, 143, 145, 151, 154, 156, 159, 160, 164, 165, 172, 176, 178, 184, 185, 187, 191, 192, 194, 196, 198, 204, 205, 207, 209, 211, 217, 220, 222, 225, 228, 230, 234, 235, 237, 244, 248, 250, 256, 257, 259, 263, 264, 266, 268, 270, 276, 277, 279, 281, 283, 289, 292, 294, 297, 298, 302, 303, 306, 308, 316, 320, 325, 326, 328, 329, 335, 338, 340, 343, 345, 347, 349, 357, 359, 364, 367, 369, 372, 376, 377, 382, 386, 387, 397, 398, 407, 408], "returns": [322, 330, 373], "exceptions": []}, "expressions": {"calls": [412], "literals": [8, 11, 14, 59, 61, 101, 127, 147, 188, 200, 213, 260, 272, 285, 310, 352, 401, 411], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "mutex", "text_snippet": "namespace sys {\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n"}, {"node_id": 20, "universal_type": "function", "name": "mutex", "text_snippet": "class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "mutex():valid"}, {"node_id": 77, "universal_type": "function", "name": "lock", "text_snippet": "void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthr"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "lock()"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "uc(&counter)"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "pthread_self()"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "system_category()"}, {"node_id": 148, "universal_type": "function", "name": "unlock", "text_snippet": "void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock "}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "unlock()"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "uc(&counter)"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "pthread_self()"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "system_category()"}, {"node_id": 210, "universal_type": "function", "name": "unknown", "text_snippet": "system_category()"}, {"node_id": 214, "universal_type": "function", "name": "unlock_destroy", "text_snippet": "void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n "}, {"node_id": 216, "universal_type": "function", "name": "unknown", "text_snippet": "unlock_destroy()"}, {"node_id": 221, "universal_type": "function", "name": "unknown", "text_snippet": "uc(&counter)"}, {"node_id": 226, "universal_type": "function", "name": "val{true};", "text_snippet": "bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n "}, {"node_id": 247, "universal_type": "function", "name": "unknown", "text_snippet": "pthread_self()"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "system_category()"}, {"node_id": 282, "universal_type": "function", "name": "unknown", "text_snippet": "system_category()"}, {"node_id": 286, "universal_type": "function", "name": "try_lock", "text_snippet": "const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n "}, {"node_id": 288, "universal_type": "function", "name": "unknown", "text_snippet": "try_lock()"}, {"node_id": 293, "universal_type": "function", "name": "unknown", "text_snippet": "uc(&counter)"}, {"node_id": 319, "universal_type": "function", "name": "unknown", "text_snippet": "pthread_self()"}, {"node_id": 332, "universal_type": "function", "name": "busy", "text_snippet": "const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) ||"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "busy()"}, {"node_id": 339, "universal_type": "function", "name": "unknown", "text_snippet": "uc(&counter)"}, {"node_id": 358, "universal_type": "function", "name": "unknown", "text_snippet": "load()"}, {"node_id": 363, "universal_type": "function", "name": "unknown", "text_snippet": "isvalid() const"}, {"node_id": 368, "universal_type": "function", "name": "unknown", "text_snippet": "uc(&counter)"}], "class_declarations": [{"node_id": 103, "universal_type": "class", "name": "unknown", "text_snippet": "thread_local"}, {"node_id": 105, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 168, "universal_type": "class", "name": "unknown", "text_snippet": "thread_local"}, {"node_id": 170, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 240, "universal_type": "class", "name": "unknown", "text_snippet": "thread_local"}, {"node_id": 242, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 312, "universal_type": "class", "name": "unknown", "text_snippet": "thread_local"}, {"node_id": 314, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 6, "text": "#include <atomic>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <sys/sched_yield.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <usecount.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/**\n * Copyright <NAME> 2007 - 2015.\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE_1_0.txt or copy at\n * http://www.boost.org/LICENSE_1_0.txt)\n * \n * $Id: ITCLib::include/sys/mutex.h$\n * \n * EMail: <EMAIL>\n * \n **/\n\n#ifndef __USERLAND_MUTEX_H__\n#define __USERLAND_MUTEX_H__\n#include <atomic>\n#include <sys/sched_yield.h>\n#include <usecount.h>\n\nnamespace itc {\n namespace sys {\n \n class mutex\n {\n private:\n std::atomic<bool> valid;\n mutable std::atomic<size_t> counter;\n std::atomic<pthread_t> mLock;\n \n public:\n explicit mutex():valid{true},counter{0},mLock{0}\n {\n }\n mutex(const mutex&)=delete;\n mutex(mutex&)=delete;\n \n void lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n \n while(!mLock.compare_exchange_strong(unused,current))\n {\n unused=0;\n itc::sys::sched_yield();\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock() // Do not check for validity. if mutex is not yet destroyed, let the thread to unlock it.\n {\n usecount uc(&counter);\n if(valid.load())\n {\n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n void unlock_destroy()\n {\n usecount uc(&counter);\n \n bool val{true};\n \n if(valid.compare_exchange_strong(val,false))\n {\n \n static thread_local auto current=pthread_self();\n \n if(!mLock.compare_exchange_strong(current,0))\n {\n throw std::system_error(EACCES, std::system_category(), \"An attempt to unlock the mutex owned by other thread\");\n }\n }else{\n throw std::system_error(EOWNERDEAD,std::system_category(), \"itc::mutex::lock() - This mutex is being destroyed\");\n }\n }\n \n const bool try_lock()\n {\n usecount uc(&counter);\n if(valid.load())\n {\n pthread_t unused=0;\n static thread_local auto current=pthread_self();\n return mLock.compare_exchange_strong(unused,current);\n }\n return false;\n }\n \n const bool busy() const\n {\n usecount uc(&counter);\n return (mLock.load() != 0) || (!valid.load());\n }\n \n const bool isvalid() const\n {\n usecount uc(&counter);\n return valid.load();\n }\n \n ~mutex()\n {\n valid.store(false);\n while((mLock.load() != 0)&&(counter.load() != 0));\n }\n };\n }\n}\n\n#endif /* __USERLAND_MUTEX_H__ */\n\n"}
80,422
c
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_ASM_X86_KVMI_H #define _UAPI_ASM_X86_KVMI_H /* * KVM introspection - x86 specific structures and definitions */ #include <asm/kvm.h> #define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24 struct kvmi_event_arch { __u8 mode; /* 2, 4 or 8 */ __u8 padding1; __u16 view; __u32 padding2; struct kvm_regs regs; struct kvm_sregs sregs; struct { __u64 sysenter_cs; __u64 sysenter_esp; __u64 sysenter_eip; __u64 efer; __u64 star; __u64 lstar; __u64 cstar; __u64 pat; __u64 shadow_gs; } msrs; }; struct kvmi_vcpu_get_info_reply { __u64 tsc_speed; }; struct kvmi_vcpu_get_registers { __u16 nmsrs; __u16 padding1; __u32 padding2; __u32 msrs_idx[0]; }; struct kvmi_vcpu_get_registers_reply { __u32 mode; __u32 padding; struct kvm_regs regs; struct kvm_sregs sregs; struct kvm_msrs msrs; }; struct kvmi_vcpu_get_cpuid { __u32 function; __u32 index; }; struct kvmi_vcpu_get_cpuid_reply { __u32 eax; __u32 ebx; __u32 ecx; __u32 edx; }; struct kvmi_event_breakpoint { __u64 gpa; __u8 insn_len; __u8 padding[7]; }; struct kvmi_vcpu_control_cr { __u8 enable; __u8 padding1; __u16 padding2; __u32 cr; }; struct kvmi_event_cr { __u16 cr; __u16 padding[3]; __u64 old_value; __u64 new_value; }; struct kvmi_event_cr_reply { __u64 new_val; }; struct kvmi_event_trap { __u8 vector; __u8 padding1; __u16 padding2; __u32 error_code; __u64 cr2; }; struct kvmi_vcpu_inject_exception { __u8 nr; __u8 padding1; __u16 padding2; __u32 error_code; __u64 address; }; struct kvmi_vcpu_get_xsave_reply { __u32 region[0]; }; struct kvmi_vcpu_get_mtrr_type { __u64 gpa; }; struct kvmi_vcpu_get_mtrr_type_reply { __u8 type; __u8 padding[7]; }; #define KVMI_DESC_IDTR 1 #define KVMI_DESC_GDTR 2 #define KVMI_DESC_LDTR 3 #define KVMI_DESC_TR 4 struct kvmi_event_descriptor { __u8 descriptor; __u8 write; __u8 padding[6]; }; struct kvmi_vcpu_control_msr { __u8 enable; __u8 padding1; __u16 padding2; __u32 msr; }; struct kvmi_event_msr { __u32 msr; __u32 padding; __u64 old_value; __u64 new_value; }; struct kvmi_event_msr_reply { __u64 new_val; }; struct kvmi_features { __u8 spp; __u8 vmfunc; __u8 eptp; __u8 ve; __u8 singlestep; __u8 padding[3]; }; struct kvmi_vcpu_get_ept_view_reply { __u16 view; __u16 padding1; __u32 padding2; }; struct kvmi_vcpu_set_ept_view { __u16 view; __u16 padding1; __u32 padding2; }; struct kvmi_vcpu_control_ept_view { __u16 view; __u8 visible; __u8 padding1; __u32 padding2; }; struct kvmi_vcpu_set_ve_info { __u64 gpa; __u8 trigger_vmexit; __u8 padding1; __u16 padding2; __u32 padding3; }; struct kvmi_vm_set_page_sve { __u16 view; __u8 suppress; __u8 padding1; __u32 padding2; __u64 gpa; }; struct kvmi_vm_control_spp { __u8 enable; __u8 padding1; __u16 padding2; __u32 padding3; }; struct kvmi_page_write_bitmap_entry { __u64 gpa; __u32 bitmap; __u32 padding; }; struct kvmi_vm_set_page_write_bitmap { __u16 padding1; __u16 count; __u32 padding2; struct kvmi_page_write_bitmap_entry entries[0]; }; #endif /* _UAPI_ASM_X86_KVMI_H */
16.67
177
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */\n#ifndef _UAPI_ASM_X86_KVMI_H\n#define _UAPI_ASM_X86_KVMI_H\n\n/*\n * KVM introspection - x86 specific structures and definitions\n */\n\n#include <asm/kvm.h>\n\n#define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24\n\nstruct kvmi_event_arch {\n __u8 mode; /* 2, 4 or 8 */\n __u8 padding1;\n __u16 view;\n __u32 padding2;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct {\n __u64 sysenter_cs;\n __u64 sysenter_esp;\n __u64 sysenter_eip;\n __u64 efer;\n __u64 star;\n __u64 lstar;\n __u64 cstar;\n __u64 pat;\n __u64 shadow_gs;\n } msrs;\n};\n\nstruct kvmi_vcpu_get_info_reply {\n __u64 tsc_speed;\n};\n\nstruct kvmi_vcpu_get_registers {\n __u16 nmsrs;\n __u16 padding1;\n __u32 padding2;\n __u32 msrs_idx[0];\n};\n\nstruct kvmi_vcpu_get_registers_reply {\n __u32 mode;\n __u32 padding;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct kvm_msrs msrs;\n};\n\nstruct kvmi_vcpu_get_cpuid {\n __u32 function;\n __u32 index;\n};\n\nstruct kvmi_vcpu_get_cpuid_reply {\n __u32 eax;\n __u32 ebx;\n __u32 ecx;\n __u32 edx;\n};\n\nstruct kvmi_event_breakpoint {\n __u64 gpa;\n __u8 insn_len;\n __u8 padding[7];\n};\n\nstruct kvmi_vcpu_control_cr {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 cr;\n};\n\nstruct kvmi_event_cr {\n __u16 cr;\n __u16 padding[3];\n __u64 old_value;\n __u64 new_value;\n};\n\nstruct kvmi_event_cr_reply {\n __u64 new_val;\n};\n\nstruct kvmi_event_trap {\n __u8 vector;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 cr2;\n};\n\nstruct kvmi_vcpu_inject_exception {\n __u8 nr;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 address;\n};\n\nstruct kvmi_vcpu_get_xsave_reply {\n __u32 region[0];\n};\n\nstruct kvmi_vcpu_get_mtrr_type {\n __u64 gpa;\n};\n\nstruct kvmi_vcpu_get_mtrr_type_reply {\n __u8 type;\n __u8 padding[7];\n};\n\n#define KVMI_DESC_IDTR 1\n#define KVMI_DESC_GDTR 2\n#define KVMI_DESC_LDTR 3\n#define KVMI_DESC_TR 4\n\nstruct kvmi_event_descriptor {\n __u8 descriptor;\n __u8 write;\n __u8 padding[6];\n};\n\nstruct kvmi_vcpu_control_msr {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 msr;\n};\n\nstruct kvmi_event_msr {\n __u32 msr;\n __u32 padding;\n __u64 old_value;\n __u64 new_value;\n};\n\nstruct kvmi_event_msr_reply {\n __u64 new_val;\n};\n\nstruct kvmi_features {\n __u8 spp;\n __u8 vmfunc;\n __u8 eptp;\n __u8 ve;\n __u8 singlestep;\n __u8 padding[3];\n};\n\nstruct kvmi_vcpu_get_ept_view_reply {\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ept_view {\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n};\n\nstruct kvmi_vcpu_control_ept_view {\n __u16 view;\n __u8 visible;\n __u8 padding1;\n __u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ve_info {\n __u64 gpa;\n __u8 trigger_vmexit;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n};\n\nstruct kvmi_vm_set_page_sve {\n __u16 view;\n __u8 suppress;\n __u8 padding1;\n __u32 padding2;\n __u64 gpa;\n};\n\nstruct kvmi_vm_control_spp {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n};\n\nstruct kvmi_page_write_bitmap_entry {\n __u64 gpa;\n __u32 bitmap;\n __u32 padding;\n};\n\nstruct kvmi_vm_set_page_write_bitmap {\n __u16 padding1;\n __u16 count;\n __u32 padding2;\n struct kvmi_page_write_bitmap_entry entries[0];\n};\n\n#endif /* _UAPI_ASM_X86_KVMI_H */\n" (comment) "/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */" (preproc_ifdef) "#ifndef _UAPI_ASM_X86_KVMI_H\n#define _UAPI_ASM_X86_KVMI_H\n\n/*\n * KVM introspection - x86 specific structures and definitions\n */\n\n#include <asm/kvm.h>\n\n#define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24\n\nstruct kvmi_event_arch {\n __u8 mode; /* 2, 4 or 8 */\n __u8 padding1;\n __u16 view;\n __u32 padding2;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct {\n __u64 sysenter_cs;\n __u64 sysenter_esp;\n __u64 sysenter_eip;\n __u64 efer;\n __u64 star;\n __u64 lstar;\n __u64 cstar;\n __u64 pat;\n __u64 shadow_gs;\n } msrs;\n};\n\nstruct kvmi_vcpu_get_info_reply {\n __u64 tsc_speed;\n};\n\nstruct kvmi_vcpu_get_registers {\n __u16 nmsrs;\n __u16 padding1;\n __u32 padding2;\n __u32 msrs_idx[0];\n};\n\nstruct kvmi_vcpu_get_registers_reply {\n __u32 mode;\n __u32 padding;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct kvm_msrs msrs;\n};\n\nstruct kvmi_vcpu_get_cpuid {\n __u32 function;\n __u32 index;\n};\n\nstruct kvmi_vcpu_get_cpuid_reply {\n __u32 eax;\n __u32 ebx;\n __u32 ecx;\n __u32 edx;\n};\n\nstruct kvmi_event_breakpoint {\n __u64 gpa;\n __u8 insn_len;\n __u8 padding[7];\n};\n\nstruct kvmi_vcpu_control_cr {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 cr;\n};\n\nstruct kvmi_event_cr {\n __u16 cr;\n __u16 padding[3];\n __u64 old_value;\n __u64 new_value;\n};\n\nstruct kvmi_event_cr_reply {\n __u64 new_val;\n};\n\nstruct kvmi_event_trap {\n __u8 vector;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 cr2;\n};\n\nstruct kvmi_vcpu_inject_exception {\n __u8 nr;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 address;\n};\n\nstruct kvmi_vcpu_get_xsave_reply {\n __u32 region[0];\n};\n\nstruct kvmi_vcpu_get_mtrr_type {\n __u64 gpa;\n};\n\nstruct kvmi_vcpu_get_mtrr_type_reply {\n __u8 type;\n __u8 padding[7];\n};\n\n#define KVMI_DESC_IDTR 1\n#define KVMI_DESC_GDTR 2\n#define KVMI_DESC_LDTR 3\n#define KVMI_DESC_TR 4\n\nstruct kvmi_event_descriptor {\n __u8 descriptor;\n __u8 write;\n __u8 padding[6];\n};\n\nstruct kvmi_vcpu_control_msr {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 msr;\n};\n\nstruct kvmi_event_msr {\n __u32 msr;\n __u32 padding;\n __u64 old_value;\n __u64 new_value;\n};\n\nstruct kvmi_event_msr_reply {\n __u64 new_val;\n};\n\nstruct kvmi_features {\n __u8 spp;\n __u8 vmfunc;\n __u8 eptp;\n __u8 ve;\n __u8 singlestep;\n __u8 padding[3];\n};\n\nstruct kvmi_vcpu_get_ept_view_reply {\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ept_view {\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n};\n\nstruct kvmi_vcpu_control_ept_view {\n __u16 view;\n __u8 visible;\n __u8 padding1;\n __u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ve_info {\n __u64 gpa;\n __u8 trigger_vmexit;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n};\n\nstruct kvmi_vm_set_page_sve {\n __u16 view;\n __u8 suppress;\n __u8 padding1;\n __u32 padding2;\n __u64 gpa;\n};\n\nstruct kvmi_vm_control_spp {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n};\n\nstruct kvmi_page_write_bitmap_entry {\n __u64 gpa;\n __u32 bitmap;\n __u32 padding;\n};\n\nstruct kvmi_vm_set_page_write_bitmap {\n __u16 padding1;\n __u16 count;\n __u32 padding2;\n struct kvmi_page_write_bitmap_entry entries[0];\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "_UAPI_ASM_X86_KVMI_H" (preproc_def) "#define _UAPI_ASM_X86_KVMI_H\n" (#define) "#define" (identifier) "_UAPI_ASM_X86_KVMI_H" (comment) "/*\n * KVM introspection - x86 specific structures and definitions\n */" (preproc_include) "#include <asm/kvm.h>\n" (#include) "#include" (system_lib_string) "<asm/kvm.h>" (preproc_def) "#define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24\n" (#define) "#define" (identifier) "KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT" (preproc_arg) "24" (struct_specifier) "struct kvmi_event_arch {\n __u8 mode; /* 2, 4 or 8 */\n __u8 padding1;\n __u16 view;\n __u32 padding2;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct {\n __u64 sysenter_cs;\n __u64 sysenter_esp;\n __u64 sysenter_eip;\n __u64 efer;\n __u64 star;\n __u64 lstar;\n __u64 cstar;\n __u64 pat;\n __u64 shadow_gs;\n } msrs;\n}" (struct) "struct" (type_identifier) "kvmi_event_arch" (field_declaration_list) "{\n __u8 mode; /* 2, 4 or 8 */\n __u8 padding1;\n __u16 view;\n __u32 padding2;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct {\n __u64 sysenter_cs;\n __u64 sysenter_esp;\n __u64 sysenter_eip;\n __u64 efer;\n __u64 star;\n __u64 lstar;\n __u64 cstar;\n __u64 pat;\n __u64 shadow_gs;\n } msrs;\n}" ({) "{" (field_declaration) "__u8 mode;" (type_identifier) "__u8" (field_identifier) "mode" (;) ";" (comment) "/* 2, 4 or 8 */" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 view;" (type_identifier) "__u16" (field_identifier) "view" (;) ";" (field_declaration) "__u32 padding2;" (type_identifier) "__u32" (field_identifier) "padding2" (;) ";" (field_declaration) "struct kvm_regs regs;" (struct_specifier) "struct kvm_regs" (struct) "struct" (type_identifier) "kvm_regs" (field_identifier) "regs" (;) ";" (field_declaration) "struct kvm_sregs sregs;" (struct_specifier) "struct kvm_sregs" (struct) "struct" (type_identifier) "kvm_sregs" (field_identifier) "sregs" (;) ";" (field_declaration) "struct {\n __u64 sysenter_cs;\n __u64 sysenter_esp;\n __u64 sysenter_eip;\n __u64 efer;\n __u64 star;\n __u64 lstar;\n __u64 cstar;\n __u64 pat;\n __u64 shadow_gs;\n } msrs;" (struct_specifier) "struct {\n __u64 sysenter_cs;\n __u64 sysenter_esp;\n __u64 sysenter_eip;\n __u64 efer;\n __u64 star;\n __u64 lstar;\n __u64 cstar;\n __u64 pat;\n __u64 shadow_gs;\n }" (struct) "struct" (field_declaration_list) "{\n __u64 sysenter_cs;\n __u64 sysenter_esp;\n __u64 sysenter_eip;\n __u64 efer;\n __u64 star;\n __u64 lstar;\n __u64 cstar;\n __u64 pat;\n __u64 shadow_gs;\n }" ({) "{" (field_declaration) "__u64 sysenter_cs;" (type_identifier) "__u64" (field_identifier) "sysenter_cs" (;) ";" (field_declaration) "__u64 sysenter_esp;" (type_identifier) "__u64" (field_identifier) "sysenter_esp" (;) ";" (field_declaration) "__u64 sysenter_eip;" (type_identifier) "__u64" (field_identifier) "sysenter_eip" (;) ";" (field_declaration) "__u64 efer;" (type_identifier) "__u64" (field_identifier) "efer" (;) ";" (field_declaration) "__u64 star;" (type_identifier) "__u64" (field_identifier) "star" (;) ";" (field_declaration) "__u64 lstar;" (type_identifier) "__u64" (field_identifier) "lstar" (;) ";" (field_declaration) "__u64 cstar;" (type_identifier) "__u64" (field_identifier) "cstar" (;) ";" (field_declaration) "__u64 pat;" (type_identifier) "__u64" (field_identifier) "pat" (;) ";" (field_declaration) "__u64 shadow_gs;" (type_identifier) "__u64" (field_identifier) "shadow_gs" (;) ";" (}) "}" (field_identifier) "msrs" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_info_reply {\n __u64 tsc_speed;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_info_reply" (field_declaration_list) "{\n __u64 tsc_speed;\n}" ({) "{" (field_declaration) "__u64 tsc_speed;" (type_identifier) "__u64" (field_identifier) "tsc_speed" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_registers {\n __u16 nmsrs;\n __u16 padding1;\n __u32 padding2;\n __u32 msrs_idx[0];\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_registers" (field_declaration_list) "{\n __u16 nmsrs;\n __u16 padding1;\n __u32 padding2;\n __u32 msrs_idx[0];\n}" ({) "{" (field_declaration) "__u16 nmsrs;" (type_identifier) "__u16" (field_identifier) "nmsrs" (;) ";" (field_declaration) "__u16 padding1;" (type_identifier) "__u16" (field_identifier) "padding1" (;) ";" (field_declaration) "__u32 padding2;" (type_identifier) "__u32" (field_identifier) "padding2" (;) ";" (field_declaration) "__u32 msrs_idx[0];" (type_identifier) "__u32" (array_declarator) "msrs_idx[0]" (field_identifier) "msrs_idx" ([) "[" (number_literal) "0" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_registers_reply {\n __u32 mode;\n __u32 padding;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct kvm_msrs msrs;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_registers_reply" (field_declaration_list) "{\n __u32 mode;\n __u32 padding;\n struct kvm_regs regs;\n struct kvm_sregs sregs;\n struct kvm_msrs msrs;\n}" ({) "{" (field_declaration) "__u32 mode;" (type_identifier) "__u32" (field_identifier) "mode" (;) ";" (field_declaration) "__u32 padding;" (type_identifier) "__u32" (field_identifier) "padding" (;) ";" (field_declaration) "struct kvm_regs regs;" (struct_specifier) "struct kvm_regs" (struct) "struct" (type_identifier) "kvm_regs" (field_identifier) "regs" (;) ";" (field_declaration) "struct kvm_sregs sregs;" (struct_specifier) "struct kvm_sregs" (struct) "struct" (type_identifier) "kvm_sregs" (field_identifier) "sregs" (;) ";" (field_declaration) "struct kvm_msrs msrs;" (struct_specifier) "struct kvm_msrs" (struct) "struct" (type_identifier) "kvm_msrs" (field_identifier) "msrs" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_cpuid {\n __u32 function;\n __u32 index;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_cpuid" (field_declaration_list) "{\n __u32 function;\n __u32 index;\n}" ({) "{" (field_declaration) "__u32 function;" (type_identifier) "__u32" (field_identifier) "function" (;) ";" (field_declaration) "__u32 index;" (type_identifier) "__u32" (field_identifier) "index" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_cpuid_reply {\n __u32 eax;\n __u32 ebx;\n __u32 ecx;\n __u32 edx;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_cpuid_reply" (field_declaration_list) "{\n __u32 eax;\n __u32 ebx;\n __u32 ecx;\n __u32 edx;\n}" ({) "{" (field_declaration) "__u32 eax;" (type_identifier) "__u32" (field_identifier) "eax" (;) ";" (field_declaration) "__u32 ebx;" (type_identifier) "__u32" (field_identifier) "ebx" (;) ";" (field_declaration) "__u32 ecx;" (type_identifier) "__u32" (field_identifier) "ecx" (;) ";" (field_declaration) "__u32 edx;" (type_identifier) "__u32" (field_identifier) "edx" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_event_breakpoint {\n __u64 gpa;\n __u8 insn_len;\n __u8 padding[7];\n}" (struct) "struct" (type_identifier) "kvmi_event_breakpoint" (field_declaration_list) "{\n __u64 gpa;\n __u8 insn_len;\n __u8 padding[7];\n}" ({) "{" (field_declaration) "__u64 gpa;" (type_identifier) "__u64" (field_identifier) "gpa" (;) ";" (field_declaration) "__u8 insn_len;" (type_identifier) "__u8" (field_identifier) "insn_len" (;) ";" (field_declaration) "__u8 padding[7];" (type_identifier) "__u8" (array_declarator) "padding[7]" (field_identifier) "padding" ([) "[" (number_literal) "7" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_control_cr {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 cr;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_control_cr" (field_declaration_list) "{\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 cr;\n}" ({) "{" (field_declaration) "__u8 enable;" (type_identifier) "__u8" (field_identifier) "enable" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 padding2;" (type_identifier) "__u16" (field_identifier) "padding2" (;) ";" (field_declaration) "__u32 cr;" (type_identifier) "__u32" (field_identifier) "cr" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_event_cr {\n __u16 cr;\n __u16 padding[3];\n __u64 old_value;\n __u64 new_value;\n}" (struct) "struct" (type_identifier) "kvmi_event_cr" (field_declaration_list) "{\n __u16 cr;\n __u16 padding[3];\n __u64 old_value;\n __u64 new_value;\n}" ({) "{" (field_declaration) "__u16 cr;" (type_identifier) "__u16" (field_identifier) "cr" (;) ";" (field_declaration) "__u16 padding[3];" (type_identifier) "__u16" (array_declarator) "padding[3]" (field_identifier) "padding" ([) "[" (number_literal) "3" (]) "]" (;) ";" (field_declaration) "__u64 old_value;" (type_identifier) "__u64" (field_identifier) "old_value" (;) ";" (field_declaration) "__u64 new_value;" (type_identifier) "__u64" (field_identifier) "new_value" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_event_cr_reply {\n __u64 new_val;\n}" (struct) "struct" (type_identifier) "kvmi_event_cr_reply" (field_declaration_list) "{\n __u64 new_val;\n}" ({) "{" (field_declaration) "__u64 new_val;" (type_identifier) "__u64" (field_identifier) "new_val" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_event_trap {\n __u8 vector;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 cr2;\n}" (struct) "struct" (type_identifier) "kvmi_event_trap" (field_declaration_list) "{\n __u8 vector;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 cr2;\n}" ({) "{" (field_declaration) "__u8 vector;" (type_identifier) "__u8" (field_identifier) "vector" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 padding2;" (type_identifier) "__u16" (field_identifier) "padding2" (;) ";" (field_declaration) "__u32 error_code;" (type_identifier) "__u32" (field_identifier) "error_code" (;) ";" (field_declaration) "__u64 cr2;" (type_identifier) "__u64" (field_identifier) "cr2" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_inject_exception {\n __u8 nr;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 address;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_inject_exception" (field_declaration_list) "{\n __u8 nr;\n __u8 padding1;\n __u16 padding2;\n __u32 error_code;\n __u64 address;\n}" ({) "{" (field_declaration) "__u8 nr;" (type_identifier) "__u8" (field_identifier) "nr" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 padding2;" (type_identifier) "__u16" (field_identifier) "padding2" (;) ";" (field_declaration) "__u32 error_code;" (type_identifier) "__u32" (field_identifier) "error_code" (;) ";" (field_declaration) "__u64 address;" (type_identifier) "__u64" (field_identifier) "address" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_xsave_reply {\n __u32 region[0];\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_xsave_reply" (field_declaration_list) "{\n __u32 region[0];\n}" ({) "{" (field_declaration) "__u32 region[0];" (type_identifier) "__u32" (array_declarator) "region[0]" (field_identifier) "region" ([) "[" (number_literal) "0" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_mtrr_type {\n __u64 gpa;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_mtrr_type" (field_declaration_list) "{\n __u64 gpa;\n}" ({) "{" (field_declaration) "__u64 gpa;" (type_identifier) "__u64" (field_identifier) "gpa" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_mtrr_type_reply {\n __u8 type;\n __u8 padding[7];\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_mtrr_type_reply" (field_declaration_list) "{\n __u8 type;\n __u8 padding[7];\n}" ({) "{" (field_declaration) "__u8 type;" (type_identifier) "__u8" (field_identifier) "type" (;) ";" (field_declaration) "__u8 padding[7];" (type_identifier) "__u8" (array_declarator) "padding[7]" (field_identifier) "padding" ([) "[" (number_literal) "7" (]) "]" (;) ";" (}) "}" (;) ";" (preproc_def) "#define KVMI_DESC_IDTR 1\n" (#define) "#define" (identifier) "KVMI_DESC_IDTR" (preproc_arg) "1" (preproc_def) "#define KVMI_DESC_GDTR 2\n" (#define) "#define" (identifier) "KVMI_DESC_GDTR" (preproc_arg) "2" (preproc_def) "#define KVMI_DESC_LDTR 3\n" (#define) "#define" (identifier) "KVMI_DESC_LDTR" (preproc_arg) "3" (preproc_def) "#define KVMI_DESC_TR 4\n" (#define) "#define" (identifier) "KVMI_DESC_TR" (preproc_arg) "4" (struct_specifier) "struct kvmi_event_descriptor {\n __u8 descriptor;\n __u8 write;\n __u8 padding[6];\n}" (struct) "struct" (type_identifier) "kvmi_event_descriptor" (field_declaration_list) "{\n __u8 descriptor;\n __u8 write;\n __u8 padding[6];\n}" ({) "{" (field_declaration) "__u8 descriptor;" (type_identifier) "__u8" (field_identifier) "descriptor" (;) ";" (field_declaration) "__u8 write;" (type_identifier) "__u8" (field_identifier) "write" (;) ";" (field_declaration) "__u8 padding[6];" (type_identifier) "__u8" (array_declarator) "padding[6]" (field_identifier) "padding" ([) "[" (number_literal) "6" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_control_msr {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 msr;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_control_msr" (field_declaration_list) "{\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 msr;\n}" ({) "{" (field_declaration) "__u8 enable;" (type_identifier) "__u8" (field_identifier) "enable" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 padding2;" (type_identifier) "__u16" (field_identifier) "padding2" (;) ";" (field_declaration) "__u32 msr;" (type_identifier) "__u32" (field_identifier) "msr" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_event_msr {\n __u32 msr;\n __u32 padding;\n __u64 old_value;\n __u64 new_value;\n}" (struct) "struct" (type_identifier) "kvmi_event_msr" (field_declaration_list) "{\n __u32 msr;\n __u32 padding;\n __u64 old_value;\n __u64 new_value;\n}" ({) "{" (field_declaration) "__u32 msr;" (type_identifier) "__u32" (field_identifier) "msr" (;) ";" (field_declaration) "__u32 padding;" (type_identifier) "__u32" (field_identifier) "padding" (;) ";" (field_declaration) "__u64 old_value;" (type_identifier) "__u64" (field_identifier) "old_value" (;) ";" (field_declaration) "__u64 new_value;" (type_identifier) "__u64" (field_identifier) "new_value" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_event_msr_reply {\n __u64 new_val;\n}" (struct) "struct" (type_identifier) "kvmi_event_msr_reply" (field_declaration_list) "{\n __u64 new_val;\n}" ({) "{" (field_declaration) "__u64 new_val;" (type_identifier) "__u64" (field_identifier) "new_val" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_features {\n __u8 spp;\n __u8 vmfunc;\n __u8 eptp;\n __u8 ve;\n __u8 singlestep;\n __u8 padding[3];\n}" (struct) "struct" (type_identifier) "kvmi_features" (field_declaration_list) "{\n __u8 spp;\n __u8 vmfunc;\n __u8 eptp;\n __u8 ve;\n __u8 singlestep;\n __u8 padding[3];\n}" ({) "{" (field_declaration) "__u8 spp;" (type_identifier) "__u8" (field_identifier) "spp" (;) ";" (field_declaration) "__u8 vmfunc;" (type_identifier) "__u8" (field_identifier) "vmfunc" (;) ";" (field_declaration) "__u8 eptp;" (type_identifier) "__u8" (field_identifier) "eptp" (;) ";" (field_declaration) "__u8 ve;" (type_identifier) "__u8" (field_identifier) "ve" (;) ";" (field_declaration) "__u8 singlestep;" (type_identifier) "__u8" (field_identifier) "singlestep" (;) ";" (field_declaration) "__u8 padding[3];" (type_identifier) "__u8" (array_declarator) "padding[3]" (field_identifier) "padding" ([) "[" (number_literal) "3" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_get_ept_view_reply {\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_get_ept_view_reply" (field_declaration_list) "{\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n}" ({) "{" (field_declaration) "__u16 view;" (type_identifier) "__u16" (field_identifier) "view" (;) ";" (field_declaration) "__u16 padding1;" (type_identifier) "__u16" (field_identifier) "padding1" (;) ";" (field_declaration) "__u32 padding2;" (type_identifier) "__u32" (field_identifier) "padding2" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_set_ept_view {\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_set_ept_view" (field_declaration_list) "{\n __u16 view;\n __u16 padding1;\n __u32 padding2;\n}" ({) "{" (field_declaration) "__u16 view;" (type_identifier) "__u16" (field_identifier) "view" (;) ";" (field_declaration) "__u16 padding1;" (type_identifier) "__u16" (field_identifier) "padding1" (;) ";" (field_declaration) "__u32 padding2;" (type_identifier) "__u32" (field_identifier) "padding2" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_control_ept_view {\n __u16 view;\n __u8 visible;\n __u8 padding1;\n __u32 padding2;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_control_ept_view" (field_declaration_list) "{\n __u16 view;\n __u8 visible;\n __u8 padding1;\n __u32 padding2;\n}" ({) "{" (field_declaration) "__u16 view;" (type_identifier) "__u16" (field_identifier) "view" (;) ";" (field_declaration) "__u8 visible;" (type_identifier) "__u8" (field_identifier) "visible" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u32 padding2;" (type_identifier) "__u32" (field_identifier) "padding2" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vcpu_set_ve_info {\n __u64 gpa;\n __u8 trigger_vmexit;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n}" (struct) "struct" (type_identifier) "kvmi_vcpu_set_ve_info" (field_declaration_list) "{\n __u64 gpa;\n __u8 trigger_vmexit;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n}" ({) "{" (field_declaration) "__u64 gpa;" (type_identifier) "__u64" (field_identifier) "gpa" (;) ";" (field_declaration) "__u8 trigger_vmexit;" (type_identifier) "__u8" (field_identifier) "trigger_vmexit" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 padding2;" (type_identifier) "__u16" (field_identifier) "padding2" (;) ";" (field_declaration) "__u32 padding3;" (type_identifier) "__u32" (field_identifier) "padding3" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vm_set_page_sve {\n __u16 view;\n __u8 suppress;\n __u8 padding1;\n __u32 padding2;\n __u64 gpa;\n}" (struct) "struct" (type_identifier) "kvmi_vm_set_page_sve" (field_declaration_list) "{\n __u16 view;\n __u8 suppress;\n __u8 padding1;\n __u32 padding2;\n __u64 gpa;\n}" ({) "{" (field_declaration) "__u16 view;" (type_identifier) "__u16" (field_identifier) "view" (;) ";" (field_declaration) "__u8 suppress;" (type_identifier) "__u8" (field_identifier) "suppress" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u32 padding2;" (type_identifier) "__u32" (field_identifier) "padding2" (;) ";" (field_declaration) "__u64 gpa;" (type_identifier) "__u64" (field_identifier) "gpa" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vm_control_spp {\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n}" (struct) "struct" (type_identifier) "kvmi_vm_control_spp" (field_declaration_list) "{\n __u8 enable;\n __u8 padding1;\n __u16 padding2;\n __u32 padding3;\n}" ({) "{" (field_declaration) "__u8 enable;" (type_identifier) "__u8" (field_identifier) "enable" (;) ";" (field_declaration) "__u8 padding1;" (type_identifier) "__u8" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 padding2;" (type_identifier) "__u16" (field_identifier) "padding2" (;) ";" (field_declaration) "__u32 padding3;" (type_identifier) "__u32" (field_identifier) "padding3" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_page_write_bitmap_entry {\n __u64 gpa;\n __u32 bitmap;\n __u32 padding;\n}" (struct) "struct" (type_identifier) "kvmi_page_write_bitmap_entry" (field_declaration_list) "{\n __u64 gpa;\n __u32 bitmap;\n __u32 padding;\n}" ({) "{" (field_declaration) "__u64 gpa;" (type_identifier) "__u64" (field_identifier) "gpa" (;) ";" (field_declaration) "__u32 bitmap;" (type_identifier) "__u32" (field_identifier) "bitmap" (;) ";" (field_declaration) "__u32 padding;" (type_identifier) "__u32" (field_identifier) "padding" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct kvmi_vm_set_page_write_bitmap {\n __u16 padding1;\n __u16 count;\n __u32 padding2;\n struct kvmi_page_write_bitmap_entry entries[0];\n}" (struct) "struct" (type_identifier) "kvmi_vm_set_page_write_bitmap" (field_declaration_list) "{\n __u16 padding1;\n __u16 count;\n __u32 padding2;\n struct kvmi_page_write_bitmap_entry entries[0];\n}" ({) "{" (field_declaration) "__u16 padding1;" (type_identifier) "__u16" (field_identifier) "padding1" (;) ";" (field_declaration) "__u16 count;" (type_identifier) "__u16" (field_identifier) "count" (;) ";" (field_declaration) "__u32 padding2;" (type_identifier) "__u32" (field_identifier) "padding2" (;) ";" (field_declaration) "struct kvmi_page_write_bitmap_entry entries[0];" (struct_specifier) "struct kvmi_page_write_bitmap_entry" (struct) "struct" (type_identifier) "kvmi_page_write_bitmap_entry" (array_declarator) "entries[0]" (field_identifier) "entries" ([) "[" (number_literal) "0" (]) "]" (;) ";" (}) "}" (;) ";" (#endif) "#endif" (comment) "/* _UAPI_ASM_X86_KVMI_H */"
707
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 16.67, "nodes": 463, "errors": 0, "source_hash": "6f3bbbd2c2e52e37a5dad282dab4bda54604d99f789b92945eaecdd62a0707c2", "categorized_nodes": 438}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _UAPI_ASM_X86_KVMI_H\n#define _UAPI_ASM_X86_KVMI_H\n\n/*\n * KVM introspection - x86 specific structures and definitions\n */\n\n#include <asm/kvm.h>\n\n#define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24\n\nstruct kvmi_event_arch {\n\t__u8 mode;\t\t/* 2, 4 or 8 */\n\t__u8 padding1;\n\t__u16 view;\n\t__u32 padding2;\n\tstruct kvm_regs regs;\n\tstruct kvm_sregs sregs;\n\tstruct {\n\t\t__u64 sysenter_cs;\n\t\t__u64 sysenter_esp;\n\t\t__u64 sysenter_eip;\n\t\t__u64 efer;\n\t\t__u64 star;\n\t\t__u64 lstar;\n\t\t__u64 cstar;\n\t\t__u64 pat;\n\t\t__u64 shadow_gs;\n\t} msrs;\n};\n\nstruct kvmi_vcpu_get_info_reply {\n\t__u64 tsc_speed;\n};\n\nstruct kvmi_vcpu_get_registers {\n\t__u16 nmsrs;\n\t__u16 padding1;\n\t__u32 padding2;\n\t__u32 msrs_idx[0];\n};\n\nstruct kvmi_vcpu_get_registers_reply {\n\t__u32 mode;\n\t__u32 padding;\n\tstruct kvm_regs regs;\n\tstruct kvm_sregs sregs;\n\tstruct kvm_msrs msrs;\n};\n\nstruct kvmi_vcpu_get_cpuid {\n\t__u32 function;\n\t__u32 index;\n};\n\nstruct kvmi_vcpu_get_cpuid_reply {\n\t__u32 eax;\n\t__u32 ebx;\n\t__u32 ecx;\n\t__u32 edx;\n};\n\nstruct kvmi_event_breakpoint {\n\t__u64 gpa;\n\t__u8 insn_len;\n\t__u8 padding[7];\n};\n\nstruct kvmi_vcpu_control_cr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 cr;\n};\n\nstruct kvmi_event_cr {\n\t__u16 cr;\n\t__u16 padding[3];\n\t__u64 old_value;\n\t__u64 new_value;\n};\n\nstruct kvmi_event_cr_reply {\n\t__u64 new_val;\n};\n\nstruct kvmi_event_trap {\n\t__u8 vector;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t__u64 cr2;\n};\n\nstruct kvmi_vcpu_inject_exception {\n\t__u8 nr;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t__u64 address;\n};\n\nstruct kvmi_vcpu_get_xsave_reply {\n\t__u32 region[0];\n};\n\nstruct kvmi_vcpu_get_mtrr_type {\n\t__u64 gpa;\n};\n\nstruct kvmi_vcpu_get_mtrr_type_reply {\n\t__u8 type;\n\t__u8 padding[7];\n};\n\n#define KVMI_DESC_IDTR 1\n#define KVMI_DESC_GDTR 2\n#define KVMI_DESC_LDTR 3\n#define KVMI_DESC_TR 4\n\nstruct kvmi_event_descriptor {\n\t__u8 descriptor;\n\t__u8 write;\n\t__u8 padding[6];\n};\n\nstruct kvmi_vcpu_control_msr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 msr;\n};\n\nstruct kvmi_event_msr {\n\t__u32 msr;\n\t__u32 padding;\n\t__u64 old_value;\n\t__u64 new_value;\n};\n\nstruct kvmi_event_msr_reply {\n\t__u64 new_val;\n};\n\nstruct kvmi_features {\n\t__u8 spp;\n\t__u8 vmfunc;\n\t__u8 eptp;\n\t__u8 ve;\n\t__u8 singlestep;\n\t__u8 padding[3];\n};\n\nstruct kvmi_vcpu_get_ept_view_reply {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ept_view {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n};\n\nstruct kvmi_vcpu_control_ept_view {\n\t__u16 view;\n\t__u8 visible;\n\t__u8 padding1;\n\t__u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ve_info {\n\t__u64 gpa;\n\t__u8 trigger_vmexit;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 padding3;\n};\n\nstruct kvmi_vm_set_page_sve {\n\t__u16 view;\n\t__u8 suppress;\n\t__u8 padding1;\n\t__u32 padding2;\n\t__u64 gpa;\n};\n\nstruct kvmi_vm_control_spp {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 padding3;\n};\n\nstruct kvmi_page_write_bitmap_entry {\n\t__u64 gpa;\n\t__u32 bitmap;\n\t__u32 padding;\n};\n\nstruct kvmi_vm_set_page_write_bitmap {\n\t__u16 padding1;\n\t__u16 count;\n\t__u32 padding2;\n\tstruct kvmi_page_write_bitmap_entry entries[0];\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 69, 75, 92, 116, 124, 139, 153, 168, 185, 191, 209, 227, 235, 241, 252, 256, 260, 264, 268, 282, 297, 312, 318, 341, 353, 365, 380, 398, 416, 431, 443, 462], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 209, "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": "_UAPI_ASM_X86_KVMI_H", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define _UAPI_ASM_X86_KVMI_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": "_UAPI_ASM_X86_KVMI_H", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include <asm/kvm.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<asm/kvm.h>", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 9, "type": "preproc_def", "text": "#define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24\n", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 11, "type": "identifier", "text": "KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT", "parent": 9, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 48}}, {"id": 12, "type": "preproc_arg", "text": "24", "parent": 9, "children": [], "start_point": {"row": 10, "column": 49}, "end_point": {"row": 10, "column": 51}}, {"id": 13, "type": "struct_specifier", "text": "struct kvmi_event_arch {\n\t__u8 mode;\t\t/* 2, 4 or 8 */\n\t__u8 padding1;\n\t__u16 view;\n\t__u32 padding2;\n\tstruct kvm_regs regs;\n\tstruct kvm_sregs sregs;\n\tstruct {\n\t\t__u64 sysenter_cs;\n\t\t__u64 sysenter_esp;\n\t\t__u64 sysenter_eip;\n\t\t__u64 efer;\n\t\t__u64 star;\n\t\t__u64 lstar;\n\t\t__u64 cstar;\n\t\t__u64 pat;\n\t\t__u64 shadow_gs;\n\t} msrs;\n}", "parent": 0, "children": [14, 15], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 15, "type": "type_identifier", "text": "kvmi_event_arch", "parent": 13, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 22}}, {"id": 16, "type": "field_declaration", "text": "__u8 mode;", "parent": 13, "children": [17, 18], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 11}}, {"id": 17, "type": "type_identifier", "text": "__u8", "parent": 16, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 5}}, {"id": 18, "type": "field_identifier", "text": "mode", "parent": 16, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 10}}, {"id": 19, "type": "field_declaration", "text": "__u8 padding1;", "parent": 13, "children": [20, 21], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 15}}, {"id": 20, "type": "type_identifier", "text": "__u8", "parent": 19, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 5}}, {"id": 21, "type": "field_identifier", "text": "padding1", "parent": 19, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 14}}, {"id": 22, "type": "field_declaration", "text": "__u16 view;", "parent": 13, "children": [23, 24], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 12}}, {"id": 23, "type": "type_identifier", "text": "__u16", "parent": 22, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 6}}, {"id": 24, "type": "field_identifier", "text": "view", "parent": 22, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 11}}, {"id": 25, "type": "field_declaration", "text": "__u32 padding2;", "parent": 13, "children": [26, 27], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 16}}, {"id": 26, "type": "type_identifier", "text": "__u32", "parent": 25, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 6}}, {"id": 27, "type": "field_identifier", "text": "padding2", "parent": 25, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 15}}, {"id": 28, "type": "field_declaration", "text": "struct kvm_regs regs;", "parent": 13, "children": [29, 32], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 22}}, {"id": 29, "type": "struct_specifier", "text": "struct kvm_regs", "parent": 28, "children": [30, 31], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 16}}, {"id": 30, "type": "struct", "text": "struct", "parent": 29, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 7}}, {"id": 31, "type": "type_identifier", "text": "kvm_regs", "parent": 29, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 16}}, {"id": 32, "type": "field_identifier", "text": "regs", "parent": 28, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 21}}, {"id": 33, "type": "field_declaration", "text": "struct kvm_sregs sregs;", "parent": 13, "children": [34, 37], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 24}}, {"id": 34, "type": "struct_specifier", "text": "struct kvm_sregs", "parent": 33, "children": [35, 36], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 17}}, {"id": 35, "type": "struct", "text": "struct", "parent": 34, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 7}}, {"id": 36, "type": "type_identifier", "text": "kvm_sregs", "parent": 34, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 17}}, {"id": 37, "type": "field_identifier", "text": "sregs", "parent": 33, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 23}}, {"id": 38, "type": "field_declaration", "text": "struct {\n\t\t__u64 sysenter_cs;\n\t\t__u64 sysenter_esp;\n\t\t__u64 sysenter_eip;\n\t\t__u64 efer;\n\t\t__u64 star;\n\t\t__u64 lstar;\n\t\t__u64 cstar;\n\t\t__u64 pat;\n\t\t__u64 shadow_gs;\n\t} msrs;", "parent": 13, "children": [39, 68], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 29, "column": 8}}, {"id": 39, "type": "struct_specifier", "text": "struct {\n\t\t__u64 sysenter_cs;\n\t\t__u64 sysenter_esp;\n\t\t__u64 sysenter_eip;\n\t\t__u64 efer;\n\t\t__u64 star;\n\t\t__u64 lstar;\n\t\t__u64 cstar;\n\t\t__u64 pat;\n\t\t__u64 shadow_gs;\n\t}", "parent": 38, "children": [40], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 29, "column": 2}}, {"id": 40, "type": "struct", "text": "struct", "parent": 39, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 7}}, {"id": 41, "type": "field_declaration", "text": "__u64 sysenter_cs;", "parent": 39, "children": [42, 43], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 20}}, {"id": 42, "type": "type_identifier", "text": "__u64", "parent": 41, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 7}}, {"id": 43, "type": "field_identifier", "text": "sysenter_cs", "parent": 41, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 19}}, {"id": 44, "type": "field_declaration", "text": "__u64 sysenter_esp;", "parent": 39, "children": [45, 46], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 21}}, {"id": 45, "type": "type_identifier", "text": "__u64", "parent": 44, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 7}}, {"id": 46, "type": "field_identifier", "text": "sysenter_esp", "parent": 44, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 20}}, {"id": 47, "type": "field_declaration", "text": "__u64 sysenter_eip;", "parent": 39, "children": [48, 49], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 21}}, {"id": 48, "type": "type_identifier", "text": "__u64", "parent": 47, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 7}}, {"id": 49, "type": "field_identifier", "text": "sysenter_eip", "parent": 47, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 20}}, {"id": 50, "type": "field_declaration", "text": "__u64 efer;", "parent": 39, "children": [51, 52], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 13}}, {"id": 51, "type": "type_identifier", "text": "__u64", "parent": 50, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 7}}, {"id": 52, "type": "field_identifier", "text": "efer", "parent": 50, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 12}}, {"id": 53, "type": "field_declaration", "text": "__u64 star;", "parent": 39, "children": [54, 55], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 13}}, {"id": 54, "type": "type_identifier", "text": "__u64", "parent": 53, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 7}}, {"id": 55, "type": "field_identifier", "text": "star", "parent": 53, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 56, "type": "field_declaration", "text": "__u64 lstar;", "parent": 39, "children": [57, 58], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 14}}, {"id": 57, "type": "type_identifier", "text": "__u64", "parent": 56, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 7}}, {"id": 58, "type": "field_identifier", "text": "lstar", "parent": 56, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 13}}, {"id": 59, "type": "field_declaration", "text": "__u64 cstar;", "parent": 39, "children": [60, 61], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 14}}, {"id": 60, "type": "type_identifier", "text": "__u64", "parent": 59, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 7}}, {"id": 61, "type": "field_identifier", "text": "cstar", "parent": 59, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 13}}, {"id": 62, "type": "field_declaration", "text": "__u64 pat;", "parent": 39, "children": [63, 64], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 12}}, {"id": 63, "type": "type_identifier", "text": "__u64", "parent": 62, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 7}}, {"id": 64, "type": "field_identifier", "text": "pat", "parent": 62, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 11}}, {"id": 65, "type": "field_declaration", "text": "__u64 shadow_gs;", "parent": 39, "children": [66, 67], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 66, "type": "type_identifier", "text": "__u64", "parent": 65, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 7}}, {"id": 67, "type": "field_identifier", "text": "shadow_gs", "parent": 65, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 17}}, {"id": 68, "type": "field_identifier", "text": "msrs", "parent": 38, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 7}}, {"id": 69, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_info_reply {\n\t__u64 tsc_speed;\n}", "parent": 0, "children": [70, 71], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 70, "type": "struct", "text": "struct", "parent": 69, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 71, "type": "type_identifier", "text": "kvmi_vcpu_get_info_reply", "parent": 69, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 31}}, {"id": 72, "type": "field_declaration", "text": "__u64 tsc_speed;", "parent": 69, "children": [73, 74], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 17}}, {"id": 73, "type": "type_identifier", "text": "__u64", "parent": 72, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 6}}, {"id": 74, "type": "field_identifier", "text": "tsc_speed", "parent": 72, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 16}}, {"id": 75, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_registers {\n\t__u16 nmsrs;\n\t__u16 padding1;\n\t__u32 padding2;\n\t__u32 msrs_idx[0];\n}", "parent": 0, "children": [76, 77], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 76, "type": "struct", "text": "struct", "parent": 75, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 77, "type": "type_identifier", "text": "kvmi_vcpu_get_registers", "parent": 75, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 30}}, {"id": 78, "type": "field_declaration", "text": "__u16 nmsrs;", "parent": 75, "children": [79, 80], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 13}}, {"id": 79, "type": "type_identifier", "text": "__u16", "parent": 78, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 6}}, {"id": 80, "type": "field_identifier", "text": "nmsrs", "parent": 78, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 12}}, {"id": 81, "type": "field_declaration", "text": "__u16 padding1;", "parent": 75, "children": [82, 83], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 16}}, {"id": 82, "type": "type_identifier", "text": "__u16", "parent": 81, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 6}}, {"id": 83, "type": "field_identifier", "text": "padding1", "parent": 81, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 15}}, {"id": 84, "type": "field_declaration", "text": "__u32 padding2;", "parent": 75, "children": [85, 86], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 16}}, {"id": 85, "type": "type_identifier", "text": "__u32", "parent": 84, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 6}}, {"id": 86, "type": "field_identifier", "text": "padding2", "parent": 84, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 15}}, {"id": 87, "type": "field_declaration", "text": "__u32 msrs_idx[0];", "parent": 75, "children": [88, 89], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 19}}, {"id": 88, "type": "type_identifier", "text": "__u32", "parent": 87, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 6}}, {"id": 89, "type": "array_declarator", "text": "msrs_idx[0]", "parent": 87, "children": [90, 91], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 18}}, {"id": 90, "type": "field_identifier", "text": "msrs_idx", "parent": 89, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 15}}, {"id": 91, "type": "number_literal", "text": "0", "parent": 89, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 17}}, {"id": 92, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_registers_reply {\n\t__u32 mode;\n\t__u32 padding;\n\tstruct kvm_regs regs;\n\tstruct kvm_sregs sregs;\n\tstruct kvm_msrs msrs;\n}", "parent": 0, "children": [93, 94], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 93, "type": "struct", "text": "struct", "parent": 92, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 94, "type": "type_identifier", "text": "kvmi_vcpu_get_registers_reply", "parent": 92, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 36}}, {"id": 95, "type": "field_declaration", "text": "__u32 mode;", "parent": 92, "children": [96, 97], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 12}}, {"id": 96, "type": "type_identifier", "text": "__u32", "parent": 95, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 6}}, {"id": 97, "type": "field_identifier", "text": "mode", "parent": 95, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 11}}, {"id": 98, "type": "field_declaration", "text": "__u32 padding;", "parent": 92, "children": [99, 100], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 15}}, {"id": 99, "type": "type_identifier", "text": "__u32", "parent": 98, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 6}}, {"id": 100, "type": "field_identifier", "text": "padding", "parent": 98, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 14}}, {"id": 101, "type": "field_declaration", "text": "struct kvm_regs regs;", "parent": 92, "children": [102, 105], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 22}}, {"id": 102, "type": "struct_specifier", "text": "struct kvm_regs", "parent": 101, "children": [103, 104], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 16}}, {"id": 103, "type": "struct", "text": "struct", "parent": 102, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 7}}, {"id": 104, "type": "type_identifier", "text": "kvm_regs", "parent": 102, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 105, "type": "field_identifier", "text": "regs", "parent": 101, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 21}}, {"id": 106, "type": "field_declaration", "text": "struct kvm_sregs sregs;", "parent": 92, "children": [107, 110], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 24}}, {"id": 107, "type": "struct_specifier", "text": "struct kvm_sregs", "parent": 106, "children": [108, 109], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 17}}, {"id": 108, "type": "struct", "text": "struct", "parent": 107, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 7}}, {"id": 109, "type": "type_identifier", "text": "kvm_sregs", "parent": 107, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 17}}, {"id": 110, "type": "field_identifier", "text": "sregs", "parent": 106, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 23}}, {"id": 111, "type": "field_declaration", "text": "struct kvm_msrs msrs;", "parent": 92, "children": [112, 115], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 22}}, {"id": 112, "type": "struct_specifier", "text": "struct kvm_msrs", "parent": 111, "children": [113, 114], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 16}}, {"id": 113, "type": "struct", "text": "struct", "parent": 112, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 7}}, {"id": 114, "type": "type_identifier", "text": "kvm_msrs", "parent": 112, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 16}}, {"id": 115, "type": "field_identifier", "text": "msrs", "parent": 111, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 21}}, {"id": 116, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_cpuid {\n\t__u32 function;\n\t__u32 index;\n}", "parent": 0, "children": [117, 118], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 117, "type": "struct", "text": "struct", "parent": 116, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 118, "type": "type_identifier", "text": "kvmi_vcpu_get_cpuid", "parent": 116, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 26}}, {"id": 119, "type": "field_declaration", "text": "__u32 function;", "parent": 116, "children": [120], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 16}}, {"id": 120, "type": "type_identifier", "text": "__u32", "parent": 119, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 6}}, {"id": 121, "type": "field_declaration", "text": "__u32 index;", "parent": 116, "children": [122, 123], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 13}}, {"id": 122, "type": "type_identifier", "text": "__u32", "parent": 121, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 6}}, {"id": 123, "type": "field_identifier", "text": "index", "parent": 121, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 12}}, {"id": 124, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_cpuid_reply {\n\t__u32 eax;\n\t__u32 ebx;\n\t__u32 ecx;\n\t__u32 edx;\n}", "parent": 0, "children": [125, 126], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 125, "type": "struct", "text": "struct", "parent": 124, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 6}}, {"id": 126, "type": "type_identifier", "text": "kvmi_vcpu_get_cpuid_reply", "parent": 124, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 32}}, {"id": 127, "type": "field_declaration", "text": "__u32 eax;", "parent": 124, "children": [128, 129], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 11}}, {"id": 128, "type": "type_identifier", "text": "__u32", "parent": 127, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 6}}, {"id": 129, "type": "field_identifier", "text": "eax", "parent": 127, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 10}}, {"id": 130, "type": "field_declaration", "text": "__u32 ebx;", "parent": 124, "children": [131, 132], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 11}}, {"id": 131, "type": "type_identifier", "text": "__u32", "parent": 130, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 6}}, {"id": 132, "type": "field_identifier", "text": "ebx", "parent": 130, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 10}}, {"id": 133, "type": "field_declaration", "text": "__u32 ecx;", "parent": 124, "children": [134, 135], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 11}}, {"id": 134, "type": "type_identifier", "text": "__u32", "parent": 133, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 6}}, {"id": 135, "type": "field_identifier", "text": "ecx", "parent": 133, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 10}}, {"id": 136, "type": "field_declaration", "text": "__u32 edx;", "parent": 124, "children": [137, 138], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 11}}, {"id": 137, "type": "type_identifier", "text": "__u32", "parent": 136, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 6}}, {"id": 138, "type": "field_identifier", "text": "edx", "parent": 136, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 10}}, {"id": 139, "type": "struct_specifier", "text": "struct kvmi_event_breakpoint {\n\t__u64 gpa;\n\t__u8 insn_len;\n\t__u8 padding[7];\n}", "parent": 0, "children": [140, 141], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 140, "type": "struct", "text": "struct", "parent": 139, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 141, "type": "type_identifier", "text": "kvmi_event_breakpoint", "parent": 139, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 28}}, {"id": 142, "type": "field_declaration", "text": "__u64 gpa;", "parent": 139, "children": [143, 144], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 11}}, {"id": 143, "type": "type_identifier", "text": "__u64", "parent": 142, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 6}}, {"id": 144, "type": "field_identifier", "text": "gpa", "parent": 142, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 10}}, {"id": 145, "type": "field_declaration", "text": "__u8 insn_len;", "parent": 139, "children": [146, 147], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 15}}, {"id": 146, "type": "type_identifier", "text": "__u8", "parent": 145, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 5}}, {"id": 147, "type": "field_identifier", "text": "insn_len", "parent": 145, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 14}}, {"id": 148, "type": "field_declaration", "text": "__u8 padding[7];", "parent": 139, "children": [149, 150], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 17}}, {"id": 149, "type": "type_identifier", "text": "__u8", "parent": 148, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 5}}, {"id": 150, "type": "array_declarator", "text": "padding[7]", "parent": 148, "children": [151, 152], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 16}}, {"id": 151, "type": "field_identifier", "text": "padding", "parent": 150, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 13}}, {"id": 152, "type": "number_literal", "text": "7", "parent": 150, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 153, "type": "struct_specifier", "text": "struct kvmi_vcpu_control_cr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 cr;\n}", "parent": 0, "children": [154, 155], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 154, "type": "struct", "text": "struct", "parent": 153, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 6}}, {"id": 155, "type": "type_identifier", "text": "kvmi_vcpu_control_cr", "parent": 153, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 27}}, {"id": 156, "type": "field_declaration", "text": "__u8 enable;", "parent": 153, "children": [157, 158], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 13}}, {"id": 157, "type": "type_identifier", "text": "__u8", "parent": 156, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 5}}, {"id": 158, "type": "field_identifier", "text": "enable", "parent": 156, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 12}}, {"id": 159, "type": "field_declaration", "text": "__u8 padding1;", "parent": 153, "children": [160, 161], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 15}}, {"id": 160, "type": "type_identifier", "text": "__u8", "parent": 159, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 5}}, {"id": 161, "type": "field_identifier", "text": "padding1", "parent": 159, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 14}}, {"id": 162, "type": "field_declaration", "text": "__u16 padding2;", "parent": 153, "children": [163, 164], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 16}}, {"id": 163, "type": "type_identifier", "text": "__u16", "parent": 162, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 6}}, {"id": 164, "type": "field_identifier", "text": "padding2", "parent": 162, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 15}}, {"id": 165, "type": "field_declaration", "text": "__u32 cr;", "parent": 153, "children": [166, 167], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 10}}, {"id": 166, "type": "type_identifier", "text": "__u32", "parent": 165, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 6}}, {"id": 167, "type": "field_identifier", "text": "cr", "parent": 165, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 9}}, {"id": 168, "type": "struct_specifier", "text": "struct kvmi_event_cr {\n\t__u16 cr;\n\t__u16 padding[3];\n\t__u64 old_value;\n\t__u64 new_value;\n}", "parent": 0, "children": [169, 170], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 169, "type": "struct", "text": "struct", "parent": 168, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 170, "type": "type_identifier", "text": "kvmi_event_cr", "parent": 168, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 20}}, {"id": 171, "type": "field_declaration", "text": "__u16 cr;", "parent": 168, "children": [172, 173], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 172, "type": "type_identifier", "text": "__u16", "parent": 171, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 6}}, {"id": 173, "type": "field_identifier", "text": "cr", "parent": 171, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 9}}, {"id": 174, "type": "field_declaration", "text": "__u16 padding[3];", "parent": 168, "children": [175, 176], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 18}}, {"id": 175, "type": "type_identifier", "text": "__u16", "parent": 174, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 6}}, {"id": 176, "type": "array_declarator", "text": "padding[3]", "parent": 174, "children": [177, 178], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 17}}, {"id": 177, "type": "field_identifier", "text": "padding", "parent": 176, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 14}}, {"id": 178, "type": "number_literal", "text": "3", "parent": 176, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 16}}, {"id": 179, "type": "field_declaration", "text": "__u64 old_value;", "parent": 168, "children": [180, 181], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 17}}, {"id": 180, "type": "type_identifier", "text": "__u64", "parent": 179, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 6}}, {"id": 181, "type": "field_identifier", "text": "old_value", "parent": 179, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 16}}, {"id": 182, "type": "field_declaration", "text": "__u64 new_value;", "parent": 168, "children": [183, 184], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 17}}, {"id": 183, "type": "type_identifier", "text": "__u64", "parent": 182, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 6}}, {"id": 184, "type": "field_identifier", "text": "new_value", "parent": 182, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 16}}, {"id": 185, "type": "struct_specifier", "text": "struct kvmi_event_cr_reply {\n\t__u64 new_val;\n}", "parent": 0, "children": [186, 187], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 186, "type": "struct", "text": "struct", "parent": 185, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 6}}, {"id": 187, "type": "type_identifier", "text": "kvmi_event_cr_reply", "parent": 185, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 26}}, {"id": 188, "type": "field_declaration", "text": "__u64 new_val;", "parent": 185, "children": [189, 190], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 15}}, {"id": 189, "type": "type_identifier", "text": "__u64", "parent": 188, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 6}}, {"id": 190, "type": "field_identifier", "text": "new_val", "parent": 188, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 14}}, {"id": 191, "type": "struct_specifier", "text": "struct kvmi_event_trap {\n\t__u8 vector;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t__u64 cr2;\n}", "parent": 0, "children": [192, 193], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 192, "type": "struct", "text": "struct", "parent": 191, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 6}}, {"id": 193, "type": "type_identifier", "text": "kvmi_event_trap", "parent": 191, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 22}}, {"id": 194, "type": "field_declaration", "text": "__u8 vector;", "parent": 191, "children": [195, 196], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 13}}, {"id": 195, "type": "type_identifier", "text": "__u8", "parent": 194, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 5}}, {"id": 196, "type": "field_identifier", "text": "vector", "parent": 194, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 12}}, {"id": 197, "type": "field_declaration", "text": "__u8 padding1;", "parent": 191, "children": [198, 199], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 15}}, {"id": 198, "type": "type_identifier", "text": "__u8", "parent": 197, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 5}}, {"id": 199, "type": "field_identifier", "text": "padding1", "parent": 197, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 14}}, {"id": 200, "type": "field_declaration", "text": "__u16 padding2;", "parent": 191, "children": [201, 202], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 16}}, {"id": 201, "type": "type_identifier", "text": "__u16", "parent": 200, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 6}}, {"id": 202, "type": "field_identifier", "text": "padding2", "parent": 200, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 15}}, {"id": 203, "type": "field_declaration", "text": "__u32 error_code;", "parent": 191, "children": [204, 205], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 18}}, {"id": 204, "type": "type_identifier", "text": "__u32", "parent": 203, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 6}}, {"id": 205, "type": "field_identifier", "text": "error_code", "parent": 203, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 17}}, {"id": 206, "type": "field_declaration", "text": "__u64 cr2;", "parent": 191, "children": [207, 208], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 11}}, {"id": 207, "type": "type_identifier", "text": "__u64", "parent": 206, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 6}}, {"id": 208, "type": "field_identifier", "text": "cr2", "parent": 206, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 10}}, {"id": 209, "type": "struct_specifier", "text": "struct kvmi_vcpu_inject_exception {\n\t__u8 nr;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t__u64 address;\n}", "parent": 0, "children": [210, 211], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 101, "column": 1}}, {"id": 210, "type": "struct", "text": "struct", "parent": 209, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 211, "type": "type_identifier", "text": "kvmi_vcpu_inject_exception", "parent": 209, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 33}}, {"id": 212, "type": "field_declaration", "text": "__u8 nr;", "parent": 209, "children": [213, 214], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 9}}, {"id": 213, "type": "type_identifier", "text": "__u8", "parent": 212, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 5}}, {"id": 214, "type": "field_identifier", "text": "nr", "parent": 212, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 8}}, {"id": 215, "type": "field_declaration", "text": "__u8 padding1;", "parent": 209, "children": [216, 217], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 15}}, {"id": 216, "type": "type_identifier", "text": "__u8", "parent": 215, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 5}}, {"id": 217, "type": "field_identifier", "text": "padding1", "parent": 215, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 14}}, {"id": 218, "type": "field_declaration", "text": "__u16 padding2;", "parent": 209, "children": [219, 220], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 16}}, {"id": 219, "type": "type_identifier", "text": "__u16", "parent": 218, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 6}}, {"id": 220, "type": "field_identifier", "text": "padding2", "parent": 218, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 15}}, {"id": 221, "type": "field_declaration", "text": "__u32 error_code;", "parent": 209, "children": [222, 223], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 18}}, {"id": 222, "type": "type_identifier", "text": "__u32", "parent": 221, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 6}}, {"id": 223, "type": "field_identifier", "text": "error_code", "parent": 221, "children": [], "start_point": {"row": 99, "column": 7}, "end_point": {"row": 99, "column": 17}}, {"id": 224, "type": "field_declaration", "text": "__u64 address;", "parent": 209, "children": [225, 226], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 15}}, {"id": 225, "type": "type_identifier", "text": "__u64", "parent": 224, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 6}}, {"id": 226, "type": "field_identifier", "text": "address", "parent": 224, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 14}}, {"id": 227, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_xsave_reply {\n\t__u32 region[0];\n}", "parent": 0, "children": [228, 229], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 228, "type": "struct", "text": "struct", "parent": 227, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 229, "type": "type_identifier", "text": "kvmi_vcpu_get_xsave_reply", "parent": 227, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 32}}, {"id": 230, "type": "field_declaration", "text": "__u32 region[0];", "parent": 227, "children": [231, 232], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 17}}, {"id": 231, "type": "type_identifier", "text": "__u32", "parent": 230, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 6}}, {"id": 232, "type": "array_declarator", "text": "region[0]", "parent": 230, "children": [233, 234], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 16}}, {"id": 233, "type": "field_identifier", "text": "region", "parent": 232, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 13}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 232, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 15}}, {"id": 235, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_mtrr_type {\n\t__u64 gpa;\n}", "parent": 0, "children": [236, 237], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 109, "column": 1}}, {"id": 236, "type": "struct", "text": "struct", "parent": 235, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 237, "type": "type_identifier", "text": "kvmi_vcpu_get_mtrr_type", "parent": 235, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 30}}, {"id": 238, "type": "field_declaration", "text": "__u64 gpa;", "parent": 235, "children": [239, 240], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 11}}, {"id": 239, "type": "type_identifier", "text": "__u64", "parent": 238, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 6}}, {"id": 240, "type": "field_identifier", "text": "gpa", "parent": 238, "children": [], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 10}}, {"id": 241, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_mtrr_type_reply {\n\t__u8 type;\n\t__u8 padding[7];\n}", "parent": 0, "children": [242, 243], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 242, "type": "struct", "text": "struct", "parent": 241, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 6}}, {"id": 243, "type": "type_identifier", "text": "kvmi_vcpu_get_mtrr_type_reply", "parent": 241, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 36}}, {"id": 244, "type": "field_declaration", "text": "__u8 type;", "parent": 241, "children": [245, 246], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 11}}, {"id": 245, "type": "type_identifier", "text": "__u8", "parent": 244, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 5}}, {"id": 246, "type": "field_identifier", "text": "type", "parent": 244, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 10}}, {"id": 247, "type": "field_declaration", "text": "__u8 padding[7];", "parent": 241, "children": [248, 249], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 17}}, {"id": 248, "type": "type_identifier", "text": "__u8", "parent": 247, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 5}}, {"id": 249, "type": "array_declarator", "text": "padding[7]", "parent": 247, "children": [250, 251], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 16}}, {"id": 250, "type": "field_identifier", "text": "padding", "parent": 249, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 13}}, {"id": 251, "type": "number_literal", "text": "7", "parent": 249, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 15}}, {"id": 252, "type": "preproc_def", "text": "#define KVMI_DESC_IDTR 1\n", "parent": 0, "children": [253, 254, 255], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 0}}, {"id": 253, "type": "#define", "text": "#define", "parent": 252, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 7}}, {"id": 254, "type": "identifier", "text": "KVMI_DESC_IDTR", "parent": 252, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 22}}, {"id": 255, "type": "preproc_arg", "text": "1", "parent": 252, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 25}}, {"id": 256, "type": "preproc_def", "text": "#define KVMI_DESC_GDTR 2\n", "parent": 0, "children": [257, 258, 259], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 257, "type": "#define", "text": "#define", "parent": 256, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 258, "type": "identifier", "text": "KVMI_DESC_GDTR", "parent": 256, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 22}}, {"id": 259, "type": "preproc_arg", "text": "2", "parent": 256, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 25}}, {"id": 260, "type": "preproc_def", "text": "#define KVMI_DESC_LDTR 3\n", "parent": 0, "children": [261, 262, 263], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 119, "column": 0}}, {"id": 261, "type": "#define", "text": "#define", "parent": 260, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 7}}, {"id": 262, "type": "identifier", "text": "KVMI_DESC_LDTR", "parent": 260, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 22}}, {"id": 263, "type": "preproc_arg", "text": "3", "parent": 260, "children": [], "start_point": {"row": 118, "column": 24}, "end_point": {"row": 118, "column": 25}}, {"id": 264, "type": "preproc_def", "text": "#define KVMI_DESC_TR 4\n", "parent": 0, "children": [265, 266, 267], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 120, "column": 0}}, {"id": 265, "type": "#define", "text": "#define", "parent": 264, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 7}}, {"id": 266, "type": "identifier", "text": "KVMI_DESC_TR", "parent": 264, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 20}}, {"id": 267, "type": "preproc_arg", "text": "4", "parent": 264, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 25}}, {"id": 268, "type": "struct_specifier", "text": "struct kvmi_event_descriptor {\n\t__u8 descriptor;\n\t__u8 write;\n\t__u8 padding[6];\n}", "parent": 0, "children": [269, 270], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 125, "column": 1}}, {"id": 269, "type": "struct", "text": "struct", "parent": 268, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 270, "type": "type_identifier", "text": "kvmi_event_descriptor", "parent": 268, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 28}}, {"id": 271, "type": "field_declaration", "text": "__u8 descriptor;", "parent": 268, "children": [272, 273], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 17}}, {"id": 272, "type": "type_identifier", "text": "__u8", "parent": 271, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 5}}, {"id": 273, "type": "field_identifier", "text": "descriptor", "parent": 271, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 16}}, {"id": 274, "type": "field_declaration", "text": "__u8 write;", "parent": 268, "children": [275, 276], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 12}}, {"id": 275, "type": "type_identifier", "text": "__u8", "parent": 274, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 5}}, {"id": 276, "type": "field_identifier", "text": "write", "parent": 274, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 11}}, {"id": 277, "type": "field_declaration", "text": "__u8 padding[6];", "parent": 268, "children": [278, 279], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 17}}, {"id": 278, "type": "type_identifier", "text": "__u8", "parent": 277, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 5}}, {"id": 279, "type": "array_declarator", "text": "padding[6]", "parent": 277, "children": [280, 281], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 16}}, {"id": 280, "type": "field_identifier", "text": "padding", "parent": 279, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 13}}, {"id": 281, "type": "number_literal", "text": "6", "parent": 279, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 15}}, {"id": 282, "type": "struct_specifier", "text": "struct kvmi_vcpu_control_msr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 msr;\n}", "parent": 0, "children": [283, 284], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 132, "column": 1}}, {"id": 283, "type": "struct", "text": "struct", "parent": 282, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 6}}, {"id": 284, "type": "type_identifier", "text": "kvmi_vcpu_control_msr", "parent": 282, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 28}}, {"id": 285, "type": "field_declaration", "text": "__u8 enable;", "parent": 282, "children": [286, 287], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 13}}, {"id": 286, "type": "type_identifier", "text": "__u8", "parent": 285, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 5}}, {"id": 287, "type": "field_identifier", "text": "enable", "parent": 285, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 12}}, {"id": 288, "type": "field_declaration", "text": "__u8 padding1;", "parent": 282, "children": [289, 290], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 15}}, {"id": 289, "type": "type_identifier", "text": "__u8", "parent": 288, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 5}}, {"id": 290, "type": "field_identifier", "text": "padding1", "parent": 288, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 14}}, {"id": 291, "type": "field_declaration", "text": "__u16 padding2;", "parent": 282, "children": [292, 293], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 16}}, {"id": 292, "type": "type_identifier", "text": "__u16", "parent": 291, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 6}}, {"id": 293, "type": "field_identifier", "text": "padding2", "parent": 291, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 15}}, {"id": 294, "type": "field_declaration", "text": "__u32 msr;", "parent": 282, "children": [295, 296], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 11}}, {"id": 295, "type": "type_identifier", "text": "__u32", "parent": 294, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 6}}, {"id": 296, "type": "field_identifier", "text": "msr", "parent": 294, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 10}}, {"id": 297, "type": "struct_specifier", "text": "struct kvmi_event_msr {\n\t__u32 msr;\n\t__u32 padding;\n\t__u64 old_value;\n\t__u64 new_value;\n}", "parent": 0, "children": [298, 299], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 298, "type": "struct", "text": "struct", "parent": 297, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 6}}, {"id": 299, "type": "type_identifier", "text": "kvmi_event_msr", "parent": 297, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 21}}, {"id": 300, "type": "field_declaration", "text": "__u32 msr;", "parent": 297, "children": [301, 302], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 11}}, {"id": 301, "type": "type_identifier", "text": "__u32", "parent": 300, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 6}}, {"id": 302, "type": "field_identifier", "text": "msr", "parent": 300, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 10}}, {"id": 303, "type": "field_declaration", "text": "__u32 padding;", "parent": 297, "children": [304, 305], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 15}}, {"id": 304, "type": "type_identifier", "text": "__u32", "parent": 303, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 6}}, {"id": 305, "type": "field_identifier", "text": "padding", "parent": 303, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 14}}, {"id": 306, "type": "field_declaration", "text": "__u64 old_value;", "parent": 297, "children": [307, 308], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 17}}, {"id": 307, "type": "type_identifier", "text": "__u64", "parent": 306, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 6}}, {"id": 308, "type": "field_identifier", "text": "old_value", "parent": 306, "children": [], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 16}}, {"id": 309, "type": "field_declaration", "text": "__u64 new_value;", "parent": 297, "children": [310, 311], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 17}}, {"id": 310, "type": "type_identifier", "text": "__u64", "parent": 309, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 6}}, {"id": 311, "type": "field_identifier", "text": "new_value", "parent": 309, "children": [], "start_point": {"row": 138, "column": 7}, "end_point": {"row": 138, "column": 16}}, {"id": 312, "type": "struct_specifier", "text": "struct kvmi_event_msr_reply {\n\t__u64 new_val;\n}", "parent": 0, "children": [313, 314], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 143, "column": 1}}, {"id": 313, "type": "struct", "text": "struct", "parent": 312, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 6}}, {"id": 314, "type": "type_identifier", "text": "kvmi_event_msr_reply", "parent": 312, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 27}}, {"id": 315, "type": "field_declaration", "text": "__u64 new_val;", "parent": 312, "children": [316, 317], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 15}}, {"id": 316, "type": "type_identifier", "text": "__u64", "parent": 315, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 6}}, {"id": 317, "type": "field_identifier", "text": "new_val", "parent": 315, "children": [], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 14}}, {"id": 318, "type": "struct_specifier", "text": "struct kvmi_features {\n\t__u8 spp;\n\t__u8 vmfunc;\n\t__u8 eptp;\n\t__u8 ve;\n\t__u8 singlestep;\n\t__u8 padding[3];\n}", "parent": 0, "children": [319, 320], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 152, "column": 1}}, {"id": 319, "type": "struct", "text": "struct", "parent": 318, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 6}}, {"id": 320, "type": "type_identifier", "text": "kvmi_features", "parent": 318, "children": [], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 20}}, {"id": 321, "type": "field_declaration", "text": "__u8 spp;", "parent": 318, "children": [322, 323], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 10}}, {"id": 322, "type": "type_identifier", "text": "__u8", "parent": 321, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 5}}, {"id": 323, "type": "field_identifier", "text": "spp", "parent": 321, "children": [], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 9}}, {"id": 324, "type": "field_declaration", "text": "__u8 vmfunc;", "parent": 318, "children": [325, 326], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 13}}, {"id": 325, "type": "type_identifier", "text": "__u8", "parent": 324, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 5}}, {"id": 326, "type": "field_identifier", "text": "vmfunc", "parent": 324, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 12}}, {"id": 327, "type": "field_declaration", "text": "__u8 eptp;", "parent": 318, "children": [328, 329], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 11}}, {"id": 328, "type": "type_identifier", "text": "__u8", "parent": 327, "children": [], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 5}}, {"id": 329, "type": "field_identifier", "text": "eptp", "parent": 327, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 10}}, {"id": 330, "type": "field_declaration", "text": "__u8 ve;", "parent": 318, "children": [331, 332], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 9}}, {"id": 331, "type": "type_identifier", "text": "__u8", "parent": 330, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 5}}, {"id": 332, "type": "field_identifier", "text": "ve", "parent": 330, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 8}}, {"id": 333, "type": "field_declaration", "text": "__u8 singlestep;", "parent": 318, "children": [334, 335], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 17}}, {"id": 334, "type": "type_identifier", "text": "__u8", "parent": 333, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 5}}, {"id": 335, "type": "field_identifier", "text": "singlestep", "parent": 333, "children": [], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 16}}, {"id": 336, "type": "field_declaration", "text": "__u8 padding[3];", "parent": 318, "children": [337, 338], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 17}}, {"id": 337, "type": "type_identifier", "text": "__u8", "parent": 336, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 5}}, {"id": 338, "type": "array_declarator", "text": "padding[3]", "parent": 336, "children": [339, 340], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 16}}, {"id": 339, "type": "field_identifier", "text": "padding", "parent": 338, "children": [], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 13}}, {"id": 340, "type": "number_literal", "text": "3", "parent": 338, "children": [], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 15}}, {"id": 341, "type": "struct_specifier", "text": "struct kvmi_vcpu_get_ept_view_reply {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n}", "parent": 0, "children": [342, 343], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 158, "column": 1}}, {"id": 342, "type": "struct", "text": "struct", "parent": 341, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 6}}, {"id": 343, "type": "type_identifier", "text": "kvmi_vcpu_get_ept_view_reply", "parent": 341, "children": [], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 35}}, {"id": 344, "type": "field_declaration", "text": "__u16 view;", "parent": 341, "children": [345, 346], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 12}}, {"id": 345, "type": "type_identifier", "text": "__u16", "parent": 344, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 6}}, {"id": 346, "type": "field_identifier", "text": "view", "parent": 344, "children": [], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 11}}, {"id": 347, "type": "field_declaration", "text": "__u16 padding1;", "parent": 341, "children": [348, 349], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 16}}, {"id": 348, "type": "type_identifier", "text": "__u16", "parent": 347, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 6}}, {"id": 349, "type": "field_identifier", "text": "padding1", "parent": 347, "children": [], "start_point": {"row": 156, "column": 7}, "end_point": {"row": 156, "column": 15}}, {"id": 350, "type": "field_declaration", "text": "__u32 padding2;", "parent": 341, "children": [351, 352], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 16}}, {"id": 351, "type": "type_identifier", "text": "__u32", "parent": 350, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 6}}, {"id": 352, "type": "field_identifier", "text": "padding2", "parent": 350, "children": [], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 15}}, {"id": 353, "type": "struct_specifier", "text": "struct kvmi_vcpu_set_ept_view {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n}", "parent": 0, "children": [354, 355], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 164, "column": 1}}, {"id": 354, "type": "struct", "text": "struct", "parent": 353, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 6}}, {"id": 355, "type": "type_identifier", "text": "kvmi_vcpu_set_ept_view", "parent": 353, "children": [], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 29}}, {"id": 356, "type": "field_declaration", "text": "__u16 view;", "parent": 353, "children": [357, 358], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 12}}, {"id": 357, "type": "type_identifier", "text": "__u16", "parent": 356, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 6}}, {"id": 358, "type": "field_identifier", "text": "view", "parent": 356, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 11}}, {"id": 359, "type": "field_declaration", "text": "__u16 padding1;", "parent": 353, "children": [360, 361], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 16}}, {"id": 360, "type": "type_identifier", "text": "__u16", "parent": 359, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 6}}, {"id": 361, "type": "field_identifier", "text": "padding1", "parent": 359, "children": [], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 15}}, {"id": 362, "type": "field_declaration", "text": "__u32 padding2;", "parent": 353, "children": [363, 364], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 16}}, {"id": 363, "type": "type_identifier", "text": "__u32", "parent": 362, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 6}}, {"id": 364, "type": "field_identifier", "text": "padding2", "parent": 362, "children": [], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 15}}, {"id": 365, "type": "struct_specifier", "text": "struct kvmi_vcpu_control_ept_view {\n\t__u16 view;\n\t__u8 visible;\n\t__u8 padding1;\n\t__u32 padding2;\n}", "parent": 0, "children": [366, 367], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 366, "type": "struct", "text": "struct", "parent": 365, "children": [], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 6}}, {"id": 367, "type": "type_identifier", "text": "kvmi_vcpu_control_ept_view", "parent": 365, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 33}}, {"id": 368, "type": "field_declaration", "text": "__u16 view;", "parent": 365, "children": [369, 370], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 12}}, {"id": 369, "type": "type_identifier", "text": "__u16", "parent": 368, "children": [], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 6}}, {"id": 370, "type": "field_identifier", "text": "view", "parent": 368, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 11}}, {"id": 371, "type": "field_declaration", "text": "__u8 visible;", "parent": 365, "children": [372, 373], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 15}}, {"id": 372, "type": "type_identifier", "text": "__u8", "parent": 371, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 5}}, {"id": 373, "type": "field_identifier", "text": "visible", "parent": 371, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 14}}, {"id": 374, "type": "field_declaration", "text": "__u8 padding1;", "parent": 365, "children": [375, 376], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 16}}, {"id": 375, "type": "type_identifier", "text": "__u8", "parent": 374, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 5}}, {"id": 376, "type": "field_identifier", "text": "padding1", "parent": 374, "children": [], "start_point": {"row": 169, "column": 7}, "end_point": {"row": 169, "column": 15}}, {"id": 377, "type": "field_declaration", "text": "__u32 padding2;", "parent": 365, "children": [378, 379], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 16}}, {"id": 378, "type": "type_identifier", "text": "__u32", "parent": 377, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 6}}, {"id": 379, "type": "field_identifier", "text": "padding2", "parent": 377, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 15}}, {"id": 380, "type": "struct_specifier", "text": "struct kvmi_vcpu_set_ve_info {\n\t__u64 gpa;\n\t__u8 trigger_vmexit;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 padding3;\n}", "parent": 0, "children": [381, 382], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 179, "column": 1}}, {"id": 381, "type": "struct", "text": "struct", "parent": 380, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 6}}, {"id": 382, "type": "type_identifier", "text": "kvmi_vcpu_set_ve_info", "parent": 380, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 28}}, {"id": 383, "type": "field_declaration", "text": "__u64 gpa;", "parent": 380, "children": [384, 385], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 11}}, {"id": 384, "type": "type_identifier", "text": "__u64", "parent": 383, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 6}}, {"id": 385, "type": "field_identifier", "text": "gpa", "parent": 383, "children": [], "start_point": {"row": 174, "column": 7}, "end_point": {"row": 174, "column": 10}}, {"id": 386, "type": "field_declaration", "text": "__u8 trigger_vmexit;", "parent": 380, "children": [387, 388], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 21}}, {"id": 387, "type": "type_identifier", "text": "__u8", "parent": 386, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 5}}, {"id": 388, "type": "field_identifier", "text": "trigger_vmexit", "parent": 386, "children": [], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 20}}, {"id": 389, "type": "field_declaration", "text": "__u8 padding1;", "parent": 380, "children": [390, 391], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 15}}, {"id": 390, "type": "type_identifier", "text": "__u8", "parent": 389, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 5}}, {"id": 391, "type": "field_identifier", "text": "padding1", "parent": 389, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 14}}, {"id": 392, "type": "field_declaration", "text": "__u16 padding2;", "parent": 380, "children": [393, 394], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 16}}, {"id": 393, "type": "type_identifier", "text": "__u16", "parent": 392, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 6}}, {"id": 394, "type": "field_identifier", "text": "padding2", "parent": 392, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 15}}, {"id": 395, "type": "field_declaration", "text": "__u32 padding3;", "parent": 380, "children": [396, 397], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 16}}, {"id": 396, "type": "type_identifier", "text": "__u32", "parent": 395, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 6}}, {"id": 397, "type": "field_identifier", "text": "padding3", "parent": 395, "children": [], "start_point": {"row": 178, "column": 7}, "end_point": {"row": 178, "column": 15}}, {"id": 398, "type": "struct_specifier", "text": "struct kvmi_vm_set_page_sve {\n\t__u16 view;\n\t__u8 suppress;\n\t__u8 padding1;\n\t__u32 padding2;\n\t__u64 gpa;\n}", "parent": 0, "children": [399, 400], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 187, "column": 1}}, {"id": 399, "type": "struct", "text": "struct", "parent": 398, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 6}}, {"id": 400, "type": "type_identifier", "text": "kvmi_vm_set_page_sve", "parent": 398, "children": [], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 27}}, {"id": 401, "type": "field_declaration", "text": "__u16 view;", "parent": 398, "children": [402, 403], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 12}}, {"id": 402, "type": "type_identifier", "text": "__u16", "parent": 401, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 6}}, {"id": 403, "type": "field_identifier", "text": "view", "parent": 401, "children": [], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 11}}, {"id": 404, "type": "field_declaration", "text": "__u8 suppress;", "parent": 398, "children": [405, 406], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 15}}, {"id": 405, "type": "type_identifier", "text": "__u8", "parent": 404, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 5}}, {"id": 406, "type": "field_identifier", "text": "suppress", "parent": 404, "children": [], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 14}}, {"id": 407, "type": "field_declaration", "text": "__u8 padding1;", "parent": 398, "children": [408, 409], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 15}}, {"id": 408, "type": "type_identifier", "text": "__u8", "parent": 407, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 5}}, {"id": 409, "type": "field_identifier", "text": "padding1", "parent": 407, "children": [], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 14}}, {"id": 410, "type": "field_declaration", "text": "__u32 padding2;", "parent": 398, "children": [411, 412], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 16}}, {"id": 411, "type": "type_identifier", "text": "__u32", "parent": 410, "children": [], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 6}}, {"id": 412, "type": "field_identifier", "text": "padding2", "parent": 410, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 15}}, {"id": 413, "type": "field_declaration", "text": "__u64 gpa;", "parent": 398, "children": [414, 415], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 11}}, {"id": 414, "type": "type_identifier", "text": "__u64", "parent": 413, "children": [], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 6}}, {"id": 415, "type": "field_identifier", "text": "gpa", "parent": 413, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 10}}, {"id": 416, "type": "struct_specifier", "text": "struct kvmi_vm_control_spp {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 padding3;\n}", "parent": 0, "children": [417, 418], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 194, "column": 1}}, {"id": 417, "type": "struct", "text": "struct", "parent": 416, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 6}}, {"id": 418, "type": "type_identifier", "text": "kvmi_vm_control_spp", "parent": 416, "children": [], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 26}}, {"id": 419, "type": "field_declaration", "text": "__u8 enable;", "parent": 416, "children": [420, 421], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 13}}, {"id": 420, "type": "type_identifier", "text": "__u8", "parent": 419, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 5}}, {"id": 421, "type": "field_identifier", "text": "enable", "parent": 419, "children": [], "start_point": {"row": 190, "column": 6}, "end_point": {"row": 190, "column": 12}}, {"id": 422, "type": "field_declaration", "text": "__u8 padding1;", "parent": 416, "children": [423, 424], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 15}}, {"id": 423, "type": "type_identifier", "text": "__u8", "parent": 422, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 5}}, {"id": 424, "type": "field_identifier", "text": "padding1", "parent": 422, "children": [], "start_point": {"row": 191, "column": 6}, "end_point": {"row": 191, "column": 14}}, {"id": 425, "type": "field_declaration", "text": "__u16 padding2;", "parent": 416, "children": [426, 427], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 16}}, {"id": 426, "type": "type_identifier", "text": "__u16", "parent": 425, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 6}}, {"id": 427, "type": "field_identifier", "text": "padding2", "parent": 425, "children": [], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 15}}, {"id": 428, "type": "field_declaration", "text": "__u32 padding3;", "parent": 416, "children": [429, 430], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 16}}, {"id": 429, "type": "type_identifier", "text": "__u32", "parent": 428, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 6}}, {"id": 430, "type": "field_identifier", "text": "padding3", "parent": 428, "children": [], "start_point": {"row": 193, "column": 7}, "end_point": {"row": 193, "column": 15}}, {"id": 431, "type": "struct_specifier", "text": "struct kvmi_page_write_bitmap_entry {\n\t__u64 gpa;\n\t__u32 bitmap;\n\t__u32 padding;\n}", "parent": 0, "children": [432, 433], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 200, "column": 1}}, {"id": 432, "type": "struct", "text": "struct", "parent": 431, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 6}}, {"id": 433, "type": "type_identifier", "text": "kvmi_page_write_bitmap_entry", "parent": 431, "children": [], "start_point": {"row": 196, "column": 7}, "end_point": {"row": 196, "column": 35}}, {"id": 434, "type": "field_declaration", "text": "__u64 gpa;", "parent": 431, "children": [435, 436], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 11}}, {"id": 435, "type": "type_identifier", "text": "__u64", "parent": 434, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 6}}, {"id": 436, "type": "field_identifier", "text": "gpa", "parent": 434, "children": [], "start_point": {"row": 197, "column": 7}, "end_point": {"row": 197, "column": 10}}, {"id": 437, "type": "field_declaration", "text": "__u32 bitmap;", "parent": 431, "children": [438, 439], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 14}}, {"id": 438, "type": "type_identifier", "text": "__u32", "parent": 437, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 6}}, {"id": 439, "type": "field_identifier", "text": "bitmap", "parent": 437, "children": [], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 13}}, {"id": 440, "type": "field_declaration", "text": "__u32 padding;", "parent": 431, "children": [441, 442], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 15}}, {"id": 441, "type": "type_identifier", "text": "__u32", "parent": 440, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 6}}, {"id": 442, "type": "field_identifier", "text": "padding", "parent": 440, "children": [], "start_point": {"row": 199, "column": 7}, "end_point": {"row": 199, "column": 14}}, {"id": 443, "type": "struct_specifier", "text": "struct kvmi_vm_set_page_write_bitmap {\n\t__u16 padding1;\n\t__u16 count;\n\t__u32 padding2;\n\tstruct kvmi_page_write_bitmap_entry entries[0];\n}", "parent": 0, "children": [444, 445], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 207, "column": 1}}, {"id": 444, "type": "struct", "text": "struct", "parent": 443, "children": [], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 202, "column": 6}}, {"id": 445, "type": "type_identifier", "text": "kvmi_vm_set_page_write_bitmap", "parent": 443, "children": [], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 36}}, {"id": 446, "type": "field_declaration", "text": "__u16 padding1;", "parent": 443, "children": [447, 448], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 16}}, {"id": 447, "type": "type_identifier", "text": "__u16", "parent": 446, "children": [], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 6}}, {"id": 448, "type": "field_identifier", "text": "padding1", "parent": 446, "children": [], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 15}}, {"id": 449, "type": "field_declaration", "text": "__u16 count;", "parent": 443, "children": [450, 451], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 13}}, {"id": 450, "type": "type_identifier", "text": "__u16", "parent": 449, "children": [], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 6}}, {"id": 451, "type": "field_identifier", "text": "count", "parent": 449, "children": [], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 12}}, {"id": 452, "type": "field_declaration", "text": "__u32 padding2;", "parent": 443, "children": [453, 454], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 16}}, {"id": 453, "type": "type_identifier", "text": "__u32", "parent": 452, "children": [], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 6}}, {"id": 454, "type": "field_identifier", "text": "padding2", "parent": 452, "children": [], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 15}}, {"id": 455, "type": "field_declaration", "text": "struct kvmi_page_write_bitmap_entry entries[0];", "parent": 443, "children": [456, 459], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 48}}, {"id": 456, "type": "struct_specifier", "text": "struct kvmi_page_write_bitmap_entry", "parent": 455, "children": [457, 458], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 36}}, {"id": 457, "type": "struct", "text": "struct", "parent": 456, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 7}}, {"id": 458, "type": "type_identifier", "text": "kvmi_page_write_bitmap_entry", "parent": 456, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 36}}, {"id": 459, "type": "array_declarator", "text": "entries[0]", "parent": 455, "children": [460, 461], "start_point": {"row": 206, "column": 37}, "end_point": {"row": 206, "column": 47}}, {"id": 460, "type": "field_identifier", "text": "entries", "parent": 459, "children": [], "start_point": {"row": 206, "column": 37}, "end_point": {"row": 206, "column": 44}}, {"id": 461, "type": "number_literal", "text": "0", "parent": 459, "children": [], "start_point": {"row": 206, "column": 45}, "end_point": {"row": 206, "column": 46}}, {"id": 462, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 209, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [16, 19, 22, 25, 28, 33, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 72, 78, 81, 84, 87, 95, 98, 101, 106, 111, 119, 121, 127, 130, 133, 136, 142, 145, 148, 156, 159, 162, 165, 171, 174, 179, 182, 188, 194, 197, 200, 203, 206, 212, 215, 218, 221, 224, 230, 238, 244, 247, 271, 274, 277, 285, 288, 291, 294, 300, 303, 306, 309, 315, 321, 324, 327, 330, 333, 336, 344, 347, 350, 356, 359, 362, 368, 371, 374, 377, 383, 386, 389, 392, 395, 401, 404, 407, 410, 413, 419, 422, 425, 428, 434, 437, 440, 446, 449, 452, 455], "classes": [13, 14, 29, 30, 34, 35, 39, 40, 69, 70, 75, 76, 92, 93, 102, 103, 107, 108, 112, 113, 116, 117, 124, 125, 139, 140, 153, 154, 168, 169, 185, 186, 191, 192, 209, 210, 227, 228, 235, 236, 241, 242, 268, 269, 282, 283, 297, 298, 312, 313, 318, 319, 341, 342, 353, 354, 365, 366, 380, 381, 398, 399, 416, 417, 431, 432, 443, 444, 456, 457], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 15, 17, 18, 20, 21, 23, 24, 26, 27, 31, 32, 36, 37, 42, 43, 45, 46, 48, 49, 51, 52, 54, 55, 57, 58, 60, 61, 63, 64, 66, 67, 68, 71, 73, 74, 77, 79, 80, 82, 83, 85, 86, 88, 90, 94, 96, 97, 99, 100, 104, 105, 109, 110, 114, 115, 118, 120, 122, 123, 126, 128, 129, 131, 132, 134, 135, 137, 138, 141, 143, 144, 146, 147, 149, 151, 155, 157, 158, 160, 161, 163, 164, 166, 167, 170, 172, 173, 175, 177, 180, 181, 183, 184, 187, 189, 190, 193, 195, 196, 198, 199, 201, 202, 204, 205, 207, 208, 211, 213, 214, 216, 217, 219, 220, 222, 223, 225, 226, 229, 231, 233, 237, 239, 240, 243, 245, 246, 248, 250, 254, 258, 262, 266, 270, 272, 273, 275, 276, 278, 280, 284, 286, 287, 289, 290, 292, 293, 295, 296, 299, 301, 302, 304, 305, 307, 308, 310, 311, 314, 316, 317, 320, 322, 323, 325, 326, 328, 329, 331, 332, 334, 335, 337, 339, 343, 345, 346, 348, 349, 351, 352, 355, 357, 358, 360, 361, 363, 364, 367, 369, 370, 372, 373, 375, 376, 378, 379, 382, 384, 385, 387, 388, 390, 391, 393, 394, 396, 397, 400, 402, 403, 405, 406, 408, 409, 411, 412, 414, 415, 418, 420, 421, 423, 424, 426, 427, 429, 430, 433, 435, 436, 438, 439, 441, 442, 445, 447, 448, 450, 451, 453, 454, 458, 460, 462], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 91, 152, 178, 234, 251, 281, 340, 461], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "kvmi_event_arch", "text_snippet": "struct kvmi_event_arch {\n\t__u8 mode;\t\t/* 2, 4 or 8 */\n\t__u8 padding1;\n\t__u16 view;\n\t__u32 padding2;\n"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 29, "universal_type": "class", "name": "kvm_regs", "text_snippet": "struct kvm_regs"}, {"node_id": 30, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 34, "universal_type": "class", "name": "kvm_sregs", "text_snippet": "struct kvm_sregs"}, {"node_id": 35, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 39, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\t\t__u64 sysenter_cs;\n\t\t__u64 sysenter_esp;\n\t\t__u64 sysenter_eip;\n\t\t__u64 efer;\n\t\t__u64 star"}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 69, "universal_type": "class", "name": "kvmi_vcpu_get_info_reply", "text_snippet": "struct kvmi_vcpu_get_info_reply {\n\t__u64 tsc_speed;\n}"}, {"node_id": 70, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 75, "universal_type": "class", "name": "kvmi_vcpu_get_registers", "text_snippet": "struct kvmi_vcpu_get_registers {\n\t__u16 nmsrs;\n\t__u16 padding1;\n\t__u32 padding2;\n\t__u32 msrs_idx[0];"}, {"node_id": 76, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 92, "universal_type": "class", "name": "kvmi_vcpu_get_registers_reply", "text_snippet": "struct kvmi_vcpu_get_registers_reply {\n\t__u32 mode;\n\t__u32 padding;\n\tstruct kvm_regs regs;\n\tstruct k"}, {"node_id": 93, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 102, "universal_type": "class", "name": "kvm_regs", "text_snippet": "struct kvm_regs"}, {"node_id": 103, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 107, "universal_type": "class", "name": "kvm_sregs", "text_snippet": "struct kvm_sregs"}, {"node_id": 108, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 112, "universal_type": "class", "name": "kvm_msrs", "text_snippet": "struct kvm_msrs"}, {"node_id": 113, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 116, "universal_type": "class", "name": "kvmi_vcpu_get_cpuid", "text_snippet": "struct kvmi_vcpu_get_cpuid {\n\t__u32 function;\n\t__u32 index;\n}"}, {"node_id": 117, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 124, "universal_type": "class", "name": "kvmi_vcpu_get_cpuid_reply", "text_snippet": "struct kvmi_vcpu_get_cpuid_reply {\n\t__u32 eax;\n\t__u32 ebx;\n\t__u32 ecx;\n\t__u32 edx;\n}"}, {"node_id": 125, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 139, "universal_type": "class", "name": "kvmi_event_breakpoint", "text_snippet": "struct kvmi_event_breakpoint {\n\t__u64 gpa;\n\t__u8 insn_len;\n\t__u8 padding[7];\n}"}, {"node_id": 140, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 153, "universal_type": "class", "name": "kvmi_vcpu_control_cr", "text_snippet": "struct kvmi_vcpu_control_cr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 cr;\n}"}, {"node_id": 154, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 168, "universal_type": "class", "name": "kvmi_event_cr", "text_snippet": "struct kvmi_event_cr {\n\t__u16 cr;\n\t__u16 padding[3];\n\t__u64 old_value;\n\t__u64 new_value;\n}"}, {"node_id": 169, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 185, "universal_type": "class", "name": "kvmi_event_cr_reply", "text_snippet": "struct kvmi_event_cr_reply {\n\t__u64 new_val;\n}"}, {"node_id": 186, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 191, "universal_type": "class", "name": "kvmi_event_trap", "text_snippet": "struct kvmi_event_trap {\n\t__u8 vector;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t__u64 cr"}, {"node_id": 192, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 209, "universal_type": "class", "name": "kvmi_vcpu_inject_exception", "text_snippet": "struct kvmi_vcpu_inject_exception {\n\t__u8 nr;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t_"}, {"node_id": 210, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 227, "universal_type": "class", "name": "kvmi_vcpu_get_xsave_reply", "text_snippet": "struct kvmi_vcpu_get_xsave_reply {\n\t__u32 region[0];\n}"}, {"node_id": 228, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 235, "universal_type": "class", "name": "kvmi_vcpu_get_mtrr_type", "text_snippet": "struct kvmi_vcpu_get_mtrr_type {\n\t__u64 gpa;\n}"}, {"node_id": 236, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 241, "universal_type": "class", "name": "kvmi_vcpu_get_mtrr_type_reply", "text_snippet": "struct kvmi_vcpu_get_mtrr_type_reply {\n\t__u8 type;\n\t__u8 padding[7];\n}"}, {"node_id": 242, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 268, "universal_type": "class", "name": "kvmi_event_descriptor", "text_snippet": "struct kvmi_event_descriptor {\n\t__u8 descriptor;\n\t__u8 write;\n\t__u8 padding[6];\n}"}, {"node_id": 269, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 282, "universal_type": "class", "name": "kvmi_vcpu_control_msr", "text_snippet": "struct kvmi_vcpu_control_msr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 msr;\n}"}, {"node_id": 283, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 297, "universal_type": "class", "name": "kvmi_event_msr", "text_snippet": "struct kvmi_event_msr {\n\t__u32 msr;\n\t__u32 padding;\n\t__u64 old_value;\n\t__u64 new_value;\n}"}, {"node_id": 298, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 312, "universal_type": "class", "name": "kvmi_event_msr_reply", "text_snippet": "struct kvmi_event_msr_reply {\n\t__u64 new_val;\n}"}, {"node_id": 313, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 318, "universal_type": "class", "name": "kvmi_features", "text_snippet": "struct kvmi_features {\n\t__u8 spp;\n\t__u8 vmfunc;\n\t__u8 eptp;\n\t__u8 ve;\n\t__u8 singlestep;\n\t__u8 paddin"}, {"node_id": 319, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 341, "universal_type": "class", "name": "kvmi_vcpu_get_ept_view_reply", "text_snippet": "struct kvmi_vcpu_get_ept_view_reply {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n}"}, {"node_id": 342, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 353, "universal_type": "class", "name": "kvmi_vcpu_set_ept_view", "text_snippet": "struct kvmi_vcpu_set_ept_view {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n}"}, {"node_id": 354, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 365, "universal_type": "class", "name": "kvmi_vcpu_control_ept_view", "text_snippet": "struct kvmi_vcpu_control_ept_view {\n\t__u16 view;\n\t__u8 visible;\n\t__u8 padding1;\n\t__u32 padding2;\n}"}, {"node_id": 366, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 380, "universal_type": "class", "name": "kvmi_vcpu_set_ve_info", "text_snippet": "struct kvmi_vcpu_set_ve_info {\n\t__u64 gpa;\n\t__u8 trigger_vmexit;\n\t__u8 padding1;\n\t__u16 padding2;\n\t_"}, {"node_id": 381, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 398, "universal_type": "class", "name": "kvmi_vm_set_page_sve", "text_snippet": "struct kvmi_vm_set_page_sve {\n\t__u16 view;\n\t__u8 suppress;\n\t__u8 padding1;\n\t__u32 padding2;\n\t__u64 g"}, {"node_id": 399, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 416, "universal_type": "class", "name": "kvmi_vm_control_spp", "text_snippet": "struct kvmi_vm_control_spp {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 padding3;\n}"}, {"node_id": 417, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 431, "universal_type": "class", "name": "kvmi_page_write_bitmap_entry", "text_snippet": "struct kvmi_page_write_bitmap_entry {\n\t__u64 gpa;\n\t__u32 bitmap;\n\t__u32 padding;\n}"}, {"node_id": 432, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 443, "universal_type": "class", "name": "kvmi_vm_set_page_write_bitmap", "text_snippet": "struct kvmi_vm_set_page_write_bitmap {\n\t__u16 padding1;\n\t__u16 count;\n\t__u32 padding2;\n\tstruct kvmi_"}, {"node_id": 444, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 456, "universal_type": "class", "name": "kvmi_page_write_bitmap_entry", "text_snippet": "struct kvmi_page_write_bitmap_entry"}, {"node_id": 457, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <asm/kvm.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */\n#ifndef _UAPI_ASM_X86_KVMI_H\n#define _UAPI_ASM_X86_KVMI_H\n\n/*\n * KVM introspection - x86 specific structures and definitions\n */\n\n#include <asm/kvm.h>\n\n#define KVM_HC_XEN_HVM_OP_GUEST_REQUEST_VM_EVENT 24\n\nstruct kvmi_event_arch {\n\t__u8 mode;\t\t/* 2, 4 or 8 */\n\t__u8 padding1;\n\t__u16 view;\n\t__u32 padding2;\n\tstruct kvm_regs regs;\n\tstruct kvm_sregs sregs;\n\tstruct {\n\t\t__u64 sysenter_cs;\n\t\t__u64 sysenter_esp;\n\t\t__u64 sysenter_eip;\n\t\t__u64 efer;\n\t\t__u64 star;\n\t\t__u64 lstar;\n\t\t__u64 cstar;\n\t\t__u64 pat;\n\t\t__u64 shadow_gs;\n\t} msrs;\n};\n\nstruct kvmi_vcpu_get_info_reply {\n\t__u64 tsc_speed;\n};\n\nstruct kvmi_vcpu_get_registers {\n\t__u16 nmsrs;\n\t__u16 padding1;\n\t__u32 padding2;\n\t__u32 msrs_idx[0];\n};\n\nstruct kvmi_vcpu_get_registers_reply {\n\t__u32 mode;\n\t__u32 padding;\n\tstruct kvm_regs regs;\n\tstruct kvm_sregs sregs;\n\tstruct kvm_msrs msrs;\n};\n\nstruct kvmi_vcpu_get_cpuid {\n\t__u32 function;\n\t__u32 index;\n};\n\nstruct kvmi_vcpu_get_cpuid_reply {\n\t__u32 eax;\n\t__u32 ebx;\n\t__u32 ecx;\n\t__u32 edx;\n};\n\nstruct kvmi_event_breakpoint {\n\t__u64 gpa;\n\t__u8 insn_len;\n\t__u8 padding[7];\n};\n\nstruct kvmi_vcpu_control_cr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 cr;\n};\n\nstruct kvmi_event_cr {\n\t__u16 cr;\n\t__u16 padding[3];\n\t__u64 old_value;\n\t__u64 new_value;\n};\n\nstruct kvmi_event_cr_reply {\n\t__u64 new_val;\n};\n\nstruct kvmi_event_trap {\n\t__u8 vector;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t__u64 cr2;\n};\n\nstruct kvmi_vcpu_inject_exception {\n\t__u8 nr;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 error_code;\n\t__u64 address;\n};\n\nstruct kvmi_vcpu_get_xsave_reply {\n\t__u32 region[0];\n};\n\nstruct kvmi_vcpu_get_mtrr_type {\n\t__u64 gpa;\n};\n\nstruct kvmi_vcpu_get_mtrr_type_reply {\n\t__u8 type;\n\t__u8 padding[7];\n};\n\n#define KVMI_DESC_IDTR 1\n#define KVMI_DESC_GDTR 2\n#define KVMI_DESC_LDTR 3\n#define KVMI_DESC_TR 4\n\nstruct kvmi_event_descriptor {\n\t__u8 descriptor;\n\t__u8 write;\n\t__u8 padding[6];\n};\n\nstruct kvmi_vcpu_control_msr {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 msr;\n};\n\nstruct kvmi_event_msr {\n\t__u32 msr;\n\t__u32 padding;\n\t__u64 old_value;\n\t__u64 new_value;\n};\n\nstruct kvmi_event_msr_reply {\n\t__u64 new_val;\n};\n\nstruct kvmi_features {\n\t__u8 spp;\n\t__u8 vmfunc;\n\t__u8 eptp;\n\t__u8 ve;\n\t__u8 singlestep;\n\t__u8 padding[3];\n};\n\nstruct kvmi_vcpu_get_ept_view_reply {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ept_view {\n\t__u16 view;\n\t__u16 padding1;\n\t__u32 padding2;\n};\n\nstruct kvmi_vcpu_control_ept_view {\n\t__u16 view;\n\t__u8 visible;\n\t__u8 padding1;\n\t__u32 padding2;\n};\n\nstruct kvmi_vcpu_set_ve_info {\n\t__u64 gpa;\n\t__u8 trigger_vmexit;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 padding3;\n};\n\nstruct kvmi_vm_set_page_sve {\n\t__u16 view;\n\t__u8 suppress;\n\t__u8 padding1;\n\t__u32 padding2;\n\t__u64 gpa;\n};\n\nstruct kvmi_vm_control_spp {\n\t__u8 enable;\n\t__u8 padding1;\n\t__u16 padding2;\n\t__u32 padding3;\n};\n\nstruct kvmi_page_write_bitmap_entry {\n\t__u64 gpa;\n\t__u32 bitmap;\n\t__u32 padding;\n};\n\nstruct kvmi_vm_set_page_write_bitmap {\n\t__u16 padding1;\n\t__u16 count;\n\t__u32 padding2;\n\tstruct kvmi_page_write_bitmap_entry entries[0];\n};\n\n#endif /* _UAPI_ASM_X86_KVMI_H */\n"}
80,423
c
//##################################################################### // Copyright 2004-2005, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### // Class FACE_CONTROL_SET //##################################################################### #ifndef __FACE_CONTROL_SET__ #define __FACE_CONTROL_SET__ namespace PhysBAM { template <class T> class FACE_CONTROL_SET { public: FACE_CONTROL_SET() {} virtual ~FACE_CONTROL_SET() {} void Default() const { std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl; } //##################################################################### virtual int Size() const { Default(); exit (1); } virtual T operator() (const int control_id) const { Default(); exit (1); } virtual T& operator() (const int control_id) { Default(); exit (1); } virtual bool Control_Active (const int control_id) const { Default(); exit (1); } virtual bool& Control_Active (const int control_id) { Default(); exit (1); } virtual bool Positions_Determined_Kinematically (const int control_id) const { Default(); exit (1); } virtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const { Default(); exit (1); } virtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const { Default(); exit (1); } virtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const { Default(); exit (1); } virtual void Save_Controls() { Default(); exit (1); } virtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const { Default(); exit (1); } virtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const { Default(); exit (1); } virtual T Penalty() const { Default(); exit (1); } virtual T Penalty_Gradient (const int control_id) const { Default(); exit (1); } virtual T Penalty_Hessian (const int control_id1, const int control_id2) const { Default(); exit (1); } virtual void Print_Diagnostics (std::ostream& output = std::cout) const { Default(); exit (1); } virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false) { Default(); exit (1); } virtual void Interpolate (const T interpolation_fraction) { Default(); exit (1); } //##################################################################### }; } #endif
20.86
117
(translation_unit) "//#####################################################################\n// Copyright 2004-2005, <NAME>, <NAME>.\n// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.\n//#####################################################################\n// Class FACE_CONTROL_SET\n//#####################################################################\n#ifndef __FACE_CONTROL_SET__\n#define __FACE_CONTROL_SET__\nnamespace PhysBAM\n{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n FACE_CONTROL_SET()\n {}\n\n virtual ~FACE_CONTROL_SET()\n {}\n\n void Default() const\n {\n std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl;\n }\n\n//#####################################################################\n virtual int Size() const\n {\n Default();\n exit (1);\n }\n virtual T operator() (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T& operator() (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Control_Active (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual bool& Control_Active (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Positions_Determined_Kinematically (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Save_Controls()\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty() const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Gradient (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n {\n Default();\n exit (1);\n }\n virtual void Print_Diagnostics (std::ostream& output = std::cout) const\n {\n Default();\n exit (1);\n }\n virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n {\n Default();\n exit (1);\n }\n virtual void Interpolate (const T interpolation_fraction)\n {\n Default();\n exit (1);\n }\n//#####################################################################\n};\n}\n#endif\n" (comment) "//#####################################################################" (comment) "// Copyright 2004-2005, <NAME>, <NAME>." (comment) "// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt." (comment) "//#####################################################################" (comment) "// Class FACE_CONTROL_SET" (comment) "//#####################################################################" (preproc_ifdef) "#ifndef __FACE_CONTROL_SET__\n#define __FACE_CONTROL_SET__\nnamespace PhysBAM\n{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n FACE_CONTROL_SET()\n {}\n\n virtual ~FACE_CONTROL_SET()\n {}\n\n void Default() const\n {\n std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl;\n }\n\n//#####################################################################\n virtual int Size() const\n {\n Default();\n exit (1);\n }\n virtual T operator() (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T& operator() (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Control_Active (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual bool& Control_Active (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Positions_Determined_Kinematically (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Save_Controls()\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty() const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Gradient (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n {\n Default();\n exit (1);\n }\n virtual void Print_Diagnostics (std::ostream& output = std::cout) const\n {\n Default();\n exit (1);\n }\n virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n {\n Default();\n exit (1);\n }\n virtual void Interpolate (const T interpolation_fraction)\n {\n Default();\n exit (1);\n }\n//#####################################################################\n};\n}\n#endif" (#ifndef) "#ifndef" (identifier) "__FACE_CONTROL_SET__" (preproc_def) "#define __FACE_CONTROL_SET__\n" (#define) "#define" (identifier) "__FACE_CONTROL_SET__" (function_definition) "namespace PhysBAM\n{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n FACE_CONTROL_SET()\n {}\n\n virtual ~FACE_CONTROL_SET()\n {}\n\n void Default() const\n {\n std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl;\n }\n\n//#####################################################################\n virtual int Size() const\n {\n Default();\n exit (1);\n }\n virtual T operator() (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T& operator() (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Control_Active (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual bool& Control_Active (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Positions_Determined_Kinematically (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Save_Controls()\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty() const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Gradient (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n {\n Default();\n exit (1);\n }\n virtual void Print_Diagnostics (std::ostream& output = std::cout) const\n {\n Default();\n exit (1);\n }\n virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n {\n Default();\n exit (1);\n }\n virtual void Interpolate (const T interpolation_fraction)\n {\n Default();\n exit (1);\n }\n//#####################################################################\n}" (type_identifier) "namespace" (identifier) "PhysBAM" (compound_statement) "{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n FACE_CONTROL_SET()\n {}\n\n virtual ~FACE_CONTROL_SET()\n {}\n\n void Default() const\n {\n std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl;\n }\n\n//#####################################################################\n virtual int Size() const\n {\n Default();\n exit (1);\n }\n virtual T operator() (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T& operator() (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Control_Active (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual bool& Control_Active (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Positions_Determined_Kinematically (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Save_Controls()\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty() const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Gradient (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n {\n Default();\n exit (1);\n }\n virtual void Print_Diagnostics (std::ostream& output = std::cout) const\n {\n Default();\n exit (1);\n }\n virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n {\n Default();\n exit (1);\n }\n virtual void Interpolate (const T interpolation_fraction)\n {\n Default();\n exit (1);\n }\n//#####################################################################\n}" ({) "{" (ERROR) "template <class T>\nclass FACE_CONTROL_SET" (binary_expression) "template <class T>\nclass" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "FACE_CONTROL_SET" (compound_statement) "{\npublic:\n\n FACE_CONTROL_SET()\n {}\n\n virtual ~FACE_CONTROL_SET()\n {}\n\n void Default() const\n {\n std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl;\n }\n\n//#####################################################################\n virtual int Size() const\n {\n Default();\n exit (1);\n }\n virtual T operator() (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T& operator() (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Control_Active (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual bool& Control_Active (const int control_id)\n {\n Default();\n exit (1);\n }\n virtual bool Positions_Determined_Kinematically (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Save_Controls()\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n {\n Default();\n exit (1);\n }\n virtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty() const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Gradient (const int control_id) const\n {\n Default();\n exit (1);\n }\n virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n {\n Default();\n exit (1);\n }\n virtual void Print_Diagnostics (std::ostream& output = std::cout) const\n {\n Default();\n exit (1);\n }\n virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n {\n Default();\n exit (1);\n }" ({) "{" (labeled_statement) "public:\n\n FACE_CONTROL_SET()" (statement_identifier) "public" (:) ":" (expression_statement) "FACE_CONTROL_SET()" (call_expression) "FACE_CONTROL_SET()" (identifier) "FACE_CONTROL_SET" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "virtual ~FACE_CONTROL_SET()\n {}" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "FACE_CONTROL_SET()" (identifier) "FACE_CONTROL_SET" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (ERROR) "void Default() const" (primitive_type) "void" (function_declarator) "Default()" (identifier) "Default" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl;\n }" ({) "{" (labeled_statement) "std::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std::endl;" (statement_identifier) "std" (ERROR) "::cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std:" (:) ":" (:) ":" (binary_expression) "cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" << std" (binary_expression) "cout << "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!"" (identifier) "cout" (<<) "<<" (string_literal) ""THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!"" (") """ (string_content) "THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!" (") """ (<<) "<<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "endl;" (identifier) "endl" (;) ";" (}) "}" (comment) "//#####################################################################" (ERROR) "virtual int Size() const" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "Size()" (identifier) "Size" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual T operator() (const int control_id) const\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "T" (identifier) "T" (function_declarator) "operator() (const int control_id) const" (function_declarator) "operator()" (identifier) "operator" (parameter_list) "()" (() "(" ()) ")" (parameter_list) "(const int control_id)" (() "(" (parameter_declaration) "const int control_id" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual T& operator() (const int control_id)\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "T&" (identifier) "T" (&) "&" (function_declarator) "operator() (const int control_id)" (function_declarator) "operator()" (identifier) "operator" (parameter_list) "()" (() "(" ()) ")" (parameter_list) "(const int control_id)" (() "(" (parameter_declaration) "const int control_id" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id" ()) ")" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual bool Control_Active (const int control_id) const\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "Control_Active (const int control_id) const" (identifier) "Control_Active" (parameter_list) "(const int control_id)" (() "(" (parameter_declaration) "const int control_id" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual bool& Control_Active (const int control_id)\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "bool&" (identifier) "bool" (&) "&" (function_declarator) "Control_Active (const int control_id)" (identifier) "Control_Active" (parameter_list) "(const int control_id)" (() "(" (parameter_declaration) "const int control_id" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id" ()) ")" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual bool Positions_Determined_Kinematically (const int control_id) const\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "Positions_Determined_Kinematically (const int control_id) const" (identifier) "Positions_Determined_Kinematically" (parameter_list) "(const int control_id)" (() "(" (parameter_declaration) "const int control_id" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (ERROR) "Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const" (call_expression) "Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id)" (identifier) "Force_Derivative" (argument_list) "(ARRAY<VECTOR_3D<T> >& dFdl, const int control_id)" (() "(" (binary_expression) "ARRAY<VECTOR_3D<T> >& dFdl" (binary_expression) "ARRAY<VECTOR_3D<T" (binary_expression) "ARRAY<VECTOR_3D" (identifier) "ARRAY" (<) "<" (identifier) "VECTOR_3D" (<) "<" (identifier) "T" (>) ">" (ERROR) ">" (>) ">" (pointer_expression) "& dFdl" (&) "&" (identifier) "dFdl" (,) "," (ERROR) "const int" (identifier) "const" (identifier) "int" (identifier) "control_id" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (ERROR) "Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const" (call_expression) "Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id)" (identifier) "Position_Derivative" (argument_list) "(ARRAY<VECTOR_3D<T> >& dXdl, const int control_id)" (() "(" (binary_expression) "ARRAY<VECTOR_3D<T> >& dXdl" (binary_expression) "ARRAY<VECTOR_3D<T" (binary_expression) "ARRAY<VECTOR_3D" (identifier) "ARRAY" (<) "<" (identifier) "VECTOR_3D" (<) "<" (identifier) "T" (>) ">" (ERROR) ">" (>) ">" (pointer_expression) "& dXdl" (&) "&" (identifier) "dXdl" (,) "," (ERROR) "const int" (identifier) "const" (identifier) "int" (identifier) "control_id" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (ERROR) "Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const" (call_expression) "Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X)" (identifier) "Set_Attachment_Positions" (argument_list) "(ARRAY<VECTOR_3D<T> >&X)" (() "(" (binary_expression) "ARRAY<VECTOR_3D<T> >&X" (binary_expression) "ARRAY<VECTOR_3D<T" (binary_expression) "ARRAY<VECTOR_3D" (identifier) "ARRAY" (<) "<" (identifier) "VECTOR_3D" (<) "<" (identifier) "T" (>) ">" (ERROR) ">" (>) ">" (pointer_expression) "&X" (&) "&" (identifier) "X" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual void Save_Controls()\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Save_Controls()" (identifier) "Save_Controls" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (ERROR) "Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const" (call_expression) "Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X)" (identifier) "Kinematically_Update_Positions" (argument_list) "(ARRAY<VECTOR_3D<T> >&X)" (() "(" (binary_expression) "ARRAY<VECTOR_3D<T> >&X" (binary_expression) "ARRAY<VECTOR_3D<T" (binary_expression) "ARRAY<VECTOR_3D" (identifier) "ARRAY" (<) "<" (identifier) "VECTOR_3D" (<) "<" (identifier) "T" (>) ">" (ERROR) ">" (>) ">" (pointer_expression) "&X" (&) "&" (identifier) "X" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (ERROR) "Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const" (call_expression) "Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX)" (identifier) "Kinematically_Update_Jacobian" (argument_list) "(ARRAY<VECTOR_3D<T> >&dX)" (() "(" (binary_expression) "ARRAY<VECTOR_3D<T> >&dX" (binary_expression) "ARRAY<VECTOR_3D<T" (binary_expression) "ARRAY<VECTOR_3D" (identifier) "ARRAY" (<) "<" (identifier) "VECTOR_3D" (<) "<" (identifier) "T" (>) ">" (ERROR) ">" (>) ">" (pointer_expression) "&dX" (&) "&" (identifier) "dX" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (ERROR) "virtual T Penalty() const" (type_identifier) "virtual" (ERROR) "T" (identifier) "T" (function_declarator) "Penalty()" (identifier) "Penalty" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual T Penalty_Gradient (const int control_id) const\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "T" (identifier) "T" (function_declarator) "Penalty_Gradient (const int control_id) const" (identifier) "Penalty_Gradient" (parameter_list) "(const int control_id)" (() "(" (parameter_declaration) "const int control_id" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "T" (identifier) "T" (function_declarator) "Penalty_Hessian (const int control_id1, const int control_id2) const" (identifier) "Penalty_Hessian" (parameter_list) "(const int control_id1, const int control_id2)" (() "(" (parameter_declaration) "const int control_id1" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id1" (,) "," (parameter_declaration) "const int control_id2" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "control_id2" ()) ")" (identifier) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (ERROR) "virtual void Print_Diagnostics (std::ostream& output = std::cout) const" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (identifier) "Print_Diagnostics" (() "(" (parameter_declaration) "std::ostream" (type_identifier) "std" (ERROR) "::" (:) ":" (:) ":" (identifier) "ostream" (assignment_expression) "& output = std" (pointer_expression) "& output" (&) "&" (identifier) "output" (=) "=" (identifier) "std" (:) ":" (:) ":" (type_identifier) "cout" (ERROR) ")" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (declaration) "virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n {\n Default();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n {\n Default()" (function_declarator) "Project_Parameters_To_Allowable_Range (const bool active_controls_only" (identifier) "Project_Parameters_To_Allowable_Range" (parameter_list) "(const bool active_controls_only" (() "(" (parameter_declaration) "const bool active_controls_only" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (identifier) "active_controls_only" ()) "" (=) "=" (ERROR) "false)" (false) "false" ()) ")" (initializer_list) "{\n Default()" ({) "{" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (}) "" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "virtual void Interpolate (const T interpolation_fraction)\n {\n Default();\n exit (1);\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Interpolate (const T interpolation_fraction)" (identifier) "Interpolate" (parameter_list) "(const T interpolation_fraction)" (() "(" (parameter_declaration) "const T interpolation_fraction" (type_qualifier) "const" (const) "const" (type_identifier) "T" (identifier) "interpolation_fraction" ()) ")" (compound_statement) "{\n Default();\n exit (1);\n }" ({) "{" (expression_statement) "Default();" (call_expression) "Default()" (identifier) "Default" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "exit (1);" (call_expression) "exit (1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "//#####################################################################" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}" (#endif) "#endif"
763
37
{"language": "c", "success": true, "metadata": {"lines": 117, "avg_line_length": 20.86, "nodes": 415, "errors": 0, "source_hash": "9f5c5dda18160643c545200871bbf8ee46119e5896668f8224d6a83338df5f4e", "categorized_nodes": 279}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __FACE_CONTROL_SET__\n#define __FACE_CONTROL_SET__\nnamespace PhysBAM\n{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n\tFACE_CONTROL_SET()\n\t{}\n\n\tvirtual ~FACE_CONTROL_SET()\n\t{}\n\n\tvoid Default() const\n\t{\n\t\tstd::cout << \"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\" << std::endl;\n\t}\n\n//#####################################################################\n\tvirtual int Size() const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T operator() (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T& operator() (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool Control_Active (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool& Control_Active (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool Positions_Determined_Kinematically (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Save_Controls()\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty() const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty_Gradient (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Print_Diagnostics (std::ostream& output = std::cout) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Interpolate (const T interpolation_fraction)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n//#####################################################################\n};\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 414], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 121, "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": "__FACE_CONTROL_SET__", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define __FACE_CONTROL_SET__\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": "__FACE_CONTROL_SET__", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 28}}, {"id": 6, "type": "function_definition", "text": "namespace PhysBAM\n{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n\tFACE_CONTROL_SET()\n\t{}\n\n\tvirtual ~FACE_CONTROL_SET()\n\t{}\n\n\tvoid Default() const\n\t{\n\t\tstd::cout << \"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\" << std::endl;\n\t}\n\n//#####################################################################\n\tvirtual int Size() const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T operator() (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T& operator() (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool Control_Active (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool& Control_Active (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool Positions_Determined_Kinematically (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Save_Controls()\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty() const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty_Gradient (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Print_Diagnostics (std::ostream& output = std::cout) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Interpolate (const T interpolation_fraction)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n//#####################################################################\n}", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 119, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 8, "type": "identifier", "text": "PhysBAM", "parent": 6, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 17}}, {"id": 9, "type": "ERROR", "text": "template <class T>\nclass FACE_CONTROL_SET", "parent": 6, "children": [10, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 22}}, {"id": 10, "type": "binary_expression", "text": "template <class T>\nclass", "parent": 9, "children": [11, 14, 16], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 5}}, {"id": 11, "type": "binary_expression", "text": "template <class", "parent": 10, "children": [12, 13], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 15}}, {"id": 12, "type": "identifier", "text": "template", "parent": 11, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 13, "type": "<", "text": "<", "parent": 11, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 14, "type": "ERROR", "text": "T", "parent": 10, "children": [15], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 15, "type": "identifier", "text": "T", "parent": 14, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 16, "type": ">", "text": ">", "parent": 10, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 18}}, {"id": 17, "type": "identifier", "text": "FACE_CONTROL_SET", "parent": 9, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 22}}, {"id": 18, "type": "labeled_statement", "text": "public:\n\n\tFACE_CONTROL_SET()", "parent": 6, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 16, "column": 19}}, {"id": 19, "type": "call_expression", "text": "FACE_CONTROL_SET()", "parent": 18, "children": [20, 21], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 19}}, {"id": 20, "type": "identifier", "text": "FACE_CONTROL_SET", "parent": 19, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 17}}, {"id": 21, "type": "argument_list", "text": "()", "parent": 19, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 19}}, {"id": 22, "type": "function_definition", "text": "virtual ~FACE_CONTROL_SET()\n\t{}", "parent": 6, "children": [23, 24, 26], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 20, "column": 3}}, {"id": 23, "type": "type_identifier", "text": "virtual", "parent": 22, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 24, "type": "ERROR", "text": "~", "parent": 22, "children": [25], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 25, "type": "~", "text": "~", "parent": 24, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 26, "type": "function_declarator", "text": "FACE_CONTROL_SET()", "parent": 22, "children": [27, 28], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 28}}, {"id": 27, "type": "identifier", "text": "FACE_CONTROL_SET", "parent": 26, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 26}}, {"id": 28, "type": "parameter_list", "text": "()", "parent": 26, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 28}}, {"id": 29, "type": "ERROR", "text": "void Default() const", "parent": 6, "children": [30, 31], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 21}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 29, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 31, "type": "function_declarator", "text": "Default()", "parent": 29, "children": [32, 33], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 15}}, {"id": 32, "type": "identifier", "text": "Default", "parent": 31, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 13}}, {"id": 33, "type": "parameter_list", "text": "()", "parent": 31, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 15}}, {"id": 34, "type": "labeled_statement", "text": "std::cout << \"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\" << std::endl;", "parent": 6, "children": [35, 36], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 77}}, {"id": 35, "type": "statement_identifier", "text": "std", "parent": 34, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 5}}, {"id": 36, "type": "ERROR", "text": "::cout << \"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\" << std:", "parent": 34, "children": [37], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 71}}, {"id": 37, "type": "binary_expression", "text": "cout << \"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\" << std", "parent": 36, "children": [38, 42, 43], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 70}}, {"id": 38, "type": "binary_expression", "text": "cout << \"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\"", "parent": 37, "children": [39, 40, 41], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 63}}, {"id": 39, "type": "identifier", "text": "cout", "parent": 38, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 11}}, {"id": 40, "type": "<<", "text": "<<", "parent": 38, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 14}}, {"id": 41, "type": "string_literal", "text": "\"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\"", "parent": 38, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 63}}, {"id": 42, "type": "<<", "text": "<<", "parent": 37, "children": [], "start_point": {"row": 24, "column": 64}, "end_point": {"row": 24, "column": 66}}, {"id": 43, "type": "identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 24, "column": 67}, "end_point": {"row": 24, "column": 70}}, {"id": 44, "type": "identifier", "text": "endl", "parent": 34, "children": [], "start_point": {"row": 24, "column": 72}, "end_point": {"row": 24, "column": 76}}, {"id": 45, "type": "ERROR", "text": "virtual int Size() const", "parent": 6, "children": [46, 47, 49], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 25}}, {"id": 46, "type": "type_identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 8}}, {"id": 47, "type": "ERROR", "text": "int", "parent": 45, "children": [48], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 12}}, {"id": 48, "type": "identifier", "text": "int", "parent": 47, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 12}}, {"id": 49, "type": "function_declarator", "text": "Size()", "parent": 45, "children": [50, 51], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 19}}, {"id": 50, "type": "identifier", "text": "Size", "parent": 49, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 17}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 19}}, {"id": 52, "type": "call_expression", "text": "Default()", "parent": 6, "children": [53, 54], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 11}}, {"id": 53, "type": "identifier", "text": "Default", "parent": 52, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 54, "type": "argument_list", "text": "()", "parent": 52, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 11}}, {"id": 55, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [56, 57], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 10}}, {"id": 56, "type": "identifier", "text": "exit", "parent": 55, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 57, "type": "argument_list", "text": "(1)", "parent": 55, "children": [58], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 10}}, {"id": 58, "type": "number_literal", "text": "1", "parent": 57, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 9}}, {"id": 59, "type": "function_definition", "text": "virtual T operator() (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [60, 61, 63], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 37, "column": 2}}, {"id": 60, "type": "type_identifier", "text": "virtual", "parent": 59, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 8}}, {"id": 61, "type": "ERROR", "text": "T", "parent": 59, "children": [62], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 62, "type": "identifier", "text": "T", "parent": 61, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 63, "type": "function_declarator", "text": "operator() (const int control_id) const", "parent": 59, "children": [64, 67], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 50}}, {"id": 64, "type": "function_declarator", "text": "operator()", "parent": 63, "children": [65, 66], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 21}}, {"id": 65, "type": "identifier", "text": "operator", "parent": 64, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 19}}, {"id": 66, "type": "parameter_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 21}}, {"id": 67, "type": "parameter_list", "text": "(const int control_id)", "parent": 63, "children": [68], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 44}}, {"id": 68, "type": "parameter_declaration", "text": "const int control_id", "parent": 67, "children": [69, 70], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 43}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 32}}, {"id": 70, "type": "identifier", "text": "control_id", "parent": 68, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 43}}, {"id": 71, "type": "call_expression", "text": "Default()", "parent": 59, "children": [72, 73], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 11}}, {"id": 72, "type": "identifier", "text": "Default", "parent": 71, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 9}}, {"id": 73, "type": "argument_list", "text": "()", "parent": 71, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 11}}, {"id": 74, "type": "call_expression", "text": "exit (1)", "parent": 59, "children": [75, 76], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 10}}, {"id": 75, "type": "identifier", "text": "exit", "parent": 74, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 76, "type": "argument_list", "text": "(1)", "parent": 74, "children": [77], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 10}}, {"id": 77, "type": "number_literal", "text": "1", "parent": 76, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 9}}, {"id": 78, "type": "function_definition", "text": "virtual T& operator() (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [79, 80, 82], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 42, "column": 2}}, {"id": 79, "type": "type_identifier", "text": "virtual", "parent": 78, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 8}}, {"id": 80, "type": "ERROR", "text": "T&", "parent": 78, "children": [81], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 11}}, {"id": 81, "type": "identifier", "text": "T", "parent": 80, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 82, "type": "function_declarator", "text": "operator() (const int control_id)", "parent": 78, "children": [83, 86], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 45}}, {"id": 83, "type": "function_declarator", "text": "operator()", "parent": 82, "children": [84, 85], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 22}}, {"id": 84, "type": "identifier", "text": "operator", "parent": 83, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 20}}, {"id": 85, "type": "parameter_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 22}}, {"id": 86, "type": "parameter_list", "text": "(const int control_id)", "parent": 82, "children": [87], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 45}}, {"id": 87, "type": "parameter_declaration", "text": "const int control_id", "parent": 86, "children": [88, 89], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 44}}, {"id": 88, "type": "primitive_type", "text": "int", "parent": 87, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 33}}, {"id": 89, "type": "identifier", "text": "control_id", "parent": 87, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 44}}, {"id": 90, "type": "call_expression", "text": "Default()", "parent": 78, "children": [91, 92], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 11}}, {"id": 91, "type": "identifier", "text": "Default", "parent": 90, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 9}}, {"id": 92, "type": "argument_list", "text": "()", "parent": 90, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 11}}, {"id": 93, "type": "call_expression", "text": "exit (1)", "parent": 78, "children": [94, 95], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 10}}, {"id": 94, "type": "identifier", "text": "exit", "parent": 93, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 6}}, {"id": 95, "type": "argument_list", "text": "(1)", "parent": 93, "children": [96], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 10}}, {"id": 96, "type": "number_literal", "text": "1", "parent": 95, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 97, "type": "function_definition", "text": "virtual bool Control_Active (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [98, 99, 101], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 47, "column": 2}}, {"id": 98, "type": "type_identifier", "text": "virtual", "parent": 97, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 99, "type": "ERROR", "text": "bool", "parent": 97, "children": [100], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 13}}, {"id": 100, "type": "identifier", "text": "bool", "parent": 99, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 13}}, {"id": 101, "type": "function_declarator", "text": "Control_Active (const int control_id) const", "parent": 97, "children": [102, 103], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 57}}, {"id": 102, "type": "identifier", "text": "Control_Active", "parent": 101, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 28}}, {"id": 103, "type": "parameter_list", "text": "(const int control_id)", "parent": 101, "children": [104], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 51}}, {"id": 104, "type": "parameter_declaration", "text": "const int control_id", "parent": 103, "children": [105, 106], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 50}}, {"id": 105, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 39}}, {"id": 106, "type": "identifier", "text": "control_id", "parent": 104, "children": [], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 50}}, {"id": 107, "type": "call_expression", "text": "Default()", "parent": 97, "children": [108, 109], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 11}}, {"id": 108, "type": "identifier", "text": "Default", "parent": 107, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 109, "type": "argument_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 11}}, {"id": 110, "type": "call_expression", "text": "exit (1)", "parent": 97, "children": [111, 112], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 10}}, {"id": 111, "type": "identifier", "text": "exit", "parent": 110, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 112, "type": "argument_list", "text": "(1)", "parent": 110, "children": [113], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 10}}, {"id": 113, "type": "number_literal", "text": "1", "parent": 112, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 9}}, {"id": 114, "type": "function_definition", "text": "virtual bool& Control_Active (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [115, 116, 118], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 52, "column": 2}}, {"id": 115, "type": "type_identifier", "text": "virtual", "parent": 114, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 8}}, {"id": 116, "type": "ERROR", "text": "bool&", "parent": 114, "children": [117], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 14}}, {"id": 117, "type": "identifier", "text": "bool", "parent": 116, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 118, "type": "function_declarator", "text": "Control_Active (const int control_id)", "parent": 114, "children": [119, 120], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 52}}, {"id": 119, "type": "identifier", "text": "Control_Active", "parent": 118, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 29}}, {"id": 120, "type": "parameter_list", "text": "(const int control_id)", "parent": 118, "children": [121], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 52}}, {"id": 121, "type": "parameter_declaration", "text": "const int control_id", "parent": 120, "children": [122, 123], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 51}}, {"id": 122, "type": "primitive_type", "text": "int", "parent": 121, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 40}}, {"id": 123, "type": "identifier", "text": "control_id", "parent": 121, "children": [], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 51}}, {"id": 124, "type": "call_expression", "text": "Default()", "parent": 114, "children": [125, 126], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 11}}, {"id": 125, "type": "identifier", "text": "Default", "parent": 124, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 126, "type": "argument_list", "text": "()", "parent": 124, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 11}}, {"id": 127, "type": "call_expression", "text": "exit (1)", "parent": 114, "children": [128, 129], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 10}}, {"id": 128, "type": "identifier", "text": "exit", "parent": 127, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 6}}, {"id": 129, "type": "argument_list", "text": "(1)", "parent": 127, "children": [130], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 10}}, {"id": 130, "type": "number_literal", "text": "1", "parent": 129, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 9}}, {"id": 131, "type": "function_definition", "text": "virtual bool Positions_Determined_Kinematically (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [132, 133, 135], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 57, "column": 2}}, {"id": 132, "type": "type_identifier", "text": "virtual", "parent": 131, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 8}}, {"id": 133, "type": "ERROR", "text": "bool", "parent": 131, "children": [134], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 134, "type": "identifier", "text": "bool", "parent": 133, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 135, "type": "function_declarator", "text": "Positions_Determined_Kinematically (const int control_id) const", "parent": 131, "children": [136, 137], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 77}}, {"id": 136, "type": "identifier", "text": "Positions_Determined_Kinematically", "parent": 135, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 48}}, {"id": 137, "type": "parameter_list", "text": "(const int control_id)", "parent": 135, "children": [138], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 71}}, {"id": 138, "type": "parameter_declaration", "text": "const int control_id", "parent": 137, "children": [139, 140], "start_point": {"row": 53, "column": 50}, "end_point": {"row": 53, "column": 70}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 53, "column": 56}, "end_point": {"row": 53, "column": 59}}, {"id": 140, "type": "identifier", "text": "control_id", "parent": 138, "children": [], "start_point": {"row": 53, "column": 60}, "end_point": {"row": 53, "column": 70}}, {"id": 141, "type": "call_expression", "text": "Default()", "parent": 131, "children": [142, 143], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 11}}, {"id": 142, "type": "identifier", "text": "Default", "parent": 141, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 9}}, {"id": 143, "type": "argument_list", "text": "()", "parent": 141, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 11}}, {"id": 144, "type": "call_expression", "text": "exit (1)", "parent": 131, "children": [145, 146], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 10}}, {"id": 145, "type": "identifier", "text": "exit", "parent": 144, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 6}}, {"id": 146, "type": "argument_list", "text": "(1)", "parent": 144, "children": [147], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 10}}, {"id": 147, "type": "number_literal", "text": "1", "parent": 146, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 9}}, {"id": 148, "type": "declaration", "text": "virtual void", "parent": 6, "children": [149, 150], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 13}}, {"id": 149, "type": "type_identifier", "text": "virtual", "parent": 148, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 8}}, {"id": 150, "type": "identifier", "text": "void", "parent": 148, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 13}}, {"id": 151, "type": "ERROR", "text": "Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const", "parent": 6, "children": [152], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 87}}, {"id": 152, "type": "call_expression", "text": "Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id)", "parent": 151, "children": [153, 154], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 81}}, {"id": 153, "type": "identifier", "text": "Force_Derivative", "parent": 152, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 30}}, {"id": 154, "type": "argument_list", "text": "(ARRAY<VECTOR_3D<T> >& dFdl, const int control_id)", "parent": 152, "children": [155, 168, 170], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 81}}, {"id": 155, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T> >& dFdl", "parent": 154, "children": [156, 163, 164, 166], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 58}}, {"id": 156, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T", "parent": 155, "children": [157, 161, 162], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 49}}, {"id": 157, "type": "binary_expression", "text": "ARRAY<VECTOR_3D", "parent": 156, "children": [158, 159, 160], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 47}}, {"id": 158, "type": "identifier", "text": "ARRAY", "parent": 157, "children": [], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 37}}, {"id": 159, "type": "<", "text": "<", "parent": 157, "children": [], "start_point": {"row": 58, "column": 37}, "end_point": {"row": 58, "column": 38}}, {"id": 160, "type": "identifier", "text": "VECTOR_3D", "parent": 157, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 47}}, {"id": 161, "type": "<", "text": "<", "parent": 156, "children": [], "start_point": {"row": 58, "column": 47}, "end_point": {"row": 58, "column": 48}}, {"id": 162, "type": "identifier", "text": "T", "parent": 156, "children": [], "start_point": {"row": 58, "column": 48}, "end_point": {"row": 58, "column": 49}}, {"id": 163, "type": ">", "text": ">", "parent": 155, "children": [], "start_point": {"row": 58, "column": 49}, "end_point": {"row": 58, "column": 50}}, {"id": 164, "type": "ERROR", "text": ">", "parent": 155, "children": [165], "start_point": {"row": 58, "column": 51}, "end_point": {"row": 58, "column": 52}}, {"id": 165, "type": ">", "text": ">", "parent": 164, "children": [], "start_point": {"row": 58, "column": 51}, "end_point": {"row": 58, "column": 52}}, {"id": 166, "type": "pointer_expression", "text": "& dFdl", "parent": 155, "children": [167], "start_point": {"row": 58, "column": 52}, "end_point": {"row": 58, "column": 58}}, {"id": 167, "type": "identifier", "text": "dFdl", "parent": 166, "children": [], "start_point": {"row": 58, "column": 54}, "end_point": {"row": 58, "column": 58}}, {"id": 168, "type": "ERROR", "text": "const int", "parent": 154, "children": [169], "start_point": {"row": 58, "column": 60}, "end_point": {"row": 58, "column": 69}}, {"id": 169, "type": "identifier", "text": "int", "parent": 168, "children": [], "start_point": {"row": 58, "column": 66}, "end_point": {"row": 58, "column": 69}}, {"id": 170, "type": "identifier", "text": "control_id", "parent": 154, "children": [], "start_point": {"row": 58, "column": 70}, "end_point": {"row": 58, "column": 80}}, {"id": 171, "type": "call_expression", "text": "Default()", "parent": 6, "children": [172, 173], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 11}}, {"id": 172, "type": "identifier", "text": "Default", "parent": 171, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 9}}, {"id": 173, "type": "argument_list", "text": "()", "parent": 171, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 11}}, {"id": 174, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [175, 176], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 10}}, {"id": 175, "type": "identifier", "text": "exit", "parent": 174, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 176, "type": "argument_list", "text": "(1)", "parent": 174, "children": [177], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 10}}, {"id": 177, "type": "number_literal", "text": "1", "parent": 176, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 178, "type": "declaration", "text": "virtual void", "parent": 6, "children": [179, 180], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 13}}, {"id": 179, "type": "type_identifier", "text": "virtual", "parent": 178, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 8}}, {"id": 180, "type": "identifier", "text": "void", "parent": 178, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 13}}, {"id": 181, "type": "ERROR", "text": "Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const", "parent": 6, "children": [182], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 90}}, {"id": 182, "type": "call_expression", "text": "Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id)", "parent": 181, "children": [183, 184], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 84}}, {"id": 183, "type": "identifier", "text": "Position_Derivative", "parent": 182, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 33}}, {"id": 184, "type": "argument_list", "text": "(ARRAY<VECTOR_3D<T> >& dXdl, const int control_id)", "parent": 182, "children": [185, 198, 200], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 84}}, {"id": 185, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T> >& dXdl", "parent": 184, "children": [186, 193, 194, 196], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 61}}, {"id": 186, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T", "parent": 185, "children": [187, 191, 192], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 52}}, {"id": 187, "type": "binary_expression", "text": "ARRAY<VECTOR_3D", "parent": 186, "children": [188, 189, 190], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 50}}, {"id": 188, "type": "identifier", "text": "ARRAY", "parent": 187, "children": [], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 40}}, {"id": 189, "type": "<", "text": "<", "parent": 187, "children": [], "start_point": {"row": 63, "column": 40}, "end_point": {"row": 63, "column": 41}}, {"id": 190, "type": "identifier", "text": "VECTOR_3D", "parent": 187, "children": [], "start_point": {"row": 63, "column": 41}, "end_point": {"row": 63, "column": 50}}, {"id": 191, "type": "<", "text": "<", "parent": 186, "children": [], "start_point": {"row": 63, "column": 50}, "end_point": {"row": 63, "column": 51}}, {"id": 192, "type": "identifier", "text": "T", "parent": 186, "children": [], "start_point": {"row": 63, "column": 51}, "end_point": {"row": 63, "column": 52}}, {"id": 193, "type": ">", "text": ">", "parent": 185, "children": [], "start_point": {"row": 63, "column": 52}, "end_point": {"row": 63, "column": 53}}, {"id": 194, "type": "ERROR", "text": ">", "parent": 185, "children": [195], "start_point": {"row": 63, "column": 54}, "end_point": {"row": 63, "column": 55}}, {"id": 195, "type": ">", "text": ">", "parent": 194, "children": [], "start_point": {"row": 63, "column": 54}, "end_point": {"row": 63, "column": 55}}, {"id": 196, "type": "pointer_expression", "text": "& dXdl", "parent": 185, "children": [197], "start_point": {"row": 63, "column": 55}, "end_point": {"row": 63, "column": 61}}, {"id": 197, "type": "identifier", "text": "dXdl", "parent": 196, "children": [], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 61}}, {"id": 198, "type": "ERROR", "text": "const int", "parent": 184, "children": [199], "start_point": {"row": 63, "column": 63}, "end_point": {"row": 63, "column": 72}}, {"id": 199, "type": "identifier", "text": "int", "parent": 198, "children": [], "start_point": {"row": 63, "column": 69}, "end_point": {"row": 63, "column": 72}}, {"id": 200, "type": "identifier", "text": "control_id", "parent": 184, "children": [], "start_point": {"row": 63, "column": 73}, "end_point": {"row": 63, "column": 83}}, {"id": 201, "type": "call_expression", "text": "Default()", "parent": 6, "children": [202, 203], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 11}}, {"id": 202, "type": "identifier", "text": "Default", "parent": 201, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 9}}, {"id": 203, "type": "argument_list", "text": "()", "parent": 201, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 11}}, {"id": 204, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [205, 206], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 10}}, {"id": 205, "type": "identifier", "text": "exit", "parent": 204, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 6}}, {"id": 206, "type": "argument_list", "text": "(1)", "parent": 204, "children": [207], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 10}}, {"id": 207, "type": "number_literal", "text": "1", "parent": 206, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 208, "type": "declaration", "text": "virtual void", "parent": 6, "children": [209, 210], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 13}}, {"id": 209, "type": "type_identifier", "text": "virtual", "parent": 208, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 8}}, {"id": 210, "type": "identifier", "text": "void", "parent": 208, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 13}}, {"id": 211, "type": "ERROR", "text": "Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const", "parent": 6, "children": [212], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 69}}, {"id": 212, "type": "call_expression", "text": "Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X)", "parent": 211, "children": [213, 214], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 63}}, {"id": 213, "type": "identifier", "text": "Set_Attachment_Positions", "parent": 212, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 38}}, {"id": 214, "type": "argument_list", "text": "(ARRAY<VECTOR_3D<T> >&X)", "parent": 212, "children": [215], "start_point": {"row": 68, "column": 39}, "end_point": {"row": 68, "column": 63}}, {"id": 215, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T> >&X", "parent": 214, "children": [216, 223, 224, 226], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 62}}, {"id": 216, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T", "parent": 215, "children": [217, 221, 222], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 57}}, {"id": 217, "type": "binary_expression", "text": "ARRAY<VECTOR_3D", "parent": 216, "children": [218, 219, 220], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 55}}, {"id": 218, "type": "identifier", "text": "ARRAY", "parent": 217, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 45}}, {"id": 219, "type": "<", "text": "<", "parent": 217, "children": [], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 46}}, {"id": 220, "type": "identifier", "text": "VECTOR_3D", "parent": 217, "children": [], "start_point": {"row": 68, "column": 46}, "end_point": {"row": 68, "column": 55}}, {"id": 221, "type": "<", "text": "<", "parent": 216, "children": [], "start_point": {"row": 68, "column": 55}, "end_point": {"row": 68, "column": 56}}, {"id": 222, "type": "identifier", "text": "T", "parent": 216, "children": [], "start_point": {"row": 68, "column": 56}, "end_point": {"row": 68, "column": 57}}, {"id": 223, "type": ">", "text": ">", "parent": 215, "children": [], "start_point": {"row": 68, "column": 57}, "end_point": {"row": 68, "column": 58}}, {"id": 224, "type": "ERROR", "text": ">", "parent": 215, "children": [225], "start_point": {"row": 68, "column": 59}, "end_point": {"row": 68, "column": 60}}, {"id": 225, "type": ">", "text": ">", "parent": 224, "children": [], "start_point": {"row": 68, "column": 59}, "end_point": {"row": 68, "column": 60}}, {"id": 226, "type": "pointer_expression", "text": "&X", "parent": 215, "children": [227], "start_point": {"row": 68, "column": 60}, "end_point": {"row": 68, "column": 62}}, {"id": 227, "type": "identifier", "text": "X", "parent": 226, "children": [], "start_point": {"row": 68, "column": 61}, "end_point": {"row": 68, "column": 62}}, {"id": 228, "type": "call_expression", "text": "Default()", "parent": 6, "children": [229, 230], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 11}}, {"id": 229, "type": "identifier", "text": "Default", "parent": 228, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 9}}, {"id": 230, "type": "argument_list", "text": "()", "parent": 228, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 11}}, {"id": 231, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [232, 233], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 10}}, {"id": 232, "type": "identifier", "text": "exit", "parent": 231, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 6}}, {"id": 233, "type": "argument_list", "text": "(1)", "parent": 231, "children": [234], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 10}}, {"id": 234, "type": "number_literal", "text": "1", "parent": 233, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 9}}, {"id": 235, "type": "function_definition", "text": "virtual void Save_Controls()\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [236, 237, 239], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 77, "column": 2}}, {"id": 236, "type": "type_identifier", "text": "virtual", "parent": 235, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 8}}, {"id": 237, "type": "ERROR", "text": "void", "parent": 235, "children": [238], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 13}}, {"id": 238, "type": "identifier", "text": "void", "parent": 237, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 13}}, {"id": 239, "type": "function_declarator", "text": "Save_Controls()", "parent": 235, "children": [240, 241], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 29}}, {"id": 240, "type": "identifier", "text": "Save_Controls", "parent": 239, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 27}}, {"id": 241, "type": "parameter_list", "text": "()", "parent": 239, "children": [], "start_point": {"row": 73, "column": 27}, "end_point": {"row": 73, "column": 29}}, {"id": 242, "type": "call_expression", "text": "Default()", "parent": 235, "children": [243, 244], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 11}}, {"id": 243, "type": "identifier", "text": "Default", "parent": 242, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 9}}, {"id": 244, "type": "argument_list", "text": "()", "parent": 242, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 11}}, {"id": 245, "type": "call_expression", "text": "exit (1)", "parent": 235, "children": [246, 247], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 10}}, {"id": 246, "type": "identifier", "text": "exit", "parent": 245, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 247, "type": "argument_list", "text": "(1)", "parent": 245, "children": [248], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 10}}, {"id": 248, "type": "number_literal", "text": "1", "parent": 247, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 249, "type": "declaration", "text": "virtual void", "parent": 6, "children": [250, 251], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 13}}, {"id": 250, "type": "type_identifier", "text": "virtual", "parent": 249, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 8}}, {"id": 251, "type": "identifier", "text": "void", "parent": 249, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 13}}, {"id": 252, "type": "ERROR", "text": "Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const", "parent": 6, "children": [253], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 75}}, {"id": 253, "type": "call_expression", "text": "Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X)", "parent": 252, "children": [254, 255], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 69}}, {"id": 254, "type": "identifier", "text": "Kinematically_Update_Positions", "parent": 253, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 44}}, {"id": 255, "type": "argument_list", "text": "(ARRAY<VECTOR_3D<T> >&X)", "parent": 253, "children": [256], "start_point": {"row": 78, "column": 45}, "end_point": {"row": 78, "column": 69}}, {"id": 256, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T> >&X", "parent": 255, "children": [257, 264, 265, 267], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 68}}, {"id": 257, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T", "parent": 256, "children": [258, 262, 263], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 63}}, {"id": 258, "type": "binary_expression", "text": "ARRAY<VECTOR_3D", "parent": 257, "children": [259, 260, 261], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 61}}, {"id": 259, "type": "identifier", "text": "ARRAY", "parent": 258, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 51}}, {"id": 260, "type": "<", "text": "<", "parent": 258, "children": [], "start_point": {"row": 78, "column": 51}, "end_point": {"row": 78, "column": 52}}, {"id": 261, "type": "identifier", "text": "VECTOR_3D", "parent": 258, "children": [], "start_point": {"row": 78, "column": 52}, "end_point": {"row": 78, "column": 61}}, {"id": 262, "type": "<", "text": "<", "parent": 257, "children": [], "start_point": {"row": 78, "column": 61}, "end_point": {"row": 78, "column": 62}}, {"id": 263, "type": "identifier", "text": "T", "parent": 257, "children": [], "start_point": {"row": 78, "column": 62}, "end_point": {"row": 78, "column": 63}}, {"id": 264, "type": ">", "text": ">", "parent": 256, "children": [], "start_point": {"row": 78, "column": 63}, "end_point": {"row": 78, "column": 64}}, {"id": 265, "type": "ERROR", "text": ">", "parent": 256, "children": [266], "start_point": {"row": 78, "column": 65}, "end_point": {"row": 78, "column": 66}}, {"id": 266, "type": ">", "text": ">", "parent": 265, "children": [], "start_point": {"row": 78, "column": 65}, "end_point": {"row": 78, "column": 66}}, {"id": 267, "type": "pointer_expression", "text": "&X", "parent": 256, "children": [268], "start_point": {"row": 78, "column": 66}, "end_point": {"row": 78, "column": 68}}, {"id": 268, "type": "identifier", "text": "X", "parent": 267, "children": [], "start_point": {"row": 78, "column": 67}, "end_point": {"row": 78, "column": 68}}, {"id": 269, "type": "call_expression", "text": "Default()", "parent": 6, "children": [270, 271], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 11}}, {"id": 270, "type": "identifier", "text": "Default", "parent": 269, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 9}}, {"id": 271, "type": "argument_list", "text": "()", "parent": 269, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 11}}, {"id": 272, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [273, 274], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 10}}, {"id": 273, "type": "identifier", "text": "exit", "parent": 272, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 6}}, {"id": 274, "type": "argument_list", "text": "(1)", "parent": 272, "children": [275], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 10}}, {"id": 275, "type": "number_literal", "text": "1", "parent": 274, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 9}}, {"id": 276, "type": "declaration", "text": "virtual void", "parent": 6, "children": [277, 278], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 13}}, {"id": 277, "type": "type_identifier", "text": "virtual", "parent": 276, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 8}}, {"id": 278, "type": "identifier", "text": "void", "parent": 276, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 13}}, {"id": 279, "type": "ERROR", "text": "Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const", "parent": 6, "children": [280], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 75}}, {"id": 280, "type": "call_expression", "text": "Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX)", "parent": 279, "children": [281, 282], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 69}}, {"id": 281, "type": "identifier", "text": "Kinematically_Update_Jacobian", "parent": 280, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 43}}, {"id": 282, "type": "argument_list", "text": "(ARRAY<VECTOR_3D<T> >&dX)", "parent": 280, "children": [283], "start_point": {"row": 83, "column": 44}, "end_point": {"row": 83, "column": 69}}, {"id": 283, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T> >&dX", "parent": 282, "children": [284, 291, 292, 294], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 68}}, {"id": 284, "type": "binary_expression", "text": "ARRAY<VECTOR_3D<T", "parent": 283, "children": [285, 289, 290], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 62}}, {"id": 285, "type": "binary_expression", "text": "ARRAY<VECTOR_3D", "parent": 284, "children": [286, 287, 288], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 60}}, {"id": 286, "type": "identifier", "text": "ARRAY", "parent": 285, "children": [], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 50}}, {"id": 287, "type": "<", "text": "<", "parent": 285, "children": [], "start_point": {"row": 83, "column": 50}, "end_point": {"row": 83, "column": 51}}, {"id": 288, "type": "identifier", "text": "VECTOR_3D", "parent": 285, "children": [], "start_point": {"row": 83, "column": 51}, "end_point": {"row": 83, "column": 60}}, {"id": 289, "type": "<", "text": "<", "parent": 284, "children": [], "start_point": {"row": 83, "column": 60}, "end_point": {"row": 83, "column": 61}}, {"id": 290, "type": "identifier", "text": "T", "parent": 284, "children": [], "start_point": {"row": 83, "column": 61}, "end_point": {"row": 83, "column": 62}}, {"id": 291, "type": ">", "text": ">", "parent": 283, "children": [], "start_point": {"row": 83, "column": 62}, "end_point": {"row": 83, "column": 63}}, {"id": 292, "type": "ERROR", "text": ">", "parent": 283, "children": [293], "start_point": {"row": 83, "column": 64}, "end_point": {"row": 83, "column": 65}}, {"id": 293, "type": ">", "text": ">", "parent": 292, "children": [], "start_point": {"row": 83, "column": 64}, "end_point": {"row": 83, "column": 65}}, {"id": 294, "type": "pointer_expression", "text": "&dX", "parent": 283, "children": [295], "start_point": {"row": 83, "column": 65}, "end_point": {"row": 83, "column": 68}}, {"id": 295, "type": "identifier", "text": "dX", "parent": 294, "children": [], "start_point": {"row": 83, "column": 66}, "end_point": {"row": 83, "column": 68}}, {"id": 296, "type": "call_expression", "text": "Default()", "parent": 6, "children": [297, 298], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 11}}, {"id": 297, "type": "identifier", "text": "Default", "parent": 296, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 9}}, {"id": 298, "type": "argument_list", "text": "()", "parent": 296, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 11}}, {"id": 299, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [300, 301], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 10}}, {"id": 300, "type": "identifier", "text": "exit", "parent": 299, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 6}}, {"id": 301, "type": "argument_list", "text": "(1)", "parent": 299, "children": [302], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 10}}, {"id": 302, "type": "number_literal", "text": "1", "parent": 301, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 9}}, {"id": 303, "type": "ERROR", "text": "virtual T Penalty() const", "parent": 6, "children": [304, 305, 307], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 26}}, {"id": 304, "type": "type_identifier", "text": "virtual", "parent": 303, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 8}}, {"id": 305, "type": "ERROR", "text": "T", "parent": 303, "children": [306], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 10}}, {"id": 306, "type": "identifier", "text": "T", "parent": 305, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 10}}, {"id": 307, "type": "function_declarator", "text": "Penalty()", "parent": 303, "children": [308, 309], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 20}}, {"id": 308, "type": "identifier", "text": "Penalty", "parent": 307, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 18}}, {"id": 309, "type": "parameter_list", "text": "()", "parent": 307, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 20}}, {"id": 310, "type": "call_expression", "text": "Default()", "parent": 6, "children": [311, 312], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 11}}, {"id": 311, "type": "identifier", "text": "Default", "parent": 310, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 9}}, {"id": 312, "type": "argument_list", "text": "()", "parent": 310, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 11}}, {"id": 313, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [314, 315], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 10}}, {"id": 314, "type": "identifier", "text": "exit", "parent": 313, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 6}}, {"id": 315, "type": "argument_list", "text": "(1)", "parent": 313, "children": [316], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 10}}, {"id": 316, "type": "number_literal", "text": "1", "parent": 315, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 9}}, {"id": 317, "type": "function_definition", "text": "virtual T Penalty_Gradient (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [318, 319, 321], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 97, "column": 2}}, {"id": 318, "type": "type_identifier", "text": "virtual", "parent": 317, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 8}}, {"id": 319, "type": "ERROR", "text": "T", "parent": 317, "children": [320], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 10}}, {"id": 320, "type": "identifier", "text": "T", "parent": 319, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 10}}, {"id": 321, "type": "function_declarator", "text": "Penalty_Gradient (const int control_id) const", "parent": 317, "children": [322, 323], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 56}}, {"id": 322, "type": "identifier", "text": "Penalty_Gradient", "parent": 321, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 27}}, {"id": 323, "type": "parameter_list", "text": "(const int control_id)", "parent": 321, "children": [324], "start_point": {"row": 93, "column": 28}, "end_point": {"row": 93, "column": 50}}, {"id": 324, "type": "parameter_declaration", "text": "const int control_id", "parent": 323, "children": [325, 326], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 49}}, {"id": 325, "type": "primitive_type", "text": "int", "parent": 324, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 38}}, {"id": 326, "type": "identifier", "text": "control_id", "parent": 324, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 49}}, {"id": 327, "type": "call_expression", "text": "Default()", "parent": 317, "children": [328, 329], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 11}}, {"id": 328, "type": "identifier", "text": "Default", "parent": 327, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 9}}, {"id": 329, "type": "argument_list", "text": "()", "parent": 327, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 11}}, {"id": 330, "type": "call_expression", "text": "exit (1)", "parent": 317, "children": [331, 332], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 10}}, {"id": 331, "type": "identifier", "text": "exit", "parent": 330, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 6}}, {"id": 332, "type": "argument_list", "text": "(1)", "parent": 330, "children": [333], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 10}}, {"id": 333, "type": "number_literal", "text": "1", "parent": 332, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 9}}, {"id": 334, "type": "function_definition", "text": "virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [335, 336, 338], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 102, "column": 2}}, {"id": 335, "type": "type_identifier", "text": "virtual", "parent": 334, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 8}}, {"id": 336, "type": "ERROR", "text": "T", "parent": 334, "children": [337], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 337, "type": "identifier", "text": "T", "parent": 336, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 338, "type": "function_declarator", "text": "Penalty_Hessian (const int control_id1, const int control_id2) const", "parent": 334, "children": [339, 340], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 79}}, {"id": 339, "type": "identifier", "text": "Penalty_Hessian", "parent": 338, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 26}}, {"id": 340, "type": "parameter_list", "text": "(const int control_id1, const int control_id2)", "parent": 338, "children": [341, 344], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 73}}, {"id": 341, "type": "parameter_declaration", "text": "const int control_id1", "parent": 340, "children": [342, 343], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 49}}, {"id": 342, "type": "primitive_type", "text": "int", "parent": 341, "children": [], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 37}}, {"id": 343, "type": "identifier", "text": "control_id1", "parent": 341, "children": [], "start_point": {"row": 98, "column": 38}, "end_point": {"row": 98, "column": 49}}, {"id": 344, "type": "parameter_declaration", "text": "const int control_id2", "parent": 340, "children": [345, 346], "start_point": {"row": 98, "column": 51}, "end_point": {"row": 98, "column": 72}}, {"id": 345, "type": "primitive_type", "text": "int", "parent": 344, "children": [], "start_point": {"row": 98, "column": 57}, "end_point": {"row": 98, "column": 60}}, {"id": 346, "type": "identifier", "text": "control_id2", "parent": 344, "children": [], "start_point": {"row": 98, "column": 61}, "end_point": {"row": 98, "column": 72}}, {"id": 347, "type": "call_expression", "text": "Default()", "parent": 334, "children": [348, 349], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 11}}, {"id": 348, "type": "identifier", "text": "Default", "parent": 347, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 9}}, {"id": 349, "type": "argument_list", "text": "()", "parent": 347, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 11}}, {"id": 350, "type": "call_expression", "text": "exit (1)", "parent": 334, "children": [351, 352], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 10}}, {"id": 351, "type": "identifier", "text": "exit", "parent": 350, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 6}}, {"id": 352, "type": "argument_list", "text": "(1)", "parent": 350, "children": [353], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 10}}, {"id": 353, "type": "number_literal", "text": "1", "parent": 352, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 9}}, {"id": 354, "type": "ERROR", "text": "virtual void Print_Diagnostics (std::ostream& output = std::cout) const", "parent": 6, "children": [355, 356, 358, 359, 362, 367], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 72}}, {"id": 355, "type": "type_identifier", "text": "virtual", "parent": 354, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 8}}, {"id": 356, "type": "ERROR", "text": "void", "parent": 354, "children": [357], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 13}}, {"id": 357, "type": "identifier", "text": "void", "parent": 356, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 13}}, {"id": 358, "type": "identifier", "text": "Print_Diagnostics", "parent": 354, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 31}}, {"id": 359, "type": "parameter_declaration", "text": "std::ostream", "parent": 354, "children": [360, 361], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 45}}, {"id": 360, "type": "type_identifier", "text": "std", "parent": 359, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 36}}, {"id": 361, "type": "identifier", "text": "ostream", "parent": 359, "children": [], "start_point": {"row": 103, "column": 38}, "end_point": {"row": 103, "column": 45}}, {"id": 362, "type": "assignment_expression", "text": "& output = std", "parent": 354, "children": [363, 365, 366], "start_point": {"row": 103, "column": 45}, "end_point": {"row": 103, "column": 59}}, {"id": 363, "type": "pointer_expression", "text": "& output", "parent": 362, "children": [364], "start_point": {"row": 103, "column": 45}, "end_point": {"row": 103, "column": 53}}, {"id": 364, "type": "identifier", "text": "output", "parent": 363, "children": [], "start_point": {"row": 103, "column": 47}, "end_point": {"row": 103, "column": 53}}, {"id": 365, "type": "=", "text": "=", "parent": 362, "children": [], "start_point": {"row": 103, "column": 54}, "end_point": {"row": 103, "column": 55}}, {"id": 366, "type": "identifier", "text": "std", "parent": 362, "children": [], "start_point": {"row": 103, "column": 56}, "end_point": {"row": 103, "column": 59}}, {"id": 367, "type": "type_identifier", "text": "cout", "parent": 354, "children": [], "start_point": {"row": 103, "column": 61}, "end_point": {"row": 103, "column": 65}}, {"id": 368, "type": "call_expression", "text": "Default()", "parent": 6, "children": [369, 370], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 11}}, {"id": 369, "type": "identifier", "text": "Default", "parent": 368, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 9}}, {"id": 370, "type": "argument_list", "text": "()", "parent": 368, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 11}}, {"id": 371, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [372, 373], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 10}}, {"id": 372, "type": "identifier", "text": "exit", "parent": 371, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 6}}, {"id": 373, "type": "argument_list", "text": "(1)", "parent": 371, "children": [374], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 10}}, {"id": 374, "type": "number_literal", "text": "1", "parent": 373, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 9}}, {"id": 375, "type": "declaration", "text": "virtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n\t{\n\t\tDefault();", "parent": 6, "children": [376, 377, 379], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 110, "column": 12}}, {"id": 376, "type": "type_identifier", "text": "virtual", "parent": 375, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 8}}, {"id": 377, "type": "ERROR", "text": "void", "parent": 375, "children": [378], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 13}}, {"id": 378, "type": "identifier", "text": "void", "parent": 377, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 13}}, {"id": 379, "type": "init_declarator", "text": "Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n\t{\n\t\tDefault()", "parent": 375, "children": [380, 386, 387, 389], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 110, "column": 11}}, {"id": 380, "type": "function_declarator", "text": "Project_Parameters_To_Allowable_Range (const bool active_controls_only", "parent": 379, "children": [381, 382], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 84}}, {"id": 381, "type": "identifier", "text": "Project_Parameters_To_Allowable_Range", "parent": 380, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 51}}, {"id": 382, "type": "parameter_list", "text": "(const bool active_controls_only", "parent": 380, "children": [383], "start_point": {"row": 108, "column": 52}, "end_point": {"row": 108, "column": 84}}, {"id": 383, "type": "parameter_declaration", "text": "const bool active_controls_only", "parent": 382, "children": [384, 385], "start_point": {"row": 108, "column": 53}, "end_point": {"row": 108, "column": 84}}, {"id": 384, "type": "primitive_type", "text": "bool", "parent": 383, "children": [], "start_point": {"row": 108, "column": 59}, "end_point": {"row": 108, "column": 63}}, {"id": 385, "type": "identifier", "text": "active_controls_only", "parent": 383, "children": [], "start_point": {"row": 108, "column": 64}, "end_point": {"row": 108, "column": 84}}, {"id": 386, "type": "=", "text": "=", "parent": 379, "children": [], "start_point": {"row": 108, "column": 85}, "end_point": {"row": 108, "column": 86}}, {"id": 387, "type": "ERROR", "text": "false)", "parent": 379, "children": [388], "start_point": {"row": 108, "column": 87}, "end_point": {"row": 108, "column": 93}}, {"id": 388, "type": "false", "text": "false", "parent": 387, "children": [], "start_point": {"row": 108, "column": 87}, "end_point": {"row": 108, "column": 92}}, {"id": 389, "type": "initializer_list", "text": "{\n\t\tDefault()", "parent": 379, "children": [390], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 110, "column": 11}}, {"id": 390, "type": "call_expression", "text": "Default()", "parent": 389, "children": [391, 392], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 11}}, {"id": 391, "type": "identifier", "text": "Default", "parent": 390, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 9}}, {"id": 392, "type": "argument_list", "text": "()", "parent": 390, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 11}}, {"id": 393, "type": "call_expression", "text": "exit (1)", "parent": 6, "children": [394, 395], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 10}}, {"id": 394, "type": "identifier", "text": "exit", "parent": 393, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 6}}, {"id": 395, "type": "argument_list", "text": "(1)", "parent": 393, "children": [396], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 10}}, {"id": 396, "type": "number_literal", "text": "1", "parent": 395, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 9}}, {"id": 397, "type": "function_definition", "text": "virtual void Interpolate (const T interpolation_fraction)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}", "parent": 6, "children": [398, 399, 401], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 117, "column": 2}}, {"id": 398, "type": "type_identifier", "text": "virtual", "parent": 397, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 8}}, {"id": 399, "type": "ERROR", "text": "void", "parent": 397, "children": [400], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 13}}, {"id": 400, "type": "identifier", "text": "void", "parent": 399, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 13}}, {"id": 401, "type": "function_declarator", "text": "Interpolate (const T interpolation_fraction)", "parent": 397, "children": [402, 403], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 58}}, {"id": 402, "type": "identifier", "text": "Interpolate", "parent": 401, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 25}}, {"id": 403, "type": "parameter_list", "text": "(const T interpolation_fraction)", "parent": 401, "children": [404], "start_point": {"row": 113, "column": 26}, "end_point": {"row": 113, "column": 58}}, {"id": 404, "type": "parameter_declaration", "text": "const T interpolation_fraction", "parent": 403, "children": [405, 406], "start_point": {"row": 113, "column": 27}, "end_point": {"row": 113, "column": 57}}, {"id": 405, "type": "type_identifier", "text": "T", "parent": 404, "children": [], "start_point": {"row": 113, "column": 33}, "end_point": {"row": 113, "column": 34}}, {"id": 406, "type": "identifier", "text": "interpolation_fraction", "parent": 404, "children": [], "start_point": {"row": 113, "column": 35}, "end_point": {"row": 113, "column": 57}}, {"id": 407, "type": "call_expression", "text": "Default()", "parent": 397, "children": [408, 409], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 11}}, {"id": 408, "type": "identifier", "text": "Default", "parent": 407, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 9}}, {"id": 409, "type": "argument_list", "text": "()", "parent": 407, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 11}}, {"id": 410, "type": "call_expression", "text": "exit (1)", "parent": 397, "children": [411, 412], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 10}}, {"id": 411, "type": "identifier", "text": "exit", "parent": 410, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 6}}, {"id": 412, "type": "argument_list", "text": "(1)", "parent": 410, "children": [413], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 10}}, {"id": 413, "type": "number_literal", "text": "1", "parent": 412, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 9}}, {"id": 414, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6, 22, 26, 31, 49, 59, 63, 64, 78, 82, 83, 97, 101, 114, 118, 131, 135, 235, 239, 307, 317, 321, 334, 338, 380, 397, 401], "variables": [68, 87, 104, 121, 138, 148, 178, 208, 249, 276, 324, 341, 344, 359, 375, 383, 404], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 11, 19, 37, 38, 52, 55, 71, 74, 90, 93, 107, 110, 124, 127, 141, 144, 152, 155, 156, 157, 166, 171, 174, 182, 185, 186, 187, 196, 201, 204, 212, 215, 216, 217, 226, 228, 231, 242, 245, 253, 256, 257, 258, 267, 269, 272, 280, 283, 284, 285, 294, 296, 299, 310, 313, 327, 330, 347, 350, 363, 368, 371, 390, 393, 407, 410], "assignments": [362], "loops": [], "conditionals": [0, 1, 2, 5, 7, 8, 12, 15, 17, 20, 23, 27, 32, 35, 39, 43, 44, 46, 48, 50, 53, 56, 60, 62, 65, 70, 72, 75, 79, 81, 84, 89, 91, 94, 98, 100, 102, 106, 108, 111, 115, 117, 119, 123, 125, 128, 132, 134, 136, 140, 142, 145, 149, 150, 153, 158, 160, 162, 167, 169, 170, 172, 175, 179, 180, 183, 188, 190, 192, 197, 199, 200, 202, 205, 209, 210, 213, 218, 220, 222, 227, 229, 232, 236, 238, 240, 243, 246, 250, 251, 254, 259, 261, 263, 268, 270, 273, 277, 278, 281, 286, 288, 290, 295, 297, 300, 304, 306, 308, 311, 314, 318, 320, 322, 326, 328, 331, 335, 337, 339, 343, 346, 348, 351, 355, 357, 358, 360, 361, 364, 366, 367, 369, 372, 376, 378, 381, 385, 391, 394, 398, 400, 402, 405, 406, 408, 411, 414], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [41, 58, 77, 96, 113, 130, 147, 177, 207, 234, 248, 275, 302, 316, 333, 353, 374, 396, 413], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "FACE_CONTROL_SET", "text_snippet": "namespace PhysBAM\n{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n\tFACE_CONTROL_SET()\n\t{}\n\n\t"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~FACE_CONTROL_SET()\n\t{}"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "FACE_CONTROL_SET()"}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "Default()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "Size()"}, {"node_id": 59, "universal_type": "function", "name": "control_id)", "text_snippet": "virtual T operator() (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}"}, {"node_id": 63, "universal_type": "function", "name": "control_id)", "text_snippet": "operator() (const int control_id) const"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "operator()"}, {"node_id": 78, "universal_type": "function", "name": "control_id)", "text_snippet": "virtual T& operator() (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}"}, {"node_id": 82, "universal_type": "function", "name": "control_id)", "text_snippet": "operator() (const int control_id)"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "operator()"}, {"node_id": 97, "universal_type": "function", "name": "Control_Active", "text_snippet": "virtual bool Control_Active (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}"}, {"node_id": 101, "universal_type": "function", "name": "control_id)", "text_snippet": "Control_Active (const int control_id) const"}, {"node_id": 114, "universal_type": "function", "name": "control_id)", "text_snippet": "virtual bool& Control_Active (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}"}, {"node_id": 118, "universal_type": "function", "name": "control_id)", "text_snippet": "Control_Active (const int control_id)"}, {"node_id": 131, "universal_type": "function", "name": "Positions_Determined_Kinematically", "text_snippet": "virtual bool Positions_Determined_Kinematically (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit "}, {"node_id": 135, "universal_type": "function", "name": "control_id)", "text_snippet": "Positions_Determined_Kinematically (const int control_id) const"}, {"node_id": 235, "universal_type": "function", "name": "Save_Controls", "text_snippet": "virtual void Save_Controls()\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "Save_Controls()"}, {"node_id": 307, "universal_type": "function", "name": "unknown", "text_snippet": "Penalty()"}, {"node_id": 317, "universal_type": "function", "name": "control_id)", "text_snippet": "virtual T Penalty_Gradient (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}"}, {"node_id": 321, "universal_type": "function", "name": "control_id)", "text_snippet": "Penalty_Gradient (const int control_id) const"}, {"node_id": 334, "universal_type": "function", "name": "control_id1,", "text_snippet": "virtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n\t{\n\t\tDefault();\n\t\texi"}, {"node_id": 338, "universal_type": "function", "name": "control_id1,", "text_snippet": "Penalty_Hessian (const int control_id1, const int control_id2) const"}, {"node_id": 380, "universal_type": "function", "name": "active_controls_only", "text_snippet": "Project_Parameters_To_Allowable_Range (const bool active_controls_only"}, {"node_id": 397, "universal_type": "function", "name": "Interpolate", "text_snippet": "virtual void Interpolate (const T interpolation_fraction)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}"}, {"node_id": 401, "universal_type": "function", "name": "unknown", "text_snippet": "Interpolate (const T interpolation_fraction)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//#####################################################################\n// Copyright 2004-2005, <NAME>, <NAME>.\n// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.\n//#####################################################################\n// Class FACE_CONTROL_SET\n//#####################################################################\n#ifndef __FACE_CONTROL_SET__\n#define __FACE_CONTROL_SET__\nnamespace PhysBAM\n{\n\ntemplate <class T>\nclass FACE_CONTROL_SET\n{\npublic:\n\n\tFACE_CONTROL_SET()\n\t{}\n\n\tvirtual ~FACE_CONTROL_SET()\n\t{}\n\n\tvoid Default() const\n\t{\n\t\tstd::cout << \"THIS FACE_CONTROL_SET FUNCTION IS NOT DEFINED!\" << std::endl;\n\t}\n\n//#####################################################################\n\tvirtual int Size() const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T operator() (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T& operator() (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool Control_Active (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool& Control_Active (const int control_id)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual bool Positions_Determined_Kinematically (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Force_Derivative (ARRAY<VECTOR_3D<T> >& dFdl, const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Position_Derivative (ARRAY<VECTOR_3D<T> >& dXdl, const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Set_Attachment_Positions (ARRAY<VECTOR_3D<T> >&X) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Save_Controls()\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Kinematically_Update_Positions (ARRAY<VECTOR_3D<T> >&X) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Kinematically_Update_Jacobian (ARRAY<VECTOR_3D<T> >&dX) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty() const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty_Gradient (const int control_id) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual T Penalty_Hessian (const int control_id1, const int control_id2) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Print_Diagnostics (std::ostream& output = std::cout) const\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Project_Parameters_To_Allowable_Range (const bool active_controls_only = false)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n\tvirtual void Interpolate (const T interpolation_fraction)\n\t{\n\t\tDefault();\n\t\texit (1);\n\t}\n//#####################################################################\n};\n}\n#endif\n"}
80,424
c
/*++ Copyright (c) 1985 - 1999, Microsoft Corporation Module Name: tmode.c Abstract: Console input and output mode test program Author: <NAME> (thereses) 4-Oct-1991 Revision History: --*/ #include "precomp.h" #pragma hdrstop #pragma hdrstop #define UNPROCESSED_LENGTH 7 #define PROCESSED_LENGTH 6 CHAR UnprocessedString[UNPROCESSED_LENGTH] = "a\tbcd\b\r"; CHAR ProcessedString[PROCESSED_LENGTH] = "a\tbc\r\n"; DWORD main(VOID) { BOOL Success; DWORD OldInputMode,OldOutputMode; DWORD NewInputMode,NewOutputMode; CHAR buff[512]; DWORD n; // // test input and output modes // // Input Mode flags: // // ENABLE_PROCESSED_INPUT 0x0001 // ENABLE_LINE_INPUT 0x0002 // ENABLE_ECHO_INPUT 0x0004 // ENABLE_WINDOW_INPUT 0x0008 // ENABLE_MOUSE_INPUT 0x0010 // // Output Mode flags: // // ENABLE_PROCESSED_OUTPUT 0x0001 // ENABLE_WRAP_AT_EOL_OUTPUT 0x0002 // NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT; Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &OldInputMode ); if (OldInputMode & NewInputMode != NewInputMode) { DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode); SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode); } NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT; Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &OldOutputMode ); if (OldOutputMode & NewOutputMode != NewOutputMode) { DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode); SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode); } // // mode set: // // ENABLE_PROCESSED_INPUT - backspace, tab, cr, lf, ctrl-z // ENABLE_LINE_INPUT - wait for linefeed // ENABLE_ECHO_INPUT // ENABLE_PROCESSED_OUTPUT - backspace, tab, cr, lf, bell // DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); DbgPrint("type aTabbcdBackspaceCr\n"); DbgPrint("a bc should be output string\n"); Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); if (!Success) { DbgPrint("ReadFile returned error %d\n",GetLastError()); return 1; } if (n != PROCESSED_LENGTH) { DbgPrint("n is %d\n",n); } if (strncmp(ProcessedString,buff,n)) { DbgPrint("strncmp failed\n"); DbgPrint("ProcessedString contains %s\n",ProcessedString); DbgPrint("buff contains %s\n",buff); DbgBreakPoint(); } // // mode set: // // ENABLE_PROCESSED_INPUT // ENABLE_LINE_INPUT // ENABLE_ECHO_INPUT DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); DbgPrint("output mode is 0\n"); SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT); DbgPrint("type aTabbcdBackspaceCr\n"); DbgPrint("a0x90x8bc0xd0xa should be output string\n"); Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); if (!Success) { DbgPrint("ReadFile returned error %d\n",GetLastError()); return 1; } if (n != PROCESSED_LENGTH) { DbgPrint("n is %d\n",n); } if (strncmp(ProcessedString,buff,n)) { DbgPrint("strncmp failed\n"); DbgPrint("ProcessedString contains %s\n",ProcessedString); DbgPrint("buff contains %s\n",buff); DbgBreakPoint(); } // // mode set: // // ENABLE_LINE_INPUT // ENABLE_ECHO_INPUT // ENABLE_PROCESSED_OUTPUT DbgPrint("input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT); SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT); DbgPrint("type aTabbcdBackspaceCr\n"); DbgPrint("a bc should be output string\n"); Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); if (!Success) { DbgPrint("ReadFile returned error %d\n",GetLastError()); return 1; } if (n != UNPROCESSED_LENGTH) { DbgPrint("n is %d\n",n); } if (strncmp(UnprocessedString,buff,n)) { DbgPrint("strncmp failed\n"); DbgPrint("UnprocessedString contains %s\n",ProcessedString); DbgPrint("buff contains %s\n",buff); DbgBreakPoint(); } // // mode set: // // ENABLE_PROCESSED_INPUT // ENABLE_PROCESSED_OUTPUT // DbgPrint("input mode is ENABLE_PROCESSED_INPUT\n"); DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT); DbgPrint("type aTabbcdBackspaceCr\n"); DbgPrint("no string should be output\n"); Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); if (!Success) { DbgPrint("ReadFile returned error %d\n",GetLastError()); return 1; } { DWORD i=0; DWORD j; while (Success) { DbgPrint("n is %d\n",n); for (j=0;j<n;j++,i++) { if (UnprocessedString[i] != buff[j]) { DbgPrint("strncmp failed\n"); DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); DbgPrint("buff[j] is %c\n",buff[j]); DbgBreakPoint(); } } Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); if (!Success) { DbgPrint("ReadFile returned error %d\n",GetLastError()); return 1; } } } SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode); SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode); }
30.64
196
(translation_unit) "/*++ \n \nCopyright (c) 1985 - 1999, Microsoft Corporation \n \nModule Name: \n \n tmode.c \n \nAbstract: \n \n Console input and output mode test program \n \nAuthor: \n \n <NAME> (thereses) 4-Oct-1991 \n \nRevision History: \n \n--*/ \n#include "precomp.h" \n#pragma hdrstop \n#pragma hdrstop \n \n#define UNPROCESSED_LENGTH 7 \n#define PROCESSED_LENGTH 6 \nCHAR UnprocessedString[UNPROCESSED_LENGTH] = "a\tbcd\b\r"; \nCHAR ProcessedString[PROCESSED_LENGTH] = "a\tbc\r\n"; \nDWORD \nmain(VOID) \n{ \n BOOL Success; \n DWORD OldInputMode,OldOutputMode; \n DWORD NewInputMode,NewOutputMode; \n CHAR buff[512]; \n DWORD n; \n \n // \n // test input and output modes \n // \n // Input Mode flags: \n // \n // ENABLE_PROCESSED_INPUT 0x0001 \n // ENABLE_LINE_INPUT 0x0002 \n // ENABLE_ECHO_INPUT 0x0004 \n // ENABLE_WINDOW_INPUT 0x0008 \n // ENABLE_MOUSE_INPUT 0x0010 \n // \n // Output Mode flags: \n // \n // ENABLE_PROCESSED_OUTPUT 0x0001 \n // ENABLE_WRAP_AT_EOL_OUTPUT 0x0002 \n // \n \n NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT; \n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldInputMode \n ); \n if (OldInputMode & NewInputMode != NewInputMode) { \n DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode); \n } \n \n NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT; \n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldOutputMode \n ); \n if (OldOutputMode & NewOutputMode != NewOutputMode) { \n DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT - backspace, tab, cr, lf, ctrl-z \n // ENABLE_LINE_INPUT - wait for linefeed \n // ENABLE_ECHO_INPUT \n // ENABLE_PROCESSED_OUTPUT - backspace, tab, cr, lf, bell \n // \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a bc should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT \n // ENABLE_LINE_INPUT \n // ENABLE_ECHO_INPUT \n \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is 0\n"); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a0x90x8bc0xd0xa should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_LINE_INPUT \n // ENABLE_ECHO_INPUT \n // ENABLE_PROCESSED_OUTPUT \n \n DbgPrint("input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a bc should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != UNPROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(UnprocessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT \n // ENABLE_PROCESSED_OUTPUT \n // \n \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("no string should be output\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n { DWORD i=0; \n DWORD j; \n while (Success) { \n DbgPrint("n is %d\n",n); \n for (j=0;j<n;j++,i++) { \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n } \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n } \n } \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode); \n} \n" (comment) "/*++ \n \nCopyright (c) 1985 - 1999, Microsoft Corporation \n \nModule Name: \n \n tmode.c \n \nAbstract: \n \n Console input and output mode test program \n \nAuthor: \n \n <NAME> (thereses) 4-Oct-1991 \n \nRevision History: \n \n--*/" (preproc_include) "#include "precomp.h" \n" (#include) "#include" (string_literal) ""precomp.h"" (") """ (string_content) "precomp.h" (") """ (preproc_call) "#pragma hdrstop \n" (preproc_directive) "#pragma" (preproc_arg) "hdrstop " (preproc_call) "#pragma hdrstop \n" (preproc_directive) "#pragma" (preproc_arg) "hdrstop " (preproc_def) "#define UNPROCESSED_LENGTH 7 \n" (#define) "#define" (identifier) "UNPROCESSED_LENGTH" (preproc_arg) "7 " (preproc_def) "#define PROCESSED_LENGTH 6 \n" (#define) "#define" (identifier) "PROCESSED_LENGTH" (preproc_arg) "6 " (declaration) "CHAR UnprocessedString[UNPROCESSED_LENGTH] = "a\tbcd\b\r";" (type_identifier) "CHAR" (init_declarator) "UnprocessedString[UNPROCESSED_LENGTH] = "a\tbcd\b\r"" (array_declarator) "UnprocessedString[UNPROCESSED_LENGTH]" (identifier) "UnprocessedString" ([) "[" (identifier) "UNPROCESSED_LENGTH" (]) "]" (=) "=" (string_literal) ""a\tbcd\b\r"" (") """ (string_content) "a" (escape_sequence) "\t" (string_content) "bcd" (escape_sequence) "\b" (escape_sequence) "\r" (") """ (;) ";" (declaration) "CHAR ProcessedString[PROCESSED_LENGTH] = "a\tbc\r\n";" (type_identifier) "CHAR" (init_declarator) "ProcessedString[PROCESSED_LENGTH] = "a\tbc\r\n"" (array_declarator) "ProcessedString[PROCESSED_LENGTH]" (identifier) "ProcessedString" ([) "[" (identifier) "PROCESSED_LENGTH" (]) "]" (=) "=" (string_literal) ""a\tbc\r\n"" (") """ (string_content) "a" (escape_sequence) "\t" (string_content) "bc" (escape_sequence) "\r" (escape_sequence) "\n" (") """ (;) ";" (function_definition) "DWORD \nmain(VOID) \n{ \n BOOL Success; \n DWORD OldInputMode,OldOutputMode; \n DWORD NewInputMode,NewOutputMode; \n CHAR buff[512]; \n DWORD n; \n \n // \n // test input and output modes \n // \n // Input Mode flags: \n // \n // ENABLE_PROCESSED_INPUT 0x0001 \n // ENABLE_LINE_INPUT 0x0002 \n // ENABLE_ECHO_INPUT 0x0004 \n // ENABLE_WINDOW_INPUT 0x0008 \n // ENABLE_MOUSE_INPUT 0x0010 \n // \n // Output Mode flags: \n // \n // ENABLE_PROCESSED_OUTPUT 0x0001 \n // ENABLE_WRAP_AT_EOL_OUTPUT 0x0002 \n // \n \n NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT; \n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldInputMode \n ); \n if (OldInputMode & NewInputMode != NewInputMode) { \n DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode); \n } \n \n NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT; \n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldOutputMode \n ); \n if (OldOutputMode & NewOutputMode != NewOutputMode) { \n DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT - backspace, tab, cr, lf, ctrl-z \n // ENABLE_LINE_INPUT - wait for linefeed \n // ENABLE_ECHO_INPUT \n // ENABLE_PROCESSED_OUTPUT - backspace, tab, cr, lf, bell \n // \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a bc should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT \n // ENABLE_LINE_INPUT \n // ENABLE_ECHO_INPUT \n \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is 0\n"); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a0x90x8bc0xd0xa should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_LINE_INPUT \n // ENABLE_ECHO_INPUT \n // ENABLE_PROCESSED_OUTPUT \n \n DbgPrint("input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a bc should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != UNPROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(UnprocessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT \n // ENABLE_PROCESSED_OUTPUT \n // \n \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("no string should be output\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n { DWORD i=0; \n DWORD j; \n while (Success) { \n DbgPrint("n is %d\n",n); \n for (j=0;j<n;j++,i++) { \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n } \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n } \n } \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode); \n}" (type_identifier) "DWORD" (function_declarator) "main(VOID)" (identifier) "main" (parameter_list) "(VOID)" (() "(" (parameter_declaration) "VOID" (type_identifier) "VOID" ()) ")" (compound_statement) "{ \n BOOL Success; \n DWORD OldInputMode,OldOutputMode; \n DWORD NewInputMode,NewOutputMode; \n CHAR buff[512]; \n DWORD n; \n \n // \n // test input and output modes \n // \n // Input Mode flags: \n // \n // ENABLE_PROCESSED_INPUT 0x0001 \n // ENABLE_LINE_INPUT 0x0002 \n // ENABLE_ECHO_INPUT 0x0004 \n // ENABLE_WINDOW_INPUT 0x0008 \n // ENABLE_MOUSE_INPUT 0x0010 \n // \n // Output Mode flags: \n // \n // ENABLE_PROCESSED_OUTPUT 0x0001 \n // ENABLE_WRAP_AT_EOL_OUTPUT 0x0002 \n // \n \n NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT; \n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldInputMode \n ); \n if (OldInputMode & NewInputMode != NewInputMode) { \n DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode); \n } \n \n NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT; \n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldOutputMode \n ); \n if (OldOutputMode & NewOutputMode != NewOutputMode) { \n DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT - backspace, tab, cr, lf, ctrl-z \n // ENABLE_LINE_INPUT - wait for linefeed \n // ENABLE_ECHO_INPUT \n // ENABLE_PROCESSED_OUTPUT - backspace, tab, cr, lf, bell \n // \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a bc should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT \n // ENABLE_LINE_INPUT \n // ENABLE_ECHO_INPUT \n \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is 0\n"); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a0x90x8bc0xd0xa should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_LINE_INPUT \n // ENABLE_ECHO_INPUT \n // ENABLE_PROCESSED_OUTPUT \n \n DbgPrint("input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("a bc should be output string\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n if (n != UNPROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n } \n if (strncmp(UnprocessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n } \n \n // \n // mode set: \n // \n // ENABLE_PROCESSED_INPUT \n // ENABLE_PROCESSED_OUTPUT \n // \n \n DbgPrint("input mode is ENABLE_PROCESSED_INPUT\n"); \n DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n"); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT); \n DbgPrint("type aTabbcdBackspaceCr\n"); \n DbgPrint("no string should be output\n"); \n \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n { DWORD i=0; \n DWORD j; \n while (Success) { \n DbgPrint("n is %d\n",n); \n for (j=0;j<n;j++,i++) { \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n } \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n } \n } \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode); \n}" ({) "{" (declaration) "BOOL Success;" (type_identifier) "BOOL" (identifier) "Success" (;) ";" (declaration) "DWORD OldInputMode,OldOutputMode;" (type_identifier) "DWORD" (identifier) "OldInputMode" (,) "," (identifier) "OldOutputMode" (;) ";" (declaration) "DWORD NewInputMode,NewOutputMode;" (type_identifier) "DWORD" (identifier) "NewInputMode" (,) "," (identifier) "NewOutputMode" (;) ";" (declaration) "CHAR buff[512];" (type_identifier) "CHAR" (array_declarator) "buff[512]" (identifier) "buff" ([) "[" (number_literal) "512" (]) "]" (;) ";" (declaration) "DWORD n;" (type_identifier) "DWORD" (identifier) "n" (;) ";" (comment) "// " (comment) "// test input and output modes " (comment) "// " (comment) "// Input Mode flags: " (comment) "// " (comment) "// ENABLE_PROCESSED_INPUT 0x0001 " (comment) "// ENABLE_LINE_INPUT 0x0002 " (comment) "// ENABLE_ECHO_INPUT 0x0004 " (comment) "// ENABLE_WINDOW_INPUT 0x0008 " (comment) "// ENABLE_MOUSE_INPUT 0x0010 " (comment) "// " (comment) "// Output Mode flags: " (comment) "// " (comment) "// ENABLE_PROCESSED_OUTPUT 0x0001 " (comment) "// ENABLE_WRAP_AT_EOL_OUTPUT 0x0002 " (comment) "// " (expression_statement) "NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT;" (assignment_expression) "NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT" (identifier) "NewInputMode" (=) "=" (binary_expression) "ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT" (binary_expression) "ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT" (identifier) "ENABLE_PROCESSED_INPUT" (|) "|" (identifier) "ENABLE_LINE_INPUT" (|) "|" (identifier) "ENABLE_ECHO_INPUT" (;) ";" (expression_statement) "Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldInputMode \n );" (assignment_expression) "Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldInputMode \n )" (identifier) "Success" (=) "=" (call_expression) "GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldInputMode \n )" (identifier) "GetConsoleMode" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE), \n &OldInputMode \n )" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (pointer_expression) "&OldInputMode" (&) "&" (identifier) "OldInputMode" ()) ")" (;) ";" (if_statement) "if (OldInputMode & NewInputMode != NewInputMode) { \n DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode); \n }" (if) "if" (parenthesized_expression) "(OldInputMode & NewInputMode != NewInputMode)" (() "(" (binary_expression) "OldInputMode & NewInputMode != NewInputMode" (identifier) "OldInputMode" (&) "&" (binary_expression) "NewInputMode != NewInputMode" (identifier) "NewInputMode" (!=) "!=" (identifier) "NewInputMode" ()) ")" (compound_statement) "{ \n DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode); \n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode); \n }" ({) "{" (expression_statement) "DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode);" (call_expression) "DbgPrint("ERROR: OldInputMode is %x\n",OldInputMode)" (identifier) "DbgPrint" (argument_list) "("ERROR: OldInputMode is %x\n",OldInputMode)" (() "(" (string_literal) ""ERROR: OldInputMode is %x\n"" (") """ (string_content) "ERROR: OldInputMode is %x" (escape_sequence) "\n" (") """ (,) "," (identifier) "OldInputMode" ()) ")" (;) ";" (expression_statement) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode);" (call_expression) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),NewInputMode)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "NewInputMode" ()) ")" (;) ";" (}) "}" (expression_statement) "NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT;" (assignment_expression) "NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT" (identifier) "NewOutputMode" (=) "=" (binary_expression) "ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT" (identifier) "ENABLE_PROCESSED_OUTPUT" (|) "|" (identifier) "ENABLE_WRAP_AT_EOL_OUTPUT" (;) ";" (expression_statement) "Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldOutputMode \n );" (assignment_expression) "Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldOutputMode \n )" (identifier) "Success" (=) "=" (call_expression) "GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), \n &OldOutputMode \n )" (identifier) "GetConsoleMode" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE), \n &OldOutputMode \n )" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (pointer_expression) "&OldOutputMode" (&) "&" (identifier) "OldOutputMode" ()) ")" (;) ";" (if_statement) "if (OldOutputMode & NewOutputMode != NewOutputMode) { \n DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode); \n }" (if) "if" (parenthesized_expression) "(OldOutputMode & NewOutputMode != NewOutputMode)" (() "(" (binary_expression) "OldOutputMode & NewOutputMode != NewOutputMode" (identifier) "OldOutputMode" (&) "&" (binary_expression) "NewOutputMode != NewOutputMode" (identifier) "NewOutputMode" (!=) "!=" (identifier) "NewOutputMode" ()) ")" (compound_statement) "{ \n DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode); \n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode); \n }" ({) "{" (expression_statement) "DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode);" (call_expression) "DbgPrint("ERROR: OldOutputMode is %x\n",OldOutputMode)" (identifier) "DbgPrint" (argument_list) "("ERROR: OldOutputMode is %x\n",OldOutputMode)" (() "(" (string_literal) ""ERROR: OldOutputMode is %x\n"" (") """ (string_content) "ERROR: OldOutputMode is %x" (escape_sequence) "\n" (") """ (,) "," (identifier) "OldOutputMode" ()) ")" (;) ";" (expression_statement) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode);" (call_expression) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode)" (() "(" (call_expression) "GetStdHandle(STD_OUTPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_OUTPUT_HANDLE)" (() "(" (identifier) "STD_OUTPUT_HANDLE" ()) ")" (,) "," (identifier) "NewOutputMode" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// mode set: " (comment) "// " (comment) "// ENABLE_PROCESSED_INPUT - backspace, tab, cr, lf, ctrl-z " (comment) "// ENABLE_LINE_INPUT - wait for linefeed " (comment) "// ENABLE_ECHO_INPUT " (comment) "// ENABLE_PROCESSED_OUTPUT - backspace, tab, cr, lf, bell " (comment) "// " (expression_statement) "DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n");" (call_expression) "DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n")" (identifier) "DbgPrint" (argument_list) "("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n")" (() "(" (string_literal) ""input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"" (") """ (string_content) "input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n");" (call_expression) "DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n")" (identifier) "DbgPrint" (argument_list) "("output mode is ENABLE_PROCESSED_OUTPUT\n")" (() "(" (string_literal) ""output mode is ENABLE_PROCESSED_OUTPUT\n"" (") """ (string_content) "output mode is ENABLE_PROCESSED_OUTPUT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("type aTabbcdBackspaceCr\n");" (call_expression) "DbgPrint("type aTabbcdBackspaceCr\n")" (identifier) "DbgPrint" (argument_list) "("type aTabbcdBackspaceCr\n")" (() "(" (string_literal) ""type aTabbcdBackspaceCr\n"" (") """ (string_content) "type aTabbcdBackspaceCr" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("a bc should be output string\n");" (call_expression) "DbgPrint("a bc should be output string\n")" (identifier) "DbgPrint" (argument_list) "("a bc should be output string\n")" (() "(" (string_literal) ""a bc should be output string\n"" (") """ (string_content) "a bc should be output string" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);" (assignment_expression) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "Success" (=) "=" (call_expression) "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "ReadFile" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "buff" (,) "," (number_literal) "512" (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" (if) "if" (parenthesized_expression) "(!Success)" (() "(" (unary_expression) "!Success" (!) "!" (identifier) "Success" ()) ")" (compound_statement) "{ \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" ({) "{" (expression_statement) "DbgPrint("ReadFile returned error %d\n",GetLastError());" (call_expression) "DbgPrint("ReadFile returned error %d\n",GetLastError())" (identifier) "DbgPrint" (argument_list) "("ReadFile returned error %d\n",GetLastError())" (() "(" (string_literal) ""ReadFile returned error %d\n"" (") """ (string_content) "ReadFile returned error %d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "GetLastError()" (identifier) "GetLastError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n }" (if) "if" (parenthesized_expression) "(n != PROCESSED_LENGTH)" (() "(" (binary_expression) "n != PROCESSED_LENGTH" (identifier) "n" (!=) "!=" (identifier) "PROCESSED_LENGTH" ()) ")" (compound_statement) "{ \n DbgPrint("n is %d\n",n); \n }" ({) "{" (expression_statement) "DbgPrint("n is %d\n",n);" (call_expression) "DbgPrint("n is %d\n",n)" (identifier) "DbgPrint" (argument_list) "("n is %d\n",n)" (() "(" (string_literal) ""n is %d\n"" (") """ (string_content) "n is %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "n" ()) ")" (;) ";" (}) "}" (if_statement) "if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n }" (if) "if" (parenthesized_expression) "(strncmp(ProcessedString,buff,n))" (() "(" (call_expression) "strncmp(ProcessedString,buff,n)" (identifier) "strncmp" (argument_list) "(ProcessedString,buff,n)" (() "(" (identifier) "ProcessedString" (,) "," (identifier) "buff" (,) "," (identifier) "n" ()) ")" ()) ")" (compound_statement) "{ \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n }" ({) "{" (expression_statement) "DbgPrint("strncmp failed\n");" (call_expression) "DbgPrint("strncmp failed\n")" (identifier) "DbgPrint" (argument_list) "("strncmp failed\n")" (() "(" (string_literal) ""strncmp failed\n"" (") """ (string_content) "strncmp failed" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("ProcessedString contains %s\n",ProcessedString);" (call_expression) "DbgPrint("ProcessedString contains %s\n",ProcessedString)" (identifier) "DbgPrint" (argument_list) "("ProcessedString contains %s\n",ProcessedString)" (() "(" (string_literal) ""ProcessedString contains %s\n"" (") """ (string_content) "ProcessedString contains %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "ProcessedString" ()) ")" (;) ";" (expression_statement) "DbgPrint("buff contains %s\n",buff);" (call_expression) "DbgPrint("buff contains %s\n",buff)" (identifier) "DbgPrint" (argument_list) "("buff contains %s\n",buff)" (() "(" (string_literal) ""buff contains %s\n"" (") """ (string_content) "buff contains %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "buff" ()) ")" (;) ";" (expression_statement) "DbgBreakPoint();" (call_expression) "DbgBreakPoint()" (identifier) "DbgBreakPoint" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// mode set: " (comment) "// " (comment) "// ENABLE_PROCESSED_INPUT " (comment) "// ENABLE_LINE_INPUT " (comment) "// ENABLE_ECHO_INPUT " (expression_statement) "DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n");" (call_expression) "DbgPrint("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n")" (identifier) "DbgPrint" (argument_list) "("input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n")" (() "(" (string_literal) ""input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"" (") """ (string_content) "input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("output mode is 0\n");" (call_expression) "DbgPrint("output mode is 0\n")" (identifier) "DbgPrint" (argument_list) "("output mode is 0\n")" (() "(" (string_literal) ""output mode is 0\n"" (") """ (string_content) "output mode is 0" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT);" (call_expression) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT)" (() "(" (call_expression) "GetStdHandle(STD_OUTPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_OUTPUT_HANDLE)" (() "(" (identifier) "STD_OUTPUT_HANDLE" ()) ")" (,) "," (identifier) "ENABLE_WRAP_AT_EOL_OUTPUT" ()) ")" (;) ";" (expression_statement) "DbgPrint("type aTabbcdBackspaceCr\n");" (call_expression) "DbgPrint("type aTabbcdBackspaceCr\n")" (identifier) "DbgPrint" (argument_list) "("type aTabbcdBackspaceCr\n")" (() "(" (string_literal) ""type aTabbcdBackspaceCr\n"" (") """ (string_content) "type aTabbcdBackspaceCr" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("a0x90x8bc0xd0xa should be output string\n");" (call_expression) "DbgPrint("a0x90x8bc0xd0xa should be output string\n")" (identifier) "DbgPrint" (argument_list) "("a0x90x8bc0xd0xa should be output string\n")" (() "(" (string_literal) ""a0x90x8bc0xd0xa should be output string\n"" (") """ (string_content) "a0x90x8bc0xd0xa should be output string" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);" (assignment_expression) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "Success" (=) "=" (call_expression) "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "ReadFile" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "buff" (,) "," (number_literal) "512" (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" (if) "if" (parenthesized_expression) "(!Success)" (() "(" (unary_expression) "!Success" (!) "!" (identifier) "Success" ()) ")" (compound_statement) "{ \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" ({) "{" (expression_statement) "DbgPrint("ReadFile returned error %d\n",GetLastError());" (call_expression) "DbgPrint("ReadFile returned error %d\n",GetLastError())" (identifier) "DbgPrint" (argument_list) "("ReadFile returned error %d\n",GetLastError())" (() "(" (string_literal) ""ReadFile returned error %d\n"" (") """ (string_content) "ReadFile returned error %d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "GetLastError()" (identifier) "GetLastError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if (n != PROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n }" (if) "if" (parenthesized_expression) "(n != PROCESSED_LENGTH)" (() "(" (binary_expression) "n != PROCESSED_LENGTH" (identifier) "n" (!=) "!=" (identifier) "PROCESSED_LENGTH" ()) ")" (compound_statement) "{ \n DbgPrint("n is %d\n",n); \n }" ({) "{" (expression_statement) "DbgPrint("n is %d\n",n);" (call_expression) "DbgPrint("n is %d\n",n)" (identifier) "DbgPrint" (argument_list) "("n is %d\n",n)" (() "(" (string_literal) ""n is %d\n"" (") """ (string_content) "n is %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "n" ()) ")" (;) ";" (}) "}" (if_statement) "if (strncmp(ProcessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n }" (if) "if" (parenthesized_expression) "(strncmp(ProcessedString,buff,n))" (() "(" (call_expression) "strncmp(ProcessedString,buff,n)" (identifier) "strncmp" (argument_list) "(ProcessedString,buff,n)" (() "(" (identifier) "ProcessedString" (,) "," (identifier) "buff" (,) "," (identifier) "n" ()) ")" ()) ")" (compound_statement) "{ \n DbgPrint("strncmp failed\n"); \n DbgPrint("ProcessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n }" ({) "{" (expression_statement) "DbgPrint("strncmp failed\n");" (call_expression) "DbgPrint("strncmp failed\n")" (identifier) "DbgPrint" (argument_list) "("strncmp failed\n")" (() "(" (string_literal) ""strncmp failed\n"" (") """ (string_content) "strncmp failed" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("ProcessedString contains %s\n",ProcessedString);" (call_expression) "DbgPrint("ProcessedString contains %s\n",ProcessedString)" (identifier) "DbgPrint" (argument_list) "("ProcessedString contains %s\n",ProcessedString)" (() "(" (string_literal) ""ProcessedString contains %s\n"" (") """ (string_content) "ProcessedString contains %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "ProcessedString" ()) ")" (;) ";" (expression_statement) "DbgPrint("buff contains %s\n",buff);" (call_expression) "DbgPrint("buff contains %s\n",buff)" (identifier) "DbgPrint" (argument_list) "("buff contains %s\n",buff)" (() "(" (string_literal) ""buff contains %s\n"" (") """ (string_content) "buff contains %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "buff" ()) ")" (;) ";" (expression_statement) "DbgBreakPoint();" (call_expression) "DbgBreakPoint()" (identifier) "DbgBreakPoint" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// mode set: " (comment) "// " (comment) "// ENABLE_LINE_INPUT " (comment) "// ENABLE_ECHO_INPUT " (comment) "// ENABLE_PROCESSED_OUTPUT " (expression_statement) "DbgPrint("input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n");" (call_expression) "DbgPrint("input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n")" (identifier) "DbgPrint" (argument_list) "("input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n")" (() "(" (string_literal) ""input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\n"" (") """ (string_content) "input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n");" (call_expression) "DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n")" (identifier) "DbgPrint" (argument_list) "("output mode is ENABLE_PROCESSED_OUTPUT\n")" (() "(" (string_literal) ""output mode is ENABLE_PROCESSED_OUTPUT\n"" (") """ (string_content) "output mode is ENABLE_PROCESSED_OUTPUT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);" (call_expression) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (binary_expression) "ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT" (identifier) "ENABLE_LINE_INPUT" (|) "|" (identifier) "ENABLE_ECHO_INPUT" ()) ")" (;) ";" (expression_statement) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT);" (call_expression) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT)" (() "(" (call_expression) "GetStdHandle(STD_OUTPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_OUTPUT_HANDLE)" (() "(" (identifier) "STD_OUTPUT_HANDLE" ()) ")" (,) "," (binary_expression) "ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT" (identifier) "ENABLE_PROCESSED_OUTPUT" (|) "|" (identifier) "ENABLE_WRAP_AT_EOL_OUTPUT" ()) ")" (;) ";" (expression_statement) "DbgPrint("type aTabbcdBackspaceCr\n");" (call_expression) "DbgPrint("type aTabbcdBackspaceCr\n")" (identifier) "DbgPrint" (argument_list) "("type aTabbcdBackspaceCr\n")" (() "(" (string_literal) ""type aTabbcdBackspaceCr\n"" (") """ (string_content) "type aTabbcdBackspaceCr" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("a bc should be output string\n");" (call_expression) "DbgPrint("a bc should be output string\n")" (identifier) "DbgPrint" (argument_list) "("a bc should be output string\n")" (() "(" (string_literal) ""a bc should be output string\n"" (") """ (string_content) "a bc should be output string" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);" (assignment_expression) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "Success" (=) "=" (call_expression) "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "ReadFile" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "buff" (,) "," (number_literal) "512" (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" (if) "if" (parenthesized_expression) "(!Success)" (() "(" (unary_expression) "!Success" (!) "!" (identifier) "Success" ()) ")" (compound_statement) "{ \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" ({) "{" (expression_statement) "DbgPrint("ReadFile returned error %d\n",GetLastError());" (call_expression) "DbgPrint("ReadFile returned error %d\n",GetLastError())" (identifier) "DbgPrint" (argument_list) "("ReadFile returned error %d\n",GetLastError())" (() "(" (string_literal) ""ReadFile returned error %d\n"" (") """ (string_content) "ReadFile returned error %d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "GetLastError()" (identifier) "GetLastError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if (n != UNPROCESSED_LENGTH) { \n DbgPrint("n is %d\n",n); \n }" (if) "if" (parenthesized_expression) "(n != UNPROCESSED_LENGTH)" (() "(" (binary_expression) "n != UNPROCESSED_LENGTH" (identifier) "n" (!=) "!=" (identifier) "UNPROCESSED_LENGTH" ()) ")" (compound_statement) "{ \n DbgPrint("n is %d\n",n); \n }" ({) "{" (expression_statement) "DbgPrint("n is %d\n",n);" (call_expression) "DbgPrint("n is %d\n",n)" (identifier) "DbgPrint" (argument_list) "("n is %d\n",n)" (() "(" (string_literal) ""n is %d\n"" (") """ (string_content) "n is %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "n" ()) ")" (;) ";" (}) "}" (if_statement) "if (strncmp(UnprocessedString,buff,n)) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n }" (if) "if" (parenthesized_expression) "(strncmp(UnprocessedString,buff,n))" (() "(" (call_expression) "strncmp(UnprocessedString,buff,n)" (identifier) "strncmp" (argument_list) "(UnprocessedString,buff,n)" (() "(" (identifier) "UnprocessedString" (,) "," (identifier) "buff" (,) "," (identifier) "n" ()) ")" ()) ")" (compound_statement) "{ \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString contains %s\n",ProcessedString); \n DbgPrint("buff contains %s\n",buff); \n DbgBreakPoint(); \n }" ({) "{" (expression_statement) "DbgPrint("strncmp failed\n");" (call_expression) "DbgPrint("strncmp failed\n")" (identifier) "DbgPrint" (argument_list) "("strncmp failed\n")" (() "(" (string_literal) ""strncmp failed\n"" (") """ (string_content) "strncmp failed" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("UnprocessedString contains %s\n",ProcessedString);" (call_expression) "DbgPrint("UnprocessedString contains %s\n",ProcessedString)" (identifier) "DbgPrint" (argument_list) "("UnprocessedString contains %s\n",ProcessedString)" (() "(" (string_literal) ""UnprocessedString contains %s\n"" (") """ (string_content) "UnprocessedString contains %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "ProcessedString" ()) ")" (;) ";" (expression_statement) "DbgPrint("buff contains %s\n",buff);" (call_expression) "DbgPrint("buff contains %s\n",buff)" (identifier) "DbgPrint" (argument_list) "("buff contains %s\n",buff)" (() "(" (string_literal) ""buff contains %s\n"" (") """ (string_content) "buff contains %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "buff" ()) ")" (;) ";" (expression_statement) "DbgBreakPoint();" (call_expression) "DbgBreakPoint()" (identifier) "DbgBreakPoint" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// mode set: " (comment) "// " (comment) "// ENABLE_PROCESSED_INPUT " (comment) "// ENABLE_PROCESSED_OUTPUT " (comment) "// " (expression_statement) "DbgPrint("input mode is ENABLE_PROCESSED_INPUT\n");" (call_expression) "DbgPrint("input mode is ENABLE_PROCESSED_INPUT\n")" (identifier) "DbgPrint" (argument_list) "("input mode is ENABLE_PROCESSED_INPUT\n")" (() "(" (string_literal) ""input mode is ENABLE_PROCESSED_INPUT\n"" (") """ (string_content) "input mode is ENABLE_PROCESSED_INPUT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n");" (call_expression) "DbgPrint("output mode is ENABLE_PROCESSED_OUTPUT\n")" (identifier) "DbgPrint" (argument_list) "("output mode is ENABLE_PROCESSED_OUTPUT\n")" (() "(" (string_literal) ""output mode is ENABLE_PROCESSED_OUTPUT\n"" (") """ (string_content) "output mode is ENABLE_PROCESSED_OUTPUT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT);" (call_expression) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "ENABLE_PROCESSED_INPUT" ()) ")" (;) ";" (expression_statement) "DbgPrint("type aTabbcdBackspaceCr\n");" (call_expression) "DbgPrint("type aTabbcdBackspaceCr\n")" (identifier) "DbgPrint" (argument_list) "("type aTabbcdBackspaceCr\n")" (() "(" (string_literal) ""type aTabbcdBackspaceCr\n"" (") """ (string_content) "type aTabbcdBackspaceCr" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("no string should be output\n");" (call_expression) "DbgPrint("no string should be output\n")" (identifier) "DbgPrint" (argument_list) "("no string should be output\n")" (() "(" (string_literal) ""no string should be output\n"" (") """ (string_content) "no string should be output" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);" (assignment_expression) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "Success" (=) "=" (call_expression) "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "ReadFile" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "buff" (,) "," (number_literal) "512" (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" (if) "if" (parenthesized_expression) "(!Success)" (() "(" (unary_expression) "!Success" (!) "!" (identifier) "Success" ()) ")" (compound_statement) "{ \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" ({) "{" (expression_statement) "DbgPrint("ReadFile returned error %d\n",GetLastError());" (call_expression) "DbgPrint("ReadFile returned error %d\n",GetLastError())" (identifier) "DbgPrint" (argument_list) "("ReadFile returned error %d\n",GetLastError())" (() "(" (string_literal) ""ReadFile returned error %d\n"" (") """ (string_content) "ReadFile returned error %d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "GetLastError()" (identifier) "GetLastError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (compound_statement) "{ DWORD i=0; \n DWORD j; \n while (Success) { \n DbgPrint("n is %d\n",n); \n for (j=0;j<n;j++,i++) { \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n } \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n } \n }" ({) "{" (declaration) "DWORD i=0;" (type_identifier) "DWORD" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (declaration) "DWORD j;" (type_identifier) "DWORD" (identifier) "j" (;) ";" (while_statement) "while (Success) { \n DbgPrint("n is %d\n",n); \n for (j=0;j<n;j++,i++) { \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n } \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n }" (while) "while" (parenthesized_expression) "(Success)" (() "(" (identifier) "Success" ()) ")" (compound_statement) "{ \n DbgPrint("n is %d\n",n); \n for (j=0;j<n;j++,i++) { \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n } \n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL); \n if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n } \n }" ({) "{" (expression_statement) "DbgPrint("n is %d\n",n);" (call_expression) "DbgPrint("n is %d\n",n)" (identifier) "DbgPrint" (argument_list) "("n is %d\n",n)" (() "(" (string_literal) ""n is %d\n"" (") """ (string_content) "n is %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "n" ()) ")" (;) ";" (for_statement) "for (j=0;j<n;j++,i++) { \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n }" (for) "for" (() "(" (assignment_expression) "j=0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j<n" (identifier) "j" (<) "<" (identifier) "n" (;) ";" (comma_expression) "j++,i++" (update_expression) "j++" (identifier) "j" (++) "++" (,) "," (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{ \n if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n } \n }" ({) "{" (if_statement) "if (UnprocessedString[i] != buff[j]) { \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n }" (if) "if" (parenthesized_expression) "(UnprocessedString[i] != buff[j])" (() "(" (binary_expression) "UnprocessedString[i] != buff[j]" (subscript_expression) "UnprocessedString[i]" (identifier) "UnprocessedString" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (subscript_expression) "buff[j]" (identifier) "buff" ([) "[" (identifier) "j" (]) "]" ()) ")" (compound_statement) "{ \n DbgPrint("strncmp failed\n"); \n DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]); \n DbgPrint("buff[j] is %c\n",buff[j]); \n DbgBreakPoint(); \n }" ({) "{" (expression_statement) "DbgPrint("strncmp failed\n");" (call_expression) "DbgPrint("strncmp failed\n")" (identifier) "DbgPrint" (argument_list) "("strncmp failed\n")" (() "(" (string_literal) ""strncmp failed\n"" (") """ (string_content) "strncmp failed" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i]);" (call_expression) "DbgPrint("UnprocessedString[i] is %c\n",UnprocessedString[i])" (identifier) "DbgPrint" (argument_list) "("UnprocessedString[i] is %c\n",UnprocessedString[i])" (() "(" (string_literal) ""UnprocessedString[i] is %c\n"" (") """ (string_content) "UnprocessedString[i] is %c" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "UnprocessedString[i]" (identifier) "UnprocessedString" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "DbgPrint("buff[j] is %c\n",buff[j]);" (call_expression) "DbgPrint("buff[j] is %c\n",buff[j])" (identifier) "DbgPrint" (argument_list) "("buff[j] is %c\n",buff[j])" (() "(" (string_literal) ""buff[j] is %c\n"" (") """ (string_content) "buff[j] is %c" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "buff[j]" (identifier) "buff" ([) "[" (identifier) "j" (]) "]" ()) ")" (;) ";" (expression_statement) "DbgBreakPoint();" (call_expression) "DbgBreakPoint()" (identifier) "DbgBreakPoint" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);" (assignment_expression) "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "Success" (=) "=" (call_expression) "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (identifier) "ReadFile" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "buff" (,) "," (number_literal) "512" (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if (!Success) { \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" (if) "if" (parenthesized_expression) "(!Success)" (() "(" (unary_expression) "!Success" (!) "!" (identifier) "Success" ()) ")" (compound_statement) "{ \n DbgPrint("ReadFile returned error %d\n",GetLastError()); \n return 1; \n }" ({) "{" (expression_statement) "DbgPrint("ReadFile returned error %d\n",GetLastError());" (call_expression) "DbgPrint("ReadFile returned error %d\n",GetLastError())" (identifier) "DbgPrint" (argument_list) "("ReadFile returned error %d\n",GetLastError())" (() "(" (string_literal) ""ReadFile returned error %d\n"" (") """ (string_content) "ReadFile returned error %d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "GetLastError()" (identifier) "GetLastError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode);" (call_expression) "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_INPUT_HANDLE),OldInputMode)" (() "(" (call_expression) "GetStdHandle(STD_INPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_INPUT_HANDLE)" (() "(" (identifier) "STD_INPUT_HANDLE" ()) ")" (,) "," (identifier) "OldInputMode" ()) ")" (;) ";" (expression_statement) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode);" (call_expression) "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode)" (identifier) "SetConsoleMode" (argument_list) "(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode)" (() "(" (call_expression) "GetStdHandle(STD_OUTPUT_HANDLE)" (identifier) "GetStdHandle" (argument_list) "(STD_OUTPUT_HANDLE)" (() "(" (identifier) "STD_OUTPUT_HANDLE" ()) ")" (,) "," (identifier) "OldOutputMode" ()) ")" (;) ";" (}) "}"
1,287
0
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 30.64, "nodes": 622, "errors": 0, "source_hash": "148ee0056b23d7c111279a6a9fe5ed37603d813e7756af53b6bba760f73bc0fd", "categorized_nodes": 442}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"precomp.h\"\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"precomp.h\"", "parent": 0, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 20}}, {"id": 3, "type": "preproc_call", "text": "#pragma hdrstop\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#pragma", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "hdrstop\r", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 6, "type": "preproc_call", "text": "#pragma hdrstop\r\n", "parent": null, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#pragma", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "hdrstop\r", "parent": 6, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 16}}, {"id": 9, "type": "preproc_def", "text": "#define UNPROCESSED_LENGTH 7\r\n", "parent": null, "children": [10, 11, 12], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 11, "type": "identifier", "text": "UNPROCESSED_LENGTH", "parent": 9, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 26}}, {"id": 12, "type": "preproc_arg", "text": "7\r", "parent": 9, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 29}}, {"id": 13, "type": "preproc_def", "text": "#define PROCESSED_LENGTH 6\r\n", "parent": null, "children": [14, 15, 16], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 15, "type": "identifier", "text": "PROCESSED_LENGTH", "parent": 13, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 24}}, {"id": 16, "type": "preproc_arg", "text": "6\r", "parent": 13, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 27}}, {"id": 17, "type": "declaration", "text": "CHAR UnprocessedString[UNPROCESSED_LENGTH] = \"a\\tbcd\\b\\r\";", "parent": null, "children": [18, 19], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 58}}, {"id": 18, "type": "type_identifier", "text": "CHAR", "parent": 17, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 19, "type": "init_declarator", "text": "UnprocessedString[UNPROCESSED_LENGTH] = \"a\\tbcd\\b\\r\"", "parent": 17, "children": [20, 23, 24], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 57}}, {"id": 20, "type": "array_declarator", "text": "UnprocessedString[UNPROCESSED_LENGTH]", "parent": 19, "children": [21, 22], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 42}}, {"id": 21, "type": "identifier", "text": "UnprocessedString", "parent": 20, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 22}}, {"id": 22, "type": "identifier", "text": "UNPROCESSED_LENGTH", "parent": 20, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 41}}, {"id": 23, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 44}}, {"id": 24, "type": "string_literal", "text": "\"a\\tbcd\\b\\r\"", "parent": 19, "children": [25, 26, 27], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 57}}, {"id": 25, "type": "escape_sequence", "text": "\\t", "parent": 24, "children": [], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 49}}, {"id": 26, "type": "escape_sequence", "text": "\\b", "parent": 24, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 54}}, {"id": 27, "type": "escape_sequence", "text": "\\r", "parent": 24, "children": [], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 25, "column": 56}}, {"id": 28, "type": "declaration", "text": "CHAR ProcessedString[PROCESSED_LENGTH] = \"a\\tbc\\r\\n\";", "parent": null, "children": [29, 30], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 53}}, {"id": 29, "type": "type_identifier", "text": "CHAR", "parent": 28, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 30, "type": "init_declarator", "text": "ProcessedString[PROCESSED_LENGTH] = \"a\\tbc\\r\\n\"", "parent": 28, "children": [31, 34, 35], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 52}}, {"id": 31, "type": "array_declarator", "text": "ProcessedString[PROCESSED_LENGTH]", "parent": 30, "children": [32, 33], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 38}}, {"id": 32, "type": "identifier", "text": "ProcessedString", "parent": 31, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 20}}, {"id": 33, "type": "identifier", "text": "PROCESSED_LENGTH", "parent": 31, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 37}}, {"id": 34, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 40}}, {"id": 35, "type": "string_literal", "text": "\"a\\tbc\\r\\n\"", "parent": 30, "children": [36, 37, 38], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 52}}, {"id": 36, "type": "escape_sequence", "text": "\\t", "parent": 35, "children": [], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 45}}, {"id": 37, "type": "escape_sequence", "text": "\\r", "parent": 35, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 49}}, {"id": 38, "type": "escape_sequence", "text": "\\n", "parent": 35, "children": [], "start_point": {"row": 26, "column": 49}, "end_point": {"row": 26, "column": 51}}, {"id": 39, "type": "function_definition", "text": "DWORD\r\nmain(VOID)\r\n{\r\n BOOL Success;\r\n DWORD OldInputMode,OldOutputMode;\r\n DWORD NewInputMode,NewOutputMode;\r\n CHAR buff[512];\r\n DWORD n;\r\n\r\n //\r\n // test input and output modes\r\n //\r\n // Input Mode flags:\r\n //\r\n // ENABLE_PROCESSED_INPUT 0x0001\r\n // ENABLE_LINE_INPUT 0x0002\r\n // ENABLE_ECHO_INPUT 0x0004\r\n // ENABLE_WINDOW_INPUT 0x0008\r\n // ENABLE_MOUSE_INPUT 0x0010\r\n //\r\n // Output Mode flags:\r\n //\r\n // ENABLE_PROCESSED_OUTPUT 0x0001\r\n // ENABLE_WRAP_AT_EOL_OUTPUT 0x0002\r\n //\r\n\r\n NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT;\r\n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldInputMode\r\n );\r\n if (OldInputMode & NewInputMode != NewInputMode) {\r\n DbgPrint(\"ERROR: OldInputMode is %x\\n\",OldInputMode);\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode);\r\n }\r\n\r\n NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT;\r\n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldOutputMode\r\n );\r\n if (OldOutputMode & NewOutputMode != NewOutputMode) {\r\n DbgPrint(\"ERROR: OldOutputMode is %x\\n\",OldOutputMode);\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode);\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_PROCESSED_INPUT - backspace, tab, cr, lf, ctrl-z\r\n // ENABLE_LINE_INPUT - wait for linefeed\r\n // ENABLE_ECHO_INPUT\r\n // ENABLE_PROCESSED_OUTPUT - backspace, tab, cr, lf, bell\r\n //\r\n DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\");\r\n DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\");\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"a bc should be output string\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n if (n != PROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }\r\n if (strncmp(ProcessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_PROCESSED_INPUT\r\n // ENABLE_LINE_INPUT\r\n // ENABLE_ECHO_INPUT\r\n\r\n DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\");\r\n DbgPrint(\"output mode is 0\\n\");\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT);\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"a0x90x8bc0xd0xa should be output string\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n if (n != PROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }\r\n if (strncmp(ProcessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_LINE_INPUT\r\n // ENABLE_ECHO_INPUT\r\n // ENABLE_PROCESSED_OUTPUT\r\n\r\n DbgPrint(\"input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\");\r\n DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\");\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT);\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"a bc should be output string\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n if (n != UNPROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }\r\n if (strncmp(UnprocessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_PROCESSED_INPUT\r\n // ENABLE_PROCESSED_OUTPUT\r\n //\r\n\r\n DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT\\n\");\r\n DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\");\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT);\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"no string should be output\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n { DWORD i=0;\r\n DWORD j;\r\n while (Success) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n for (j=0;j<n;j++,i++) {\r\n if (UnprocessedString[i] != buff[j]) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString[i] is %c\\n\",UnprocessedString[i]);\r\n DbgPrint(\"buff[j] is %c\\n\",buff[j]);\r\n DbgBreakPoint();\r\n }\r\n }\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n }\r\n }\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode);\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode);\r\n}", "parent": null, "children": [40, 41], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 195, "column": 1}}, {"id": 40, "type": "type_identifier", "text": "DWORD", "parent": 39, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 5}}, {"id": 41, "type": "function_declarator", "text": "main(VOID)", "parent": 39, "children": [42, 43], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 10}}, {"id": 42, "type": "identifier", "text": "main", "parent": 41, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 4}}, {"id": 43, "type": "parameter_list", "text": "(VOID)", "parent": 41, "children": [44], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 44, "type": "parameter_declaration", "text": "VOID", "parent": 43, "children": [45], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 9}}, {"id": 45, "type": "type_identifier", "text": "VOID", "parent": 44, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 9}}, {"id": 46, "type": "declaration", "text": "BOOL Success;", "parent": 39, "children": [47, 48], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 17}}, {"id": 47, "type": "type_identifier", "text": "BOOL", "parent": 46, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 8}}, {"id": 48, "type": "identifier", "text": "Success", "parent": 46, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 16}}, {"id": 49, "type": "declaration", "text": "DWORD OldInputMode,OldOutputMode;", "parent": 39, "children": [50, 51, 52], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 37}}, {"id": 50, "type": "type_identifier", "text": "DWORD", "parent": 49, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 9}}, {"id": 51, "type": "identifier", "text": "OldInputMode", "parent": 49, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 22}}, {"id": 52, "type": "identifier", "text": "OldOutputMode", "parent": 49, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 36}}, {"id": 53, "type": "declaration", "text": "DWORD NewInputMode,NewOutputMode;", "parent": 39, "children": [54, 55, 56], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 37}}, {"id": 54, "type": "type_identifier", "text": "DWORD", "parent": 53, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 9}}, {"id": 55, "type": "identifier", "text": "NewInputMode", "parent": 53, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 22}}, {"id": 56, "type": "identifier", "text": "NewOutputMode", "parent": 53, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 36}}, {"id": 57, "type": "declaration", "text": "CHAR buff[512];", "parent": 39, "children": [58, 59], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 19}}, {"id": 58, "type": "type_identifier", "text": "CHAR", "parent": 57, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 59, "type": "array_declarator", "text": "buff[512]", "parent": 57, "children": [60, 61], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 18}}, {"id": 60, "type": "identifier", "text": "buff", "parent": 59, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 13}}, {"id": 61, "type": "number_literal", "text": "512", "parent": 59, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 17}}, {"id": 62, "type": "declaration", "text": "DWORD n;", "parent": 39, "children": [63, 64], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 12}}, {"id": 63, "type": "type_identifier", "text": "DWORD", "parent": 62, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 9}}, {"id": 64, "type": "identifier", "text": "n", "parent": 62, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 11}}, {"id": 65, "type": "assignment_expression", "text": "NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT", "parent": 39, "children": [66, 67, 68], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 81}}, {"id": 66, "type": "identifier", "text": "NewInputMode", "parent": 65, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 16}}, {"id": 67, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 68, "type": "binary_expression", "text": "ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT", "parent": 65, "children": [69, 72], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 81}}, {"id": 69, "type": "binary_expression", "text": "ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT", "parent": 68, "children": [70, 71], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 61}}, {"id": 70, "type": "identifier", "text": "ENABLE_PROCESSED_INPUT", "parent": 69, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 41}}, {"id": 71, "type": "identifier", "text": "ENABLE_LINE_INPUT", "parent": 69, "children": [], "start_point": {"row": 53, "column": 44}, "end_point": {"row": 53, "column": 61}}, {"id": 72, "type": "identifier", "text": "ENABLE_ECHO_INPUT", "parent": 68, "children": [], "start_point": {"row": 53, "column": 64}, "end_point": {"row": 53, "column": 81}}, {"id": 73, "type": "assignment_expression", "text": "Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldInputMode\r\n )", "parent": 39, "children": [74, 75, 76], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 56, "column": 29}}, {"id": 74, "type": "identifier", "text": "Success", "parent": 73, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 11}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 76, "type": "call_expression", "text": "GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldInputMode\r\n )", "parent": 73, "children": [77, 78], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 56, "column": 29}}, {"id": 77, "type": "identifier", "text": "GetConsoleMode", "parent": 76, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 28}}, {"id": 78, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldInputMode\r\n )", "parent": 76, "children": [79, 83], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 56, "column": 29}}, {"id": 79, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 78, "children": [80, 81], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 59}}, {"id": 80, "type": "identifier", "text": "GetStdHandle", "parent": 79, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 41}}, {"id": 81, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 79, "children": [82], "start_point": {"row": 54, "column": 41}, "end_point": {"row": 54, "column": 59}}, {"id": 82, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 81, "children": [], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 58}}, {"id": 83, "type": "pointer_expression", "text": "&OldInputMode", "parent": 78, "children": [84], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 42}}, {"id": 84, "type": "identifier", "text": "OldInputMode", "parent": 83, "children": [], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 42}}, {"id": 85, "type": "if_statement", "text": "if (OldInputMode & NewInputMode != NewInputMode) {\r\n DbgPrint(\"ERROR: OldInputMode is %x\\n\",OldInputMode);\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode);\r\n }", "parent": 39, "children": [86], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 86, "type": "parenthesized_expression", "text": "(OldInputMode & NewInputMode != NewInputMode)", "parent": 85, "children": [87], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 52}}, {"id": 87, "type": "binary_expression", "text": "OldInputMode & NewInputMode != NewInputMode", "parent": 86, "children": [88, 89], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 51}}, {"id": 88, "type": "identifier", "text": "OldInputMode", "parent": 87, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 20}}, {"id": 89, "type": "binary_expression", "text": "NewInputMode != NewInputMode", "parent": 87, "children": [90, 91, 92], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 51}}, {"id": 90, "type": "identifier", "text": "NewInputMode", "parent": 89, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 35}}, {"id": 91, "type": "!=", "text": "!=", "parent": 89, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 38}}, {"id": 92, "type": "identifier", "text": "NewInputMode", "parent": 89, "children": [], "start_point": {"row": 57, "column": 39}, "end_point": {"row": 57, "column": 51}}, {"id": 93, "type": "call_expression", "text": "DbgPrint(\"ERROR: OldInputMode is %x\\n\",OldInputMode)", "parent": 85, "children": [94, 95], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 60}}, {"id": 94, "type": "identifier", "text": "DbgPrint", "parent": 93, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 16}}, {"id": 95, "type": "argument_list", "text": "(\"ERROR: OldInputMode is %x\\n\",OldInputMode)", "parent": 93, "children": [96, 98], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 60}}, {"id": 96, "type": "string_literal", "text": "\"ERROR: OldInputMode is %x\\n\"", "parent": 95, "children": [97], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 46}}, {"id": 97, "type": "escape_sequence", "text": "\\n", "parent": 96, "children": [], "start_point": {"row": 58, "column": 43}, "end_point": {"row": 58, "column": 45}}, {"id": 98, "type": "identifier", "text": "OldInputMode", "parent": 95, "children": [], "start_point": {"row": 58, "column": 47}, "end_point": {"row": 58, "column": 59}}, {"id": 99, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode)", "parent": 85, "children": [100, 101], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 67}}, {"id": 100, "type": "identifier", "text": "SetConsoleMode", "parent": 99, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 22}}, {"id": 101, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),NewInputMode)", "parent": 99, "children": [102, 106], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 67}}, {"id": 102, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 101, "children": [103, 104], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 53}}, {"id": 103, "type": "identifier", "text": "GetStdHandle", "parent": 102, "children": [], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 35}}, {"id": 104, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 102, "children": [105], "start_point": {"row": 59, "column": 35}, "end_point": {"row": 59, "column": 53}}, {"id": 105, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 104, "children": [], "start_point": {"row": 59, "column": 36}, "end_point": {"row": 59, "column": 52}}, {"id": 106, "type": "identifier", "text": "NewInputMode", "parent": 101, "children": [], "start_point": {"row": 59, "column": 54}, "end_point": {"row": 59, "column": 66}}, {"id": 107, "type": "assignment_expression", "text": "NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT", "parent": 39, "children": [108, 109, 110], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 71}}, {"id": 108, "type": "identifier", "text": "NewOutputMode", "parent": 107, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 17}}, {"id": 109, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 19}}, {"id": 110, "type": "binary_expression", "text": "ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT", "parent": 107, "children": [111, 112], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 71}}, {"id": 111, "type": "identifier", "text": "ENABLE_PROCESSED_OUTPUT", "parent": 110, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 43}}, {"id": 112, "type": "identifier", "text": "ENABLE_WRAP_AT_EOL_OUTPUT", "parent": 110, "children": [], "start_point": {"row": 62, "column": 46}, "end_point": {"row": 62, "column": 71}}, {"id": 113, "type": "assignment_expression", "text": "Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldOutputMode\r\n )", "parent": 39, "children": [114, 115, 116], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 65, "column": 29}}, {"id": 114, "type": "identifier", "text": "Success", "parent": 113, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 11}}, {"id": 115, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 13}}, {"id": 116, "type": "call_expression", "text": "GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldOutputMode\r\n )", "parent": 113, "children": [117, 118], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 65, "column": 29}}, {"id": 117, "type": "identifier", "text": "GetConsoleMode", "parent": 116, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 28}}, {"id": 118, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldOutputMode\r\n )", "parent": 116, "children": [119, 123], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 65, "column": 29}}, {"id": 119, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 118, "children": [120, 121], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 59}}, {"id": 120, "type": "identifier", "text": "GetStdHandle", "parent": 119, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 41}}, {"id": 121, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 119, "children": [122], "start_point": {"row": 63, "column": 41}, "end_point": {"row": 63, "column": 59}}, {"id": 122, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 121, "children": [], "start_point": {"row": 63, "column": 42}, "end_point": {"row": 63, "column": 58}}, {"id": 123, "type": "pointer_expression", "text": "&OldOutputMode", "parent": 118, "children": [124], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 43}}, {"id": 124, "type": "identifier", "text": "OldOutputMode", "parent": 123, "children": [], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 43}}, {"id": 125, "type": "if_statement", "text": "if (OldOutputMode & NewOutputMode != NewOutputMode) {\r\n DbgPrint(\"ERROR: OldOutputMode is %x\\n\",OldOutputMode);\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode);\r\n }", "parent": 39, "children": [126], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 69, "column": 5}}, {"id": 126, "type": "parenthesized_expression", "text": "(OldOutputMode & NewOutputMode != NewOutputMode)", "parent": 125, "children": [127], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 55}}, {"id": 127, "type": "binary_expression", "text": "OldOutputMode & NewOutputMode != NewOutputMode", "parent": 126, "children": [128, 129], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 54}}, {"id": 128, "type": "identifier", "text": "OldOutputMode", "parent": 127, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 21}}, {"id": 129, "type": "binary_expression", "text": "NewOutputMode != NewOutputMode", "parent": 127, "children": [130, 131, 132], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 54}}, {"id": 130, "type": "identifier", "text": "NewOutputMode", "parent": 129, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 37}}, {"id": 131, "type": "!=", "text": "!=", "parent": 129, "children": [], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 40}}, {"id": 132, "type": "identifier", "text": "NewOutputMode", "parent": 129, "children": [], "start_point": {"row": 66, "column": 41}, "end_point": {"row": 66, "column": 54}}, {"id": 133, "type": "call_expression", "text": "DbgPrint(\"ERROR: OldOutputMode is %x\\n\",OldOutputMode)", "parent": 125, "children": [134, 135], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 62}}, {"id": 134, "type": "identifier", "text": "DbgPrint", "parent": 133, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 16}}, {"id": 135, "type": "argument_list", "text": "(\"ERROR: OldOutputMode is %x\\n\",OldOutputMode)", "parent": 133, "children": [136, 138], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 62}}, {"id": 136, "type": "string_literal", "text": "\"ERROR: OldOutputMode is %x\\n\"", "parent": 135, "children": [137], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 47}}, {"id": 137, "type": "escape_sequence", "text": "\\n", "parent": 136, "children": [], "start_point": {"row": 67, "column": 44}, "end_point": {"row": 67, "column": 46}}, {"id": 138, "type": "identifier", "text": "OldOutputMode", "parent": 135, "children": [], "start_point": {"row": 67, "column": 48}, "end_point": {"row": 67, "column": 61}}, {"id": 139, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode)", "parent": 125, "children": [140, 141], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 69}}, {"id": 140, "type": "identifier", "text": "SetConsoleMode", "parent": 139, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 22}}, {"id": 141, "type": "argument_list", "text": "(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode)", "parent": 139, "children": [142, 146], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 69}}, {"id": 142, "type": "call_expression", "text": "GetStdHandle(STD_OUTPUT_HANDLE)", "parent": 141, "children": [143, 144], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 54}}, {"id": 143, "type": "identifier", "text": "GetStdHandle", "parent": 142, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 35}}, {"id": 144, "type": "argument_list", "text": "(STD_OUTPUT_HANDLE)", "parent": 142, "children": [145], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 54}}, {"id": 145, "type": "identifier", "text": "STD_OUTPUT_HANDLE", "parent": 144, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 53}}, {"id": 146, "type": "identifier", "text": "NewOutputMode", "parent": 141, "children": [], "start_point": {"row": 68, "column": 55}, "end_point": {"row": 68, "column": 68}}, {"id": 147, "type": "call_expression", "text": "DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\")", "parent": 39, "children": [148, 149], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 94}}, {"id": 148, "type": "identifier", "text": "DbgPrint", "parent": 147, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 12}}, {"id": 149, "type": "argument_list", "text": "(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\")", "parent": 147, "children": [150], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 94}}, {"id": 150, "type": "string_literal", "text": "\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\"", "parent": 149, "children": [151], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 93}}, {"id": 151, "type": "escape_sequence", "text": "\\n", "parent": 150, "children": [], "start_point": {"row": 79, "column": 90}, "end_point": {"row": 79, "column": 92}}, {"id": 152, "type": "call_expression", "text": "DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\")", "parent": 39, "children": [153, 154], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 56}}, {"id": 153, "type": "identifier", "text": "DbgPrint", "parent": 152, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 12}}, {"id": 154, "type": "argument_list", "text": "(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\")", "parent": 152, "children": [155], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 56}}, {"id": 155, "type": "string_literal", "text": "\"output mode is ENABLE_PROCESSED_OUTPUT\\n\"", "parent": 154, "children": [156], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 55}}, {"id": 156, "type": "escape_sequence", "text": "\\n", "parent": 155, "children": [], "start_point": {"row": 80, "column": 52}, "end_point": {"row": 80, "column": 54}}, {"id": 157, "type": "call_expression", "text": "DbgPrint(\"type aTabbcdBackspaceCr\\n\")", "parent": 39, "children": [158, 159], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 41}}, {"id": 158, "type": "identifier", "text": "DbgPrint", "parent": 157, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 12}}, {"id": 159, "type": "argument_list", "text": "(\"type aTabbcdBackspaceCr\\n\")", "parent": 157, "children": [160], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 41}}, {"id": 160, "type": "string_literal", "text": "\"type aTabbcdBackspaceCr\\n\"", "parent": 159, "children": [161], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 40}}, {"id": 161, "type": "escape_sequence", "text": "\\n", "parent": 160, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 39}}, {"id": 162, "type": "call_expression", "text": "DbgPrint(\"a bc should be output string\\n\")", "parent": 39, "children": [163, 164], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 52}}, {"id": 163, "type": "identifier", "text": "DbgPrint", "parent": 162, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 12}}, {"id": 164, "type": "argument_list", "text": "(\"a bc should be output string\\n\")", "parent": 162, "children": [165], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 52}}, {"id": 165, "type": "string_literal", "text": "\"a bc should be output string\\n\"", "parent": 164, "children": [166], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 51}}, {"id": 166, "type": "escape_sequence", "text": "\\n", "parent": 165, "children": [], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 50}}, {"id": 167, "type": "assignment_expression", "text": "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 39, "children": [168, 169, 170], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 73}}, {"id": 168, "type": "identifier", "text": "Success", "parent": 167, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 11}}, {"id": 169, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 13}}, {"id": 170, "type": "call_expression", "text": "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 167, "children": [171, 172], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 73}}, {"id": 171, "type": "identifier", "text": "ReadFile", "parent": 170, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 22}}, {"id": 172, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 170, "children": [173, 177, 178, 179, 181], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 73}}, {"id": 173, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 172, "children": [174, 175], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 53}}, {"id": 174, "type": "identifier", "text": "GetStdHandle", "parent": 173, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 35}}, {"id": 175, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 173, "children": [176], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 53}}, {"id": 176, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 175, "children": [], "start_point": {"row": 84, "column": 36}, "end_point": {"row": 84, "column": 52}}, {"id": 177, "type": "identifier", "text": "buff", "parent": 172, "children": [], "start_point": {"row": 84, "column": 54}, "end_point": {"row": 84, "column": 58}}, {"id": 178, "type": "number_literal", "text": "512", "parent": 172, "children": [], "start_point": {"row": 84, "column": 59}, "end_point": {"row": 84, "column": 62}}, {"id": 179, "type": "pointer_expression", "text": "&n", "parent": 172, "children": [180], "start_point": {"row": 84, "column": 64}, "end_point": {"row": 84, "column": 66}}, {"id": 180, "type": "identifier", "text": "n", "parent": 179, "children": [], "start_point": {"row": 84, "column": 65}, "end_point": {"row": 84, "column": 66}}, {"id": 181, "type": "null", "text": "NULL", "parent": 172, "children": [182], "start_point": {"row": 84, "column": 68}, "end_point": {"row": 84, "column": 72}}, {"id": 182, "type": "NULL", "text": "NULL", "parent": 181, "children": [], "start_point": {"row": 84, "column": 68}, "end_point": {"row": 84, "column": 72}}, {"id": 183, "type": "if_statement", "text": "if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }", "parent": 39, "children": [184], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 184, "type": "parenthesized_expression", "text": "(!Success)", "parent": 183, "children": [185], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 17}}, {"id": 185, "type": "unary_expression", "text": "!Success", "parent": 184, "children": [186, 187], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 16}}, {"id": 186, "type": "!", "text": "!", "parent": 185, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 9}}, {"id": 187, "type": "identifier", "text": "Success", "parent": 185, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 16}}, {"id": 188, "type": "call_expression", "text": "DbgPrint(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 183, "children": [189, 190], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 63}}, {"id": 189, "type": "identifier", "text": "DbgPrint", "parent": 188, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 16}}, {"id": 190, "type": "argument_list", "text": "(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 188, "children": [191, 193], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 63}}, {"id": 191, "type": "string_literal", "text": "\"ReadFile returned error %d\\n\"", "parent": 190, "children": [192], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 47}}, {"id": 192, "type": "escape_sequence", "text": "\\n", "parent": 191, "children": [], "start_point": {"row": 86, "column": 44}, "end_point": {"row": 86, "column": 46}}, {"id": 193, "type": "call_expression", "text": "GetLastError()", "parent": 190, "children": [194, 195], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 62}}, {"id": 194, "type": "identifier", "text": "GetLastError", "parent": 193, "children": [], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 60}}, {"id": 195, "type": "argument_list", "text": "()", "parent": 193, "children": [], "start_point": {"row": 86, "column": 60}, "end_point": {"row": 86, "column": 62}}, {"id": 196, "type": "return_statement", "text": "return 1;", "parent": 183, "children": [197], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 17}}, {"id": 197, "type": "number_literal", "text": "1", "parent": 196, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 16}}, {"id": 198, "type": "if_statement", "text": "if (n != PROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }", "parent": 39, "children": [199], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 91, "column": 5}}, {"id": 199, "type": "parenthesized_expression", "text": "(n != PROCESSED_LENGTH)", "parent": 198, "children": [200], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 30}}, {"id": 200, "type": "binary_expression", "text": "n != PROCESSED_LENGTH", "parent": 199, "children": [201, 202, 203], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 29}}, {"id": 201, "type": "identifier", "text": "n", "parent": 200, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 202, "type": "!=", "text": "!=", "parent": 200, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 12}}, {"id": 203, "type": "identifier", "text": "PROCESSED_LENGTH", "parent": 200, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 29}}, {"id": 204, "type": "call_expression", "text": "DbgPrint(\"n is %d\\n\",n)", "parent": 198, "children": [205, 206], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 31}}, {"id": 205, "type": "identifier", "text": "DbgPrint", "parent": 204, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 16}}, {"id": 206, "type": "argument_list", "text": "(\"n is %d\\n\",n)", "parent": 204, "children": [207, 209], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 31}}, {"id": 207, "type": "string_literal", "text": "\"n is %d\\n\"", "parent": 206, "children": [208], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 28}}, {"id": 208, "type": "escape_sequence", "text": "\\n", "parent": 207, "children": [], "start_point": {"row": 90, "column": 25}, "end_point": {"row": 90, "column": 27}}, {"id": 209, "type": "identifier", "text": "n", "parent": 206, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 30}}, {"id": 210, "type": "if_statement", "text": "if (strncmp(ProcessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }", "parent": 39, "children": [211], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 97, "column": 5}}, {"id": 211, "type": "parenthesized_expression", "text": "(strncmp(ProcessedString,buff,n))", "parent": 210, "children": [212], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 40}}, {"id": 212, "type": "call_expression", "text": "strncmp(ProcessedString,buff,n)", "parent": 211, "children": [213, 214], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 39}}, {"id": 213, "type": "identifier", "text": "strncmp", "parent": 212, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 15}}, {"id": 214, "type": "argument_list", "text": "(ProcessedString,buff,n)", "parent": 212, "children": [215, 216, 217], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 39}}, {"id": 215, "type": "identifier", "text": "ProcessedString", "parent": 214, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 31}}, {"id": 216, "type": "identifier", "text": "buff", "parent": 214, "children": [], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 36}}, {"id": 217, "type": "identifier", "text": "n", "parent": 214, "children": [], "start_point": {"row": 92, "column": 37}, "end_point": {"row": 92, "column": 38}}, {"id": 218, "type": "call_expression", "text": "DbgPrint(\"strncmp failed\\n\")", "parent": 210, "children": [219, 220], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 36}}, {"id": 219, "type": "identifier", "text": "DbgPrint", "parent": 218, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 16}}, {"id": 220, "type": "argument_list", "text": "(\"strncmp failed\\n\")", "parent": 218, "children": [221], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 36}}, {"id": 221, "type": "string_literal", "text": "\"strncmp failed\\n\"", "parent": 220, "children": [222], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 35}}, {"id": 222, "type": "escape_sequence", "text": "\\n", "parent": 221, "children": [], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 34}}, {"id": 223, "type": "call_expression", "text": "DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString)", "parent": 210, "children": [224, 225], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 65}}, {"id": 224, "type": "identifier", "text": "DbgPrint", "parent": 223, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 16}}, {"id": 225, "type": "argument_list", "text": "(\"ProcessedString contains %s\\n\",ProcessedString)", "parent": 223, "children": [226, 228], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 65}}, {"id": 226, "type": "string_literal", "text": "\"ProcessedString contains %s\\n\"", "parent": 225, "children": [227], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 48}}, {"id": 227, "type": "escape_sequence", "text": "\\n", "parent": 226, "children": [], "start_point": {"row": 94, "column": 45}, "end_point": {"row": 94, "column": 47}}, {"id": 228, "type": "identifier", "text": "ProcessedString", "parent": 225, "children": [], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 64}}, {"id": 229, "type": "call_expression", "text": "DbgPrint(\"buff contains %s\\n\",buff)", "parent": 210, "children": [230, 231], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 43}}, {"id": 230, "type": "identifier", "text": "DbgPrint", "parent": 229, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 16}}, {"id": 231, "type": "argument_list", "text": "(\"buff contains %s\\n\",buff)", "parent": 229, "children": [232, 234], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 43}}, {"id": 232, "type": "string_literal", "text": "\"buff contains %s\\n\"", "parent": 231, "children": [233], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 37}}, {"id": 233, "type": "escape_sequence", "text": "\\n", "parent": 232, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 36}}, {"id": 234, "type": "identifier", "text": "buff", "parent": 231, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 42}}, {"id": 235, "type": "call_expression", "text": "DbgBreakPoint()", "parent": 210, "children": [236, 237], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 23}}, {"id": 236, "type": "identifier", "text": "DbgBreakPoint", "parent": 235, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 21}}, {"id": 237, "type": "argument_list", "text": "()", "parent": 235, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 23}}, {"id": 238, "type": "call_expression", "text": "DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\")", "parent": 39, "children": [239, 240], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 94}}, {"id": 239, "type": "identifier", "text": "DbgPrint", "parent": 238, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 12}}, {"id": 240, "type": "argument_list", "text": "(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\")", "parent": 238, "children": [241], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 94}}, {"id": 241, "type": "string_literal", "text": "\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\"", "parent": 240, "children": [242], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 93}}, {"id": 242, "type": "escape_sequence", "text": "\\n", "parent": 241, "children": [], "start_point": {"row": 106, "column": 90}, "end_point": {"row": 106, "column": 92}}, {"id": 243, "type": "call_expression", "text": "DbgPrint(\"output mode is 0\\n\")", "parent": 39, "children": [244, 245], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 34}}, {"id": 244, "type": "identifier", "text": "DbgPrint", "parent": 243, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 12}}, {"id": 245, "type": "argument_list", "text": "(\"output mode is 0\\n\")", "parent": 243, "children": [246], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 34}}, {"id": 246, "type": "string_literal", "text": "\"output mode is 0\\n\"", "parent": 245, "children": [247], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 33}}, {"id": 247, "type": "escape_sequence", "text": "\\n", "parent": 246, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 32}}, {"id": 248, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT)", "parent": 39, "children": [249, 250], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 77}}, {"id": 249, "type": "identifier", "text": "SetConsoleMode", "parent": 248, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 18}}, {"id": 250, "type": "argument_list", "text": "(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT)", "parent": 248, "children": [251, 255], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 77}}, {"id": 251, "type": "call_expression", "text": "GetStdHandle(STD_OUTPUT_HANDLE)", "parent": 250, "children": [252, 253], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 50}}, {"id": 252, "type": "identifier", "text": "GetStdHandle", "parent": 251, "children": [], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 31}}, {"id": 253, "type": "argument_list", "text": "(STD_OUTPUT_HANDLE)", "parent": 251, "children": [254], "start_point": {"row": 108, "column": 31}, "end_point": {"row": 108, "column": 50}}, {"id": 254, "type": "identifier", "text": "STD_OUTPUT_HANDLE", "parent": 253, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 49}}, {"id": 255, "type": "identifier", "text": "ENABLE_WRAP_AT_EOL_OUTPUT", "parent": 250, "children": [], "start_point": {"row": 108, "column": 51}, "end_point": {"row": 108, "column": 76}}, {"id": 256, "type": "call_expression", "text": "DbgPrint(\"type aTabbcdBackspaceCr\\n\")", "parent": 39, "children": [257, 258], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 41}}, {"id": 257, "type": "identifier", "text": "DbgPrint", "parent": 256, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 12}}, {"id": 258, "type": "argument_list", "text": "(\"type aTabbcdBackspaceCr\\n\")", "parent": 256, "children": [259], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 41}}, {"id": 259, "type": "string_literal", "text": "\"type aTabbcdBackspaceCr\\n\"", "parent": 258, "children": [260], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 40}}, {"id": 260, "type": "escape_sequence", "text": "\\n", "parent": 259, "children": [], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 39}}, {"id": 261, "type": "call_expression", "text": "DbgPrint(\"a0x90x8bc0xd0xa should be output string\\n\")", "parent": 39, "children": [262, 263], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 57}}, {"id": 262, "type": "identifier", "text": "DbgPrint", "parent": 261, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 12}}, {"id": 263, "type": "argument_list", "text": "(\"a0x90x8bc0xd0xa should be output string\\n\")", "parent": 261, "children": [264], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 57}}, {"id": 264, "type": "string_literal", "text": "\"a0x90x8bc0xd0xa should be output string\\n\"", "parent": 263, "children": [265], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 56}}, {"id": 265, "type": "escape_sequence", "text": "\\n", "parent": 264, "children": [], "start_point": {"row": 110, "column": 53}, "end_point": {"row": 110, "column": 55}}, {"id": 266, "type": "assignment_expression", "text": "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 39, "children": [267, 268, 269], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 73}}, {"id": 267, "type": "identifier", "text": "Success", "parent": 266, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 11}}, {"id": 268, "type": "=", "text": "=", "parent": 266, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 13}}, {"id": 269, "type": "call_expression", "text": "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 266, "children": [270, 271], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 73}}, {"id": 270, "type": "identifier", "text": "ReadFile", "parent": 269, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 22}}, {"id": 271, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 269, "children": [272, 276, 277, 278, 280], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 73}}, {"id": 272, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 271, "children": [273, 274], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 53}}, {"id": 273, "type": "identifier", "text": "GetStdHandle", "parent": 272, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 35}}, {"id": 274, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 272, "children": [275], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 53}}, {"id": 275, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 274, "children": [], "start_point": {"row": 112, "column": 36}, "end_point": {"row": 112, "column": 52}}, {"id": 276, "type": "identifier", "text": "buff", "parent": 271, "children": [], "start_point": {"row": 112, "column": 54}, "end_point": {"row": 112, "column": 58}}, {"id": 277, "type": "number_literal", "text": "512", "parent": 271, "children": [], "start_point": {"row": 112, "column": 59}, "end_point": {"row": 112, "column": 62}}, {"id": 278, "type": "pointer_expression", "text": "&n", "parent": 271, "children": [279], "start_point": {"row": 112, "column": 64}, "end_point": {"row": 112, "column": 66}}, {"id": 279, "type": "identifier", "text": "n", "parent": 278, "children": [], "start_point": {"row": 112, "column": 65}, "end_point": {"row": 112, "column": 66}}, {"id": 280, "type": "null", "text": "NULL", "parent": 271, "children": [281], "start_point": {"row": 112, "column": 68}, "end_point": {"row": 112, "column": 72}}, {"id": 281, "type": "NULL", "text": "NULL", "parent": 280, "children": [], "start_point": {"row": 112, "column": 68}, "end_point": {"row": 112, "column": 72}}, {"id": 282, "type": "if_statement", "text": "if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }", "parent": 39, "children": [283], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 116, "column": 5}}, {"id": 283, "type": "parenthesized_expression", "text": "(!Success)", "parent": 282, "children": [284], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 17}}, {"id": 284, "type": "unary_expression", "text": "!Success", "parent": 283, "children": [285, 286], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 16}}, {"id": 285, "type": "!", "text": "!", "parent": 284, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 9}}, {"id": 286, "type": "identifier", "text": "Success", "parent": 284, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 16}}, {"id": 287, "type": "call_expression", "text": "DbgPrint(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 282, "children": [288, 289], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 63}}, {"id": 288, "type": "identifier", "text": "DbgPrint", "parent": 287, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 16}}, {"id": 289, "type": "argument_list", "text": "(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 287, "children": [290, 292], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 63}}, {"id": 290, "type": "string_literal", "text": "\"ReadFile returned error %d\\n\"", "parent": 289, "children": [291], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 47}}, {"id": 291, "type": "escape_sequence", "text": "\\n", "parent": 290, "children": [], "start_point": {"row": 114, "column": 44}, "end_point": {"row": 114, "column": 46}}, {"id": 292, "type": "call_expression", "text": "GetLastError()", "parent": 289, "children": [293, 294], "start_point": {"row": 114, "column": 48}, "end_point": {"row": 114, "column": 62}}, {"id": 293, "type": "identifier", "text": "GetLastError", "parent": 292, "children": [], "start_point": {"row": 114, "column": 48}, "end_point": {"row": 114, "column": 60}}, {"id": 294, "type": "argument_list", "text": "()", "parent": 292, "children": [], "start_point": {"row": 114, "column": 60}, "end_point": {"row": 114, "column": 62}}, {"id": 295, "type": "return_statement", "text": "return 1;", "parent": 282, "children": [296], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 17}}, {"id": 296, "type": "number_literal", "text": "1", "parent": 295, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 16}}, {"id": 297, "type": "if_statement", "text": "if (n != PROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }", "parent": 39, "children": [298], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 119, "column": 5}}, {"id": 298, "type": "parenthesized_expression", "text": "(n != PROCESSED_LENGTH)", "parent": 297, "children": [299], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 30}}, {"id": 299, "type": "binary_expression", "text": "n != PROCESSED_LENGTH", "parent": 298, "children": [300, 301, 302], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 29}}, {"id": 300, "type": "identifier", "text": "n", "parent": 299, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 9}}, {"id": 301, "type": "!=", "text": "!=", "parent": 299, "children": [], "start_point": {"row": 117, "column": 10}, "end_point": {"row": 117, "column": 12}}, {"id": 302, "type": "identifier", "text": "PROCESSED_LENGTH", "parent": 299, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 29}}, {"id": 303, "type": "call_expression", "text": "DbgPrint(\"n is %d\\n\",n)", "parent": 297, "children": [304, 305], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 31}}, {"id": 304, "type": "identifier", "text": "DbgPrint", "parent": 303, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 16}}, {"id": 305, "type": "argument_list", "text": "(\"n is %d\\n\",n)", "parent": 303, "children": [306, 308], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 31}}, {"id": 306, "type": "string_literal", "text": "\"n is %d\\n\"", "parent": 305, "children": [307], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 28}}, {"id": 307, "type": "escape_sequence", "text": "\\n", "parent": 306, "children": [], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 27}}, {"id": 308, "type": "identifier", "text": "n", "parent": 305, "children": [], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 30}}, {"id": 309, "type": "if_statement", "text": "if (strncmp(ProcessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }", "parent": 39, "children": [310], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 125, "column": 5}}, {"id": 310, "type": "parenthesized_expression", "text": "(strncmp(ProcessedString,buff,n))", "parent": 309, "children": [311], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 40}}, {"id": 311, "type": "call_expression", "text": "strncmp(ProcessedString,buff,n)", "parent": 310, "children": [312, 313], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 39}}, {"id": 312, "type": "identifier", "text": "strncmp", "parent": 311, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 15}}, {"id": 313, "type": "argument_list", "text": "(ProcessedString,buff,n)", "parent": 311, "children": [314, 315, 316], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 39}}, {"id": 314, "type": "identifier", "text": "ProcessedString", "parent": 313, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 31}}, {"id": 315, "type": "identifier", "text": "buff", "parent": 313, "children": [], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 36}}, {"id": 316, "type": "identifier", "text": "n", "parent": 313, "children": [], "start_point": {"row": 120, "column": 37}, "end_point": {"row": 120, "column": 38}}, {"id": 317, "type": "call_expression", "text": "DbgPrint(\"strncmp failed\\n\")", "parent": 309, "children": [318, 319], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 36}}, {"id": 318, "type": "identifier", "text": "DbgPrint", "parent": 317, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 16}}, {"id": 319, "type": "argument_list", "text": "(\"strncmp failed\\n\")", "parent": 317, "children": [320], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 36}}, {"id": 320, "type": "string_literal", "text": "\"strncmp failed\\n\"", "parent": 319, "children": [321], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 35}}, {"id": 321, "type": "escape_sequence", "text": "\\n", "parent": 320, "children": [], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 34}}, {"id": 322, "type": "call_expression", "text": "DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString)", "parent": 309, "children": [323, 324], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 65}}, {"id": 323, "type": "identifier", "text": "DbgPrint", "parent": 322, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 16}}, {"id": 324, "type": "argument_list", "text": "(\"ProcessedString contains %s\\n\",ProcessedString)", "parent": 322, "children": [325, 327], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 65}}, {"id": 325, "type": "string_literal", "text": "\"ProcessedString contains %s\\n\"", "parent": 324, "children": [326], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 48}}, {"id": 326, "type": "escape_sequence", "text": "\\n", "parent": 325, "children": [], "start_point": {"row": 122, "column": 45}, "end_point": {"row": 122, "column": 47}}, {"id": 327, "type": "identifier", "text": "ProcessedString", "parent": 324, "children": [], "start_point": {"row": 122, "column": 49}, "end_point": {"row": 122, "column": 64}}, {"id": 328, "type": "call_expression", "text": "DbgPrint(\"buff contains %s\\n\",buff)", "parent": 309, "children": [329, 330], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 43}}, {"id": 329, "type": "identifier", "text": "DbgPrint", "parent": 328, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 16}}, {"id": 330, "type": "argument_list", "text": "(\"buff contains %s\\n\",buff)", "parent": 328, "children": [331, 333], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 43}}, {"id": 331, "type": "string_literal", "text": "\"buff contains %s\\n\"", "parent": 330, "children": [332], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 37}}, {"id": 332, "type": "escape_sequence", "text": "\\n", "parent": 331, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 36}}, {"id": 333, "type": "identifier", "text": "buff", "parent": 330, "children": [], "start_point": {"row": 123, "column": 38}, "end_point": {"row": 123, "column": 42}}, {"id": 334, "type": "call_expression", "text": "DbgBreakPoint()", "parent": 309, "children": [335, 336], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 23}}, {"id": 335, "type": "identifier", "text": "DbgBreakPoint", "parent": 334, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 21}}, {"id": 336, "type": "argument_list", "text": "()", "parent": 334, "children": [], "start_point": {"row": 124, "column": 21}, "end_point": {"row": 124, "column": 23}}, {"id": 337, "type": "call_expression", "text": "DbgPrint(\"input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\")", "parent": 39, "children": [338, 339], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 69}}, {"id": 338, "type": "identifier", "text": "DbgPrint", "parent": 337, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 12}}, {"id": 339, "type": "argument_list", "text": "(\"input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\")", "parent": 337, "children": [340], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 69}}, {"id": 340, "type": "string_literal", "text": "\"input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\"", "parent": 339, "children": [341], "start_point": {"row": 134, "column": 13}, "end_point": {"row": 134, "column": 68}}, {"id": 341, "type": "escape_sequence", "text": "\\n", "parent": 340, "children": [], "start_point": {"row": 134, "column": 65}, "end_point": {"row": 134, "column": 67}}, {"id": 342, "type": "call_expression", "text": "DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\")", "parent": 39, "children": [343, 344], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 56}}, {"id": 343, "type": "identifier", "text": "DbgPrint", "parent": 342, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 12}}, {"id": 344, "type": "argument_list", "text": "(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\")", "parent": 342, "children": [345], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 56}}, {"id": 345, "type": "string_literal", "text": "\"output mode is ENABLE_PROCESSED_OUTPUT\\n\"", "parent": 344, "children": [346], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 55}}, {"id": 346, "type": "escape_sequence", "text": "\\n", "parent": 345, "children": [], "start_point": {"row": 135, "column": 52}, "end_point": {"row": 135, "column": 54}}, {"id": 347, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT)", "parent": 39, "children": [348, 349], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 88}}, {"id": 348, "type": "identifier", "text": "SetConsoleMode", "parent": 347, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 18}}, {"id": 349, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT)", "parent": 347, "children": [350, 354], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 88}}, {"id": 350, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 349, "children": [351, 352], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 49}}, {"id": 351, "type": "identifier", "text": "GetStdHandle", "parent": 350, "children": [], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 31}}, {"id": 352, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 350, "children": [353], "start_point": {"row": 136, "column": 31}, "end_point": {"row": 136, "column": 49}}, {"id": 353, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 352, "children": [], "start_point": {"row": 136, "column": 32}, "end_point": {"row": 136, "column": 48}}, {"id": 354, "type": "binary_expression", "text": "ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT", "parent": 349, "children": [355, 356], "start_point": {"row": 136, "column": 50}, "end_point": {"row": 136, "column": 87}}, {"id": 355, "type": "identifier", "text": "ENABLE_LINE_INPUT", "parent": 354, "children": [], "start_point": {"row": 136, "column": 50}, "end_point": {"row": 136, "column": 67}}, {"id": 356, "type": "identifier", "text": "ENABLE_ECHO_INPUT", "parent": 354, "children": [], "start_point": {"row": 136, "column": 70}, "end_point": {"row": 136, "column": 87}}, {"id": 357, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT)", "parent": 39, "children": [358, 359], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 103}}, {"id": 358, "type": "identifier", "text": "SetConsoleMode", "parent": 357, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 18}}, {"id": 359, "type": "argument_list", "text": "(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT)", "parent": 357, "children": [360, 364], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 103}}, {"id": 360, "type": "call_expression", "text": "GetStdHandle(STD_OUTPUT_HANDLE)", "parent": 359, "children": [361, 362], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 50}}, {"id": 361, "type": "identifier", "text": "GetStdHandle", "parent": 360, "children": [], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 31}}, {"id": 362, "type": "argument_list", "text": "(STD_OUTPUT_HANDLE)", "parent": 360, "children": [363], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 50}}, {"id": 363, "type": "identifier", "text": "STD_OUTPUT_HANDLE", "parent": 362, "children": [], "start_point": {"row": 137, "column": 32}, "end_point": {"row": 137, "column": 49}}, {"id": 364, "type": "binary_expression", "text": "ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT", "parent": 359, "children": [365, 366], "start_point": {"row": 137, "column": 51}, "end_point": {"row": 137, "column": 102}}, {"id": 365, "type": "identifier", "text": "ENABLE_PROCESSED_OUTPUT", "parent": 364, "children": [], "start_point": {"row": 137, "column": 51}, "end_point": {"row": 137, "column": 74}}, {"id": 366, "type": "identifier", "text": "ENABLE_WRAP_AT_EOL_OUTPUT", "parent": 364, "children": [], "start_point": {"row": 137, "column": 77}, "end_point": {"row": 137, "column": 102}}, {"id": 367, "type": "call_expression", "text": "DbgPrint(\"type aTabbcdBackspaceCr\\n\")", "parent": 39, "children": [368, 369], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 41}}, {"id": 368, "type": "identifier", "text": "DbgPrint", "parent": 367, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 12}}, {"id": 369, "type": "argument_list", "text": "(\"type aTabbcdBackspaceCr\\n\")", "parent": 367, "children": [370], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 41}}, {"id": 370, "type": "string_literal", "text": "\"type aTabbcdBackspaceCr\\n\"", "parent": 369, "children": [371], "start_point": {"row": 138, "column": 13}, "end_point": {"row": 138, "column": 40}}, {"id": 371, "type": "escape_sequence", "text": "\\n", "parent": 370, "children": [], "start_point": {"row": 138, "column": 37}, "end_point": {"row": 138, "column": 39}}, {"id": 372, "type": "call_expression", "text": "DbgPrint(\"a bc should be output string\\n\")", "parent": 39, "children": [373, 374], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 52}}, {"id": 373, "type": "identifier", "text": "DbgPrint", "parent": 372, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 12}}, {"id": 374, "type": "argument_list", "text": "(\"a bc should be output string\\n\")", "parent": 372, "children": [375], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 52}}, {"id": 375, "type": "string_literal", "text": "\"a bc should be output string\\n\"", "parent": 374, "children": [376], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 51}}, {"id": 376, "type": "escape_sequence", "text": "\\n", "parent": 375, "children": [], "start_point": {"row": 139, "column": 48}, "end_point": {"row": 139, "column": 50}}, {"id": 377, "type": "assignment_expression", "text": "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 39, "children": [378, 379, 380], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 73}}, {"id": 378, "type": "identifier", "text": "Success", "parent": 377, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 11}}, {"id": 379, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 13}}, {"id": 380, "type": "call_expression", "text": "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 377, "children": [381, 382], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 73}}, {"id": 381, "type": "identifier", "text": "ReadFile", "parent": 380, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 22}}, {"id": 382, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 380, "children": [383, 387, 388, 389, 391], "start_point": {"row": 141, "column": 22}, "end_point": {"row": 141, "column": 73}}, {"id": 383, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 382, "children": [384, 385], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 53}}, {"id": 384, "type": "identifier", "text": "GetStdHandle", "parent": 383, "children": [], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 35}}, {"id": 385, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 383, "children": [386], "start_point": {"row": 141, "column": 35}, "end_point": {"row": 141, "column": 53}}, {"id": 386, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 385, "children": [], "start_point": {"row": 141, "column": 36}, "end_point": {"row": 141, "column": 52}}, {"id": 387, "type": "identifier", "text": "buff", "parent": 382, "children": [], "start_point": {"row": 141, "column": 54}, "end_point": {"row": 141, "column": 58}}, {"id": 388, "type": "number_literal", "text": "512", "parent": 382, "children": [], "start_point": {"row": 141, "column": 59}, "end_point": {"row": 141, "column": 62}}, {"id": 389, "type": "pointer_expression", "text": "&n", "parent": 382, "children": [390], "start_point": {"row": 141, "column": 64}, "end_point": {"row": 141, "column": 66}}, {"id": 390, "type": "identifier", "text": "n", "parent": 389, "children": [], "start_point": {"row": 141, "column": 65}, "end_point": {"row": 141, "column": 66}}, {"id": 391, "type": "null", "text": "NULL", "parent": 382, "children": [392], "start_point": {"row": 141, "column": 68}, "end_point": {"row": 141, "column": 72}}, {"id": 392, "type": "NULL", "text": "NULL", "parent": 391, "children": [], "start_point": {"row": 141, "column": 68}, "end_point": {"row": 141, "column": 72}}, {"id": 393, "type": "if_statement", "text": "if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }", "parent": 39, "children": [394], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 145, "column": 5}}, {"id": 394, "type": "parenthesized_expression", "text": "(!Success)", "parent": 393, "children": [395], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 17}}, {"id": 395, "type": "unary_expression", "text": "!Success", "parent": 394, "children": [396, 397], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 16}}, {"id": 396, "type": "!", "text": "!", "parent": 395, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 9}}, {"id": 397, "type": "identifier", "text": "Success", "parent": 395, "children": [], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 16}}, {"id": 398, "type": "call_expression", "text": "DbgPrint(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 393, "children": [399, 400], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 63}}, {"id": 399, "type": "identifier", "text": "DbgPrint", "parent": 398, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 16}}, {"id": 400, "type": "argument_list", "text": "(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 398, "children": [401, 403], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 63}}, {"id": 401, "type": "string_literal", "text": "\"ReadFile returned error %d\\n\"", "parent": 400, "children": [402], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 47}}, {"id": 402, "type": "escape_sequence", "text": "\\n", "parent": 401, "children": [], "start_point": {"row": 143, "column": 44}, "end_point": {"row": 143, "column": 46}}, {"id": 403, "type": "call_expression", "text": "GetLastError()", "parent": 400, "children": [404, 405], "start_point": {"row": 143, "column": 48}, "end_point": {"row": 143, "column": 62}}, {"id": 404, "type": "identifier", "text": "GetLastError", "parent": 403, "children": [], "start_point": {"row": 143, "column": 48}, "end_point": {"row": 143, "column": 60}}, {"id": 405, "type": "argument_list", "text": "()", "parent": 403, "children": [], "start_point": {"row": 143, "column": 60}, "end_point": {"row": 143, "column": 62}}, {"id": 406, "type": "return_statement", "text": "return 1;", "parent": 393, "children": [407], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 17}}, {"id": 407, "type": "number_literal", "text": "1", "parent": 406, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 16}}, {"id": 408, "type": "if_statement", "text": "if (n != UNPROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }", "parent": 39, "children": [409], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 148, "column": 5}}, {"id": 409, "type": "parenthesized_expression", "text": "(n != UNPROCESSED_LENGTH)", "parent": 408, "children": [410], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 32}}, {"id": 410, "type": "binary_expression", "text": "n != UNPROCESSED_LENGTH", "parent": 409, "children": [411, 412, 413], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 31}}, {"id": 411, "type": "identifier", "text": "n", "parent": 410, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 9}}, {"id": 412, "type": "!=", "text": "!=", "parent": 410, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 12}}, {"id": 413, "type": "identifier", "text": "UNPROCESSED_LENGTH", "parent": 410, "children": [], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 31}}, {"id": 414, "type": "call_expression", "text": "DbgPrint(\"n is %d\\n\",n)", "parent": 408, "children": [415, 416], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 31}}, {"id": 415, "type": "identifier", "text": "DbgPrint", "parent": 414, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 16}}, {"id": 416, "type": "argument_list", "text": "(\"n is %d\\n\",n)", "parent": 414, "children": [417, 419], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 31}}, {"id": 417, "type": "string_literal", "text": "\"n is %d\\n\"", "parent": 416, "children": [418], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 28}}, {"id": 418, "type": "escape_sequence", "text": "\\n", "parent": 417, "children": [], "start_point": {"row": 147, "column": 25}, "end_point": {"row": 147, "column": 27}}, {"id": 419, "type": "identifier", "text": "n", "parent": 416, "children": [], "start_point": {"row": 147, "column": 29}, "end_point": {"row": 147, "column": 30}}, {"id": 420, "type": "if_statement", "text": "if (strncmp(UnprocessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }", "parent": 39, "children": [421], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 154, "column": 5}}, {"id": 421, "type": "parenthesized_expression", "text": "(strncmp(UnprocessedString,buff,n))", "parent": 420, "children": [422], "start_point": {"row": 149, "column": 7}, "end_point": {"row": 149, "column": 42}}, {"id": 422, "type": "call_expression", "text": "strncmp(UnprocessedString,buff,n)", "parent": 421, "children": [423, 424], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 41}}, {"id": 423, "type": "identifier", "text": "strncmp", "parent": 422, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 15}}, {"id": 424, "type": "argument_list", "text": "(UnprocessedString,buff,n)", "parent": 422, "children": [425, 426, 427], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 41}}, {"id": 425, "type": "identifier", "text": "UnprocessedString", "parent": 424, "children": [], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 33}}, {"id": 426, "type": "identifier", "text": "buff", "parent": 424, "children": [], "start_point": {"row": 149, "column": 34}, "end_point": {"row": 149, "column": 38}}, {"id": 427, "type": "identifier", "text": "n", "parent": 424, "children": [], "start_point": {"row": 149, "column": 39}, "end_point": {"row": 149, "column": 40}}, {"id": 428, "type": "call_expression", "text": "DbgPrint(\"strncmp failed\\n\")", "parent": 420, "children": [429, 430], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 36}}, {"id": 429, "type": "identifier", "text": "DbgPrint", "parent": 428, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 16}}, {"id": 430, "type": "argument_list", "text": "(\"strncmp failed\\n\")", "parent": 428, "children": [431], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 36}}, {"id": 431, "type": "string_literal", "text": "\"strncmp failed\\n\"", "parent": 430, "children": [432], "start_point": {"row": 150, "column": 17}, "end_point": {"row": 150, "column": 35}}, {"id": 432, "type": "escape_sequence", "text": "\\n", "parent": 431, "children": [], "start_point": {"row": 150, "column": 32}, "end_point": {"row": 150, "column": 34}}, {"id": 433, "type": "call_expression", "text": "DbgPrint(\"UnprocessedString contains %s\\n\",ProcessedString)", "parent": 420, "children": [434, 435], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 67}}, {"id": 434, "type": "identifier", "text": "DbgPrint", "parent": 433, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 16}}, {"id": 435, "type": "argument_list", "text": "(\"UnprocessedString contains %s\\n\",ProcessedString)", "parent": 433, "children": [436, 438], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 67}}, {"id": 436, "type": "string_literal", "text": "\"UnprocessedString contains %s\\n\"", "parent": 435, "children": [437], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 151, "column": 50}}, {"id": 437, "type": "escape_sequence", "text": "\\n", "parent": 436, "children": [], "start_point": {"row": 151, "column": 47}, "end_point": {"row": 151, "column": 49}}, {"id": 438, "type": "identifier", "text": "ProcessedString", "parent": 435, "children": [], "start_point": {"row": 151, "column": 51}, "end_point": {"row": 151, "column": 66}}, {"id": 439, "type": "call_expression", "text": "DbgPrint(\"buff contains %s\\n\",buff)", "parent": 420, "children": [440, 441], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 43}}, {"id": 440, "type": "identifier", "text": "DbgPrint", "parent": 439, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 16}}, {"id": 441, "type": "argument_list", "text": "(\"buff contains %s\\n\",buff)", "parent": 439, "children": [442, 444], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 43}}, {"id": 442, "type": "string_literal", "text": "\"buff contains %s\\n\"", "parent": 441, "children": [443], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 37}}, {"id": 443, "type": "escape_sequence", "text": "\\n", "parent": 442, "children": [], "start_point": {"row": 152, "column": 34}, "end_point": {"row": 152, "column": 36}}, {"id": 444, "type": "identifier", "text": "buff", "parent": 441, "children": [], "start_point": {"row": 152, "column": 38}, "end_point": {"row": 152, "column": 42}}, {"id": 445, "type": "call_expression", "text": "DbgBreakPoint()", "parent": 420, "children": [446, 447], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 23}}, {"id": 446, "type": "identifier", "text": "DbgBreakPoint", "parent": 445, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 21}}, {"id": 447, "type": "argument_list", "text": "()", "parent": 445, "children": [], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 23}}, {"id": 448, "type": "call_expression", "text": "DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT\\n\")", "parent": 39, "children": [449, 450], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 54}}, {"id": 449, "type": "identifier", "text": "DbgPrint", "parent": 448, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 12}}, {"id": 450, "type": "argument_list", "text": "(\"input mode is ENABLE_PROCESSED_INPUT\\n\")", "parent": 448, "children": [451], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 54}}, {"id": 451, "type": "string_literal", "text": "\"input mode is ENABLE_PROCESSED_INPUT\\n\"", "parent": 450, "children": [452], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 53}}, {"id": 452, "type": "escape_sequence", "text": "\\n", "parent": 451, "children": [], "start_point": {"row": 163, "column": 50}, "end_point": {"row": 163, "column": 52}}, {"id": 453, "type": "call_expression", "text": "DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\")", "parent": 39, "children": [454, 455], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 56}}, {"id": 454, "type": "identifier", "text": "DbgPrint", "parent": 453, "children": [], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 12}}, {"id": 455, "type": "argument_list", "text": "(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\")", "parent": 453, "children": [456], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 56}}, {"id": 456, "type": "string_literal", "text": "\"output mode is ENABLE_PROCESSED_OUTPUT\\n\"", "parent": 455, "children": [457], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 55}}, {"id": 457, "type": "escape_sequence", "text": "\\n", "parent": 456, "children": [], "start_point": {"row": 164, "column": 52}, "end_point": {"row": 164, "column": 54}}, {"id": 458, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT)", "parent": 39, "children": [459, 460], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 73}}, {"id": 459, "type": "identifier", "text": "SetConsoleMode", "parent": 458, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 18}}, {"id": 460, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT)", "parent": 458, "children": [461, 465], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 73}}, {"id": 461, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 460, "children": [462, 463], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 49}}, {"id": 462, "type": "identifier", "text": "GetStdHandle", "parent": 461, "children": [], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 31}}, {"id": 463, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 461, "children": [464], "start_point": {"row": 165, "column": 31}, "end_point": {"row": 165, "column": 49}}, {"id": 464, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 463, "children": [], "start_point": {"row": 165, "column": 32}, "end_point": {"row": 165, "column": 48}}, {"id": 465, "type": "identifier", "text": "ENABLE_PROCESSED_INPUT", "parent": 460, "children": [], "start_point": {"row": 165, "column": 50}, "end_point": {"row": 165, "column": 72}}, {"id": 466, "type": "call_expression", "text": "DbgPrint(\"type aTabbcdBackspaceCr\\n\")", "parent": 39, "children": [467, 468], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 41}}, {"id": 467, "type": "identifier", "text": "DbgPrint", "parent": 466, "children": [], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 12}}, {"id": 468, "type": "argument_list", "text": "(\"type aTabbcdBackspaceCr\\n\")", "parent": 466, "children": [469], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 41}}, {"id": 469, "type": "string_literal", "text": "\"type aTabbcdBackspaceCr\\n\"", "parent": 468, "children": [470], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 40}}, {"id": 470, "type": "escape_sequence", "text": "\\n", "parent": 469, "children": [], "start_point": {"row": 166, "column": 37}, "end_point": {"row": 166, "column": 39}}, {"id": 471, "type": "call_expression", "text": "DbgPrint(\"no string should be output\\n\")", "parent": 39, "children": [472, 473], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 44}}, {"id": 472, "type": "identifier", "text": "DbgPrint", "parent": 471, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 12}}, {"id": 473, "type": "argument_list", "text": "(\"no string should be output\\n\")", "parent": 471, "children": [474], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 44}}, {"id": 474, "type": "string_literal", "text": "\"no string should be output\\n\"", "parent": 473, "children": [475], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 43}}, {"id": 475, "type": "escape_sequence", "text": "\\n", "parent": 474, "children": [], "start_point": {"row": 167, "column": 40}, "end_point": {"row": 167, "column": 42}}, {"id": 476, "type": "assignment_expression", "text": "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 39, "children": [477, 478, 479], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 73}}, {"id": 477, "type": "identifier", "text": "Success", "parent": 476, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 11}}, {"id": 478, "type": "=", "text": "=", "parent": 476, "children": [], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 13}}, {"id": 479, "type": "call_expression", "text": "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 476, "children": [480, 481], "start_point": {"row": 169, "column": 14}, "end_point": {"row": 169, "column": 73}}, {"id": 480, "type": "identifier", "text": "ReadFile", "parent": 479, "children": [], "start_point": {"row": 169, "column": 14}, "end_point": {"row": 169, "column": 22}}, {"id": 481, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 479, "children": [482, 486, 487, 488, 490], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 73}}, {"id": 482, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 481, "children": [483, 484], "start_point": {"row": 169, "column": 23}, "end_point": {"row": 169, "column": 53}}, {"id": 483, "type": "identifier", "text": "GetStdHandle", "parent": 482, "children": [], "start_point": {"row": 169, "column": 23}, "end_point": {"row": 169, "column": 35}}, {"id": 484, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 482, "children": [485], "start_point": {"row": 169, "column": 35}, "end_point": {"row": 169, "column": 53}}, {"id": 485, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 484, "children": [], "start_point": {"row": 169, "column": 36}, "end_point": {"row": 169, "column": 52}}, {"id": 486, "type": "identifier", "text": "buff", "parent": 481, "children": [], "start_point": {"row": 169, "column": 54}, "end_point": {"row": 169, "column": 58}}, {"id": 487, "type": "number_literal", "text": "512", "parent": 481, "children": [], "start_point": {"row": 169, "column": 59}, "end_point": {"row": 169, "column": 62}}, {"id": 488, "type": "pointer_expression", "text": "&n", "parent": 481, "children": [489], "start_point": {"row": 169, "column": 64}, "end_point": {"row": 169, "column": 66}}, {"id": 489, "type": "identifier", "text": "n", "parent": 488, "children": [], "start_point": {"row": 169, "column": 65}, "end_point": {"row": 169, "column": 66}}, {"id": 490, "type": "null", "text": "NULL", "parent": 481, "children": [491], "start_point": {"row": 169, "column": 68}, "end_point": {"row": 169, "column": 72}}, {"id": 491, "type": "NULL", "text": "NULL", "parent": 490, "children": [], "start_point": {"row": 169, "column": 68}, "end_point": {"row": 169, "column": 72}}, {"id": 492, "type": "if_statement", "text": "if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }", "parent": 39, "children": [493], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 173, "column": 5}}, {"id": 493, "type": "parenthesized_expression", "text": "(!Success)", "parent": 492, "children": [494], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 17}}, {"id": 494, "type": "unary_expression", "text": "!Success", "parent": 493, "children": [495, 496], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 16}}, {"id": 495, "type": "!", "text": "!", "parent": 494, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 9}}, {"id": 496, "type": "identifier", "text": "Success", "parent": 494, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 16}}, {"id": 497, "type": "call_expression", "text": "DbgPrint(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 492, "children": [498, 499], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 63}}, {"id": 498, "type": "identifier", "text": "DbgPrint", "parent": 497, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 16}}, {"id": 499, "type": "argument_list", "text": "(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 497, "children": [500, 502], "start_point": {"row": 171, "column": 16}, "end_point": {"row": 171, "column": 63}}, {"id": 500, "type": "string_literal", "text": "\"ReadFile returned error %d\\n\"", "parent": 499, "children": [501], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 47}}, {"id": 501, "type": "escape_sequence", "text": "\\n", "parent": 500, "children": [], "start_point": {"row": 171, "column": 44}, "end_point": {"row": 171, "column": 46}}, {"id": 502, "type": "call_expression", "text": "GetLastError()", "parent": 499, "children": [503, 504], "start_point": {"row": 171, "column": 48}, "end_point": {"row": 171, "column": 62}}, {"id": 503, "type": "identifier", "text": "GetLastError", "parent": 502, "children": [], "start_point": {"row": 171, "column": 48}, "end_point": {"row": 171, "column": 60}}, {"id": 504, "type": "argument_list", "text": "()", "parent": 502, "children": [], "start_point": {"row": 171, "column": 60}, "end_point": {"row": 171, "column": 62}}, {"id": 505, "type": "return_statement", "text": "return 1;", "parent": 492, "children": [506], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 17}}, {"id": 506, "type": "number_literal", "text": "1", "parent": 505, "children": [], "start_point": {"row": 172, "column": 15}, "end_point": {"row": 172, "column": 16}}, {"id": 507, "type": "declaration", "text": "DWORD i=0;", "parent": 39, "children": [508, 509], "start_point": {"row": 174, "column": 6}, "end_point": {"row": 174, "column": 16}}, {"id": 508, "type": "type_identifier", "text": "DWORD", "parent": 507, "children": [], "start_point": {"row": 174, "column": 6}, "end_point": {"row": 174, "column": 11}}, {"id": 509, "type": "init_declarator", "text": "i=0", "parent": 507, "children": [510, 511, 512], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 15}}, {"id": 510, "type": "identifier", "text": "i", "parent": 509, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 13}}, {"id": 511, "type": "=", "text": "=", "parent": 509, "children": [], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 14}}, {"id": 512, "type": "number_literal", "text": "0", "parent": 509, "children": [], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 15}}, {"id": 513, "type": "declaration", "text": "DWORD j;", "parent": 39, "children": [514, 515], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 14}}, {"id": 514, "type": "type_identifier", "text": "DWORD", "parent": 513, "children": [], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 11}}, {"id": 515, "type": "identifier", "text": "j", "parent": 513, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 13}}, {"id": 516, "type": "while_statement", "text": "while (Success) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n for (j=0;j<n;j++,i++) {\r\n if (UnprocessedString[i] != buff[j]) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString[i] is %c\\n\",UnprocessedString[i]);\r\n DbgPrint(\"buff[j] is %c\\n\",buff[j]);\r\n DbgBreakPoint();\r\n }\r\n }\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n }", "parent": 39, "children": [517], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 191, "column": 5}}, {"id": 517, "type": "parenthesized_expression", "text": "(Success)", "parent": 516, "children": [518], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 19}}, {"id": 518, "type": "identifier", "text": "Success", "parent": 517, "children": [], "start_point": {"row": 176, "column": 11}, "end_point": {"row": 176, "column": 18}}, {"id": 519, "type": "call_expression", "text": "DbgPrint(\"n is %d\\n\",n)", "parent": 516, "children": [520, 521], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 31}}, {"id": 520, "type": "identifier", "text": "DbgPrint", "parent": 519, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 16}}, {"id": 521, "type": "argument_list", "text": "(\"n is %d\\n\",n)", "parent": 519, "children": [522, 524], "start_point": {"row": 177, "column": 16}, "end_point": {"row": 177, "column": 31}}, {"id": 522, "type": "string_literal", "text": "\"n is %d\\n\"", "parent": 521, "children": [523], "start_point": {"row": 177, "column": 17}, "end_point": {"row": 177, "column": 28}}, {"id": 523, "type": "escape_sequence", "text": "\\n", "parent": 522, "children": [], "start_point": {"row": 177, "column": 25}, "end_point": {"row": 177, "column": 27}}, {"id": 524, "type": "identifier", "text": "n", "parent": 521, "children": [], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 30}}, {"id": 525, "type": "for_statement", "text": "for (j=0;j<n;j++,i++) {\r\n if (UnprocessedString[i] != buff[j]) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString[i] is %c\\n\",UnprocessedString[i]);\r\n DbgPrint(\"buff[j] is %c\\n\",buff[j]);\r\n DbgBreakPoint();\r\n }\r\n }", "parent": 516, "children": [526, 530, 534], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 185, "column": 9}}, {"id": 526, "type": "assignment_expression", "text": "j=0", "parent": 525, "children": [527, 528, 529], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 16}}, {"id": 527, "type": "identifier", "text": "j", "parent": 526, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 14}}, {"id": 528, "type": "=", "text": "=", "parent": 526, "children": [], "start_point": {"row": 178, "column": 14}, "end_point": {"row": 178, "column": 15}}, {"id": 529, "type": "number_literal", "text": "0", "parent": 526, "children": [], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 16}}, {"id": 530, "type": "binary_expression", "text": "j<n", "parent": 525, "children": [531, 532, 533], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 20}}, {"id": 531, "type": "identifier", "text": "j", "parent": 530, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 18}}, {"id": 532, "type": "<", "text": "<", "parent": 530, "children": [], "start_point": {"row": 178, "column": 18}, "end_point": {"row": 178, "column": 19}}, {"id": 533, "type": "identifier", "text": "n", "parent": 530, "children": [], "start_point": {"row": 178, "column": 19}, "end_point": {"row": 178, "column": 20}}, {"id": 534, "type": "comma_expression", "text": "j++,i++", "parent": 525, "children": [535, 538], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 28}}, {"id": 535, "type": "update_expression", "text": "j++", "parent": 534, "children": [536, 537], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 24}}, {"id": 536, "type": "identifier", "text": "j", "parent": 535, "children": [], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 22}}, {"id": 537, "type": "++", "text": "++", "parent": 535, "children": [], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 24}}, {"id": 538, "type": "update_expression", "text": "i++", "parent": 534, "children": [539, 540], "start_point": {"row": 178, "column": 25}, "end_point": {"row": 178, "column": 28}}, {"id": 539, "type": "identifier", "text": "i", "parent": 538, "children": [], "start_point": {"row": 178, "column": 25}, "end_point": {"row": 178, "column": 26}}, {"id": 540, "type": "++", "text": "++", "parent": 538, "children": [], "start_point": {"row": 178, "column": 26}, "end_point": {"row": 178, "column": 28}}, {"id": 541, "type": "if_statement", "text": "if (UnprocessedString[i] != buff[j]) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString[i] is %c\\n\",UnprocessedString[i]);\r\n DbgPrint(\"buff[j] is %c\\n\",buff[j]);\r\n DbgBreakPoint();\r\n }", "parent": 525, "children": [542], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 184, "column": 13}}, {"id": 542, "type": "parenthesized_expression", "text": "(UnprocessedString[i] != buff[j])", "parent": 541, "children": [543], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 48}}, {"id": 543, "type": "binary_expression", "text": "UnprocessedString[i] != buff[j]", "parent": 542, "children": [544, 547, 548], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 47}}, {"id": 544, "type": "subscript_expression", "text": "UnprocessedString[i]", "parent": 543, "children": [545, 546], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 36}}, {"id": 545, "type": "identifier", "text": "UnprocessedString", "parent": 544, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 33}}, {"id": 546, "type": "identifier", "text": "i", "parent": 544, "children": [], "start_point": {"row": 179, "column": 34}, "end_point": {"row": 179, "column": 35}}, {"id": 547, "type": "!=", "text": "!=", "parent": 543, "children": [], "start_point": {"row": 179, "column": 37}, "end_point": {"row": 179, "column": 39}}, {"id": 548, "type": "subscript_expression", "text": "buff[j]", "parent": 543, "children": [549, 550], "start_point": {"row": 179, "column": 40}, "end_point": {"row": 179, "column": 47}}, {"id": 549, "type": "identifier", "text": "buff", "parent": 548, "children": [], "start_point": {"row": 179, "column": 40}, "end_point": {"row": 179, "column": 44}}, {"id": 550, "type": "identifier", "text": "j", "parent": 548, "children": [], "start_point": {"row": 179, "column": 45}, "end_point": {"row": 179, "column": 46}}, {"id": 551, "type": "call_expression", "text": "DbgPrint(\"strncmp failed\\n\")", "parent": 541, "children": [552, 553], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 44}}, {"id": 552, "type": "identifier", "text": "DbgPrint", "parent": 551, "children": [], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 24}}, {"id": 553, "type": "argument_list", "text": "(\"strncmp failed\\n\")", "parent": 551, "children": [554], "start_point": {"row": 180, "column": 24}, "end_point": {"row": 180, "column": 44}}, {"id": 554, "type": "string_literal", "text": "\"strncmp failed\\n\"", "parent": 553, "children": [555], "start_point": {"row": 180, "column": 25}, "end_point": {"row": 180, "column": 43}}, {"id": 555, "type": "escape_sequence", "text": "\\n", "parent": 554, "children": [], "start_point": {"row": 180, "column": 40}, "end_point": {"row": 180, "column": 42}}, {"id": 556, "type": "call_expression", "text": "DbgPrint(\"UnprocessedString[i] is %c\\n\",UnprocessedString[i])", "parent": 541, "children": [557, 558], "start_point": {"row": 181, "column": 16}, "end_point": {"row": 181, "column": 77}}, {"id": 557, "type": "identifier", "text": "DbgPrint", "parent": 556, "children": [], "start_point": {"row": 181, "column": 16}, "end_point": {"row": 181, "column": 24}}, {"id": 558, "type": "argument_list", "text": "(\"UnprocessedString[i] is %c\\n\",UnprocessedString[i])", "parent": 556, "children": [559, 561], "start_point": {"row": 181, "column": 24}, "end_point": {"row": 181, "column": 77}}, {"id": 559, "type": "string_literal", "text": "\"UnprocessedString[i] is %c\\n\"", "parent": 558, "children": [560], "start_point": {"row": 181, "column": 25}, "end_point": {"row": 181, "column": 55}}, {"id": 560, "type": "escape_sequence", "text": "\\n", "parent": 559, "children": [], "start_point": {"row": 181, "column": 52}, "end_point": {"row": 181, "column": 54}}, {"id": 561, "type": "subscript_expression", "text": "UnprocessedString[i]", "parent": 558, "children": [562, 563], "start_point": {"row": 181, "column": 56}, "end_point": {"row": 181, "column": 76}}, {"id": 562, "type": "identifier", "text": "UnprocessedString", "parent": 561, "children": [], "start_point": {"row": 181, "column": 56}, "end_point": {"row": 181, "column": 73}}, {"id": 563, "type": "identifier", "text": "i", "parent": 561, "children": [], "start_point": {"row": 181, "column": 74}, "end_point": {"row": 181, "column": 75}}, {"id": 564, "type": "call_expression", "text": "DbgPrint(\"buff[j] is %c\\n\",buff[j])", "parent": 541, "children": [565, 566], "start_point": {"row": 182, "column": 16}, "end_point": {"row": 182, "column": 51}}, {"id": 565, "type": "identifier", "text": "DbgPrint", "parent": 564, "children": [], "start_point": {"row": 182, "column": 16}, "end_point": {"row": 182, "column": 24}}, {"id": 566, "type": "argument_list", "text": "(\"buff[j] is %c\\n\",buff[j])", "parent": 564, "children": [567, 569], "start_point": {"row": 182, "column": 24}, "end_point": {"row": 182, "column": 51}}, {"id": 567, "type": "string_literal", "text": "\"buff[j] is %c\\n\"", "parent": 566, "children": [568], "start_point": {"row": 182, "column": 25}, "end_point": {"row": 182, "column": 42}}, {"id": 568, "type": "escape_sequence", "text": "\\n", "parent": 567, "children": [], "start_point": {"row": 182, "column": 39}, "end_point": {"row": 182, "column": 41}}, {"id": 569, "type": "subscript_expression", "text": "buff[j]", "parent": 566, "children": [570, 571], "start_point": {"row": 182, "column": 43}, "end_point": {"row": 182, "column": 50}}, {"id": 570, "type": "identifier", "text": "buff", "parent": 569, "children": [], "start_point": {"row": 182, "column": 43}, "end_point": {"row": 182, "column": 47}}, {"id": 571, "type": "identifier", "text": "j", "parent": 569, "children": [], "start_point": {"row": 182, "column": 48}, "end_point": {"row": 182, "column": 49}}, {"id": 572, "type": "call_expression", "text": "DbgBreakPoint()", "parent": 541, "children": [573, 574], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 31}}, {"id": 573, "type": "identifier", "text": "DbgBreakPoint", "parent": 572, "children": [], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 29}}, {"id": 574, "type": "argument_list", "text": "()", "parent": 572, "children": [], "start_point": {"row": 183, "column": 29}, "end_point": {"row": 183, "column": 31}}, {"id": 575, "type": "assignment_expression", "text": "Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 516, "children": [576, 577, 578], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 186, "column": 77}}, {"id": 576, "type": "identifier", "text": "Success", "parent": 575, "children": [], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 186, "column": 15}}, {"id": 577, "type": "=", "text": "=", "parent": 575, "children": [], "start_point": {"row": 186, "column": 16}, "end_point": {"row": 186, "column": 17}}, {"id": 578, "type": "call_expression", "text": "ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 575, "children": [579, 580], "start_point": {"row": 186, "column": 18}, "end_point": {"row": 186, "column": 77}}, {"id": 579, "type": "identifier", "text": "ReadFile", "parent": 578, "children": [], "start_point": {"row": 186, "column": 18}, "end_point": {"row": 186, "column": 26}}, {"id": 580, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL)", "parent": 578, "children": [581, 585, 586, 587, 589], "start_point": {"row": 186, "column": 26}, "end_point": {"row": 186, "column": 77}}, {"id": 581, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 580, "children": [582, 583], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 57}}, {"id": 582, "type": "identifier", "text": "GetStdHandle", "parent": 581, "children": [], "start_point": {"row": 186, "column": 27}, "end_point": {"row": 186, "column": 39}}, {"id": 583, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 581, "children": [584], "start_point": {"row": 186, "column": 39}, "end_point": {"row": 186, "column": 57}}, {"id": 584, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 583, "children": [], "start_point": {"row": 186, "column": 40}, "end_point": {"row": 186, "column": 56}}, {"id": 585, "type": "identifier", "text": "buff", "parent": 580, "children": [], "start_point": {"row": 186, "column": 58}, "end_point": {"row": 186, "column": 62}}, {"id": 586, "type": "number_literal", "text": "512", "parent": 580, "children": [], "start_point": {"row": 186, "column": 63}, "end_point": {"row": 186, "column": 66}}, {"id": 587, "type": "pointer_expression", "text": "&n", "parent": 580, "children": [588], "start_point": {"row": 186, "column": 68}, "end_point": {"row": 186, "column": 70}}, {"id": 588, "type": "identifier", "text": "n", "parent": 587, "children": [], "start_point": {"row": 186, "column": 69}, "end_point": {"row": 186, "column": 70}}, {"id": 589, "type": "null", "text": "NULL", "parent": 580, "children": [590], "start_point": {"row": 186, "column": 72}, "end_point": {"row": 186, "column": 76}}, {"id": 590, "type": "NULL", "text": "NULL", "parent": 589, "children": [], "start_point": {"row": 186, "column": 72}, "end_point": {"row": 186, "column": 76}}, {"id": 591, "type": "if_statement", "text": "if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }", "parent": 516, "children": [592], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 190, "column": 9}}, {"id": 592, "type": "parenthesized_expression", "text": "(!Success)", "parent": 591, "children": [593], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 21}}, {"id": 593, "type": "unary_expression", "text": "!Success", "parent": 592, "children": [594, 595], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 20}}, {"id": 594, "type": "!", "text": "!", "parent": 593, "children": [], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 13}}, {"id": 595, "type": "identifier", "text": "Success", "parent": 593, "children": [], "start_point": {"row": 187, "column": 13}, "end_point": {"row": 187, "column": 20}}, {"id": 596, "type": "call_expression", "text": "DbgPrint(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 591, "children": [597, 598], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 67}}, {"id": 597, "type": "identifier", "text": "DbgPrint", "parent": 596, "children": [], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 20}}, {"id": 598, "type": "argument_list", "text": "(\"ReadFile returned error %d\\n\",GetLastError())", "parent": 596, "children": [599, 601], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 67}}, {"id": 599, "type": "string_literal", "text": "\"ReadFile returned error %d\\n\"", "parent": 598, "children": [600], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 51}}, {"id": 600, "type": "escape_sequence", "text": "\\n", "parent": 599, "children": [], "start_point": {"row": 188, "column": 48}, "end_point": {"row": 188, "column": 50}}, {"id": 601, "type": "call_expression", "text": "GetLastError()", "parent": 598, "children": [602, 603], "start_point": {"row": 188, "column": 52}, "end_point": {"row": 188, "column": 66}}, {"id": 602, "type": "identifier", "text": "GetLastError", "parent": 601, "children": [], "start_point": {"row": 188, "column": 52}, "end_point": {"row": 188, "column": 64}}, {"id": 603, "type": "argument_list", "text": "()", "parent": 601, "children": [], "start_point": {"row": 188, "column": 64}, "end_point": {"row": 188, "column": 66}}, {"id": 604, "type": "return_statement", "text": "return 1;", "parent": 591, "children": [605], "start_point": {"row": 189, "column": 12}, "end_point": {"row": 189, "column": 21}}, {"id": 605, "type": "number_literal", "text": "1", "parent": 604, "children": [], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 20}}, {"id": 606, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode)", "parent": 39, "children": [607, 608], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 63}}, {"id": 607, "type": "identifier", "text": "SetConsoleMode", "parent": 606, "children": [], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 18}}, {"id": 608, "type": "argument_list", "text": "(GetStdHandle(STD_INPUT_HANDLE),OldInputMode)", "parent": 606, "children": [609, 613], "start_point": {"row": 193, "column": 18}, "end_point": {"row": 193, "column": 63}}, {"id": 609, "type": "call_expression", "text": "GetStdHandle(STD_INPUT_HANDLE)", "parent": 608, "children": [610, 611], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 49}}, {"id": 610, "type": "identifier", "text": "GetStdHandle", "parent": 609, "children": [], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 31}}, {"id": 611, "type": "argument_list", "text": "(STD_INPUT_HANDLE)", "parent": 609, "children": [612], "start_point": {"row": 193, "column": 31}, "end_point": {"row": 193, "column": 49}}, {"id": 612, "type": "identifier", "text": "STD_INPUT_HANDLE", "parent": 611, "children": [], "start_point": {"row": 193, "column": 32}, "end_point": {"row": 193, "column": 48}}, {"id": 613, "type": "identifier", "text": "OldInputMode", "parent": 608, "children": [], "start_point": {"row": 193, "column": 50}, "end_point": {"row": 193, "column": 62}}, {"id": 614, "type": "call_expression", "text": "SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode)", "parent": 39, "children": [615, 616], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 65}}, {"id": 615, "type": "identifier", "text": "SetConsoleMode", "parent": 614, "children": [], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 18}}, {"id": 616, "type": "argument_list", "text": "(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode)", "parent": 614, "children": [617, 621], "start_point": {"row": 194, "column": 18}, "end_point": {"row": 194, "column": 65}}, {"id": 617, "type": "call_expression", "text": "GetStdHandle(STD_OUTPUT_HANDLE)", "parent": 616, "children": [618, 619], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 50}}, {"id": 618, "type": "identifier", "text": "GetStdHandle", "parent": 617, "children": [], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 31}}, {"id": 619, "type": "argument_list", "text": "(STD_OUTPUT_HANDLE)", "parent": 617, "children": [620], "start_point": {"row": 194, "column": 31}, "end_point": {"row": 194, "column": 50}}, {"id": 620, "type": "identifier", "text": "STD_OUTPUT_HANDLE", "parent": 619, "children": [], "start_point": {"row": 194, "column": 32}, "end_point": {"row": 194, "column": 49}}, {"id": 621, "type": "identifier", "text": "OldOutputMode", "parent": 616, "children": [], "start_point": {"row": 194, "column": 51}, "end_point": {"row": 194, "column": 64}}]}, "node_categories": {"declarations": {"functions": [39, 41], "variables": [17, 28, 44, 46, 49, 53, 57, 62, 507, 513], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [68, 69, 76, 79, 83, 86, 87, 89, 93, 99, 102, 110, 116, 119, 123, 126, 127, 129, 133, 139, 142, 147, 152, 157, 162, 170, 173, 179, 184, 185, 188, 193, 199, 200, 204, 211, 212, 218, 223, 229, 235, 238, 243, 248, 251, 256, 261, 269, 272, 278, 283, 284, 287, 292, 298, 299, 303, 310, 311, 317, 322, 328, 334, 337, 342, 347, 350, 354, 357, 360, 364, 367, 372, 380, 383, 389, 394, 395, 398, 403, 409, 410, 414, 421, 422, 428, 433, 439, 445, 448, 453, 458, 461, 466, 471, 479, 482, 488, 493, 494, 497, 502, 517, 519, 530, 534, 535, 538, 542, 543, 544, 548, 551, 556, 561, 564, 569, 572, 578, 581, 587, 592, 593, 596, 601, 606, 609, 614, 617], "assignments": [65, 73, 107, 113, 167, 266, 377, 476, 526, 575], "loops": [516, 525], "conditionals": [11, 15, 18, 21, 22, 29, 32, 33, 40, 42, 45, 47, 48, 50, 51, 52, 54, 55, 56, 58, 60, 63, 64, 66, 70, 71, 72, 74, 77, 80, 82, 84, 85, 88, 90, 92, 94, 98, 100, 103, 105, 106, 108, 111, 112, 114, 117, 120, 122, 124, 125, 128, 130, 132, 134, 138, 140, 143, 145, 146, 148, 153, 158, 163, 168, 171, 174, 176, 177, 180, 183, 187, 189, 194, 198, 201, 203, 205, 209, 210, 213, 215, 216, 217, 219, 224, 228, 230, 234, 236, 239, 244, 249, 252, 254, 255, 257, 262, 267, 270, 273, 275, 276, 279, 282, 286, 288, 293, 297, 300, 302, 304, 308, 309, 312, 314, 315, 316, 318, 323, 327, 329, 333, 335, 338, 343, 348, 351, 353, 355, 356, 358, 361, 363, 365, 366, 368, 373, 378, 381, 384, 386, 387, 390, 393, 397, 399, 404, 408, 411, 413, 415, 419, 420, 423, 425, 426, 427, 429, 434, 438, 440, 444, 446, 449, 454, 459, 462, 464, 465, 467, 472, 477, 480, 483, 485, 486, 489, 492, 496, 498, 503, 508, 510, 514, 515, 518, 520, 524, 527, 531, 533, 536, 539, 541, 545, 546, 549, 550, 552, 557, 562, 563, 565, 570, 571, 573, 576, 579, 582, 584, 585, 588, 591, 595, 597, 602, 607, 610, 612, 613, 615, 618, 620, 621], "returns": [196, 295, 406, 505, 604], "exceptions": []}, "expressions": {"calls": [3, 6], "literals": [2, 24, 35, 61, 96, 136, 150, 155, 160, 165, 178, 191, 197, 207, 221, 226, 232, 241, 246, 259, 264, 277, 290, 296, 306, 320, 325, 331, 340, 345, 370, 375, 388, 401, 407, 417, 431, 436, 442, 451, 456, 469, 474, 487, 500, 506, 512, 522, 529, 554, 559, 567, 586, 599, 605], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 39, "universal_type": "function", "name": "should", "text_snippet": "DWORD\r\nmain(VOID)\r\n{\r\n BOOL Success;\r\n DWORD OldInputMode,OldOutputMode;\r\n DWORD NewInputMo"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "main(VOID)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"precomp.h\"\r\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/*++\r\n\r\nCopyright (c) 1985 - 1999, Microsoft Corporation\r\n\r\nModule Name:\r\n\r\n tmode.c\r\n\r\nAbstract:\r\n\r\n Console input and output mode test program\r\n\r\nAuthor:\r\n\r\n <NAME> (thereses) 4-Oct-1991\r\n\r\nRevision History:\r\n\r\n--*/\r\n#include \"precomp.h\"\r\n#pragma hdrstop\r\n#pragma hdrstop\r\n\r\n#define UNPROCESSED_LENGTH 7\r\n#define PROCESSED_LENGTH 6\r\nCHAR UnprocessedString[UNPROCESSED_LENGTH] = \"a\\tbcd\\b\\r\";\r\nCHAR ProcessedString[PROCESSED_LENGTH] = \"a\\tbc\\r\\n\";\r\nDWORD\r\nmain(VOID)\r\n{\r\n BOOL Success;\r\n DWORD OldInputMode,OldOutputMode;\r\n DWORD NewInputMode,NewOutputMode;\r\n CHAR buff[512];\r\n DWORD n;\r\n\r\n //\r\n // test input and output modes\r\n //\r\n // Input Mode flags:\r\n //\r\n // ENABLE_PROCESSED_INPUT 0x0001\r\n // ENABLE_LINE_INPUT 0x0002\r\n // ENABLE_ECHO_INPUT 0x0004\r\n // ENABLE_WINDOW_INPUT 0x0008\r\n // ENABLE_MOUSE_INPUT 0x0010\r\n //\r\n // Output Mode flags:\r\n //\r\n // ENABLE_PROCESSED_OUTPUT 0x0001\r\n // ENABLE_WRAP_AT_EOL_OUTPUT 0x0002\r\n //\r\n\r\n NewInputMode = ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT;\r\n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldInputMode\r\n );\r\n if (OldInputMode & NewInputMode != NewInputMode) {\r\n DbgPrint(\"ERROR: OldInputMode is %x\\n\",OldInputMode);\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),NewInputMode);\r\n }\r\n\r\n NewOutputMode = ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT;\r\n Success = GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),\r\n &OldOutputMode\r\n );\r\n if (OldOutputMode & NewOutputMode != NewOutputMode) {\r\n DbgPrint(\"ERROR: OldOutputMode is %x\\n\",OldOutputMode);\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),NewOutputMode);\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_PROCESSED_INPUT - backspace, tab, cr, lf, ctrl-z\r\n // ENABLE_LINE_INPUT - wait for linefeed\r\n // ENABLE_ECHO_INPUT\r\n // ENABLE_PROCESSED_OUTPUT - backspace, tab, cr, lf, bell\r\n //\r\n DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\");\r\n DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\");\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"a bc should be output string\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n if (n != PROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }\r\n if (strncmp(ProcessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_PROCESSED_INPUT\r\n // ENABLE_LINE_INPUT\r\n // ENABLE_ECHO_INPUT\r\n\r\n DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\");\r\n DbgPrint(\"output mode is 0\\n\");\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_WRAP_AT_EOL_OUTPUT);\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"a0x90x8bc0xd0xa should be output string\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n if (n != PROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }\r\n if (strncmp(ProcessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"ProcessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_LINE_INPUT\r\n // ENABLE_ECHO_INPUT\r\n // ENABLE_PROCESSED_OUTPUT\r\n\r\n DbgPrint(\"input mode is ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT\\n\");\r\n DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\");\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT);\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT);\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"a bc should be output string\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n if (n != UNPROCESSED_LENGTH) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n }\r\n if (strncmp(UnprocessedString,buff,n)) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString contains %s\\n\",ProcessedString);\r\n DbgPrint(\"buff contains %s\\n\",buff);\r\n DbgBreakPoint();\r\n }\r\n\r\n //\r\n // mode set:\r\n //\r\n // ENABLE_PROCESSED_INPUT\r\n // ENABLE_PROCESSED_OUTPUT\r\n //\r\n\r\n DbgPrint(\"input mode is ENABLE_PROCESSED_INPUT\\n\");\r\n DbgPrint(\"output mode is ENABLE_PROCESSED_OUTPUT\\n\");\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_PROCESSED_INPUT);\r\n DbgPrint(\"type aTabbcdBackspaceCr\\n\");\r\n DbgPrint(\"no string should be output\\n\");\r\n\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n { DWORD i=0;\r\n DWORD j;\r\n while (Success) {\r\n DbgPrint(\"n is %d\\n\",n);\r\n for (j=0;j<n;j++,i++) {\r\n if (UnprocessedString[i] != buff[j]) {\r\n DbgPrint(\"strncmp failed\\n\");\r\n DbgPrint(\"UnprocessedString[i] is %c\\n\",UnprocessedString[i]);\r\n DbgPrint(\"buff[j] is %c\\n\",buff[j]);\r\n DbgBreakPoint();\r\n }\r\n }\r\n Success = ReadFile(GetStdHandle(STD_INPUT_HANDLE),buff,512, &n, NULL);\r\n if (!Success) {\r\n DbgPrint(\"ReadFile returned error %d\\n\",GetLastError());\r\n return 1;\r\n }\r\n }\r\n }\r\n SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),OldInputMode);\r\n SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE),OldOutputMode);\r\n}\r\n"}
80,425
c
#ifndef OlcbStream_h #define OlcbStream_h /** * Class for handling OpenLCB Streams * * This combines Receiver and Transmitter for now; * perhaps they need to be refactored separately later. *<p> * Basic state machine handles transmission and reception. *<p> * This implementation works with the protocol buffers * without keeping a local copy. Instead, it forwards * individual frames as they arrive. */ class OpenLcbCanBuffer; class LinkControl; class OlcbStream { public: OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link); void check(); bool receivedFrame(OpenLcbCanBuffer* rcv); private: OpenLcbCanBuffer* buffer; unsigned int (*callback)(uint8_t *tbuf, unsigned int length); }; #endif
26.14
29
(translation_unit) "#ifndef OlcbStream_h\n#define OlcbStream_h\n\n/**\n * Class for handling OpenLCB Streams\n *\n * This combines Receiver and Transmitter for now;\n * perhaps they need to be refactored separately later.\n *<p>\n * Basic state machine handles transmission and reception.\n *<p>\n * This implementation works with the protocol buffers\n * without keeping a local copy. Instead, it forwards\n * individual frames as they arrive.\n */\n\nclass OpenLcbCanBuffer;\nclass LinkControl;\n\nclass OlcbStream {\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);\n \n void check(); \n bool receivedFrame(OpenLcbCanBuffer* rcv);\n \n private:\n OpenLcbCanBuffer* buffer;\n unsigned int (*callback)(uint8_t *tbuf, unsigned int length); \n\n};\n\n#endif\n" (preproc_ifdef) "#ifndef OlcbStream_h\n#define OlcbStream_h\n\n/**\n * Class for handling OpenLCB Streams\n *\n * This combines Receiver and Transmitter for now;\n * perhaps they need to be refactored separately later.\n *<p>\n * Basic state machine handles transmission and reception.\n *<p>\n * This implementation works with the protocol buffers\n * without keeping a local copy. Instead, it forwards\n * individual frames as they arrive.\n */\n\nclass OpenLcbCanBuffer;\nclass LinkControl;\n\nclass OlcbStream {\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);\n \n void check(); \n bool receivedFrame(OpenLcbCanBuffer* rcv);\n \n private:\n OpenLcbCanBuffer* buffer;\n unsigned int (*callback)(uint8_t *tbuf, unsigned int length); \n\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "OlcbStream_h" (preproc_def) "#define OlcbStream_h\n" (#define) "#define" (identifier) "OlcbStream_h" (comment) "/**\n * Class for handling OpenLCB Streams\n *\n * This combines Receiver and Transmitter for now;\n * perhaps they need to be refactored separately later.\n *<p>\n * Basic state machine handles transmission and reception.\n *<p>\n * This implementation works with the protocol buffers\n * without keeping a local copy. Instead, it forwards\n * individual frames as they arrive.\n */" (declaration) "class OpenLcbCanBuffer;" (type_identifier) "class" (identifier) "OpenLcbCanBuffer" (;) ";" (declaration) "class LinkControl;" (type_identifier) "class" (identifier) "LinkControl" (;) ";" (function_definition) "class OlcbStream {\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);\n \n void check(); \n bool receivedFrame(OpenLcbCanBuffer* rcv);\n \n private:\n OpenLcbCanBuffer* buffer;\n unsigned int (*callback)(uint8_t *tbuf, unsigned int length); \n\n}" (type_identifier) "class" (identifier) "OlcbStream" (compound_statement) "{\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);\n \n void check(); \n bool receivedFrame(OpenLcbCanBuffer* rcv);\n \n private:\n OpenLcbCanBuffer* buffer;\n unsigned int (*callback)(uint8_t *tbuf, unsigned int length); \n\n}" ({) "{" (labeled_statement) "public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);" (statement_identifier) "public" (:) ":" (expression_statement) "OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);" (call_expression) "OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link)" (identifier) "OlcbStream" (argument_list) "(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link)" (() "(" (binary_expression) "OpenLcbCanBuffer* b" (identifier) "OpenLcbCanBuffer" (*) "*" (identifier) "b" (,) "," (call_expression) "unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length)" (call_expression) "unsigned int (*rcvData)" (identifier) "unsigned" (ERROR) "int" (identifier) "int" (argument_list) "(*rcvData)" (() "(" (pointer_expression) "*rcvData" (*) "*" (identifier) "rcvData" ()) ")" (argument_list) "(uint8_t *tbuf, unsigned int length)" (() "(" (binary_expression) "uint8_t *tbuf" (identifier) "uint8_t" (*) "*" (identifier) "tbuf" (,) "," (identifier) "unsigned" (ERROR) "int length" (identifier) "int" (identifier) "length" ()) ")" (,) "," (binary_expression) "LinkControl* link" (identifier) "LinkControl" (*) "*" (identifier) "link" ()) ")" (;) ";" (declaration) "void check();" (primitive_type) "void" (function_declarator) "check()" (identifier) "check" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool receivedFrame(OpenLcbCanBuffer* rcv);" (primitive_type) "bool" (function_declarator) "receivedFrame(OpenLcbCanBuffer* rcv)" (identifier) "receivedFrame" (parameter_list) "(OpenLcbCanBuffer* rcv)" (() "(" (parameter_declaration) "OpenLcbCanBuffer* rcv" (type_identifier) "OpenLcbCanBuffer" (pointer_declarator) "* rcv" (*) "*" (identifier) "rcv" ()) ")" (;) ";" (labeled_statement) "private:\n OpenLcbCanBuffer* buffer;" (statement_identifier) "private" (:) ":" (declaration) "OpenLcbCanBuffer* buffer;" (type_identifier) "OpenLcbCanBuffer" (pointer_declarator) "* buffer" (*) "*" (identifier) "buffer" (;) ";" (declaration) "unsigned int (*callback)(uint8_t *tbuf, unsigned int length);" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "(*callback)(uint8_t *tbuf, unsigned int length)" (parenthesized_declarator) "(*callback)" (() "(" (pointer_declarator) "*callback" (*) "*" (identifier) "callback" ()) ")" (parameter_list) "(uint8_t *tbuf, unsigned int length)" (() "(" (parameter_declaration) "uint8_t *tbuf" (primitive_type) "uint8_t" (pointer_declarator) "*tbuf" (*) "*" (identifier) "tbuf" (,) "," (parameter_declaration) "unsigned int length" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "length" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
124
2
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 26.14, "nodes": 84, "errors": 0, "source_hash": "2d608e679e25ee941540faa58bf9661a6b38188e88559bcceb52c516e8f33f3d", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef OlcbStream_h\n#define OlcbStream_h\n\n/**\n * Class for handling OpenLCB Streams\n *\n * This combines Receiver and Transmitter for now;\n * perhaps they need to be refactored separately later.\n *<p>\n * Basic state machine handles transmission and reception.\n *<p>\n * This implementation works with the protocol buffers\n * without keeping a local copy. Instead, it forwards\n * individual frames as they arrive.\n */\n\nclass OpenLcbCanBuffer;\nclass LinkControl;\n\nclass OlcbStream {\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);\n \n void check(); \n bool receivedFrame(OpenLcbCanBuffer* rcv);\n \n private:\n OpenLcbCanBuffer* buffer;\n unsigned int (*callback)(uint8_t *tbuf, unsigned int length); \n\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 8, 10, 83], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "OlcbStream_h", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define OlcbStream_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": "OlcbStream_h", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "declaration", "text": "class OpenLcbCanBuffer;", "parent": 0, "children": [7], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 23}}, {"id": 7, "type": "identifier", "text": "OpenLcbCanBuffer", "parent": 6, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 22}}, {"id": 8, "type": "declaration", "text": "class LinkControl;", "parent": 0, "children": [9], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 18}}, {"id": 9, "type": "identifier", "text": "LinkControl", "parent": 8, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 17}}, {"id": 10, "type": "function_definition", "text": "class OlcbStream {\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);\n \n void check(); \n bool receivedFrame(OpenLcbCanBuffer* rcv);\n \n private:\n OpenLcbCanBuffer* buffer;\n unsigned int (*callback)(uint8_t *tbuf, unsigned int length); \n\n}", "parent": 0, "children": [11], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 11, "type": "identifier", "text": "OlcbStream", "parent": 10, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 16}}, {"id": 12, "type": "labeled_statement", "text": "public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);", "parent": 10, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 22, "column": 114}}, {"id": 13, "type": "call_expression", "text": "OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link)", "parent": 12, "children": [14, 15], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 113}}, {"id": 14, "type": "identifier", "text": "OlcbStream", "parent": 13, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 12}}, {"id": 15, "type": "argument_list", "text": "(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link)", "parent": 13, "children": [16, 20, 38], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 113}}, {"id": 16, "type": "binary_expression", "text": "OpenLcbCanBuffer* b", "parent": 15, "children": [17, 18, 19], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 32}}, {"id": 17, "type": "identifier", "text": "OpenLcbCanBuffer", "parent": 16, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 29}}, {"id": 18, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 19, "type": "identifier", "text": "b", "parent": 16, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 20, "type": "call_expression", "text": "unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length)", "parent": 15, "children": [21, 29], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 93}}, {"id": 21, "type": "call_expression", "text": "unsigned int (*rcvData)", "parent": 20, "children": [22, 23, 25], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 57}}, {"id": 22, "type": "identifier", "text": "unsigned", "parent": 21, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 42}}, {"id": 23, "type": "ERROR", "text": "int", "parent": 21, "children": [24], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 46}}, {"id": 24, "type": "identifier", "text": "int", "parent": 23, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 46}}, {"id": 25, "type": "argument_list", "text": "(*rcvData)", "parent": 21, "children": [26], "start_point": {"row": 22, "column": 47}, "end_point": {"row": 22, "column": 57}}, {"id": 26, "type": "pointer_expression", "text": "*rcvData", "parent": 25, "children": [27, 28], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 56}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 49}}, {"id": 28, "type": "identifier", "text": "rcvData", "parent": 26, "children": [], "start_point": {"row": 22, "column": 49}, "end_point": {"row": 22, "column": 56}}, {"id": 29, "type": "argument_list", "text": "(uint8_t *tbuf, unsigned int length)", "parent": 20, "children": [30, 34, 35], "start_point": {"row": 22, "column": 57}, "end_point": {"row": 22, "column": 93}}, {"id": 30, "type": "binary_expression", "text": "uint8_t *tbuf", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 71}}, {"id": 31, "type": "identifier", "text": "uint8_t", "parent": 30, "children": [], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 65}}, {"id": 32, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 22, "column": 66}, "end_point": {"row": 22, "column": 67}}, {"id": 33, "type": "identifier", "text": "tbuf", "parent": 30, "children": [], "start_point": {"row": 22, "column": 67}, "end_point": {"row": 22, "column": 71}}, {"id": 34, "type": "identifier", "text": "unsigned", "parent": 29, "children": [], "start_point": {"row": 22, "column": 73}, "end_point": {"row": 22, "column": 81}}, {"id": 35, "type": "ERROR", "text": "int length", "parent": 29, "children": [36, 37], "start_point": {"row": 22, "column": 82}, "end_point": {"row": 22, "column": 92}}, {"id": 36, "type": "identifier", "text": "int", "parent": 35, "children": [], "start_point": {"row": 22, "column": 82}, "end_point": {"row": 22, "column": 85}}, {"id": 37, "type": "identifier", "text": "length", "parent": 35, "children": [], "start_point": {"row": 22, "column": 86}, "end_point": {"row": 22, "column": 92}}, {"id": 38, "type": "binary_expression", "text": "LinkControl* link", "parent": 15, "children": [39, 40, 41], "start_point": {"row": 22, "column": 95}, "end_point": {"row": 22, "column": 112}}, {"id": 39, "type": "identifier", "text": "LinkControl", "parent": 38, "children": [], "start_point": {"row": 22, "column": 95}, "end_point": {"row": 22, "column": 106}}, {"id": 40, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 22, "column": 106}, "end_point": {"row": 22, "column": 107}}, {"id": 41, "type": "identifier", "text": "link", "parent": 38, "children": [], "start_point": {"row": 22, "column": 108}, "end_point": {"row": 22, "column": 112}}, {"id": 42, "type": "declaration", "text": "void check();", "parent": 10, "children": [43, 44], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 15}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 44, "type": "function_declarator", "text": "check()", "parent": 42, "children": [45, 46], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 14}}, {"id": 45, "type": "identifier", "text": "check", "parent": 44, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 12}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 14}}, {"id": 47, "type": "declaration", "text": "bool receivedFrame(OpenLcbCanBuffer* rcv);", "parent": 10, "children": [48, 49], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 44}}, {"id": 48, "type": "primitive_type", "text": "bool", "parent": 47, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 6}}, {"id": 49, "type": "function_declarator", "text": "receivedFrame(OpenLcbCanBuffer* rcv)", "parent": 47, "children": [50, 51], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 43}}, {"id": 50, "type": "identifier", "text": "receivedFrame", "parent": 49, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 20}}, {"id": 51, "type": "parameter_list", "text": "(OpenLcbCanBuffer* rcv)", "parent": 49, "children": [52], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 43}}, {"id": 52, "type": "parameter_declaration", "text": "OpenLcbCanBuffer* rcv", "parent": 51, "children": [53, 54], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 42}}, {"id": 53, "type": "type_identifier", "text": "OpenLcbCanBuffer", "parent": 52, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 37}}, {"id": 54, "type": "pointer_declarator", "text": "* rcv", "parent": 52, "children": [55, 56], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 42}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 38}}, {"id": 56, "type": "identifier", "text": "rcv", "parent": 54, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 42}}, {"id": 57, "type": "labeled_statement", "text": "private:\n OpenLcbCanBuffer* buffer;", "parent": 10, "children": [58], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 28, "column": 27}}, {"id": 58, "type": "declaration", "text": "OpenLcbCanBuffer* buffer;", "parent": 57, "children": [59, 60], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 27}}, {"id": 59, "type": "type_identifier", "text": "OpenLcbCanBuffer", "parent": 58, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 60, "type": "pointer_declarator", "text": "* buffer", "parent": 58, "children": [61, 62], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 26}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 19}}, {"id": 62, "type": "identifier", "text": "buffer", "parent": 60, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 26}}, {"id": 63, "type": "declaration", "text": "unsigned int (*callback)(uint8_t *tbuf, unsigned int length);", "parent": 10, "children": [64, 67], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 63}}, {"id": 64, "type": "sized_type_specifier", "text": "unsigned int", "parent": 63, "children": [65, 66], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 14}}, {"id": 65, "type": "unsigned", "text": "unsigned", "parent": 64, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 10}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 64, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 14}}, {"id": 67, "type": "function_declarator", "text": "(*callback)(uint8_t *tbuf, unsigned int length)", "parent": 63, "children": [68, 72], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 62}}, {"id": 68, "type": "parenthesized_declarator", "text": "(*callback)", "parent": 67, "children": [69], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 26}}, {"id": 69, "type": "pointer_declarator", "text": "*callback", "parent": 68, "children": [70, 71], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 25}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 71, "type": "identifier", "text": "callback", "parent": 69, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 25}}, {"id": 72, "type": "parameter_list", "text": "(uint8_t *tbuf, unsigned int length)", "parent": 67, "children": [73, 78], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 62}}, {"id": 73, "type": "parameter_declaration", "text": "uint8_t *tbuf", "parent": 72, "children": [74, 75], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 40}}, {"id": 74, "type": "primitive_type", "text": "uint8_t", "parent": 73, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 34}}, {"id": 75, "type": "pointer_declarator", "text": "*tbuf", "parent": 73, "children": [76, 77], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 40}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 36}}, {"id": 77, "type": "identifier", "text": "tbuf", "parent": 75, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 40}}, {"id": 78, "type": "parameter_declaration", "text": "unsigned int length", "parent": 72, "children": [79, 82], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 61}}, {"id": 79, "type": "sized_type_specifier", "text": "unsigned int", "parent": 78, "children": [80, 81], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 54}}, {"id": 80, "type": "unsigned", "text": "unsigned", "parent": 79, "children": [], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 50}}, {"id": 81, "type": "primitive_type", "text": "int", "parent": 79, "children": [], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 54}}, {"id": 82, "type": "identifier", "text": "length", "parent": 78, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 61}}, {"id": 83, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}]}, "node_categories": {"declarations": {"functions": [10, 44, 49, 67], "variables": [6, 8, 42, 47, 52, 58, 63, 73, 78], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [13, 16, 20, 21, 26, 30, 38], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 9, 11, 14, 17, 19, 22, 24, 28, 31, 33, 34, 36, 37, 39, 41, 45, 50, 53, 56, 59, 62, 64, 71, 77, 79, 82, 83], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "OlcbStream", "text_snippet": "class OlcbStream {\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *t"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "check()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "receivedFrame(OpenLcbCanBuffer* rcv)"}, {"node_id": 67, "universal_type": "function", "name": "length)", "text_snippet": "(*callback)(uint8_t *tbuf, unsigned int length)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef OlcbStream_h\n#define OlcbStream_h\n\n/**\n * Class for handling OpenLCB Streams\n *\n * This combines Receiver and Transmitter for now;\n * perhaps they need to be refactored separately later.\n *<p>\n * Basic state machine handles transmission and reception.\n *<p>\n * This implementation works with the protocol buffers\n * without keeping a local copy. Instead, it forwards\n * individual frames as they arrive.\n */\n\nclass OpenLcbCanBuffer;\nclass LinkControl;\n\nclass OlcbStream {\n public:\n \n OlcbStream(OpenLcbCanBuffer* b, unsigned int (*rcvData)(uint8_t *tbuf, unsigned int length), LinkControl* link);\n \n void check(); \n bool receivedFrame(OpenLcbCanBuffer* rcv);\n \n private:\n OpenLcbCanBuffer* buffer;\n unsigned int (*callback)(uint8_t *tbuf, unsigned int length); \n\n};\n\n#endif\n"}
80,426
c
#include"stdio.h" #include"5a.h" int main() { char parenthesis_sequence[100]; int number_of_inputs = 0; scanf("%d", &number_of_inputs); for(int counter = 0; counter < number_of_inputs; ++ counter) { scanf("%s", parenthesis_sequence); printf("%d\n", match_parenthesis(parenthesis_sequence)); } return 0; }
25.25
12
(translation_unit) "#include"stdio.h"\n#include"5a.h"\nint main() {\n char parenthesis_sequence[100];\n int number_of_inputs = 0;\n scanf("%d", &number_of_inputs);\n for(int counter = 0; counter < number_of_inputs; ++ counter) {\n scanf("%s", parenthesis_sequence);\n printf("%d\n", match_parenthesis(parenthesis_sequence));\n }\n return 0;\n}\n\n" (preproc_include) "#include"stdio.h"\n" (#include) "#include" (string_literal) ""stdio.h"" (") """ (string_content) "stdio.h" (") """ (preproc_include) "#include"5a.h"\n" (#include) "#include" (string_literal) ""5a.h"" (") """ (string_content) "5a.h" (") """ (function_definition) "int main() {\n char parenthesis_sequence[100];\n int number_of_inputs = 0;\n scanf("%d", &number_of_inputs);\n for(int counter = 0; counter < number_of_inputs; ++ counter) {\n scanf("%s", parenthesis_sequence);\n printf("%d\n", match_parenthesis(parenthesis_sequence));\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n char parenthesis_sequence[100];\n int number_of_inputs = 0;\n scanf("%d", &number_of_inputs);\n for(int counter = 0; counter < number_of_inputs; ++ counter) {\n scanf("%s", parenthesis_sequence);\n printf("%d\n", match_parenthesis(parenthesis_sequence));\n }\n return 0;\n}" ({) "{" (declaration) "char parenthesis_sequence[100];" (primitive_type) "char" (array_declarator) "parenthesis_sequence[100]" (identifier) "parenthesis_sequence" ([) "[" (number_literal) "100" (]) "]" (;) ";" (declaration) "int number_of_inputs = 0;" (primitive_type) "int" (init_declarator) "number_of_inputs = 0" (identifier) "number_of_inputs" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "scanf("%d", &number_of_inputs);" (call_expression) "scanf("%d", &number_of_inputs)" (identifier) "scanf" (argument_list) "("%d", &number_of_inputs)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&number_of_inputs" (&) "&" (identifier) "number_of_inputs" ()) ")" (;) ";" (for_statement) "for(int counter = 0; counter < number_of_inputs; ++ counter) {\n scanf("%s", parenthesis_sequence);\n printf("%d\n", match_parenthesis(parenthesis_sequence));\n }" (for) "for" (() "(" (declaration) "int counter = 0;" (primitive_type) "int" (init_declarator) "counter = 0" (identifier) "counter" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "counter < number_of_inputs" (identifier) "counter" (<) "<" (identifier) "number_of_inputs" (;) ";" (update_expression) "++ counter" (++) "++" (identifier) "counter" ()) ")" (compound_statement) "{\n scanf("%s", parenthesis_sequence);\n printf("%d\n", match_parenthesis(parenthesis_sequence));\n }" ({) "{" (expression_statement) "scanf("%s", parenthesis_sequence);" (call_expression) "scanf("%s", parenthesis_sequence)" (identifier) "scanf" (argument_list) "("%s", parenthesis_sequence)" (() "(" (string_literal) ""%s"" (") """ (string_content) "%s" (") """ (,) "," (identifier) "parenthesis_sequence" ()) ")" (;) ";" (expression_statement) "printf("%d\n", match_parenthesis(parenthesis_sequence));" (call_expression) "printf("%d\n", match_parenthesis(parenthesis_sequence))" (identifier) "printf" (argument_list) "("%d\n", match_parenthesis(parenthesis_sequence))" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "match_parenthesis(parenthesis_sequence)" (identifier) "match_parenthesis" (argument_list) "(parenthesis_sequence)" (() "(" (identifier) "parenthesis_sequence" ()) ")" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
111
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 25.25, "nodes": 58, "errors": 0, "source_hash": "2910c402b5817cc9a9ae9acbaca46bf97782fc6e1200fc856e8b8047cd891619", "categorized_nodes": 41}, "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": "string_literal", "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\"5a.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": "\"5a.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 14}}, {"id": 6, "type": "function_definition", "text": "int main() {\n\tchar parenthesis_sequence[100];\n\tint number_of_inputs = 0;\n\tscanf(\"%d\", &number_of_inputs);\n\tfor(int counter = 0; counter < number_of_inputs; ++ counter) {\n\t\tscanf(\"%s\", parenthesis_sequence);\n\t\tprintf(\"%d\\n\", match_parenthesis(parenthesis_sequence));\n\t}\n\treturn 0;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 8, "type": "function_declarator", "text": "main()", "parent": 6, "children": [9, 10], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 10}}, {"id": 9, "type": "identifier", "text": "main", "parent": 8, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 8}}, {"id": 10, "type": "parameter_list", "text": "()", "parent": 8, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 10}}, {"id": 11, "type": "declaration", "text": "char parenthesis_sequence[100];", "parent": 6, "children": [12, 13], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 32}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 5}}, {"id": 13, "type": "array_declarator", "text": "parenthesis_sequence[100]", "parent": 11, "children": [14, 15], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 31}}, {"id": 14, "type": "identifier", "text": "parenthesis_sequence", "parent": 13, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 26}}, {"id": 15, "type": "number_literal", "text": "100", "parent": 13, "children": [], "start_point": {"row": 3, "column": 27}, "end_point": {"row": 3, "column": 30}}, {"id": 16, "type": "declaration", "text": "int number_of_inputs = 0;", "parent": 6, "children": [17, 18], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 26}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 4}}, {"id": 18, "type": "init_declarator", "text": "number_of_inputs = 0", "parent": 16, "children": [19, 20, 21], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 25}}, {"id": 19, "type": "identifier", "text": "number_of_inputs", "parent": 18, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 21}}, {"id": 20, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 23}}, {"id": 21, "type": "number_literal", "text": "0", "parent": 18, "children": [], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 25}}, {"id": 22, "type": "call_expression", "text": "scanf(\"%d\", &number_of_inputs)", "parent": 6, "children": [23, 24], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 31}}, {"id": 23, "type": "identifier", "text": "scanf", "parent": 22, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 6}}, {"id": 24, "type": "argument_list", "text": "(\"%d\", &number_of_inputs)", "parent": 22, "children": [25, 26], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 31}}, {"id": 25, "type": "string_literal", "text": "\"%d\"", "parent": 24, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 11}}, {"id": 26, "type": "pointer_expression", "text": "&number_of_inputs", "parent": 24, "children": [27], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 30}}, {"id": 27, "type": "identifier", "text": "number_of_inputs", "parent": 26, "children": [], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 30}}, {"id": 28, "type": "for_statement", "text": "for(int counter = 0; counter < number_of_inputs; ++ counter) {\n\t\tscanf(\"%s\", parenthesis_sequence);\n\t\tprintf(\"%d\\n\", match_parenthesis(parenthesis_sequence));\n\t}", "parent": 6, "children": [29, 35, 39], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 9, "column": 2}}, {"id": 29, "type": "declaration", "text": "int counter = 0;", "parent": 28, "children": [30, 31], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 21}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 8}}, {"id": 31, "type": "init_declarator", "text": "counter = 0", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 20}}, {"id": 32, "type": "identifier", "text": "counter", "parent": 31, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 16}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 18}}, {"id": 34, "type": "number_literal", "text": "0", "parent": 31, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 20}}, {"id": 35, "type": "binary_expression", "text": "counter < number_of_inputs", "parent": 28, "children": [36, 37, 38], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 48}}, {"id": 36, "type": "identifier", "text": "counter", "parent": 35, "children": [], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 29}}, {"id": 37, "type": "<", "text": "<", "parent": 35, "children": [], "start_point": {"row": 6, "column": 30}, "end_point": {"row": 6, "column": 31}}, {"id": 38, "type": "identifier", "text": "number_of_inputs", "parent": 35, "children": [], "start_point": {"row": 6, "column": 32}, "end_point": {"row": 6, "column": 48}}, {"id": 39, "type": "update_expression", "text": "++ counter", "parent": 28, "children": [40, 41], "start_point": {"row": 6, "column": 50}, "end_point": {"row": 6, "column": 60}}, {"id": 40, "type": "++", "text": "++", "parent": 39, "children": [], "start_point": {"row": 6, "column": 50}, "end_point": {"row": 6, "column": 52}}, {"id": 41, "type": "identifier", "text": "counter", "parent": 39, "children": [], "start_point": {"row": 6, "column": 53}, "end_point": {"row": 6, "column": 60}}, {"id": 42, "type": "call_expression", "text": "scanf(\"%s\", parenthesis_sequence)", "parent": 28, "children": [43, 44], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 35}}, {"id": 43, "type": "identifier", "text": "scanf", "parent": 42, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 7}}, {"id": 44, "type": "argument_list", "text": "(\"%s\", parenthesis_sequence)", "parent": 42, "children": [45, 46], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 35}}, {"id": 45, "type": "string_literal", "text": "\"%s\"", "parent": 44, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 12}}, {"id": 46, "type": "identifier", "text": "parenthesis_sequence", "parent": 44, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 34}}, {"id": 47, "type": "call_expression", "text": "printf(\"%d\\n\", match_parenthesis(parenthesis_sequence))", "parent": 28, "children": [48, 49], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 57}}, {"id": 48, "type": "identifier", "text": "printf", "parent": 47, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 8}}, {"id": 49, "type": "argument_list", "text": "(\"%d\\n\", match_parenthesis(parenthesis_sequence))", "parent": 47, "children": [50, 52], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 57}}, {"id": 50, "type": "string_literal", "text": "\"%d\\n\"", "parent": 49, "children": [51], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 15}}, {"id": 51, "type": "escape_sequence", "text": "\\n", "parent": 50, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 14}}, {"id": 52, "type": "call_expression", "text": "match_parenthesis(parenthesis_sequence)", "parent": 49, "children": [53, 54], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 56}}, {"id": 53, "type": "identifier", "text": "match_parenthesis", "parent": 52, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 34}}, {"id": 54, "type": "argument_list", "text": "(parenthesis_sequence)", "parent": 52, "children": [55], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 56}}, {"id": 55, "type": "identifier", "text": "parenthesis_sequence", "parent": 54, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 55}}, {"id": 56, "type": "return_statement", "text": "return 0;", "parent": 6, "children": [57], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 57, "type": "number_literal", "text": "0", "parent": 56, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 16, 29], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [22, 26, 35, 39, 42, 47, 52], "assignments": [], "loops": [28], "conditionals": [9, 14, 19, 23, 27, 32, 36, 38, 41, 43, 46, 48, 53, 55], "returns": [56], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 15, 21, 25, 34, 45, 50, 57], "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\tchar parenthesis_sequence[100];\n\tint number_of_inputs = 0;\n\tscanf(\"%d\", &number_of_inp"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include\"stdio.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include\"5a.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include\"stdio.h\"\n#include\"5a.h\"\nint main() {\n\tchar parenthesis_sequence[100];\n\tint number_of_inputs = 0;\n\tscanf(\"%d\", &number_of_inputs);\n\tfor(int counter = 0; counter < number_of_inputs; ++ counter) {\n\t\tscanf(\"%s\", parenthesis_sequence);\n\t\tprintf(\"%d\\n\", match_parenthesis(parenthesis_sequence));\n\t}\n\treturn 0;\n}\n\n"}
80,427
c
#ifndef ALIVFRIENDEVENT_H #define ALIVFRIENDEVENT_H #include "Rtypes.h" #include "TObject.h" #include "AliVMisc.h" class AliVfriendTrack; class AliVVZEROfriend; class AliESDVZEROfriend; //_____________________________________________________________________________ class AliVfriendEvent: public TObject { public: AliVfriendEvent() {} AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){} virtual ~AliVfriendEvent() {} // constructor and method for reinitialisation of virtual table AliVfriendEvent( AliVConstructorReinitialisationFlag ); void Reinitialize(){} // do nothing virtual Int_t GetNumberOfTracks() const = 0; virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0; virtual Int_t GetEntriesInTracks() const = 0; virtual AliVVZEROfriend* GetVVZEROfriend() = 0; // AliESDTZEROfriend *GetTZEROfriend(); virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0; virtual void Ls() const = 0; virtual void Reset() = 0; // bit manipulation for filtering virtual void SetSkipBit(Bool_t skip) = 0; virtual Bool_t TestSkipBit() const = 0; //TPC cluster occupancy virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0; virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0; virtual ULong64_t GetSize() const {return 0;} private: AliVfriendEvent& operator=(const AliVfriendEvent& esd); ClassDef(AliVfriendEvent, 0) // base class for AliEvent data }; #pragma GCC diagnostic ignored "-Weffc++" inline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){} // do nothing #pragma GCC diagnostic warning "-Weffc++" #endif
36.18
44
(translation_unit) "#ifndef ALIVFRIENDEVENT_H\n#define ALIVFRIENDEVENT_H\n\n#include "Rtypes.h"\n#include "TObject.h"\n#include "AliVMisc.h"\nclass AliVfriendTrack;\nclass AliVVZEROfriend;\nclass AliESDVZEROfriend;\n\n//_____________________________________________________________________________\nclass AliVfriendEvent: public TObject {\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}\n\n virtual ~AliVfriendEvent() {}\n\n // constructor and method for reinitialisation of virtual table\n AliVfriendEvent( AliVConstructorReinitialisationFlag );\n void Reinitialize(){} // do nothing\n\n virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}\n\nprivate: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);\n \n \n \n ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};\n\n#pragma GCC diagnostic ignored "-Weffc++" \ninline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){} // do nothing\n#pragma GCC diagnostic warning "-Weffc++" \n\n#endif\n\n" (preproc_ifdef) "#ifndef ALIVFRIENDEVENT_H\n#define ALIVFRIENDEVENT_H\n\n#include "Rtypes.h"\n#include "TObject.h"\n#include "AliVMisc.h"\nclass AliVfriendTrack;\nclass AliVVZEROfriend;\nclass AliESDVZEROfriend;\n\n//_____________________________________________________________________________\nclass AliVfriendEvent: public TObject {\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}\n\n virtual ~AliVfriendEvent() {}\n\n // constructor and method for reinitialisation of virtual table\n AliVfriendEvent( AliVConstructorReinitialisationFlag );\n void Reinitialize(){} // do nothing\n\n virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}\n\nprivate: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);\n \n \n \n ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};\n\n#pragma GCC diagnostic ignored "-Weffc++" \ninline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){} // do nothing\n#pragma GCC diagnostic warning "-Weffc++" \n\n#endif" (#ifndef) "#ifndef" (identifier) "ALIVFRIENDEVENT_H" (preproc_def) "#define ALIVFRIENDEVENT_H\n" (#define) "#define" (identifier) "ALIVFRIENDEVENT_H" (preproc_include) "#include "Rtypes.h"\n" (#include) "#include" (string_literal) ""Rtypes.h"" (") """ (string_content) "Rtypes.h" (") """ (preproc_include) "#include "TObject.h"\n" (#include) "#include" (string_literal) ""TObject.h"" (") """ (string_content) "TObject.h" (") """ (preproc_include) "#include "AliVMisc.h"\n" (#include) "#include" (string_literal) ""AliVMisc.h"" (") """ (string_content) "AliVMisc.h" (") """ (declaration) "class AliVfriendTrack;" (type_identifier) "class" (identifier) "AliVfriendTrack" (;) ";" (declaration) "class AliVVZEROfriend;" (type_identifier) "class" (identifier) "AliVVZEROfriend" (;) ";" (declaration) "class AliESDVZEROfriend;" (type_identifier) "class" (identifier) "AliESDVZEROfriend" (;) ";" (comment) "//_____________________________________________________________________________" (function_definition) "class AliVfriendEvent: public TObject {\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}\n\n virtual ~AliVfriendEvent() {}\n\n // constructor and method for reinitialisation of virtual table\n AliVfriendEvent( AliVConstructorReinitialisationFlag );\n void Reinitialize(){} // do nothing\n\n virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}\n\nprivate: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);\n \n \n \n ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};\n\n#pragma GCC diagnostic ignored "-Weffc++" \ninline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){}" (type_identifier) "class" (identifier) "AliVfriendEvent" (ERROR) ": public TObject" (:) ":" (identifier) "public" (identifier) "TObject" (compound_statement) "{\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}\n\n virtual ~AliVfriendEvent() {}\n\n // constructor and method for reinitialisation of virtual table\n AliVfriendEvent( AliVConstructorReinitialisationFlag );\n void Reinitialize(){} // do nothing\n\n virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}\n\nprivate: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);\n \n \n \n ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};\n\n#pragma GCC diagnostic ignored "-Weffc++" \ninline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){}" ({) "{" (labeled_statement) "public:\n AliVfriendEvent()" (statement_identifier) "public" (:) ":" (expression_statement) "AliVfriendEvent()" (call_expression) "AliVfriendEvent()" (identifier) "AliVfriendEvent" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}" (macro_type_specifier) "AliVfriendEvent(const AliVfriendEvent &f)" (identifier) "AliVfriendEvent" (() "(" (type_descriptor) "const AliVfriendEvent" (type_qualifier) "const" (const) "const" (type_identifier) "AliVfriendEvent" (ERROR) "&f" (&) "&" (identifier) "f" ()) ")" (ERROR) ":" (:) ":" (function_declarator) "TObject(f)" (identifier) "TObject" (parameter_list) "(f)" (() "(" (parameter_declaration) "f" (type_identifier) "f" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "virtual ~AliVfriendEvent() {}" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "AliVfriendEvent()" (identifier) "AliVfriendEvent" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (comment) "// constructor and method for reinitialisation of virtual table" (expression_statement) "AliVfriendEvent( AliVConstructorReinitialisationFlag );" (call_expression) "AliVfriendEvent( AliVConstructorReinitialisationFlag )" (identifier) "AliVfriendEvent" (argument_list) "( AliVConstructorReinitialisationFlag )" (() "(" (identifier) "AliVConstructorReinitialisationFlag" ()) ")" (;) ";" (function_definition) "void Reinitialize(){}" (primitive_type) "void" (function_declarator) "Reinitialize()" (identifier) "Reinitialize" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (comment) "// do nothing" (function_definition) "virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}" (type_identifier) "virtual" (ERROR) "Int_t" (identifier) "Int_t" (function_declarator) "GetNumberOfTracks()" (identifier) "GetNumberOfTracks" (parameter_list) "()" (() "(" ()) ")" (declaration) "const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;" (type_qualifier) "const" (const) "const" (ERROR) "= 0;" (=) "=" (number_literal) "0" (;) ";" (type_identifier) "virtual" (type_qualifier) "const" (const) "const" (ERROR) "AliVfriendTrack" (identifier) "AliVfriendTrack" (init_declarator) "*GetTrack(Int_t /*i*/) const = 0" (pointer_declarator) "*GetTrack(Int_t /*i*/) const" (*) "*" (function_declarator) "GetTrack(Int_t /*i*/) const" (identifier) "GetTrack" (parameter_list) "(Int_t /*i*/)" (() "(" (parameter_declaration) "Int_t" (type_identifier) "Int_t" (comment) "/*i*/" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual Int_t GetEntriesInTracks() const = 0;" (type_identifier) "virtual" (ERROR) "Int_t" (identifier) "Int_t" (init_declarator) "GetEntriesInTracks() const = 0" (function_declarator) "GetEntriesInTracks() const" (identifier) "GetEntriesInTracks" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual AliVVZEROfriend* GetVVZEROfriend() = 0;" (type_identifier) "virtual" (ERROR) "AliVVZEROfriend" (identifier) "AliVVZEROfriend" (init_declarator) "* GetVVZEROfriend() = 0" (pointer_declarator) "* GetVVZEROfriend()" (*) "*" (function_declarator) "GetVVZEROfriend()" (identifier) "GetVVZEROfriend" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "// AliESDTZEROfriend *GetTZEROfriend();" (declaration) "virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;" (type_identifier) "virtual" (ERROR) "Int_t" (identifier) "Int_t" (init_declarator) "GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0" (function_declarator) "GetESDVZEROfriend( AliESDVZEROfriend & ) const" (identifier) "GetESDVZEROfriend" (parameter_list) "( AliESDVZEROfriend & )" (() "(" (parameter_declaration) "AliESDVZEROfriend" (type_identifier) "AliESDVZEROfriend" (ERROR) "&" (&) "&" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void Ls() const = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "Ls() const = 0" (function_declarator) "Ls() const" (identifier) "Ls" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void Reset() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "Reset() = 0" (function_declarator) "Reset()" (identifier) "Reset" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "// bit manipulation for filtering" (declaration) "virtual void SetSkipBit(Bool_t skip) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "SetSkipBit(Bool_t skip) = 0" (function_declarator) "SetSkipBit(Bool_t skip)" (identifier) "SetSkipBit" (parameter_list) "(Bool_t skip)" (() "(" (parameter_declaration) "Bool_t skip" (type_identifier) "Bool_t" (identifier) "skip" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual Bool_t TestSkipBit() const = 0;" (type_identifier) "virtual" (ERROR) "Bool_t" (identifier) "Bool_t" (init_declarator) "TestSkipBit() const = 0" (function_declarator) "TestSkipBit() const" (identifier) "TestSkipBit" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (comment) "//TPC cluster occupancy" (declaration) "virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;" (type_identifier) "virtual" (ERROR) "Int_t" (identifier) "Int_t" (init_declarator) "GetNclustersTPC(UInt_t /*sector*/) const = 0" (function_declarator) "GetNclustersTPC(UInt_t /*sector*/) const" (identifier) "GetNclustersTPC" (parameter_list) "(UInt_t /*sector*/)" (() "(" (parameter_declaration) "UInt_t" (type_identifier) "UInt_t" (comment) "/*sector*/" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;" (type_identifier) "virtual" (ERROR) "Int_t" (identifier) "Int_t" (init_declarator) "GetNclustersTPCused(UInt_t /*sector*/) const = 0" (function_declarator) "GetNclustersTPCused(UInt_t /*sector*/) const" (identifier) "GetNclustersTPCused" (parameter_list) "(UInt_t /*sector*/)" (() "(" (parameter_declaration) "UInt_t" (type_identifier) "UInt_t" (comment) "/*sector*/" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (ERROR) "virtual ULong64_t GetSize() const" (type_identifier) "virtual" (ERROR) "ULong64_t" (identifier) "ULong64_t" (function_declarator) "GetSize() const" (identifier) "GetSize" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{return 0;}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (labeled_statement) "private: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);" (statement_identifier) "private" (:) ":" (expression_statement) "AliVfriendEvent& operator=(const AliVfriendEvent& esd);" (binary_expression) "AliVfriendEvent& operator=(const AliVfriendEvent& esd)" (identifier) "AliVfriendEvent" (&) "&" (assignment_expression) "operator=(const AliVfriendEvent& esd)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const AliVfriendEvent& esd)" (() "(" (ERROR) "const AliVfriendEvent" (type_descriptor) "const AliVfriendEvent" (type_qualifier) "const" (const) "const" (type_identifier) "AliVfriendEvent" (pointer_expression) "& esd" (&) "&" (identifier) "esd" ()) ")" (;) ";" (expression_statement) "ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};" (call_expression) "ClassDef(AliVfriendEvent, 0)" (identifier) "ClassDef" (argument_list) "(AliVfriendEvent, 0)" (() "(" (identifier) "AliVfriendEvent" (,) "," (number_literal) "0" ()) ")" (comment) "// base class for AliEvent data" (ERROR) "}" (}) "}" (;) ";" (preproc_call) "#pragma GCC diagnostic ignored "-Weffc++" \n" (preproc_directive) "#pragma" (preproc_arg) "GCC diagnostic ignored "-Weffc++" " (ERROR) "inline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "AliVfriendEvent" (ERROR) "::" (:) ":" (:) ":" (function_declarator) "AliVfriendEvent(AliVConstructorReinitialisationFlag )" (identifier) "AliVfriendEvent" (parameter_list) "(AliVConstructorReinitialisationFlag )" (() "(" (identifier) "AliVConstructorReinitialisationFlag" ()) ")" (ERROR) ":" (:) ":" (identifier) "TObject" (() "(" ()) ")" ({) "{" (}) "}" (comment) "// do nothing" (preproc_call) "#pragma GCC diagnostic warning "-Weffc++" \n" (preproc_directive) "#pragma" (preproc_arg) "GCC diagnostic warning "-Weffc++" " (#endif) "#endif"
373
24
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 36.18, "nodes": 224, "errors": 0, "source_hash": "29a9f11ee754353d2c9df1f9c6fd09c0cac0de2f474dc66b8e5517a5e3332bfd", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ALIVFRIENDEVENT_H\n#define ALIVFRIENDEVENT_H\n\n#include \"Rtypes.h\"\n#include \"TObject.h\"\n#include \"AliVMisc.h\"\nclass AliVfriendTrack;\nclass AliVVZEROfriend;\nclass AliESDVZEROfriend;\n\n//_____________________________________________________________________________\nclass AliVfriendEvent: public TObject {\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}\n\n virtual ~AliVfriendEvent() {}\n\n // constructor and method for reinitialisation of virtual table\n AliVfriendEvent( AliVConstructorReinitialisationFlag );\n void Reinitialize(){} // do nothing\n\n virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}\n\nprivate: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);\n\t\n\t\n\t\n ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};\n\n#pragma GCC diagnostic ignored \"-Weffc++\" \ninline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){} // do nothing\n#pragma GCC diagnostic warning \"-Weffc++\" \n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 17, 19, 21, 220, 223], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 57, "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": "ALIVFRIENDEVENT_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define ALIVFRIENDEVENT_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": "ALIVFRIENDEVENT_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include \"Rtypes.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": "\"Rtypes.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"TObject.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": "\"TObject.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"AliVMisc.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": "\"AliVMisc.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 21}}, {"id": 15, "type": "declaration", "text": "class AliVfriendTrack;", "parent": 0, "children": [16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 22}}, {"id": 16, "type": "identifier", "text": "AliVfriendTrack", "parent": 15, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 21}}, {"id": 17, "type": "declaration", "text": "class AliVVZEROfriend;", "parent": 0, "children": [18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 22}}, {"id": 18, "type": "identifier", "text": "AliVVZEROfriend", "parent": 17, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 21}}, {"id": 19, "type": "declaration", "text": "class AliESDVZEROfriend;", "parent": 0, "children": [20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 24}}, {"id": 20, "type": "identifier", "text": "AliESDVZEROfriend", "parent": 19, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 23}}, {"id": 21, "type": "function_definition", "text": "class AliVfriendEvent: public TObject {\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}\n\n virtual ~AliVfriendEvent() {}\n\n // constructor and method for reinitialisation of virtual table\n AliVfriendEvent( AliVConstructorReinitialisationFlag );\n void Reinitialize(){} // do nothing\n\n virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}\n\nprivate: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);\n\t\n\t\n\t\n ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};\n\n#pragma GCC diagnostic ignored \"-Weffc++\" \ninline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){}", "parent": 0, "children": [22, 23], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 54, "column": 90}}, {"id": 22, "type": "identifier", "text": "AliVfriendEvent", "parent": 21, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 21}}, {"id": 23, "type": "ERROR", "text": ": public TObject", "parent": 21, "children": [24], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 37}}, {"id": 24, "type": "identifier", "text": "TObject", "parent": 23, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 37}}, {"id": 25, "type": "labeled_statement", "text": "public:\n AliVfriendEvent()", "parent": 21, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 19}}, {"id": 26, "type": "call_expression", "text": "AliVfriendEvent()", "parent": 25, "children": [27, 28], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 19}}, {"id": 27, "type": "identifier", "text": "AliVfriendEvent", "parent": 26, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 17}}, {"id": 28, "type": "argument_list", "text": "()", "parent": 26, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 19}}, {"id": 29, "type": "function_definition", "text": "AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}", "parent": 21, "children": [30, 36], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 57}}, {"id": 30, "type": "macro_type_specifier", "text": "AliVfriendEvent(const AliVfriendEvent &f)", "parent": 29, "children": [31, 32, 34], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 43}}, {"id": 31, "type": "identifier", "text": "AliVfriendEvent", "parent": 30, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 17}}, {"id": 32, "type": "type_descriptor", "text": "const AliVfriendEvent", "parent": 30, "children": [33], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 39}}, {"id": 33, "type": "type_identifier", "text": "AliVfriendEvent", "parent": 32, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 39}}, {"id": 34, "type": "ERROR", "text": "&f", "parent": 30, "children": [35], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 42}}, {"id": 35, "type": "identifier", "text": "f", "parent": 34, "children": [], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 42}}, {"id": 36, "type": "function_declarator", "text": "TObject(f)", "parent": 29, "children": [37, 38], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 55}}, {"id": 37, "type": "identifier", "text": "TObject", "parent": 36, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 52}}, {"id": 38, "type": "parameter_list", "text": "(f)", "parent": 36, "children": [39], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 55}}, {"id": 39, "type": "parameter_declaration", "text": "f", "parent": 38, "children": [40], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 54}}, {"id": 40, "type": "type_identifier", "text": "f", "parent": 39, "children": [], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 54}}, {"id": 41, "type": "function_definition", "text": "virtual ~AliVfriendEvent() {}", "parent": 21, "children": [42, 43, 45], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 31}}, {"id": 42, "type": "type_identifier", "text": "virtual", "parent": 41, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 9}}, {"id": 43, "type": "ERROR", "text": "~", "parent": 41, "children": [44], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 11}}, {"id": 44, "type": "~", "text": "~", "parent": 43, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 11}}, {"id": 45, "type": "function_declarator", "text": "AliVfriendEvent()", "parent": 41, "children": [46, 47], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 28}}, {"id": 46, "type": "identifier", "text": "AliVfriendEvent", "parent": 45, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 26}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 28}}, {"id": 48, "type": "call_expression", "text": "AliVfriendEvent( AliVConstructorReinitialisationFlag )", "parent": 21, "children": [49, 50], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 56}}, {"id": 49, "type": "identifier", "text": "AliVfriendEvent", "parent": 48, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 17}}, {"id": 50, "type": "argument_list", "text": "( AliVConstructorReinitialisationFlag )", "parent": 48, "children": [51], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 56}}, {"id": 51, "type": "identifier", "text": "AliVConstructorReinitialisationFlag", "parent": 50, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 54}}, {"id": 52, "type": "function_definition", "text": "void Reinitialize(){}", "parent": 21, "children": [53, 54], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 23}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 6}}, {"id": 54, "type": "function_declarator", "text": "Reinitialize()", "parent": 52, "children": [55, 56], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 21}}, {"id": 55, "type": "identifier", "text": "Reinitialize", "parent": 54, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 19}}, {"id": 56, "type": "parameter_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 21}}, {"id": 57, "type": "function_definition", "text": "virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}", "parent": 21, "children": [58, 59, 61, 64, 81, 91, 103, 115, 125, 135, 148, 158, 170, 182], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 42, "column": 49}}, {"id": 58, "type": "type_identifier", "text": "virtual", "parent": 57, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 59, "type": "ERROR", "text": "Int_t", "parent": 57, "children": [60], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 15}}, {"id": 60, "type": "identifier", "text": "Int_t", "parent": 59, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 15}}, {"id": 61, "type": "function_declarator", "text": "GetNumberOfTracks()", "parent": 57, "children": [62, 63], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 35}}, {"id": 62, "type": "identifier", "text": "GetNumberOfTracks", "parent": 61, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 33}}, {"id": 63, "type": "parameter_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 35}}, {"id": 64, "type": "declaration", "text": "const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;", "parent": 57, "children": [65, 68, 69, 71], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 23, "column": 65}}, {"id": 65, "type": "ERROR", "text": "= 0;", "parent": 64, "children": [66, 67], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 46}}, {"id": 66, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 43}}, {"id": 67, "type": "number_literal", "text": "0", "parent": 65, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 45}}, {"id": 68, "type": "type_identifier", "text": "virtual", "parent": 64, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 9}}, {"id": 69, "type": "ERROR", "text": "AliVfriendTrack", "parent": 64, "children": [70], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 31}}, {"id": 70, "type": "identifier", "text": "AliVfriendTrack", "parent": 69, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 31}}, {"id": 71, "type": "init_declarator", "text": "*GetTrack(Int_t /*i*/) const = 0", "parent": 64, "children": [72, 79, 80], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 64}}, {"id": 72, "type": "pointer_declarator", "text": "*GetTrack(Int_t /*i*/) const", "parent": 71, "children": [73, 74], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 60}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 33}}, {"id": 74, "type": "function_declarator", "text": "GetTrack(Int_t /*i*/) const", "parent": 72, "children": [75, 76], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 60}}, {"id": 75, "type": "identifier", "text": "GetTrack", "parent": 74, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 41}}, {"id": 76, "type": "parameter_list", "text": "(Int_t /*i*/)", "parent": 74, "children": [77], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 54}}, {"id": 77, "type": "parameter_declaration", "text": "Int_t", "parent": 76, "children": [78], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 47}}, {"id": 78, "type": "type_identifier", "text": "Int_t", "parent": 77, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 47}}, {"id": 79, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 23, "column": 61}, "end_point": {"row": 23, "column": 62}}, {"id": 80, "type": "number_literal", "text": "0", "parent": 71, "children": [], "start_point": {"row": 23, "column": 63}, "end_point": {"row": 23, "column": 64}}, {"id": 81, "type": "declaration", "text": "virtual Int_t GetEntriesInTracks() const = 0;", "parent": 57, "children": [82, 83, 85], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 47}}, {"id": 82, "type": "type_identifier", "text": "virtual", "parent": 81, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 9}}, {"id": 83, "type": "ERROR", "text": "Int_t", "parent": 81, "children": [84], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 15}}, {"id": 84, "type": "identifier", "text": "Int_t", "parent": 83, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 15}}, {"id": 85, "type": "init_declarator", "text": "GetEntriesInTracks() const = 0", "parent": 81, "children": [86, 89, 90], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 46}}, {"id": 86, "type": "function_declarator", "text": "GetEntriesInTracks() const", "parent": 85, "children": [87, 88], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 42}}, {"id": 87, "type": "identifier", "text": "GetEntriesInTracks", "parent": 86, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 34}}, {"id": 88, "type": "parameter_list", "text": "()", "parent": 86, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 36}}, {"id": 89, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 44}}, {"id": 90, "type": "number_literal", "text": "0", "parent": 85, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 46}}, {"id": 91, "type": "declaration", "text": "virtual AliVVZEROfriend* GetVVZEROfriend() = 0;", "parent": 57, "children": [92, 93, 95], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 49}}, {"id": 92, "type": "type_identifier", "text": "virtual", "parent": 91, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 9}}, {"id": 93, "type": "ERROR", "text": "AliVVZEROfriend", "parent": 91, "children": [94], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 25}}, {"id": 94, "type": "identifier", "text": "AliVVZEROfriend", "parent": 93, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 25}}, {"id": 95, "type": "init_declarator", "text": "* GetVVZEROfriend() = 0", "parent": 91, "children": [96, 101, 102], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 48}}, {"id": 96, "type": "pointer_declarator", "text": "* GetVVZEROfriend()", "parent": 95, "children": [97, 98], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 44}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 26}}, {"id": 98, "type": "function_declarator", "text": "GetVVZEROfriend()", "parent": 96, "children": [99, 100], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 44}}, {"id": 99, "type": "identifier", "text": "GetVVZEROfriend", "parent": 98, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 42}}, {"id": 100, "type": "parameter_list", "text": "()", "parent": 98, "children": [], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 44}}, {"id": 101, "type": "=", "text": "=", "parent": 95, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 46}}, {"id": 102, "type": "number_literal", "text": "0", "parent": 95, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 48}}, {"id": 103, "type": "declaration", "text": "virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;", "parent": 57, "children": [104, 105, 107], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 67}}, {"id": 104, "type": "type_identifier", "text": "virtual", "parent": 103, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 9}}, {"id": 105, "type": "ERROR", "text": "Int_t", "parent": 103, "children": [106], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 15}}, {"id": 106, "type": "identifier", "text": "Int_t", "parent": 105, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 15}}, {"id": 107, "type": "init_declarator", "text": "GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0", "parent": 103, "children": [108, 113, 114], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 66}}, {"id": 108, "type": "function_declarator", "text": "GetESDVZEROfriend( AliESDVZEROfriend & ) const", "parent": 107, "children": [109, 110], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 62}}, {"id": 109, "type": "identifier", "text": "GetESDVZEROfriend", "parent": 108, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 33}}, {"id": 110, "type": "parameter_list", "text": "( AliESDVZEROfriend & )", "parent": 108, "children": [111], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 56}}, {"id": 111, "type": "parameter_declaration", "text": "AliESDVZEROfriend", "parent": 110, "children": [112], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 52}}, {"id": 112, "type": "type_identifier", "text": "AliESDVZEROfriend", "parent": 111, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 52}}, {"id": 113, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 29, "column": 63}, "end_point": {"row": 29, "column": 64}}, {"id": 114, "type": "number_literal", "text": "0", "parent": 107, "children": [], "start_point": {"row": 29, "column": 65}, "end_point": {"row": 29, "column": 66}}, {"id": 115, "type": "declaration", "text": "virtual void Ls() const = 0;", "parent": 57, "children": [116, 117, 119], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 30}}, {"id": 116, "type": "type_identifier", "text": "virtual", "parent": 115, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 117, "type": "ERROR", "text": "void", "parent": 115, "children": [118], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 14}}, {"id": 118, "type": "identifier", "text": "void", "parent": 117, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 14}}, {"id": 119, "type": "init_declarator", "text": "Ls() const = 0", "parent": 115, "children": [120, 123, 124], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 29}}, {"id": 120, "type": "function_declarator", "text": "Ls() const", "parent": 119, "children": [121, 122], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 25}}, {"id": 121, "type": "identifier", "text": "Ls", "parent": 120, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 17}}, {"id": 122, "type": "parameter_list", "text": "()", "parent": 120, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 19}}, {"id": 123, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 27}}, {"id": 124, "type": "number_literal", "text": "0", "parent": 119, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 29}}, {"id": 125, "type": "declaration", "text": "virtual void Reset() = 0;", "parent": 57, "children": [126, 127, 129], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 27}}, {"id": 126, "type": "type_identifier", "text": "virtual", "parent": 125, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 9}}, {"id": 127, "type": "ERROR", "text": "void", "parent": 125, "children": [128], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 14}}, {"id": 128, "type": "identifier", "text": "void", "parent": 127, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 14}}, {"id": 129, "type": "init_declarator", "text": "Reset() = 0", "parent": 125, "children": [130, 133, 134], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 26}}, {"id": 130, "type": "function_declarator", "text": "Reset()", "parent": 129, "children": [131, 132], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 22}}, {"id": 131, "type": "identifier", "text": "Reset", "parent": 130, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 20}}, {"id": 132, "type": "parameter_list", "text": "()", "parent": 130, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 22}}, {"id": 133, "type": "=", "text": "=", "parent": 129, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 24}}, {"id": 134, "type": "number_literal", "text": "0", "parent": 129, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 26}}, {"id": 135, "type": "declaration", "text": "virtual void SetSkipBit(Bool_t skip) = 0;", "parent": 57, "children": [136, 137, 139], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 43}}, {"id": 136, "type": "type_identifier", "text": "virtual", "parent": 135, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 9}}, {"id": 137, "type": "ERROR", "text": "void", "parent": 135, "children": [138], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 14}}, {"id": 138, "type": "identifier", "text": "void", "parent": 137, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 14}}, {"id": 139, "type": "init_declarator", "text": "SetSkipBit(Bool_t skip) = 0", "parent": 135, "children": [140, 146, 147], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 42}}, {"id": 140, "type": "function_declarator", "text": "SetSkipBit(Bool_t skip)", "parent": 139, "children": [141, 142], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 38}}, {"id": 141, "type": "identifier", "text": "SetSkipBit", "parent": 140, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 25}}, {"id": 142, "type": "parameter_list", "text": "(Bool_t skip)", "parent": 140, "children": [143], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 38}}, {"id": 143, "type": "parameter_declaration", "text": "Bool_t skip", "parent": 142, "children": [144, 145], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 37}}, {"id": 144, "type": "type_identifier", "text": "Bool_t", "parent": 143, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 32}}, {"id": 145, "type": "identifier", "text": "skip", "parent": 143, "children": [], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 37}}, {"id": 146, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 40}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 139, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 42}}, {"id": 148, "type": "declaration", "text": "virtual Bool_t TestSkipBit() const = 0;", "parent": 57, "children": [149, 150, 152], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 41}}, {"id": 149, "type": "type_identifier", "text": "virtual", "parent": 148, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 150, "type": "ERROR", "text": "Bool_t", "parent": 148, "children": [151], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 16}}, {"id": 151, "type": "identifier", "text": "Bool_t", "parent": 150, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 16}}, {"id": 152, "type": "init_declarator", "text": "TestSkipBit() const = 0", "parent": 148, "children": [153, 156, 157], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 40}}, {"id": 153, "type": "function_declarator", "text": "TestSkipBit() const", "parent": 152, "children": [154, 155], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 36}}, {"id": 154, "type": "identifier", "text": "TestSkipBit", "parent": 153, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 28}}, {"id": 155, "type": "parameter_list", "text": "()", "parent": 153, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 30}}, {"id": 156, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 38}}, {"id": 157, "type": "number_literal", "text": "0", "parent": 152, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 40}}, {"id": 158, "type": "declaration", "text": "virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;", "parent": 57, "children": [159, 160, 162], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 61}}, {"id": 159, "type": "type_identifier", "text": "virtual", "parent": 158, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 9}}, {"id": 160, "type": "ERROR", "text": "Int_t", "parent": 158, "children": [161], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 15}}, {"id": 161, "type": "identifier", "text": "Int_t", "parent": 160, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 15}}, {"id": 162, "type": "init_declarator", "text": "GetNclustersTPC(UInt_t /*sector*/) const = 0", "parent": 158, "children": [163, 168, 169], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 60}}, {"id": 163, "type": "function_declarator", "text": "GetNclustersTPC(UInt_t /*sector*/) const", "parent": 162, "children": [164, 165], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 56}}, {"id": 164, "type": "identifier", "text": "GetNclustersTPC", "parent": 163, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 31}}, {"id": 165, "type": "parameter_list", "text": "(UInt_t /*sector*/)", "parent": 163, "children": [166], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 50}}, {"id": 166, "type": "parameter_declaration", "text": "UInt_t", "parent": 165, "children": [167], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 38}}, {"id": 167, "type": "type_identifier", "text": "UInt_t", "parent": 166, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 38}}, {"id": 168, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 39, "column": 57}, "end_point": {"row": 39, "column": 58}}, {"id": 169, "type": "number_literal", "text": "0", "parent": 162, "children": [], "start_point": {"row": 39, "column": 59}, "end_point": {"row": 39, "column": 60}}, {"id": 170, "type": "declaration", "text": "virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;", "parent": 57, "children": [171, 172, 174], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 65}}, {"id": 171, "type": "type_identifier", "text": "virtual", "parent": 170, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 9}}, {"id": 172, "type": "ERROR", "text": "Int_t", "parent": 170, "children": [173], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 15}}, {"id": 173, "type": "identifier", "text": "Int_t", "parent": 172, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 15}}, {"id": 174, "type": "init_declarator", "text": "GetNclustersTPCused(UInt_t /*sector*/) const = 0", "parent": 170, "children": [175, 180, 181], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 64}}, {"id": 175, "type": "function_declarator", "text": "GetNclustersTPCused(UInt_t /*sector*/) const", "parent": 174, "children": [176, 177], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 60}}, {"id": 176, "type": "identifier", "text": "GetNclustersTPCused", "parent": 175, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 35}}, {"id": 177, "type": "parameter_list", "text": "(UInt_t /*sector*/)", "parent": 175, "children": [178], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 54}}, {"id": 178, "type": "parameter_declaration", "text": "UInt_t", "parent": 177, "children": [179], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 42}}, {"id": 179, "type": "type_identifier", "text": "UInt_t", "parent": 178, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 42}}, {"id": 180, "type": "=", "text": "=", "parent": 174, "children": [], "start_point": {"row": 40, "column": 61}, "end_point": {"row": 40, "column": 62}}, {"id": 181, "type": "number_literal", "text": "0", "parent": 174, "children": [], "start_point": {"row": 40, "column": 63}, "end_point": {"row": 40, "column": 64}}, {"id": 182, "type": "ERROR", "text": "virtual ULong64_t GetSize() const", "parent": 57, "children": [183, 184, 186], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 37}}, {"id": 183, "type": "type_identifier", "text": "virtual", "parent": 182, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 9}}, {"id": 184, "type": "ERROR", "text": "ULong64_t", "parent": 182, "children": [185], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 19}}, {"id": 185, "type": "identifier", "text": "ULong64_t", "parent": 184, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 19}}, {"id": 186, "type": "function_declarator", "text": "GetSize() const", "parent": 182, "children": [187, 188], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 37}}, {"id": 187, "type": "identifier", "text": "GetSize", "parent": 186, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 28}}, {"id": 188, "type": "parameter_list", "text": "()", "parent": 186, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 30}}, {"id": 189, "type": "return_statement", "text": "return 0;", "parent": 57, "children": [190], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 48}}, {"id": 190, "type": "number_literal", "text": "0", "parent": 189, "children": [], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 47}}, {"id": 191, "type": "labeled_statement", "text": "private: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);", "parent": 21, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 46, "column": 57}}, {"id": 192, "type": "binary_expression", "text": "AliVfriendEvent& operator=(const AliVfriendEvent& esd)", "parent": 191, "children": [193, 194], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 56}}, {"id": 193, "type": "identifier", "text": "AliVfriendEvent", "parent": 192, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 17}}, {"id": 194, "type": "assignment_expression", "text": "operator=(const AliVfriendEvent& esd)", "parent": 192, "children": [195, 196, 197], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 56}}, {"id": 195, "type": "identifier", "text": "operator", "parent": 194, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 27}}, {"id": 196, "type": "=", "text": "=", "parent": 194, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 28}}, {"id": 197, "type": "parenthesized_expression", "text": "(const AliVfriendEvent& esd)", "parent": 194, "children": [198, 201], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 56}}, {"id": 198, "type": "ERROR", "text": "const AliVfriendEvent", "parent": 197, "children": [199], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 50}}, {"id": 199, "type": "type_descriptor", "text": "const AliVfriendEvent", "parent": 198, "children": [200], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 50}}, {"id": 200, "type": "type_identifier", "text": "AliVfriendEvent", "parent": 199, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 50}}, {"id": 201, "type": "pointer_expression", "text": "& esd", "parent": 197, "children": [202], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 55}}, {"id": 202, "type": "identifier", "text": "esd", "parent": 201, "children": [], "start_point": {"row": 46, "column": 52}, "end_point": {"row": 46, "column": 55}}, {"id": 203, "type": "call_expression", "text": "ClassDef(AliVfriendEvent, 0)", "parent": 21, "children": [204, 205], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 30}}, {"id": 204, "type": "identifier", "text": "ClassDef", "parent": 203, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 10}}, {"id": 205, "type": "argument_list", "text": "(AliVfriendEvent, 0)", "parent": 203, "children": [206, 207], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 30}}, {"id": 206, "type": "identifier", "text": "AliVfriendEvent", "parent": 205, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 26}}, {"id": 207, "type": "number_literal", "text": "0", "parent": 205, "children": [], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 29}}, {"id": 208, "type": "preproc_call", "text": "#pragma GCC diagnostic ignored \"-Weffc++\" \n", "parent": 21, "children": [209, 210], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 209, "type": "preproc_directive", "text": "#pragma", "parent": 208, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 7}}, {"id": 210, "type": "preproc_arg", "text": "GCC diagnostic ignored \"-Weffc++\" ", "parent": 208, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 42}}, {"id": 211, "type": "ERROR", "text": "inline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){", "parent": 21, "children": [212, 214, 215, 219], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 89}}, {"id": 212, "type": "storage_class_specifier", "text": "inline", "parent": 211, "children": [213], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 213, "type": "inline", "text": "inline", "parent": 212, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 214, "type": "type_identifier", "text": "AliVfriendEvent", "parent": 211, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 22}}, {"id": 215, "type": "function_declarator", "text": "AliVfriendEvent(AliVConstructorReinitialisationFlag )", "parent": 211, "children": [216, 217], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 77}}, {"id": 216, "type": "identifier", "text": "AliVfriendEvent", "parent": 215, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 39}}, {"id": 217, "type": "parameter_list", "text": "(AliVConstructorReinitialisationFlag )", "parent": 215, "children": [218], "start_point": {"row": 54, "column": 39}, "end_point": {"row": 54, "column": 77}}, {"id": 218, "type": "identifier", "text": "AliVConstructorReinitialisationFlag", "parent": 217, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 75}}, {"id": 219, "type": "identifier", "text": "TObject", "parent": 211, "children": [], "start_point": {"row": 54, "column": 79}, "end_point": {"row": 54, "column": 86}}, {"id": 220, "type": "preproc_call", "text": "#pragma GCC diagnostic warning \"-Weffc++\" \n", "parent": 0, "children": [221, 222], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 221, "type": "preproc_directive", "text": "#pragma", "parent": 220, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 222, "type": "preproc_arg", "text": "GCC diagnostic warning \"-Weffc++\" ", "parent": 220, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 42}}, {"id": 223, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 29, 36, 41, 45, 52, 54, 57, 61, 74, 86, 98, 108, 120, 130, 140, 153, 163, 175, 186, 215], "variables": [15, 17, 19, 39, 64, 77, 81, 91, 103, 111, 115, 125, 135, 143, 148, 158, 166, 170, 178], "classes": [212], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [26, 48, 192, 197, 201, 203], "assignments": [194], "loops": [], "conditionals": [0, 1, 2, 5, 16, 18, 20, 22, 24, 27, 30, 31, 33, 35, 37, 40, 42, 46, 49, 51, 55, 58, 60, 62, 68, 70, 75, 78, 82, 84, 87, 92, 94, 99, 104, 106, 109, 112, 116, 118, 121, 126, 128, 131, 136, 138, 141, 144, 145, 149, 151, 154, 159, 161, 164, 167, 171, 173, 176, 179, 183, 185, 187, 193, 195, 200, 202, 204, 206, 214, 216, 218, 219, 223], "returns": [189], "exceptions": []}, "expressions": {"calls": [208, 220], "literals": [8, 11, 14, 67, 80, 90, 102, 114, 124, 134, 147, 157, 169, 181, 190, 207], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "AliVfriendEvent:", "text_snippet": "class AliVfriendEvent: public TObject {\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVf"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "TObject(f)"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "virtual ~AliVfriendEvent() {}"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "AliVfriendEvent()"}, {"node_id": 52, "universal_type": "function", "name": "Reinitialize", "text_snippet": "void Reinitialize(){}"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "Reinitialize()"}, {"node_id": 57, "universal_type": "function", "name": "Ls", "text_snippet": "virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) "}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "GetNumberOfTracks()"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "GetTrack(Int_t /*i*/) const"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "GetEntriesInTracks() const"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "GetVVZEROfriend()"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "GetESDVZEROfriend( AliESDVZEROfriend & ) const"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "Ls() const"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "Reset()"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "SetSkipBit(Bool_t skip)"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "TestSkipBit() const"}, {"node_id": 163, "universal_type": "function", "name": "unknown", "text_snippet": "GetNclustersTPC(UInt_t /*sector*/) const"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "GetNclustersTPCused(UInt_t /*sector*/) const"}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "GetSize() const"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "AliVfriendEvent(AliVConstructorReinitialisationFlag )"}], "class_declarations": [{"node_id": 212, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include \"Rtypes.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"TObject.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"AliVMisc.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef ALIVFRIENDEVENT_H\n#define ALIVFRIENDEVENT_H\n\n#include \"Rtypes.h\"\n#include \"TObject.h\"\n#include \"AliVMisc.h\"\nclass AliVfriendTrack;\nclass AliVVZEROfriend;\nclass AliESDVZEROfriend;\n\n//_____________________________________________________________________________\nclass AliVfriendEvent: public TObject {\npublic:\n AliVfriendEvent() {}\n AliVfriendEvent(const AliVfriendEvent &f) :TObject(f){}\n\n virtual ~AliVfriendEvent() {}\n\n // constructor and method for reinitialisation of virtual table\n AliVfriendEvent( AliVConstructorReinitialisationFlag );\n void Reinitialize(){} // do nothing\n\n virtual Int_t GetNumberOfTracks() const = 0;\n virtual const AliVfriendTrack *GetTrack(Int_t /*i*/) const = 0;\n virtual Int_t GetEntriesInTracks() const = 0;\n\n virtual AliVVZEROfriend* GetVVZEROfriend() = 0;\n // AliESDTZEROfriend *GetTZEROfriend();\n\n virtual Int_t GetESDVZEROfriend( AliESDVZEROfriend & ) const = 0;\n\n virtual void Ls() const = 0;\n virtual void Reset() = 0;\n\n // bit manipulation for filtering\n virtual void SetSkipBit(Bool_t skip) = 0;\n virtual Bool_t TestSkipBit() const = 0;\n\n //TPC cluster occupancy\n virtual Int_t GetNclustersTPC(UInt_t /*sector*/) const = 0;\n virtual Int_t GetNclustersTPCused(UInt_t /*sector*/) const = 0;\n \n virtual ULong64_t GetSize() const {return 0;}\n\nprivate: \n\n AliVfriendEvent& operator=(const AliVfriendEvent& esd);\n\t\n\t\n\t\n ClassDef(AliVfriendEvent, 0) // base class for AliEvent data\n};\n\n#pragma GCC diagnostic ignored \"-Weffc++\" \ninline AliVfriendEvent::AliVfriendEvent(AliVConstructorReinitialisationFlag ) :TObject(){} // do nothing\n#pragma GCC diagnostic warning \"-Weffc++\" \n\n#endif\n\n"}
80,428
c
#include <unistd.h> #include <stdlib.h> #include <kstring.h> #include <dev/devserv.h> #include <vfs/vfs.h> #include <vfs/fs.h> #include <syscall.h> #include <device.h> typedef struct { uint32_t size; int32_t dirty; void* data; } node_data_t; static int32_t sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) { fs_info_t info; if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 || info.data == NULL) return -1; node_data_t* data = (node_data_t*)info.data; uint32_t new_size = seek+size; if(new_size == 0) return 0; if(new_size > info.size) { void * tmp = malloc(new_size); if(data->data != NULL) { memcpy(tmp, data->data, info.size); free(data->data); } data->data = tmp; data->dirty = 1; info.size = new_size; data->size = new_size; } char* p = (char*)data->data; if(p == NULL) return -1; memcpy(p+seek, buf, size); fs_update(&info); return size; } static int32_t sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) { fs_info_t info; if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 || info.data == NULL) return -1; node_data_t* data = (node_data_t*)info.data; int32_t fsize = 0; const char* p = NULL; if(data->data == NULL) return -1; fsize = info.size; p = (const char*)data->data; int32_t rest_size = fsize - seek; /*seek*/ if(rest_size <= 0) { return 0; } if(size > (uint32_t)rest_size) size = rest_size; memcpy(buf, p+seek, size); return size; } static int32_t sramdisk_add(int32_t pid, const char* fname) { (void)pid; (void)fname; return 0; } static int32_t sramdisk_open(int32_t pid, int32_t fd, int32_t flags) { (void)flags; fs_info_t info; if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0) return -1; if(info.type == FS_TYPE_DIR) return 0; if(info.data == NULL) { info.data = malloc(sizeof(node_data_t)); memset(info.data, 0, sizeof(node_data_t)); fs_update(&info); } return 0; } static int32_t sramdisk_remove(fs_info_t* info, const char* fname) { if(info == NULL || fname == NULL || fname[0] == 0) return -1; if(info->type == FS_TYPE_DIR) return -1; if(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) return -1; if(info->data != NULL) { node_data_t* data = (node_data_t*)info->data; if(data->data != NULL) free(data->data); free(info->data); } return 0; } static int32_t sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info) { (void)pid; (void)fd; if(info == NULL) return 0; if(info->type == FS_TYPE_DIR) return 0; if(info->data != NULL) { node_data_t* data = (node_data_t*)info->data; if(data->dirty == 1) { info->size = data->size; fs_update(info); } data->dirty = 0; } return 0; } int main(int argc, char* argv[]) { device_t dev = {0}; dev.add = sramdisk_add; dev.open = sramdisk_open; dev.close = sramdisk_close; dev.read = sramdisk_read; dev.write = sramdisk_write; dev.remove = sramdisk_remove; dev_run(&dev, argc, argv); return 0; }
23.44
124
(translation_unit) "#include <unistd.h>\n#include <stdlib.h>\n#include <kstring.h>\n#include <dev/devserv.h>\n#include <vfs/vfs.h>\n#include <vfs/fs.h>\n#include <syscall.h>\n#include <device.h>\n\ntypedef struct {\n uint32_t size;\n int32_t dirty;\n void* data;\n} node_data_t;\n\nstatic int32_t sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;\n node_data_t* data = (node_data_t*)info.data;\n\n uint32_t new_size = seek+size;\n if(new_size == 0)\n return 0;\n if(new_size > info.size) {\n void * tmp = malloc(new_size);\n if(data->data != NULL) {\n memcpy(tmp, data->data, info.size);\n free(data->data);\n }\n data->data = tmp;\n data->dirty = 1;\n info.size = new_size;\n data->size = new_size;\n } \n char* p = (char*)data->data;\n if(p == NULL)\n return -1;\n memcpy(p+seek, buf, size);\n fs_update(&info);\n return size;\n}\n\nstatic int32_t sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;\n node_data_t* data = (node_data_t*)info.data;\n\n int32_t fsize = 0;\n const char* p = NULL;\n if(data->data == NULL)\n return -1;\n\n fsize = info.size;\n p = (const char*)data->data;\n int32_t rest_size = fsize - seek; /*seek*/\n if(rest_size <= 0) {\n return 0;\n }\n\n if(size > (uint32_t)rest_size)\n size = rest_size;\n memcpy(buf, p+seek, size);\n return size;\n}\n\nstatic int32_t sramdisk_add(int32_t pid, const char* fname) {\n (void)pid;\n (void)fname;\n return 0;\n}\n\nstatic int32_t sramdisk_open(int32_t pid, int32_t fd, int32_t flags) {\n (void)flags;\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)\n return -1;\n if(info.type == FS_TYPE_DIR)\n return 0;\n if(info.data == NULL) {\n info.data = malloc(sizeof(node_data_t));\n memset(info.data, 0, sizeof(node_data_t));\n fs_update(&info);\n }\n return 0;\n}\n\nstatic int32_t sramdisk_remove(fs_info_t* info, const char* fname) {\n if(info == NULL || fname == NULL || fname[0] == 0)\n return -1;\n if(info->type == FS_TYPE_DIR)\n return -1;\n if(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) \n return -1;\n\n if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->data != NULL)\n free(data->data);\n free(info->data);\n }\n return 0;\n}\n\nstatic int32_t sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info) {\n (void)pid;\n (void)fd;\n\n if(info == NULL)\n return 0;\n if(info->type == FS_TYPE_DIR)\n return 0;\n if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->dirty == 1) {\n info->size = data->size;\n fs_update(info);\n }\n data->dirty = 0;\n }\n return 0;\n}\n\nint main(int argc, char* argv[]) {\n device_t dev = {0};\n dev.add = sramdisk_add;\n dev.open = sramdisk_open;\n dev.close = sramdisk_close;\n dev.read = sramdisk_read;\n dev.write = sramdisk_write;\n dev.remove = sramdisk_remove;\n \n dev_run(&dev, argc, argv);\n return 0;\n}\n" (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 <kstring.h>\n" (#include) "#include" (system_lib_string) "<kstring.h>" (preproc_include) "#include <dev/devserv.h>\n" (#include) "#include" (system_lib_string) "<dev/devserv.h>" (preproc_include) "#include <vfs/vfs.h>\n" (#include) "#include" (system_lib_string) "<vfs/vfs.h>" (preproc_include) "#include <vfs/fs.h>\n" (#include) "#include" (system_lib_string) "<vfs/fs.h>" (preproc_include) "#include <syscall.h>\n" (#include) "#include" (system_lib_string) "<syscall.h>" (preproc_include) "#include <device.h>\n" (#include) "#include" (system_lib_string) "<device.h>" (type_definition) "typedef struct {\n uint32_t size;\n int32_t dirty;\n void* data;\n} node_data_t;" (typedef) "typedef" (struct_specifier) "struct {\n uint32_t size;\n int32_t dirty;\n void* data;\n}" (struct) "struct" (field_declaration_list) "{\n uint32_t size;\n int32_t dirty;\n void* data;\n}" ({) "{" (field_declaration) "uint32_t size;" (primitive_type) "uint32_t" (field_identifier) "size" (;) ";" (field_declaration) "int32_t dirty;" (primitive_type) "int32_t" (field_identifier) "dirty" (;) ";" (field_declaration) "void* data;" (primitive_type) "void" (pointer_declarator) "* data" (*) "*" (field_identifier) "data" (;) ";" (}) "}" (type_identifier) "node_data_t" (;) ";" (function_definition) "static int32_t sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;\n node_data_t* data = (node_data_t*)info.data;\n\n uint32_t new_size = seek+size;\n if(new_size == 0)\n return 0;\n if(new_size > info.size) {\n void * tmp = malloc(new_size);\n if(data->data != NULL) {\n memcpy(tmp, data->data, info.size);\n free(data->data);\n }\n data->data = tmp;\n data->dirty = 1;\n info.size = new_size;\n data->size = new_size;\n } \n char* p = (char*)data->data;\n if(p == NULL)\n return -1;\n memcpy(p+seek, buf, size);\n fs_update(&info);\n return size;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (function_declarator) "sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)" (identifier) "sramdisk_write" (parameter_list) "(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)" (() "(" (parameter_declaration) "int32_t pid" (primitive_type) "int32_t" (identifier) "pid" (,) "," (parameter_declaration) "int32_t fd" (primitive_type) "int32_t" (identifier) "fd" (,) "," (parameter_declaration) "void* buf" (primitive_type) "void" (pointer_declarator) "* buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "uint32_t size" (primitive_type) "uint32_t" (identifier) "size" (,) "," (parameter_declaration) "int32_t seek" (primitive_type) "int32_t" (identifier) "seek" ()) ")" (compound_statement) "{\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;\n node_data_t* data = (node_data_t*)info.data;\n\n uint32_t new_size = seek+size;\n if(new_size == 0)\n return 0;\n if(new_size > info.size) {\n void * tmp = malloc(new_size);\n if(data->data != NULL) {\n memcpy(tmp, data->data, info.size);\n free(data->data);\n }\n data->data = tmp;\n data->dirty = 1;\n info.size = new_size;\n data->size = new_size;\n } \n char* p = (char*)data->data;\n if(p == NULL)\n return -1;\n memcpy(p+seek, buf, size);\n fs_update(&info);\n return size;\n}" ({) "{" (declaration) "fs_info_t info;" (type_identifier) "fs_info_t" (identifier) "info" (;) ";" (if_statement) "if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;" (if) "if" (parenthesized_expression) "(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)" (() "(" (binary_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL" (binary_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0" (call_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)" (identifier) "syscall3" (argument_list) "(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)" (() "(" (identifier) "SYSCALL_PFILE_INFO_BY_PID_FD" (,) "," (identifier) "pid" (,) "," (identifier) "fd" (,) "," (cast_expression) "(int32_t)&info" (() "(" (type_descriptor) "int32_t" (primitive_type) "int32_t" ()) ")" (pointer_expression) "&info" (&) "&" (identifier) "info" ()) ")" (!=) "!=" (number_literal) "0" (||) "||" (binary_expression) "info.data == NULL" (field_expression) "info.data" (identifier) "info" (.) "." (field_identifier) "data" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (declaration) "node_data_t* data = (node_data_t*)info.data;" (type_identifier) "node_data_t" (init_declarator) "* data = (node_data_t*)info.data" (pointer_declarator) "* data" (*) "*" (identifier) "data" (=) "=" (cast_expression) "(node_data_t*)info.data" (() "(" (type_descriptor) "node_data_t*" (type_identifier) "node_data_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "info.data" (identifier) "info" (.) "." (field_identifier) "data" (;) ";" (declaration) "uint32_t new_size = seek+size;" (primitive_type) "uint32_t" (init_declarator) "new_size = seek+size" (identifier) "new_size" (=) "=" (binary_expression) "seek+size" (identifier) "seek" (+) "+" (identifier) "size" (;) ";" (if_statement) "if(new_size == 0)\n return 0;" (if) "if" (parenthesized_expression) "(new_size == 0)" (() "(" (binary_expression) "new_size == 0" (identifier) "new_size" (==) "==" (number_literal) "0" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (if_statement) "if(new_size > info.size) {\n void * tmp = malloc(new_size);\n if(data->data != NULL) {\n memcpy(tmp, data->data, info.size);\n free(data->data);\n }\n data->data = tmp;\n data->dirty = 1;\n info.size = new_size;\n data->size = new_size;\n }" (if) "if" (parenthesized_expression) "(new_size > info.size)" (() "(" (binary_expression) "new_size > info.size" (identifier) "new_size" (>) ">" (field_expression) "info.size" (identifier) "info" (.) "." (field_identifier) "size" ()) ")" (compound_statement) "{\n void * tmp = malloc(new_size);\n if(data->data != NULL) {\n memcpy(tmp, data->data, info.size);\n free(data->data);\n }\n data->data = tmp;\n data->dirty = 1;\n info.size = new_size;\n data->size = new_size;\n }" ({) "{" (declaration) "void * tmp = malloc(new_size);" (primitive_type) "void" (init_declarator) "* tmp = malloc(new_size)" (pointer_declarator) "* tmp" (*) "*" (identifier) "tmp" (=) "=" (call_expression) "malloc(new_size)" (identifier) "malloc" (argument_list) "(new_size)" (() "(" (identifier) "new_size" ()) ")" (;) ";" (if_statement) "if(data->data != NULL) {\n memcpy(tmp, data->data, info.size);\n free(data->data);\n }" (if) "if" (parenthesized_expression) "(data->data != NULL)" (() "(" (binary_expression) "data->data != NULL" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n memcpy(tmp, data->data, info.size);\n free(data->data);\n }" ({) "{" (expression_statement) "memcpy(tmp, data->data, info.size);" (call_expression) "memcpy(tmp, data->data, info.size)" (identifier) "memcpy" (argument_list) "(tmp, data->data, info.size)" (() "(" (identifier) "tmp" (,) "," (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" (,) "," (field_expression) "info.size" (identifier) "info" (.) "." (field_identifier) "size" ()) ")" (;) ";" (expression_statement) "free(data->data);" (call_expression) "free(data->data)" (identifier) "free" (argument_list) "(data->data)" (() "(" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (}) "}" (expression_statement) "data->data = tmp;" (assignment_expression) "data->data = tmp" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" (=) "=" (identifier) "tmp" (;) ";" (expression_statement) "data->dirty = 1;" (assignment_expression) "data->dirty = 1" (field_expression) "data->dirty" (identifier) "data" (->) "->" (field_identifier) "dirty" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "info.size = new_size;" (assignment_expression) "info.size = new_size" (field_expression) "info.size" (identifier) "info" (.) "." (field_identifier) "size" (=) "=" (identifier) "new_size" (;) ";" (expression_statement) "data->size = new_size;" (assignment_expression) "data->size = new_size" (field_expression) "data->size" (identifier) "data" (->) "->" (field_identifier) "size" (=) "=" (identifier) "new_size" (;) ";" (}) "}" (declaration) "char* p = (char*)data->data;" (primitive_type) "char" (init_declarator) "* p = (char*)data->data" (pointer_declarator) "* p" (*) "*" (identifier) "p" (=) "=" (cast_expression) "(char*)data->data" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" (;) ";" (if_statement) "if(p == NULL)\n return -1;" (if) "if" (parenthesized_expression) "(p == NULL)" (() "(" (binary_expression) "p == NULL" (identifier) "p" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (expression_statement) "memcpy(p+seek, buf, size);" (call_expression) "memcpy(p+seek, buf, size)" (identifier) "memcpy" (argument_list) "(p+seek, buf, size)" (() "(" (binary_expression) "p+seek" (identifier) "p" (+) "+" (identifier) "seek" (,) "," (identifier) "buf" (,) "," (identifier) "size" ()) ")" (;) ";" (expression_statement) "fs_update(&info);" (call_expression) "fs_update(&info)" (identifier) "fs_update" (argument_list) "(&info)" (() "(" (pointer_expression) "&info" (&) "&" (identifier) "info" ()) ")" (;) ";" (return_statement) "return size;" (return) "return" (identifier) "size" (;) ";" (}) "}" (function_definition) "static int32_t sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;\n node_data_t* data = (node_data_t*)info.data;\n\n int32_t fsize = 0;\n const char* p = NULL;\n if(data->data == NULL)\n return -1;\n\n fsize = info.size;\n p = (const char*)data->data;\n int32_t rest_size = fsize - seek; /*seek*/\n if(rest_size <= 0) {\n return 0;\n }\n\n if(size > (uint32_t)rest_size)\n size = rest_size;\n memcpy(buf, p+seek, size);\n return size;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (function_declarator) "sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)" (identifier) "sramdisk_read" (parameter_list) "(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)" (() "(" (parameter_declaration) "int32_t pid" (primitive_type) "int32_t" (identifier) "pid" (,) "," (parameter_declaration) "int32_t fd" (primitive_type) "int32_t" (identifier) "fd" (,) "," (parameter_declaration) "void* buf" (primitive_type) "void" (pointer_declarator) "* buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "uint32_t size" (primitive_type) "uint32_t" (identifier) "size" (,) "," (parameter_declaration) "int32_t seek" (primitive_type) "int32_t" (identifier) "seek" ()) ")" (compound_statement) "{\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;\n node_data_t* data = (node_data_t*)info.data;\n\n int32_t fsize = 0;\n const char* p = NULL;\n if(data->data == NULL)\n return -1;\n\n fsize = info.size;\n p = (const char*)data->data;\n int32_t rest_size = fsize - seek; /*seek*/\n if(rest_size <= 0) {\n return 0;\n }\n\n if(size > (uint32_t)rest_size)\n size = rest_size;\n memcpy(buf, p+seek, size);\n return size;\n}" ({) "{" (declaration) "fs_info_t info;" (type_identifier) "fs_info_t" (identifier) "info" (;) ";" (if_statement) "if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)\n return -1;" (if) "if" (parenthesized_expression) "(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL)" (() "(" (binary_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n info.data == NULL" (binary_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0" (call_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)" (identifier) "syscall3" (argument_list) "(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)" (() "(" (identifier) "SYSCALL_PFILE_INFO_BY_PID_FD" (,) "," (identifier) "pid" (,) "," (identifier) "fd" (,) "," (cast_expression) "(int32_t)&info" (() "(" (type_descriptor) "int32_t" (primitive_type) "int32_t" ()) ")" (pointer_expression) "&info" (&) "&" (identifier) "info" ()) ")" (!=) "!=" (number_literal) "0" (||) "||" (binary_expression) "info.data == NULL" (field_expression) "info.data" (identifier) "info" (.) "." (field_identifier) "data" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (declaration) "node_data_t* data = (node_data_t*)info.data;" (type_identifier) "node_data_t" (init_declarator) "* data = (node_data_t*)info.data" (pointer_declarator) "* data" (*) "*" (identifier) "data" (=) "=" (cast_expression) "(node_data_t*)info.data" (() "(" (type_descriptor) "node_data_t*" (type_identifier) "node_data_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "info.data" (identifier) "info" (.) "." (field_identifier) "data" (;) ";" (declaration) "int32_t fsize = 0;" (primitive_type) "int32_t" (init_declarator) "fsize = 0" (identifier) "fsize" (=) "=" (number_literal) "0" (;) ";" (declaration) "const char* p = NULL;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* p = NULL" (pointer_declarator) "* p" (*) "*" (identifier) "p" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (if_statement) "if(data->data == NULL)\n return -1;" (if) "if" (parenthesized_expression) "(data->data == NULL)" (() "(" (binary_expression) "data->data == NULL" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (expression_statement) "fsize = info.size;" (assignment_expression) "fsize = info.size" (identifier) "fsize" (=) "=" (field_expression) "info.size" (identifier) "info" (.) "." (field_identifier) "size" (;) ";" (expression_statement) "p = (const char*)data->data;" (assignment_expression) "p = (const char*)data->data" (identifier) "p" (=) "=" (cast_expression) "(const char*)data->data" (() "(" (type_descriptor) "const char*" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" (;) ";" (declaration) "int32_t rest_size = fsize - seek;" (primitive_type) "int32_t" (init_declarator) "rest_size = fsize - seek" (identifier) "rest_size" (=) "=" (binary_expression) "fsize - seek" (identifier) "fsize" (-) "-" (identifier) "seek" (;) ";" (comment) "/*seek*/" (if_statement) "if(rest_size <= 0) {\n return 0;\n }" (if) "if" (parenthesized_expression) "(rest_size <= 0)" (() "(" (binary_expression) "rest_size <= 0" (identifier) "rest_size" (<=) "<=" (number_literal) "0" ()) ")" (compound_statement) "{\n return 0;\n }" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (if_statement) "if(size > (uint32_t)rest_size)\n size = rest_size;" (if) "if" (parenthesized_expression) "(size > (uint32_t)rest_size)" (() "(" (binary_expression) "size > (uint32_t)rest_size" (identifier) "size" (>) ">" (cast_expression) "(uint32_t)rest_size" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (identifier) "rest_size" ()) ")" (expression_statement) "size = rest_size;" (assignment_expression) "size = rest_size" (identifier) "size" (=) "=" (identifier) "rest_size" (;) ";" (expression_statement) "memcpy(buf, p+seek, size);" (call_expression) "memcpy(buf, p+seek, size)" (identifier) "memcpy" (argument_list) "(buf, p+seek, size)" (() "(" (identifier) "buf" (,) "," (binary_expression) "p+seek" (identifier) "p" (+) "+" (identifier) "seek" (,) "," (identifier) "size" ()) ")" (;) ";" (return_statement) "return size;" (return) "return" (identifier) "size" (;) ";" (}) "}" (function_definition) "static int32_t sramdisk_add(int32_t pid, const char* fname) {\n (void)pid;\n (void)fname;\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (function_declarator) "sramdisk_add(int32_t pid, const char* fname)" (identifier) "sramdisk_add" (parameter_list) "(int32_t pid, const char* fname)" (() "(" (parameter_declaration) "int32_t pid" (primitive_type) "int32_t" (identifier) "pid" (,) "," (parameter_declaration) "const char* fname" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* fname" (*) "*" (identifier) "fname" ()) ")" (compound_statement) "{\n (void)pid;\n (void)fname;\n return 0;\n}" ({) "{" (expression_statement) "(void)pid;" (cast_expression) "(void)pid" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "pid" (;) ";" (expression_statement) "(void)fname;" (cast_expression) "(void)fname" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "fname" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int32_t sramdisk_open(int32_t pid, int32_t fd, int32_t flags) {\n (void)flags;\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)\n return -1;\n if(info.type == FS_TYPE_DIR)\n return 0;\n if(info.data == NULL) {\n info.data = malloc(sizeof(node_data_t));\n memset(info.data, 0, sizeof(node_data_t));\n fs_update(&info);\n }\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (function_declarator) "sramdisk_open(int32_t pid, int32_t fd, int32_t flags)" (identifier) "sramdisk_open" (parameter_list) "(int32_t pid, int32_t fd, int32_t flags)" (() "(" (parameter_declaration) "int32_t pid" (primitive_type) "int32_t" (identifier) "pid" (,) "," (parameter_declaration) "int32_t fd" (primitive_type) "int32_t" (identifier) "fd" (,) "," (parameter_declaration) "int32_t flags" (primitive_type) "int32_t" (identifier) "flags" ()) ")" (compound_statement) "{\n (void)flags;\n fs_info_t info;\n if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)\n return -1;\n if(info.type == FS_TYPE_DIR)\n return 0;\n if(info.data == NULL) {\n info.data = malloc(sizeof(node_data_t));\n memset(info.data, 0, sizeof(node_data_t));\n fs_update(&info);\n }\n return 0;\n}" ({) "{" (expression_statement) "(void)flags;" (cast_expression) "(void)flags" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "flags" (;) ";" (declaration) "fs_info_t info;" (type_identifier) "fs_info_t" (identifier) "info" (;) ";" (if_statement) "if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)\n return -1;" (if) "if" (parenthesized_expression) "(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)" (() "(" (binary_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0" (call_expression) "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)" (identifier) "syscall3" (argument_list) "(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)" (() "(" (identifier) "SYSCALL_PFILE_INFO_BY_PID_FD" (,) "," (identifier) "pid" (,) "," (identifier) "fd" (,) "," (cast_expression) "(int32_t)&info" (() "(" (type_descriptor) "int32_t" (primitive_type) "int32_t" ()) ")" (pointer_expression) "&info" (&) "&" (identifier) "info" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (if_statement) "if(info.type == FS_TYPE_DIR)\n return 0;" (if) "if" (parenthesized_expression) "(info.type == FS_TYPE_DIR)" (() "(" (binary_expression) "info.type == FS_TYPE_DIR" (field_expression) "info.type" (identifier) "info" (.) "." (field_identifier) "type" (==) "==" (identifier) "FS_TYPE_DIR" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (if_statement) "if(info.data == NULL) {\n info.data = malloc(sizeof(node_data_t));\n memset(info.data, 0, sizeof(node_data_t));\n fs_update(&info);\n }" (if) "if" (parenthesized_expression) "(info.data == NULL)" (() "(" (binary_expression) "info.data == NULL" (field_expression) "info.data" (identifier) "info" (.) "." (field_identifier) "data" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n info.data = malloc(sizeof(node_data_t));\n memset(info.data, 0, sizeof(node_data_t));\n fs_update(&info);\n }" ({) "{" (expression_statement) "info.data = malloc(sizeof(node_data_t));" (assignment_expression) "info.data = malloc(sizeof(node_data_t))" (field_expression) "info.data" (identifier) "info" (.) "." (field_identifier) "data" (=) "=" (call_expression) "malloc(sizeof(node_data_t))" (identifier) "malloc" (argument_list) "(sizeof(node_data_t))" (() "(" (sizeof_expression) "sizeof(node_data_t)" (sizeof) "sizeof" (parenthesized_expression) "(node_data_t)" (() "(" (identifier) "node_data_t" ()) ")" ()) ")" (;) ";" (expression_statement) "memset(info.data, 0, sizeof(node_data_t));" (call_expression) "memset(info.data, 0, sizeof(node_data_t))" (identifier) "memset" (argument_list) "(info.data, 0, sizeof(node_data_t))" (() "(" (field_expression) "info.data" (identifier) "info" (.) "." (field_identifier) "data" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(node_data_t)" (sizeof) "sizeof" (parenthesized_expression) "(node_data_t)" (() "(" (identifier) "node_data_t" ()) ")" ()) ")" (;) ";" (expression_statement) "fs_update(&info);" (call_expression) "fs_update(&info)" (identifier) "fs_update" (argument_list) "(&info)" (() "(" (pointer_expression) "&info" (&) "&" (identifier) "info" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int32_t sramdisk_remove(fs_info_t* info, const char* fname) {\n if(info == NULL || fname == NULL || fname[0] == 0)\n return -1;\n if(info->type == FS_TYPE_DIR)\n return -1;\n if(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) \n return -1;\n\n if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->data != NULL)\n free(data->data);\n free(info->data);\n }\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (function_declarator) "sramdisk_remove(fs_info_t* info, const char* fname)" (identifier) "sramdisk_remove" (parameter_list) "(fs_info_t* info, const char* fname)" (() "(" (parameter_declaration) "fs_info_t* info" (type_identifier) "fs_info_t" (pointer_declarator) "* info" (*) "*" (identifier) "info" (,) "," (parameter_declaration) "const char* fname" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* fname" (*) "*" (identifier) "fname" ()) ")" (compound_statement) "{\n if(info == NULL || fname == NULL || fname[0] == 0)\n return -1;\n if(info->type == FS_TYPE_DIR)\n return -1;\n if(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) \n return -1;\n\n if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->data != NULL)\n free(data->data);\n free(info->data);\n }\n return 0;\n}" ({) "{" (if_statement) "if(info == NULL || fname == NULL || fname[0] == 0)\n return -1;" (if) "if" (parenthesized_expression) "(info == NULL || fname == NULL || fname[0] == 0)" (() "(" (binary_expression) "info == NULL || fname == NULL || fname[0] == 0" (binary_expression) "info == NULL || fname == NULL" (binary_expression) "info == NULL" (identifier) "info" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (binary_expression) "fname == NULL" (identifier) "fname" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (binary_expression) "fname[0] == 0" (subscript_expression) "fname[0]" (identifier) "fname" ([) "[" (number_literal) "0" (]) "]" (==) "==" (number_literal) "0" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (if_statement) "if(info->type == FS_TYPE_DIR)\n return -1;" (if) "if" (parenthesized_expression) "(info->type == FS_TYPE_DIR)" (() "(" (binary_expression) "info->type == FS_TYPE_DIR" (field_expression) "info->type" (identifier) "info" (->) "->" (field_identifier) "type" (==) "==" (identifier) "FS_TYPE_DIR" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (if_statement) "if(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) \n return -1;" (if) "if" (parenthesized_expression) "(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0)" (() "(" (binary_expression) "syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0" (call_expression) "syscall2(SYSCALL_PFILE_GET_REF, info->node, 2)" (identifier) "syscall2" (argument_list) "(SYSCALL_PFILE_GET_REF, info->node, 2)" (() "(" (identifier) "SYSCALL_PFILE_GET_REF" (,) "," (field_expression) "info->node" (identifier) "info" (->) "->" (field_identifier) "node" (,) "," (number_literal) "2" ()) ")" (>) ">" (number_literal) "0" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (if_statement) "if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->data != NULL)\n free(data->data);\n free(info->data);\n }" (if) "if" (parenthesized_expression) "(info->data != NULL)" (() "(" (binary_expression) "info->data != NULL" (field_expression) "info->data" (identifier) "info" (->) "->" (field_identifier) "data" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n node_data_t* data = (node_data_t*)info->data;\n if(data->data != NULL)\n free(data->data);\n free(info->data);\n }" ({) "{" (declaration) "node_data_t* data = (node_data_t*)info->data;" (type_identifier) "node_data_t" (init_declarator) "* data = (node_data_t*)info->data" (pointer_declarator) "* data" (*) "*" (identifier) "data" (=) "=" (cast_expression) "(node_data_t*)info->data" (() "(" (type_descriptor) "node_data_t*" (type_identifier) "node_data_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "info->data" (identifier) "info" (->) "->" (field_identifier) "data" (;) ";" (if_statement) "if(data->data != NULL)\n free(data->data);" (if) "if" (parenthesized_expression) "(data->data != NULL)" (() "(" (binary_expression) "data->data != NULL" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "free(data->data);" (call_expression) "free(data->data)" (identifier) "free" (argument_list) "(data->data)" (() "(" (field_expression) "data->data" (identifier) "data" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (expression_statement) "free(info->data);" (call_expression) "free(info->data)" (identifier) "free" (argument_list) "(info->data)" (() "(" (field_expression) "info->data" (identifier) "info" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int32_t sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info) {\n (void)pid;\n (void)fd;\n\n if(info == NULL)\n return 0;\n if(info->type == FS_TYPE_DIR)\n return 0;\n if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->dirty == 1) {\n info->size = data->size;\n fs_update(info);\n }\n data->dirty = 0;\n }\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int32_t" (function_declarator) "sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info)" (identifier) "sramdisk_close" (parameter_list) "(int32_t pid, int32_t fd, fs_info_t* info)" (() "(" (parameter_declaration) "int32_t pid" (primitive_type) "int32_t" (identifier) "pid" (,) "," (parameter_declaration) "int32_t fd" (primitive_type) "int32_t" (identifier) "fd" (,) "," (parameter_declaration) "fs_info_t* info" (type_identifier) "fs_info_t" (pointer_declarator) "* info" (*) "*" (identifier) "info" ()) ")" (compound_statement) "{\n (void)pid;\n (void)fd;\n\n if(info == NULL)\n return 0;\n if(info->type == FS_TYPE_DIR)\n return 0;\n if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->dirty == 1) {\n info->size = data->size;\n fs_update(info);\n }\n data->dirty = 0;\n }\n return 0;\n}" ({) "{" (expression_statement) "(void)pid;" (cast_expression) "(void)pid" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "pid" (;) ";" (expression_statement) "(void)fd;" (cast_expression) "(void)fd" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "fd" (;) ";" (if_statement) "if(info == NULL)\n return 0;" (if) "if" (parenthesized_expression) "(info == NULL)" (() "(" (binary_expression) "info == NULL" (identifier) "info" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (if_statement) "if(info->type == FS_TYPE_DIR)\n return 0;" (if) "if" (parenthesized_expression) "(info->type == FS_TYPE_DIR)" (() "(" (binary_expression) "info->type == FS_TYPE_DIR" (field_expression) "info->type" (identifier) "info" (->) "->" (field_identifier) "type" (==) "==" (identifier) "FS_TYPE_DIR" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (if_statement) "if(info->data != NULL) {\n node_data_t* data = (node_data_t*)info->data;\n if(data->dirty == 1) {\n info->size = data->size;\n fs_update(info);\n }\n data->dirty = 0;\n }" (if) "if" (parenthesized_expression) "(info->data != NULL)" (() "(" (binary_expression) "info->data != NULL" (field_expression) "info->data" (identifier) "info" (->) "->" (field_identifier) "data" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n node_data_t* data = (node_data_t*)info->data;\n if(data->dirty == 1) {\n info->size = data->size;\n fs_update(info);\n }\n data->dirty = 0;\n }" ({) "{" (declaration) "node_data_t* data = (node_data_t*)info->data;" (type_identifier) "node_data_t" (init_declarator) "* data = (node_data_t*)info->data" (pointer_declarator) "* data" (*) "*" (identifier) "data" (=) "=" (cast_expression) "(node_data_t*)info->data" (() "(" (type_descriptor) "node_data_t*" (type_identifier) "node_data_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "info->data" (identifier) "info" (->) "->" (field_identifier) "data" (;) ";" (if_statement) "if(data->dirty == 1) {\n info->size = data->size;\n fs_update(info);\n }" (if) "if" (parenthesized_expression) "(data->dirty == 1)" (() "(" (binary_expression) "data->dirty == 1" (field_expression) "data->dirty" (identifier) "data" (->) "->" (field_identifier) "dirty" (==) "==" (number_literal) "1" ()) ")" (compound_statement) "{\n info->size = data->size;\n fs_update(info);\n }" ({) "{" (expression_statement) "info->size = data->size;" (assignment_expression) "info->size = data->size" (field_expression) "info->size" (identifier) "info" (->) "->" (field_identifier) "size" (=) "=" (field_expression) "data->size" (identifier) "data" (->) "->" (field_identifier) "size" (;) ";" (expression_statement) "fs_update(info);" (call_expression) "fs_update(info)" (identifier) "fs_update" (argument_list) "(info)" (() "(" (identifier) "info" ()) ")" (;) ";" (}) "}" (expression_statement) "data->dirty = 0;" (assignment_expression) "data->dirty = 0" (field_expression) "data->dirty" (identifier) "data" (->) "->" (field_identifier) "dirty" (=) "=" (number_literal) "0" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int main(int argc, char* argv[]) {\n device_t dev = {0};\n dev.add = sramdisk_add;\n dev.open = sramdisk_open;\n dev.close = sramdisk_close;\n dev.read = sramdisk_read;\n dev.write = sramdisk_write;\n dev.remove = sramdisk_remove;\n \n dev_run(&dev, argc, argv);\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 device_t dev = {0};\n dev.add = sramdisk_add;\n dev.open = sramdisk_open;\n dev.close = sramdisk_close;\n dev.read = sramdisk_read;\n dev.write = sramdisk_write;\n dev.remove = sramdisk_remove;\n \n dev_run(&dev, argc, argv);\n return 0;\n}" ({) "{" (declaration) "device_t dev = {0};" (type_identifier) "device_t" (init_declarator) "dev = {0}" (identifier) "dev" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "dev.add = sramdisk_add;" (assignment_expression) "dev.add = sramdisk_add" (field_expression) "dev.add" (identifier) "dev" (.) "." (field_identifier) "add" (=) "=" (identifier) "sramdisk_add" (;) ";" (expression_statement) "dev.open = sramdisk_open;" (assignment_expression) "dev.open = sramdisk_open" (field_expression) "dev.open" (identifier) "dev" (.) "." (field_identifier) "open" (=) "=" (identifier) "sramdisk_open" (;) ";" (expression_statement) "dev.close = sramdisk_close;" (assignment_expression) "dev.close = sramdisk_close" (field_expression) "dev.close" (identifier) "dev" (.) "." (field_identifier) "close" (=) "=" (identifier) "sramdisk_close" (;) ";" (expression_statement) "dev.read = sramdisk_read;" (assignment_expression) "dev.read = sramdisk_read" (field_expression) "dev.read" (identifier) "dev" (.) "." (field_identifier) "read" (=) "=" (identifier) "sramdisk_read" (;) ";" (expression_statement) "dev.write = sramdisk_write;" (assignment_expression) "dev.write = sramdisk_write" (field_expression) "dev.write" (identifier) "dev" (.) "." (field_identifier) "write" (=) "=" (identifier) "sramdisk_write" (;) ";" (expression_statement) "dev.remove = sramdisk_remove;" (assignment_expression) "dev.remove = sramdisk_remove" (field_expression) "dev.remove" (identifier) "dev" (.) "." (field_identifier) "remove" (=) "=" (identifier) "sramdisk_remove" (;) ";" (expression_statement) "dev_run(&dev, argc, argv);" (call_expression) "dev_run(&dev, argc, argv)" (identifier) "dev_run" (argument_list) "(&dev, argc, argv)" (() "(" (pointer_expression) "&dev" (&) "&" (identifier) "dev" (,) "," (identifier) "argc" (,) "," (identifier) "argv" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
1,189
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 23.44, "nodes": 764, "errors": 0, "source_hash": "b36c66bccb7f769d924bb8b7efa730386953a5ed71d8b5e97792ccf2e1e8ff3b", "categorized_nodes": 536}, "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 <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 <kstring.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": "<kstring.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include <dev/devserv.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": "<dev/devserv.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include <vfs/vfs.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": "<vfs/vfs.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include <vfs/fs.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": "<vfs/fs.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include <syscall.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": "<syscall.h>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 20}}, {"id": 21, "type": "preproc_include", "text": "#include <device.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": "<device.h>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 24, "type": "type_definition", "text": "typedef struct {\n\tuint32_t size;\n\tint32_t dirty;\n\tvoid* data;\n} node_data_t;", "parent": null, "children": [25, 26, 39], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 13, "column": 14}}, {"id": 25, "type": "typedef", "text": "typedef", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 26, "type": "struct_specifier", "text": "struct {\n\tuint32_t size;\n\tint32_t dirty;\n\tvoid* data;\n}", "parent": 24, "children": [27], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 13, "column": 1}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 28, "type": "field_declaration", "text": "uint32_t size;", "parent": 26, "children": [29, 30], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 15}}, {"id": 29, "type": "primitive_type", "text": "uint32_t", "parent": 28, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 9}}, {"id": 30, "type": "field_identifier", "text": "size", "parent": 28, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 14}}, {"id": 31, "type": "field_declaration", "text": "int32_t dirty;", "parent": 26, "children": [32, 33], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 15}}, {"id": 32, "type": "primitive_type", "text": "int32_t", "parent": 31, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 8}}, {"id": 33, "type": "field_identifier", "text": "dirty", "parent": 31, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 14}}, {"id": 34, "type": "field_declaration", "text": "void* data;", "parent": 26, "children": [35, 36], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 12}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 5}}, {"id": 36, "type": "pointer_declarator", "text": "* data", "parent": 34, "children": [37, 38], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 11}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 6}}, {"id": 38, "type": "field_identifier", "text": "data", "parent": 36, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 11}}, {"id": 39, "type": "type_identifier", "text": "node_data_t", "parent": 24, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 13}}, {"id": 40, "type": "function_definition", "text": "static int32_t sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n\tfs_info_t info;\n\tif(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)\n\t\treturn -1;\n\tnode_data_t* data = (node_data_t*)info.data;\n\n\tuint32_t new_size = seek+size;\n\tif(new_size == 0)\n\t\treturn 0;\n\tif(new_size > info.size) {\n\t\tvoid * tmp = malloc(new_size);\n\t\tif(data->data != NULL) {\n\t\t\tmemcpy(tmp, data->data, info.size);\n\t\t\tfree(data->data);\n\t\t}\n\t\tdata->data = tmp;\n\t\tdata->dirty = 1;\n\t\tinfo.size = new_size;\n\t\tdata->size = new_size;\n\t}\t\n\tchar* p = (char*)data->data;\n\tif(p == NULL)\n\t\treturn -1;\n\tmemcpy(p+seek, buf, size);\n\tfs_update(&info);\n\treturn size;\n}", "parent": null, "children": [41, 42], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 41, "type": "primitive_type", "text": "int32_t", "parent": 40, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 14}}, {"id": 42, "type": "function_declarator", "text": "sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)", "parent": 40, "children": [43, 44], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 94}}, {"id": 43, "type": "identifier", "text": "sramdisk_write", "parent": 42, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 29}}, {"id": 44, "type": "parameter_list", "text": "(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)", "parent": 42, "children": [45, 48, 51, 56, 59], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 94}}, {"id": 45, "type": "parameter_declaration", "text": "int32_t pid", "parent": 44, "children": [46, 47], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 41}}, {"id": 46, "type": "primitive_type", "text": "int32_t", "parent": 45, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 37}}, {"id": 47, "type": "identifier", "text": "pid", "parent": 45, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 41}}, {"id": 48, "type": "parameter_declaration", "text": "int32_t fd", "parent": 44, "children": [49, 50], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 53}}, {"id": 49, "type": "primitive_type", "text": "int32_t", "parent": 48, "children": [], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 50}}, {"id": 50, "type": "identifier", "text": "fd", "parent": 48, "children": [], "start_point": {"row": 15, "column": 51}, "end_point": {"row": 15, "column": 53}}, {"id": 51, "type": "parameter_declaration", "text": "void* buf", "parent": 44, "children": [52, 53], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 64}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 59}}, {"id": 53, "type": "pointer_declarator", "text": "* buf", "parent": 51, "children": [54, 55], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 64}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 60}}, {"id": 55, "type": "identifier", "text": "buf", "parent": 53, "children": [], "start_point": {"row": 15, "column": 61}, "end_point": {"row": 15, "column": 64}}, {"id": 56, "type": "parameter_declaration", "text": "uint32_t size", "parent": 44, "children": [57, 58], "start_point": {"row": 15, "column": 66}, "end_point": {"row": 15, "column": 79}}, {"id": 57, "type": "primitive_type", "text": "uint32_t", "parent": 56, "children": [], "start_point": {"row": 15, "column": 66}, "end_point": {"row": 15, "column": 74}}, {"id": 58, "type": "identifier", "text": "size", "parent": 56, "children": [], "start_point": {"row": 15, "column": 75}, "end_point": {"row": 15, "column": 79}}, {"id": 59, "type": "parameter_declaration", "text": "int32_t seek", "parent": 44, "children": [60, 61], "start_point": {"row": 15, "column": 81}, "end_point": {"row": 15, "column": 93}}, {"id": 60, "type": "primitive_type", "text": "int32_t", "parent": 59, "children": [], "start_point": {"row": 15, "column": 81}, "end_point": {"row": 15, "column": 88}}, {"id": 61, "type": "identifier", "text": "seek", "parent": 59, "children": [], "start_point": {"row": 15, "column": 89}, "end_point": {"row": 15, "column": 93}}, {"id": 62, "type": "declaration", "text": "fs_info_t info;", "parent": 40, "children": [63, 64], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 16}}, {"id": 63, "type": "type_identifier", "text": "fs_info_t", "parent": 62, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 10}}, {"id": 64, "type": "identifier", "text": "info", "parent": 62, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 15}}, {"id": 65, "type": "if_statement", "text": "if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)\n\t\treturn -1;", "parent": 40, "children": [66, 90], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 19, "column": 12}}, {"id": 66, "type": "parenthesized_expression", "text": "(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)", "parent": 65, "children": [67], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 18, "column": 21}}, {"id": 67, "type": "binary_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL", "parent": 66, "children": [68, 82, 83], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 18, "column": 20}}, {"id": 68, "type": "binary_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0", "parent": 67, "children": [69, 80, 81], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 72}}, {"id": 69, "type": "call_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)", "parent": 68, "children": [70, 71], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 67}}, {"id": 70, "type": "identifier", "text": "syscall3", "parent": 69, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 71, "type": "argument_list", "text": "(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)", "parent": 69, "children": [72, 73, 74, 75], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 67}}, {"id": 72, "type": "identifier", "text": "SYSCALL_PFILE_INFO_BY_PID_FD", "parent": 71, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 41}}, {"id": 73, "type": "identifier", "text": "pid", "parent": 71, "children": [], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 46}}, {"id": 74, "type": "identifier", "text": "fd", "parent": 71, "children": [], "start_point": {"row": 17, "column": 48}, "end_point": {"row": 17, "column": 50}}, {"id": 75, "type": "cast_expression", "text": "(int32_t)&info", "parent": 71, "children": [76, 78], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 66}}, {"id": 76, "type": "type_descriptor", "text": "int32_t", "parent": 75, "children": [77], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 60}}, {"id": 77, "type": "primitive_type", "text": "int32_t", "parent": 76, "children": [], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 60}}, {"id": 78, "type": "pointer_expression", "text": "&info", "parent": 75, "children": [79], "start_point": {"row": 17, "column": 61}, "end_point": {"row": 17, "column": 66}}, {"id": 79, "type": "identifier", "text": "info", "parent": 78, "children": [], "start_point": {"row": 17, "column": 62}, "end_point": {"row": 17, "column": 66}}, {"id": 80, "type": "!=", "text": "!=", "parent": 68, "children": [], "start_point": {"row": 17, "column": 68}, "end_point": {"row": 17, "column": 70}}, {"id": 81, "type": "number_literal", "text": "0", "parent": 68, "children": [], "start_point": {"row": 17, "column": 71}, "end_point": {"row": 17, "column": 72}}, {"id": 82, "type": "||", "text": "||", "parent": 67, "children": [], "start_point": {"row": 17, "column": 73}, "end_point": {"row": 17, "column": 75}}, {"id": 83, "type": "binary_expression", "text": "info.data == NULL", "parent": 67, "children": [84, 87, 88], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 20}}, {"id": 84, "type": "field_expression", "text": "info.data", "parent": 83, "children": [85, 86], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 12}}, {"id": 85, "type": "identifier", "text": "info", "parent": 84, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 86, "type": "field_identifier", "text": "data", "parent": 84, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 87, "type": "==", "text": "==", "parent": 83, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 15}}, {"id": 88, "type": "null", "text": "NULL", "parent": 83, "children": [89], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 20}}, {"id": 89, "type": "NULL", "text": "NULL", "parent": 88, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 20}}, {"id": 90, "type": "return_statement", "text": "return -1;", "parent": 65, "children": [91], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 12}}, {"id": 91, "type": "number_literal", "text": "-1", "parent": 90, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 11}}, {"id": 92, "type": "declaration", "text": "node_data_t* data = (node_data_t*)info.data;", "parent": 40, "children": [93, 94], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 45}}, {"id": 93, "type": "type_identifier", "text": "node_data_t", "parent": 92, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 12}}, {"id": 94, "type": "init_declarator", "text": "* data = (node_data_t*)info.data", "parent": 92, "children": [95, 98, 99], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 44}}, {"id": 95, "type": "pointer_declarator", "text": "* data", "parent": 94, "children": [96, 97], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 18}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 97, "type": "identifier", "text": "data", "parent": 95, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 18}}, {"id": 98, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 99, "type": "cast_expression", "text": "(node_data_t*)info.data", "parent": 94, "children": [100, 104], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 44}}, {"id": 100, "type": "type_descriptor", "text": "node_data_t*", "parent": 99, "children": [101, 102], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 34}}, {"id": 101, "type": "type_identifier", "text": "node_data_t", "parent": 100, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 33}}, {"id": 102, "type": "abstract_pointer_declarator", "text": "*", "parent": 100, "children": [103], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 34}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 34}}, {"id": 104, "type": "field_expression", "text": "info.data", "parent": 99, "children": [105, 106], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 44}}, {"id": 105, "type": "identifier", "text": "info", "parent": 104, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 39}}, {"id": 106, "type": "field_identifier", "text": "data", "parent": 104, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 44}}, {"id": 107, "type": "declaration", "text": "uint32_t new_size = seek+size;", "parent": 40, "children": [108, 109], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 31}}, {"id": 108, "type": "primitive_type", "text": "uint32_t", "parent": 107, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 109, "type": "init_declarator", "text": "new_size = seek+size", "parent": 107, "children": [110, 111, 112], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 30}}, {"id": 110, "type": "identifier", "text": "new_size", "parent": 109, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 18}}, {"id": 111, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 112, "type": "binary_expression", "text": "seek+size", "parent": 109, "children": [113, 114, 115], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 30}}, {"id": 113, "type": "identifier", "text": "seek", "parent": 112, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 25}}, {"id": 114, "type": "+", "text": "+", "parent": 112, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 26}}, {"id": 115, "type": "identifier", "text": "size", "parent": 112, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 30}}, {"id": 116, "type": "if_statement", "text": "if(new_size == 0)\n\t\treturn 0;", "parent": 40, "children": [117, 122], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 24, "column": 11}}, {"id": 117, "type": "parenthesized_expression", "text": "(new_size == 0)", "parent": 116, "children": [118], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 18}}, {"id": 118, "type": "binary_expression", "text": "new_size == 0", "parent": 117, "children": [119, 120, 121], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 17}}, {"id": 119, "type": "identifier", "text": "new_size", "parent": 118, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 12}}, {"id": 120, "type": "==", "text": "==", "parent": 118, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 15}}, {"id": 121, "type": "number_literal", "text": "0", "parent": 118, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 17}}, {"id": 122, "type": "return_statement", "text": "return 0;", "parent": 116, "children": [123], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 11}}, {"id": 123, "type": "number_literal", "text": "0", "parent": 122, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 124, "type": "if_statement", "text": "if(new_size > info.size) {\n\t\tvoid * tmp = malloc(new_size);\n\t\tif(data->data != NULL) {\n\t\t\tmemcpy(tmp, data->data, info.size);\n\t\t\tfree(data->data);\n\t\t}\n\t\tdata->data = tmp;\n\t\tdata->dirty = 1;\n\t\tinfo.size = new_size;\n\t\tdata->size = new_size;\n\t}", "parent": 40, "children": [125], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 35, "column": 2}}, {"id": 125, "type": "parenthesized_expression", "text": "(new_size > info.size)", "parent": 124, "children": [126], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 25}}, {"id": 126, "type": "binary_expression", "text": "new_size > info.size", "parent": 125, "children": [127, 128, 129], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 24}}, {"id": 127, "type": "identifier", "text": "new_size", "parent": 126, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 128, "type": ">", "text": ">", "parent": 126, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 129, "type": "field_expression", "text": "info.size", "parent": 126, "children": [130, 131], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 24}}, {"id": 130, "type": "identifier", "text": "info", "parent": 129, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 19}}, {"id": 131, "type": "field_identifier", "text": "size", "parent": 129, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 24}}, {"id": 132, "type": "declaration", "text": "void * tmp = malloc(new_size);", "parent": 124, "children": [133, 134], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 32}}, {"id": 133, "type": "primitive_type", "text": "void", "parent": 132, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 134, "type": "init_declarator", "text": "* tmp = malloc(new_size)", "parent": 132, "children": [135, 138, 139], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 31}}, {"id": 135, "type": "pointer_declarator", "text": "* tmp", "parent": 134, "children": [136, 137], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 12}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 8}}, {"id": 137, "type": "identifier", "text": "tmp", "parent": 135, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 12}}, {"id": 138, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 139, "type": "call_expression", "text": "malloc(new_size)", "parent": 134, "children": [140, 141], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 31}}, {"id": 140, "type": "identifier", "text": "malloc", "parent": 139, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 21}}, {"id": 141, "type": "argument_list", "text": "(new_size)", "parent": 139, "children": [142], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 31}}, {"id": 142, "type": "identifier", "text": "new_size", "parent": 141, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 30}}, {"id": 143, "type": "if_statement", "text": "if(data->data != NULL) {\n\t\t\tmemcpy(tmp, data->data, info.size);\n\t\t\tfree(data->data);\n\t\t}", "parent": 124, "children": [144], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 30, "column": 3}}, {"id": 144, "type": "parenthesized_expression", "text": "(data->data != NULL)", "parent": 143, "children": [145], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 24}}, {"id": 145, "type": "binary_expression", "text": "data->data != NULL", "parent": 144, "children": [146, 149, 150], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 23}}, {"id": 146, "type": "field_expression", "text": "data->data", "parent": 145, "children": [147, 148], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 15}}, {"id": 147, "type": "identifier", "text": "data", "parent": 146, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 9}}, {"id": 148, "type": "field_identifier", "text": "data", "parent": 146, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 15}}, {"id": 149, "type": "!=", "text": "!=", "parent": 145, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 18}}, {"id": 150, "type": "null", "text": "NULL", "parent": 145, "children": [151], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 23}}, {"id": 151, "type": "NULL", "text": "NULL", "parent": 150, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 23}}, {"id": 152, "type": "call_expression", "text": "memcpy(tmp, data->data, info.size)", "parent": 143, "children": [153, 154], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 37}}, {"id": 153, "type": "identifier", "text": "memcpy", "parent": 152, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 9}}, {"id": 154, "type": "argument_list", "text": "(tmp, data->data, info.size)", "parent": 152, "children": [155, 156, 159], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 37}}, {"id": 155, "type": "identifier", "text": "tmp", "parent": 154, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 13}}, {"id": 156, "type": "field_expression", "text": "data->data", "parent": 154, "children": [157, 158], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 25}}, {"id": 157, "type": "identifier", "text": "data", "parent": 156, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 19}}, {"id": 158, "type": "field_identifier", "text": "data", "parent": 156, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 25}}, {"id": 159, "type": "field_expression", "text": "info.size", "parent": 154, "children": [160, 161], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 36}}, {"id": 160, "type": "identifier", "text": "info", "parent": 159, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 31}}, {"id": 161, "type": "field_identifier", "text": "size", "parent": 159, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 36}}, {"id": 162, "type": "call_expression", "text": "free(data->data)", "parent": 143, "children": [163, 164], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 19}}, {"id": 163, "type": "identifier", "text": "free", "parent": 162, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 7}}, {"id": 164, "type": "argument_list", "text": "(data->data)", "parent": 162, "children": [165], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 19}}, {"id": 165, "type": "field_expression", "text": "data->data", "parent": 164, "children": [166, 167], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 18}}, {"id": 166, "type": "identifier", "text": "data", "parent": 165, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 12}}, {"id": 167, "type": "field_identifier", "text": "data", "parent": 165, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 18}}, {"id": 168, "type": "assignment_expression", "text": "data->data = tmp", "parent": 124, "children": [169, 172, 173], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 18}}, {"id": 169, "type": "field_expression", "text": "data->data", "parent": 168, "children": [170, 171], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 12}}, {"id": 170, "type": "identifier", "text": "data", "parent": 169, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 171, "type": "field_identifier", "text": "data", "parent": 169, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 172, "type": "=", "text": "=", "parent": 168, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 14}}, {"id": 173, "type": "identifier", "text": "tmp", "parent": 168, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 18}}, {"id": 174, "type": "assignment_expression", "text": "data->dirty = 1", "parent": 124, "children": [175, 178, 179], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 17}}, {"id": 175, "type": "field_expression", "text": "data->dirty", "parent": 174, "children": [176, 177], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 13}}, {"id": 176, "type": "identifier", "text": "data", "parent": 175, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 6}}, {"id": 177, "type": "field_identifier", "text": "dirty", "parent": 175, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 13}}, {"id": 178, "type": "=", "text": "=", "parent": 174, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 15}}, {"id": 179, "type": "number_literal", "text": "1", "parent": 174, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 180, "type": "assignment_expression", "text": "info.size = new_size", "parent": 124, "children": [181, 184, 185], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 22}}, {"id": 181, "type": "field_expression", "text": "info.size", "parent": 180, "children": [182, 183], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 11}}, {"id": 182, "type": "identifier", "text": "info", "parent": 181, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 6}}, {"id": 183, "type": "field_identifier", "text": "size", "parent": 181, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 11}}, {"id": 184, "type": "=", "text": "=", "parent": 180, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 185, "type": "identifier", "text": "new_size", "parent": 180, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 22}}, {"id": 186, "type": "assignment_expression", "text": "data->size = new_size", "parent": 124, "children": [187, 190, 191], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 23}}, {"id": 187, "type": "field_expression", "text": "data->size", "parent": 186, "children": [188, 189], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 12}}, {"id": 188, "type": "identifier", "text": "data", "parent": 187, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 189, "type": "field_identifier", "text": "size", "parent": 187, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 12}}, {"id": 190, "type": "=", "text": "=", "parent": 186, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 14}}, {"id": 191, "type": "identifier", "text": "new_size", "parent": 186, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 23}}, {"id": 192, "type": "declaration", "text": "char* p = (char*)data->data;", "parent": 40, "children": [193, 194], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 30}}, {"id": 193, "type": "primitive_type", "text": "char", "parent": 192, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 194, "type": "init_declarator", "text": "* p = (char*)data->data", "parent": 192, "children": [195, 198, 199], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 29}}, {"id": 195, "type": "pointer_declarator", "text": "* p", "parent": 194, "children": [196, 197], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 8}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 6}}, {"id": 197, "type": "identifier", "text": "p", "parent": 195, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 8}}, {"id": 198, "type": "=", "text": "=", "parent": 194, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 11}}, {"id": 199, "type": "cast_expression", "text": "(char*)data->data", "parent": 194, "children": [200, 204], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 29}}, {"id": 200, "type": "type_descriptor", "text": "char*", "parent": 199, "children": [201, 202], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 18}}, {"id": 201, "type": "primitive_type", "text": "char", "parent": 200, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 17}}, {"id": 202, "type": "abstract_pointer_declarator", "text": "*", "parent": 200, "children": [203], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 18}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 18}}, {"id": 204, "type": "field_expression", "text": "data->data", "parent": 199, "children": [205, 206], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 29}}, {"id": 205, "type": "identifier", "text": "data", "parent": 204, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 23}}, {"id": 206, "type": "field_identifier", "text": "data", "parent": 204, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 29}}, {"id": 207, "type": "if_statement", "text": "if(p == NULL)\n\t\treturn -1;", "parent": 40, "children": [208, 214], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 38, "column": 12}}, {"id": 208, "type": "parenthesized_expression", "text": "(p == NULL)", "parent": 207, "children": [209], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 14}}, {"id": 209, "type": "binary_expression", "text": "p == NULL", "parent": 208, "children": [210, 211, 212], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 13}}, {"id": 210, "type": "identifier", "text": "p", "parent": 209, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 5}}, {"id": 211, "type": "==", "text": "==", "parent": 209, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 8}}, {"id": 212, "type": "null", "text": "NULL", "parent": 209, "children": [213], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 13}}, {"id": 213, "type": "NULL", "text": "NULL", "parent": 212, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 13}}, {"id": 214, "type": "return_statement", "text": "return -1;", "parent": 207, "children": [215], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 12}}, {"id": 215, "type": "number_literal", "text": "-1", "parent": 214, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 11}}, {"id": 216, "type": "call_expression", "text": "memcpy(p+seek, buf, size)", "parent": 40, "children": [217, 218], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 26}}, {"id": 217, "type": "identifier", "text": "memcpy", "parent": 216, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 218, "type": "argument_list", "text": "(p+seek, buf, size)", "parent": 216, "children": [219, 223, 224], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 26}}, {"id": 219, "type": "binary_expression", "text": "p+seek", "parent": 218, "children": [220, 221, 222], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 220, "type": "identifier", "text": "p", "parent": 219, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 9}}, {"id": 221, "type": "+", "text": "+", "parent": 219, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 10}}, {"id": 222, "type": "identifier", "text": "seek", "parent": 219, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 14}}, {"id": 223, "type": "identifier", "text": "buf", "parent": 218, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 19}}, {"id": 224, "type": "identifier", "text": "size", "parent": 218, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 25}}, {"id": 225, "type": "call_expression", "text": "fs_update(&info)", "parent": 40, "children": [226, 227], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 17}}, {"id": 226, "type": "identifier", "text": "fs_update", "parent": 225, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 10}}, {"id": 227, "type": "argument_list", "text": "(&info)", "parent": 225, "children": [228], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 17}}, {"id": 228, "type": "pointer_expression", "text": "&info", "parent": 227, "children": [229], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 16}}, {"id": 229, "type": "identifier", "text": "info", "parent": 228, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 16}}, {"id": 230, "type": "return_statement", "text": "return size;", "parent": 40, "children": [231], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 13}}, {"id": 231, "type": "identifier", "text": "size", "parent": 230, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 232, "type": "function_definition", "text": "static int32_t sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n\tfs_info_t info;\n\tif(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)\n\t\treturn -1;\n\tnode_data_t* data = (node_data_t*)info.data;\n\n\tint32_t fsize = 0;\n\tconst char* p = NULL;\n\tif(data->data == NULL)\n\t\treturn -1;\n\n\tfsize = info.size;\n\tp = (const char*)data->data;\n\tint32_t rest_size = fsize - seek; /*seek*/\n\tif(rest_size <= 0) {\n\t\treturn 0;\n\t}\n\n\tif(size > (uint32_t)rest_size)\n\t\tsize = rest_size;\n\tmemcpy(buf, p+seek, size);\n\treturn size;\n}", "parent": null, "children": [233, 234], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 233, "type": "primitive_type", "text": "int32_t", "parent": 232, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 14}}, {"id": 234, "type": "function_declarator", "text": "sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)", "parent": 232, "children": [235, 236], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 93}}, {"id": 235, "type": "identifier", "text": "sramdisk_read", "parent": 234, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 28}}, {"id": 236, "type": "parameter_list", "text": "(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)", "parent": 234, "children": [237, 240, 243, 248, 251], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 93}}, {"id": 237, "type": "parameter_declaration", "text": "int32_t pid", "parent": 236, "children": [238, 239], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 40}}, {"id": 238, "type": "primitive_type", "text": "int32_t", "parent": 237, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 36}}, {"id": 239, "type": "identifier", "text": "pid", "parent": 237, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 40}}, {"id": 240, "type": "parameter_declaration", "text": "int32_t fd", "parent": 236, "children": [241, 242], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 52}}, {"id": 241, "type": "primitive_type", "text": "int32_t", "parent": 240, "children": [], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 49}}, {"id": 242, "type": "identifier", "text": "fd", "parent": 240, "children": [], "start_point": {"row": 44, "column": 50}, "end_point": {"row": 44, "column": 52}}, {"id": 243, "type": "parameter_declaration", "text": "void* buf", "parent": 236, "children": [244, 245], "start_point": {"row": 44, "column": 54}, "end_point": {"row": 44, "column": 63}}, {"id": 244, "type": "primitive_type", "text": "void", "parent": 243, "children": [], "start_point": {"row": 44, "column": 54}, "end_point": {"row": 44, "column": 58}}, {"id": 245, "type": "pointer_declarator", "text": "* buf", "parent": 243, "children": [246, 247], "start_point": {"row": 44, "column": 58}, "end_point": {"row": 44, "column": 63}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 44, "column": 58}, "end_point": {"row": 44, "column": 59}}, {"id": 247, "type": "identifier", "text": "buf", "parent": 245, "children": [], "start_point": {"row": 44, "column": 60}, "end_point": {"row": 44, "column": 63}}, {"id": 248, "type": "parameter_declaration", "text": "uint32_t size", "parent": 236, "children": [249, 250], "start_point": {"row": 44, "column": 65}, "end_point": {"row": 44, "column": 78}}, {"id": 249, "type": "primitive_type", "text": "uint32_t", "parent": 248, "children": [], "start_point": {"row": 44, "column": 65}, "end_point": {"row": 44, "column": 73}}, {"id": 250, "type": "identifier", "text": "size", "parent": 248, "children": [], "start_point": {"row": 44, "column": 74}, "end_point": {"row": 44, "column": 78}}, {"id": 251, "type": "parameter_declaration", "text": "int32_t seek", "parent": 236, "children": [252, 253], "start_point": {"row": 44, "column": 80}, "end_point": {"row": 44, "column": 92}}, {"id": 252, "type": "primitive_type", "text": "int32_t", "parent": 251, "children": [], "start_point": {"row": 44, "column": 80}, "end_point": {"row": 44, "column": 87}}, {"id": 253, "type": "identifier", "text": "seek", "parent": 251, "children": [], "start_point": {"row": 44, "column": 88}, "end_point": {"row": 44, "column": 92}}, {"id": 254, "type": "declaration", "text": "fs_info_t info;", "parent": 232, "children": [255, 256], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 16}}, {"id": 255, "type": "type_identifier", "text": "fs_info_t", "parent": 254, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 10}}, {"id": 256, "type": "identifier", "text": "info", "parent": 254, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 15}}, {"id": 257, "type": "if_statement", "text": "if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)\n\t\treturn -1;", "parent": 232, "children": [258, 282], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 48, "column": 12}}, {"id": 258, "type": "parenthesized_expression", "text": "(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)", "parent": 257, "children": [259], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 47, "column": 21}}, {"id": 259, "type": "binary_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL", "parent": 258, "children": [260, 274, 275], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 47, "column": 20}}, {"id": 260, "type": "binary_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0", "parent": 259, "children": [261, 272, 273], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 72}}, {"id": 261, "type": "call_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)", "parent": 260, "children": [262, 263], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 67}}, {"id": 262, "type": "identifier", "text": "syscall3", "parent": 261, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 12}}, {"id": 263, "type": "argument_list", "text": "(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)", "parent": 261, "children": [264, 265, 266, 267], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 67}}, {"id": 264, "type": "identifier", "text": "SYSCALL_PFILE_INFO_BY_PID_FD", "parent": 263, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 41}}, {"id": 265, "type": "identifier", "text": "pid", "parent": 263, "children": [], "start_point": {"row": 46, "column": 43}, "end_point": {"row": 46, "column": 46}}, {"id": 266, "type": "identifier", "text": "fd", "parent": 263, "children": [], "start_point": {"row": 46, "column": 48}, "end_point": {"row": 46, "column": 50}}, {"id": 267, "type": "cast_expression", "text": "(int32_t)&info", "parent": 263, "children": [268, 270], "start_point": {"row": 46, "column": 52}, "end_point": {"row": 46, "column": 66}}, {"id": 268, "type": "type_descriptor", "text": "int32_t", "parent": 267, "children": [269], "start_point": {"row": 46, "column": 53}, "end_point": {"row": 46, "column": 60}}, {"id": 269, "type": "primitive_type", "text": "int32_t", "parent": 268, "children": [], "start_point": {"row": 46, "column": 53}, "end_point": {"row": 46, "column": 60}}, {"id": 270, "type": "pointer_expression", "text": "&info", "parent": 267, "children": [271], "start_point": {"row": 46, "column": 61}, "end_point": {"row": 46, "column": 66}}, {"id": 271, "type": "identifier", "text": "info", "parent": 270, "children": [], "start_point": {"row": 46, "column": 62}, "end_point": {"row": 46, "column": 66}}, {"id": 272, "type": "!=", "text": "!=", "parent": 260, "children": [], "start_point": {"row": 46, "column": 68}, "end_point": {"row": 46, "column": 70}}, {"id": 273, "type": "number_literal", "text": "0", "parent": 260, "children": [], "start_point": {"row": 46, "column": 71}, "end_point": {"row": 46, "column": 72}}, {"id": 274, "type": "||", "text": "||", "parent": 259, "children": [], "start_point": {"row": 46, "column": 73}, "end_point": {"row": 46, "column": 75}}, {"id": 275, "type": "binary_expression", "text": "info.data == NULL", "parent": 259, "children": [276, 279, 280], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 20}}, {"id": 276, "type": "field_expression", "text": "info.data", "parent": 275, "children": [277, 278], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 12}}, {"id": 277, "type": "identifier", "text": "info", "parent": 276, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 7}}, {"id": 278, "type": "field_identifier", "text": "data", "parent": 276, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 12}}, {"id": 279, "type": "==", "text": "==", "parent": 275, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 15}}, {"id": 280, "type": "null", "text": "NULL", "parent": 275, "children": [281], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 281, "type": "NULL", "text": "NULL", "parent": 280, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 20}}, {"id": 282, "type": "return_statement", "text": "return -1;", "parent": 257, "children": [283], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 12}}, {"id": 283, "type": "number_literal", "text": "-1", "parent": 282, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 11}}, {"id": 284, "type": "declaration", "text": "node_data_t* data = (node_data_t*)info.data;", "parent": 232, "children": [285, 286], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 45}}, {"id": 285, "type": "type_identifier", "text": "node_data_t", "parent": 284, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 12}}, {"id": 286, "type": "init_declarator", "text": "* data = (node_data_t*)info.data", "parent": 284, "children": [287, 290, 291], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 44}}, {"id": 287, "type": "pointer_declarator", "text": "* data", "parent": 286, "children": [288, 289], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 18}}, {"id": 288, "type": "*", "text": "*", "parent": 287, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 13}}, {"id": 289, "type": "identifier", "text": "data", "parent": 287, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 18}}, {"id": 290, "type": "=", "text": "=", "parent": 286, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 291, "type": "cast_expression", "text": "(node_data_t*)info.data", "parent": 286, "children": [292, 296], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 44}}, {"id": 292, "type": "type_descriptor", "text": "node_data_t*", "parent": 291, "children": [293, 294], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 34}}, {"id": 293, "type": "type_identifier", "text": "node_data_t", "parent": 292, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 33}}, {"id": 294, "type": "abstract_pointer_declarator", "text": "*", "parent": 292, "children": [295], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 34}}, {"id": 295, "type": "*", "text": "*", "parent": 294, "children": [], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 34}}, {"id": 296, "type": "field_expression", "text": "info.data", "parent": 291, "children": [297, 298], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 44}}, {"id": 297, "type": "identifier", "text": "info", "parent": 296, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 39}}, {"id": 298, "type": "field_identifier", "text": "data", "parent": 296, "children": [], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 44}}, {"id": 299, "type": "declaration", "text": "int32_t fsize = 0;", "parent": 232, "children": [300, 301], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 19}}, {"id": 300, "type": "primitive_type", "text": "int32_t", "parent": 299, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 8}}, {"id": 301, "type": "init_declarator", "text": "fsize = 0", "parent": 299, "children": [302, 303, 304], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 18}}, {"id": 302, "type": "identifier", "text": "fsize", "parent": 301, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 14}}, {"id": 303, "type": "=", "text": "=", "parent": 301, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 16}}, {"id": 304, "type": "number_literal", "text": "0", "parent": 301, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 305, "type": "declaration", "text": "const char* p = NULL;", "parent": 232, "children": [306, 307], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 22}}, {"id": 306, "type": "primitive_type", "text": "char", "parent": 305, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 11}}, {"id": 307, "type": "init_declarator", "text": "* p = NULL", "parent": 305, "children": [308, 311, 312], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 21}}, {"id": 308, "type": "pointer_declarator", "text": "* p", "parent": 307, "children": [309, 310], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 14}}, {"id": 309, "type": "*", "text": "*", "parent": 308, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 12}}, {"id": 310, "type": "identifier", "text": "p", "parent": 308, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 14}}, {"id": 311, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 16}}, {"id": 312, "type": "null", "text": "NULL", "parent": 307, "children": [313], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 21}}, {"id": 313, "type": "NULL", "text": "NULL", "parent": 312, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 21}}, {"id": 314, "type": "if_statement", "text": "if(data->data == NULL)\n\t\treturn -1;", "parent": 232, "children": [315, 323], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 54, "column": 12}}, {"id": 315, "type": "parenthesized_expression", "text": "(data->data == NULL)", "parent": 314, "children": [316], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 23}}, {"id": 316, "type": "binary_expression", "text": "data->data == NULL", "parent": 315, "children": [317, 320, 321], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 22}}, {"id": 317, "type": "field_expression", "text": "data->data", "parent": 316, "children": [318, 319], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 14}}, {"id": 318, "type": "identifier", "text": "data", "parent": 317, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 319, "type": "field_identifier", "text": "data", "parent": 317, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 14}}, {"id": 320, "type": "==", "text": "==", "parent": 316, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 17}}, {"id": 321, "type": "null", "text": "NULL", "parent": 316, "children": [322], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 22}}, {"id": 322, "type": "NULL", "text": "NULL", "parent": 321, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 22}}, {"id": 323, "type": "return_statement", "text": "return -1;", "parent": 314, "children": [324], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 12}}, {"id": 324, "type": "number_literal", "text": "-1", "parent": 323, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 11}}, {"id": 325, "type": "assignment_expression", "text": "fsize = info.size", "parent": 232, "children": [326, 327, 328], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 18}}, {"id": 326, "type": "identifier", "text": "fsize", "parent": 325, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 6}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 8}}, {"id": 328, "type": "field_expression", "text": "info.size", "parent": 325, "children": [329, 330], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 18}}, {"id": 329, "type": "identifier", "text": "info", "parent": 328, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 13}}, {"id": 330, "type": "field_identifier", "text": "size", "parent": 328, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 18}}, {"id": 331, "type": "assignment_expression", "text": "p = (const char*)data->data", "parent": 232, "children": [332, 333, 334], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 28}}, {"id": 332, "type": "identifier", "text": "p", "parent": 331, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 2}}, {"id": 333, "type": "=", "text": "=", "parent": 331, "children": [], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 4}}, {"id": 334, "type": "cast_expression", "text": "(const char*)data->data", "parent": 331, "children": [335, 339], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 28}}, {"id": 335, "type": "type_descriptor", "text": "const char*", "parent": 334, "children": [336, 337], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 17}}, {"id": 336, "type": "primitive_type", "text": "char", "parent": 335, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 16}}, {"id": 337, "type": "abstract_pointer_declarator", "text": "*", "parent": 335, "children": [338], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 17}}, {"id": 338, "type": "*", "text": "*", "parent": 337, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 17}}, {"id": 339, "type": "field_expression", "text": "data->data", "parent": 334, "children": [340, 341], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 28}}, {"id": 340, "type": "identifier", "text": "data", "parent": 339, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 22}}, {"id": 341, "type": "field_identifier", "text": "data", "parent": 339, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 28}}, {"id": 342, "type": "declaration", "text": "int32_t rest_size = fsize - seek;", "parent": 232, "children": [343, 344], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 34}}, {"id": 343, "type": "primitive_type", "text": "int32_t", "parent": 342, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 8}}, {"id": 344, "type": "init_declarator", "text": "rest_size = fsize - seek", "parent": 342, "children": [345, 346, 347], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 33}}, {"id": 345, "type": "identifier", "text": "rest_size", "parent": 344, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 18}}, {"id": 346, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 20}}, {"id": 347, "type": "binary_expression", "text": "fsize - seek", "parent": 344, "children": [348, 349, 350], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 33}}, {"id": 348, "type": "identifier", "text": "fsize", "parent": 347, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 26}}, {"id": 349, "type": "-", "text": "-", "parent": 347, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 28}}, {"id": 350, "type": "identifier", "text": "seek", "parent": 347, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 33}}, {"id": 351, "type": "if_statement", "text": "if(rest_size <= 0) {\n\t\treturn 0;\n\t}", "parent": 232, "children": [352], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 61, "column": 2}}, {"id": 352, "type": "parenthesized_expression", "text": "(rest_size <= 0)", "parent": 351, "children": [353], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 19}}, {"id": 353, "type": "binary_expression", "text": "rest_size <= 0", "parent": 352, "children": [354, 355, 356], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 18}}, {"id": 354, "type": "identifier", "text": "rest_size", "parent": 353, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 13}}, {"id": 355, "type": "<=", "text": "<=", "parent": 353, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 16}}, {"id": 356, "type": "number_literal", "text": "0", "parent": 353, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 357, "type": "return_statement", "text": "return 0;", "parent": 351, "children": [358], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 11}}, {"id": 358, "type": "number_literal", "text": "0", "parent": 357, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 10}}, {"id": 359, "type": "if_statement", "text": "if(size > (uint32_t)rest_size)\n\t\tsize = rest_size;", "parent": 232, "children": [360], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 64, "column": 19}}, {"id": 360, "type": "parenthesized_expression", "text": "(size > (uint32_t)rest_size)", "parent": 359, "children": [361], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 31}}, {"id": 361, "type": "binary_expression", "text": "size > (uint32_t)rest_size", "parent": 360, "children": [362, 363, 364], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 30}}, {"id": 362, "type": "identifier", "text": "size", "parent": 361, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 8}}, {"id": 363, "type": ">", "text": ">", "parent": 361, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 10}}, {"id": 364, "type": "cast_expression", "text": "(uint32_t)rest_size", "parent": 361, "children": [365, 367], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 30}}, {"id": 365, "type": "type_descriptor", "text": "uint32_t", "parent": 364, "children": [366], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 20}}, {"id": 366, "type": "primitive_type", "text": "uint32_t", "parent": 365, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 20}}, {"id": 367, "type": "identifier", "text": "rest_size", "parent": 364, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 30}}, {"id": 368, "type": "assignment_expression", "text": "size = rest_size", "parent": 359, "children": [369, 370, 371], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 18}}, {"id": 369, "type": "identifier", "text": "size", "parent": 368, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 6}}, {"id": 370, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 8}}, {"id": 371, "type": "identifier", "text": "rest_size", "parent": 368, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 18}}, {"id": 372, "type": "call_expression", "text": "memcpy(buf, p+seek, size)", "parent": 232, "children": [373, 374], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 26}}, {"id": 373, "type": "identifier", "text": "memcpy", "parent": 372, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 7}}, {"id": 374, "type": "argument_list", "text": "(buf, p+seek, size)", "parent": 372, "children": [375, 376, 380], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 26}}, {"id": 375, "type": "identifier", "text": "buf", "parent": 374, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 11}}, {"id": 376, "type": "binary_expression", "text": "p+seek", "parent": 374, "children": [377, 378, 379], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 19}}, {"id": 377, "type": "identifier", "text": "p", "parent": 376, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 14}}, {"id": 378, "type": "+", "text": "+", "parent": 376, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 15}}, {"id": 379, "type": "identifier", "text": "seek", "parent": 376, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 19}}, {"id": 380, "type": "identifier", "text": "size", "parent": 374, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 25}}, {"id": 381, "type": "return_statement", "text": "return size;", "parent": 232, "children": [382], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 13}}, {"id": 382, "type": "identifier", "text": "size", "parent": 381, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 12}}, {"id": 383, "type": "function_definition", "text": "static int32_t sramdisk_add(int32_t pid, const char* fname) {\n\t(void)pid;\n\t(void)fname;\n\treturn 0;\n}", "parent": null, "children": [384, 385], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 384, "type": "primitive_type", "text": "int32_t", "parent": 383, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 14}}, {"id": 385, "type": "function_declarator", "text": "sramdisk_add(int32_t pid, const char* fname)", "parent": 383, "children": [386, 387], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 59}}, {"id": 386, "type": "identifier", "text": "sramdisk_add", "parent": 385, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 27}}, {"id": 387, "type": "parameter_list", "text": "(int32_t pid, const char* fname)", "parent": 385, "children": [388, 391], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 59}}, {"id": 388, "type": "parameter_declaration", "text": "int32_t pid", "parent": 387, "children": [389, 390], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 39}}, {"id": 389, "type": "primitive_type", "text": "int32_t", "parent": 388, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 35}}, {"id": 390, "type": "identifier", "text": "pid", "parent": 388, "children": [], "start_point": {"row": 69, "column": 36}, "end_point": {"row": 69, "column": 39}}, {"id": 391, "type": "parameter_declaration", "text": "const char* fname", "parent": 387, "children": [392, 393], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 58}}, {"id": 392, "type": "primitive_type", "text": "char", "parent": 391, "children": [], "start_point": {"row": 69, "column": 47}, "end_point": {"row": 69, "column": 51}}, {"id": 393, "type": "pointer_declarator", "text": "* fname", "parent": 391, "children": [394, 395], "start_point": {"row": 69, "column": 51}, "end_point": {"row": 69, "column": 58}}, {"id": 394, "type": "*", "text": "*", "parent": 393, "children": [], "start_point": {"row": 69, "column": 51}, "end_point": {"row": 69, "column": 52}}, {"id": 395, "type": "identifier", "text": "fname", "parent": 393, "children": [], "start_point": {"row": 69, "column": 53}, "end_point": {"row": 69, "column": 58}}, {"id": 396, "type": "cast_expression", "text": "(void)pid", "parent": 383, "children": [397, 399], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 10}}, {"id": 397, "type": "type_descriptor", "text": "void", "parent": 396, "children": [398], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 6}}, {"id": 398, "type": "primitive_type", "text": "void", "parent": 397, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 6}}, {"id": 399, "type": "identifier", "text": "pid", "parent": 396, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 10}}, {"id": 400, "type": "cast_expression", "text": "(void)fname", "parent": 383, "children": [401, 403], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 12}}, {"id": 401, "type": "type_descriptor", "text": "void", "parent": 400, "children": [402], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 6}}, {"id": 402, "type": "primitive_type", "text": "void", "parent": 401, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 6}}, {"id": 403, "type": "identifier", "text": "fname", "parent": 400, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 12}}, {"id": 404, "type": "return_statement", "text": "return 0;", "parent": 383, "children": [405], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 10}}, {"id": 405, "type": "number_literal", "text": "0", "parent": 404, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 406, "type": "function_definition", "text": "static int32_t sramdisk_open(int32_t pid, int32_t fd, int32_t flags) {\n\t(void)flags;\n\tfs_info_t info;\n\tif(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)\n\t\treturn -1;\n\tif(info.type == FS_TYPE_DIR)\n\t\treturn 0;\n\tif(info.data == NULL) {\n\t\tinfo.data = malloc(sizeof(node_data_t));\n\t\tmemset(info.data, 0, sizeof(node_data_t));\n\t\tfs_update(&info);\n\t}\n\treturn 0;\n}", "parent": null, "children": [407, 408], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 88, "column": 1}}, {"id": 407, "type": "primitive_type", "text": "int32_t", "parent": 406, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 14}}, {"id": 408, "type": "function_declarator", "text": "sramdisk_open(int32_t pid, int32_t fd, int32_t flags)", "parent": 406, "children": [409, 410], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 68}}, {"id": 409, "type": "identifier", "text": "sramdisk_open", "parent": 408, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 28}}, {"id": 410, "type": "parameter_list", "text": "(int32_t pid, int32_t fd, int32_t flags)", "parent": 408, "children": [411, 414, 417], "start_point": {"row": 75, "column": 28}, "end_point": {"row": 75, "column": 68}}, {"id": 411, "type": "parameter_declaration", "text": "int32_t pid", "parent": 410, "children": [412, 413], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 40}}, {"id": 412, "type": "primitive_type", "text": "int32_t", "parent": 411, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 36}}, {"id": 413, "type": "identifier", "text": "pid", "parent": 411, "children": [], "start_point": {"row": 75, "column": 37}, "end_point": {"row": 75, "column": 40}}, {"id": 414, "type": "parameter_declaration", "text": "int32_t fd", "parent": 410, "children": [415, 416], "start_point": {"row": 75, "column": 42}, "end_point": {"row": 75, "column": 52}}, {"id": 415, "type": "primitive_type", "text": "int32_t", "parent": 414, "children": [], "start_point": {"row": 75, "column": 42}, "end_point": {"row": 75, "column": 49}}, {"id": 416, "type": "identifier", "text": "fd", "parent": 414, "children": [], "start_point": {"row": 75, "column": 50}, "end_point": {"row": 75, "column": 52}}, {"id": 417, "type": "parameter_declaration", "text": "int32_t flags", "parent": 410, "children": [418, 419], "start_point": {"row": 75, "column": 54}, "end_point": {"row": 75, "column": 67}}, {"id": 418, "type": "primitive_type", "text": "int32_t", "parent": 417, "children": [], "start_point": {"row": 75, "column": 54}, "end_point": {"row": 75, "column": 61}}, {"id": 419, "type": "identifier", "text": "flags", "parent": 417, "children": [], "start_point": {"row": 75, "column": 62}, "end_point": {"row": 75, "column": 67}}, {"id": 420, "type": "cast_expression", "text": "(void)flags", "parent": 406, "children": [421, 423], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 12}}, {"id": 421, "type": "type_descriptor", "text": "void", "parent": 420, "children": [422], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 422, "type": "primitive_type", "text": "void", "parent": 421, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 423, "type": "identifier", "text": "flags", "parent": 420, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 12}}, {"id": 424, "type": "declaration", "text": "fs_info_t info;", "parent": 406, "children": [425, 426], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 16}}, {"id": 425, "type": "type_identifier", "text": "fs_info_t", "parent": 424, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 426, "type": "identifier", "text": "info", "parent": 424, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 15}}, {"id": 427, "type": "if_statement", "text": "if(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)\n\t\treturn -1;", "parent": 406, "children": [428, 443], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 79, "column": 12}}, {"id": 428, "type": "parenthesized_expression", "text": "(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)", "parent": 427, "children": [429], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 73}}, {"id": 429, "type": "binary_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0", "parent": 428, "children": [430, 441, 442], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 72}}, {"id": 430, "type": "call_expression", "text": "syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)", "parent": 429, "children": [431, 432], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 67}}, {"id": 431, "type": "identifier", "text": "syscall3", "parent": 430, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 12}}, {"id": 432, "type": "argument_list", "text": "(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info)", "parent": 430, "children": [433, 434, 435, 436], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 67}}, {"id": 433, "type": "identifier", "text": "SYSCALL_PFILE_INFO_BY_PID_FD", "parent": 432, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 41}}, {"id": 434, "type": "identifier", "text": "pid", "parent": 432, "children": [], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 46}}, {"id": 435, "type": "identifier", "text": "fd", "parent": 432, "children": [], "start_point": {"row": 78, "column": 48}, "end_point": {"row": 78, "column": 50}}, {"id": 436, "type": "cast_expression", "text": "(int32_t)&info", "parent": 432, "children": [437, 439], "start_point": {"row": 78, "column": 52}, "end_point": {"row": 78, "column": 66}}, {"id": 437, "type": "type_descriptor", "text": "int32_t", "parent": 436, "children": [438], "start_point": {"row": 78, "column": 53}, "end_point": {"row": 78, "column": 60}}, {"id": 438, "type": "primitive_type", "text": "int32_t", "parent": 437, "children": [], "start_point": {"row": 78, "column": 53}, "end_point": {"row": 78, "column": 60}}, {"id": 439, "type": "pointer_expression", "text": "&info", "parent": 436, "children": [440], "start_point": {"row": 78, "column": 61}, "end_point": {"row": 78, "column": 66}}, {"id": 440, "type": "identifier", "text": "info", "parent": 439, "children": [], "start_point": {"row": 78, "column": 62}, "end_point": {"row": 78, "column": 66}}, {"id": 441, "type": "!=", "text": "!=", "parent": 429, "children": [], "start_point": {"row": 78, "column": 68}, "end_point": {"row": 78, "column": 70}}, {"id": 442, "type": "number_literal", "text": "0", "parent": 429, "children": [], "start_point": {"row": 78, "column": 71}, "end_point": {"row": 78, "column": 72}}, {"id": 443, "type": "return_statement", "text": "return -1;", "parent": 427, "children": [444], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 12}}, {"id": 444, "type": "number_literal", "text": "-1", "parent": 443, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 11}}, {"id": 445, "type": "if_statement", "text": "if(info.type == FS_TYPE_DIR)\n\t\treturn 0;", "parent": 406, "children": [446, 453], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 81, "column": 11}}, {"id": 446, "type": "parenthesized_expression", "text": "(info.type == FS_TYPE_DIR)", "parent": 445, "children": [447], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 29}}, {"id": 447, "type": "binary_expression", "text": "info.type == FS_TYPE_DIR", "parent": 446, "children": [448, 451, 452], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 28}}, {"id": 448, "type": "field_expression", "text": "info.type", "parent": 447, "children": [449, 450], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 13}}, {"id": 449, "type": "identifier", "text": "info", "parent": 448, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 450, "type": "field_identifier", "text": "type", "parent": 448, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 13}}, {"id": 451, "type": "==", "text": "==", "parent": 447, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 16}}, {"id": 452, "type": "identifier", "text": "FS_TYPE_DIR", "parent": 447, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 28}}, {"id": 453, "type": "return_statement", "text": "return 0;", "parent": 445, "children": [454], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 11}}, {"id": 454, "type": "number_literal", "text": "0", "parent": 453, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 10}}, {"id": 455, "type": "if_statement", "text": "if(info.data == NULL) {\n\t\tinfo.data = malloc(sizeof(node_data_t));\n\t\tmemset(info.data, 0, sizeof(node_data_t));\n\t\tfs_update(&info);\n\t}", "parent": 406, "children": [456], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 86, "column": 2}}, {"id": 456, "type": "parenthesized_expression", "text": "(info.data == NULL)", "parent": 455, "children": [457], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 22}}, {"id": 457, "type": "binary_expression", "text": "info.data == NULL", "parent": 456, "children": [458, 461, 462], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 21}}, {"id": 458, "type": "field_expression", "text": "info.data", "parent": 457, "children": [459, 460], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 13}}, {"id": 459, "type": "identifier", "text": "info", "parent": 458, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 8}}, {"id": 460, "type": "field_identifier", "text": "data", "parent": 458, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 13}}, {"id": 461, "type": "==", "text": "==", "parent": 457, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 16}}, {"id": 462, "type": "null", "text": "NULL", "parent": 457, "children": [463], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 21}}, {"id": 463, "type": "NULL", "text": "NULL", "parent": 462, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 21}}, {"id": 464, "type": "assignment_expression", "text": "info.data = malloc(sizeof(node_data_t))", "parent": 455, "children": [465, 468, 469], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 41}}, {"id": 465, "type": "field_expression", "text": "info.data", "parent": 464, "children": [466, 467], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 11}}, {"id": 466, "type": "identifier", "text": "info", "parent": 465, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 6}}, {"id": 467, "type": "field_identifier", "text": "data", "parent": 465, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 11}}, {"id": 468, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 469, "type": "call_expression", "text": "malloc(sizeof(node_data_t))", "parent": 464, "children": [470, 471], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 41}}, {"id": 470, "type": "identifier", "text": "malloc", "parent": 469, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 20}}, {"id": 471, "type": "argument_list", "text": "(sizeof(node_data_t))", "parent": 469, "children": [472], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 41}}, {"id": 472, "type": "sizeof_expression", "text": "sizeof(node_data_t)", "parent": 471, "children": [473], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 40}}, {"id": 473, "type": "parenthesized_expression", "text": "(node_data_t)", "parent": 472, "children": [474], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 40}}, {"id": 474, "type": "identifier", "text": "node_data_t", "parent": 473, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 39}}, {"id": 475, "type": "call_expression", "text": "memset(info.data, 0, sizeof(node_data_t))", "parent": 455, "children": [476, 477], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 43}}, {"id": 476, "type": "identifier", "text": "memset", "parent": 475, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 8}}, {"id": 477, "type": "argument_list", "text": "(info.data, 0, sizeof(node_data_t))", "parent": 475, "children": [478, 481, 482], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 43}}, {"id": 478, "type": "field_expression", "text": "info.data", "parent": 477, "children": [479, 480], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 18}}, {"id": 479, "type": "identifier", "text": "info", "parent": 478, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 13}}, {"id": 480, "type": "field_identifier", "text": "data", "parent": 478, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 18}}, {"id": 481, "type": "number_literal", "text": "0", "parent": 477, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 21}}, {"id": 482, "type": "sizeof_expression", "text": "sizeof(node_data_t)", "parent": 477, "children": [483], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 42}}, {"id": 483, "type": "parenthesized_expression", "text": "(node_data_t)", "parent": 482, "children": [484], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 42}}, {"id": 484, "type": "identifier", "text": "node_data_t", "parent": 483, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 41}}, {"id": 485, "type": "call_expression", "text": "fs_update(&info)", "parent": 455, "children": [486, 487], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 18}}, {"id": 486, "type": "identifier", "text": "fs_update", "parent": 485, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 11}}, {"id": 487, "type": "argument_list", "text": "(&info)", "parent": 485, "children": [488], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 18}}, {"id": 488, "type": "pointer_expression", "text": "&info", "parent": 487, "children": [489], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 17}}, {"id": 489, "type": "identifier", "text": "info", "parent": 488, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 17}}, {"id": 490, "type": "return_statement", "text": "return 0;", "parent": 406, "children": [491], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 10}}, {"id": 491, "type": "number_literal", "text": "0", "parent": 490, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 492, "type": "function_definition", "text": "static int32_t sramdisk_remove(fs_info_t* info, const char* fname) {\n\tif(info == NULL || fname == NULL || fname[0] == 0)\n\t\treturn -1;\n\tif(info->type == FS_TYPE_DIR)\n\t\treturn -1;\n\tif(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) \n\t\treturn -1;\n\n\tif(info->data != NULL) {\n\t\tnode_data_t* data = (node_data_t*)info->data;\n\t\tif(data->data != NULL)\n\t\t\tfree(data->data);\n\t\tfree(info->data);\n\t}\n\treturn 0;\n}", "parent": null, "children": [493, 494], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 493, "type": "primitive_type", "text": "int32_t", "parent": 492, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 14}}, {"id": 494, "type": "function_declarator", "text": "sramdisk_remove(fs_info_t* info, const char* fname)", "parent": 492, "children": [495, 496], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 66}}, {"id": 495, "type": "identifier", "text": "sramdisk_remove", "parent": 494, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 30}}, {"id": 496, "type": "parameter_list", "text": "(fs_info_t* info, const char* fname)", "parent": 494, "children": [497, 502], "start_point": {"row": 90, "column": 30}, "end_point": {"row": 90, "column": 66}}, {"id": 497, "type": "parameter_declaration", "text": "fs_info_t* info", "parent": 496, "children": [498, 499], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 46}}, {"id": 498, "type": "type_identifier", "text": "fs_info_t", "parent": 497, "children": [], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 40}}, {"id": 499, "type": "pointer_declarator", "text": "* info", "parent": 497, "children": [500, 501], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 46}}, {"id": 500, "type": "*", "text": "*", "parent": 499, "children": [], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 41}}, {"id": 501, "type": "identifier", "text": "info", "parent": 499, "children": [], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 46}}, {"id": 502, "type": "parameter_declaration", "text": "const char* fname", "parent": 496, "children": [503, 504], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 65}}, {"id": 503, "type": "primitive_type", "text": "char", "parent": 502, "children": [], "start_point": {"row": 90, "column": 54}, "end_point": {"row": 90, "column": 58}}, {"id": 504, "type": "pointer_declarator", "text": "* fname", "parent": 502, "children": [505, 506], "start_point": {"row": 90, "column": 58}, "end_point": {"row": 90, "column": 65}}, {"id": 505, "type": "*", "text": "*", "parent": 504, "children": [], "start_point": {"row": 90, "column": 58}, "end_point": {"row": 90, "column": 59}}, {"id": 506, "type": "identifier", "text": "fname", "parent": 504, "children": [], "start_point": {"row": 90, "column": 60}, "end_point": {"row": 90, "column": 65}}, {"id": 507, "type": "if_statement", "text": "if(info == NULL || fname == NULL || fname[0] == 0)\n\t\treturn -1;", "parent": 492, "children": [508, 529], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 92, "column": 12}}, {"id": 508, "type": "parenthesized_expression", "text": "(info == NULL || fname == NULL || fname[0] == 0)", "parent": 507, "children": [509], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 51}}, {"id": 509, "type": "binary_expression", "text": "info == NULL || fname == NULL || fname[0] == 0", "parent": 508, "children": [510, 522, 523], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 50}}, {"id": 510, "type": "binary_expression", "text": "info == NULL || fname == NULL", "parent": 509, "children": [511, 516, 517], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 33}}, {"id": 511, "type": "binary_expression", "text": "info == NULL", "parent": 510, "children": [512, 513, 514], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 16}}, {"id": 512, "type": "identifier", "text": "info", "parent": 511, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 8}}, {"id": 513, "type": "==", "text": "==", "parent": 511, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 11}}, {"id": 514, "type": "null", "text": "NULL", "parent": 511, "children": [515], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 16}}, {"id": 515, "type": "NULL", "text": "NULL", "parent": 514, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 16}}, {"id": 516, "type": "||", "text": "||", "parent": 510, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 19}}, {"id": 517, "type": "binary_expression", "text": "fname == NULL", "parent": 510, "children": [518, 519, 520], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 33}}, {"id": 518, "type": "identifier", "text": "fname", "parent": 517, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 25}}, {"id": 519, "type": "==", "text": "==", "parent": 517, "children": [], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 28}}, {"id": 520, "type": "null", "text": "NULL", "parent": 517, "children": [521], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 33}}, {"id": 521, "type": "NULL", "text": "NULL", "parent": 520, "children": [], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 33}}, {"id": 522, "type": "||", "text": "||", "parent": 509, "children": [], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 36}}, {"id": 523, "type": "binary_expression", "text": "fname[0] == 0", "parent": 509, "children": [524, 527, 528], "start_point": {"row": 91, "column": 37}, "end_point": {"row": 91, "column": 50}}, {"id": 524, "type": "subscript_expression", "text": "fname[0]", "parent": 523, "children": [525, 526], "start_point": {"row": 91, "column": 37}, "end_point": {"row": 91, "column": 45}}, {"id": 525, "type": "identifier", "text": "fname", "parent": 524, "children": [], "start_point": {"row": 91, "column": 37}, "end_point": {"row": 91, "column": 42}}, {"id": 526, "type": "number_literal", "text": "0", "parent": 524, "children": [], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 44}}, {"id": 527, "type": "==", "text": "==", "parent": 523, "children": [], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 48}}, {"id": 528, "type": "number_literal", "text": "0", "parent": 523, "children": [], "start_point": {"row": 91, "column": 49}, "end_point": {"row": 91, "column": 50}}, {"id": 529, "type": "return_statement", "text": "return -1;", "parent": 507, "children": [530], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 12}}, {"id": 530, "type": "number_literal", "text": "-1", "parent": 529, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 11}}, {"id": 531, "type": "if_statement", "text": "if(info->type == FS_TYPE_DIR)\n\t\treturn -1;", "parent": 492, "children": [532, 539], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 94, "column": 12}}, {"id": 532, "type": "parenthesized_expression", "text": "(info->type == FS_TYPE_DIR)", "parent": 531, "children": [533], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 30}}, {"id": 533, "type": "binary_expression", "text": "info->type == FS_TYPE_DIR", "parent": 532, "children": [534, 537, 538], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 29}}, {"id": 534, "type": "field_expression", "text": "info->type", "parent": 533, "children": [535, 536], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 14}}, {"id": 535, "type": "identifier", "text": "info", "parent": 534, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 8}}, {"id": 536, "type": "field_identifier", "text": "type", "parent": 534, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 14}}, {"id": 537, "type": "==", "text": "==", "parent": 533, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 17}}, {"id": 538, "type": "identifier", "text": "FS_TYPE_DIR", "parent": 533, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 29}}, {"id": 539, "type": "return_statement", "text": "return -1;", "parent": 531, "children": [540], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 12}}, {"id": 540, "type": "number_literal", "text": "-1", "parent": 539, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 11}}, {"id": 541, "type": "if_statement", "text": "if(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) \n\t\treturn -1;", "parent": 492, "children": [542, 554], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 96, "column": 12}}, {"id": 542, "type": "parenthesized_expression", "text": "(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0)", "parent": 541, "children": [543], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 55}}, {"id": 543, "type": "binary_expression", "text": "syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0", "parent": 542, "children": [544, 552, 553], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 54}}, {"id": 544, "type": "call_expression", "text": "syscall2(SYSCALL_PFILE_GET_REF, info->node, 2)", "parent": 543, "children": [545, 546], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 50}}, {"id": 545, "type": "identifier", "text": "syscall2", "parent": 544, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 12}}, {"id": 546, "type": "argument_list", "text": "(SYSCALL_PFILE_GET_REF, info->node, 2)", "parent": 544, "children": [547, 548, 551], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 50}}, {"id": 547, "type": "identifier", "text": "SYSCALL_PFILE_GET_REF", "parent": 546, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 34}}, {"id": 548, "type": "field_expression", "text": "info->node", "parent": 546, "children": [549, 550], "start_point": {"row": 95, "column": 36}, "end_point": {"row": 95, "column": 46}}, {"id": 549, "type": "identifier", "text": "info", "parent": 548, "children": [], "start_point": {"row": 95, "column": 36}, "end_point": {"row": 95, "column": 40}}, {"id": 550, "type": "field_identifier", "text": "node", "parent": 548, "children": [], "start_point": {"row": 95, "column": 42}, "end_point": {"row": 95, "column": 46}}, {"id": 551, "type": "number_literal", "text": "2", "parent": 546, "children": [], "start_point": {"row": 95, "column": 48}, "end_point": {"row": 95, "column": 49}}, {"id": 552, "type": ">", "text": ">", "parent": 543, "children": [], "start_point": {"row": 95, "column": 51}, "end_point": {"row": 95, "column": 52}}, {"id": 553, "type": "number_literal", "text": "0", "parent": 543, "children": [], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 54}}, {"id": 554, "type": "return_statement", "text": "return -1;", "parent": 541, "children": [555], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 12}}, {"id": 555, "type": "number_literal", "text": "-1", "parent": 554, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 11}}, {"id": 556, "type": "if_statement", "text": "if(info->data != NULL) {\n\t\tnode_data_t* data = (node_data_t*)info->data;\n\t\tif(data->data != NULL)\n\t\t\tfree(data->data);\n\t\tfree(info->data);\n\t}", "parent": 492, "children": [557], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 103, "column": 2}}, {"id": 557, "type": "parenthesized_expression", "text": "(info->data != NULL)", "parent": 556, "children": [558], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 23}}, {"id": 558, "type": "binary_expression", "text": "info->data != NULL", "parent": 557, "children": [559, 562, 563], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 22}}, {"id": 559, "type": "field_expression", "text": "info->data", "parent": 558, "children": [560, 561], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 14}}, {"id": 560, "type": "identifier", "text": "info", "parent": 559, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 8}}, {"id": 561, "type": "field_identifier", "text": "data", "parent": 559, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 14}}, {"id": 562, "type": "!=", "text": "!=", "parent": 558, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 17}}, {"id": 563, "type": "null", "text": "NULL", "parent": 558, "children": [564], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 22}}, {"id": 564, "type": "NULL", "text": "NULL", "parent": 563, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 22}}, {"id": 565, "type": "declaration", "text": "node_data_t* data = (node_data_t*)info->data;", "parent": 556, "children": [566, 567], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 47}}, {"id": 566, "type": "type_identifier", "text": "node_data_t", "parent": 565, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 13}}, {"id": 567, "type": "init_declarator", "text": "* data = (node_data_t*)info->data", "parent": 565, "children": [568, 571, 572], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 46}}, {"id": 568, "type": "pointer_declarator", "text": "* data", "parent": 567, "children": [569, 570], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 19}}, {"id": 569, "type": "*", "text": "*", "parent": 568, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 570, "type": "identifier", "text": "data", "parent": 568, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 19}}, {"id": 571, "type": "=", "text": "=", "parent": 567, "children": [], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 21}}, {"id": 572, "type": "cast_expression", "text": "(node_data_t*)info->data", "parent": 567, "children": [573, 577], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 46}}, {"id": 573, "type": "type_descriptor", "text": "node_data_t*", "parent": 572, "children": [574, 575], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 35}}, {"id": 574, "type": "type_identifier", "text": "node_data_t", "parent": 573, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 34}}, {"id": 575, "type": "abstract_pointer_declarator", "text": "*", "parent": 573, "children": [576], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 35}}, {"id": 576, "type": "*", "text": "*", "parent": 575, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 35}}, {"id": 577, "type": "field_expression", "text": "info->data", "parent": 572, "children": [578, 579], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 46}}, {"id": 578, "type": "identifier", "text": "info", "parent": 577, "children": [], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 40}}, {"id": 579, "type": "field_identifier", "text": "data", "parent": 577, "children": [], "start_point": {"row": 99, "column": 42}, "end_point": {"row": 99, "column": 46}}, {"id": 580, "type": "if_statement", "text": "if(data->data != NULL)\n\t\t\tfree(data->data);", "parent": 556, "children": [581], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 101, "column": 20}}, {"id": 581, "type": "parenthesized_expression", "text": "(data->data != NULL)", "parent": 580, "children": [582], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 24}}, {"id": 582, "type": "binary_expression", "text": "data->data != NULL", "parent": 581, "children": [583, 586, 587], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 23}}, {"id": 583, "type": "field_expression", "text": "data->data", "parent": 582, "children": [584, 585], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 15}}, {"id": 584, "type": "identifier", "text": "data", "parent": 583, "children": [], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 9}}, {"id": 585, "type": "field_identifier", "text": "data", "parent": 583, "children": [], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 15}}, {"id": 586, "type": "!=", "text": "!=", "parent": 582, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 18}}, {"id": 587, "type": "null", "text": "NULL", "parent": 582, "children": [588], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 23}}, {"id": 588, "type": "NULL", "text": "NULL", "parent": 587, "children": [], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 23}}, {"id": 589, "type": "call_expression", "text": "free(data->data)", "parent": 580, "children": [590, 591], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 19}}, {"id": 590, "type": "identifier", "text": "free", "parent": 589, "children": [], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 7}}, {"id": 591, "type": "argument_list", "text": "(data->data)", "parent": 589, "children": [592], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 19}}, {"id": 592, "type": "field_expression", "text": "data->data", "parent": 591, "children": [593, 594], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 18}}, {"id": 593, "type": "identifier", "text": "data", "parent": 592, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 12}}, {"id": 594, "type": "field_identifier", "text": "data", "parent": 592, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 18}}, {"id": 595, "type": "call_expression", "text": "free(info->data)", "parent": 556, "children": [596, 597], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 18}}, {"id": 596, "type": "identifier", "text": "free", "parent": 595, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 6}}, {"id": 597, "type": "argument_list", "text": "(info->data)", "parent": 595, "children": [598], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 18}}, {"id": 598, "type": "field_expression", "text": "info->data", "parent": 597, "children": [599, 600], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 17}}, {"id": 599, "type": "identifier", "text": "info", "parent": 598, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 11}}, {"id": 600, "type": "field_identifier", "text": "data", "parent": 598, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 17}}, {"id": 601, "type": "return_statement", "text": "return 0;", "parent": 492, "children": [602], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 10}}, {"id": 602, "type": "number_literal", "text": "0", "parent": 601, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 9}}, {"id": 603, "type": "function_definition", "text": "static int32_t sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info) {\n\t(void)pid;\n\t(void)fd;\n\n\tif(info == NULL)\n\t\treturn 0;\n\tif(info->type == FS_TYPE_DIR)\n\t\treturn 0;\n\tif(info->data != NULL) {\n\t\tnode_data_t* data = (node_data_t*)info->data;\n\t\tif(data->dirty == 1) {\n\t\t\tinfo->size = data->size;\n\t\t\tfs_update(info);\n\t\t}\n\t\tdata->dirty = 0;\n\t}\n\treturn 0;\n}", "parent": null, "children": [604, 605], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 124, "column": 1}}, {"id": 604, "type": "primitive_type", "text": "int32_t", "parent": 603, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 14}}, {"id": 605, "type": "function_declarator", "text": "sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info)", "parent": 603, "children": [606, 607], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 71}}, {"id": 606, "type": "identifier", "text": "sramdisk_close", "parent": 605, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 29}}, {"id": 607, "type": "parameter_list", "text": "(int32_t pid, int32_t fd, fs_info_t* info)", "parent": 605, "children": [608, 611, 614], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 71}}, {"id": 608, "type": "parameter_declaration", "text": "int32_t pid", "parent": 607, "children": [609, 610], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 41}}, {"id": 609, "type": "primitive_type", "text": "int32_t", "parent": 608, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 37}}, {"id": 610, "type": "identifier", "text": "pid", "parent": 608, "children": [], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 41}}, {"id": 611, "type": "parameter_declaration", "text": "int32_t fd", "parent": 607, "children": [612, 613], "start_point": {"row": 107, "column": 43}, "end_point": {"row": 107, "column": 53}}, {"id": 612, "type": "primitive_type", "text": "int32_t", "parent": 611, "children": [], "start_point": {"row": 107, "column": 43}, "end_point": {"row": 107, "column": 50}}, {"id": 613, "type": "identifier", "text": "fd", "parent": 611, "children": [], "start_point": {"row": 107, "column": 51}, "end_point": {"row": 107, "column": 53}}, {"id": 614, "type": "parameter_declaration", "text": "fs_info_t* info", "parent": 607, "children": [615, 616], "start_point": {"row": 107, "column": 55}, "end_point": {"row": 107, "column": 70}}, {"id": 615, "type": "type_identifier", "text": "fs_info_t", "parent": 614, "children": [], "start_point": {"row": 107, "column": 55}, "end_point": {"row": 107, "column": 64}}, {"id": 616, "type": "pointer_declarator", "text": "* info", "parent": 614, "children": [617, 618], "start_point": {"row": 107, "column": 64}, "end_point": {"row": 107, "column": 70}}, {"id": 617, "type": "*", "text": "*", "parent": 616, "children": [], "start_point": {"row": 107, "column": 64}, "end_point": {"row": 107, "column": 65}}, {"id": 618, "type": "identifier", "text": "info", "parent": 616, "children": [], "start_point": {"row": 107, "column": 66}, "end_point": {"row": 107, "column": 70}}, {"id": 619, "type": "cast_expression", "text": "(void)pid", "parent": 603, "children": [620, 622], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 10}}, {"id": 620, "type": "type_descriptor", "text": "void", "parent": 619, "children": [621], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 6}}, {"id": 621, "type": "primitive_type", "text": "void", "parent": 620, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 6}}, {"id": 622, "type": "identifier", "text": "pid", "parent": 619, "children": [], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 10}}, {"id": 623, "type": "cast_expression", "text": "(void)fd", "parent": 603, "children": [624, 626], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 9}}, {"id": 624, "type": "type_descriptor", "text": "void", "parent": 623, "children": [625], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 6}}, {"id": 625, "type": "primitive_type", "text": "void", "parent": 624, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 6}}, {"id": 626, "type": "identifier", "text": "fd", "parent": 623, "children": [], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 9}}, {"id": 627, "type": "if_statement", "text": "if(info == NULL)\n\t\treturn 0;", "parent": 603, "children": [628, 634], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 112, "column": 11}}, {"id": 628, "type": "parenthesized_expression", "text": "(info == NULL)", "parent": 627, "children": [629], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 17}}, {"id": 629, "type": "binary_expression", "text": "info == NULL", "parent": 628, "children": [630, 631, 632], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 16}}, {"id": 630, "type": "identifier", "text": "info", "parent": 629, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 8}}, {"id": 631, "type": "==", "text": "==", "parent": 629, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 11}}, {"id": 632, "type": "null", "text": "NULL", "parent": 629, "children": [633], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 16}}, {"id": 633, "type": "NULL", "text": "NULL", "parent": 632, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 16}}, {"id": 634, "type": "return_statement", "text": "return 0;", "parent": 627, "children": [635], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 11}}, {"id": 635, "type": "number_literal", "text": "0", "parent": 634, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 10}}, {"id": 636, "type": "if_statement", "text": "if(info->type == FS_TYPE_DIR)\n\t\treturn 0;", "parent": 603, "children": [637, 644], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 114, "column": 11}}, {"id": 637, "type": "parenthesized_expression", "text": "(info->type == FS_TYPE_DIR)", "parent": 636, "children": [638], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 30}}, {"id": 638, "type": "binary_expression", "text": "info->type == FS_TYPE_DIR", "parent": 637, "children": [639, 642, 643], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 29}}, {"id": 639, "type": "field_expression", "text": "info->type", "parent": 638, "children": [640, 641], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 14}}, {"id": 640, "type": "identifier", "text": "info", "parent": 639, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 8}}, {"id": 641, "type": "field_identifier", "text": "type", "parent": 639, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 14}}, {"id": 642, "type": "==", "text": "==", "parent": 638, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 17}}, {"id": 643, "type": "identifier", "text": "FS_TYPE_DIR", "parent": 638, "children": [], "start_point": {"row": 113, "column": 18}, "end_point": {"row": 113, "column": 29}}, {"id": 644, "type": "return_statement", "text": "return 0;", "parent": 636, "children": [645], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 11}}, {"id": 645, "type": "number_literal", "text": "0", "parent": 644, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 10}}, {"id": 646, "type": "if_statement", "text": "if(info->data != NULL) {\n\t\tnode_data_t* data = (node_data_t*)info->data;\n\t\tif(data->dirty == 1) {\n\t\t\tinfo->size = data->size;\n\t\t\tfs_update(info);\n\t\t}\n\t\tdata->dirty = 0;\n\t}", "parent": 603, "children": [647], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 122, "column": 2}}, {"id": 647, "type": "parenthesized_expression", "text": "(info->data != NULL)", "parent": 646, "children": [648], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 23}}, {"id": 648, "type": "binary_expression", "text": "info->data != NULL", "parent": 647, "children": [649, 652, 653], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 22}}, {"id": 649, "type": "field_expression", "text": "info->data", "parent": 648, "children": [650, 651], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 14}}, {"id": 650, "type": "identifier", "text": "info", "parent": 649, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 8}}, {"id": 651, "type": "field_identifier", "text": "data", "parent": 649, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 14}}, {"id": 652, "type": "!=", "text": "!=", "parent": 648, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 17}}, {"id": 653, "type": "null", "text": "NULL", "parent": 648, "children": [654], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 22}}, {"id": 654, "type": "NULL", "text": "NULL", "parent": 653, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 22}}, {"id": 655, "type": "declaration", "text": "node_data_t* data = (node_data_t*)info->data;", "parent": 646, "children": [656, 657], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 47}}, {"id": 656, "type": "type_identifier", "text": "node_data_t", "parent": 655, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 13}}, {"id": 657, "type": "init_declarator", "text": "* data = (node_data_t*)info->data", "parent": 655, "children": [658, 661, 662], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 46}}, {"id": 658, "type": "pointer_declarator", "text": "* data", "parent": 657, "children": [659, 660], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 19}}, {"id": 659, "type": "*", "text": "*", "parent": 658, "children": [], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 14}}, {"id": 660, "type": "identifier", "text": "data", "parent": 658, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 19}}, {"id": 661, "type": "=", "text": "=", "parent": 657, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 21}}, {"id": 662, "type": "cast_expression", "text": "(node_data_t*)info->data", "parent": 657, "children": [663, 667], "start_point": {"row": 116, "column": 22}, "end_point": {"row": 116, "column": 46}}, {"id": 663, "type": "type_descriptor", "text": "node_data_t*", "parent": 662, "children": [664, 665], "start_point": {"row": 116, "column": 23}, "end_point": {"row": 116, "column": 35}}, {"id": 664, "type": "type_identifier", "text": "node_data_t", "parent": 663, "children": [], "start_point": {"row": 116, "column": 23}, "end_point": {"row": 116, "column": 34}}, {"id": 665, "type": "abstract_pointer_declarator", "text": "*", "parent": 663, "children": [666], "start_point": {"row": 116, "column": 34}, "end_point": {"row": 116, "column": 35}}, {"id": 666, "type": "*", "text": "*", "parent": 665, "children": [], "start_point": {"row": 116, "column": 34}, "end_point": {"row": 116, "column": 35}}, {"id": 667, "type": "field_expression", "text": "info->data", "parent": 662, "children": [668, 669], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 46}}, {"id": 668, "type": "identifier", "text": "info", "parent": 667, "children": [], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 40}}, {"id": 669, "type": "field_identifier", "text": "data", "parent": 667, "children": [], "start_point": {"row": 116, "column": 42}, "end_point": {"row": 116, "column": 46}}, {"id": 670, "type": "if_statement", "text": "if(data->dirty == 1) {\n\t\t\tinfo->size = data->size;\n\t\t\tfs_update(info);\n\t\t}", "parent": 646, "children": [671], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 120, "column": 3}}, {"id": 671, "type": "parenthesized_expression", "text": "(data->dirty == 1)", "parent": 670, "children": [672], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 22}}, {"id": 672, "type": "binary_expression", "text": "data->dirty == 1", "parent": 671, "children": [673, 676, 677], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 21}}, {"id": 673, "type": "field_expression", "text": "data->dirty", "parent": 672, "children": [674, 675], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 16}}, {"id": 674, "type": "identifier", "text": "data", "parent": 673, "children": [], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 9}}, {"id": 675, "type": "field_identifier", "text": "dirty", "parent": 673, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 16}}, {"id": 676, "type": "==", "text": "==", "parent": 672, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 19}}, {"id": 677, "type": "number_literal", "text": "1", "parent": 672, "children": [], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 21}}, {"id": 678, "type": "assignment_expression", "text": "info->size = data->size", "parent": 670, "children": [679, 682, 683], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 26}}, {"id": 679, "type": "field_expression", "text": "info->size", "parent": 678, "children": [680, 681], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 13}}, {"id": 680, "type": "identifier", "text": "info", "parent": 679, "children": [], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 7}}, {"id": 681, "type": "field_identifier", "text": "size", "parent": 679, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 13}}, {"id": 682, "type": "=", "text": "=", "parent": 678, "children": [], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 15}}, {"id": 683, "type": "field_expression", "text": "data->size", "parent": 678, "children": [684, 685], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 26}}, {"id": 684, "type": "identifier", "text": "data", "parent": 683, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 20}}, {"id": 685, "type": "field_identifier", "text": "size", "parent": 683, "children": [], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 26}}, {"id": 686, "type": "call_expression", "text": "fs_update(info)", "parent": 670, "children": [687, 688], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 18}}, {"id": 687, "type": "identifier", "text": "fs_update", "parent": 686, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 12}}, {"id": 688, "type": "argument_list", "text": "(info)", "parent": 686, "children": [689], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 18}}, {"id": 689, "type": "identifier", "text": "info", "parent": 688, "children": [], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 17}}, {"id": 690, "type": "assignment_expression", "text": "data->dirty = 0", "parent": 646, "children": [691, 694, 695], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 17}}, {"id": 691, "type": "field_expression", "text": "data->dirty", "parent": 690, "children": [692, 693], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 13}}, {"id": 692, "type": "identifier", "text": "data", "parent": 691, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 6}}, {"id": 693, "type": "field_identifier", "text": "dirty", "parent": 691, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 13}}, {"id": 694, "type": "=", "text": "=", "parent": 690, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 15}}, {"id": 695, "type": "number_literal", "text": "0", "parent": 690, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 17}}, {"id": 696, "type": "return_statement", "text": "return 0;", "parent": 603, "children": [697], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 10}}, {"id": 697, "type": "number_literal", "text": "0", "parent": 696, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 9}}, {"id": 698, "type": "function_definition", "text": "int main(int argc, char* argv[]) {\n\tdevice_t dev = {0};\n\tdev.add = sramdisk_add;\n\tdev.open = sramdisk_open;\n\tdev.close = sramdisk_close;\n\tdev.read = sramdisk_read;\n\tdev.write = sramdisk_write;\n\tdev.remove = sramdisk_remove;\n\t\n\tdev_run(&dev, argc, argv);\n\treturn 0;\n}", "parent": null, "children": [699, 700], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 137, "column": 1}}, {"id": 699, "type": "primitive_type", "text": "int", "parent": 698, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 3}}, {"id": 700, "type": "function_declarator", "text": "main(int argc, char* argv[])", "parent": 698, "children": [701, 702], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 32}}, {"id": 701, "type": "identifier", "text": "main", "parent": 700, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 8}}, {"id": 702, "type": "parameter_list", "text": "(int argc, char* argv[])", "parent": 700, "children": [703, 706], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 32}}, {"id": 703, "type": "parameter_declaration", "text": "int argc", "parent": 702, "children": [704, 705], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 17}}, {"id": 704, "type": "primitive_type", "text": "int", "parent": 703, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 12}}, {"id": 705, "type": "identifier", "text": "argc", "parent": 703, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 17}}, {"id": 706, "type": "parameter_declaration", "text": "char* argv[]", "parent": 702, "children": [707, 708], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 31}}, {"id": 707, "type": "primitive_type", "text": "char", "parent": 706, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 23}}, {"id": 708, "type": "pointer_declarator", "text": "* argv[]", "parent": 706, "children": [709, 710], "start_point": {"row": 126, "column": 23}, "end_point": {"row": 126, "column": 31}}, {"id": 709, "type": "*", "text": "*", "parent": 708, "children": [], "start_point": {"row": 126, "column": 23}, "end_point": {"row": 126, "column": 24}}, {"id": 710, "type": "array_declarator", "text": "argv[]", "parent": 708, "children": [711], "start_point": {"row": 126, "column": 25}, "end_point": {"row": 126, "column": 31}}, {"id": 711, "type": "identifier", "text": "argv", "parent": 710, "children": [], "start_point": {"row": 126, "column": 25}, "end_point": {"row": 126, "column": 29}}, {"id": 712, "type": "declaration", "text": "device_t dev = {0};", "parent": 698, "children": [713, 714], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 20}}, {"id": 713, "type": "type_identifier", "text": "device_t", "parent": 712, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 9}}, {"id": 714, "type": "init_declarator", "text": "dev = {0}", "parent": 712, "children": [715, 716, 717], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 19}}, {"id": 715, "type": "identifier", "text": "dev", "parent": 714, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 13}}, {"id": 716, "type": "=", "text": "=", "parent": 714, "children": [], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 15}}, {"id": 717, "type": "initializer_list", "text": "{0}", "parent": 714, "children": [718], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 19}}, {"id": 718, "type": "number_literal", "text": "0", "parent": 717, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 18}}, {"id": 719, "type": "assignment_expression", "text": "dev.add = sramdisk_add", "parent": 698, "children": [720, 723, 724], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 23}}, {"id": 720, "type": "field_expression", "text": "dev.add", "parent": 719, "children": [721, 722], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 8}}, {"id": 721, "type": "identifier", "text": "dev", "parent": 720, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 4}}, {"id": 722, "type": "field_identifier", "text": "add", "parent": 720, "children": [], "start_point": {"row": 128, "column": 5}, "end_point": {"row": 128, "column": 8}}, {"id": 723, "type": "=", "text": "=", "parent": 719, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 10}}, {"id": 724, "type": "identifier", "text": "sramdisk_add", "parent": 719, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 23}}, {"id": 725, "type": "assignment_expression", "text": "dev.open = sramdisk_open", "parent": 698, "children": [726, 729, 730], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 25}}, {"id": 726, "type": "field_expression", "text": "dev.open", "parent": 725, "children": [727, 728], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 9}}, {"id": 727, "type": "identifier", "text": "dev", "parent": 726, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 4}}, {"id": 728, "type": "field_identifier", "text": "open", "parent": 726, "children": [], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 9}}, {"id": 729, "type": "=", "text": "=", "parent": 725, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 11}}, {"id": 730, "type": "identifier", "text": "sramdisk_open", "parent": 725, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 25}}, {"id": 731, "type": "assignment_expression", "text": "dev.close = sramdisk_close", "parent": 698, "children": [732, 735, 736], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 27}}, {"id": 732, "type": "field_expression", "text": "dev.close", "parent": 731, "children": [733, 734], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 10}}, {"id": 733, "type": "identifier", "text": "dev", "parent": 732, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 4}}, {"id": 734, "type": "field_identifier", "text": "close", "parent": 732, "children": [], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 10}}, {"id": 735, "type": "=", "text": "=", "parent": 731, "children": [], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 130, "column": 12}}, {"id": 736, "type": "identifier", "text": "sramdisk_close", "parent": 731, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 27}}, {"id": 737, "type": "assignment_expression", "text": "dev.read = sramdisk_read", "parent": 698, "children": [738, 741, 742], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 25}}, {"id": 738, "type": "field_expression", "text": "dev.read", "parent": 737, "children": [739, 740], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 9}}, {"id": 739, "type": "identifier", "text": "dev", "parent": 738, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 4}}, {"id": 740, "type": "field_identifier", "text": "read", "parent": 738, "children": [], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 9}}, {"id": 741, "type": "=", "text": "=", "parent": 737, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 11}}, {"id": 742, "type": "identifier", "text": "sramdisk_read", "parent": 737, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 25}}, {"id": 743, "type": "assignment_expression", "text": "dev.write = sramdisk_write", "parent": 698, "children": [744, 747, 748], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 27}}, {"id": 744, "type": "field_expression", "text": "dev.write", "parent": 743, "children": [745, 746], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 10}}, {"id": 745, "type": "identifier", "text": "dev", "parent": 744, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 4}}, {"id": 746, "type": "field_identifier", "text": "write", "parent": 744, "children": [], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 132, "column": 10}}, {"id": 747, "type": "=", "text": "=", "parent": 743, "children": [], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 12}}, {"id": 748, "type": "identifier", "text": "sramdisk_write", "parent": 743, "children": [], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 27}}, {"id": 749, "type": "assignment_expression", "text": "dev.remove = sramdisk_remove", "parent": 698, "children": [750, 753, 754], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 29}}, {"id": 750, "type": "field_expression", "text": "dev.remove", "parent": 749, "children": [751, 752], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 11}}, {"id": 751, "type": "identifier", "text": "dev", "parent": 750, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 4}}, {"id": 752, "type": "field_identifier", "text": "remove", "parent": 750, "children": [], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 11}}, {"id": 753, "type": "=", "text": "=", "parent": 749, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 13}}, {"id": 754, "type": "identifier", "text": "sramdisk_remove", "parent": 749, "children": [], "start_point": {"row": 133, "column": 14}, "end_point": {"row": 133, "column": 29}}, {"id": 755, "type": "call_expression", "text": "dev_run(&dev, argc, argv)", "parent": 698, "children": [756, 757], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 26}}, {"id": 756, "type": "identifier", "text": "dev_run", "parent": 755, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 8}}, {"id": 757, "type": "argument_list", "text": "(&dev, argc, argv)", "parent": 755, "children": [758, 760, 761], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 26}}, {"id": 758, "type": "pointer_expression", "text": "&dev", "parent": 757, "children": [759], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 13}}, {"id": 759, "type": "identifier", "text": "dev", "parent": 758, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 13}}, {"id": 760, "type": "identifier", "text": "argc", "parent": 757, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 19}}, {"id": 761, "type": "identifier", "text": "argv", "parent": 757, "children": [], "start_point": {"row": 135, "column": 21}, "end_point": {"row": 135, "column": 25}}, {"id": 762, "type": "return_statement", "text": "return 0;", "parent": 698, "children": [763], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 10}}, {"id": 763, "type": "number_literal", "text": "0", "parent": 762, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 9}}]}, "node_categories": {"declarations": {"functions": [40, 42, 232, 234, 383, 385, 406, 408, 492, 494, 603, 605, 698, 700], "variables": [24, 28, 31, 34, 45, 48, 51, 56, 59, 62, 92, 107, 132, 192, 237, 240, 243, 248, 251, 254, 284, 299, 305, 342, 388, 391, 411, 414, 417, 424, 497, 502, 565, 608, 611, 614, 655, 703, 706, 712], "classes": [26, 27], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [66, 67, 68, 69, 75, 78, 83, 84, 99, 104, 112, 117, 118, 125, 126, 129, 139, 144, 145, 146, 152, 156, 159, 162, 165, 169, 175, 181, 187, 199, 204, 208, 209, 216, 219, 225, 228, 258, 259, 260, 261, 267, 270, 275, 276, 291, 296, 315, 316, 317, 328, 334, 339, 347, 352, 353, 360, 361, 364, 372, 376, 396, 400, 420, 428, 429, 430, 436, 439, 446, 447, 448, 456, 457, 458, 465, 469, 472, 473, 475, 478, 482, 483, 485, 488, 508, 509, 510, 511, 517, 523, 524, 532, 533, 534, 542, 543, 544, 548, 557, 558, 559, 572, 577, 581, 582, 583, 589, 592, 595, 598, 619, 623, 628, 629, 637, 638, 639, 647, 648, 649, 662, 667, 671, 672, 673, 679, 683, 686, 691, 720, 726, 732, 738, 744, 750, 755, 758], "assignments": [168, 174, 180, 186, 325, 331, 368, 464, 678, 690, 719, 725, 731, 737, 743, 749], "loops": [], "conditionals": [30, 33, 38, 39, 43, 47, 50, 55, 58, 61, 63, 64, 65, 70, 72, 73, 74, 79, 85, 86, 93, 97, 101, 105, 106, 110, 113, 115, 116, 119, 124, 127, 130, 131, 137, 140, 142, 143, 147, 148, 153, 155, 157, 158, 160, 161, 163, 166, 167, 170, 171, 173, 176, 177, 182, 183, 185, 188, 189, 191, 197, 205, 206, 207, 210, 217, 220, 222, 223, 224, 226, 229, 231, 235, 239, 242, 247, 250, 253, 255, 256, 257, 262, 264, 265, 266, 271, 277, 278, 285, 289, 293, 297, 298, 302, 310, 314, 318, 319, 326, 329, 330, 332, 340, 341, 345, 348, 350, 351, 354, 359, 362, 367, 369, 371, 373, 375, 377, 379, 380, 382, 386, 390, 395, 399, 403, 409, 413, 416, 419, 423, 425, 426, 427, 431, 433, 434, 435, 440, 445, 449, 450, 452, 455, 459, 460, 466, 467, 470, 474, 476, 479, 480, 484, 486, 489, 495, 498, 501, 506, 507, 512, 518, 525, 531, 535, 536, 538, 541, 545, 547, 549, 550, 556, 560, 561, 566, 570, 574, 578, 579, 580, 584, 585, 590, 593, 594, 596, 599, 600, 606, 610, 613, 615, 618, 622, 626, 627, 630, 636, 640, 641, 643, 646, 650, 651, 656, 660, 664, 668, 669, 670, 674, 675, 680, 681, 684, 685, 687, 689, 692, 693, 701, 705, 711, 713, 715, 721, 722, 724, 727, 728, 730, 733, 734, 736, 739, 740, 742, 745, 746, 748, 751, 752, 754, 756, 759, 760, 761], "returns": [90, 122, 214, 230, 282, 323, 357, 381, 404, 443, 453, 490, 529, 539, 554, 601, 634, 644, 696, 762], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 81, 91, 121, 123, 179, 215, 273, 283, 304, 324, 356, 358, 405, 442, 444, 454, 481, 491, 526, 528, 530, 540, 551, 553, 555, 602, 635, 645, 677, 695, 697, 718, 763], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 40, "universal_type": "function", "name": "*", "text_snippet": "static int32_t sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n\tfs"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)"}, {"node_id": 232, "universal_type": "function", "name": "unknown", "text_snippet": "static int32_t sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n\tfs_"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek)"}, {"node_id": 383, "universal_type": "function", "name": "unknown", "text_snippet": "static int32_t sramdisk_add(int32_t pid, const char* fname) {\n\t(void)pid;\n\t(void)fname;\n\treturn 0;\n}"}, {"node_id": 385, "universal_type": "function", "name": "unknown", "text_snippet": "sramdisk_add(int32_t pid, const char* fname)"}, {"node_id": 406, "universal_type": "function", "name": "unknown", "text_snippet": "static int32_t sramdisk_open(int32_t pid, int32_t fd, int32_t flags) {\n\t(void)flags;\n\tfs_info_t info"}, {"node_id": 408, "universal_type": "function", "name": "unknown", "text_snippet": "sramdisk_open(int32_t pid, int32_t fd, int32_t flags)"}, {"node_id": 492, "universal_type": "function", "name": "unknown", "text_snippet": "static int32_t sramdisk_remove(fs_info_t* info, const char* fname) {\n\tif(info == NULL || fname == NU"}, {"node_id": 494, "universal_type": "function", "name": "unknown", "text_snippet": "sramdisk_remove(fs_info_t* info, const char* fname)"}, {"node_id": 603, "universal_type": "function", "name": "unknown", "text_snippet": "static int32_t sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info) {\n\t(void)pid;\n\t(void)fd;\n\n\ti"}, {"node_id": 605, "universal_type": "function", "name": "unknown", "text_snippet": "sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info)"}, {"node_id": 698, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char* argv[]) {\n\tdevice_t dev = {0};\n\tdev.add = sramdisk_add;\n\tdev.open = sramdis"}, {"node_id": 700, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char* argv[])"}], "class_declarations": [{"node_id": 26, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\tuint32_t size;\n\tint32_t dirty;\n\tvoid* data;\n}"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <unistd.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 <kstring.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <dev/devserv.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <vfs/vfs.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vfs/fs.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <syscall.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <device.h>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "#include <unistd.h>\n#include <stdlib.h>\n#include <kstring.h>\n#include <dev/devserv.h>\n#include <vfs/vfs.h>\n#include <vfs/fs.h>\n#include <syscall.h>\n#include <device.h>\n\ntypedef struct {\n\tuint32_t size;\n\tint32_t dirty;\n\tvoid* data;\n} node_data_t;\n\nstatic int32_t sramdisk_write(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n\tfs_info_t info;\n\tif(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)\n\t\treturn -1;\n\tnode_data_t* data = (node_data_t*)info.data;\n\n\tuint32_t new_size = seek+size;\n\tif(new_size == 0)\n\t\treturn 0;\n\tif(new_size > info.size) {\n\t\tvoid * tmp = malloc(new_size);\n\t\tif(data->data != NULL) {\n\t\t\tmemcpy(tmp, data->data, info.size);\n\t\t\tfree(data->data);\n\t\t}\n\t\tdata->data = tmp;\n\t\tdata->dirty = 1;\n\t\tinfo.size = new_size;\n\t\tdata->size = new_size;\n\t}\t\n\tchar* p = (char*)data->data;\n\tif(p == NULL)\n\t\treturn -1;\n\tmemcpy(p+seek, buf, size);\n\tfs_update(&info);\n\treturn size;\n}\n\nstatic int32_t sramdisk_read(int32_t pid, int32_t fd, void* buf, uint32_t size, int32_t seek) {\n\tfs_info_t info;\n\tif(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0 ||\n\t\t\tinfo.data == NULL)\n\t\treturn -1;\n\tnode_data_t* data = (node_data_t*)info.data;\n\n\tint32_t fsize = 0;\n\tconst char* p = NULL;\n\tif(data->data == NULL)\n\t\treturn -1;\n\n\tfsize = info.size;\n\tp = (const char*)data->data;\n\tint32_t rest_size = fsize - seek; /*seek*/\n\tif(rest_size <= 0) {\n\t\treturn 0;\n\t}\n\n\tif(size > (uint32_t)rest_size)\n\t\tsize = rest_size;\n\tmemcpy(buf, p+seek, size);\n\treturn size;\n}\n\nstatic int32_t sramdisk_add(int32_t pid, const char* fname) {\n\t(void)pid;\n\t(void)fname;\n\treturn 0;\n}\n\nstatic int32_t sramdisk_open(int32_t pid, int32_t fd, int32_t flags) {\n\t(void)flags;\n\tfs_info_t info;\n\tif(syscall3(SYSCALL_PFILE_INFO_BY_PID_FD, pid, fd, (int32_t)&info) != 0)\n\t\treturn -1;\n\tif(info.type == FS_TYPE_DIR)\n\t\treturn 0;\n\tif(info.data == NULL) {\n\t\tinfo.data = malloc(sizeof(node_data_t));\n\t\tmemset(info.data, 0, sizeof(node_data_t));\n\t\tfs_update(&info);\n\t}\n\treturn 0;\n}\n\nstatic int32_t sramdisk_remove(fs_info_t* info, const char* fname) {\n\tif(info == NULL || fname == NULL || fname[0] == 0)\n\t\treturn -1;\n\tif(info->type == FS_TYPE_DIR)\n\t\treturn -1;\n\tif(syscall2(SYSCALL_PFILE_GET_REF, info->node, 2) > 0) \n\t\treturn -1;\n\n\tif(info->data != NULL) {\n\t\tnode_data_t* data = (node_data_t*)info->data;\n\t\tif(data->data != NULL)\n\t\t\tfree(data->data);\n\t\tfree(info->data);\n\t}\n\treturn 0;\n}\n\nstatic int32_t sramdisk_close(int32_t pid, int32_t fd, fs_info_t* info) {\n\t(void)pid;\n\t(void)fd;\n\n\tif(info == NULL)\n\t\treturn 0;\n\tif(info->type == FS_TYPE_DIR)\n\t\treturn 0;\n\tif(info->data != NULL) {\n\t\tnode_data_t* data = (node_data_t*)info->data;\n\t\tif(data->dirty == 1) {\n\t\t\tinfo->size = data->size;\n\t\t\tfs_update(info);\n\t\t}\n\t\tdata->dirty = 0;\n\t}\n\treturn 0;\n}\n\nint main(int argc, char* argv[]) {\n\tdevice_t dev = {0};\n\tdev.add = sramdisk_add;\n\tdev.open = sramdisk_open;\n\tdev.close = sramdisk_close;\n\tdev.read = sramdisk_read;\n\tdev.write = sramdisk_write;\n\tdev.remove = sramdisk_remove;\n\t\n\tdev_run(&dev, argc, argv);\n\treturn 0;\n}\n"}
80,429
c
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: android/libcore/luni/src/main/java/java/util/concurrent/ScheduledFuture.java // #ifndef _JavaUtilConcurrentScheduledFuture_H_ #define _JavaUtilConcurrentScheduledFuture_H_ #include "J2ObjC_header.h" #include "java/util/concurrent/Delayed.h" #include "java/util/concurrent/Future.h" @protocol JavaUtilConcurrentScheduledFuture < JavaUtilConcurrentDelayed, JavaUtilConcurrentFuture, NSObject, JavaObject > @end J2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture) J2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture) #endif // _JavaUtilConcurrentScheduledFuture_H_
45.29
14
(translation_unit) "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: android/libcore/luni/src/main/java/java/util/concurrent/ScheduledFuture.java\n//\n\n#ifndef _JavaUtilConcurrentScheduledFuture_H_\n#define _JavaUtilConcurrentScheduledFuture_H_\n\n#include "J2ObjC_header.h"\n#include "java/util/concurrent/Delayed.h"\n#include "java/util/concurrent/Future.h"\n\n@protocol JavaUtilConcurrentScheduledFuture < JavaUtilConcurrentDelayed, JavaUtilConcurrentFuture, NSObject, JavaObject >\n\n@end\n\nJ2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)\n\n#endif // _JavaUtilConcurrentScheduledFuture_H_\n" (comment) "//" (comment) "// Generated by the J2ObjC translator. DO NOT EDIT!" (comment) "// source: android/libcore/luni/src/main/java/java/util/concurrent/ScheduledFuture.java" (comment) "//" (preproc_ifdef) "#ifndef _JavaUtilConcurrentScheduledFuture_H_\n#define _JavaUtilConcurrentScheduledFuture_H_\n\n#include "J2ObjC_header.h"\n#include "java/util/concurrent/Delayed.h"\n#include "java/util/concurrent/Future.h"\n\n@protocol JavaUtilConcurrentScheduledFuture < JavaUtilConcurrentDelayed, JavaUtilConcurrentFuture, NSObject, JavaObject >\n\n@end\n\nJ2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)\n\n#endif" (#ifndef) "#ifndef" (identifier) "_JavaUtilConcurrentScheduledFuture_H_" (preproc_def) "#define _JavaUtilConcurrentScheduledFuture_H_\n" (#define) "#define" (identifier) "_JavaUtilConcurrentScheduledFuture_H_" (preproc_include) "#include "J2ObjC_header.h"\n" (#include) "#include" (string_literal) ""J2ObjC_header.h"" (") """ (string_content) "J2ObjC_header.h" (") """ (preproc_include) "#include "java/util/concurrent/Delayed.h"\n" (#include) "#include" (string_literal) ""java/util/concurrent/Delayed.h"" (") """ (string_content) "java/util/concurrent/Delayed.h" (") """ (preproc_include) "#include "java/util/concurrent/Future.h"\n" (#include) "#include" (string_literal) ""java/util/concurrent/Future.h"" (") """ (string_content) "java/util/concurrent/Future.h" (") """ (ERROR) "@protocol JavaUtilConcurrentScheduledFuture < JavaUtilConcurrentDelayed, JavaUtilConcurrentFuture, NSObject, JavaObject >\n\n@end\n\nJ2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)" (ERROR) "@" (type_identifier) "protocol" (identifier) "JavaUtilConcurrentScheduledFuture" (ERROR) "< JavaUtilConcurrentDelayed" (<) "<" (identifier) "JavaUtilConcurrentDelayed" (,) "," (identifier) "JavaUtilConcurrentFuture" (,) "," (identifier) "NSObject" (,) "," (ERROR) "JavaObject >\n\n@end" (identifier) "JavaObject" (>) ">" (ERROR) "@" (identifier) "end" (function_declarator) "J2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)" (identifier) "J2OBJC_EMPTY_STATIC_INIT" (parameter_list) "(JavaUtilConcurrentScheduledFuture)" (() "(" (parameter_declaration) "JavaUtilConcurrentScheduledFuture" (type_identifier) "JavaUtilConcurrentScheduledFuture" ()) ")" (call_expression) "J2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)" (identifier) "J2OBJC_TYPE_LITERAL_HEADER" (argument_list) "(JavaUtilConcurrentScheduledFuture)" (() "(" (identifier) "JavaUtilConcurrentScheduledFuture" ()) ")" (#endif) "#endif" (comment) "// _JavaUtilConcurrentScheduledFuture_H_"
61
5
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 45.29, "nodes": 38, "errors": 0, "source_hash": "7883c86bcd6702ad0574e321c2adbad6e4de11794e5b234c30130b49672a26be", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _JavaUtilConcurrentScheduledFuture_H_\n#define _JavaUtilConcurrentScheduledFuture_H_\n\n#include \"J2ObjC_header.h\"\n#include \"java/util/concurrent/Delayed.h\"\n#include \"java/util/concurrent/Future.h\"\n\n@protocol JavaUtilConcurrentScheduledFuture < JavaUtilConcurrentDelayed, JavaUtilConcurrentFuture, NSObject, JavaObject >\n\n@end\n\nJ2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 37], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "identifier", "text": "_JavaUtilConcurrentScheduledFuture_H_", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 45}}, {"id": 3, "type": "preproc_def", "text": "#define _JavaUtilConcurrentScheduledFuture_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 5, "type": "identifier", "text": "_JavaUtilConcurrentScheduledFuture_H_", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 45}}, {"id": 6, "type": "preproc_include", "text": "#include \"J2ObjC_header.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"J2ObjC_header.h\"", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "#include \"java/util/concurrent/Delayed.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"java/util/concurrent/Delayed.h\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 41}}, {"id": 12, "type": "preproc_include", "text": "#include \"java/util/concurrent/Future.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"java/util/concurrent/Future.h\"", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 40}}, {"id": 15, "type": "ERROR", "text": "@protocol JavaUtilConcurrentScheduledFuture < JavaUtilConcurrentDelayed, JavaUtilConcurrentFuture, NSObject, JavaObject >\n\n@end\n\nJ2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)", "parent": 0, "children": [16, 17, 18, 19, 22, 23, 24, 28], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 18, "column": 61}}, {"id": 16, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 17, "type": "type_identifier", "text": "protocol", "parent": 15, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 18, "type": "identifier", "text": "JavaUtilConcurrentScheduledFuture", "parent": 15, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 43}}, {"id": 19, "type": "ERROR", "text": "< JavaUtilConcurrentDelayed", "parent": 15, "children": [20, 21], "start_point": {"row": 12, "column": 44}, "end_point": {"row": 12, "column": 71}}, {"id": 20, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 12, "column": 44}, "end_point": {"row": 12, "column": 45}}, {"id": 21, "type": "identifier", "text": "JavaUtilConcurrentDelayed", "parent": 19, "children": [], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 71}}, {"id": 22, "type": "identifier", "text": "JavaUtilConcurrentFuture", "parent": 15, "children": [], "start_point": {"row": 12, "column": 73}, "end_point": {"row": 12, "column": 97}}, {"id": 23, "type": "identifier", "text": "NSObject", "parent": 15, "children": [], "start_point": {"row": 12, "column": 99}, "end_point": {"row": 12, "column": 107}}, {"id": 24, "type": "ERROR", "text": "JavaObject >\n\n@end", "parent": 15, "children": [25, 26, 27], "start_point": {"row": 12, "column": 109}, "end_point": {"row": 14, "column": 4}}, {"id": 25, "type": "identifier", "text": "JavaObject", "parent": 24, "children": [], "start_point": {"row": 12, "column": 109}, "end_point": {"row": 12, "column": 119}}, {"id": 26, "type": ">", "text": ">", "parent": 24, "children": [], "start_point": {"row": 12, "column": 120}, "end_point": {"row": 12, "column": 121}}, {"id": 27, "type": "ERROR", "text": "@", "parent": 24, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 28, "type": "function_declarator", "text": "J2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)", "parent": 15, "children": [29, 30, 33], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 18, "column": 61}}, {"id": 29, "type": "identifier", "text": "J2OBJC_EMPTY_STATIC_INIT", "parent": 28, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 24}}, {"id": 30, "type": "parameter_list", "text": "(JavaUtilConcurrentScheduledFuture)", "parent": 28, "children": [31], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 59}}, {"id": 31, "type": "parameter_declaration", "text": "JavaUtilConcurrentScheduledFuture", "parent": 30, "children": [32], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 58}}, {"id": 32, "type": "type_identifier", "text": "JavaUtilConcurrentScheduledFuture", "parent": 31, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 58}}, {"id": 33, "type": "call_expression", "text": "J2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)", "parent": 28, "children": [34, 35], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 61}}, {"id": 34, "type": "identifier", "text": "J2OBJC_TYPE_LITERAL_HEADER", "parent": 33, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 26}}, {"id": 35, "type": "argument_list", "text": "(JavaUtilConcurrentScheduledFuture)", "parent": 33, "children": [36], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 61}}, {"id": 36, "type": "identifier", "text": "JavaUtilConcurrentScheduledFuture", "parent": 35, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 60}}, {"id": 37, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}]}, "node_categories": {"declarations": {"functions": [28], "variables": [31], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [33], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 17, 18, 21, 22, 23, 25, 29, 32, 34, 36, 37], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "J2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConc"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"J2ObjC_header.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"java/util/concurrent/Delayed.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"java/util/concurrent/Future.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "//\n// Generated by the J2ObjC translator. DO NOT EDIT!\n// source: android/libcore/luni/src/main/java/java/util/concurrent/ScheduledFuture.java\n//\n\n#ifndef _JavaUtilConcurrentScheduledFuture_H_\n#define _JavaUtilConcurrentScheduledFuture_H_\n\n#include \"J2ObjC_header.h\"\n#include \"java/util/concurrent/Delayed.h\"\n#include \"java/util/concurrent/Future.h\"\n\n@protocol JavaUtilConcurrentScheduledFuture < JavaUtilConcurrentDelayed, JavaUtilConcurrentFuture, NSObject, JavaObject >\n\n@end\n\nJ2OBJC_EMPTY_STATIC_INIT(JavaUtilConcurrentScheduledFuture)\n\nJ2OBJC_TYPE_LITERAL_HEADER(JavaUtilConcurrentScheduledFuture)\n\n#endif // _JavaUtilConcurrentScheduledFuture_H_\n"}
80,430
c
#ifndef HA8711DB6_A489_48BC_817B_90A3C1A227D5 #define HA8711DB6_A489_48BC_817B_90A3C1A227D5 #include "cctest/base/symbol.h" #include "cctest/core/test_fixture.h" #include "cctest/auto/auto_test_hook.h" /////////////////////////////////////////////////////////////// #define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject) /////////////////////////////////////////////////////////////// #define HOOK(type) \ struct type; \ static cctest::AutoTestHook<type> \ CCTEST_UNIQUE_NAME(auto_hook_); \ struct type : cctest::TestFixture \ #endif /* HA8711DB6_A489_48BC_817B_90A3C1A227D5 */
47.75
12
(translation_unit) "#ifndef HA8711DB6_A489_48BC_817B_90A3C1A227D5\n#define HA8711DB6_A489_48BC_817B_90A3C1A227D5\n\n#include "cctest/base/symbol.h"\n#include "cctest/core/test_fixture.h"\n#include "cctest/auto/auto_test_hook.h"\n\n///////////////////////////////////////////////////////////////\n#define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject)\n\n///////////////////////////////////////////////////////////////\n#define HOOK(type) \\nstruct type; \\nstatic cctest::AutoTestHook<type> \\nCCTEST_UNIQUE_NAME(auto_hook_); \\nstruct type : cctest::TestFixture \\n\n#endif /* HA8711DB6_A489_48BC_817B_90A3C1A227D5 */\n" (preproc_ifdef) "#ifndef HA8711DB6_A489_48BC_817B_90A3C1A227D5\n#define HA8711DB6_A489_48BC_817B_90A3C1A227D5\n\n#include "cctest/base/symbol.h"\n#include "cctest/core/test_fixture.h"\n#include "cctest/auto/auto_test_hook.h"\n\n///////////////////////////////////////////////////////////////\n#define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject)\n\n///////////////////////////////////////////////////////////////\n#define HOOK(type) \\nstruct type; \\nstatic cctest::AutoTestHook<type> \\nCCTEST_UNIQUE_NAME(auto_hook_); \\nstruct type : cctest::TestFixture \\n\n#endif" (#ifndef) "#ifndef" (identifier) "HA8711DB6_A489_48BC_817B_90A3C1A227D5" (preproc_def) "#define HA8711DB6_A489_48BC_817B_90A3C1A227D5\n" (#define) "#define" (identifier) "HA8711DB6_A489_48BC_817B_90A3C1A227D5" (preproc_include) "#include "cctest/base/symbol.h"\n" (#include) "#include" (string_literal) ""cctest/base/symbol.h"" (") """ (string_content) "cctest/base/symbol.h" (") """ (preproc_include) "#include "cctest/core/test_fixture.h"\n" (#include) "#include" (string_literal) ""cctest/core/test_fixture.h"" (") """ (string_content) "cctest/core/test_fixture.h" (") """ (preproc_include) "#include "cctest/auto/auto_test_hook.h"\n" (#include) "#include" (string_literal) ""cctest/auto/auto_test_hook.h"" (") """ (string_content) "cctest/auto/auto_test_hook.h" (") """ (comment) "///////////////////////////////////////////////////////////////" (preproc_def) "#define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject)\n" (#define) "#define" (identifier) "__HOOK_NAME" (preproc_arg) "CCTEST_UNIQUE_NAME(HookObject)" (comment) "///////////////////////////////////////////////////////////////" (preproc_function_def) "#define HOOK(type) \\nstruct type; \\nstatic cctest::AutoTestHook<type> \\nCCTEST_UNIQUE_NAME(auto_hook_); \\nstruct type : cctest::TestFixture \\n\n" (#define) "#define" (identifier) "HOOK" (preproc_params) "(type)" (() "(" (identifier) "type" ()) ")" (preproc_arg) "struct type; \\nstatic cctest::AutoTestHook<type> \\nCCTEST_UNIQUE_NAME(auto_hook_); \\nstruct type : cctest::TestFixture \\n" (#endif) "#endif" (comment) "/* HA8711DB6_A489_48BC_817B_90A3C1A227D5 */"
41
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 47.75, "nodes": 26, "errors": 0, "source_hash": "3a84780fb95bc0b5322c5c4855ecf5b2295f0e8fb06db943cee195f02354624f", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HA8711DB6_A489_48BC_817B_90A3C1A227D5\n#define HA8711DB6_A489_48BC_817B_90A3C1A227D5\n\n#include \"cctest/base/symbol.h\"\n#include \"cctest/core/test_fixture.h\"\n#include \"cctest/auto/auto_test_hook.h\"\n\n///////////////////////////////////////////////////////////////\n#define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject)\n\n///////////////////////////////////////////////////////////////\n#define HOOK(type) \\\nstruct type; \\\nstatic cctest::AutoTestHook<type> \\\nCCTEST_UNIQUE_NAME(auto_hook_); \\\nstruct type : cctest::TestFixture \\\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 19, 25], "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": "HA8711DB6_A489_48BC_817B_90A3C1A227D5", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 45}}, {"id": 3, "type": "preproc_def", "text": "#define HA8711DB6_A489_48BC_817B_90A3C1A227D5\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": "HA8711DB6_A489_48BC_817B_90A3C1A227D5", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 45}}, {"id": 6, "type": "preproc_include", "text": "#include \"cctest/base/symbol.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": "\"cctest/base/symbol.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 31}}, {"id": 9, "type": "preproc_include", "text": "#include \"cctest/core/test_fixture.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": "\"cctest/core/test_fixture.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 37}}, {"id": 12, "type": "preproc_include", "text": "#include \"cctest/auto/auto_test_hook.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": "\"cctest/auto/auto_test_hook.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 39}}, {"id": 15, "type": "preproc_def", "text": "#define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject)\n", "parent": 0, "children": [16, 17, 18], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 17, "type": "identifier", "text": "__HOOK_NAME", "parent": 15, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 19}}, {"id": 18, "type": "preproc_arg", "text": "CCTEST_UNIQUE_NAME(HookObject)", "parent": 15, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 50}}, {"id": 19, "type": "preproc_function_def", "text": "#define HOOK(type) \\\nstruct type; \\\nstatic cctest::AutoTestHook<type> \\\nCCTEST_UNIQUE_NAME(auto_hook_); \\\nstruct type : cctest::TestFixture \\\n\n", "parent": 0, "children": [20, 21, 22, 24], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 21, "type": "identifier", "text": "HOOK", "parent": 19, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 22, "type": "preproc_params", "text": "(type)", "parent": 19, "children": [23], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 18}}, {"id": 23, "type": "identifier", "text": "type", "parent": 22, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 17}}, {"id": 24, "type": "preproc_arg", "text": "struct type; \\\nstatic cctest::AutoTestHook<type> \\\nCCTEST_UNIQUE_NAME(auto_hook_); \\\nstruct type : cctest::TestFixture \\\n", "parent": 19, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 25, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}]}, "node_categories": {"declarations": {"functions": [19], "variables": [], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 17, 21, 23, 25], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 19, "universal_type": "function", "name": "type;", "text_snippet": "#define HOOK(type) \\\nstruct type; \\\nstatic cctest::AutoTestHoo"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"cctest/base/symbol.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"cctest/core/test_fixture.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"cctest/auto/auto_test_hook.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef HA8711DB6_A489_48BC_817B_90A3C1A227D5\n#define HA8711DB6_A489_48BC_817B_90A3C1A227D5\n\n#include \"cctest/base/symbol.h\"\n#include \"cctest/core/test_fixture.h\"\n#include \"cctest/auto/auto_test_hook.h\"\n\n///////////////////////////////////////////////////////////////\n#define __HOOK_NAME CCTEST_UNIQUE_NAME(HookObject)\n\n///////////////////////////////////////////////////////////////\n#define HOOK(type) \\\nstruct type; \\\nstatic cctest::AutoTestHook<type> \\\nCCTEST_UNIQUE_NAME(auto_hook_); \\\nstruct type : cctest::TestFixture \\\n\n#endif /* HA8711DB6_A489_48BC_817B_90A3C1A227D5 */\n"}
80,431
c
/** * Mojang Authentication API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: 2020-06-05 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /* * OAIGameProfileProperty.h * * */ #ifndef OAIGameProfileProperty_H #define OAIGameProfileProperty_H #include <QJsonObject> #include <QString> #include "OAIObject.h" namespace OpenAPI { class OAIGameProfileProperty: public OAIObject { public: OAIGameProfileProperty(); OAIGameProfileProperty(QString json); ~OAIGameProfileProperty() override; void init(); QString asJson () const override; QJsonObject asJsonObject() const override; void fromJsonObject(QJsonObject json) override; void fromJson(QString jsonString) override; QString getName() const; void setName(const QString &name); QString getValue() const; void setValue(const QString &value); virtual bool isSet() const override; private: QString name; bool m_name_isSet; QString value; bool m_value_isSet; }; } #endif // OAIGameProfileProperty_H
25.8
46
(translation_unit) "/**\n * Mojang Authentication API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: 2020-06-05\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/*\n * OAIGameProfileProperty.h\n *\n * \n */\n\n#ifndef OAIGameProfileProperty_H\n#define OAIGameProfileProperty_H\n\n#include <QJsonObject>\n\n\n#include <QString>\n\n#include "OAIObject.h"\n\nnamespace OpenAPI {\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n};\n\n}\n\n#endif // OAIGameProfileProperty_H\n" (comment) "/**\n * Mojang Authentication API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: 2020-06-05\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */" (comment) "/*\n * OAIGameProfileProperty.h\n *\n * \n */" (preproc_ifdef) "#ifndef OAIGameProfileProperty_H\n#define OAIGameProfileProperty_H\n\n#include <QJsonObject>\n\n\n#include <QString>\n\n#include "OAIObject.h"\n\nnamespace OpenAPI {\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n};\n\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "OAIGameProfileProperty_H" (preproc_def) "#define OAIGameProfileProperty_H\n" (#define) "#define" (identifier) "OAIGameProfileProperty_H" (preproc_include) "#include <QJsonObject>\n" (#include) "#include" (system_lib_string) "<QJsonObject>" (preproc_include) "#include <QString>\n" (#include) "#include" (system_lib_string) "<QString>" (preproc_include) "#include "OAIObject.h"\n" (#include) "#include" (string_literal) ""OAIObject.h"" (") """ (string_content) "OAIObject.h" (") """ (function_definition) "namespace OpenAPI {\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n};\n\n}" (type_identifier) "namespace" (identifier) "OpenAPI" (compound_statement) "{\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n};\n\n}" ({) "{" (function_definition) "class OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n}" (type_identifier) "class" (identifier) "OAIGameProfileProperty" (ERROR) ": public OAIObject" (:) ":" (identifier) "public" (identifier) "OAIObject" (compound_statement) "{\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n}" ({) "{" (labeled_statement) "public:\n OAIGameProfileProperty();" (statement_identifier) "public" (:) ":" (expression_statement) "OAIGameProfileProperty();" (call_expression) "OAIGameProfileProperty()" (identifier) "OAIGameProfileProperty" (argument_list) "()" (() "(" ()) ")" (;) ";" (macro_type_specifier) "OAIGameProfileProperty(QString json)" (identifier) "OAIGameProfileProperty" (() "(" (ERROR) "QString" (type_identifier) "QString" (type_descriptor) "json" (type_identifier) "json" ()) ")" (;) ";" (expression_statement) "~OAIGameProfileProperty() override;" (unary_expression) "~OAIGameProfileProperty()" (~) "~" (call_expression) "OAIGameProfileProperty()" (identifier) "OAIGameProfileProperty" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (declaration) "void init();" (primitive_type) "void" (function_declarator) "init()" (identifier) "init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;" (type_identifier) "QString" (function_declarator) "asJson ()" (identifier) "asJson" (parameter_list) "()" (() "(" ()) ")" (declaration) "const override;" (type_qualifier) "const" (const) "const" (type_identifier) "override" (identifier) "" (;) ";" (ERROR) "QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;" (type_identifier) "QJsonObject" (function_declarator) "asJsonObject() const override" (identifier) "asJsonObject" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (primitive_type) "void" (function_declarator) "fromJsonObject(QJsonObject json) override" (identifier) "fromJsonObject" (parameter_list) "(QJsonObject json)" (() "(" (parameter_declaration) "QJsonObject json" (type_identifier) "QJsonObject" (identifier) "json" ()) ")" (identifier) "override" (;) ";" (primitive_type) "void" (ERROR) "fromJson(QString jsonString) override;\n\n QString" (function_declarator) "fromJson(QString jsonString) override" (identifier) "fromJson" (parameter_list) "(QString jsonString)" (() "(" (parameter_declaration) "QString jsonString" (type_identifier) "QString" (identifier) "jsonString" ()) ")" (identifier) "override" (;) ";" (identifier) "QString" (function_declarator) "getName() const" (identifier) "getName" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "void setName(const QString &name);" (primitive_type) "void" (function_declarator) "setName(const QString &name)" (identifier) "setName" (parameter_list) "(const QString &name)" (() "(" (parameter_declaration) "const QString &name" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "name" ()) ")" (;) ";" (ERROR) "QString getValue() const;" (type_identifier) "QString" (function_declarator) "getValue() const" (identifier) "getValue" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "void setValue(const QString &value);" (primitive_type) "void" (function_declarator) "setValue(const QString &value)" (identifier) "setValue" (parameter_list) "(const QString &value)" (() "(" (parameter_declaration) "const QString &value" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "value" ()) ")" (;) ";" (declaration) "virtual bool isSet() const override;\n\nprivate:\n QString name;" (type_identifier) "virtual" (ERROR) "bool isSet() const override;\n\nprivate:\n QString" (identifier) "bool" (function_declarator) "isSet() const override" (identifier) "isSet" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (identifier) "private" (:) ":" (identifier) "QString" (identifier) "name" (;) ";" (declaration) "bool m_name_isSet;" (primitive_type) "bool" (identifier) "m_name_isSet" (;) ";" (declaration) "QString value;" (type_identifier) "QString" (identifier) "value" (;) ";" (declaration) "bool m_value_isSet;" (primitive_type) "bool" (identifier) "m_value_isSet" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif" (comment) "// OAIGameProfileProperty_H"
201
10
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 25.8, "nodes": 120, "errors": 0, "source_hash": "f8ab75d31fdb34c26f08007b3b689f70f7c904cf656e6105305c655b68400511", "categorized_nodes": 88}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef OAIGameProfileProperty_H\n#define OAIGameProfileProperty_H\n\n#include <QJsonObject>\n\n\n#include <QString>\n\n#include \"OAIObject.h\"\n\nnamespace OpenAPI {\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n};\n\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 119], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 61, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 2, "type": "identifier", "text": "OAIGameProfileProperty_H", "parent": 0, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 32}}, {"id": 3, "type": "preproc_def", "text": "#define OAIGameProfileProperty_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 5, "type": "identifier", "text": "OAIGameProfileProperty_H", "parent": 3, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 32}}, {"id": 6, "type": "preproc_include", "text": "#include <QJsonObject>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<QJsonObject>", "parent": 6, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include <QString>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<QString>", "parent": 9, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include \"OAIObject.h\"\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": "string_literal", "text": "\"OAIObject.h\"", "parent": 12, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 22}}, {"id": 15, "type": "function_definition", "text": "namespace OpenAPI {\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n};\n\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 9}}, {"id": 17, "type": "identifier", "text": "OpenAPI", "parent": 15, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 17}}, {"id": 18, "type": "function_definition", "text": "class OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n}", "parent": 15, "children": [19, 20], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 19, "type": "identifier", "text": "OAIGameProfileProperty", "parent": 18, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 28}}, {"id": 20, "type": "ERROR", "text": ": public OAIObject", "parent": 18, "children": [21], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 46}}, {"id": 21, "type": "identifier", "text": "OAIObject", "parent": 20, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 46}}, {"id": 22, "type": "labeled_statement", "text": "public:\n OAIGameProfileProperty();", "parent": 18, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 29}}, {"id": 23, "type": "call_expression", "text": "OAIGameProfileProperty()", "parent": 22, "children": [24, 25], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 28}}, {"id": 24, "type": "identifier", "text": "OAIGameProfileProperty", "parent": 23, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 26}}, {"id": 25, "type": "argument_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 28}}, {"id": 26, "type": "macro_type_specifier", "text": "OAIGameProfileProperty(QString json)", "parent": 18, "children": [27, 28, 30], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 40}}, {"id": 27, "type": "identifier", "text": "OAIGameProfileProperty", "parent": 26, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 26}}, {"id": 28, "type": "ERROR", "text": "QString", "parent": 26, "children": [29], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 34}}, {"id": 29, "type": "type_identifier", "text": "QString", "parent": 28, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 34}}, {"id": 30, "type": "type_descriptor", "text": "json", "parent": 26, "children": [31], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 39}}, {"id": 31, "type": "type_identifier", "text": "json", "parent": 30, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 39}}, {"id": 32, "type": "unary_expression", "text": "~OAIGameProfileProperty()", "parent": 18, "children": [33, 34], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 29}}, {"id": 33, "type": "~", "text": "~", "parent": 32, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 5}}, {"id": 34, "type": "call_expression", "text": "OAIGameProfileProperty()", "parent": 32, "children": [35, 36], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 29}}, {"id": 35, "type": "identifier", "text": "OAIGameProfileProperty", "parent": 34, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 27}}, {"id": 36, "type": "argument_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 29}}, {"id": 37, "type": "ERROR", "text": "override", "parent": 18, "children": [38], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 38}}, {"id": 38, "type": "identifier", "text": "override", "parent": 37, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 38}}, {"id": 39, "type": "declaration", "text": "void init();", "parent": 18, "children": [40, 41], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 16}}, {"id": 40, "type": "primitive_type", "text": "void", "parent": 39, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 8}}, {"id": 41, "type": "function_declarator", "text": "init()", "parent": 39, "children": [42, 43], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 15}}, {"id": 42, "type": "identifier", "text": "init", "parent": 41, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 13}}, {"id": 43, "type": "parameter_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 15}}, {"id": 44, "type": "ERROR", "text": "QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;", "parent": 18, "children": [45, 46, 49, 52, 79, 87, 92, 100, 110, 113, 116], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 55, "column": 23}}, {"id": 45, "type": "type_identifier", "text": "QString", "parent": 44, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 11}}, {"id": 46, "type": "function_declarator", "text": "asJson ()", "parent": 44, "children": [47, 48], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 21}}, {"id": 47, "type": "identifier", "text": "asJson", "parent": 46, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 18}}, {"id": 48, "type": "parameter_list", "text": "()", "parent": 46, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 21}}, {"id": 49, "type": "declaration", "text": "const override;", "parent": 44, "children": [50, 51], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 37}}, {"id": 50, "type": "type_identifier", "text": "override", "parent": 49, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 36}}, {"id": 51, "type": "identifier", "text": "", "parent": 49, "children": [], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 36}}, {"id": 52, "type": "ERROR", "text": "QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;", "parent": 44, "children": [53, 54, 58, 59, 66, 67, 76], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 42, "column": 28}}, {"id": 53, "type": "type_identifier", "text": "QJsonObject", "parent": 52, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 15}}, {"id": 54, "type": "function_declarator", "text": "asJsonObject() const override", "parent": 52, "children": [55, 56, 57], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 45}}, {"id": 55, "type": "identifier", "text": "asJsonObject", "parent": 54, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 28}}, {"id": 56, "type": "parameter_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 30}}, {"id": 57, "type": "identifier", "text": "override", "parent": 54, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 45}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 59, "type": "function_declarator", "text": "fromJsonObject(QJsonObject json) override", "parent": 52, "children": [60, 61, 65], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 50}}, {"id": 60, "type": "identifier", "text": "fromJsonObject", "parent": 59, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 23}}, {"id": 61, "type": "parameter_list", "text": "(QJsonObject json)", "parent": 59, "children": [62], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 41}}, {"id": 62, "type": "parameter_declaration", "text": "QJsonObject json", "parent": 61, "children": [63, 64], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 40}}, {"id": 63, "type": "type_identifier", "text": "QJsonObject", "parent": 62, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 35}}, {"id": 64, "type": "identifier", "text": "json", "parent": 62, "children": [], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 40}}, {"id": 65, "type": "identifier", "text": "override", "parent": 59, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 50}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 67, "type": "ERROR", "text": "fromJson(QString jsonString) override;\n\n QString", "parent": 52, "children": [68, 75], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 42, "column": 11}}, {"id": 68, "type": "function_declarator", "text": "fromJson(QString jsonString) override", "parent": 67, "children": [69, 70, 74], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 46}}, {"id": 69, "type": "identifier", "text": "fromJson", "parent": 68, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 17}}, {"id": 70, "type": "parameter_list", "text": "(QString jsonString)", "parent": 68, "children": [71], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 37}}, {"id": 71, "type": "parameter_declaration", "text": "QString jsonString", "parent": 70, "children": [72, 73], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 36}}, {"id": 72, "type": "type_identifier", "text": "QString", "parent": 71, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 25}}, {"id": 73, "type": "identifier", "text": "jsonString", "parent": 71, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 36}}, {"id": 74, "type": "identifier", "text": "override", "parent": 68, "children": [], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 46}}, {"id": 75, "type": "identifier", "text": "QString", "parent": 67, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 11}}, {"id": 76, "type": "function_declarator", "text": "getName() const", "parent": 52, "children": [77, 78], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 27}}, {"id": 77, "type": "identifier", "text": "getName", "parent": 76, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 19}}, {"id": 78, "type": "parameter_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 21}}, {"id": 79, "type": "declaration", "text": "void setName(const QString &name);", "parent": 44, "children": [80, 81], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 38}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 81, "type": "function_declarator", "text": "setName(const QString &name)", "parent": 79, "children": [82, 83], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 37}}, {"id": 82, "type": "identifier", "text": "setName", "parent": 81, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 16}}, {"id": 83, "type": "parameter_list", "text": "(const QString &name)", "parent": 81, "children": [84], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 37}}, {"id": 84, "type": "parameter_declaration", "text": "const QString &name", "parent": 83, "children": [85, 86], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 36}}, {"id": 85, "type": "type_identifier", "text": "QString", "parent": 84, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 30}}, {"id": 86, "type": "identifier", "text": "name", "parent": 84, "children": [], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 36}}, {"id": 87, "type": "ERROR", "text": "QString getValue() const;", "parent": 44, "children": [88, 89], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 29}}, {"id": 88, "type": "type_identifier", "text": "QString", "parent": 87, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 11}}, {"id": 89, "type": "function_declarator", "text": "getValue() const", "parent": 87, "children": [90, 91], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 28}}, {"id": 90, "type": "identifier", "text": "getValue", "parent": 89, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 20}}, {"id": 91, "type": "parameter_list", "text": "()", "parent": 89, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 22}}, {"id": 92, "type": "declaration", "text": "void setValue(const QString &value);", "parent": 44, "children": [93, 94], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 40}}, {"id": 93, "type": "primitive_type", "text": "void", "parent": 92, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 8}}, {"id": 94, "type": "function_declarator", "text": "setValue(const QString &value)", "parent": 92, "children": [95, 96], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 39}}, {"id": 95, "type": "identifier", "text": "setValue", "parent": 94, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 17}}, {"id": 96, "type": "parameter_list", "text": "(const QString &value)", "parent": 94, "children": [97], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 39}}, {"id": 97, "type": "parameter_declaration", "text": "const QString &value", "parent": 96, "children": [98, 99], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 38}}, {"id": 98, "type": "type_identifier", "text": "QString", "parent": 97, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 31}}, {"id": 99, "type": "identifier", "text": "value", "parent": 97, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 38}}, {"id": 100, "type": "declaration", "text": "virtual bool isSet() const override;\n\nprivate:\n QString name;", "parent": 44, "children": [101, 102, 109], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 51, "column": 17}}, {"id": 101, "type": "type_identifier", "text": "virtual", "parent": 100, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 11}}, {"id": 102, "type": "ERROR", "text": "bool isSet() const override;\n\nprivate:\n QString", "parent": 100, "children": [103, 104, 108], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 51, "column": 11}}, {"id": 103, "type": "identifier", "text": "bool", "parent": 102, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 16}}, {"id": 104, "type": "function_declarator", "text": "isSet() const override", "parent": 102, "children": [105, 106, 107], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 39}}, {"id": 105, "type": "identifier", "text": "isSet", "parent": 104, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 22}}, {"id": 106, "type": "parameter_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 24}}, {"id": 107, "type": "identifier", "text": "override", "parent": 104, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 39}}, {"id": 108, "type": "identifier", "text": "QString", "parent": 102, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 11}}, {"id": 109, "type": "identifier", "text": "name", "parent": 100, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 16}}, {"id": 110, "type": "declaration", "text": "bool m_name_isSet;", "parent": 44, "children": [111, 112], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 22}}, {"id": 111, "type": "primitive_type", "text": "bool", "parent": 110, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 8}}, {"id": 112, "type": "identifier", "text": "m_name_isSet", "parent": 110, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 21}}, {"id": 113, "type": "declaration", "text": "QString value;", "parent": 44, "children": [114, 115], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 18}}, {"id": 114, "type": "type_identifier", "text": "QString", "parent": 113, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 11}}, {"id": 115, "type": "identifier", "text": "value", "parent": 113, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 17}}, {"id": 116, "type": "declaration", "text": "bool m_value_isSet;", "parent": 44, "children": [117, 118], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 23}}, {"id": 117, "type": "primitive_type", "text": "bool", "parent": 116, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 8}}, {"id": 118, "type": "identifier", "text": "m_value_isSet", "parent": 116, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 22}}, {"id": 119, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 41, 46, 54, 59, 68, 76, 81, 89, 94, 104], "variables": [39, 49, 62, 71, 79, 84, 92, 97, 100, 110, 113, 116], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [23, 32, 34], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 21, 24, 26, 27, 29, 31, 35, 38, 42, 45, 47, 50, 51, 53, 55, 57, 60, 63, 64, 65, 69, 72, 73, 74, 75, 77, 82, 85, 86, 88, 90, 95, 98, 99, 101, 103, 105, 107, 108, 109, 112, 114, 115, 118, 119], "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": "OAIGameProfileProperty:", "text_snippet": "namespace OpenAPI {\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProp"}, {"node_id": 18, "universal_type": "function", "name": "OAIGameProfileProperty:", "text_snippet": "class OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGamePr"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "init()"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "asJson ()"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "asJsonObject() const override"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "fromJsonObject(QJsonObject json) override"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "fromJson(QString jsonString) override"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "getName() const"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "setName(const QString &name)"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "getValue() const"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "setValue(const QString &value)"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "isSet() const override"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QJsonObject>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QString>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"OAIObject.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/**\n * Mojang Authentication API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: 2020-06-05\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/*\n * OAIGameProfileProperty.h\n *\n * \n */\n\n#ifndef OAIGameProfileProperty_H\n#define OAIGameProfileProperty_H\n\n#include <QJsonObject>\n\n\n#include <QString>\n\n#include \"OAIObject.h\"\n\nnamespace OpenAPI {\n\nclass OAIGameProfileProperty: public OAIObject {\npublic:\n OAIGameProfileProperty();\n OAIGameProfileProperty(QString json);\n ~OAIGameProfileProperty() override;\n void init();\n\n QString asJson () const override;\n QJsonObject asJsonObject() const override;\n void fromJsonObject(QJsonObject json) override;\n void fromJson(QString jsonString) override;\n\n QString getName() const;\n void setName(const QString &name);\n\n QString getValue() const;\n void setValue(const QString &value);\n\n virtual bool isSet() const override;\n\nprivate:\n QString name;\n bool m_name_isSet;\n\n QString value;\n bool m_value_isSet;\n\n};\n\n}\n\n#endif // OAIGameProfileProperty_H\n"}
80,432
c
#ifndef BUFFER_H_ #define BUFFER_H_ #include "loader/glad.h" #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <stdexcept> #include <vector> #include "resource.h" #include "vertex.h" /** * Enumerates the different types of buffers */ enum class BufferType { Vertex, Index, }; /** * Enumerates the different usages for a buffer */ enum class BufferUsage { StaticDraw, DynamicDraw, }; /** * Stores raw vertex data into a memory buffer for * GPU access */ template <typename T> class Buffer : public Resource { uint32_t type_; uint32_t usage_; public: Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) { // Set OpenGL buffer type constant switch (type) { case BufferType::Vertex: type_ = GL_ARRAY_BUFFER; break; case BufferType::Index: type_ = GL_ELEMENT_ARRAY_BUFFER; break; default: throw std::runtime_error("Invalid buffer type"); break; } // Set OpenGL buffer usage constant switch (usage) { case BufferUsage::StaticDraw: usage_ = GL_STATIC_DRAW; break; case BufferUsage::DynamicDraw: usage_ = GL_DYNAMIC_DRAW; break; default: throw std::runtime_error("Invalid buffer usage"); break; } glGenBuffers(1, &handle_); glBindBuffer(type_, handle_); glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_); glBindBuffer(type_, 0); } ~Buffer() { glDeleteBuffers(1, &handle_); } /** * Bind the buffer to be used by the current context */ void bind() { glBindBuffer(type_, handle_); } /** * Unbind the buffer from the current context */ void unbind() { glBindBuffer(type_, 0); } }; #endif
24.94
72
(translation_unit) "#ifndef BUFFER_H_\n#define BUFFER_H_\n\n#include "loader/glad.h"\n#include <SDL2/SDL.h>\n#include <SDL2/SDL_opengl.h>\n\n#include <stdexcept>\n#include <vector>\n\n#include "resource.h"\n#include "vertex.h"\n\n/**\n * Enumerates the different types of buffers\n */\nenum class BufferType {\n Vertex,\n Index,\n};\n\n/**\n * Enumerates the different usages for a buffer\n */\nenum class BufferUsage {\n StaticDraw,\n DynamicDraw,\n};\n\n/**\n * Stores raw vertex data into a memory buffer for\n * GPU access\n */\ntemplate <typename T> class Buffer : public Resource {\n uint32_t type_;\n uint32_t usage_;\n\n public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }\n ~Buffer() { glDeleteBuffers(1, &handle_); }\n\n /**\n * Bind the buffer to be used by the current context\n */\n void bind() { glBindBuffer(type_, handle_); }\n\n /**\n * Unbind the buffer from the current context\n */\n void unbind() { glBindBuffer(type_, 0); }\n};\n\n#endif\n" (ERROR) "#ifndef BUFFER_H_\n#define BUFFER_H_\n\n#include "loader/glad.h"\n#include <SDL2/SDL.h>\n#include <SDL2/SDL_opengl.h>\n\n#include <stdexcept>\n#include <vector>\n\n#include "resource.h"\n#include "vertex.h"\n\n/**\n * Enumerates the different types of buffers\n */\nenum class BufferType {\n Vertex,\n Index,\n};\n\n/**\n * Enumerates the different usages for a buffer\n */\nenum class BufferUsage {\n StaticDraw,\n DynamicDraw,\n};\n\n/**\n * Stores raw vertex data into a memory buffer for\n * GPU access\n */\ntemplate <typename T> class Buffer : public Resource {\n uint32_t type_;\n uint32_t usage_;\n\n public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }\n ~Buffer() { glDeleteBuffers(1, &handle_); }\n\n /**\n * Bind the buffer to be used by the current context\n */\n void bind() { glBindBuffer(type_, handle_); }\n\n /**\n * Unbind the buffer from the current context\n */\n void unbind() { glBindBuffer(type_, 0); }\n};\n\n#endif\n" (#ifndef) "#ifndef" (identifier) "BUFFER_H_" (preproc_def) "#define BUFFER_H_\n" (#define) "#define" (identifier) "BUFFER_H_" (preproc_include) "#include "loader/glad.h"\n" (#include) "#include" (string_literal) ""loader/glad.h"" (") """ (string_content) "loader/glad.h" (") """ (preproc_include) "#include <SDL2/SDL.h>\n" (#include) "#include" (system_lib_string) "<SDL2/SDL.h>" (preproc_include) "#include <SDL2/SDL_opengl.h>\n" (#include) "#include" (system_lib_string) "<SDL2/SDL_opengl.h>" (preproc_include) "#include <stdexcept>\n" (#include) "#include" (system_lib_string) "<stdexcept>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include "resource.h"\n" (#include) "#include" (string_literal) ""resource.h"" (") """ (string_content) "resource.h" (") """ (preproc_include) "#include "vertex.h"\n" (#include) "#include" (string_literal) ""vertex.h"" (") """ (string_content) "vertex.h" (") """ (comment) "/**\n * Enumerates the different types of buffers\n */" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "BufferType" ({) "{" (expression_statement) "Vertex,\n Index,\n};" (comma_expression) "Vertex,\n Index" (identifier) "Vertex" (,) "," (identifier) "Index" (ERROR) ",\n}" (,) "," (}) "}" (;) ";" (comment) "/**\n * Enumerates the different usages for a buffer\n */" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "BufferUsage" ({) "{" (expression_statement) "StaticDraw,\n DynamicDraw,\n};" (comma_expression) "StaticDraw,\n DynamicDraw" (identifier) "StaticDraw" (,) "," (identifier) "DynamicDraw" (ERROR) ",\n}" (,) "," (}) "}" (;) ";" (comment) "/**\n * Stores raw vertex data into a memory buffer for\n * GPU access\n */" (expression_statement) "template <typename T> class" (binary_expression) "template <typename T> class" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (;) "" (labeled_statement) "Buffer : public Resource {\n uint32_t type_;\n uint32_t usage_;\n\n public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }\n ~Buffer() { glDeleteBuffers(1, &handle_); }\n\n /**\n * Bind the buffer to be used by the current context\n */\n void bind() { glBindBuffer(type_, handle_); }\n\n /**\n * Unbind the buffer from the current context\n */\n void unbind() { glBindBuffer(type_, 0); }\n}" (statement_identifier) "Buffer" (:) ":" (ERROR) "public Resource" (type_identifier) "public" (identifier) "Resource" (compound_statement) "{\n uint32_t type_;\n uint32_t usage_;\n\n public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }\n ~Buffer() { glDeleteBuffers(1, &handle_); }\n\n /**\n * Bind the buffer to be used by the current context\n */\n void bind() { glBindBuffer(type_, handle_); }\n\n /**\n * Unbind the buffer from the current context\n */\n void unbind() { glBindBuffer(type_, 0); }\n}" ({) "{" (declaration) "uint32_t type_;" (primitive_type) "uint32_t" (identifier) "type_" (;) ";" (declaration) "uint32_t usage_;" (primitive_type) "uint32_t" (identifier) "usage_" (;) ";" (labeled_statement) "public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }" (statement_identifier) "public" (:) ":" (labeled_statement) "Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }" (statement_identifier) "Buffer" (ERROR) "(std:" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (ERROR) "vector<T> &data, BufferType type, BufferUsage usage)" (comma_expression) "vector<T> &data, BufferType type, BufferUsage" (binary_expression) "vector<T> &data" (binary_expression) "vector<T" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "&data" (&) "&" (identifier) "data" (,) "," (comma_expression) "BufferType type, BufferUsage" (identifier) "BufferType" (ERROR) "type" (identifier) "type" (,) "," (identifier) "BufferUsage" (identifier) "usage" ()) ")" (compound_statement) "{\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }" ({) "{" (comment) "// Set OpenGL buffer type constant" (switch_statement) "switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }" (switch) "switch" (parenthesized_expression) "(type)" (() "(" (identifier) "type" ()) ")" (compound_statement) "{\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error("Invalid buffer type");\n break;\n }" ({) "{" (case_statement) "case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;" (case) "case" (identifier) "BufferType" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "Vertex:\n type_ = GL_ARRAY_BUFFER;" (statement_identifier) "Vertex" (:) ":" (expression_statement) "type_ = GL_ARRAY_BUFFER;" (assignment_expression) "type_ = GL_ARRAY_BUFFER" (identifier) "type_" (=) "=" (identifier) "GL_ARRAY_BUFFER" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;" (case) "case" (identifier) "BufferType" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;" (statement_identifier) "Index" (:) ":" (expression_statement) "type_ = GL_ELEMENT_ARRAY_BUFFER;" (assignment_expression) "type_ = GL_ELEMENT_ARRAY_BUFFER" (identifier) "type_" (=) "=" (identifier) "GL_ELEMENT_ARRAY_BUFFER" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n throw std::runtime_error("Invalid buffer type");\n break;" (default) "default" (ERROR) ":\n throw std:" (:) ":" (type_identifier) "throw" (identifier) "std" (:) ":" (:) ":" (expression_statement) "runtime_error("Invalid buffer type");" (call_expression) "runtime_error("Invalid buffer type")" (identifier) "runtime_error" (argument_list) "("Invalid buffer type")" (() "(" (string_literal) ""Invalid buffer type"" (") """ (string_content) "Invalid buffer type" (") """ ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (comment) "// Set OpenGL buffer usage constant" (switch_statement) "switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }" (switch) "switch" (parenthesized_expression) "(usage)" (() "(" (identifier) "usage" ()) ")" (compound_statement) "{\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error("Invalid buffer usage");\n break;\n }" ({) "{" (case_statement) "case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;" (case) "case" (identifier) "BufferUsage" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "StaticDraw:\n usage_ = GL_STATIC_DRAW;" (statement_identifier) "StaticDraw" (:) ":" (expression_statement) "usage_ = GL_STATIC_DRAW;" (assignment_expression) "usage_ = GL_STATIC_DRAW" (identifier) "usage_" (=) "=" (identifier) "GL_STATIC_DRAW" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;" (case) "case" (identifier) "BufferUsage" (:) ":" (ERROR) ":" (:) ":" (labeled_statement) "DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;" (statement_identifier) "DynamicDraw" (:) ":" (expression_statement) "usage_ = GL_DYNAMIC_DRAW;" (assignment_expression) "usage_ = GL_DYNAMIC_DRAW" (identifier) "usage_" (=) "=" (identifier) "GL_DYNAMIC_DRAW" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n throw std::runtime_error("Invalid buffer usage");\n break;" (default) "default" (ERROR) ":\n throw std:" (:) ":" (type_identifier) "throw" (identifier) "std" (:) ":" (:) ":" (expression_statement) "runtime_error("Invalid buffer usage");" (call_expression) "runtime_error("Invalid buffer usage")" (identifier) "runtime_error" (argument_list) "("Invalid buffer usage")" (() "(" (string_literal) ""Invalid buffer usage"" (") """ (string_content) "Invalid buffer usage" (") """ ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "glGenBuffers(1, &handle_);" (call_expression) "glGenBuffers(1, &handle_)" (identifier) "glGenBuffers" (argument_list) "(1, &handle_)" (() "(" (number_literal) "1" (,) "," (pointer_expression) "&handle_" (&) "&" (identifier) "handle_" ()) ")" (;) ";" (expression_statement) "glBindBuffer(type_, handle_);" (call_expression) "glBindBuffer(type_, handle_)" (identifier) "glBindBuffer" (argument_list) "(type_, handle_)" (() "(" (identifier) "type_" (,) "," (identifier) "handle_" ()) ")" (;) ";" (expression_statement) "glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);" (call_expression) "glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_)" (identifier) "glBufferData" (argument_list) "(type_, sizeof(T) * data.size(), data.data(), usage_)" (() "(" (identifier) "type_" (,) "," (binary_expression) "sizeof(T) * data.size()" (sizeof_expression) "sizeof(T)" (sizeof) "sizeof" (parenthesized_expression) "(T)" (() "(" (identifier) "T" ()) ")" (*) "*" (call_expression) "data.size()" (field_expression) "data.size" (identifier) "data" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "data.data()" (field_expression) "data.data" (identifier) "data" (.) "." (field_identifier) "data" (argument_list) "()" (() "(" ()) ")" (,) "," (identifier) "usage_" ()) ")" (;) ";" (expression_statement) "glBindBuffer(type_, 0);" (call_expression) "glBindBuffer(type_, 0)" (identifier) "glBindBuffer" (argument_list) "(type_, 0)" (() "(" (identifier) "type_" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (expression_statement) "~Buffer()" (unary_expression) "~Buffer()" (~) "~" (call_expression) "Buffer()" (identifier) "Buffer" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ glDeleteBuffers(1, &handle_); }" ({) "{" (expression_statement) "glDeleteBuffers(1, &handle_);" (call_expression) "glDeleteBuffers(1, &handle_)" (identifier) "glDeleteBuffers" (argument_list) "(1, &handle_)" (() "(" (number_literal) "1" (,) "," (pointer_expression) "&handle_" (&) "&" (identifier) "handle_" ()) ")" (;) ";" (}) "}" (comment) "/**\n * Bind the buffer to be used by the current context\n */" (function_definition) "void bind() { glBindBuffer(type_, handle_); }" (primitive_type) "void" (function_declarator) "bind()" (identifier) "bind" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ glBindBuffer(type_, handle_); }" ({) "{" (expression_statement) "glBindBuffer(type_, handle_);" (call_expression) "glBindBuffer(type_, handle_)" (identifier) "glBindBuffer" (argument_list) "(type_, handle_)" (() "(" (identifier) "type_" (,) "," (identifier) "handle_" ()) ")" (;) ";" (}) "}" (comment) "/**\n * Unbind the buffer from the current context\n */" (function_definition) "void unbind() { glBindBuffer(type_, 0); }" (primitive_type) "void" (function_declarator) "unbind()" (identifier) "unbind" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ glBindBuffer(type_, 0); }" ({) "{" (expression_statement) "glBindBuffer(type_, 0);" (call_expression) "glBindBuffer(type_, 0)" (identifier) "glBindBuffer" (argument_list) "(type_, 0)" (() "(" (identifier) "type_" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (preproc_call) "#endif\n" (preproc_directive) "#endif"
404
14
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 24.94, "nodes": 222, "errors": 0, "source_hash": "3a3e56f93d13bb5e947c1a5eff5c5ec3db64f2900a32e3bd54381e9946605ed8", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef BUFFER_H_\n#define BUFFER_H_\n\n#include \"loader/glad.h\"\n#include <SDL2/SDL.h>\n#include <SDL2/SDL_opengl.h>\n\n#include <stdexcept>\n#include <vector>\n\n#include \"resource.h\"\n#include \"vertex.h\"\n\n/**\n * Enumerates the different types of buffers\n */\nenum class BufferType {\n Vertex,\n Index,\n};\n\n/**\n * Enumerates the different usages for a buffer\n */\nenum class BufferUsage {\n StaticDraw,\n DynamicDraw,\n};\n\n/**\n * Stores raw vertex data into a memory buffer for\n * GPU access\n */\ntemplate <typename T> class Buffer : public Resource {\n uint32_t type_;\n uint32_t usage_;\n\n public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer type\");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer usage\");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }\n ~Buffer() { glDeleteBuffers(1, &handle_); }\n\n /**\n * Bind the buffer to be used by the current context\n */\n void bind() { glBindBuffer(type_, handle_); }\n\n /**\n * Unbind the buffer from the current context\n */\n void unbind() { glBindBuffer(type_, 0); }\n};\n\n#endif\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 29, 34, 36, 49, 220], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 84, "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": "BUFFER_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define BUFFER_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": "BUFFER_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"loader/glad.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": "\"loader/glad.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include <SDL2/SDL.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": "system_lib_string", "text": "<SDL2/SDL.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include <SDL2/SDL_opengl.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": "system_lib_string", "text": "<SDL2/SDL_opengl.h>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 28}}, {"id": 15, "type": "preproc_include", "text": "#include <stdexcept>\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": "<stdexcept>", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 20}}, {"id": 18, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<vector>", "parent": 18, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 21, "type": "preproc_include", "text": "#include \"resource.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"resource.h\"", "parent": 21, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 21}}, {"id": 24, "type": "preproc_include", "text": "#include \"vertex.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"vertex.h\"", "parent": 24, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 19}}, {"id": 27, "type": "enum_specifier", "text": "enum class", "parent": 0, "children": [28], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 10}}, {"id": 28, "type": "enum", "text": "enum", "parent": 27, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 29, "type": "identifier", "text": "BufferType", "parent": 0, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 21}}, {"id": 30, "type": "comma_expression", "text": "Vertex,\n Index", "parent": 0, "children": [31, 32], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 18, "column": 9}}, {"id": 31, "type": "identifier", "text": "Vertex", "parent": 30, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 10}}, {"id": 32, "type": "identifier", "text": "Index", "parent": 30, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 9}}, {"id": 33, "type": "ERROR", "text": ",\n}", "parent": 0, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 19, "column": 1}}, {"id": 34, "type": "enum_specifier", "text": "enum class", "parent": 0, "children": [35], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 10}}, {"id": 35, "type": "enum", "text": "enum", "parent": 34, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 36, "type": "identifier", "text": "BufferUsage", "parent": 0, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 22}}, {"id": 37, "type": "comma_expression", "text": "StaticDraw,\n DynamicDraw", "parent": 0, "children": [38, 39], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 26, "column": 15}}, {"id": 38, "type": "identifier", "text": "StaticDraw", "parent": 37, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 14}}, {"id": 39, "type": "identifier", "text": "DynamicDraw", "parent": 37, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 15}}, {"id": 40, "type": "ERROR", "text": ",\n}", "parent": 0, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 27, "column": 1}}, {"id": 41, "type": "binary_expression", "text": "template <typename T> class", "parent": 0, "children": [42, 46, 48], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 27}}, {"id": 42, "type": "binary_expression", "text": "template <typename", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 18}}, {"id": 43, "type": "identifier", "text": "template", "parent": 42, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 44, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 45, "type": "identifier", "text": "typename", "parent": 42, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 18}}, {"id": 46, "type": "ERROR", "text": "T", "parent": 41, "children": [47], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 47, "type": "identifier", "text": "T", "parent": 46, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 48, "type": ">", "text": ">", "parent": 41, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 21}}, {"id": 49, "type": "labeled_statement", "text": "Buffer : public Resource {\n uint32_t type_;\n uint32_t usage_;\n\n public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer type\");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer usage\");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }\n ~Buffer() { glDeleteBuffers(1, &handle_); }\n\n /**\n * Bind the buffer to be used by the current context\n */\n void bind() { glBindBuffer(type_, handle_); }\n\n /**\n * Unbind the buffer from the current context\n */\n void unbind() { glBindBuffer(type_, 0); }\n}", "parent": 0, "children": [50, 51], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 81, "column": 1}}, {"id": 50, "type": "statement_identifier", "text": "Buffer", "parent": 49, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 34}}, {"id": 51, "type": "ERROR", "text": "public Resource", "parent": 49, "children": [52], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 52}}, {"id": 52, "type": "identifier", "text": "Resource", "parent": 51, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 52}}, {"id": 53, "type": "declaration", "text": "uint32_t type_;", "parent": 49, "children": [54, 55], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 19}}, {"id": 54, "type": "primitive_type", "text": "uint32_t", "parent": 53, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 12}}, {"id": 55, "type": "identifier", "text": "type_", "parent": 53, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 18}}, {"id": 56, "type": "declaration", "text": "uint32_t usage_;", "parent": 49, "children": [57, 58], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 20}}, {"id": 57, "type": "primitive_type", "text": "uint32_t", "parent": 56, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 12}}, {"id": 58, "type": "identifier", "text": "usage_", "parent": 56, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 19}}, {"id": 59, "type": "labeled_statement", "text": "public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer type\");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer usage\");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }", "parent": 49, "children": [60], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 69, "column": 5}}, {"id": 60, "type": "labeled_statement", "text": "Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer type\");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer usage\");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }", "parent": 59, "children": [61, 62, 65], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 69, "column": 5}}, {"id": 61, "type": "statement_identifier", "text": "Buffer", "parent": 60, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 10}}, {"id": 62, "type": "ERROR", "text": "(std:", "parent": 60, "children": [63], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 15}}, {"id": 63, "type": "type_descriptor", "text": "std", "parent": 62, "children": [64], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 14}}, {"id": 64, "type": "type_identifier", "text": "std", "parent": 63, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 14}}, {"id": 65, "type": "ERROR", "text": "vector<T> &data, BufferType type, BufferUsage usage)", "parent": 60, "children": [66, 80], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 68}}, {"id": 66, "type": "comma_expression", "text": "vector<T> &data, BufferType type, BufferUsage", "parent": 65, "children": [67, 75], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 61}}, {"id": 67, "type": "binary_expression", "text": "vector<T> &data", "parent": 66, "children": [68, 72, 73], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 31}}, {"id": 68, "type": "binary_expression", "text": "vector<T", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 24}}, {"id": 69, "type": "identifier", "text": "vector", "parent": 68, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 22}}, {"id": 70, "type": "<", "text": "<", "parent": 68, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 71, "type": "identifier", "text": "T", "parent": 68, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 72, "type": ">", "text": ">", "parent": 67, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 25}}, {"id": 73, "type": "pointer_expression", "text": "&data", "parent": 67, "children": [74], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 31}}, {"id": 74, "type": "identifier", "text": "data", "parent": 73, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 31}}, {"id": 75, "type": "comma_expression", "text": "BufferType type, BufferUsage", "parent": 66, "children": [76, 77, 79], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 61}}, {"id": 76, "type": "identifier", "text": "BufferType", "parent": 75, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 43}}, {"id": 77, "type": "ERROR", "text": "type", "parent": 75, "children": [78], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 48}}, {"id": 78, "type": "identifier", "text": "type", "parent": 77, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 48}}, {"id": 79, "type": "identifier", "text": "BufferUsage", "parent": 75, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 61}}, {"id": 80, "type": "identifier", "text": "usage", "parent": 65, "children": [], "start_point": {"row": 38, "column": 62}, "end_point": {"row": 38, "column": 67}}, {"id": 81, "type": "switch_statement", "text": "switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer type\");\n break;\n }", "parent": 60, "children": [82, 83], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 82, "type": "switch", "text": "switch", "parent": 81, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 14}}, {"id": 83, "type": "parenthesized_expression", "text": "(type)", "parent": 81, "children": [84], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 21}}, {"id": 84, "type": "identifier", "text": "type", "parent": 83, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 20}}, {"id": 85, "type": "case_statement", "text": "case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;", "parent": 81, "children": [86, 87, 88, 94], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 43, "column": 18}}, {"id": 86, "type": "case", "text": "case", "parent": 85, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 87, "type": "identifier", "text": "BufferType", "parent": 85, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 23}}, {"id": 88, "type": "labeled_statement", "text": "Vertex:\n type_ = GL_ARRAY_BUFFER;", "parent": 85, "children": [89], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 42, "column": 36}}, {"id": 89, "type": "statement_identifier", "text": "Vertex", "parent": 88, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 31}}, {"id": 90, "type": "assignment_expression", "text": "type_ = GL_ARRAY_BUFFER", "parent": 88, "children": [91, 92, 93], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 35}}, {"id": 91, "type": "identifier", "text": "type_", "parent": 90, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 17}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 19}}, {"id": 93, "type": "identifier", "text": "GL_ARRAY_BUFFER", "parent": 90, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 35}}, {"id": 94, "type": "break_statement", "text": "break;", "parent": 85, "children": [95], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 18}}, {"id": 95, "type": "break", "text": "break", "parent": 94, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 17}}, {"id": 96, "type": "case_statement", "text": "case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;", "parent": 81, "children": [97, 98, 99, 105], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 46, "column": 18}}, {"id": 97, "type": "case", "text": "case", "parent": 96, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 12}}, {"id": 98, "type": "identifier", "text": "BufferType", "parent": 96, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 23}}, {"id": 99, "type": "labeled_statement", "text": "Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;", "parent": 96, "children": [100], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 45, "column": 44}}, {"id": 100, "type": "statement_identifier", "text": "Index", "parent": 99, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 30}}, {"id": 101, "type": "assignment_expression", "text": "type_ = GL_ELEMENT_ARRAY_BUFFER", "parent": 99, "children": [102, 103, 104], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 43}}, {"id": 102, "type": "identifier", "text": "type_", "parent": 101, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 17}}, {"id": 103, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 19}}, {"id": 104, "type": "identifier", "text": "GL_ELEMENT_ARRAY_BUFFER", "parent": 101, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 43}}, {"id": 105, "type": "break_statement", "text": "break;", "parent": 96, "children": [106], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 18}}, {"id": 106, "type": "break", "text": "break", "parent": 105, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 17}}, {"id": 107, "type": "case_statement", "text": "default:\n throw std::runtime_error(\"Invalid buffer type\");\n break;", "parent": 81, "children": [108, 109, 115], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 49, "column": 18}}, {"id": 108, "type": "default", "text": "default", "parent": 107, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 15}}, {"id": 109, "type": "ERROR", "text": ":\n throw std:", "parent": 107, "children": [110], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 48, "column": 22}}, {"id": 110, "type": "identifier", "text": "std", "parent": 109, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 21}}, {"id": 111, "type": "call_expression", "text": "runtime_error(\"Invalid buffer type\")", "parent": 107, "children": [112, 113], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 59}}, {"id": 112, "type": "identifier", "text": "runtime_error", "parent": 111, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 36}}, {"id": 113, "type": "argument_list", "text": "(\"Invalid buffer type\")", "parent": 111, "children": [114], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 59}}, {"id": 114, "type": "string_literal", "text": "\"Invalid buffer type\"", "parent": 113, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 58}}, {"id": 115, "type": "break_statement", "text": "break;", "parent": 107, "children": [116], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 18}}, {"id": 116, "type": "break", "text": "break", "parent": 115, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 17}}, {"id": 117, "type": "switch_statement", "text": "switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer usage\");\n break;\n }", "parent": 60, "children": [118, 119], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 118, "type": "switch", "text": "switch", "parent": 117, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 14}}, {"id": 119, "type": "parenthesized_expression", "text": "(usage)", "parent": 117, "children": [120], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 22}}, {"id": 120, "type": "identifier", "text": "usage", "parent": 119, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 21}}, {"id": 121, "type": "case_statement", "text": "case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;", "parent": 117, "children": [122, 123, 124, 130], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 56, "column": 18}}, {"id": 122, "type": "case", "text": "case", "parent": 121, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 12}}, {"id": 123, "type": "identifier", "text": "BufferUsage", "parent": 121, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 24}}, {"id": 124, "type": "labeled_statement", "text": "StaticDraw:\n usage_ = GL_STATIC_DRAW;", "parent": 121, "children": [125], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 55, "column": 36}}, {"id": 125, "type": "statement_identifier", "text": "StaticDraw", "parent": 124, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 36}}, {"id": 126, "type": "assignment_expression", "text": "usage_ = GL_STATIC_DRAW", "parent": 124, "children": [127, 128, 129], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 35}}, {"id": 127, "type": "identifier", "text": "usage_", "parent": 126, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 18}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 20}}, {"id": 129, "type": "identifier", "text": "GL_STATIC_DRAW", "parent": 126, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 35}}, {"id": 130, "type": "break_statement", "text": "break;", "parent": 121, "children": [131], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 18}}, {"id": 131, "type": "break", "text": "break", "parent": 130, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 17}}, {"id": 132, "type": "case_statement", "text": "case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;", "parent": 117, "children": [133, 134, 135, 141], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 59, "column": 18}}, {"id": 133, "type": "case", "text": "case", "parent": 132, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 12}}, {"id": 134, "type": "identifier", "text": "BufferUsage", "parent": 132, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 24}}, {"id": 135, "type": "labeled_statement", "text": "DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;", "parent": 132, "children": [136], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 58, "column": 37}}, {"id": 136, "type": "statement_identifier", "text": "DynamicDraw", "parent": 135, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 37}}, {"id": 137, "type": "assignment_expression", "text": "usage_ = GL_DYNAMIC_DRAW", "parent": 135, "children": [138, 139, 140], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 36}}, {"id": 138, "type": "identifier", "text": "usage_", "parent": 137, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 18}}, {"id": 139, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 20}}, {"id": 140, "type": "identifier", "text": "GL_DYNAMIC_DRAW", "parent": 137, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 36}}, {"id": 141, "type": "break_statement", "text": "break;", "parent": 132, "children": [142], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 18}}, {"id": 142, "type": "break", "text": "break", "parent": 141, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 17}}, {"id": 143, "type": "case_statement", "text": "default:\n throw std::runtime_error(\"Invalid buffer usage\");\n break;", "parent": 117, "children": [144, 145, 151], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 62, "column": 18}}, {"id": 144, "type": "default", "text": "default", "parent": 143, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 15}}, {"id": 145, "type": "ERROR", "text": ":\n throw std:", "parent": 143, "children": [146], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 61, "column": 22}}, {"id": 146, "type": "identifier", "text": "std", "parent": 145, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 21}}, {"id": 147, "type": "call_expression", "text": "runtime_error(\"Invalid buffer usage\")", "parent": 143, "children": [148, 149], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 60}}, {"id": 148, "type": "identifier", "text": "runtime_error", "parent": 147, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 36}}, {"id": 149, "type": "argument_list", "text": "(\"Invalid buffer usage\")", "parent": 147, "children": [150], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 60}}, {"id": 150, "type": "string_literal", "text": "\"Invalid buffer usage\"", "parent": 149, "children": [], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 59}}, {"id": 151, "type": "break_statement", "text": "break;", "parent": 143, "children": [152], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 18}}, {"id": 152, "type": "break", "text": "break", "parent": 151, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 17}}, {"id": 153, "type": "call_expression", "text": "glGenBuffers(1, &handle_)", "parent": 60, "children": [154, 155], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 33}}, {"id": 154, "type": "identifier", "text": "glGenBuffers", "parent": 153, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 20}}, {"id": 155, "type": "argument_list", "text": "(1, &handle_)", "parent": 153, "children": [156, 157], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 33}}, {"id": 156, "type": "number_literal", "text": "1", "parent": 155, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 22}}, {"id": 157, "type": "pointer_expression", "text": "&handle_", "parent": 155, "children": [158], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 32}}, {"id": 158, "type": "identifier", "text": "handle_", "parent": 157, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 32}}, {"id": 159, "type": "call_expression", "text": "glBindBuffer(type_, handle_)", "parent": 60, "children": [160, 161], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 36}}, {"id": 160, "type": "identifier", "text": "glBindBuffer", "parent": 159, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 20}}, {"id": 161, "type": "argument_list", "text": "(type_, handle_)", "parent": 159, "children": [162, 163], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 36}}, {"id": 162, "type": "identifier", "text": "type_", "parent": 161, "children": [], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 26}}, {"id": 163, "type": "identifier", "text": "handle_", "parent": 161, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 35}}, {"id": 164, "type": "call_expression", "text": "glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_)", "parent": 60, "children": [165, 166], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 73}}, {"id": 165, "type": "identifier", "text": "glBufferData", "parent": 164, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 20}}, {"id": 166, "type": "argument_list", "text": "(type_, sizeof(T) * data.size(), data.data(), usage_)", "parent": 164, "children": [167, 168, 178, 183], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 73}}, {"id": 167, "type": "identifier", "text": "type_", "parent": 166, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 26}}, {"id": 168, "type": "binary_expression", "text": "sizeof(T) * data.size()", "parent": 166, "children": [169, 172, 173], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 51}}, {"id": 169, "type": "sizeof_expression", "text": "sizeof(T)", "parent": 168, "children": [170], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 37}}, {"id": 170, "type": "parenthesized_expression", "text": "(T)", "parent": 169, "children": [171], "start_point": {"row": 67, "column": 34}, "end_point": {"row": 67, "column": 37}}, {"id": 171, "type": "identifier", "text": "T", "parent": 170, "children": [], "start_point": {"row": 67, "column": 35}, "end_point": {"row": 67, "column": 36}}, {"id": 172, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 67, "column": 38}, "end_point": {"row": 67, "column": 39}}, {"id": 173, "type": "call_expression", "text": "data.size()", "parent": 168, "children": [174, 177], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 51}}, {"id": 174, "type": "field_expression", "text": "data.size", "parent": 173, "children": [175, 176], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 49}}, {"id": 175, "type": "identifier", "text": "data", "parent": 174, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 44}}, {"id": 176, "type": "field_identifier", "text": "size", "parent": 174, "children": [], "start_point": {"row": 67, "column": 45}, "end_point": {"row": 67, "column": 49}}, {"id": 177, "type": "argument_list", "text": "()", "parent": 173, "children": [], "start_point": {"row": 67, "column": 49}, "end_point": {"row": 67, "column": 51}}, {"id": 178, "type": "call_expression", "text": "data.data()", "parent": 166, "children": [179, 182], "start_point": {"row": 67, "column": 53}, "end_point": {"row": 67, "column": 64}}, {"id": 179, "type": "field_expression", "text": "data.data", "parent": 178, "children": [180, 181], "start_point": {"row": 67, "column": 53}, "end_point": {"row": 67, "column": 62}}, {"id": 180, "type": "identifier", "text": "data", "parent": 179, "children": [], "start_point": {"row": 67, "column": 53}, "end_point": {"row": 67, "column": 57}}, {"id": 181, "type": "field_identifier", "text": "data", "parent": 179, "children": [], "start_point": {"row": 67, "column": 58}, "end_point": {"row": 67, "column": 62}}, {"id": 182, "type": "argument_list", "text": "()", "parent": 178, "children": [], "start_point": {"row": 67, "column": 62}, "end_point": {"row": 67, "column": 64}}, {"id": 183, "type": "identifier", "text": "usage_", "parent": 166, "children": [], "start_point": {"row": 67, "column": 66}, "end_point": {"row": 67, "column": 72}}, {"id": 184, "type": "call_expression", "text": "glBindBuffer(type_, 0)", "parent": 60, "children": [185, 186], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 30}}, {"id": 185, "type": "identifier", "text": "glBindBuffer", "parent": 184, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 20}}, {"id": 186, "type": "argument_list", "text": "(type_, 0)", "parent": 184, "children": [187, 188], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 30}}, {"id": 187, "type": "identifier", "text": "type_", "parent": 186, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 26}}, {"id": 188, "type": "number_literal", "text": "0", "parent": 186, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 29}}, {"id": 189, "type": "unary_expression", "text": "~Buffer()", "parent": 49, "children": [190, 191], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 13}}, {"id": 190, "type": "~", "text": "~", "parent": 189, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 191, "type": "call_expression", "text": "Buffer()", "parent": 189, "children": [192, 193], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 13}}, {"id": 192, "type": "identifier", "text": "Buffer", "parent": 191, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 11}}, {"id": 193, "type": "argument_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 13}}, {"id": 194, "type": "call_expression", "text": "glDeleteBuffers(1, &handle_)", "parent": 49, "children": [195, 196], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 44}}, {"id": 195, "type": "identifier", "text": "glDeleteBuffers", "parent": 194, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 31}}, {"id": 196, "type": "argument_list", "text": "(1, &handle_)", "parent": 194, "children": [197, 198], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 44}}, {"id": 197, "type": "number_literal", "text": "1", "parent": 196, "children": [], "start_point": {"row": 70, "column": 32}, "end_point": {"row": 70, "column": 33}}, {"id": 198, "type": "pointer_expression", "text": "&handle_", "parent": 196, "children": [199], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 43}}, {"id": 199, "type": "identifier", "text": "handle_", "parent": 198, "children": [], "start_point": {"row": 70, "column": 36}, "end_point": {"row": 70, "column": 43}}, {"id": 200, "type": "function_definition", "text": "void bind() { glBindBuffer(type_, handle_); }", "parent": 49, "children": [201, 202], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 49}}, {"id": 201, "type": "primitive_type", "text": "void", "parent": 200, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 8}}, {"id": 202, "type": "function_declarator", "text": "bind()", "parent": 200, "children": [203, 204], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 15}}, {"id": 203, "type": "identifier", "text": "bind", "parent": 202, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 13}}, {"id": 204, "type": "parameter_list", "text": "()", "parent": 202, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 15}}, {"id": 205, "type": "call_expression", "text": "glBindBuffer(type_, handle_)", "parent": 200, "children": [206, 207], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 46}}, {"id": 206, "type": "identifier", "text": "glBindBuffer", "parent": 205, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 30}}, {"id": 207, "type": "argument_list", "text": "(type_, handle_)", "parent": 205, "children": [208, 209], "start_point": {"row": 75, "column": 30}, "end_point": {"row": 75, "column": 46}}, {"id": 208, "type": "identifier", "text": "type_", "parent": 207, "children": [], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 36}}, {"id": 209, "type": "identifier", "text": "handle_", "parent": 207, "children": [], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 45}}, {"id": 210, "type": "function_definition", "text": "void unbind() { glBindBuffer(type_, 0); }", "parent": 49, "children": [211, 212], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 45}}, {"id": 211, "type": "primitive_type", "text": "void", "parent": 210, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 212, "type": "function_declarator", "text": "unbind()", "parent": 210, "children": [213, 214], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 17}}, {"id": 213, "type": "identifier", "text": "unbind", "parent": 212, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 15}}, {"id": 214, "type": "parameter_list", "text": "()", "parent": 212, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 17}}, {"id": 215, "type": "call_expression", "text": "glBindBuffer(type_, 0)", "parent": 210, "children": [216, 217], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 42}}, {"id": 216, "type": "identifier", "text": "glBindBuffer", "parent": 215, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 32}}, {"id": 217, "type": "argument_list", "text": "(type_, 0)", "parent": 215, "children": [218, 219], "start_point": {"row": 80, "column": 32}, "end_point": {"row": 80, "column": 42}}, {"id": 218, "type": "identifier", "text": "type_", "parent": 217, "children": [], "start_point": {"row": 80, "column": 33}, "end_point": {"row": 80, "column": 38}}, {"id": 219, "type": "number_literal", "text": "0", "parent": 217, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 41}}, {"id": 220, "type": "preproc_call", "text": "#endif\n", "parent": 0, "children": [221], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 84, "column": 0}}, {"id": 221, "type": "preproc_directive", "text": "#endif", "parent": 220, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 6}}]}, "node_categories": {"declarations": {"functions": [200, 202, 210, 212], "variables": [53, 56], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": [27, 28, 34, 35]}, "statements": {"expressions": [30, 37, 41, 42, 66, 67, 68, 73, 75, 83, 111, 119, 147, 153, 157, 159, 164, 168, 169, 170, 173, 174, 178, 179, 184, 189, 191, 194, 198, 205, 215], "assignments": [90, 101, 126, 137], "loops": [], "conditionals": [1, 2, 5, 29, 31, 32, 36, 38, 39, 43, 45, 47, 50, 52, 55, 58, 61, 64, 69, 71, 74, 76, 78, 79, 80, 81, 82, 84, 85, 86, 87, 89, 91, 93, 96, 97, 98, 100, 102, 104, 107, 110, 112, 117, 118, 120, 121, 122, 123, 125, 127, 129, 132, 133, 134, 136, 138, 140, 143, 146, 148, 154, 158, 160, 162, 163, 165, 167, 171, 175, 176, 180, 181, 183, 185, 187, 192, 195, 199, 203, 206, 208, 209, 213, 216, 218], "returns": [], "exceptions": []}, "expressions": {"calls": [220], "literals": [8, 11, 14, 17, 20, 23, 26, 114, 150, 156, 188, 197, 219], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 200, "universal_type": "function", "name": "bind", "text_snippet": "void bind() { glBindBuffer(type_, handle_); }"}, {"node_id": 202, "universal_type": "function", "name": "unknown", "text_snippet": "bind()"}, {"node_id": 210, "universal_type": "function", "name": "unbind", "text_snippet": "void unbind() { glBindBuffer(type_, 0); }"}, {"node_id": 212, "universal_type": "function", "name": "unknown", "text_snippet": "unbind()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"loader/glad.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <SDL2/SDL.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <SDL2/SDL_opengl.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <stdexcept>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <vector>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"resource.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"vertex.h\"\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "#ifndef BUFFER_H_\n#define BUFFER_H_\n\n#include \"loader/glad.h\"\n#include <SDL2/SDL.h>\n#include <SDL2/SDL_opengl.h>\n\n#include <stdexcept>\n#include <vector>\n\n#include \"resource.h\"\n#include \"vertex.h\"\n\n/**\n * Enumerates the different types of buffers\n */\nenum class BufferType {\n Vertex,\n Index,\n};\n\n/**\n * Enumerates the different usages for a buffer\n */\nenum class BufferUsage {\n StaticDraw,\n DynamicDraw,\n};\n\n/**\n * Stores raw vertex data into a memory buffer for\n * GPU access\n */\ntemplate <typename T> class Buffer : public Resource {\n uint32_t type_;\n uint32_t usage_;\n\n public:\n Buffer(std::vector<T> &data, BufferType type, BufferUsage usage) {\n // Set OpenGL buffer type constant\n switch (type) {\n case BufferType::Vertex:\n type_ = GL_ARRAY_BUFFER;\n break;\n case BufferType::Index:\n type_ = GL_ELEMENT_ARRAY_BUFFER;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer type\");\n break;\n }\n\n // Set OpenGL buffer usage constant\n switch (usage) {\n case BufferUsage::StaticDraw:\n usage_ = GL_STATIC_DRAW;\n break;\n case BufferUsage::DynamicDraw:\n usage_ = GL_DYNAMIC_DRAW;\n break;\n default:\n throw std::runtime_error(\"Invalid buffer usage\");\n break;\n }\n\n glGenBuffers(1, &handle_);\n glBindBuffer(type_, handle_);\n glBufferData(type_, sizeof(T) * data.size(), data.data(), usage_);\n glBindBuffer(type_, 0);\n }\n ~Buffer() { glDeleteBuffers(1, &handle_); }\n\n /**\n * Bind the buffer to be used by the current context\n */\n void bind() { glBindBuffer(type_, handle_); }\n\n /**\n * Unbind the buffer from the current context\n */\n void unbind() { glBindBuffer(type_, 0); }\n};\n\n#endif\n"}
80,433
c
#include "stdafx.h" #pragma once using namespace System; namespace CefSharp { public ref class LoadCompletedEventArgs : EventArgs { String^ _url; public: LoadCompletedEventArgs(String^ url) : _url(url) {} property String^ Url { String^ get() { return _url; } } }; public delegate void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url); }
26.67
15
(translation_unit) "#include "stdafx.h"\n#pragma once\n\nusing namespace System;\n\nnamespace CefSharp\n{\n public ref class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n };\n\n public delegate void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url);\n}" (preproc_include) "#include "stdafx.h"\n" (#include) "#include" (string_literal) ""stdafx.h"" (") """ (string_content) "stdafx.h" (") """ (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (declaration) "using namespace System;" (type_identifier) "using" (identifier) "namespace" (ERROR) "System" (identifier) "System" (;) ";" (function_definition) "namespace CefSharp\n{\n public ref class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n };\n\n public delegate void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url);\n}" (type_identifier) "namespace" (identifier) "CefSharp" (compound_statement) "{\n public ref class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n };\n\n public delegate void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url);\n}" ({) "{" (declaration) "public ref" (type_identifier) "public" (identifier) "ref" (;) "" (function_definition) "class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n }" (type_identifier) "class" (identifier) "LoadCompletedEventArgs" (ERROR) ": EventArgs" (:) ":" (identifier) "EventArgs" (compound_statement) "{\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n }" ({) "{" (expression_statement) "String^ _url;" (binary_expression) "String^ _url" (identifier) "String" (^) "^" (identifier) "_url" (;) ";" (labeled_statement) "public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}" (statement_identifier) "public" (ERROR) ":\n LoadCompletedEventArgs(String^ url)" (:) ":" (call_expression) "LoadCompletedEventArgs(String^ url)" (identifier) "LoadCompletedEventArgs" (argument_list) "(String^ url)" (() "(" (binary_expression) "String^ url" (identifier) "String" (^) "^" (identifier) "url" ()) ")" (:) ":" (ERROR) "_url(url)" (macro_type_specifier) "_url(url)" (identifier) "_url" (() "(" (type_descriptor) "url" (type_identifier) "url" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "property String^ Url { String^ get() { return _url; } }" (type_identifier) "property" (identifier) "String" (ERROR) "^ Url" (^) "^" (identifier) "Url" (compound_statement) "{ String^ get() { return _url; } }" ({) "{" (expression_statement) "String^ get()" (binary_expression) "String^ get()" (identifier) "String" (^) "^" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ return _url; }" ({) "{" (return_statement) "return _url;" (return) "return" (identifier) "_url" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (declaration) "public delegate" (type_identifier) "public" (identifier) "delegate" (;) "" (declaration) "void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url);" (primitive_type) "void" (function_declarator) "LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url)" (identifier) "LoadCompletedEventHandler" (parameter_list) "(Object^ sender, LoadCompletedEventArgs^ url)" (() "(" (parameter_declaration) "Object^ sender" (type_identifier) "Object" (ERROR) "^" (^) "^" (identifier) "sender" (,) "," (parameter_declaration) "LoadCompletedEventArgs^ url" (type_identifier) "LoadCompletedEventArgs" (ERROR) "^" (^) "^" (identifier) "url" ()) ")" (;) ";" (}) "}"
116
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 26.67, "nodes": 69, "errors": 0, "source_hash": "10e1c67d2580817f6ef402464e03d4580c7a2d126508b60f97d54c21ce6f2dbc", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"stdafx.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": "\"stdafx.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#pragma", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "once", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 12}}, {"id": 6, "type": "declaration", "text": "using namespace System;", "parent": null, "children": [7, 8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 23}}, {"id": 7, "type": "type_identifier", "text": "using", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 5}}, {"id": 8, "type": "identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 15}}, {"id": 9, "type": "ERROR", "text": "System", "parent": 6, "children": [10], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 22}}, {"id": 10, "type": "identifier", "text": "System", "parent": 9, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 22}}, {"id": 11, "type": "function_definition", "text": "namespace CefSharp\n{\n public ref class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n };\n\n public delegate void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url);\n}", "parent": null, "children": [12, 13], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "namespace", "parent": 11, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 9}}, {"id": 13, "type": "identifier", "text": "CefSharp", "parent": 11, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 18}}, {"id": 14, "type": "declaration", "text": "public ref", "parent": 11, "children": [15], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 14}}, {"id": 15, "type": "identifier", "text": "ref", "parent": 14, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 14}}, {"id": 16, "type": "function_definition", "text": "class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n }", "parent": 11, "children": [17, 18], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 16, "column": 5}}, {"id": 17, "type": "identifier", "text": "LoadCompletedEventArgs", "parent": 16, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 43}}, {"id": 18, "type": "ERROR", "text": ": EventArgs", "parent": 16, "children": [19], "start_point": {"row": 7, "column": 44}, "end_point": {"row": 7, "column": 55}}, {"id": 19, "type": "identifier", "text": "EventArgs", "parent": 18, "children": [], "start_point": {"row": 7, "column": 46}, "end_point": {"row": 7, "column": 55}}, {"id": 20, "type": "binary_expression", "text": "String^ _url", "parent": 16, "children": [21, 22, 23], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 20}}, {"id": 21, "type": "identifier", "text": "String", "parent": 20, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 22, "type": "^", "text": "^", "parent": 20, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 15}}, {"id": 23, "type": "identifier", "text": "_url", "parent": 20, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 20}}, {"id": 24, "type": "labeled_statement", "text": "public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}", "parent": 16, "children": [25, 33], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 13, "column": 26}}, {"id": 25, "type": "ERROR", "text": ":\n LoadCompletedEventArgs(String^ url)", "parent": 24, "children": [26], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 12, "column": 43}}, {"id": 26, "type": "call_expression", "text": "LoadCompletedEventArgs(String^ url)", "parent": 25, "children": [27, 28], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 43}}, {"id": 27, "type": "identifier", "text": "LoadCompletedEventArgs", "parent": 26, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 30}}, {"id": 28, "type": "argument_list", "text": "(String^ url)", "parent": 26, "children": [29], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 43}}, {"id": 29, "type": "binary_expression", "text": "String^ url", "parent": 28, "children": [30, 31, 32], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 42}}, {"id": 30, "type": "identifier", "text": "String", "parent": 29, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 37}}, {"id": 31, "type": "^", "text": "^", "parent": 29, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 38}}, {"id": 32, "type": "identifier", "text": "url", "parent": 29, "children": [], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 42}}, {"id": 33, "type": "ERROR", "text": "_url(url)", "parent": 24, "children": [34], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 23}}, {"id": 34, "type": "macro_type_specifier", "text": "_url(url)", "parent": 33, "children": [35, 36], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 23}}, {"id": 35, "type": "identifier", "text": "_url", "parent": 34, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 18}}, {"id": 36, "type": "type_descriptor", "text": "url", "parent": 34, "children": [37], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 22}}, {"id": 37, "type": "type_identifier", "text": "url", "parent": 36, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 22}}, {"id": 38, "type": "function_definition", "text": "property String^ Url { String^ get() { return _url; } }", "parent": 16, "children": [39, 40, 41], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 63}}, {"id": 39, "type": "type_identifier", "text": "property", "parent": 38, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 16}}, {"id": 40, "type": "identifier", "text": "String", "parent": 38, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 23}}, {"id": 41, "type": "ERROR", "text": "^ Url", "parent": 38, "children": [42, 43], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 28}}, {"id": 42, "type": "^", "text": "^", "parent": 41, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 43, "type": "identifier", "text": "Url", "parent": 41, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 28}}, {"id": 44, "type": "binary_expression", "text": "String^ get()", "parent": 38, "children": [45, 46, 47], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 44}}, {"id": 45, "type": "identifier", "text": "String", "parent": 44, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 37}}, {"id": 46, "type": "^", "text": "^", "parent": 44, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 38}}, {"id": 47, "type": "call_expression", "text": "get()", "parent": 44, "children": [48, 49], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 44}}, {"id": 48, "type": "identifier", "text": "get", "parent": 47, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 42}}, {"id": 49, "type": "argument_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 44}}, {"id": 50, "type": "return_statement", "text": "return _url;", "parent": 38, "children": [51], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 59}}, {"id": 51, "type": "identifier", "text": "_url", "parent": 50, "children": [], "start_point": {"row": 15, "column": 54}, "end_point": {"row": 15, "column": 58}}, {"id": 52, "type": "declaration", "text": "public delegate", "parent": 11, "children": [53], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 19}}, {"id": 53, "type": "identifier", "text": "delegate", "parent": 52, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 19}}, {"id": 54, "type": "declaration", "text": "void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url);", "parent": 11, "children": [55, 56], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 96}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 24}}, {"id": 56, "type": "function_declarator", "text": "LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url)", "parent": 54, "children": [57, 58], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 95}}, {"id": 57, "type": "identifier", "text": "LoadCompletedEventHandler", "parent": 56, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 50}}, {"id": 58, "type": "parameter_list", "text": "(Object^ sender, LoadCompletedEventArgs^ url)", "parent": 56, "children": [59, 64], "start_point": {"row": 18, "column": 50}, "end_point": {"row": 18, "column": 95}}, {"id": 59, "type": "parameter_declaration", "text": "Object^ sender", "parent": 58, "children": [60, 61, 63], "start_point": {"row": 18, "column": 51}, "end_point": {"row": 18, "column": 65}}, {"id": 60, "type": "type_identifier", "text": "Object", "parent": 59, "children": [], "start_point": {"row": 18, "column": 51}, "end_point": {"row": 18, "column": 57}}, {"id": 61, "type": "ERROR", "text": "^", "parent": 59, "children": [62], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 18, "column": 58}}, {"id": 62, "type": "^", "text": "^", "parent": 61, "children": [], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 18, "column": 58}}, {"id": 63, "type": "identifier", "text": "sender", "parent": 59, "children": [], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 18, "column": 65}}, {"id": 64, "type": "parameter_declaration", "text": "LoadCompletedEventArgs^ url", "parent": 58, "children": [65, 66, 68], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 94}}, {"id": 65, "type": "type_identifier", "text": "LoadCompletedEventArgs", "parent": 64, "children": [], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 89}}, {"id": 66, "type": "ERROR", "text": "^", "parent": 64, "children": [67], "start_point": {"row": 18, "column": 89}, "end_point": {"row": 18, "column": 90}}, {"id": 67, "type": "^", "text": "^", "parent": 66, "children": [], "start_point": {"row": 18, "column": 89}, "end_point": {"row": 18, "column": 90}}, {"id": 68, "type": "identifier", "text": "url", "parent": 64, "children": [], "start_point": {"row": 18, "column": 91}, "end_point": {"row": 18, "column": 94}}]}, "node_categories": {"declarations": {"functions": [11, 16, 38, 56], "variables": [6, 14, 52, 54, 59, 64], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [20, 26, 29, 44, 47], "assignments": [], "loops": [], "conditionals": [7, 8, 10, 12, 13, 15, 17, 19, 21, 23, 27, 30, 32, 34, 35, 37, 39, 40, 43, 45, 48, 51, 53, 57, 60, 63, 65, 68], "returns": [50], "exceptions": []}, "expressions": {"calls": [3], "literals": [2], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "LoadCompletedEventArgs", "text_snippet": "namespace CefSharp\n{\n public ref class LoadCompletedEventArgs : EventArgs\n {\n String^ _"}, {"node_id": 16, "universal_type": "function", "name": "LoadCompletedEventArgs", "text_snippet": "class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadComple"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "property String^ Url { String^ get() { return _url; } }"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"stdafx.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"stdafx.h\"\n#pragma once\n\nusing namespace System;\n\nnamespace CefSharp\n{\n public ref class LoadCompletedEventArgs : EventArgs\n {\n String^ _url;\n\n public:\n LoadCompletedEventArgs(String^ url)\n : _url(url) {}\n\n property String^ Url { String^ get() { return _url; } }\n };\n\n public delegate void LoadCompletedEventHandler(Object^ sender, LoadCompletedEventArgs^ url);\n}"}
80,434
c
#pragma once #include "IEnumString.h"
18
2
(translation_unit) "#pragma once\n\n#include "IEnumString.h"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "IEnumString.h"" (#include) "#include" (string_literal) ""IEnumString.h"" (") """ (string_content) "IEnumString.h" (") """
10
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 18.0, "nodes": 6, "errors": 0, "source_hash": "2f04a9a5490e8876704aa24aa37dfc9410790a62a0112da0790d3409854a4a82", "categorized_nodes": 4}, "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 \"IEnumString.h\"", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 24}}, {"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": "\"IEnumString.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 24}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"IEnumString.h\""}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"IEnumString.h\""}
80,435
c
/* This file is part of libmicrohttpd (C) 2007 <NAME> and <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /** * @file connection.h * @brief Methods for managing connections * @author <NAME> * @author <NAME> */ #ifndef CONNECTION_H #define CONNECTION_H #include "internal.h" /** * Obtain the select sets for this connection. * * @return MHD_YES on success */ int MHD_connection_get_fdset (struct MHD_Connection *connection, fd_set * read_fd_set, fd_set * write_fd_set, fd_set * except_fd_set, int *max_fd); /** * Obtain the pollfd for this connection. The poll interface allows large * file descriptors. Select goes stupid when the fd overflows fdset (which * is fixed). */ int MHD_connection_get_pollfd(struct MHD_Connection *connection, struct MHD_Pollfd *p); void MHD_set_http_callbacks_ (struct MHD_Connection *connection); int MHD_connection_handle_read (struct MHD_Connection *connection); int MHD_connection_handle_write (struct MHD_Connection *connection); int MHD_connection_handle_idle (struct MHD_Connection *connection); /** * Close the given connection and give the * specified termination code to the user. */ void MHD_connection_close (struct MHD_Connection *connection, enum MHD_RequestTerminationCode termination_code); #endif
39.85
52
(translation_unit) "/*\n This file is part of libmicrohttpd\n (C) 2007 <NAME> and <NAME>\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library 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 Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n*/\n\n/**\n * @file connection.h\n * @brief Methods for managing connections\n * @author <NAME>\n * @author <NAME>\n */\n\n#ifndef CONNECTION_H\n#define CONNECTION_H\n\n#include "internal.h"\n\n/**\n * Obtain the select sets for this connection.\n *\n * @return MHD_YES on success\n */\nint\nMHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd);\n\n/**\n * Obtain the pollfd for this connection. The poll interface allows large\n * file descriptors. Select goes stupid when the fd overflows fdset (which\n * is fixed).\n */\nint MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p);\n\nvoid MHD_set_http_callbacks_ (struct MHD_Connection *connection);\n\nint MHD_connection_handle_read (struct MHD_Connection *connection);\n\nint MHD_connection_handle_write (struct MHD_Connection *connection);\n\nint MHD_connection_handle_idle (struct MHD_Connection *connection);\n\n/**\n * Close the given connection and give the\n * specified termination code to the user.\n */\nvoid MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code);\n\n#endif\n" (comment) "/*\n This file is part of libmicrohttpd\n (C) 2007 <NAME> and <NAME>\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library 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 Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n*/" (comment) "/**\n * @file connection.h\n * @brief Methods for managing connections\n * @author <NAME>\n * @author <NAME>\n */" (preproc_ifdef) "#ifndef CONNECTION_H\n#define CONNECTION_H\n\n#include "internal.h"\n\n/**\n * Obtain the select sets for this connection.\n *\n * @return MHD_YES on success\n */\nint\nMHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd);\n\n/**\n * Obtain the pollfd for this connection. The poll interface allows large\n * file descriptors. Select goes stupid when the fd overflows fdset (which\n * is fixed).\n */\nint MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p);\n\nvoid MHD_set_http_callbacks_ (struct MHD_Connection *connection);\n\nint MHD_connection_handle_read (struct MHD_Connection *connection);\n\nint MHD_connection_handle_write (struct MHD_Connection *connection);\n\nint MHD_connection_handle_idle (struct MHD_Connection *connection);\n\n/**\n * Close the given connection and give the\n * specified termination code to the user.\n */\nvoid MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code);\n\n#endif" (#ifndef) "#ifndef" (identifier) "CONNECTION_H" (preproc_def) "#define CONNECTION_H\n" (#define) "#define" (identifier) "CONNECTION_H" (preproc_include) "#include "internal.h"\n" (#include) "#include" (string_literal) ""internal.h"" (") """ (string_content) "internal.h" (") """ (comment) "/**\n * Obtain the select sets for this connection.\n *\n * @return MHD_YES on success\n */" (declaration) "int\nMHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd);" (primitive_type) "int" (function_declarator) "MHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd)" (identifier) "MHD_connection_get_fdset" (parameter_list) "(struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd)" (() "(" (parameter_declaration) "struct MHD_Connection *connection" (struct_specifier) "struct MHD_Connection" (struct) "struct" (type_identifier) "MHD_Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" (,) "," (parameter_declaration) "fd_set * read_fd_set" (type_identifier) "fd_set" (pointer_declarator) "* read_fd_set" (*) "*" (identifier) "read_fd_set" (,) "," (parameter_declaration) "fd_set * write_fd_set" (type_identifier) "fd_set" (pointer_declarator) "* write_fd_set" (*) "*" (identifier) "write_fd_set" (,) "," (parameter_declaration) "fd_set * except_fd_set" (type_identifier) "fd_set" (pointer_declarator) "* except_fd_set" (*) "*" (identifier) "except_fd_set" (,) "," (parameter_declaration) "int *max_fd" (primitive_type) "int" (pointer_declarator) "*max_fd" (*) "*" (identifier) "max_fd" ()) ")" (;) ";" (comment) "/**\n * Obtain the pollfd for this connection. The poll interface allows large\n * file descriptors. Select goes stupid when the fd overflows fdset (which\n * is fixed).\n */" (declaration) "int MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p);" (primitive_type) "int" (function_declarator) "MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p)" (identifier) "MHD_connection_get_pollfd" (parameter_list) "(struct MHD_Connection *connection,\n struct MHD_Pollfd *p)" (() "(" (parameter_declaration) "struct MHD_Connection *connection" (struct_specifier) "struct MHD_Connection" (struct) "struct" (type_identifier) "MHD_Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" (,) "," (parameter_declaration) "struct MHD_Pollfd *p" (struct_specifier) "struct MHD_Pollfd" (struct) "struct" (type_identifier) "MHD_Pollfd" (pointer_declarator) "*p" (*) "*" (identifier) "p" ()) ")" (;) ";" (declaration) "void MHD_set_http_callbacks_ (struct MHD_Connection *connection);" (primitive_type) "void" (function_declarator) "MHD_set_http_callbacks_ (struct MHD_Connection *connection)" (identifier) "MHD_set_http_callbacks_" (parameter_list) "(struct MHD_Connection *connection)" (() "(" (parameter_declaration) "struct MHD_Connection *connection" (struct_specifier) "struct MHD_Connection" (struct) "struct" (type_identifier) "MHD_Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" ()) ")" (;) ";" (declaration) "int MHD_connection_handle_read (struct MHD_Connection *connection);" (primitive_type) "int" (function_declarator) "MHD_connection_handle_read (struct MHD_Connection *connection)" (identifier) "MHD_connection_handle_read" (parameter_list) "(struct MHD_Connection *connection)" (() "(" (parameter_declaration) "struct MHD_Connection *connection" (struct_specifier) "struct MHD_Connection" (struct) "struct" (type_identifier) "MHD_Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" ()) ")" (;) ";" (declaration) "int MHD_connection_handle_write (struct MHD_Connection *connection);" (primitive_type) "int" (function_declarator) "MHD_connection_handle_write (struct MHD_Connection *connection)" (identifier) "MHD_connection_handle_write" (parameter_list) "(struct MHD_Connection *connection)" (() "(" (parameter_declaration) "struct MHD_Connection *connection" (struct_specifier) "struct MHD_Connection" (struct) "struct" (type_identifier) "MHD_Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" ()) ")" (;) ";" (declaration) "int MHD_connection_handle_idle (struct MHD_Connection *connection);" (primitive_type) "int" (function_declarator) "MHD_connection_handle_idle (struct MHD_Connection *connection)" (identifier) "MHD_connection_handle_idle" (parameter_list) "(struct MHD_Connection *connection)" (() "(" (parameter_declaration) "struct MHD_Connection *connection" (struct_specifier) "struct MHD_Connection" (struct) "struct" (type_identifier) "MHD_Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" ()) ")" (;) ";" (comment) "/**\n * Close the given connection and give the\n * specified termination code to the user.\n */" (declaration) "void MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code);" (primitive_type) "void" (function_declarator) "MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code)" (identifier) "MHD_connection_close" (parameter_list) "(struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code)" (() "(" (parameter_declaration) "struct MHD_Connection *connection" (struct_specifier) "struct MHD_Connection" (struct) "struct" (type_identifier) "MHD_Connection" (pointer_declarator) "*connection" (*) "*" (identifier) "connection" (,) "," (parameter_declaration) "enum MHD_RequestTerminationCode termination_code" (enum_specifier) "enum MHD_RequestTerminationCode" (enum) "enum" (type_identifier) "MHD_RequestTerminationCode" (identifier) "termination_code" ()) ")" (;) ";" (#endif) "#endif"
162
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 39.85, "nodes": 126, "errors": 0, "source_hash": "c5f98f3092327f4f85bd5417669b94249bd9c358a6e993d58f83e8f14fc7584a", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CONNECTION_H\n#define CONNECTION_H\n\n#include \"internal.h\"\n\n/**\n * Obtain the select sets for this connection.\n *\n * @return MHD_YES on success\n */\nint\nMHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd);\n\n/**\n * Obtain the pollfd for this connection. The poll interface allows large\n * file descriptors. Select goes stupid when the fd overflows fdset (which\n * is fixed).\n */\nint MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p);\n\nvoid MHD_set_http_callbacks_ (struct MHD_Connection *connection);\n\nint MHD_connection_handle_read (struct MHD_Connection *connection);\n\nint MHD_connection_handle_write (struct MHD_Connection *connection);\n\nint MHD_connection_handle_idle (struct MHD_Connection *connection);\n\n/**\n * Close the given connection and give the\n * specified termination code to the user.\n */\nvoid MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 41, 60, 72, 84, 96, 108, 125], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 65, "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": "CONNECTION_H", "parent": 0, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define CONNECTION_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": "CONNECTION_H", "parent": 3, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"internal.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": "string_literal", "text": "\"internal.h\"", "parent": 6, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 21}}, {"id": 9, "type": "declaration", "text": "int\nMHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd);", "parent": 0, "children": [10, 11], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 40, "column": 63}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "MHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd)", "parent": 9, "children": [12, 13], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 40, "column": 62}}, {"id": 12, "type": "identifier", "text": "MHD_connection_get_fdset", "parent": 11, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 24}}, {"id": 13, "type": "parameter_list", "text": "(struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd)", "parent": 11, "children": [14, 21, 26, 31, 36], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 40, "column": 62}}, {"id": 14, "type": "parameter_declaration", "text": "struct MHD_Connection *connection", "parent": 13, "children": [15, 18], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 59}}, {"id": 15, "type": "struct_specifier", "text": "struct MHD_Connection", "parent": 14, "children": [16, 17], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 47}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 32}}, {"id": 17, "type": "type_identifier", "text": "MHD_Connection", "parent": 15, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 47}}, {"id": 18, "type": "pointer_declarator", "text": "*connection", "parent": 14, "children": [19, 20], "start_point": {"row": 37, "column": 48}, "end_point": {"row": 37, "column": 59}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 37, "column": 48}, "end_point": {"row": 37, "column": 49}}, {"id": 20, "type": "identifier", "text": "connection", "parent": 18, "children": [], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 59}}, {"id": 21, "type": "parameter_declaration", "text": "fd_set * read_fd_set", "parent": 13, "children": [22, 23], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 46}}, {"id": 22, "type": "type_identifier", "text": "fd_set", "parent": 21, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 32}}, {"id": 23, "type": "pointer_declarator", "text": "* read_fd_set", "parent": 21, "children": [24, 25], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 46}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 34}}, {"id": 25, "type": "identifier", "text": "read_fd_set", "parent": 23, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 46}}, {"id": 26, "type": "parameter_declaration", "text": "fd_set * write_fd_set", "parent": 13, "children": [27, 28], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 47}}, {"id": 27, "type": "type_identifier", "text": "fd_set", "parent": 26, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 32}}, {"id": 28, "type": "pointer_declarator", "text": "* write_fd_set", "parent": 26, "children": [29, 30], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 47}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 34}}, {"id": 30, "type": "identifier", "text": "write_fd_set", "parent": 28, "children": [], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 47}}, {"id": 31, "type": "parameter_declaration", "text": "fd_set * except_fd_set", "parent": 13, "children": [32, 33], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 48}}, {"id": 32, "type": "type_identifier", "text": "fd_set", "parent": 31, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 32}}, {"id": 33, "type": "pointer_declarator", "text": "* except_fd_set", "parent": 31, "children": [34, 35], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 48}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 34}}, {"id": 35, "type": "identifier", "text": "except_fd_set", "parent": 33, "children": [], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 48}}, {"id": 36, "type": "parameter_declaration", "text": "int *max_fd", "parent": 13, "children": [37, 38], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 61}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 53}}, {"id": 38, "type": "pointer_declarator", "text": "*max_fd", "parent": 36, "children": [39, 40], "start_point": {"row": 40, "column": 54}, "end_point": {"row": 40, "column": 61}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 40, "column": 54}, "end_point": {"row": 40, "column": 55}}, {"id": 40, "type": "identifier", "text": "max_fd", "parent": 38, "children": [], "start_point": {"row": 40, "column": 55}, "end_point": {"row": 40, "column": 61}}, {"id": 41, "type": "declaration", "text": "int MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p);", "parent": 0, "children": [42, 43], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 52}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 3}}, {"id": 43, "type": "function_declarator", "text": "MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p)", "parent": 41, "children": [44, 45], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 48, "column": 51}}, {"id": 44, "type": "identifier", "text": "MHD_connection_get_pollfd", "parent": 43, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 29}}, {"id": 45, "type": "parameter_list", "text": "(struct MHD_Connection *connection,\n struct MHD_Pollfd *p)", "parent": 43, "children": [46, 53], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 48, "column": 51}}, {"id": 46, "type": "parameter_declaration", "text": "struct MHD_Connection *connection", "parent": 45, "children": [47, 50], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 63}}, {"id": 47, "type": "struct_specifier", "text": "struct MHD_Connection", "parent": 46, "children": [48, 49], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 51}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 36}}, {"id": 49, "type": "type_identifier", "text": "MHD_Connection", "parent": 47, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 51}}, {"id": 50, "type": "pointer_declarator", "text": "*connection", "parent": 46, "children": [51, 52], "start_point": {"row": 47, "column": 52}, "end_point": {"row": 47, "column": 63}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 47, "column": 52}, "end_point": {"row": 47, "column": 53}}, {"id": 52, "type": "identifier", "text": "connection", "parent": 50, "children": [], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 63}}, {"id": 53, "type": "parameter_declaration", "text": "struct MHD_Pollfd *p", "parent": 45, "children": [54, 57], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 50}}, {"id": 54, "type": "struct_specifier", "text": "struct MHD_Pollfd", "parent": 53, "children": [55, 56], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 47}}, {"id": 55, "type": "struct", "text": "struct", "parent": 54, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 36}}, {"id": 56, "type": "type_identifier", "text": "MHD_Pollfd", "parent": 54, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 47}}, {"id": 57, "type": "pointer_declarator", "text": "*p", "parent": 53, "children": [58, 59], "start_point": {"row": 48, "column": 48}, "end_point": {"row": 48, "column": 50}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 48, "column": 48}, "end_point": {"row": 48, "column": 49}}, {"id": 59, "type": "identifier", "text": "p", "parent": 57, "children": [], "start_point": {"row": 48, "column": 49}, "end_point": {"row": 48, "column": 50}}, {"id": 60, "type": "declaration", "text": "void MHD_set_http_callbacks_ (struct MHD_Connection *connection);", "parent": 0, "children": [61, 62], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 65}}, {"id": 61, "type": "primitive_type", "text": "void", "parent": 60, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 4}}, {"id": 62, "type": "function_declarator", "text": "MHD_set_http_callbacks_ (struct MHD_Connection *connection)", "parent": 60, "children": [63, 64], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 64}}, {"id": 63, "type": "identifier", "text": "MHD_set_http_callbacks_", "parent": 62, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 28}}, {"id": 64, "type": "parameter_list", "text": "(struct MHD_Connection *connection)", "parent": 62, "children": [65], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 64}}, {"id": 65, "type": "parameter_declaration", "text": "struct MHD_Connection *connection", "parent": 64, "children": [66, 69], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 63}}, {"id": 66, "type": "struct_specifier", "text": "struct MHD_Connection", "parent": 65, "children": [67, 68], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 51}}, {"id": 67, "type": "struct", "text": "struct", "parent": 66, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 36}}, {"id": 68, "type": "type_identifier", "text": "MHD_Connection", "parent": 66, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 51}}, {"id": 69, "type": "pointer_declarator", "text": "*connection", "parent": 65, "children": [70, 71], "start_point": {"row": 50, "column": 52}, "end_point": {"row": 50, "column": 63}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 50, "column": 52}, "end_point": {"row": 50, "column": 53}}, {"id": 71, "type": "identifier", "text": "connection", "parent": 69, "children": [], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 63}}, {"id": 72, "type": "declaration", "text": "int MHD_connection_handle_read (struct MHD_Connection *connection);", "parent": 0, "children": [73, 74], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 67}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 3}}, {"id": 74, "type": "function_declarator", "text": "MHD_connection_handle_read (struct MHD_Connection *connection)", "parent": 72, "children": [75, 76], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 66}}, {"id": 75, "type": "identifier", "text": "MHD_connection_handle_read", "parent": 74, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 30}}, {"id": 76, "type": "parameter_list", "text": "(struct MHD_Connection *connection)", "parent": 74, "children": [77], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 66}}, {"id": 77, "type": "parameter_declaration", "text": "struct MHD_Connection *connection", "parent": 76, "children": [78, 81], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 65}}, {"id": 78, "type": "struct_specifier", "text": "struct MHD_Connection", "parent": 77, "children": [79, 80], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 53}}, {"id": 79, "type": "struct", "text": "struct", "parent": 78, "children": [], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 38}}, {"id": 80, "type": "type_identifier", "text": "MHD_Connection", "parent": 78, "children": [], "start_point": {"row": 52, "column": 39}, "end_point": {"row": 52, "column": 53}}, {"id": 81, "type": "pointer_declarator", "text": "*connection", "parent": 77, "children": [82, 83], "start_point": {"row": 52, "column": 54}, "end_point": {"row": 52, "column": 65}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 52, "column": 54}, "end_point": {"row": 52, "column": 55}}, {"id": 83, "type": "identifier", "text": "connection", "parent": 81, "children": [], "start_point": {"row": 52, "column": 55}, "end_point": {"row": 52, "column": 65}}, {"id": 84, "type": "declaration", "text": "int MHD_connection_handle_write (struct MHD_Connection *connection);", "parent": 0, "children": [85, 86], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 68}}, {"id": 85, "type": "primitive_type", "text": "int", "parent": 84, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 3}}, {"id": 86, "type": "function_declarator", "text": "MHD_connection_handle_write (struct MHD_Connection *connection)", "parent": 84, "children": [87, 88], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 67}}, {"id": 87, "type": "identifier", "text": "MHD_connection_handle_write", "parent": 86, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 31}}, {"id": 88, "type": "parameter_list", "text": "(struct MHD_Connection *connection)", "parent": 86, "children": [89], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 67}}, {"id": 89, "type": "parameter_declaration", "text": "struct MHD_Connection *connection", "parent": 88, "children": [90, 93], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 66}}, {"id": 90, "type": "struct_specifier", "text": "struct MHD_Connection", "parent": 89, "children": [91, 92], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 54}}, {"id": 91, "type": "struct", "text": "struct", "parent": 90, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 39}}, {"id": 92, "type": "type_identifier", "text": "MHD_Connection", "parent": 90, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 54}}, {"id": 93, "type": "pointer_declarator", "text": "*connection", "parent": 89, "children": [94, 95], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 66}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 56}}, {"id": 95, "type": "identifier", "text": "connection", "parent": 93, "children": [], "start_point": {"row": 54, "column": 56}, "end_point": {"row": 54, "column": 66}}, {"id": 96, "type": "declaration", "text": "int MHD_connection_handle_idle (struct MHD_Connection *connection);", "parent": 0, "children": [97, 98], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 67}}, {"id": 97, "type": "primitive_type", "text": "int", "parent": 96, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 3}}, {"id": 98, "type": "function_declarator", "text": "MHD_connection_handle_idle (struct MHD_Connection *connection)", "parent": 96, "children": [99, 100], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 66}}, {"id": 99, "type": "identifier", "text": "MHD_connection_handle_idle", "parent": 98, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 30}}, {"id": 100, "type": "parameter_list", "text": "(struct MHD_Connection *connection)", "parent": 98, "children": [101], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 66}}, {"id": 101, "type": "parameter_declaration", "text": "struct MHD_Connection *connection", "parent": 100, "children": [102, 105], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 65}}, {"id": 102, "type": "struct_specifier", "text": "struct MHD_Connection", "parent": 101, "children": [103, 104], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 53}}, {"id": 103, "type": "struct", "text": "struct", "parent": 102, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 38}}, {"id": 104, "type": "type_identifier", "text": "MHD_Connection", "parent": 102, "children": [], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 53}}, {"id": 105, "type": "pointer_declarator", "text": "*connection", "parent": 101, "children": [106, 107], "start_point": {"row": 56, "column": 54}, "end_point": {"row": 56, "column": 65}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 56, "column": 54}, "end_point": {"row": 56, "column": 55}}, {"id": 107, "type": "identifier", "text": "connection", "parent": 105, "children": [], "start_point": {"row": 56, "column": 55}, "end_point": {"row": 56, "column": 65}}, {"id": 108, "type": "declaration", "text": "void MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code);", "parent": 0, "children": [109, 110], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 77}}, {"id": 109, "type": "primitive_type", "text": "void", "parent": 108, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 4}}, {"id": 110, "type": "function_declarator", "text": "MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code)", "parent": 108, "children": [111, 112], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 63, "column": 76}}, {"id": 111, "type": "identifier", "text": "MHD_connection_close", "parent": 110, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 25}}, {"id": 112, "type": "parameter_list", "text": "(struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code)", "parent": 110, "children": [113, 120], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 63, "column": 76}}, {"id": 113, "type": "parameter_declaration", "text": "struct MHD_Connection *connection", "parent": 112, "children": [114, 117], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 60}}, {"id": 114, "type": "struct_specifier", "text": "struct MHD_Connection", "parent": 113, "children": [115, 116], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 48}}, {"id": 115, "type": "struct", "text": "struct", "parent": 114, "children": [], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 33}}, {"id": 116, "type": "type_identifier", "text": "MHD_Connection", "parent": 114, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 48}}, {"id": 117, "type": "pointer_declarator", "text": "*connection", "parent": 113, "children": [118, 119], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 60}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 50}}, {"id": 119, "type": "identifier", "text": "connection", "parent": 117, "children": [], "start_point": {"row": 62, "column": 50}, "end_point": {"row": 62, "column": 60}}, {"id": 120, "type": "parameter_declaration", "text": "enum MHD_RequestTerminationCode termination_code", "parent": 112, "children": [121, 124], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 75}}, {"id": 121, "type": "enum_specifier", "text": "enum MHD_RequestTerminationCode", "parent": 120, "children": [122, 123], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 58}}, {"id": 122, "type": "enum", "text": "enum", "parent": 121, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 31}}, {"id": 123, "type": "type_identifier", "text": "MHD_RequestTerminationCode", "parent": 121, "children": [], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 58}}, {"id": 124, "type": "identifier", "text": "termination_code", "parent": 120, "children": [], "start_point": {"row": 63, "column": 59}, "end_point": {"row": 63, "column": 75}}, {"id": 125, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11, 43, 62, 74, 86, 98, 110], "variables": [9, 14, 21, 26, 31, 36, 41, 46, 53, 60, 65, 72, 77, 84, 89, 96, 101, 108, 113, 120], "classes": [15, 16, 47, 48, 54, 55, 66, 67, 78, 79, 90, 91, 102, 103, 114, 115], "imports": [6, 7], "modules": [], "enums": [121, 122]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 17, 20, 22, 25, 27, 30, 32, 35, 40, 44, 49, 52, 56, 59, 63, 68, 71, 75, 80, 83, 87, 92, 95, 99, 104, 107, 111, 116, 119, 123, 124, 125], "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": "*max_fd)", "text_snippet": "MHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read"}, {"node_id": 43, "universal_type": "function", "name": "MHD_Pollfd", "text_snippet": "MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MH"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "MHD_set_http_callbacks_ (struct MHD_Connection *connection)"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "MHD_connection_handle_read (struct MHD_Connection *connection)"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "MHD_connection_handle_write (struct MHD_Connection *connection)"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "MHD_connection_handle_idle (struct MHD_Connection *connection)"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_Request"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "MHD_Connection", "text_snippet": "struct MHD_Connection"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 47, "universal_type": "class", "name": "MHD_Connection", "text_snippet": "struct MHD_Connection"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 54, "universal_type": "class", "name": "MHD_Pollfd", "text_snippet": "struct MHD_Pollfd"}, {"node_id": 55, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 66, "universal_type": "class", "name": "MHD_Connection", "text_snippet": "struct MHD_Connection"}, {"node_id": 67, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 78, "universal_type": "class", "name": "MHD_Connection", "text_snippet": "struct MHD_Connection"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 90, "universal_type": "class", "name": "MHD_Connection", "text_snippet": "struct MHD_Connection"}, {"node_id": 91, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 102, "universal_type": "class", "name": "MHD_Connection", "text_snippet": "struct MHD_Connection"}, {"node_id": 103, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 114, "universal_type": "class", "name": "MHD_Connection", "text_snippet": "struct MHD_Connection"}, {"node_id": 115, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"internal.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n This file is part of libmicrohttpd\n (C) 2007 <NAME> and <NAME>\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library 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 Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n*/\n\n/**\n * @file connection.h\n * @brief Methods for managing connections\n * @author <NAME>\n * @author <NAME>\n */\n\n#ifndef CONNECTION_H\n#define CONNECTION_H\n\n#include \"internal.h\"\n\n/**\n * Obtain the select sets for this connection.\n *\n * @return MHD_YES on success\n */\nint\nMHD_connection_get_fdset (struct MHD_Connection *connection,\n fd_set * read_fd_set,\n fd_set * write_fd_set,\n fd_set * except_fd_set, int *max_fd);\n\n/**\n * Obtain the pollfd for this connection. The poll interface allows large\n * file descriptors. Select goes stupid when the fd overflows fdset (which\n * is fixed).\n */\nint MHD_connection_get_pollfd(struct MHD_Connection *connection,\n struct MHD_Pollfd *p);\n\nvoid MHD_set_http_callbacks_ (struct MHD_Connection *connection);\n\nint MHD_connection_handle_read (struct MHD_Connection *connection);\n\nint MHD_connection_handle_write (struct MHD_Connection *connection);\n\nint MHD_connection_handle_idle (struct MHD_Connection *connection);\n\n/**\n * Close the given connection and give the\n * specified termination code to the user.\n */\nvoid MHD_connection_close (struct MHD_Connection *connection,\n enum MHD_RequestTerminationCode termination_code);\n\n#endif\n"}
80,436
c
#ifndef _RTC_H_ #define _RTC_H_ // ds1302 connection #define ds1302_PORT PORTB #define ds1302_DDR DDRB #define ds1302_PIN PINB #define rst 7 #define clk 6 #define io 0 #define rst_1() ds1302_PORT |= (1<<rst); #define rst_0() ds1302_PORT &= ~ (1<<rst); #define clk_1() ds1302_PORT |= (1<<clk); #define clk_0() ds1302_PORT &= ~ (1<<clk); #define io_1() ds1302_PORT |= (1<<io); #define io_0() ds1302_PORT &= ~ (1<<io); #define AM 10 #define PM 11 #define H24 12 #define READ 15 #define WRITE 16 #define mon 1 #define tue 2 #define wed 3 #define thu 4 #define fri 5 #define sat 6 #define sun 7 #define sec_w 0x80 #define sec_r 0x81 #define min_w 0x82 #define min_r 0x83 #define hour_w 0x84 #define hour_r 0x85 #define date_w 0x86 #define date_r 0x87 #define month_w 0x88 #define month_r 0x89 #define day_w 0x8a #define day_r 0x8b #define year_w 0x8c #define year_r 0x8d #define SEC 20 #define MIN 21 #define HOUR 22 #define DAY 22 #define DATE 23 #define MONTH 24 #define YEAR 25 #define w_protect 0x8e struct rtc_time{ char second; char minute; char hour; char day; char date; char month; char year; char hour_format; }; void ds1302_update_time(struct rtc_time *, unsigned char); void ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte); void ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char); void ds1302_update(struct rtc_time *); void ds1302_init (void); //ds1302 init void ds1302_reset(void); //ds1302_reset unsigned char ds1302_read_byte(unsigned char); void ds1302_write_byte(unsigned char, unsigned char); void write(unsigned char); unsigned char read(void); void ds1302_write_byte(unsigned char,unsigned char); #endif
23.14
71
(translation_unit) "#ifndef _RTC_H_\n#define _RTC_H_\n// ds1302 connection\n#define ds1302_PORT PORTB\n#define ds1302_DDR DDRB\n#define ds1302_PIN PINB\n#define rst 7\n#define clk 6\n#define io 0\n\n#define rst_1() ds1302_PORT |= (1<<rst);\n#define rst_0() ds1302_PORT &= ~ (1<<rst);\n#define clk_1() ds1302_PORT |= (1<<clk);\n#define clk_0() ds1302_PORT &= ~ (1<<clk);\n#define io_1() ds1302_PORT |= (1<<io);\n#define io_0() ds1302_PORT &= ~ (1<<io);\n\n#define AM 10\n#define PM 11\n#define H24 12\n\n#define READ 15\n#define WRITE 16\n\n#define mon 1\n#define tue 2\n#define wed 3\n#define thu 4\n#define fri 5\n#define sat 6\n#define sun 7\n\n#define sec_w 0x80\n#define sec_r 0x81\n#define min_w 0x82\n#define min_r 0x83\n#define hour_w 0x84\n#define hour_r 0x85\n#define date_w 0x86\n#define date_r 0x87\n#define month_w 0x88\n#define month_r 0x89\n#define day_w 0x8a\n#define day_r 0x8b\n#define year_w 0x8c\n#define year_r 0x8d\n\n#define SEC 20\n#define MIN 21\n#define HOUR 22\n#define DAY 22\n#define DATE 23\n#define MONTH 24\n#define YEAR 25\n\n#define w_protect 0x8e\n\nstruct rtc_time{\n char second;\n char minute;\n char hour;\n char day;\n char date;\n char month;\n char year;\n char hour_format;\n};\n\nvoid ds1302_update_time(struct rtc_time *, unsigned char);\nvoid ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte);\nvoid ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char);\nvoid ds1302_update(struct rtc_time *);\nvoid ds1302_init (void); //ds1302 init\nvoid ds1302_reset(void); //ds1302_reset\nunsigned char ds1302_read_byte(unsigned char);\nvoid ds1302_write_byte(unsigned char, unsigned char);\nvoid write(unsigned char);\nunsigned char read(void);\nvoid ds1302_write_byte(unsigned char,unsigned char);\n\n#endif" (preproc_ifdef) "#ifndef _RTC_H_\n#define _RTC_H_\n// ds1302 connection\n#define ds1302_PORT PORTB\n#define ds1302_DDR DDRB\n#define ds1302_PIN PINB\n#define rst 7\n#define clk 6\n#define io 0\n\n#define rst_1() ds1302_PORT |= (1<<rst);\n#define rst_0() ds1302_PORT &= ~ (1<<rst);\n#define clk_1() ds1302_PORT |= (1<<clk);\n#define clk_0() ds1302_PORT &= ~ (1<<clk);\n#define io_1() ds1302_PORT |= (1<<io);\n#define io_0() ds1302_PORT &= ~ (1<<io);\n\n#define AM 10\n#define PM 11\n#define H24 12\n\n#define READ 15\n#define WRITE 16\n\n#define mon 1\n#define tue 2\n#define wed 3\n#define thu 4\n#define fri 5\n#define sat 6\n#define sun 7\n\n#define sec_w 0x80\n#define sec_r 0x81\n#define min_w 0x82\n#define min_r 0x83\n#define hour_w 0x84\n#define hour_r 0x85\n#define date_w 0x86\n#define date_r 0x87\n#define month_w 0x88\n#define month_r 0x89\n#define day_w 0x8a\n#define day_r 0x8b\n#define year_w 0x8c\n#define year_r 0x8d\n\n#define SEC 20\n#define MIN 21\n#define HOUR 22\n#define DAY 22\n#define DATE 23\n#define MONTH 24\n#define YEAR 25\n\n#define w_protect 0x8e\n\nstruct rtc_time{\n char second;\n char minute;\n char hour;\n char day;\n char date;\n char month;\n char year;\n char hour_format;\n};\n\nvoid ds1302_update_time(struct rtc_time *, unsigned char);\nvoid ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte);\nvoid ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char);\nvoid ds1302_update(struct rtc_time *);\nvoid ds1302_init (void); //ds1302 init\nvoid ds1302_reset(void); //ds1302_reset\nunsigned char ds1302_read_byte(unsigned char);\nvoid ds1302_write_byte(unsigned char, unsigned char);\nvoid write(unsigned char);\nunsigned char read(void);\nvoid ds1302_write_byte(unsigned char,unsigned char);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_RTC_H_" (preproc_def) "#define _RTC_H_\n" (#define) "#define" (identifier) "_RTC_H_" (comment) "// ds1302 connection" (preproc_def) "#define ds1302_PORT PORTB\n" (#define) "#define" (identifier) "ds1302_PORT" (preproc_arg) "PORTB" (preproc_def) "#define ds1302_DDR DDRB\n" (#define) "#define" (identifier) "ds1302_DDR" (preproc_arg) "DDRB" (preproc_def) "#define ds1302_PIN PINB\n" (#define) "#define" (identifier) "ds1302_PIN" (preproc_arg) "PINB" (preproc_def) "#define rst 7\n" (#define) "#define" (identifier) "rst" (preproc_arg) "7" (preproc_def) "#define clk 6\n" (#define) "#define" (identifier) "clk" (preproc_arg) "6" (preproc_def) "#define io 0\n" (#define) "#define" (identifier) "io" (preproc_arg) "0" (preproc_function_def) "#define rst_1() ds1302_PORT |= (1<<rst);\n" (#define) "#define" (identifier) "rst_1" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "ds1302_PORT |= (1<<rst);" (preproc_function_def) "#define rst_0() ds1302_PORT &= ~ (1<<rst);\n" (#define) "#define" (identifier) "rst_0" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "ds1302_PORT &= ~ (1<<rst);" (preproc_function_def) "#define clk_1() ds1302_PORT |= (1<<clk);\n" (#define) "#define" (identifier) "clk_1" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "ds1302_PORT |= (1<<clk);" (preproc_function_def) "#define clk_0() ds1302_PORT &= ~ (1<<clk);\n" (#define) "#define" (identifier) "clk_0" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "ds1302_PORT &= ~ (1<<clk);" (preproc_function_def) "#define io_1() ds1302_PORT |= (1<<io);\n" (#define) "#define" (identifier) "io_1" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "ds1302_PORT |= (1<<io);" (preproc_function_def) "#define io_0() ds1302_PORT &= ~ (1<<io);\n" (#define) "#define" (identifier) "io_0" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "ds1302_PORT &= ~ (1<<io);" (preproc_def) "#define AM 10\n" (#define) "#define" (identifier) "AM" (preproc_arg) "10" (preproc_def) "#define PM 11\n" (#define) "#define" (identifier) "PM" (preproc_arg) "11" (preproc_def) "#define H24 12\n" (#define) "#define" (identifier) "H24" (preproc_arg) "12" (preproc_def) "#define READ 15\n" (#define) "#define" (identifier) "READ" (preproc_arg) "15" (preproc_def) "#define WRITE 16\n" (#define) "#define" (identifier) "WRITE" (preproc_arg) "16" (preproc_def) "#define mon 1\n" (#define) "#define" (identifier) "mon" (preproc_arg) "1" (preproc_def) "#define tue 2\n" (#define) "#define" (identifier) "tue" (preproc_arg) "2" (preproc_def) "#define wed 3\n" (#define) "#define" (identifier) "wed" (preproc_arg) "3" (preproc_def) "#define thu 4\n" (#define) "#define" (identifier) "thu" (preproc_arg) "4" (preproc_def) "#define fri 5\n" (#define) "#define" (identifier) "fri" (preproc_arg) "5" (preproc_def) "#define sat 6\n" (#define) "#define" (identifier) "sat" (preproc_arg) "6" (preproc_def) "#define sun 7\n" (#define) "#define" (identifier) "sun" (preproc_arg) "7" (preproc_def) "#define sec_w 0x80\n" (#define) "#define" (identifier) "sec_w" (preproc_arg) "0x80" (preproc_def) "#define sec_r 0x81\n" (#define) "#define" (identifier) "sec_r" (preproc_arg) "0x81" (preproc_def) "#define min_w 0x82\n" (#define) "#define" (identifier) "min_w" (preproc_arg) "0x82" (preproc_def) "#define min_r 0x83\n" (#define) "#define" (identifier) "min_r" (preproc_arg) "0x83" (preproc_def) "#define hour_w 0x84\n" (#define) "#define" (identifier) "hour_w" (preproc_arg) "0x84" (preproc_def) "#define hour_r 0x85\n" (#define) "#define" (identifier) "hour_r" (preproc_arg) "0x85" (preproc_def) "#define date_w 0x86\n" (#define) "#define" (identifier) "date_w" (preproc_arg) "0x86" (preproc_def) "#define date_r 0x87\n" (#define) "#define" (identifier) "date_r" (preproc_arg) "0x87" (preproc_def) "#define month_w 0x88\n" (#define) "#define" (identifier) "month_w" (preproc_arg) "0x88" (preproc_def) "#define month_r 0x89\n" (#define) "#define" (identifier) "month_r" (preproc_arg) "0x89" (preproc_def) "#define day_w 0x8a\n" (#define) "#define" (identifier) "day_w" (preproc_arg) "0x8a" (preproc_def) "#define day_r 0x8b\n" (#define) "#define" (identifier) "day_r" (preproc_arg) "0x8b" (preproc_def) "#define year_w 0x8c\n" (#define) "#define" (identifier) "year_w" (preproc_arg) "0x8c" (preproc_def) "#define year_r 0x8d\n" (#define) "#define" (identifier) "year_r" (preproc_arg) "0x8d" (preproc_def) "#define SEC 20\n" (#define) "#define" (identifier) "SEC" (preproc_arg) "20" (preproc_def) "#define MIN 21\n" (#define) "#define" (identifier) "MIN" (preproc_arg) "21" (preproc_def) "#define HOUR 22\n" (#define) "#define" (identifier) "HOUR" (preproc_arg) "22" (preproc_def) "#define DAY 22\n" (#define) "#define" (identifier) "DAY" (preproc_arg) "22" (preproc_def) "#define DATE 23\n" (#define) "#define" (identifier) "DATE" (preproc_arg) "23" (preproc_def) "#define MONTH 24\n" (#define) "#define" (identifier) "MONTH" (preproc_arg) "24" (preproc_def) "#define YEAR 25\n" (#define) "#define" (identifier) "YEAR" (preproc_arg) "25" (preproc_def) "#define w_protect 0x8e\n" (#define) "#define" (identifier) "w_protect" (preproc_arg) "0x8e" (struct_specifier) "struct rtc_time{\n char second;\n char minute;\n char hour;\n char day;\n char date;\n char month;\n char year;\n char hour_format;\n}" (struct) "struct" (type_identifier) "rtc_time" (field_declaration_list) "{\n char second;\n char minute;\n char hour;\n char day;\n char date;\n char month;\n char year;\n char hour_format;\n}" ({) "{" (field_declaration) "char second;" (primitive_type) "char" (field_identifier) "second" (;) ";" (field_declaration) "char minute;" (primitive_type) "char" (field_identifier) "minute" (;) ";" (field_declaration) "char hour;" (primitive_type) "char" (field_identifier) "hour" (;) ";" (field_declaration) "char day;" (primitive_type) "char" (field_identifier) "day" (;) ";" (field_declaration) "char date;" (primitive_type) "char" (field_identifier) "date" (;) ";" (field_declaration) "char month;" (primitive_type) "char" (field_identifier) "month" (;) ";" (field_declaration) "char year;" (primitive_type) "char" (field_identifier) "year" (;) ";" (field_declaration) "char hour_format;" (primitive_type) "char" (field_identifier) "hour_format" (;) ";" (}) "}" (;) ";" (declaration) "void ds1302_update_time(struct rtc_time *, unsigned char);" (primitive_type) "void" (function_declarator) "ds1302_update_time(struct rtc_time *, unsigned char)" (identifier) "ds1302_update_time" (parameter_list) "(struct rtc_time *, unsigned char)" (() "(" (parameter_declaration) "struct rtc_time *" (struct_specifier) "struct rtc_time" (struct) "struct" (type_identifier) "rtc_time" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" ()) ")" (;) ";" (declaration) "void ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte);" (primitive_type) "void" (function_declarator) "ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte)" (identifier) "ds1302_set_time" (parameter_list) "(struct rtc_time * time, unsigned char field, unsigned char w_byte)" (() "(" (parameter_declaration) "struct rtc_time * time" (struct_specifier) "struct rtc_time" (struct) "struct" (type_identifier) "rtc_time" (pointer_declarator) "* time" (*) "*" (identifier) "time" (,) "," (parameter_declaration) "unsigned char field" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (identifier) "field" (,) "," (parameter_declaration) "unsigned char w_byte" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (identifier) "w_byte" ()) ")" (;) ";" (declaration) "void ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char);" (primitive_type) "void" (function_declarator) "ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char)" (identifier) "ds1302_comms" (parameter_list) "(struct rtc_time *, unsigned char, unsigned char, unsigned char)" (() "(" (parameter_declaration) "struct rtc_time *" (struct_specifier) "struct rtc_time" (struct) "struct" (type_identifier) "rtc_time" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (,) "," (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (,) "," (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" ()) ")" (;) ";" (declaration) "void ds1302_update(struct rtc_time *);" (primitive_type) "void" (function_declarator) "ds1302_update(struct rtc_time *)" (identifier) "ds1302_update" (parameter_list) "(struct rtc_time *)" (() "(" (parameter_declaration) "struct rtc_time *" (struct_specifier) "struct rtc_time" (struct) "struct" (type_identifier) "rtc_time" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void ds1302_init (void);" (primitive_type) "void" (function_declarator) "ds1302_init (void)" (identifier) "ds1302_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "//ds1302 init" (declaration) "void ds1302_reset(void);" (primitive_type) "void" (function_declarator) "ds1302_reset(void)" (identifier) "ds1302_reset" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "//ds1302_reset" (declaration) "unsigned char ds1302_read_byte(unsigned char);" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (function_declarator) "ds1302_read_byte(unsigned char)" (identifier) "ds1302_read_byte" (parameter_list) "(unsigned char)" (() "(" (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" ()) ")" (;) ";" (declaration) "void ds1302_write_byte(unsigned char, unsigned char);" (primitive_type) "void" (function_declarator) "ds1302_write_byte(unsigned char, unsigned char)" (identifier) "ds1302_write_byte" (parameter_list) "(unsigned char, unsigned char)" (() "(" (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (,) "," (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" ()) ")" (;) ";" (declaration) "void write(unsigned char);" (primitive_type) "void" (function_declarator) "write(unsigned char)" (identifier) "write" (parameter_list) "(unsigned char)" (() "(" (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" ()) ")" (;) ";" (declaration) "unsigned char read(void);" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (function_declarator) "read(void)" (identifier) "read" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void ds1302_write_byte(unsigned char,unsigned char);" (primitive_type) "void" (function_declarator) "ds1302_write_byte(unsigned char,unsigned char)" (identifier) "ds1302_write_byte" (parameter_list) "(unsigned char,unsigned char)" (() "(" (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (,) "," (parameter_declaration) "unsigned char" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" ()) ")" (;) ";" (#endif) "#endif"
433
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 23.14, "nodes": 364, "errors": 0, "source_hash": "2373ddfbe64918e2807cab967ab6d1bbe7d17e52014a5e6145dab7a3123a33db", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _RTC_H_\n#define _RTC_H_\n// ds1302 connection\n#define ds1302_PORT PORTB\n#define ds1302_DDR DDRB\n#define ds1302_PIN PINB\n#define rst 7\n#define clk 6\n#define io 0\n\n#define rst_1() ds1302_PORT |= (1<<rst);\n#define rst_0() ds1302_PORT &= ~ (1<<rst);\n#define clk_1() ds1302_PORT |= (1<<clk);\n#define clk_0() ds1302_PORT &= ~ (1<<clk);\n#define io_1() \tds1302_PORT |= (1<<io);\n#define io_0() \tds1302_PORT &= ~ (1<<io);\n\n#define AM\t\t10\n#define PM\t\t11\n#define H24\t\t12\n\n#define READ\t15\n#define WRITE\t16\n\n#define mon \t1\n#define tue \t2\n#define wed \t3\n#define thu \t4\n#define fri \t5\n#define sat \t6\n#define sun \t7\n\n#define sec_w \t0x80\n#define sec_r \t0x81\n#define min_w \t0x82\n#define min_r \t0x83\n#define hour_w \t0x84\n#define hour_r \t0x85\n#define date_w \t0x86\n#define date_r \t0x87\n#define month_w 0x88\n#define month_r 0x89\n#define day_w \t0x8a\n#define day_r \t0x8b\n#define year_w \t0x8c\n#define year_r \t0x8d\n\n#define SEC 20\n#define MIN 21\n#define HOUR 22\n#define DAY 22\n#define DATE 23\n#define MONTH 24\n#define YEAR 25\n\n#define w_protect 0x8e\n\nstruct rtc_time{\n\tchar second;\n\tchar minute;\n\tchar hour;\n\tchar day;\n\tchar date;\n\tchar month;\n\tchar year;\n\tchar hour_format;\n};\n\nvoid ds1302_update_time(struct rtc_time *, unsigned char);\nvoid ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte);\nvoid ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char);\nvoid ds1302_update(struct rtc_time *);\nvoid ds1302_init (void); //ds1302 init\nvoid ds1302_reset(void);\t //ds1302_reset\nunsigned char ds1302_read_byte(unsigned char);\nvoid ds1302_write_byte(unsigned char, unsigned char);\nvoid write(unsigned char);\nunsigned char read(void);\nvoid ds1302_write_byte(unsigned char,unsigned char);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 18, 22, 26, 30, 35, 40, 45, 50, 55, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 180, 184, 188, 192, 196, 223, 238, 260, 283, 294, 301, 308, 319, 332, 341, 350, 363], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 80, "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": "_RTC_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define _RTC_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": "_RTC_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 15}}, {"id": 6, "type": "preproc_def", "text": "#define ds1302_PORT PORTB\n", "parent": 0, "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": "ds1302_PORT", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "preproc_arg", "text": "PORTB", "parent": 6, "children": [], "start_point": {"row": 3, "column": 20}, "end_point": {"row": 3, "column": 25}}, {"id": 10, "type": "preproc_def", "text": "#define ds1302_DDR DDRB\n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 12, "type": "identifier", "text": "ds1302_DDR", "parent": 10, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 18}}, {"id": 13, "type": "preproc_arg", "text": "DDRB", "parent": 10, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 23}}, {"id": 14, "type": "preproc_def", "text": "#define ds1302_PIN PINB\n", "parent": 0, "children": [15, 16, 17], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 16, "type": "identifier", "text": "ds1302_PIN", "parent": 14, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 18}}, {"id": 17, "type": "preproc_arg", "text": "PINB", "parent": 14, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 23}}, {"id": 18, "type": "preproc_def", "text": "#define rst 7\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 20, "type": "identifier", "text": "rst", "parent": 18, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 11}}, {"id": 21, "type": "preproc_arg", "text": "7", "parent": 18, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 22, "type": "preproc_def", "text": "#define clk 6\n", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 24, "type": "identifier", "text": "clk", "parent": 22, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 11}}, {"id": 25, "type": "preproc_arg", "text": "6", "parent": 22, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 13}}, {"id": 26, "type": "preproc_def", "text": "#define io 0\n", "parent": 0, "children": [27, 28, 29], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 28, "type": "identifier", "text": "io", "parent": 26, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 10}}, {"id": 29, "type": "preproc_arg", "text": "0", "parent": 26, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 30, "type": "preproc_function_def", "text": "#define rst_1() ds1302_PORT |= (1<<rst);\n", "parent": 0, "children": [31, 32, 33, 34], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 32, "type": "identifier", "text": "rst_1", "parent": 30, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 13}}, {"id": 33, "type": "preproc_params", "text": "()", "parent": 30, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 15}}, {"id": 34, "type": "preproc_arg", "text": "ds1302_PORT |= (1<<rst);", "parent": 30, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 40}}, {"id": 35, "type": "preproc_function_def", "text": "#define rst_0() ds1302_PORT &= ~ (1<<rst);\n", "parent": 0, "children": [36, 37, 38, 39], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 36, "type": "#define", "text": "#define", "parent": 35, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 37, "type": "identifier", "text": "rst_0", "parent": 35, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 13}}, {"id": 38, "type": "preproc_params", "text": "()", "parent": 35, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 15}}, {"id": 39, "type": "preproc_arg", "text": "ds1302_PORT &= ~ (1<<rst);", "parent": 35, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 42}}, {"id": 40, "type": "preproc_function_def", "text": "#define clk_1() ds1302_PORT |= (1<<clk);\n", "parent": 0, "children": [41, 42, 43, 44], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 42, "type": "identifier", "text": "clk_1", "parent": 40, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 13}}, {"id": 43, "type": "preproc_params", "text": "()", "parent": 40, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 15}}, {"id": 44, "type": "preproc_arg", "text": "ds1302_PORT |= (1<<clk);", "parent": 40, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 40}}, {"id": 45, "type": "preproc_function_def", "text": "#define clk_0() ds1302_PORT &= ~ (1<<clk);\n", "parent": 0, "children": [46, 47, 48, 49], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 47, "type": "identifier", "text": "clk_0", "parent": 45, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 13}}, {"id": 48, "type": "preproc_params", "text": "()", "parent": 45, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 15}}, {"id": 49, "type": "preproc_arg", "text": "ds1302_PORT &= ~ (1<<clk);", "parent": 45, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 42}}, {"id": 50, "type": "preproc_function_def", "text": "#define io_1() \tds1302_PORT |= (1<<io);\n", "parent": 0, "children": [51, 52, 53, 54], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 52, "type": "identifier", "text": "io_1", "parent": 50, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 53, "type": "preproc_params", "text": "()", "parent": 50, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 14}}, {"id": 54, "type": "preproc_arg", "text": "ds1302_PORT |= (1<<io);", "parent": 50, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 39}}, {"id": 55, "type": "preproc_function_def", "text": "#define io_0() \tds1302_PORT &= ~ (1<<io);\n", "parent": 0, "children": [56, 57, 58, 59], "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": "io_0", "parent": 55, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 12}}, {"id": 58, "type": "preproc_params", "text": "()", "parent": 55, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 14}}, {"id": 59, "type": "preproc_arg", "text": "ds1302_PORT &= ~ (1<<io);", "parent": 55, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 41}}, {"id": 60, "type": "preproc_def", "text": "#define AM\t\t10\n", "parent": 0, "children": [61, 62, 63], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 62, "type": "identifier", "text": "AM", "parent": 60, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 10}}, {"id": 63, "type": "preproc_arg", "text": "10", "parent": 60, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 14}}, {"id": 64, "type": "preproc_def", "text": "#define PM\t\t11\n", "parent": 0, "children": [65, 66, 67], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 66, "type": "identifier", "text": "PM", "parent": 64, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 10}}, {"id": 67, "type": "preproc_arg", "text": "11", "parent": 64, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 14}}, {"id": 68, "type": "preproc_def", "text": "#define H24\t\t12\n", "parent": 0, "children": [69, 70, 71], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 69, "type": "#define", "text": "#define", "parent": 68, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 70, "type": "identifier", "text": "H24", "parent": 68, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 11}}, {"id": 71, "type": "preproc_arg", "text": "12", "parent": 68, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 15}}, {"id": 72, "type": "preproc_def", "text": "#define READ\t15\n", "parent": 0, "children": [73, 74, 75], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 73, "type": "#define", "text": "#define", "parent": 72, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 74, "type": "identifier", "text": "READ", "parent": 72, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 12}}, {"id": 75, "type": "preproc_arg", "text": "15", "parent": 72, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 15}}, {"id": 76, "type": "preproc_def", "text": "#define WRITE\t16\n", "parent": 0, "children": [77, 78, 79], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 77, "type": "#define", "text": "#define", "parent": 76, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 78, "type": "identifier", "text": "WRITE", "parent": 76, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 13}}, {"id": 79, "type": "preproc_arg", "text": "16", "parent": 76, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 80, "type": "preproc_def", "text": "#define mon \t1\n", "parent": 0, "children": [81, 82, 83], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 81, "type": "#define", "text": "#define", "parent": 80, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 82, "type": "identifier", "text": "mon", "parent": 80, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 11}}, {"id": 83, "type": "preproc_arg", "text": "1", "parent": 80, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 84, "type": "preproc_def", "text": "#define tue \t2\n", "parent": 0, "children": [85, 86, 87], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 85, "type": "#define", "text": "#define", "parent": 84, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 86, "type": "identifier", "text": "tue", "parent": 84, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 11}}, {"id": 87, "type": "preproc_arg", "text": "2", "parent": 84, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 88, "type": "preproc_def", "text": "#define wed \t3\n", "parent": 0, "children": [89, 90, 91], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 89, "type": "#define", "text": "#define", "parent": 88, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 90, "type": "identifier", "text": "wed", "parent": 88, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 11}}, {"id": 91, "type": "preproc_arg", "text": "3", "parent": 88, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 92, "type": "preproc_def", "text": "#define thu \t4\n", "parent": 0, "children": [93, 94, 95], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 93, "type": "#define", "text": "#define", "parent": 92, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 94, "type": "identifier", "text": "thu", "parent": 92, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 11}}, {"id": 95, "type": "preproc_arg", "text": "4", "parent": 92, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 96, "type": "preproc_def", "text": "#define fri \t5\n", "parent": 0, "children": [97, 98, 99], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 97, "type": "#define", "text": "#define", "parent": 96, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 98, "type": "identifier", "text": "fri", "parent": 96, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 11}}, {"id": 99, "type": "preproc_arg", "text": "5", "parent": 96, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 14}}, {"id": 100, "type": "preproc_def", "text": "#define sat \t6\n", "parent": 0, "children": [101, 102, 103], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 101, "type": "#define", "text": "#define", "parent": 100, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 102, "type": "identifier", "text": "sat", "parent": 100, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 11}}, {"id": 103, "type": "preproc_arg", "text": "6", "parent": 100, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 14}}, {"id": 104, "type": "preproc_def", "text": "#define sun \t7\n", "parent": 0, "children": [105, 106, 107], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 105, "type": "#define", "text": "#define", "parent": 104, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 106, "type": "identifier", "text": "sun", "parent": 104, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 11}}, {"id": 107, "type": "preproc_arg", "text": "7", "parent": 104, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 14}}, {"id": 108, "type": "preproc_def", "text": "#define sec_w \t0x80\n", "parent": 0, "children": [109, 110, 111], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 109, "type": "#define", "text": "#define", "parent": 108, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 110, "type": "identifier", "text": "sec_w", "parent": 108, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 13}}, {"id": 111, "type": "preproc_arg", "text": "0x80", "parent": 108, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 19}}, {"id": 112, "type": "preproc_def", "text": "#define sec_r \t0x81\n", "parent": 0, "children": [113, 114, 115], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 113, "type": "#define", "text": "#define", "parent": 112, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 114, "type": "identifier", "text": "sec_r", "parent": 112, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 13}}, {"id": 115, "type": "preproc_arg", "text": "0x81", "parent": 112, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 19}}, {"id": 116, "type": "preproc_def", "text": "#define min_w \t0x82\n", "parent": 0, "children": [117, 118, 119], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 117, "type": "#define", "text": "#define", "parent": 116, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 118, "type": "identifier", "text": "min_w", "parent": 116, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 13}}, {"id": 119, "type": "preproc_arg", "text": "0x82", "parent": 116, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 19}}, {"id": 120, "type": "preproc_def", "text": "#define min_r \t0x83\n", "parent": 0, "children": [121, 122, 123], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 121, "type": "#define", "text": "#define", "parent": 120, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 122, "type": "identifier", "text": "min_r", "parent": 120, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 13}}, {"id": 123, "type": "preproc_arg", "text": "0x83", "parent": 120, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 19}}, {"id": 124, "type": "preproc_def", "text": "#define hour_w \t0x84\n", "parent": 0, "children": [125, 126, 127], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 125, "type": "#define", "text": "#define", "parent": 124, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 126, "type": "identifier", "text": "hour_w", "parent": 124, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 14}}, {"id": 127, "type": "preproc_arg", "text": "0x84", "parent": 124, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 20}}, {"id": 128, "type": "preproc_def", "text": "#define hour_r \t0x85\n", "parent": 0, "children": [129, 130, 131], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 129, "type": "#define", "text": "#define", "parent": 128, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 130, "type": "identifier", "text": "hour_r", "parent": 128, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 131, "type": "preproc_arg", "text": "0x85", "parent": 128, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 20}}, {"id": 132, "type": "preproc_def", "text": "#define date_w \t0x86\n", "parent": 0, "children": [133, 134, 135], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 133, "type": "#define", "text": "#define", "parent": 132, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 134, "type": "identifier", "text": "date_w", "parent": 132, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 14}}, {"id": 135, "type": "preproc_arg", "text": "0x86", "parent": 132, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 20}}, {"id": 136, "type": "preproc_def", "text": "#define date_r \t0x87\n", "parent": 0, "children": [137, 138, 139], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 137, "type": "#define", "text": "#define", "parent": 136, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 138, "type": "identifier", "text": "date_r", "parent": 136, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 139, "type": "preproc_arg", "text": "0x87", "parent": 136, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 20}}, {"id": 140, "type": "preproc_def", "text": "#define month_w 0x88\n", "parent": 0, "children": [141, 142, 143], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 141, "type": "#define", "text": "#define", "parent": 140, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 142, "type": "identifier", "text": "month_w", "parent": 140, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 15}}, {"id": 143, "type": "preproc_arg", "text": "0x88", "parent": 140, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 20}}, {"id": 144, "type": "preproc_def", "text": "#define month_r 0x89\n", "parent": 0, "children": [145, 146, 147], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 145, "type": "#define", "text": "#define", "parent": 144, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 146, "type": "identifier", "text": "month_r", "parent": 144, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 15}}, {"id": 147, "type": "preproc_arg", "text": "0x89", "parent": 144, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 20}}, {"id": 148, "type": "preproc_def", "text": "#define day_w \t0x8a\n", "parent": 0, "children": [149, 150, 151], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 149, "type": "#define", "text": "#define", "parent": 148, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 150, "type": "identifier", "text": "day_w", "parent": 148, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 13}}, {"id": 151, "type": "preproc_arg", "text": "0x8a", "parent": 148, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 19}}, {"id": 152, "type": "preproc_def", "text": "#define day_r \t0x8b\n", "parent": 0, "children": [153, 154, 155], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 153, "type": "#define", "text": "#define", "parent": 152, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 154, "type": "identifier", "text": "day_r", "parent": 152, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 13}}, {"id": 155, "type": "preproc_arg", "text": "0x8b", "parent": 152, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 19}}, {"id": 156, "type": "preproc_def", "text": "#define year_w \t0x8c\n", "parent": 0, "children": [157, 158, 159], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 157, "type": "#define", "text": "#define", "parent": 156, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 158, "type": "identifier", "text": "year_w", "parent": 156, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 14}}, {"id": 159, "type": "preproc_arg", "text": "0x8c", "parent": 156, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 20}}, {"id": 160, "type": "preproc_def", "text": "#define year_r \t0x8d\n", "parent": 0, "children": [161, 162, 163], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 161, "type": "#define", "text": "#define", "parent": 160, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 162, "type": "identifier", "text": "year_r", "parent": 160, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 14}}, {"id": 163, "type": "preproc_arg", "text": "0x8d", "parent": 160, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 20}}, {"id": 164, "type": "preproc_def", "text": "#define SEC 20\n", "parent": 0, "children": [165, 166, 167], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 165, "type": "#define", "text": "#define", "parent": 164, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 166, "type": "identifier", "text": "SEC", "parent": 164, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 11}}, {"id": 167, "type": "preproc_arg", "text": "20", "parent": 164, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 14}}, {"id": 168, "type": "preproc_def", "text": "#define MIN 21\n", "parent": 0, "children": [169, 170, 171], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 169, "type": "#define", "text": "#define", "parent": 168, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 170, "type": "identifier", "text": "MIN", "parent": 168, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 11}}, {"id": 171, "type": "preproc_arg", "text": "21", "parent": 168, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 14}}, {"id": 172, "type": "preproc_def", "text": "#define HOUR 22\n", "parent": 0, "children": [173, 174, 175], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 173, "type": "#define", "text": "#define", "parent": 172, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 174, "type": "identifier", "text": "HOUR", "parent": 172, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 12}}, {"id": 175, "type": "preproc_arg", "text": "22", "parent": 172, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 15}}, {"id": 176, "type": "preproc_def", "text": "#define DAY 22\n", "parent": 0, "children": [177, 178, 179], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 177, "type": "#define", "text": "#define", "parent": 176, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 178, "type": "identifier", "text": "DAY", "parent": 176, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 11}}, {"id": 179, "type": "preproc_arg", "text": "22", "parent": 176, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 14}}, {"id": 180, "type": "preproc_def", "text": "#define DATE 23\n", "parent": 0, "children": [181, 182, 183], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 181, "type": "#define", "text": "#define", "parent": 180, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 182, "type": "identifier", "text": "DATE", "parent": 180, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 12}}, {"id": 183, "type": "preproc_arg", "text": "23", "parent": 180, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 15}}, {"id": 184, "type": "preproc_def", "text": "#define MONTH 24\n", "parent": 0, "children": [185, 186, 187], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 185, "type": "#define", "text": "#define", "parent": 184, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 186, "type": "identifier", "text": "MONTH", "parent": 184, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 13}}, {"id": 187, "type": "preproc_arg", "text": "24", "parent": 184, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 16}}, {"id": 188, "type": "preproc_def", "text": "#define YEAR 25\n", "parent": 0, "children": [189, 190, 191], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 189, "type": "#define", "text": "#define", "parent": 188, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 7}}, {"id": 190, "type": "identifier", "text": "YEAR", "parent": 188, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 12}}, {"id": 191, "type": "preproc_arg", "text": "25", "parent": 188, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 15}}, {"id": 192, "type": "preproc_def", "text": "#define w_protect 0x8e\n", "parent": 0, "children": [193, 194, 195], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 193, "type": "#define", "text": "#define", "parent": 192, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 194, "type": "identifier", "text": "w_protect", "parent": 192, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 17}}, {"id": 195, "type": "preproc_arg", "text": "0x8e", "parent": 192, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 22}}, {"id": 196, "type": "struct_specifier", "text": "struct rtc_time{\n\tchar second;\n\tchar minute;\n\tchar hour;\n\tchar day;\n\tchar date;\n\tchar month;\n\tchar year;\n\tchar hour_format;\n}", "parent": 0, "children": [197, 198], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 197, "type": "struct", "text": "struct", "parent": 196, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 198, "type": "type_identifier", "text": "rtc_time", "parent": 196, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 15}}, {"id": 199, "type": "field_declaration", "text": "char second;", "parent": 196, "children": [200, 201], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 13}}, {"id": 200, "type": "primitive_type", "text": "char", "parent": 199, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 5}}, {"id": 201, "type": "field_identifier", "text": "second", "parent": 199, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 12}}, {"id": 202, "type": "field_declaration", "text": "char minute;", "parent": 196, "children": [203, 204], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 13}}, {"id": 203, "type": "primitive_type", "text": "char", "parent": 202, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 5}}, {"id": 204, "type": "field_identifier", "text": "minute", "parent": 202, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 12}}, {"id": 205, "type": "field_declaration", "text": "char hour;", "parent": 196, "children": [206, 207], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 11}}, {"id": 206, "type": "primitive_type", "text": "char", "parent": 205, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 5}}, {"id": 207, "type": "field_identifier", "text": "hour", "parent": 205, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 10}}, {"id": 208, "type": "field_declaration", "text": "char day;", "parent": 196, "children": [209, 210], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 10}}, {"id": 209, "type": "primitive_type", "text": "char", "parent": 208, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 5}}, {"id": 210, "type": "field_identifier", "text": "day", "parent": 208, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 9}}, {"id": 211, "type": "field_declaration", "text": "char date;", "parent": 196, "children": [212, 213], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 11}}, {"id": 212, "type": "primitive_type", "text": "char", "parent": 211, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 5}}, {"id": 213, "type": "field_identifier", "text": "date", "parent": 211, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 10}}, {"id": 214, "type": "field_declaration", "text": "char month;", "parent": 196, "children": [215, 216], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 12}}, {"id": 215, "type": "primitive_type", "text": "char", "parent": 214, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 5}}, {"id": 216, "type": "field_identifier", "text": "month", "parent": 214, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 11}}, {"id": 217, "type": "field_declaration", "text": "char year;", "parent": 196, "children": [218, 219], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 11}}, {"id": 218, "type": "primitive_type", "text": "char", "parent": 217, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 5}}, {"id": 219, "type": "field_identifier", "text": "year", "parent": 217, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 10}}, {"id": 220, "type": "field_declaration", "text": "char hour_format;", "parent": 196, "children": [221, 222], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 18}}, {"id": 221, "type": "primitive_type", "text": "char", "parent": 220, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 5}}, {"id": 222, "type": "field_identifier", "text": "hour_format", "parent": 220, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 17}}, {"id": 223, "type": "declaration", "text": "void ds1302_update_time(struct rtc_time *, unsigned char);", "parent": 0, "children": [224, 225], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 58}}, {"id": 224, "type": "primitive_type", "text": "void", "parent": 223, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 4}}, {"id": 225, "type": "function_declarator", "text": "ds1302_update_time(struct rtc_time *, unsigned char)", "parent": 223, "children": [226, 227], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 57}}, {"id": 226, "type": "identifier", "text": "ds1302_update_time", "parent": 225, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 23}}, {"id": 227, "type": "parameter_list", "text": "(struct rtc_time *, unsigned char)", "parent": 225, "children": [228, 234], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 57}}, {"id": 228, "type": "parameter_declaration", "text": "struct rtc_time *", "parent": 227, "children": [229, 232], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 41}}, {"id": 229, "type": "struct_specifier", "text": "struct rtc_time", "parent": 228, "children": [230, 231], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 39}}, {"id": 230, "type": "struct", "text": "struct", "parent": 229, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 30}}, {"id": 231, "type": "type_identifier", "text": "rtc_time", "parent": 229, "children": [], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 39}}, {"id": 232, "type": "abstract_pointer_declarator", "text": "*", "parent": 228, "children": [233], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 41}}, {"id": 233, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 41}}, {"id": 234, "type": "parameter_declaration", "text": "unsigned char", "parent": 227, "children": [235], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 56}}, {"id": 235, "type": "sized_type_specifier", "text": "unsigned char", "parent": 234, "children": [236, 237], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 56}}, {"id": 236, "type": "unsigned", "text": "unsigned", "parent": 235, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 51}}, {"id": 237, "type": "primitive_type", "text": "char", "parent": 235, "children": [], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 56}}, {"id": 238, "type": "declaration", "text": "void ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte);", "parent": 0, "children": [239, 240], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 88}}, {"id": 239, "type": "primitive_type", "text": "void", "parent": 238, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 4}}, {"id": 240, "type": "function_declarator", "text": "ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte)", "parent": 238, "children": [241, 242], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 87}}, {"id": 241, "type": "identifier", "text": "ds1302_set_time", "parent": 240, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 20}}, {"id": 242, "type": "parameter_list", "text": "(struct rtc_time * time, unsigned char field, unsigned char w_byte)", "parent": 240, "children": [243, 250, 255], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 87}}, {"id": 243, "type": "parameter_declaration", "text": "struct rtc_time * time", "parent": 242, "children": [244, 247], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 43}}, {"id": 244, "type": "struct_specifier", "text": "struct rtc_time", "parent": 243, "children": [245, 246], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 36}}, {"id": 245, "type": "struct", "text": "struct", "parent": 244, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 27}}, {"id": 246, "type": "type_identifier", "text": "rtc_time", "parent": 244, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 36}}, {"id": 247, "type": "pointer_declarator", "text": "* time", "parent": 243, "children": [248, 249], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 43}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 38}}, {"id": 249, "type": "identifier", "text": "time", "parent": 247, "children": [], "start_point": {"row": 69, "column": 39}, "end_point": {"row": 69, "column": 43}}, {"id": 250, "type": "parameter_declaration", "text": "unsigned char field", "parent": 242, "children": [251, 254], "start_point": {"row": 69, "column": 45}, "end_point": {"row": 69, "column": 64}}, {"id": 251, "type": "sized_type_specifier", "text": "unsigned char", "parent": 250, "children": [252, 253], "start_point": {"row": 69, "column": 45}, "end_point": {"row": 69, "column": 58}}, {"id": 252, "type": "unsigned", "text": "unsigned", "parent": 251, "children": [], "start_point": {"row": 69, "column": 45}, "end_point": {"row": 69, "column": 53}}, {"id": 253, "type": "primitive_type", "text": "char", "parent": 251, "children": [], "start_point": {"row": 69, "column": 54}, "end_point": {"row": 69, "column": 58}}, {"id": 254, "type": "identifier", "text": "field", "parent": 250, "children": [], "start_point": {"row": 69, "column": 59}, "end_point": {"row": 69, "column": 64}}, {"id": 255, "type": "parameter_declaration", "text": "unsigned char w_byte", "parent": 242, "children": [256, 259], "start_point": {"row": 69, "column": 66}, "end_point": {"row": 69, "column": 86}}, {"id": 256, "type": "sized_type_specifier", "text": "unsigned char", "parent": 255, "children": [257, 258], "start_point": {"row": 69, "column": 66}, "end_point": {"row": 69, "column": 79}}, {"id": 257, "type": "unsigned", "text": "unsigned", "parent": 256, "children": [], "start_point": {"row": 69, "column": 66}, "end_point": {"row": 69, "column": 74}}, {"id": 258, "type": "primitive_type", "text": "char", "parent": 256, "children": [], "start_point": {"row": 69, "column": 75}, "end_point": {"row": 69, "column": 79}}, {"id": 259, "type": "identifier", "text": "w_byte", "parent": 255, "children": [], "start_point": {"row": 69, "column": 80}, "end_point": {"row": 69, "column": 86}}, {"id": 260, "type": "declaration", "text": "void ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char);", "parent": 0, "children": [261, 262], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 82}}, {"id": 261, "type": "primitive_type", "text": "void", "parent": 260, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 4}}, {"id": 262, "type": "function_declarator", "text": "ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char)", "parent": 260, "children": [263, 264], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 81}}, {"id": 263, "type": "identifier", "text": "ds1302_comms", "parent": 262, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 17}}, {"id": 264, "type": "parameter_list", "text": "(struct rtc_time *, unsigned char, unsigned char, unsigned char)", "parent": 262, "children": [265, 271, 275, 279], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 81}}, {"id": 265, "type": "parameter_declaration", "text": "struct rtc_time *", "parent": 264, "children": [266, 269], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 35}}, {"id": 266, "type": "struct_specifier", "text": "struct rtc_time", "parent": 265, "children": [267, 268], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 33}}, {"id": 267, "type": "struct", "text": "struct", "parent": 266, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 24}}, {"id": 268, "type": "type_identifier", "text": "rtc_time", "parent": 266, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 33}}, {"id": 269, "type": "abstract_pointer_declarator", "text": "*", "parent": 265, "children": [270], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 35}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 35}}, {"id": 271, "type": "parameter_declaration", "text": "unsigned char", "parent": 264, "children": [272], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 50}}, {"id": 272, "type": "sized_type_specifier", "text": "unsigned char", "parent": 271, "children": [273, 274], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 50}}, {"id": 273, "type": "unsigned", "text": "unsigned", "parent": 272, "children": [], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 45}}, {"id": 274, "type": "primitive_type", "text": "char", "parent": 272, "children": [], "start_point": {"row": 70, "column": 46}, "end_point": {"row": 70, "column": 50}}, {"id": 275, "type": "parameter_declaration", "text": "unsigned char", "parent": 264, "children": [276], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 65}}, {"id": 276, "type": "sized_type_specifier", "text": "unsigned char", "parent": 275, "children": [277, 278], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 65}}, {"id": 277, "type": "unsigned", "text": "unsigned", "parent": 276, "children": [], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 60}}, {"id": 278, "type": "primitive_type", "text": "char", "parent": 276, "children": [], "start_point": {"row": 70, "column": 61}, "end_point": {"row": 70, "column": 65}}, {"id": 279, "type": "parameter_declaration", "text": "unsigned char", "parent": 264, "children": [280], "start_point": {"row": 70, "column": 67}, "end_point": {"row": 70, "column": 80}}, {"id": 280, "type": "sized_type_specifier", "text": "unsigned char", "parent": 279, "children": [281, 282], "start_point": {"row": 70, "column": 67}, "end_point": {"row": 70, "column": 80}}, {"id": 281, "type": "unsigned", "text": "unsigned", "parent": 280, "children": [], "start_point": {"row": 70, "column": 67}, "end_point": {"row": 70, "column": 75}}, {"id": 282, "type": "primitive_type", "text": "char", "parent": 280, "children": [], "start_point": {"row": 70, "column": 76}, "end_point": {"row": 70, "column": 80}}, {"id": 283, "type": "declaration", "text": "void ds1302_update(struct rtc_time *);", "parent": 0, "children": [284, 285], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 38}}, {"id": 284, "type": "primitive_type", "text": "void", "parent": 283, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 4}}, {"id": 285, "type": "function_declarator", "text": "ds1302_update(struct rtc_time *)", "parent": 283, "children": [286, 287], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 37}}, {"id": 286, "type": "identifier", "text": "ds1302_update", "parent": 285, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 18}}, {"id": 287, "type": "parameter_list", "text": "(struct rtc_time *)", "parent": 285, "children": [288], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 37}}, {"id": 288, "type": "parameter_declaration", "text": "struct rtc_time *", "parent": 287, "children": [289, 292], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 36}}, {"id": 289, "type": "struct_specifier", "text": "struct rtc_time", "parent": 288, "children": [290, 291], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 34}}, {"id": 290, "type": "struct", "text": "struct", "parent": 289, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 25}}, {"id": 291, "type": "type_identifier", "text": "rtc_time", "parent": 289, "children": [], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 34}}, {"id": 292, "type": "abstract_pointer_declarator", "text": "*", "parent": 288, "children": [293], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 36}}, {"id": 293, "type": "*", "text": "*", "parent": 292, "children": [], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 36}}, {"id": 294, "type": "declaration", "text": "void ds1302_init (void);", "parent": 0, "children": [295, 296], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 24}}, {"id": 295, "type": "primitive_type", "text": "void", "parent": 294, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 4}}, {"id": 296, "type": "function_declarator", "text": "ds1302_init (void)", "parent": 294, "children": [297, 298], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 23}}, {"id": 297, "type": "identifier", "text": "ds1302_init", "parent": 296, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 16}}, {"id": 298, "type": "parameter_list", "text": "(void)", "parent": 296, "children": [299], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 23}}, {"id": 299, "type": "parameter_declaration", "text": "void", "parent": 298, "children": [300], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 22}}, {"id": 300, "type": "primitive_type", "text": "void", "parent": 299, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 22}}, {"id": 301, "type": "declaration", "text": "void ds1302_reset(void);", "parent": 0, "children": [302, 303], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 24}}, {"id": 302, "type": "primitive_type", "text": "void", "parent": 301, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 4}}, {"id": 303, "type": "function_declarator", "text": "ds1302_reset(void)", "parent": 301, "children": [304, 305], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 23}}, {"id": 304, "type": "identifier", "text": "ds1302_reset", "parent": 303, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 17}}, {"id": 305, "type": "parameter_list", "text": "(void)", "parent": 303, "children": [306], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 23}}, {"id": 306, "type": "parameter_declaration", "text": "void", "parent": 305, "children": [307], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 22}}, {"id": 307, "type": "primitive_type", "text": "void", "parent": 306, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 22}}, {"id": 308, "type": "declaration", "text": "unsigned char ds1302_read_byte(unsigned char);", "parent": 0, "children": [309, 312], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 46}}, {"id": 309, "type": "sized_type_specifier", "text": "unsigned char", "parent": 308, "children": [310, 311], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 13}}, {"id": 310, "type": "unsigned", "text": "unsigned", "parent": 309, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 8}}, {"id": 311, "type": "primitive_type", "text": "char", "parent": 309, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 13}}, {"id": 312, "type": "function_declarator", "text": "ds1302_read_byte(unsigned char)", "parent": 308, "children": [313, 314], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 45}}, {"id": 313, "type": "identifier", "text": "ds1302_read_byte", "parent": 312, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 30}}, {"id": 314, "type": "parameter_list", "text": "(unsigned char)", "parent": 312, "children": [315], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 45}}, {"id": 315, "type": "parameter_declaration", "text": "unsigned char", "parent": 314, "children": [316], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 44}}, {"id": 316, "type": "sized_type_specifier", "text": "unsigned char", "parent": 315, "children": [317, 318], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 44}}, {"id": 317, "type": "unsigned", "text": "unsigned", "parent": 316, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 39}}, {"id": 318, "type": "primitive_type", "text": "char", "parent": 316, "children": [], "start_point": {"row": 74, "column": 40}, "end_point": {"row": 74, "column": 44}}, {"id": 319, "type": "declaration", "text": "void ds1302_write_byte(unsigned char, unsigned char);", "parent": 0, "children": [320, 321], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 53}}, {"id": 320, "type": "primitive_type", "text": "void", "parent": 319, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 4}}, {"id": 321, "type": "function_declarator", "text": "ds1302_write_byte(unsigned char, unsigned char)", "parent": 319, "children": [322, 323], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 52}}, {"id": 322, "type": "identifier", "text": "ds1302_write_byte", "parent": 321, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 22}}, {"id": 323, "type": "parameter_list", "text": "(unsigned char, unsigned char)", "parent": 321, "children": [324, 328], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 52}}, {"id": 324, "type": "parameter_declaration", "text": "unsigned char", "parent": 323, "children": [325], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 36}}, {"id": 325, "type": "sized_type_specifier", "text": "unsigned char", "parent": 324, "children": [326, 327], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 36}}, {"id": 326, "type": "unsigned", "text": "unsigned", "parent": 325, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 31}}, {"id": 327, "type": "primitive_type", "text": "char", "parent": 325, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 36}}, {"id": 328, "type": "parameter_declaration", "text": "unsigned char", "parent": 323, "children": [329], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 51}}, {"id": 329, "type": "sized_type_specifier", "text": "unsigned char", "parent": 328, "children": [330, 331], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 51}}, {"id": 330, "type": "unsigned", "text": "unsigned", "parent": 329, "children": [], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 46}}, {"id": 331, "type": "primitive_type", "text": "char", "parent": 329, "children": [], "start_point": {"row": 75, "column": 47}, "end_point": {"row": 75, "column": 51}}, {"id": 332, "type": "declaration", "text": "void write(unsigned char);", "parent": 0, "children": [333, 334], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 26}}, {"id": 333, "type": "primitive_type", "text": "void", "parent": 332, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 4}}, {"id": 334, "type": "function_declarator", "text": "write(unsigned char)", "parent": 332, "children": [335, 336], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 25}}, {"id": 335, "type": "identifier", "text": "write", "parent": 334, "children": [], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 10}}, {"id": 336, "type": "parameter_list", "text": "(unsigned char)", "parent": 334, "children": [337], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 25}}, {"id": 337, "type": "parameter_declaration", "text": "unsigned char", "parent": 336, "children": [338], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 24}}, {"id": 338, "type": "sized_type_specifier", "text": "unsigned char", "parent": 337, "children": [339, 340], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 24}}, {"id": 339, "type": "unsigned", "text": "unsigned", "parent": 338, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 19}}, {"id": 340, "type": "primitive_type", "text": "char", "parent": 338, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 24}}, {"id": 341, "type": "declaration", "text": "unsigned char read(void);", "parent": 0, "children": [342, 345], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 25}}, {"id": 342, "type": "sized_type_specifier", "text": "unsigned char", "parent": 341, "children": [343, 344], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 13}}, {"id": 343, "type": "unsigned", "text": "unsigned", "parent": 342, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 8}}, {"id": 344, "type": "primitive_type", "text": "char", "parent": 342, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 13}}, {"id": 345, "type": "function_declarator", "text": "read(void)", "parent": 341, "children": [346, 347], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 24}}, {"id": 346, "type": "identifier", "text": "read", "parent": 345, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 18}}, {"id": 347, "type": "parameter_list", "text": "(void)", "parent": 345, "children": [348], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 24}}, {"id": 348, "type": "parameter_declaration", "text": "void", "parent": 347, "children": [349], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 23}}, {"id": 349, "type": "primitive_type", "text": "void", "parent": 348, "children": [], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 23}}, {"id": 350, "type": "declaration", "text": "void ds1302_write_byte(unsigned char,unsigned char);", "parent": 0, "children": [351, 352], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 52}}, {"id": 351, "type": "primitive_type", "text": "void", "parent": 350, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 4}}, {"id": 352, "type": "function_declarator", "text": "ds1302_write_byte(unsigned char,unsigned char)", "parent": 350, "children": [353, 354], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 51}}, {"id": 353, "type": "identifier", "text": "ds1302_write_byte", "parent": 352, "children": [], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 22}}, {"id": 354, "type": "parameter_list", "text": "(unsigned char,unsigned char)", "parent": 352, "children": [355, 359], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 51}}, {"id": 355, "type": "parameter_declaration", "text": "unsigned char", "parent": 354, "children": [356], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 36}}, {"id": 356, "type": "sized_type_specifier", "text": "unsigned char", "parent": 355, "children": [357, 358], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 36}}, {"id": 357, "type": "unsigned", "text": "unsigned", "parent": 356, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 31}}, {"id": 358, "type": "primitive_type", "text": "char", "parent": 356, "children": [], "start_point": {"row": 78, "column": 32}, "end_point": {"row": 78, "column": 36}}, {"id": 359, "type": "parameter_declaration", "text": "unsigned char", "parent": 354, "children": [360], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 50}}, {"id": 360, "type": "sized_type_specifier", "text": "unsigned char", "parent": 359, "children": [361, 362], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 50}}, {"id": 361, "type": "unsigned", "text": "unsigned", "parent": 360, "children": [], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 45}}, {"id": 362, "type": "primitive_type", "text": "char", "parent": 360, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 50}}, {"id": 363, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 6}}]}, "node_categories": {"declarations": {"functions": [30, 35, 40, 45, 50, 55, 225, 240, 262, 285, 296, 303, 312, 321, 334, 345, 352], "variables": [199, 202, 205, 208, 211, 214, 217, 220, 223, 228, 234, 238, 243, 250, 255, 260, 265, 271, 275, 279, 283, 288, 294, 299, 301, 306, 308, 315, 319, 324, 328, 332, 337, 341, 348, 350, 355, 359], "classes": [196, 197, 229, 230, 244, 245, 266, 267, 289, 290], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 16, 20, 24, 28, 32, 37, 42, 47, 52, 57, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, 158, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 201, 204, 207, 210, 213, 216, 219, 222, 226, 231, 235, 241, 246, 249, 251, 254, 256, 259, 263, 268, 272, 276, 280, 286, 291, 297, 304, 309, 313, 316, 322, 325, 329, 335, 338, 342, 346, 353, 356, 360, 363], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "#define rst_1() ds1302_PORT |= (1<<rst);\n"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "#define rst_0() ds1302_PORT &= ~ (1<<rst);\n"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "#define clk_1() ds1302_PORT |= (1<<clk);\n"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "#define clk_0() ds1302_PORT &= ~ (1<<clk);\n"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "#define io_1() \tds1302_PORT |= (1<<io);\n"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "#define io_0() \tds1302_PORT &= ~ (1<<io);\n"}, {"node_id": 225, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_update_time(struct rtc_time *, unsigned char)"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte)"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char)"}, {"node_id": 285, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_update(struct rtc_time *)"}, {"node_id": 296, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_init (void)"}, {"node_id": 303, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_reset(void)"}, {"node_id": 312, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_read_byte(unsigned char)"}, {"node_id": 321, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_write_byte(unsigned char, unsigned char)"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "write(unsigned char)"}, {"node_id": 345, "universal_type": "function", "name": "unknown", "text_snippet": "read(void)"}, {"node_id": 352, "universal_type": "function", "name": "unknown", "text_snippet": "ds1302_write_byte(unsigned char,unsigned char)"}], "class_declarations": [{"node_id": 196, "universal_type": "class", "name": "rtc_time{", "text_snippet": "struct rtc_time{\n\tchar second;\n\tchar minute;\n\tchar hour;\n\tchar day;\n\tchar date;\n\tchar month;\n\tchar y"}, {"node_id": 197, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 229, "universal_type": "class", "name": "rtc_time", "text_snippet": "struct rtc_time"}, {"node_id": 230, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 244, "universal_type": "class", "name": "rtc_time", "text_snippet": "struct rtc_time"}, {"node_id": 245, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 266, "universal_type": "class", "name": "rtc_time", "text_snippet": "struct rtc_time"}, {"node_id": 267, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 289, "universal_type": "class", "name": "rtc_time", "text_snippet": "struct rtc_time"}, {"node_id": 290, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef _RTC_H_\n#define _RTC_H_\n// ds1302 connection\n#define ds1302_PORT PORTB\n#define ds1302_DDR DDRB\n#define ds1302_PIN PINB\n#define rst 7\n#define clk 6\n#define io 0\n\n#define rst_1() ds1302_PORT |= (1<<rst);\n#define rst_0() ds1302_PORT &= ~ (1<<rst);\n#define clk_1() ds1302_PORT |= (1<<clk);\n#define clk_0() ds1302_PORT &= ~ (1<<clk);\n#define io_1() \tds1302_PORT |= (1<<io);\n#define io_0() \tds1302_PORT &= ~ (1<<io);\n\n#define AM\t\t10\n#define PM\t\t11\n#define H24\t\t12\n\n#define READ\t15\n#define WRITE\t16\n\n#define mon \t1\n#define tue \t2\n#define wed \t3\n#define thu \t4\n#define fri \t5\n#define sat \t6\n#define sun \t7\n\n#define sec_w \t0x80\n#define sec_r \t0x81\n#define min_w \t0x82\n#define min_r \t0x83\n#define hour_w \t0x84\n#define hour_r \t0x85\n#define date_w \t0x86\n#define date_r \t0x87\n#define month_w 0x88\n#define month_r 0x89\n#define day_w \t0x8a\n#define day_r \t0x8b\n#define year_w \t0x8c\n#define year_r \t0x8d\n\n#define SEC 20\n#define MIN 21\n#define HOUR 22\n#define DAY 22\n#define DATE 23\n#define MONTH 24\n#define YEAR 25\n\n#define w_protect 0x8e\n\nstruct rtc_time{\n\tchar second;\n\tchar minute;\n\tchar hour;\n\tchar day;\n\tchar date;\n\tchar month;\n\tchar year;\n\tchar hour_format;\n};\n\nvoid ds1302_update_time(struct rtc_time *, unsigned char);\nvoid ds1302_set_time(struct rtc_time * time, unsigned char field, unsigned char w_byte);\nvoid ds1302_comms(struct rtc_time *, unsigned char, unsigned char, unsigned char);\nvoid ds1302_update(struct rtc_time *);\nvoid ds1302_init (void); //ds1302 init\nvoid ds1302_reset(void);\t //ds1302_reset\nunsigned char ds1302_read_byte(unsigned char);\nvoid ds1302_write_byte(unsigned char, unsigned char);\nvoid write(unsigned char);\nunsigned char read(void);\nvoid ds1302_write_byte(unsigned char,unsigned char);\n\n#endif"}
80,437
c
/* * Copyright (C) 2017 <NAME> * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS 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 3 of the License, or * (at your option) any later version. * * GnuTLS 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 GnuTLS; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <gnutls/gnutls.h> #include <assert.h> #include "utils.h" /* Test for gnutls_certificate_set_x509_system_trust() */ static void tls_log_func(int level, const char *str) { fprintf(stderr, "<%d>| %s", level, str); } void doit(void) { gnutls_certificate_credentials_t x509_cred; int ret; gnutls_global_init(); gnutls_global_set_log_function(tls_log_func); if (debug) gnutls_global_set_log_level(6); assert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0); ret = gnutls_certificate_set_x509_system_trust(x509_cred); if (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) { exit(77); } else if (ret < 0) { fail("error loading system trust store: %s\n", gnutls_strerror(ret)); } else if (ret == 0) { fail("no certificates were found in system trust store!\n"); } gnutls_certificate_free_credentials(x509_cred); gnutls_global_deinit(); if (debug) success("success"); }
29.3
60
(translation_unit) "/*\n * Copyright (C) 2017 <NAME>\n *\n * Author: <NAME>\n *\n * This file is part of GnuTLS.\n *\n * GnuTLS is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * GnuTLS is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with GnuTLS; if not, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\n */\n\n#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <gnutls/gnutls.h>\n#include <assert.h>\n\n#include "utils.h"\n\n/* Test for gnutls_certificate_set_x509_system_trust()\n */\n\nstatic void tls_log_func(int level, const char *str)\n{\n fprintf(stderr, "<%d>| %s", level, str);\n}\n\n\nvoid doit(void)\n{\n gnutls_certificate_credentials_t x509_cred;\n int ret;\n\n gnutls_global_init();\n\n gnutls_global_set_log_function(tls_log_func);\n if (debug)\n gnutls_global_set_log_level(6);\n\n assert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0);\n\n ret = gnutls_certificate_set_x509_system_trust(x509_cred);\n if (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {\n exit(77);\n } else if (ret < 0) {\n fail("error loading system trust store: %s\n", gnutls_strerror(ret));\n } else if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }\n\n gnutls_certificate_free_credentials(x509_cred);\n\n gnutls_global_deinit();\n\n if (debug)\n success("success");\n}\n" (comment) "/*\n * Copyright (C) 2017 <NAME>\n *\n * Author: <NAME>\n *\n * This file is part of GnuTLS.\n *\n * GnuTLS is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * GnuTLS is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with GnuTLS; if not, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\n */" (preproc_ifdef) "#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_CONFIG_H" (preproc_include) "#include <config.h>\n" (#include) "#include" (system_lib_string) "<config.h>" (#endif) "#endif" (preproc_include) "#include <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 <gnutls/gnutls.h>\n" (#include) "#include" (system_lib_string) "<gnutls/gnutls.h>" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include "utils.h"\n" (#include) "#include" (string_literal) ""utils.h"" (") """ (string_content) "utils.h" (") """ (comment) "/* Test for gnutls_certificate_set_x509_system_trust()\n */" (function_definition) "static void tls_log_func(int level, const char *str)\n{\n fprintf(stderr, "<%d>| %s", level, str);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "tls_log_func(int level, const char *str)" (identifier) "tls_log_func" (parameter_list) "(int level, const char *str)" (() "(" (parameter_declaration) "int level" (primitive_type) "int" (identifier) "level" (,) "," (parameter_declaration) "const char *str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n fprintf(stderr, "<%d>| %s", level, str);\n}" ({) "{" (expression_statement) "fprintf(stderr, "<%d>| %s", level, str);" (call_expression) "fprintf(stderr, "<%d>| %s", level, str)" (identifier) "fprintf" (argument_list) "(stderr, "<%d>| %s", level, str)" (() "(" (identifier) "stderr" (,) "," (string_literal) ""<%d>| %s"" (") """ (string_content) "<%d>| %s" (") """ (,) "," (identifier) "level" (,) "," (identifier) "str" ()) ")" (;) ";" (}) "}" (function_definition) "void doit(void)\n{\n gnutls_certificate_credentials_t x509_cred;\n int ret;\n\n gnutls_global_init();\n\n gnutls_global_set_log_function(tls_log_func);\n if (debug)\n gnutls_global_set_log_level(6);\n\n assert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0);\n\n ret = gnutls_certificate_set_x509_system_trust(x509_cred);\n if (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {\n exit(77);\n } else if (ret < 0) {\n fail("error loading system trust store: %s\n", gnutls_strerror(ret));\n } else if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }\n\n gnutls_certificate_free_credentials(x509_cred);\n\n gnutls_global_deinit();\n\n if (debug)\n success("success");\n}" (primitive_type) "void" (function_declarator) "doit(void)" (identifier) "doit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n gnutls_certificate_credentials_t x509_cred;\n int ret;\n\n gnutls_global_init();\n\n gnutls_global_set_log_function(tls_log_func);\n if (debug)\n gnutls_global_set_log_level(6);\n\n assert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0);\n\n ret = gnutls_certificate_set_x509_system_trust(x509_cred);\n if (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {\n exit(77);\n } else if (ret < 0) {\n fail("error loading system trust store: %s\n", gnutls_strerror(ret));\n } else if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }\n\n gnutls_certificate_free_credentials(x509_cred);\n\n gnutls_global_deinit();\n\n if (debug)\n success("success");\n}" ({) "{" (declaration) "gnutls_certificate_credentials_t x509_cred;" (type_identifier) "gnutls_certificate_credentials_t" (identifier) "x509_cred" (;) ";" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (expression_statement) "gnutls_global_init();" (call_expression) "gnutls_global_init()" (identifier) "gnutls_global_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "gnutls_global_set_log_function(tls_log_func);" (call_expression) "gnutls_global_set_log_function(tls_log_func)" (identifier) "gnutls_global_set_log_function" (argument_list) "(tls_log_func)" (() "(" (identifier) "tls_log_func" ()) ")" (;) ";" (if_statement) "if (debug)\n gnutls_global_set_log_level(6);" (if) "if" (parenthesized_expression) "(debug)" (() "(" (identifier) "debug" ()) ")" (expression_statement) "gnutls_global_set_log_level(6);" (call_expression) "gnutls_global_set_log_level(6)" (identifier) "gnutls_global_set_log_level" (argument_list) "(6)" (() "(" (number_literal) "6" ()) ")" (;) ";" (expression_statement) "assert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0);" (call_expression) "assert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0)" (identifier) "assert" (argument_list) "(gnutls_certificate_allocate_credentials(&x509_cred) >= 0)" (() "(" (binary_expression) "gnutls_certificate_allocate_credentials(&x509_cred) >= 0" (call_expression) "gnutls_certificate_allocate_credentials(&x509_cred)" (identifier) "gnutls_certificate_allocate_credentials" (argument_list) "(&x509_cred)" (() "(" (pointer_expression) "&x509_cred" (&) "&" (identifier) "x509_cred" ()) ")" (>=) ">=" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "ret = gnutls_certificate_set_x509_system_trust(x509_cred);" (assignment_expression) "ret = gnutls_certificate_set_x509_system_trust(x509_cred)" (identifier) "ret" (=) "=" (call_expression) "gnutls_certificate_set_x509_system_trust(x509_cred)" (identifier) "gnutls_certificate_set_x509_system_trust" (argument_list) "(x509_cred)" (() "(" (identifier) "x509_cred" ()) ")" (;) ";" (if_statement) "if (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {\n exit(77);\n } else if (ret < 0) {\n fail("error loading system trust store: %s\n", gnutls_strerror(ret));\n } else if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }" (if) "if" (parenthesized_expression) "(ret == GNUTLS_E_UNIMPLEMENTED_FEATURE)" (() "(" (binary_expression) "ret == GNUTLS_E_UNIMPLEMENTED_FEATURE" (identifier) "ret" (==) "==" (identifier) "GNUTLS_E_UNIMPLEMENTED_FEATURE" ()) ")" (compound_statement) "{\n exit(77);\n }" ({) "{" (expression_statement) "exit(77);" (call_expression) "exit(77)" (identifier) "exit" (argument_list) "(77)" (() "(" (number_literal) "77" ()) ")" (;) ";" (}) "}" (else_clause) "else if (ret < 0) {\n fail("error loading system trust store: %s\n", gnutls_strerror(ret));\n } else if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }" (else) "else" (if_statement) "if (ret < 0) {\n fail("error loading system trust store: %s\n", gnutls_strerror(ret));\n } else if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }" (if) "if" (parenthesized_expression) "(ret < 0)" (() "(" (binary_expression) "ret < 0" (identifier) "ret" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n fail("error loading system trust store: %s\n", gnutls_strerror(ret));\n }" ({) "{" (expression_statement) "fail("error loading system trust store: %s\n", gnutls_strerror(ret));" (call_expression) "fail("error loading system trust store: %s\n", gnutls_strerror(ret))" (identifier) "fail" (argument_list) "("error loading system trust store: %s\n", gnutls_strerror(ret))" (() "(" (string_literal) ""error loading system trust store: %s\n"" (") """ (string_content) "error loading system trust store: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "gnutls_strerror(ret)" (identifier) "gnutls_strerror" (argument_list) "(ret)" (() "(" (identifier) "ret" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }" (else) "else" (if_statement) "if (ret == 0) {\n fail("no certificates were found in system trust store!\n");\n }" (if) "if" (parenthesized_expression) "(ret == 0)" (() "(" (binary_expression) "ret == 0" (identifier) "ret" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n fail("no certificates were found in system trust store!\n");\n }" ({) "{" (expression_statement) "fail("no certificates were found in system trust store!\n");" (call_expression) "fail("no certificates were found in system trust store!\n")" (identifier) "fail" (argument_list) "("no certificates were found in system trust store!\n")" (() "(" (string_literal) ""no certificates were found in system trust store!\n"" (") """ (string_content) "no certificates were found in system trust store!" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "gnutls_certificate_free_credentials(x509_cred);" (call_expression) "gnutls_certificate_free_credentials(x509_cred)" (identifier) "gnutls_certificate_free_credentials" (argument_list) "(x509_cred)" (() "(" (identifier) "x509_cred" ()) ")" (;) ";" (expression_statement) "gnutls_global_deinit();" (call_expression) "gnutls_global_deinit()" (identifier) "gnutls_global_deinit" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (debug)\n success("success");" (if) "if" (parenthesized_expression) "(debug)" (() "(" (identifier) "debug" ()) ")" (expression_statement) "success("success");" (call_expression) "success("success")" (identifier) "success" (argument_list) "("success")" (() "(" (string_literal) ""success"" (") """ (string_content) "success" (") """ ()) ")" (;) ";" (}) "}"
263
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 29.3, "nodes": 145, "errors": 0, "source_hash": "680bdbb27f4df85a28e5516c17bbe9e02e59eaece969d7421f46ec799845e909", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif", "parent": null, "children": [1, 2, 3, 6], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 1, "type": "#ifdef", "text": "#ifdef", "parent": 0, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 2, "type": "identifier", "text": "HAVE_CONFIG_H", "parent": 0, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include <config.h>\n", "parent": 0, "children": [4, 5], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<config.h>", "parent": 3, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 19}}, {"id": 6, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 7, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [8, 9], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 9, "type": "system_lib_string", "text": "<stdio.h>", "parent": 7, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 18}}, {"id": 10, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [11, 12], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 12, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 10, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 19}}, {"id": 13, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [14, 15], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 15, "type": "system_lib_string", "text": "<string.h>", "parent": 13, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 19}}, {"id": 16, "type": "preproc_include", "text": "#include <sys/types.h>\n", "parent": null, "children": [17, 18], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 18, "type": "system_lib_string", "text": "<sys/types.h>", "parent": 16, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 22}}, {"id": 19, "type": "preproc_include", "text": "#include <gnutls/gnutls.h>\n", "parent": null, "children": [20, 21], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 21, "type": "system_lib_string", "text": "<gnutls/gnutls.h>", "parent": 19, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 26}}, {"id": 22, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [23, 24], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 24, "type": "system_lib_string", "text": "<assert.h>", "parent": 22, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 19}}, {"id": 25, "type": "preproc_include", "text": "#include \"utils.h\"\n", "parent": null, "children": [26, 27], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 26, "type": "#include", "text": "#include", "parent": 25, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 27, "type": "string_literal", "text": "\"utils.h\"", "parent": 25, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 18}}, {"id": 28, "type": "function_definition", "text": "static void tls_log_func(int level, const char *str)\n{\n\tfprintf(stderr, \"<%d>| %s\", level, str);\n}", "parent": null, "children": [29, 30], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 11}}, {"id": 30, "type": "function_declarator", "text": "tls_log_func(int level, const char *str)", "parent": 28, "children": [31, 32], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 52}}, {"id": 31, "type": "identifier", "text": "tls_log_func", "parent": 30, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 24}}, {"id": 32, "type": "parameter_list", "text": "(int level, const char *str)", "parent": 30, "children": [33, 36], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 52}}, {"id": 33, "type": "parameter_declaration", "text": "int level", "parent": 32, "children": [34, 35], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 34}}, {"id": 34, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 28}}, {"id": 35, "type": "identifier", "text": "level", "parent": 33, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 34}}, {"id": 36, "type": "parameter_declaration", "text": "const char *str", "parent": 32, "children": [37, 38], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 51}}, {"id": 37, "type": "primitive_type", "text": "char", "parent": 36, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 46}}, {"id": 38, "type": "pointer_declarator", "text": "*str", "parent": 36, "children": [39, 40], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 51}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 48}}, {"id": 40, "type": "identifier", "text": "str", "parent": 38, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 51}}, {"id": 41, "type": "call_expression", "text": "fprintf(stderr, \"<%d>| %s\", level, str)", "parent": 28, "children": [42, 43], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 40}}, {"id": 42, "type": "identifier", "text": "fprintf", "parent": 41, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 8}}, {"id": 43, "type": "argument_list", "text": "(stderr, \"<%d>| %s\", level, str)", "parent": 41, "children": [44, 45, 46, 47], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 40}}, {"id": 44, "type": "identifier", "text": "stderr", "parent": 43, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 15}}, {"id": 45, "type": "string_literal", "text": "\"<%d>| %s\"", "parent": 43, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 27}}, {"id": 46, "type": "identifier", "text": "level", "parent": 43, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 34}}, {"id": 47, "type": "identifier", "text": "str", "parent": 43, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 39}}, {"id": 48, "type": "function_definition", "text": "void doit(void)\n{\n\tgnutls_certificate_credentials_t x509_cred;\n\tint ret;\n\n\tgnutls_global_init();\n\n\tgnutls_global_set_log_function(tls_log_func);\n\tif (debug)\n\t\tgnutls_global_set_log_level(6);\n\n\tassert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0);\n\n\tret = gnutls_certificate_set_x509_system_trust(x509_cred);\n\tif (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {\n\t\texit(77);\n\t} else if (ret < 0) {\n\t\tfail(\"error loading system trust store: %s\\n\", gnutls_strerror(ret));\n\t} else if (ret == 0) {\n\t\tfail(\"no certificates were found in system trust store!\\n\");\n\t}\n\n\tgnutls_certificate_free_credentials(x509_cred);\n\n\tgnutls_global_deinit();\n\n\tif (debug)\n\t\tsuccess(\"success\");\n}", "parent": null, "children": [49, 50], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 50, "type": "function_declarator", "text": "doit(void)", "parent": 48, "children": [51, 52], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 15}}, {"id": 51, "type": "identifier", "text": "doit", "parent": 50, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 9}}, {"id": 52, "type": "parameter_list", "text": "(void)", "parent": 50, "children": [53], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 15}}, {"id": 53, "type": "parameter_declaration", "text": "void", "parent": 52, "children": [54], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 14}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 14}}, {"id": 55, "type": "declaration", "text": "gnutls_certificate_credentials_t x509_cred;", "parent": 48, "children": [56, 57], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 44}}, {"id": 56, "type": "type_identifier", "text": "gnutls_certificate_credentials_t", "parent": 55, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 33}}, {"id": 57, "type": "identifier", "text": "x509_cred", "parent": 55, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 43}}, {"id": 58, "type": "declaration", "text": "int ret;", "parent": 48, "children": [59, 60], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 9}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 58, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 4}}, {"id": 60, "type": "identifier", "text": "ret", "parent": 58, "children": [], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 8}}, {"id": 61, "type": "call_expression", "text": "gnutls_global_init()", "parent": 48, "children": [62, 63], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 21}}, {"id": 62, "type": "identifier", "text": "gnutls_global_init", "parent": 61, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 19}}, {"id": 63, "type": "argument_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 21}}, {"id": 64, "type": "call_expression", "text": "gnutls_global_set_log_function(tls_log_func)", "parent": 48, "children": [65, 66], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 45}}, {"id": 65, "type": "identifier", "text": "gnutls_global_set_log_function", "parent": 64, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 31}}, {"id": 66, "type": "argument_list", "text": "(tls_log_func)", "parent": 64, "children": [67], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 45}}, {"id": 67, "type": "identifier", "text": "tls_log_func", "parent": 66, "children": [], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 44}}, {"id": 68, "type": "if_statement", "text": "if (debug)\n\t\tgnutls_global_set_log_level(6);", "parent": 48, "children": [69], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 53, "column": 33}}, {"id": 69, "type": "parenthesized_expression", "text": "(debug)", "parent": 68, "children": [70], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 11}}, {"id": 70, "type": "identifier", "text": "debug", "parent": 69, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 10}}, {"id": 71, "type": "call_expression", "text": "gnutls_global_set_log_level(6)", "parent": 68, "children": [72, 73], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 32}}, {"id": 72, "type": "identifier", "text": "gnutls_global_set_log_level", "parent": 71, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 29}}, {"id": 73, "type": "argument_list", "text": "(6)", "parent": 71, "children": [74], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 32}}, {"id": 74, "type": "number_literal", "text": "6", "parent": 73, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 31}}, {"id": 75, "type": "call_expression", "text": "assert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0)", "parent": 48, "children": [76, 77], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 65}}, {"id": 76, "type": "identifier", "text": "assert", "parent": 75, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 7}}, {"id": 77, "type": "argument_list", "text": "(gnutls_certificate_allocate_credentials(&x509_cred) >= 0)", "parent": 75, "children": [78], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 65}}, {"id": 78, "type": "binary_expression", "text": "gnutls_certificate_allocate_credentials(&x509_cred) >= 0", "parent": 77, "children": [79, 84, 85], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 64}}, {"id": 79, "type": "call_expression", "text": "gnutls_certificate_allocate_credentials(&x509_cred)", "parent": 78, "children": [80, 81], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 59}}, {"id": 80, "type": "identifier", "text": "gnutls_certificate_allocate_credentials", "parent": 79, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 47}}, {"id": 81, "type": "argument_list", "text": "(&x509_cred)", "parent": 79, "children": [82], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 59}}, {"id": 82, "type": "pointer_expression", "text": "&x509_cred", "parent": 81, "children": [83], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 58}}, {"id": 83, "type": "identifier", "text": "x509_cred", "parent": 82, "children": [], "start_point": {"row": 55, "column": 49}, "end_point": {"row": 55, "column": 58}}, {"id": 84, "type": ">=", "text": ">=", "parent": 78, "children": [], "start_point": {"row": 55, "column": 60}, "end_point": {"row": 55, "column": 62}}, {"id": 85, "type": "number_literal", "text": "0", "parent": 78, "children": [], "start_point": {"row": 55, "column": 63}, "end_point": {"row": 55, "column": 64}}, {"id": 86, "type": "assignment_expression", "text": "ret = gnutls_certificate_set_x509_system_trust(x509_cred)", "parent": 48, "children": [87, 88, 89], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 58}}, {"id": 87, "type": "identifier", "text": "ret", "parent": 86, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 88, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 6}}, {"id": 89, "type": "call_expression", "text": "gnutls_certificate_set_x509_system_trust(x509_cred)", "parent": 86, "children": [90, 91], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 58}}, {"id": 90, "type": "identifier", "text": "gnutls_certificate_set_x509_system_trust", "parent": 89, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 47}}, {"id": 91, "type": "argument_list", "text": "(x509_cred)", "parent": 89, "children": [92], "start_point": {"row": 57, "column": 47}, "end_point": {"row": 57, "column": 58}}, {"id": 92, "type": "identifier", "text": "x509_cred", "parent": 91, "children": [], "start_point": {"row": 57, "column": 48}, "end_point": {"row": 57, "column": 57}}, {"id": 93, "type": "if_statement", "text": "if (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {\n\t\texit(77);\n\t} else if (ret < 0) {\n\t\tfail(\"error loading system trust store: %s\\n\", gnutls_strerror(ret));\n\t} else if (ret == 0) {\n\t\tfail(\"no certificates were found in system trust store!\\n\");\n\t}", "parent": 48, "children": [94, 103], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 64, "column": 2}}, {"id": 94, "type": "parenthesized_expression", "text": "(ret == GNUTLS_E_UNIMPLEMENTED_FEATURE)", "parent": 93, "children": [95], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 43}}, {"id": 95, "type": "binary_expression", "text": "ret == GNUTLS_E_UNIMPLEMENTED_FEATURE", "parent": 94, "children": [96, 97, 98], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 42}}, {"id": 96, "type": "identifier", "text": "ret", "parent": 95, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 8}}, {"id": 97, "type": "==", "text": "==", "parent": 95, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 11}}, {"id": 98, "type": "identifier", "text": "GNUTLS_E_UNIMPLEMENTED_FEATURE", "parent": 95, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 42}}, {"id": 99, "type": "call_expression", "text": "exit(77)", "parent": 93, "children": [100, 101], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 10}}, {"id": 100, "type": "identifier", "text": "exit", "parent": 99, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 6}}, {"id": 101, "type": "argument_list", "text": "(77)", "parent": 99, "children": [102], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 10}}, {"id": 102, "type": "number_literal", "text": "77", "parent": 101, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 9}}, {"id": 103, "type": "else_clause", "text": "else if (ret < 0) {\n\t\tfail(\"error loading system trust store: %s\\n\", gnutls_strerror(ret));\n\t} else if (ret == 0) {\n\t\tfail(\"no certificates were found in system trust store!\\n\");\n\t}", "parent": 93, "children": [104], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 64, "column": 2}}, {"id": 104, "type": "if_statement", "text": "if (ret < 0) {\n\t\tfail(\"error loading system trust store: %s\\n\", gnutls_strerror(ret));\n\t} else if (ret == 0) {\n\t\tfail(\"no certificates were found in system trust store!\\n\");\n\t}", "parent": 103, "children": [105, 119], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 64, "column": 2}}, {"id": 105, "type": "parenthesized_expression", "text": "(ret < 0)", "parent": 104, "children": [106], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 20}}, {"id": 106, "type": "binary_expression", "text": "ret < 0", "parent": 105, "children": [107, 108, 109], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 19}}, {"id": 107, "type": "identifier", "text": "ret", "parent": 106, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 15}}, {"id": 108, "type": "<", "text": "<", "parent": 106, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 17}}, {"id": 109, "type": "number_literal", "text": "0", "parent": 106, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 19}}, {"id": 110, "type": "call_expression", "text": "fail(\"error loading system trust store: %s\\n\", gnutls_strerror(ret))", "parent": 104, "children": [111, 112], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 70}}, {"id": 111, "type": "identifier", "text": "fail", "parent": 110, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 112, "type": "argument_list", "text": "(\"error loading system trust store: %s\\n\", gnutls_strerror(ret))", "parent": 110, "children": [113, 115], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 70}}, {"id": 113, "type": "string_literal", "text": "\"error loading system trust store: %s\\n\"", "parent": 112, "children": [114], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 47}}, {"id": 114, "type": "escape_sequence", "text": "\\n", "parent": 113, "children": [], "start_point": {"row": 61, "column": 44}, "end_point": {"row": 61, "column": 46}}, {"id": 115, "type": "call_expression", "text": "gnutls_strerror(ret)", "parent": 112, "children": [116, 117], "start_point": {"row": 61, "column": 49}, "end_point": {"row": 61, "column": 69}}, {"id": 116, "type": "identifier", "text": "gnutls_strerror", "parent": 115, "children": [], "start_point": {"row": 61, "column": 49}, "end_point": {"row": 61, "column": 64}}, {"id": 117, "type": "argument_list", "text": "(ret)", "parent": 115, "children": [118], "start_point": {"row": 61, "column": 64}, "end_point": {"row": 61, "column": 69}}, {"id": 118, "type": "identifier", "text": "ret", "parent": 117, "children": [], "start_point": {"row": 61, "column": 65}, "end_point": {"row": 61, "column": 68}}, {"id": 119, "type": "else_clause", "text": "else if (ret == 0) {\n\t\tfail(\"no certificates were found in system trust store!\\n\");\n\t}", "parent": 104, "children": [120], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 64, "column": 2}}, {"id": 120, "type": "if_statement", "text": "if (ret == 0) {\n\t\tfail(\"no certificates were found in system trust store!\\n\");\n\t}", "parent": 119, "children": [121], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 64, "column": 2}}, {"id": 121, "type": "parenthesized_expression", "text": "(ret == 0)", "parent": 120, "children": [122], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 21}}, {"id": 122, "type": "binary_expression", "text": "ret == 0", "parent": 121, "children": [123, 124, 125], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 20}}, {"id": 123, "type": "identifier", "text": "ret", "parent": 122, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 15}}, {"id": 124, "type": "==", "text": "==", "parent": 122, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 18}}, {"id": 125, "type": "number_literal", "text": "0", "parent": 122, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 20}}, {"id": 126, "type": "call_expression", "text": "fail(\"no certificates were found in system trust store!\\n\")", "parent": 120, "children": [127, 128], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 61}}, {"id": 127, "type": "identifier", "text": "fail", "parent": 126, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 6}}, {"id": 128, "type": "argument_list", "text": "(\"no certificates were found in system trust store!\\n\")", "parent": 126, "children": [129], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 61}}, {"id": 129, "type": "string_literal", "text": "\"no certificates were found in system trust store!\\n\"", "parent": 128, "children": [130], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 60}}, {"id": 130, "type": "escape_sequence", "text": "\\n", "parent": 129, "children": [], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 59}}, {"id": 131, "type": "call_expression", "text": "gnutls_certificate_free_credentials(x509_cred)", "parent": 48, "children": [132, 133], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 47}}, {"id": 132, "type": "identifier", "text": "gnutls_certificate_free_credentials", "parent": 131, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 36}}, {"id": 133, "type": "argument_list", "text": "(x509_cred)", "parent": 131, "children": [134], "start_point": {"row": 66, "column": 36}, "end_point": {"row": 66, "column": 47}}, {"id": 134, "type": "identifier", "text": "x509_cred", "parent": 133, "children": [], "start_point": {"row": 66, "column": 37}, "end_point": {"row": 66, "column": 46}}, {"id": 135, "type": "call_expression", "text": "gnutls_global_deinit()", "parent": 48, "children": [136, 137], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 23}}, {"id": 136, "type": "identifier", "text": "gnutls_global_deinit", "parent": 135, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 21}}, {"id": 137, "type": "argument_list", "text": "()", "parent": 135, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 23}}, {"id": 138, "type": "if_statement", "text": "if (debug)\n\t\tsuccess(\"success\");", "parent": 48, "children": [139], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 71, "column": 21}}, {"id": 139, "type": "parenthesized_expression", "text": "(debug)", "parent": 138, "children": [140], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 11}}, {"id": 140, "type": "identifier", "text": "debug", "parent": 139, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 10}}, {"id": 141, "type": "call_expression", "text": "success(\"success\")", "parent": 138, "children": [142, 143], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 20}}, {"id": 142, "type": "identifier", "text": "success", "parent": 141, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 9}}, {"id": 143, "type": "argument_list", "text": "(\"success\")", "parent": 141, "children": [144], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 20}}, {"id": 144, "type": "string_literal", "text": "\"success\"", "parent": 143, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 19}}]}, "node_categories": {"declarations": {"functions": [28, 30, 48, 50], "variables": [33, 36, 53, 55, 58], "classes": [], "imports": [3, 4, 7, 8, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26], "modules": [], "enums": []}, "statements": {"expressions": [41, 61, 64, 69, 71, 75, 78, 79, 82, 89, 94, 95, 99, 105, 106, 110, 115, 121, 122, 126, 131, 135, 139, 141], "assignments": [86], "loops": [], "conditionals": [0, 1, 2, 6, 31, 35, 40, 42, 44, 46, 47, 51, 56, 57, 60, 62, 65, 67, 68, 70, 72, 76, 80, 83, 87, 90, 92, 93, 96, 98, 100, 104, 107, 111, 116, 118, 120, 123, 127, 132, 134, 136, 138, 140, 142], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [5, 9, 12, 15, 18, 21, 24, 27, 45, 74, 85, 102, 109, 113, 125, 129, 144], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "tls_log_func", "text_snippet": "static void tls_log_func(int level, const char *str)\n{\n\tfprintf(stderr, \"<%d>| %s\", level, str);\n}"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "tls_log_func(int level, const char *str)"}, {"node_id": 48, "universal_type": "function", "name": "doit", "text_snippet": "void doit(void)\n{\n\tgnutls_certificate_credentials_t x509_cred;\n\tint ret;\n\n\tgnutls_global_init();\n\n\tg"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "doit(void)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <config.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 7, "text": "#include <stdio.h>\n"}, {"node_id": 8, "text": "#include"}, {"node_id": 10, "text": "#include <stdlib.h>\n"}, {"node_id": 11, "text": "#include"}, {"node_id": 13, "text": "#include <string.h>\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 16, "text": "#include <sys/types.h>\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 19, "text": "#include <gnutls/gnutls.h>\n"}, {"node_id": 20, "text": "#include"}, {"node_id": 22, "text": "#include <assert.h>\n"}, {"node_id": 23, "text": "#include"}, {"node_id": 25, "text": "#include \"utils.h\"\n"}, {"node_id": 26, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (C) 2017 <NAME>\n *\n * Author: <NAME>\n *\n * This file is part of GnuTLS.\n *\n * GnuTLS is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * GnuTLS is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with GnuTLS; if not, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\n */\n\n#ifdef HAVE_CONFIG_H\n#include <config.h>\n#endif\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/types.h>\n#include <gnutls/gnutls.h>\n#include <assert.h>\n\n#include \"utils.h\"\n\n/* Test for gnutls_certificate_set_x509_system_trust()\n */\n\nstatic void tls_log_func(int level, const char *str)\n{\n\tfprintf(stderr, \"<%d>| %s\", level, str);\n}\n\n\nvoid doit(void)\n{\n\tgnutls_certificate_credentials_t x509_cred;\n\tint ret;\n\n\tgnutls_global_init();\n\n\tgnutls_global_set_log_function(tls_log_func);\n\tif (debug)\n\t\tgnutls_global_set_log_level(6);\n\n\tassert(gnutls_certificate_allocate_credentials(&x509_cred) >= 0);\n\n\tret = gnutls_certificate_set_x509_system_trust(x509_cred);\n\tif (ret == GNUTLS_E_UNIMPLEMENTED_FEATURE) {\n\t\texit(77);\n\t} else if (ret < 0) {\n\t\tfail(\"error loading system trust store: %s\\n\", gnutls_strerror(ret));\n\t} else if (ret == 0) {\n\t\tfail(\"no certificates were found in system trust store!\\n\");\n\t}\n\n\tgnutls_certificate_free_credentials(x509_cred);\n\n\tgnutls_global_deinit();\n\n\tif (debug)\n\t\tsuccess(\"success\");\n}\n"}
80,438
c
//////////////////////////////////////////////////////////////////////////////// // // Binary heap using arrays // // Element type must have: default constructor, copy ctor, operator=, operator< // //////////////////////////////////////////////////////////////////////////////// // <EMAIL> 9/2003 #ifndef _Heap_h #define _Heap_h #include "DynArray.h" template <class T> class Heap { public: Heap(); Heap(const Heap& h); ~Heap(); Heap& operator=(const Heap& h); void Allocate(unsigned int size); inline void Clear() { m_Elements.Clear(); } T ExtractMinimum(); inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); } void Insert(const T& e); bool IsEmpty(); T* GetElements() { return m_Elements.GetRawArray(); } void UpdateElementAt(unsigned int i); private: DynArray<T> m_Elements; void PreserveHeapOrder(); }; // Get the first k sorted elements using heap sort template <class T> T* heapFirstK(T* array, unsigned int n, unsigned int k); // Get the k-th element using heap sort template <class T> T heapKthElement(T* array, unsigned int n, unsigned int k); // Get median using heap sort template <class T> T heapMedian(T* array, unsigned int n); #ifndef MU_MANUAL_INSTANTIATION #include "Heap.txx" #endif #endif
25.77
47
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n//\n// Binary heap using arrays\n//\n// Element type must have: default constructor, copy ctor, operator=, operator<\n//\n////////////////////////////////////////////////////////////////////////////////\n\n// <EMAIL> 9/2003\n\n#ifndef _Heap_h\n#define _Heap_h\n\n#include "DynArray.h"\n\ntemplate <class T>\nclass Heap\n{\n\npublic:\n\n Heap();\n Heap(const Heap& h);\n ~Heap();\n\n Heap& operator=(const Heap& h);\n\n void Allocate(unsigned int size);\n\n inline void Clear() { m_Elements.Clear(); }\n\n T ExtractMinimum();\n\n inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }\n\n void Insert(const T& e);\n\n bool IsEmpty();\n\n T* GetElements() { return m_Elements.GetRawArray(); }\n\n void UpdateElementAt(unsigned int i);\n\nprivate:\n\n DynArray<T> m_Elements;\n\n void PreserveHeapOrder();\n\n};\n\n// Get the first k sorted elements using heap sort\ntemplate <class T>\nT*\nheapFirstK(T* array, unsigned int n, unsigned int k);\n\n// Get the k-th element using heap sort\ntemplate <class T>\nT\nheapKthElement(T* array, unsigned int n, unsigned int k);\n\n// Get median using heap sort\ntemplate <class T>\nT\nheapMedian(T* array, unsigned int n);\n\n#ifndef MU_MANUAL_INSTANTIATION\n#include "Heap.txx"\n#endif\n\n#endif\n" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "//" (comment) "// Binary heap using arrays" (comment) "//" (comment) "// Element type must have: default constructor, copy ctor, operator=, operator<" (comment) "//" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// <EMAIL> 9/2003" (preproc_ifdef) "#ifndef _Heap_h\n#define _Heap_h\n\n#include "DynArray.h"\n\ntemplate <class T>\nclass Heap\n{\n\npublic:\n\n Heap();\n Heap(const Heap& h);\n ~Heap();\n\n Heap& operator=(const Heap& h);\n\n void Allocate(unsigned int size);\n\n inline void Clear() { m_Elements.Clear(); }\n\n T ExtractMinimum();\n\n inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }\n\n void Insert(const T& e);\n\n bool IsEmpty();\n\n T* GetElements() { return m_Elements.GetRawArray(); }\n\n void UpdateElementAt(unsigned int i);\n\nprivate:\n\n DynArray<T> m_Elements;\n\n void PreserveHeapOrder();\n\n};\n\n// Get the first k sorted elements using heap sort\ntemplate <class T>\nT*\nheapFirstK(T* array, unsigned int n, unsigned int k);\n\n// Get the k-th element using heap sort\ntemplate <class T>\nT\nheapKthElement(T* array, unsigned int n, unsigned int k);\n\n// Get median using heap sort\ntemplate <class T>\nT\nheapMedian(T* array, unsigned int n);\n\n#ifndef MU_MANUAL_INSTANTIATION\n#include "Heap.txx"\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "_Heap_h" (preproc_def) "#define _Heap_h\n" (#define) "#define" (identifier) "_Heap_h" (preproc_include) "#include "DynArray.h"\n" (#include) "#include" (string_literal) ""DynArray.h"" (") """ (string_content) "DynArray.h" (") """ (ERROR) "template <class T>\nclass Heap" (binary_expression) "template <class T>\nclass" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "Heap" (compound_statement) "{\n\npublic:\n\n Heap();\n Heap(const Heap& h);\n ~Heap();\n\n Heap& operator=(const Heap& h);\n\n void Allocate(unsigned int size);\n\n inline void Clear() { m_Elements.Clear(); }\n\n T ExtractMinimum();\n\n inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }\n\n void Insert(const T& e);\n\n bool IsEmpty();\n\n T* GetElements() { return m_Elements.GetRawArray(); }\n\n void UpdateElementAt(unsigned int i);\n\nprivate:\n\n DynArray<T> m_Elements;\n\n void PreserveHeapOrder();\n\n}" ({) "{" (labeled_statement) "public:\n\n Heap();" (statement_identifier) "public" (:) ":" (expression_statement) "Heap();" (call_expression) "Heap()" (identifier) "Heap" (argument_list) "()" (() "(" ()) ")" (;) ";" (macro_type_specifier) "Heap(const Heap& h)" (identifier) "Heap" (() "(" (type_descriptor) "const Heap" (type_qualifier) "const" (const) "const" (type_identifier) "Heap" (ERROR) "& h" (&) "&" (identifier) "h" ()) ")" (;) ";" (expression_statement) "~Heap();" (unary_expression) "~Heap()" (~) "~" (call_expression) "Heap()" (identifier) "Heap" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "Heap& operator=(const Heap& h);" (binary_expression) "Heap& operator=(const Heap& h)" (identifier) "Heap" (&) "&" (assignment_expression) "operator=(const Heap& h)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const Heap& h)" (() "(" (ERROR) "const Heap" (type_descriptor) "const Heap" (type_qualifier) "const" (const) "const" (type_identifier) "Heap" (pointer_expression) "& h" (&) "&" (identifier) "h" ()) ")" (;) ";" (declaration) "void Allocate(unsigned int size);" (primitive_type) "void" (function_declarator) "Allocate(unsigned int size)" (identifier) "Allocate" (parameter_list) "(unsigned int size)" (() "(" (parameter_declaration) "unsigned int size" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "size" ()) ")" (;) ";" (function_definition) "inline void Clear() { m_Elements.Clear(); }" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "Clear()" (identifier) "Clear" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ m_Elements.Clear(); }" ({) "{" (expression_statement) "m_Elements.Clear();" (call_expression) "m_Elements.Clear()" (field_expression) "m_Elements.Clear" (identifier) "m_Elements" (.) "." (field_identifier) "Clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (declaration) "T ExtractMinimum();" (type_identifier) "T" (function_declarator) "ExtractMinimum()" (identifier) "ExtractMinimum" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }" (storage_class_specifier) "inline" (inline) "inline" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "GetNumberOfElements()" (identifier) "GetNumberOfElements" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return m_Elements.GetSize(); }" ({) "{" (return_statement) "return m_Elements.GetSize();" (return) "return" (call_expression) "m_Elements.GetSize()" (field_expression) "m_Elements.GetSize" (identifier) "m_Elements" (.) "." (field_identifier) "GetSize" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (declaration) "void Insert(const T& e);" (primitive_type) "void" (function_declarator) "Insert(const T& e)" (identifier) "Insert" (parameter_list) "(const T& e)" (() "(" (parameter_declaration) "const T& e" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "e" ()) ")" (;) ";" (declaration) "bool IsEmpty();" (primitive_type) "bool" (function_declarator) "IsEmpty()" (identifier) "IsEmpty" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "T* GetElements() { return m_Elements.GetRawArray(); }" (type_identifier) "T" (pointer_declarator) "* GetElements()" (*) "*" (function_declarator) "GetElements()" (identifier) "GetElements" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return m_Elements.GetRawArray(); }" ({) "{" (return_statement) "return m_Elements.GetRawArray();" (return) "return" (call_expression) "m_Elements.GetRawArray()" (field_expression) "m_Elements.GetRawArray" (identifier) "m_Elements" (.) "." (field_identifier) "GetRawArray" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (declaration) "void UpdateElementAt(unsigned int i);" (primitive_type) "void" (function_declarator) "UpdateElementAt(unsigned int i)" (identifier) "UpdateElementAt" (parameter_list) "(unsigned int i)" (() "(" (parameter_declaration) "unsigned int i" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "i" ()) ")" (;) ";" (labeled_statement) "private:\n\n DynArray<T> m_Elements;" (statement_identifier) "private" (:) ":" (expression_statement) "DynArray<T> m_Elements;" (binary_expression) "DynArray<T> m_Elements" (binary_expression) "DynArray<T" (identifier) "DynArray" (<) "<" (identifier) "T" (>) ">" (identifier) "m_Elements" (;) ";" (declaration) "void PreserveHeapOrder();" (primitive_type) "void" (function_declarator) "PreserveHeapOrder()" (identifier) "PreserveHeapOrder" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// Get the first k sorted elements using heap sort" (expression_statement) "template <class T>\nT*\nheapFirstK(T* array, unsigned int n, unsigned int k);" (binary_expression) "template <class T>\nT*\nheapFirstK(T* array, unsigned int n, unsigned int k)" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (binary_expression) "T*\nheapFirstK(T* array, unsigned int n, unsigned int k)" (identifier) "T" (*) "*" (call_expression) "heapFirstK(T* array, unsigned int n, unsigned int k)" (identifier) "heapFirstK" (argument_list) "(T* array, unsigned int n, unsigned int k)" (() "(" (binary_expression) "T* array" (identifier) "T" (*) "*" (identifier) "array" (,) "," (identifier) "unsigned" (ERROR) "int n" (identifier) "int" (identifier) "n" (,) "," (identifier) "unsigned" (ERROR) "int k" (identifier) "int" (identifier) "k" ()) ")" (;) ";" (comment) "// Get the k-th element using heap sort" (expression_statement) "template <class T>\nT\nheapKthElement(T* array, unsigned int n, unsigned int k);" (binary_expression) "template <class T>\nT\nheapKthElement(T* array, unsigned int n, unsigned int k)" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "T" (identifier) "T" (call_expression) "heapKthElement(T* array, unsigned int n, unsigned int k)" (identifier) "heapKthElement" (argument_list) "(T* array, unsigned int n, unsigned int k)" (() "(" (binary_expression) "T* array" (identifier) "T" (*) "*" (identifier) "array" (,) "," (identifier) "unsigned" (ERROR) "int n" (identifier) "int" (identifier) "n" (,) "," (identifier) "unsigned" (ERROR) "int k" (identifier) "int" (identifier) "k" ()) ")" (;) ";" (comment) "// Get median using heap sort" (expression_statement) "template <class T>\nT\nheapMedian(T* array, unsigned int n);" (binary_expression) "template <class T>\nT\nheapMedian(T* array, unsigned int n)" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "T" (identifier) "T" (call_expression) "heapMedian(T* array, unsigned int n)" (identifier) "heapMedian" (argument_list) "(T* array, unsigned int n)" (() "(" (binary_expression) "T* array" (identifier) "T" (*) "*" (identifier) "array" (,) "," (identifier) "unsigned" (ERROR) "int n" (identifier) "int" (identifier) "n" ()) ")" (;) ";" (preproc_ifdef) "#ifndef MU_MANUAL_INSTANTIATION\n#include "Heap.txx"\n#endif" (#ifndef) "#ifndef" (identifier) "MU_MANUAL_INSTANTIATION" (preproc_include) "#include "Heap.txx"\n" (#include) "#include" (string_literal) ""Heap.txx"" (") """ (string_content) "Heap.txx" (") """ (#endif) "#endif" (#endif) "#endif"
337
15
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 25.77, "nodes": 212, "errors": 0, "source_hash": "863a7af50f4ace72a79b84723001976b4e6ffcd832f6959441ecf753df344807", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _Heap_h\n#define _Heap_h\n\n#include \"DynArray.h\"\n\ntemplate <class T>\nclass Heap\n{\n\npublic:\n\n Heap();\n Heap(const Heap& h);\n ~Heap();\n\n Heap& operator=(const Heap& h);\n\n void Allocate(unsigned int size);\n\n inline void Clear() { m_Elements.Clear(); }\n\n T ExtractMinimum();\n\n inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }\n\n void Insert(const T& e);\n\n bool IsEmpty();\n\n T* GetElements() { return m_Elements.GetRawArray(); }\n\n void UpdateElementAt(unsigned int i);\n\nprivate:\n\n DynArray<T> m_Elements;\n\n void PreserveHeapOrder();\n\n};\n\n// Get the first k sorted elements using heap sort\ntemplate <class T>\nT*\nheapFirstK(T* array, unsigned int n, unsigned int k);\n\n// Get the k-th element using heap sort\ntemplate <class T>\nT\nheapKthElement(T* array, unsigned int n, unsigned int k);\n\n// Get median using heap sort\ntemplate <class T>\nT\nheapMedian(T* array, unsigned int n);\n\n#ifndef MU_MANUAL_INSTANTIATION\n#include \"Heap.txx\"\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 204, 211], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 71, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 2, "type": "identifier", "text": "_Heap_h", "parent": 0, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define _Heap_h\n", "parent": 0, "children": [4, 5], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 5, "type": "identifier", "text": "_Heap_h", "parent": 3, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 15}}, {"id": 6, "type": "preproc_include", "text": "#include \"DynArray.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": "string_literal", "text": "\"DynArray.h\"", "parent": 6, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 21}}, {"id": 9, "type": "ERROR", "text": "template <class T>\nclass Heap", "parent": 0, "children": [10, 17], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 10}}, {"id": 10, "type": "binary_expression", "text": "template <class T>\nclass", "parent": 9, "children": [11, 14, 16], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 5}}, {"id": 11, "type": "binary_expression", "text": "template <class", "parent": 10, "children": [12, 13], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 15}}, {"id": 12, "type": "identifier", "text": "template", "parent": 11, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 13, "type": "<", "text": "<", "parent": 11, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 14, "type": "ERROR", "text": "T", "parent": 10, "children": [15], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 15, "type": "identifier", "text": "T", "parent": 14, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 16, "type": ">", "text": ">", "parent": 10, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 18}}, {"id": 17, "type": "identifier", "text": "Heap", "parent": 9, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 10}}, {"id": 18, "type": "labeled_statement", "text": "public:\n\n Heap();", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 9}}, {"id": 19, "type": "call_expression", "text": "Heap()", "parent": 18, "children": [20, 21], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 8}}, {"id": 20, "type": "identifier", "text": "Heap", "parent": 19, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 21, "type": "argument_list", "text": "()", "parent": 19, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 8}}, {"id": 22, "type": "macro_type_specifier", "text": "Heap(const Heap& h)", "parent": 0, "children": [23, 24, 26], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 21}}, {"id": 23, "type": "identifier", "text": "Heap", "parent": 22, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 24, "type": "type_descriptor", "text": "const Heap", "parent": 22, "children": [25], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 17}}, {"id": 25, "type": "type_identifier", "text": "Heap", "parent": 24, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 17}}, {"id": 26, "type": "ERROR", "text": "& h", "parent": 22, "children": [27], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 20}}, {"id": 27, "type": "identifier", "text": "h", "parent": 26, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 28, "type": "unary_expression", "text": "~Heap()", "parent": 0, "children": [29, 30], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 9}}, {"id": 29, "type": "~", "text": "~", "parent": 28, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 3}}, {"id": 30, "type": "call_expression", "text": "Heap()", "parent": 28, "children": [31, 32], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 9}}, {"id": 31, "type": "identifier", "text": "Heap", "parent": 30, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 32, "type": "argument_list", "text": "()", "parent": 30, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 9}}, {"id": 33, "type": "binary_expression", "text": "Heap& operator=(const Heap& h)", "parent": 0, "children": [34, 35], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 32}}, {"id": 34, "type": "identifier", "text": "Heap", "parent": 33, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 35, "type": "assignment_expression", "text": "operator=(const Heap& h)", "parent": 33, "children": [36, 37, 38], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 32}}, {"id": 36, "type": "identifier", "text": "operator", "parent": 35, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 16}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 38, "type": "parenthesized_expression", "text": "(const Heap& h)", "parent": 35, "children": [39, 42], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 32}}, {"id": 39, "type": "ERROR", "text": "const Heap", "parent": 38, "children": [40], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 28}}, {"id": 40, "type": "type_descriptor", "text": "const Heap", "parent": 39, "children": [41], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 28}}, {"id": 41, "type": "type_identifier", "text": "Heap", "parent": 40, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 28}}, {"id": 42, "type": "pointer_expression", "text": "& h", "parent": 38, "children": [43], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 31}}, {"id": 43, "type": "identifier", "text": "h", "parent": 42, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 31}}, {"id": 44, "type": "declaration", "text": "void Allocate(unsigned int size);", "parent": 0, "children": [45, 46], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 35}}, {"id": 45, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 6}}, {"id": 46, "type": "function_declarator", "text": "Allocate(unsigned int size)", "parent": 44, "children": [47, 48], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 34}}, {"id": 47, "type": "identifier", "text": "Allocate", "parent": 46, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 15}}, {"id": 48, "type": "parameter_list", "text": "(unsigned int size)", "parent": 46, "children": [49], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 34}}, {"id": 49, "type": "parameter_declaration", "text": "unsigned int size", "parent": 48, "children": [50, 53], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 33}}, {"id": 50, "type": "sized_type_specifier", "text": "unsigned int", "parent": 49, "children": [51, 52], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 28}}, {"id": 51, "type": "unsigned", "text": "unsigned", "parent": 50, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 24}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 28}}, {"id": 53, "type": "identifier", "text": "size", "parent": 49, "children": [], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 33}}, {"id": 54, "type": "function_definition", "text": "inline void Clear() { m_Elements.Clear(); }", "parent": 0, "children": [55, 57, 58], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 45}}, {"id": 55, "type": "storage_class_specifier", "text": "inline", "parent": 54, "children": [56], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 8}}, {"id": 56, "type": "inline", "text": "inline", "parent": 55, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 8}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 13}}, {"id": 58, "type": "function_declarator", "text": "Clear()", "parent": 54, "children": [59, 60], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 21}}, {"id": 59, "type": "identifier", "text": "Clear", "parent": 58, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 19}}, {"id": 60, "type": "parameter_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 21}}, {"id": 61, "type": "call_expression", "text": "m_Elements.Clear()", "parent": 54, "children": [62, 65], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 42}}, {"id": 62, "type": "field_expression", "text": "m_Elements.Clear", "parent": 61, "children": [63, 64], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 40}}, {"id": 63, "type": "identifier", "text": "m_Elements", "parent": 62, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 34}}, {"id": 64, "type": "field_identifier", "text": "Clear", "parent": 62, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 40}}, {"id": 65, "type": "argument_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 30, "column": 40}, "end_point": {"row": 30, "column": 42}}, {"id": 66, "type": "declaration", "text": "T ExtractMinimum();", "parent": 0, "children": [67, 68], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 21}}, {"id": 67, "type": "type_identifier", "text": "T", "parent": 66, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 3}}, {"id": 68, "type": "function_declarator", "text": "ExtractMinimum()", "parent": 66, "children": [69, 70], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 20}}, {"id": 69, "type": "identifier", "text": "ExtractMinimum", "parent": 68, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 18}}, {"id": 70, "type": "parameter_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 20}}, {"id": 71, "type": "function_definition", "text": "inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }", "parent": 0, "children": [72, 74, 77], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 76}}, {"id": 72, "type": "storage_class_specifier", "text": "inline", "parent": 71, "children": [73], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 8}}, {"id": 73, "type": "inline", "text": "inline", "parent": 72, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 8}}, {"id": 74, "type": "sized_type_specifier", "text": "unsigned int", "parent": 71, "children": [75, 76], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 21}}, {"id": 75, "type": "unsigned", "text": "unsigned", "parent": 74, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 17}}, {"id": 76, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 21}}, {"id": 77, "type": "function_declarator", "text": "GetNumberOfElements()", "parent": 71, "children": [78, 79], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 43}}, {"id": 78, "type": "identifier", "text": "GetNumberOfElements", "parent": 77, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 41}}, {"id": 79, "type": "parameter_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 43}}, {"id": 80, "type": "return_statement", "text": "return m_Elements.GetSize();", "parent": 71, "children": [81], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 74}}, {"id": 81, "type": "call_expression", "text": "m_Elements.GetSize()", "parent": 80, "children": [82, 85], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 73}}, {"id": 82, "type": "field_expression", "text": "m_Elements.GetSize", "parent": 81, "children": [83, 84], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 71}}, {"id": 83, "type": "identifier", "text": "m_Elements", "parent": 82, "children": [], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 63}}, {"id": 84, "type": "field_identifier", "text": "GetSize", "parent": 82, "children": [], "start_point": {"row": 34, "column": 64}, "end_point": {"row": 34, "column": 71}}, {"id": 85, "type": "argument_list", "text": "()", "parent": 81, "children": [], "start_point": {"row": 34, "column": 71}, "end_point": {"row": 34, "column": 73}}, {"id": 86, "type": "declaration", "text": "void Insert(const T& e);", "parent": 0, "children": [87, 88], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 26}}, {"id": 87, "type": "primitive_type", "text": "void", "parent": 86, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 88, "type": "function_declarator", "text": "Insert(const T& e)", "parent": 86, "children": [89, 90], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 25}}, {"id": 89, "type": "identifier", "text": "Insert", "parent": 88, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 13}}, {"id": 90, "type": "parameter_list", "text": "(const T& e)", "parent": 88, "children": [91], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 25}}, {"id": 91, "type": "parameter_declaration", "text": "const T& e", "parent": 90, "children": [92, 93], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 24}}, {"id": 92, "type": "type_identifier", "text": "T", "parent": 91, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 21}}, {"id": 93, "type": "identifier", "text": "e", "parent": 91, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 24}}, {"id": 94, "type": "declaration", "text": "bool IsEmpty();", "parent": 0, "children": [95, 96], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 17}}, {"id": 95, "type": "primitive_type", "text": "bool", "parent": 94, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 6}}, {"id": 96, "type": "function_declarator", "text": "IsEmpty()", "parent": 94, "children": [97, 98], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 16}}, {"id": 97, "type": "identifier", "text": "IsEmpty", "parent": 96, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 14}}, {"id": 98, "type": "parameter_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 16}}, {"id": 99, "type": "function_definition", "text": "T* GetElements() { return m_Elements.GetRawArray(); }", "parent": 0, "children": [100, 101], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 55}}, {"id": 100, "type": "type_identifier", "text": "T", "parent": 99, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 3}}, {"id": 101, "type": "pointer_declarator", "text": "* GetElements()", "parent": 99, "children": [102, 103], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 18}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 4}}, {"id": 103, "type": "function_declarator", "text": "GetElements()", "parent": 101, "children": [104, 105], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 18}}, {"id": 104, "type": "identifier", "text": "GetElements", "parent": 103, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 16}}, {"id": 105, "type": "parameter_list", "text": "()", "parent": 103, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 18}}, {"id": 106, "type": "return_statement", "text": "return m_Elements.GetRawArray();", "parent": 99, "children": [107], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 53}}, {"id": 107, "type": "call_expression", "text": "m_Elements.GetRawArray()", "parent": 106, "children": [108, 111], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 52}}, {"id": 108, "type": "field_expression", "text": "m_Elements.GetRawArray", "parent": 107, "children": [109, 110], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 50}}, {"id": 109, "type": "identifier", "text": "m_Elements", "parent": 108, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 38}}, {"id": 110, "type": "field_identifier", "text": "GetRawArray", "parent": 108, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 50}}, {"id": 111, "type": "argument_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 52}}, {"id": 112, "type": "declaration", "text": "void UpdateElementAt(unsigned int i);", "parent": 0, "children": [113, 114], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 39}}, {"id": 113, "type": "primitive_type", "text": "void", "parent": 112, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 6}}, {"id": 114, "type": "function_declarator", "text": "UpdateElementAt(unsigned int i)", "parent": 112, "children": [115, 116], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 38}}, {"id": 115, "type": "identifier", "text": "UpdateElementAt", "parent": 114, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 22}}, {"id": 116, "type": "parameter_list", "text": "(unsigned int i)", "parent": 114, "children": [117], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 38}}, {"id": 117, "type": "parameter_declaration", "text": "unsigned int i", "parent": 116, "children": [118, 121], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 37}}, {"id": 118, "type": "sized_type_specifier", "text": "unsigned int", "parent": 117, "children": [119, 120], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 35}}, {"id": 119, "type": "unsigned", "text": "unsigned", "parent": 118, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 31}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 35}}, {"id": 121, "type": "identifier", "text": "i", "parent": 117, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 37}}, {"id": 122, "type": "labeled_statement", "text": "private:\n\n DynArray<T> m_Elements;", "parent": 0, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 46, "column": 25}}, {"id": 123, "type": "binary_expression", "text": "DynArray<T> m_Elements", "parent": 122, "children": [124, 128, 129], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 24}}, {"id": 124, "type": "binary_expression", "text": "DynArray<T", "parent": 123, "children": [125, 126, 127], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 12}}, {"id": 125, "type": "identifier", "text": "DynArray", "parent": 124, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 10}}, {"id": 126, "type": "<", "text": "<", "parent": 124, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 127, "type": "identifier", "text": "T", "parent": 124, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 12}}, {"id": 128, "type": ">", "text": ">", "parent": 123, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 129, "type": "identifier", "text": "m_Elements", "parent": 123, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 24}}, {"id": 130, "type": "declaration", "text": "void PreserveHeapOrder();", "parent": 0, "children": [131, 132], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 27}}, {"id": 131, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 132, "type": "function_declarator", "text": "PreserveHeapOrder()", "parent": 130, "children": [133, 134], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 26}}, {"id": 133, "type": "identifier", "text": "PreserveHeapOrder", "parent": 132, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 24}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 26}}, {"id": 135, "type": "binary_expression", "text": "template <class T>\nT*\nheapFirstK(T* array, unsigned int n, unsigned int k)", "parent": 0, "children": [136, 139, 141, 142], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 55, "column": 52}}, {"id": 136, "type": "binary_expression", "text": "template <class", "parent": 135, "children": [137, 138], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 15}}, {"id": 137, "type": "identifier", "text": "template", "parent": 136, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 8}}, {"id": 138, "type": "<", "text": "<", "parent": 136, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 139, "type": "ERROR", "text": "T", "parent": 135, "children": [140], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 17}}, {"id": 140, "type": "identifier", "text": "T", "parent": 139, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 17}}, {"id": 141, "type": ">", "text": ">", "parent": 135, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 142, "type": "binary_expression", "text": "T*\nheapFirstK(T* array, unsigned int n, unsigned int k)", "parent": 135, "children": [143, 144, 145], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 52}}, {"id": 143, "type": "identifier", "text": "T", "parent": 142, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 144, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 2}}, {"id": 145, "type": "call_expression", "text": "heapFirstK(T* array, unsigned int n, unsigned int k)", "parent": 142, "children": [146, 147], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 52}}, {"id": 146, "type": "identifier", "text": "heapFirstK", "parent": 145, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 10}}, {"id": 147, "type": "argument_list", "text": "(T* array, unsigned int n, unsigned int k)", "parent": 145, "children": [148, 152, 153, 156, 157], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 52}}, {"id": 148, "type": "binary_expression", "text": "T* array", "parent": 147, "children": [149, 150, 151], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 19}}, {"id": 149, "type": "identifier", "text": "T", "parent": 148, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 12}}, {"id": 150, "type": "*", "text": "*", "parent": 148, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 13}}, {"id": 151, "type": "identifier", "text": "array", "parent": 148, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 19}}, {"id": 152, "type": "identifier", "text": "unsigned", "parent": 147, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 29}}, {"id": 153, "type": "ERROR", "text": "int n", "parent": 147, "children": [154, 155], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 35}}, {"id": 154, "type": "identifier", "text": "int", "parent": 153, "children": [], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 33}}, {"id": 155, "type": "identifier", "text": "n", "parent": 153, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 35}}, {"id": 156, "type": "identifier", "text": "unsigned", "parent": 147, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 45}}, {"id": 157, "type": "ERROR", "text": "int k", "parent": 147, "children": [158, 159], "start_point": {"row": 55, "column": 46}, "end_point": {"row": 55, "column": 51}}, {"id": 158, "type": "identifier", "text": "int", "parent": 157, "children": [], "start_point": {"row": 55, "column": 46}, "end_point": {"row": 55, "column": 49}}, {"id": 159, "type": "identifier", "text": "k", "parent": 157, "children": [], "start_point": {"row": 55, "column": 50}, "end_point": {"row": 55, "column": 51}}, {"id": 160, "type": "binary_expression", "text": "template <class T>\nT\nheapKthElement(T* array, unsigned int n, unsigned int k)", "parent": 0, "children": [161, 164, 166, 167, 169], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 60, "column": 56}}, {"id": 161, "type": "binary_expression", "text": "template <class", "parent": 160, "children": [162, 163], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 15}}, {"id": 162, "type": "identifier", "text": "template", "parent": 161, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 8}}, {"id": 163, "type": "<", "text": "<", "parent": 161, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 164, "type": "ERROR", "text": "T", "parent": 160, "children": [165], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 17}}, {"id": 165, "type": "identifier", "text": "T", "parent": 164, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 17}}, {"id": 166, "type": ">", "text": ">", "parent": 160, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 18}}, {"id": 167, "type": "ERROR", "text": "T", "parent": 160, "children": [168], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 168, "type": "identifier", "text": "T", "parent": 167, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 169, "type": "call_expression", "text": "heapKthElement(T* array, unsigned int n, unsigned int k)", "parent": 160, "children": [170, 171], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 56}}, {"id": 170, "type": "identifier", "text": "heapKthElement", "parent": 169, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 14}}, {"id": 171, "type": "argument_list", "text": "(T* array, unsigned int n, unsigned int k)", "parent": 169, "children": [172, 176, 177, 180, 181], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 56}}, {"id": 172, "type": "binary_expression", "text": "T* array", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 23}}, {"id": 173, "type": "identifier", "text": "T", "parent": 172, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 16}}, {"id": 174, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 17}}, {"id": 175, "type": "identifier", "text": "array", "parent": 172, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 23}}, {"id": 176, "type": "identifier", "text": "unsigned", "parent": 171, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 33}}, {"id": 177, "type": "ERROR", "text": "int n", "parent": 171, "children": [178, 179], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 39}}, {"id": 178, "type": "identifier", "text": "int", "parent": 177, "children": [], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 37}}, {"id": 179, "type": "identifier", "text": "n", "parent": 177, "children": [], "start_point": {"row": 60, "column": 38}, "end_point": {"row": 60, "column": 39}}, {"id": 180, "type": "identifier", "text": "unsigned", "parent": 171, "children": [], "start_point": {"row": 60, "column": 41}, "end_point": {"row": 60, "column": 49}}, {"id": 181, "type": "ERROR", "text": "int k", "parent": 171, "children": [182, 183], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 55}}, {"id": 182, "type": "identifier", "text": "int", "parent": 181, "children": [], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 53}}, {"id": 183, "type": "identifier", "text": "k", "parent": 181, "children": [], "start_point": {"row": 60, "column": 54}, "end_point": {"row": 60, "column": 55}}, {"id": 184, "type": "binary_expression", "text": "template <class T>\nT\nheapMedian(T* array, unsigned int n)", "parent": 0, "children": [185, 188, 190, 191, 193], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 65, "column": 36}}, {"id": 185, "type": "binary_expression", "text": "template <class", "parent": 184, "children": [186, 187], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 15}}, {"id": 186, "type": "identifier", "text": "template", "parent": 185, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 8}}, {"id": 187, "type": "<", "text": "<", "parent": 185, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 10}}, {"id": 188, "type": "ERROR", "text": "T", "parent": 184, "children": [189], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 17}}, {"id": 189, "type": "identifier", "text": "T", "parent": 188, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 17}}, {"id": 190, "type": ">", "text": ">", "parent": 184, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 18}}, {"id": 191, "type": "ERROR", "text": "T", "parent": 184, "children": [192], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 192, "type": "identifier", "text": "T", "parent": 191, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 193, "type": "call_expression", "text": "heapMedian(T* array, unsigned int n)", "parent": 184, "children": [194, 195], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 36}}, {"id": 194, "type": "identifier", "text": "heapMedian", "parent": 193, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 10}}, {"id": 195, "type": "argument_list", "text": "(T* array, unsigned int n)", "parent": 193, "children": [196, 200, 201], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 36}}, {"id": 196, "type": "binary_expression", "text": "T* array", "parent": 195, "children": [197, 198, 199], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 19}}, {"id": 197, "type": "identifier", "text": "T", "parent": 196, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 12}}, {"id": 198, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 199, "type": "identifier", "text": "array", "parent": 196, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 19}}, {"id": 200, "type": "identifier", "text": "unsigned", "parent": 195, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 29}}, {"id": 201, "type": "ERROR", "text": "int n", "parent": 195, "children": [202, 203], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 35}}, {"id": 202, "type": "identifier", "text": "int", "parent": 201, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 33}}, {"id": 203, "type": "identifier", "text": "n", "parent": 201, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 35}}, {"id": 204, "type": "preproc_ifdef", "text": "#ifndef MU_MANUAL_INSTANTIATION\n#include \"Heap.txx\"\n#endif", "parent": 0, "children": [205, 206, 207, 210], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 69, "column": 6}}, {"id": 205, "type": "#ifndef", "text": "#ifndef", "parent": 204, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 206, "type": "identifier", "text": "MU_MANUAL_INSTANTIATION", "parent": 204, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 31}}, {"id": 207, "type": "preproc_include", "text": "#include \"Heap.txx\"\n", "parent": 204, "children": [208, 209], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 208, "type": "#include", "text": "#include", "parent": 207, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 8}}, {"id": 209, "type": "string_literal", "text": "\"Heap.txx\"", "parent": 207, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 19}}, {"id": 210, "type": "#endif", "text": "#endif", "parent": 204, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 6}}, {"id": 211, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 6}}]}, "node_categories": {"declarations": {"functions": [46, 54, 58, 68, 71, 77, 88, 96, 99, 103, 114, 132], "variables": [44, 49, 66, 86, 91, 94, 112, 117, 130], "classes": [55, 72], "imports": [6, 7, 207, 208], "modules": [], "enums": []}, "statements": {"expressions": [10, 11, 19, 28, 30, 33, 38, 42, 61, 62, 81, 82, 107, 108, 123, 124, 135, 136, 142, 145, 148, 160, 161, 169, 172, 184, 185, 193, 196], "assignments": [35], "loops": [], "conditionals": [0, 1, 2, 5, 12, 15, 17, 20, 22, 23, 25, 27, 31, 34, 36, 41, 43, 47, 50, 53, 59, 63, 64, 67, 69, 74, 78, 83, 84, 89, 92, 93, 97, 100, 104, 109, 110, 115, 118, 121, 125, 127, 129, 133, 137, 140, 143, 146, 149, 151, 152, 154, 155, 156, 158, 159, 162, 165, 168, 170, 173, 175, 176, 178, 179, 180, 182, 183, 186, 189, 192, 194, 197, 199, 200, 202, 203, 204, 205, 206, 210, 211], "returns": [80, 106], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 209], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 46, "universal_type": "function", "name": "size)", "text_snippet": "Allocate(unsigned int size)"}, {"node_id": 54, "universal_type": "function", "name": "Clear", "text_snippet": "inline void Clear() { m_Elements.Clear(); }"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "Clear()"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "ExtractMinimum()"}, {"node_id": 71, "universal_type": "function", "name": "GetNumberOfElements", "text_snippet": "inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "GetNumberOfElements()"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "Insert(const T& e)"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "IsEmpty()"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "T* GetElements() { return m_Elements.GetRawArray(); }"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "GetElements()"}, {"node_id": 114, "universal_type": "function", "name": "i)", "text_snippet": "UpdateElementAt(unsigned int i)"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "PreserveHeapOrder()"}], "class_declarations": [{"node_id": 55, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 72, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include \"DynArray.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 207, "text": "#include \"Heap.txx\"\n"}, {"node_id": 208, "text": "#include"}]}, "original_source_code": "\n////////////////////////////////////////////////////////////////////////////////\n//\n// Binary heap using arrays\n//\n// Element type must have: default constructor, copy ctor, operator=, operator<\n//\n////////////////////////////////////////////////////////////////////////////////\n\n// <EMAIL> 9/2003\n\n#ifndef _Heap_h\n#define _Heap_h\n\n#include \"DynArray.h\"\n\ntemplate <class T>\nclass Heap\n{\n\npublic:\n\n Heap();\n Heap(const Heap& h);\n ~Heap();\n\n Heap& operator=(const Heap& h);\n\n void Allocate(unsigned int size);\n\n inline void Clear() { m_Elements.Clear(); }\n\n T ExtractMinimum();\n\n inline unsigned int GetNumberOfElements() { return m_Elements.GetSize(); }\n\n void Insert(const T& e);\n\n bool IsEmpty();\n\n T* GetElements() { return m_Elements.GetRawArray(); }\n\n void UpdateElementAt(unsigned int i);\n\nprivate:\n\n DynArray<T> m_Elements;\n\n void PreserveHeapOrder();\n\n};\n\n// Get the first k sorted elements using heap sort\ntemplate <class T>\nT*\nheapFirstK(T* array, unsigned int n, unsigned int k);\n\n// Get the k-th element using heap sort\ntemplate <class T>\nT\nheapKthElement(T* array, unsigned int n, unsigned int k);\n\n// Get median using heap sort\ntemplate <class T>\nT\nheapMedian(T* array, unsigned int n);\n\n#ifndef MU_MANUAL_INSTANTIATION\n#include \"Heap.txx\"\n#endif\n\n#endif\n"}
80,439
c
/* Boolector: Satisfiability Modulo Theories (SMT) solver. * * Copyright (C) 2007-2021 by the authors listed in the AUTHORS file. * * This file is part of Boolector. * See COPYING for more information on using this software. */ #ifndef BTORASS_H_INCLUDED #define BTORASS_H_INCLUDED #include <stdbool.h> #include <stdint.h> #include "utils/btormem.h" /*------------------------------------------------------------------------*/ typedef struct BtorBVAss BtorBVAss; typedef struct BtorBVAssList BtorBVAssList; struct BtorBVAss { #ifndef NDEBUG const char *cloned_assignment; /* needed for shadow clone only */ #endif BtorBVAss *prev; BtorBVAss *next; }; struct BtorBVAssList { BtorMemMgr *mm; uint32_t count; BtorBVAss *first; BtorBVAss *last; }; /* Create new bv assignment list. */ BtorBVAssList *btor_ass_new_bv_list (BtorMemMgr *mm); /* Clone bv assignment list. */ BtorBVAssList *btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list); /* Delete bv assignment list. */ void btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup); /* Get BtorBVAss bucket reference from bv assignment string. */ BtorBVAss *btor_ass_get_bv (const char *ass); /* Get bv assignment string from BtorBVAss bucket. */ const char *btor_ass_get_bv_str (BtorBVAss *ass); /* Create new bv assignment and add it to the list. */ BtorBVAss *btor_ass_new_bv (BtorBVAssList *list, char *ass); /* Release bv assignment and remove it from the list. */ void btor_ass_release_bv (BtorBVAssList *list, const char *ass); /*------------------------------------------------------------------------*/ typedef struct BtorFunAss BtorFunAss; typedef struct BtorFunAssList BtorFunAssList; struct BtorFunAss { char **cloned_indices; char **cloned_values; uint32_t size; BtorFunAss *prev; BtorFunAss *next; }; struct BtorFunAssList { BtorMemMgr *mm; uint32_t count; BtorFunAss *first; BtorFunAss *last; }; /* Create new array assignment list. */ BtorFunAssList *btor_ass_new_fun_list (BtorMemMgr *mm); /* Clone array assignment list. */ BtorFunAssList *btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list); /* Delete array assignment list. */ void btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup); /* Get BtorFunAss bucket reference from indices reference. */ BtorFunAss *btor_ass_get_fun (const char **indices, const char **values, uint32_t size); /* Get indices and values references from BtorFunAss bucket. */ void btor_ass_get_fun_indices_values (BtorFunAss *ass, char ***indices, char ***values, uint32_t size); /* Create new array assignment and add it to the list. */ BtorFunAss *btor_ass_new_fun (BtorFunAssList *list, char **indices, char **values, uint32_t size); /* Release array assignment and remove it from the list. */ void btor_ass_release_fun (BtorFunAssList *list, char **indices, char **values, uint32_t size); #endif
35.61
88
(translation_unit) "/* Boolector: Satisfiability Modulo Theories (SMT) solver.\n *\n * Copyright (C) 2007-2021 by the authors listed in the AUTHORS file.\n *\n * This file is part of Boolector.\n * See COPYING for more information on using this software.\n */\n\n#ifndef BTORASS_H_INCLUDED\n#define BTORASS_H_INCLUDED\n\n#include <stdbool.h>\n#include <stdint.h>\n#include "utils/btormem.h"\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorBVAss BtorBVAss;\ntypedef struct BtorBVAssList BtorBVAssList;\n\nstruct BtorBVAss\n{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif\n BtorBVAss *prev;\n BtorBVAss *next;\n};\n\nstruct BtorBVAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n};\n\n/* Create new bv assignment list. */\nBtorBVAssList *btor_ass_new_bv_list (BtorMemMgr *mm);\n\n/* Clone bv assignment list. */\nBtorBVAssList *btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list);\n\n/* Delete bv assignment list. */\nvoid btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup);\n\n/* Get BtorBVAss bucket reference from bv assignment string. */\nBtorBVAss *btor_ass_get_bv (const char *ass);\n\n/* Get bv assignment string from BtorBVAss bucket. */\nconst char *btor_ass_get_bv_str (BtorBVAss *ass);\n\n/* Create new bv assignment and add it to the list. */\nBtorBVAss *btor_ass_new_bv (BtorBVAssList *list, char *ass);\n\n/* Release bv assignment and remove it from the list. */\nvoid btor_ass_release_bv (BtorBVAssList *list, const char *ass);\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorFunAss BtorFunAss;\ntypedef struct BtorFunAssList BtorFunAssList;\n\nstruct BtorFunAss\n{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *prev;\n BtorFunAss *next;\n};\n\nstruct BtorFunAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;\n};\n\n/* Create new array assignment list. */\nBtorFunAssList *btor_ass_new_fun_list (BtorMemMgr *mm);\n\n/* Clone array assignment list. */\nBtorFunAssList *btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list);\n\n/* Delete array assignment list. */\nvoid btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup);\n\n/* Get BtorFunAss bucket reference from indices reference. */\nBtorFunAss *btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size);\n\n/* Get indices and values references from BtorFunAss bucket. */\nvoid btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size);\n\n/* Create new array assignment and add it to the list. */\nBtorFunAss *btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n/* Release array assignment and remove it from the list. */\nvoid btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n#endif\n" (comment) "/* Boolector: Satisfiability Modulo Theories (SMT) solver.\n *\n * Copyright (C) 2007-2021 by the authors listed in the AUTHORS file.\n *\n * This file is part of Boolector.\n * See COPYING for more information on using this software.\n */" (preproc_ifdef) "#ifndef BTORASS_H_INCLUDED\n#define BTORASS_H_INCLUDED\n\n#include <stdbool.h>\n#include <stdint.h>\n#include "utils/btormem.h"\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorBVAss BtorBVAss;\ntypedef struct BtorBVAssList BtorBVAssList;\n\nstruct BtorBVAss\n{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif\n BtorBVAss *prev;\n BtorBVAss *next;\n};\n\nstruct BtorBVAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n};\n\n/* Create new bv assignment list. */\nBtorBVAssList *btor_ass_new_bv_list (BtorMemMgr *mm);\n\n/* Clone bv assignment list. */\nBtorBVAssList *btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list);\n\n/* Delete bv assignment list. */\nvoid btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup);\n\n/* Get BtorBVAss bucket reference from bv assignment string. */\nBtorBVAss *btor_ass_get_bv (const char *ass);\n\n/* Get bv assignment string from BtorBVAss bucket. */\nconst char *btor_ass_get_bv_str (BtorBVAss *ass);\n\n/* Create new bv assignment and add it to the list. */\nBtorBVAss *btor_ass_new_bv (BtorBVAssList *list, char *ass);\n\n/* Release bv assignment and remove it from the list. */\nvoid btor_ass_release_bv (BtorBVAssList *list, const char *ass);\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorFunAss BtorFunAss;\ntypedef struct BtorFunAssList BtorFunAssList;\n\nstruct BtorFunAss\n{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *prev;\n BtorFunAss *next;\n};\n\nstruct BtorFunAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;\n};\n\n/* Create new array assignment list. */\nBtorFunAssList *btor_ass_new_fun_list (BtorMemMgr *mm);\n\n/* Clone array assignment list. */\nBtorFunAssList *btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list);\n\n/* Delete array assignment list. */\nvoid btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup);\n\n/* Get BtorFunAss bucket reference from indices reference. */\nBtorFunAss *btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size);\n\n/* Get indices and values references from BtorFunAss bucket. */\nvoid btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size);\n\n/* Create new array assignment and add it to the list. */\nBtorFunAss *btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n/* Release array assignment and remove it from the list. */\nvoid btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n#endif" (#ifndef) "#ifndef" (identifier) "BTORASS_H_INCLUDED" (preproc_def) "#define BTORASS_H_INCLUDED\n" (#define) "#define" (identifier) "BTORASS_H_INCLUDED" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include "utils/btormem.h"\n" (#include) "#include" (string_literal) ""utils/btormem.h"" (") """ (string_content) "utils/btormem.h" (") """ (comment) "/*------------------------------------------------------------------------*/" (type_definition) "typedef struct BtorBVAss BtorBVAss;" (typedef) "typedef" (struct_specifier) "struct BtorBVAss" (struct) "struct" (type_identifier) "BtorBVAss" (type_identifier) "BtorBVAss" (;) ";" (type_definition) "typedef struct BtorBVAssList BtorBVAssList;" (typedef) "typedef" (struct_specifier) "struct BtorBVAssList" (struct) "struct" (type_identifier) "BtorBVAssList" (type_identifier) "BtorBVAssList" (;) ";" (struct_specifier) "struct BtorBVAss\n{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif\n BtorBVAss *prev;\n BtorBVAss *next;\n}" (struct) "struct" (type_identifier) "BtorBVAss" (field_declaration_list) "{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif\n BtorBVAss *prev;\n BtorBVAss *next;\n}" ({) "{" (preproc_ifdef) "#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif" (#ifndef) "#ifndef" (identifier) "NDEBUG" (field_declaration) "const char *cloned_assignment;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*cloned_assignment" (*) "*" (field_identifier) "cloned_assignment" (;) ";" (comment) "/* needed for shadow clone only */" (#endif) "#endif" (field_declaration) "BtorBVAss *prev;" (type_identifier) "BtorBVAss" (pointer_declarator) "*prev" (*) "*" (field_identifier) "prev" (;) ";" (field_declaration) "BtorBVAss *next;" (type_identifier) "BtorBVAss" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct BtorBVAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n}" (struct) "struct" (type_identifier) "BtorBVAssList" (field_declaration_list) "{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n}" ({) "{" (field_declaration) "BtorMemMgr *mm;" (type_identifier) "BtorMemMgr" (pointer_declarator) "*mm" (*) "*" (field_identifier) "mm" (;) ";" (field_declaration) "uint32_t count;" (primitive_type) "uint32_t" (field_identifier) "count" (;) ";" (field_declaration) "BtorBVAss *first;" (type_identifier) "BtorBVAss" (pointer_declarator) "*first" (*) "*" (field_identifier) "first" (;) ";" (field_declaration) "BtorBVAss *last;" (type_identifier) "BtorBVAss" (pointer_declarator) "*last" (*) "*" (field_identifier) "last" (;) ";" (}) "}" (;) ";" (comment) "/* Create new bv assignment list. */" (declaration) "BtorBVAssList *btor_ass_new_bv_list (BtorMemMgr *mm);" (type_identifier) "BtorBVAssList" (pointer_declarator) "*btor_ass_new_bv_list (BtorMemMgr *mm)" (*) "*" (function_declarator) "btor_ass_new_bv_list (BtorMemMgr *mm)" (identifier) "btor_ass_new_bv_list" (parameter_list) "(BtorMemMgr *mm)" (() "(" (parameter_declaration) "BtorMemMgr *mm" (type_identifier) "BtorMemMgr" (pointer_declarator) "*mm" (*) "*" (identifier) "mm" ()) ")" (;) ";" (comment) "/* Clone bv assignment list. */" (declaration) "BtorBVAssList *btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list);" (type_identifier) "BtorBVAssList" (pointer_declarator) "*btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list)" (*) "*" (function_declarator) "btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list)" (identifier) "btor_ass_clone_bv_list" (parameter_list) "(BtorMemMgr *mm, BtorBVAssList *list)" (() "(" (parameter_declaration) "BtorMemMgr *mm" (type_identifier) "BtorMemMgr" (pointer_declarator) "*mm" (*) "*" (identifier) "mm" (,) "," (parameter_declaration) "BtorBVAssList *list" (type_identifier) "BtorBVAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" ()) ")" (;) ";" (comment) "/* Delete bv assignment list. */" (declaration) "void btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup);" (primitive_type) "void" (function_declarator) "btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup)" (identifier) "btor_ass_delete_bv_list" (parameter_list) "(BtorBVAssList *list, bool auto_cleanup)" (() "(" (parameter_declaration) "BtorBVAssList *list" (type_identifier) "BtorBVAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "bool auto_cleanup" (primitive_type) "bool" (identifier) "auto_cleanup" ()) ")" (;) ";" (comment) "/* Get BtorBVAss bucket reference from bv assignment string. */" (declaration) "BtorBVAss *btor_ass_get_bv (const char *ass);" (type_identifier) "BtorBVAss" (pointer_declarator) "*btor_ass_get_bv (const char *ass)" (*) "*" (function_declarator) "btor_ass_get_bv (const char *ass)" (identifier) "btor_ass_get_bv" (parameter_list) "(const char *ass)" (() "(" (parameter_declaration) "const char *ass" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*ass" (*) "*" (identifier) "ass" ()) ")" (;) ";" (comment) "/* Get bv assignment string from BtorBVAss bucket. */" (declaration) "const char *btor_ass_get_bv_str (BtorBVAss *ass);" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*btor_ass_get_bv_str (BtorBVAss *ass)" (*) "*" (function_declarator) "btor_ass_get_bv_str (BtorBVAss *ass)" (identifier) "btor_ass_get_bv_str" (parameter_list) "(BtorBVAss *ass)" (() "(" (parameter_declaration) "BtorBVAss *ass" (type_identifier) "BtorBVAss" (pointer_declarator) "*ass" (*) "*" (identifier) "ass" ()) ")" (;) ";" (comment) "/* Create new bv assignment and add it to the list. */" (declaration) "BtorBVAss *btor_ass_new_bv (BtorBVAssList *list, char *ass);" (type_identifier) "BtorBVAss" (pointer_declarator) "*btor_ass_new_bv (BtorBVAssList *list, char *ass)" (*) "*" (function_declarator) "btor_ass_new_bv (BtorBVAssList *list, char *ass)" (identifier) "btor_ass_new_bv" (parameter_list) "(BtorBVAssList *list, char *ass)" (() "(" (parameter_declaration) "BtorBVAssList *list" (type_identifier) "BtorBVAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "char *ass" (primitive_type) "char" (pointer_declarator) "*ass" (*) "*" (identifier) "ass" ()) ")" (;) ";" (comment) "/* Release bv assignment and remove it from the list. */" (declaration) "void btor_ass_release_bv (BtorBVAssList *list, const char *ass);" (primitive_type) "void" (function_declarator) "btor_ass_release_bv (BtorBVAssList *list, const char *ass)" (identifier) "btor_ass_release_bv" (parameter_list) "(BtorBVAssList *list, const char *ass)" (() "(" (parameter_declaration) "BtorBVAssList *list" (type_identifier) "BtorBVAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "const char *ass" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*ass" (*) "*" (identifier) "ass" ()) ")" (;) ";" (comment) "/*------------------------------------------------------------------------*/" (type_definition) "typedef struct BtorFunAss BtorFunAss;" (typedef) "typedef" (struct_specifier) "struct BtorFunAss" (struct) "struct" (type_identifier) "BtorFunAss" (type_identifier) "BtorFunAss" (;) ";" (type_definition) "typedef struct BtorFunAssList BtorFunAssList;" (typedef) "typedef" (struct_specifier) "struct BtorFunAssList" (struct) "struct" (type_identifier) "BtorFunAssList" (type_identifier) "BtorFunAssList" (;) ";" (struct_specifier) "struct BtorFunAss\n{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *prev;\n BtorFunAss *next;\n}" (struct) "struct" (type_identifier) "BtorFunAss" (field_declaration_list) "{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *prev;\n BtorFunAss *next;\n}" ({) "{" (field_declaration) "char **cloned_indices;" (primitive_type) "char" (pointer_declarator) "**cloned_indices" (*) "*" (pointer_declarator) "*cloned_indices" (*) "*" (field_identifier) "cloned_indices" (;) ";" (field_declaration) "char **cloned_values;" (primitive_type) "char" (pointer_declarator) "**cloned_values" (*) "*" (pointer_declarator) "*cloned_values" (*) "*" (field_identifier) "cloned_values" (;) ";" (field_declaration) "uint32_t size;" (primitive_type) "uint32_t" (field_identifier) "size" (;) ";" (field_declaration) "BtorFunAss *prev;" (type_identifier) "BtorFunAss" (pointer_declarator) "*prev" (*) "*" (field_identifier) "prev" (;) ";" (field_declaration) "BtorFunAss *next;" (type_identifier) "BtorFunAss" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct BtorFunAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;\n}" (struct) "struct" (type_identifier) "BtorFunAssList" (field_declaration_list) "{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;\n}" ({) "{" (field_declaration) "BtorMemMgr *mm;" (type_identifier) "BtorMemMgr" (pointer_declarator) "*mm" (*) "*" (field_identifier) "mm" (;) ";" (field_declaration) "uint32_t count;" (primitive_type) "uint32_t" (field_identifier) "count" (;) ";" (field_declaration) "BtorFunAss *first;" (type_identifier) "BtorFunAss" (pointer_declarator) "*first" (*) "*" (field_identifier) "first" (;) ";" (field_declaration) "BtorFunAss *last;" (type_identifier) "BtorFunAss" (pointer_declarator) "*last" (*) "*" (field_identifier) "last" (;) ";" (}) "}" (;) ";" (comment) "/* Create new array assignment list. */" (declaration) "BtorFunAssList *btor_ass_new_fun_list (BtorMemMgr *mm);" (type_identifier) "BtorFunAssList" (pointer_declarator) "*btor_ass_new_fun_list (BtorMemMgr *mm)" (*) "*" (function_declarator) "btor_ass_new_fun_list (BtorMemMgr *mm)" (identifier) "btor_ass_new_fun_list" (parameter_list) "(BtorMemMgr *mm)" (() "(" (parameter_declaration) "BtorMemMgr *mm" (type_identifier) "BtorMemMgr" (pointer_declarator) "*mm" (*) "*" (identifier) "mm" ()) ")" (;) ";" (comment) "/* Clone array assignment list. */" (declaration) "BtorFunAssList *btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list);" (type_identifier) "BtorFunAssList" (pointer_declarator) "*btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list)" (*) "*" (function_declarator) "btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list)" (identifier) "btor_ass_clone_fun_list" (parameter_list) "(BtorMemMgr *mm, BtorFunAssList *list)" (() "(" (parameter_declaration) "BtorMemMgr *mm" (type_identifier) "BtorMemMgr" (pointer_declarator) "*mm" (*) "*" (identifier) "mm" (,) "," (parameter_declaration) "BtorFunAssList *list" (type_identifier) "BtorFunAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" ()) ")" (;) ";" (comment) "/* Delete array assignment list. */" (declaration) "void btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup);" (primitive_type) "void" (function_declarator) "btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup)" (identifier) "btor_ass_delete_fun_list" (parameter_list) "(BtorFunAssList *list, bool auto_cleanup)" (() "(" (parameter_declaration) "BtorFunAssList *list" (type_identifier) "BtorFunAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "bool auto_cleanup" (primitive_type) "bool" (identifier) "auto_cleanup" ()) ")" (;) ";" (comment) "/* Get BtorFunAss bucket reference from indices reference. */" (declaration) "BtorFunAss *btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size);" (type_identifier) "BtorFunAss" (pointer_declarator) "*btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size)" (*) "*" (function_declarator) "btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size)" (identifier) "btor_ass_get_fun" (parameter_list) "(const char **indices,\n const char **values,\n uint32_t size)" (() "(" (parameter_declaration) "const char **indices" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "**indices" (*) "*" (pointer_declarator) "*indices" (*) "*" (identifier) "indices" (,) "," (parameter_declaration) "const char **values" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "**values" (*) "*" (pointer_declarator) "*values" (*) "*" (identifier) "values" (,) "," (parameter_declaration) "uint32_t size" (primitive_type) "uint32_t" (identifier) "size" ()) ")" (;) ";" (comment) "/* Get indices and values references from BtorFunAss bucket. */" (declaration) "void btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size);" (primitive_type) "void" (function_declarator) "btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size)" (identifier) "btor_ass_get_fun_indices_values" (parameter_list) "(BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size)" (() "(" (parameter_declaration) "BtorFunAss *ass" (type_identifier) "BtorFunAss" (pointer_declarator) "*ass" (*) "*" (identifier) "ass" (,) "," (parameter_declaration) "char ***indices" (primitive_type) "char" (pointer_declarator) "***indices" (*) "*" (pointer_declarator) "**indices" (*) "*" (pointer_declarator) "*indices" (*) "*" (identifier) "indices" (,) "," (parameter_declaration) "char ***values" (primitive_type) "char" (pointer_declarator) "***values" (*) "*" (pointer_declarator) "**values" (*) "*" (pointer_declarator) "*values" (*) "*" (identifier) "values" (,) "," (parameter_declaration) "uint32_t size" (primitive_type) "uint32_t" (identifier) "size" ()) ")" (;) ";" (comment) "/* Create new array assignment and add it to the list. */" (declaration) "BtorFunAss *btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);" (type_identifier) "BtorFunAss" (pointer_declarator) "*btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)" (*) "*" (function_declarator) "btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)" (identifier) "btor_ass_new_fun" (parameter_list) "(BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)" (() "(" (parameter_declaration) "BtorFunAssList *list" (type_identifier) "BtorFunAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "char **indices" (primitive_type) "char" (pointer_declarator) "**indices" (*) "*" (pointer_declarator) "*indices" (*) "*" (identifier) "indices" (,) "," (parameter_declaration) "char **values" (primitive_type) "char" (pointer_declarator) "**values" (*) "*" (pointer_declarator) "*values" (*) "*" (identifier) "values" (,) "," (parameter_declaration) "uint32_t size" (primitive_type) "uint32_t" (identifier) "size" ()) ")" (;) ";" (comment) "/* Release array assignment and remove it from the list. */" (declaration) "void btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);" (primitive_type) "void" (function_declarator) "btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)" (identifier) "btor_ass_release_fun" (parameter_list) "(BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)" (() "(" (parameter_declaration) "BtorFunAssList *list" (type_identifier) "BtorFunAssList" (pointer_declarator) "*list" (*) "*" (identifier) "list" (,) "," (parameter_declaration) "char **indices" (primitive_type) "char" (pointer_declarator) "**indices" (*) "*" (pointer_declarator) "*indices" (*) "*" (identifier) "indices" (,) "," (parameter_declaration) "char **values" (primitive_type) "char" (pointer_declarator) "**values" (*) "*" (pointer_declarator) "*values" (*) "*" (identifier) "values" (,) "," (parameter_declaration) "uint32_t size" (primitive_type) "uint32_t" (identifier) "size" ()) ")" (;) ";" (#endif) "#endif"
514
0
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 35.61, "nodes": 385, "errors": 0, "source_hash": "1d604bcd6a453e6fa65fb7e81ed66c389434a85c9dd8616620ce50645c949cb0", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BTORASS_H_INCLUDED\n#define BTORASS_H_INCLUDED\n\n#include <stdbool.h>\n#include <stdint.h>\n#include \"utils/btormem.h\"\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorBVAss BtorBVAss;\ntypedef struct BtorBVAssList BtorBVAssList;\n\nstruct BtorBVAss\n{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif\n BtorBVAss *prev;\n BtorBVAss *next;\n};\n\nstruct BtorBVAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n};\n\n/* Create new bv assignment list. */\nBtorBVAssList *btor_ass_new_bv_list (BtorMemMgr *mm);\n\n/* Clone bv assignment list. */\nBtorBVAssList *btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list);\n\n/* Delete bv assignment list. */\nvoid btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup);\n\n/* Get BtorBVAss bucket reference from bv assignment string. */\nBtorBVAss *btor_ass_get_bv (const char *ass);\n\n/* Get bv assignment string from BtorBVAss bucket. */\nconst char *btor_ass_get_bv_str (BtorBVAss *ass);\n\n/* Create new bv assignment and add it to the list. */\nBtorBVAss *btor_ass_new_bv (BtorBVAssList *list, char *ass);\n\n/* Release bv assignment and remove it from the list. */\nvoid btor_ass_release_bv (BtorBVAssList *list, const char *ass);\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorFunAss BtorFunAss;\ntypedef struct BtorFunAssList BtorFunAssList;\n\nstruct BtorFunAss\n{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *prev;\n BtorFunAss *next;\n};\n\nstruct BtorFunAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;\n};\n\n/* Create new array assignment list. */\nBtorFunAssList *btor_ass_new_fun_list (BtorMemMgr *mm);\n\n/* Clone array assignment list. */\nBtorFunAssList *btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list);\n\n/* Delete array assignment list. */\nvoid btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup);\n\n/* Get BtorFunAss bucket reference from indices reference. */\nBtorFunAss *btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size);\n\n/* Get indices and values references from BtorFunAss bucket. */\nvoid btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size);\n\n/* Create new array assignment and add it to the list. */\nBtorFunAss *btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n/* Release array assignment and remove it from the list. */\nvoid btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 21, 27, 49, 70, 82, 99, 112, 124, 136, 153, 168, 174, 180, 210, 231, 243, 260, 273, 297, 328, 357, 384], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 112, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "identifier", "text": "BTORASS_H_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define BTORASS_H_INCLUDED\n", "parent": 0, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "identifier", "text": "BTORASS_H_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdint.h>", "parent": 9, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"utils/btormem.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"utils/btormem.h\"", "parent": 12, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 26}}, {"id": 15, "type": "type_definition", "text": "typedef struct BtorBVAss BtorBVAss;", "parent": 0, "children": [16, 17, 20], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 35}}, {"id": 16, "type": "typedef", "text": "typedef", "parent": 15, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 17, "type": "struct_specifier", "text": "struct BtorBVAss", "parent": 15, "children": [18, 19], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 24}}, {"id": 18, "type": "struct", "text": "struct", "parent": 17, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 14}}, {"id": 19, "type": "type_identifier", "text": "BtorBVAss", "parent": 17, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 24}}, {"id": 20, "type": "type_identifier", "text": "BtorBVAss", "parent": 15, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 34}}, {"id": 21, "type": "type_definition", "text": "typedef struct BtorBVAssList BtorBVAssList;", "parent": 0, "children": [22, 23, 26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 43}}, {"id": 22, "type": "typedef", "text": "typedef", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 23, "type": "struct_specifier", "text": "struct BtorBVAssList", "parent": 21, "children": [24, 25], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 28}}, {"id": 24, "type": "struct", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 25, "type": "type_identifier", "text": "BtorBVAssList", "parent": 23, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 28}}, {"id": 26, "type": "type_identifier", "text": "BtorBVAssList", "parent": 21, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 42}}, {"id": 27, "type": "struct_specifier", "text": "struct BtorBVAss\n{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif\n BtorBVAss *prev;\n BtorBVAss *next;\n}", "parent": 0, "children": [28, 29], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 28, "type": "struct", "text": "struct", "parent": 27, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 29, "type": "type_identifier", "text": "BtorBVAss", "parent": 27, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 16}}, {"id": 30, "type": "preproc_ifdef", "text": "#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif", "parent": 27, "children": [31, 32, 33, 38], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 31, "type": "#ifndef", "text": "#ifndef", "parent": 30, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 32, "type": "identifier", "text": "NDEBUG", "parent": 30, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 14}}, {"id": 33, "type": "field_declaration", "text": "const char *cloned_assignment;", "parent": 30, "children": [34, 35], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 32}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 12}}, {"id": 35, "type": "pointer_declarator", "text": "*cloned_assignment", "parent": 33, "children": [36, 37], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 31}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 37, "type": "field_identifier", "text": "cloned_assignment", "parent": 35, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 31}}, {"id": 38, "type": "#endif", "text": "#endif", "parent": 30, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 39, "type": "field_declaration", "text": "BtorBVAss *prev;", "parent": 27, "children": [40, 41], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 18}}, {"id": 40, "type": "type_identifier", "text": "BtorBVAss", "parent": 39, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 11}}, {"id": 41, "type": "pointer_declarator", "text": "*prev", "parent": 39, "children": [42, 43], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 17}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 43, "type": "field_identifier", "text": "prev", "parent": 41, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 17}}, {"id": 44, "type": "field_declaration", "text": "BtorBVAss *next;", "parent": 27, "children": [45, 46], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 18}}, {"id": 45, "type": "type_identifier", "text": "BtorBVAss", "parent": 44, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 11}}, {"id": 46, "type": "pointer_declarator", "text": "*next", "parent": 44, "children": [47, 48], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 17}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 48, "type": "field_identifier", "text": "next", "parent": 46, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 17}}, {"id": 49, "type": "struct_specifier", "text": "struct BtorBVAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n}", "parent": 0, "children": [50, 51], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 50, "type": "struct", "text": "struct", "parent": 49, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 51, "type": "type_identifier", "text": "BtorBVAssList", "parent": 49, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 20}}, {"id": 52, "type": "field_declaration", "text": "BtorMemMgr *mm;", "parent": 49, "children": [53, 54], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 17}}, {"id": 53, "type": "type_identifier", "text": "BtorMemMgr", "parent": 52, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 12}}, {"id": 54, "type": "pointer_declarator", "text": "*mm", "parent": 52, "children": [55, 56], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 16}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 14}}, {"id": 56, "type": "field_identifier", "text": "mm", "parent": 54, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 16}}, {"id": 57, "type": "field_declaration", "text": "uint32_t count;", "parent": 49, "children": [58, 59], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 17}}, {"id": 58, "type": "primitive_type", "text": "uint32_t", "parent": 57, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 10}}, {"id": 59, "type": "field_identifier", "text": "count", "parent": 57, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 16}}, {"id": 60, "type": "field_declaration", "text": "BtorBVAss *first;", "parent": 49, "children": [61, 62], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 19}}, {"id": 61, "type": "type_identifier", "text": "BtorBVAss", "parent": 60, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 11}}, {"id": 62, "type": "pointer_declarator", "text": "*first", "parent": 60, "children": [63, 64], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 18}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 64, "type": "field_identifier", "text": "first", "parent": 62, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 18}}, {"id": 65, "type": "field_declaration", "text": "BtorBVAss *last;", "parent": 49, "children": [66, 67], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 18}}, {"id": 66, "type": "type_identifier", "text": "BtorBVAss", "parent": 65, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 11}}, {"id": 67, "type": "pointer_declarator", "text": "*last", "parent": 65, "children": [68, 69], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 17}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 69, "type": "field_identifier", "text": "last", "parent": 67, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 17}}, {"id": 70, "type": "declaration", "text": "BtorBVAssList *btor_ass_new_bv_list (BtorMemMgr *mm);", "parent": 0, "children": [71, 72], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 53}}, {"id": 71, "type": "type_identifier", "text": "BtorBVAssList", "parent": 70, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 13}}, {"id": 72, "type": "pointer_declarator", "text": "*btor_ass_new_bv_list (BtorMemMgr *mm)", "parent": 70, "children": [73, 74], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 52}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 15}}, {"id": 74, "type": "function_declarator", "text": "btor_ass_new_bv_list (BtorMemMgr *mm)", "parent": 72, "children": [75, 76], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 52}}, {"id": 75, "type": "identifier", "text": "btor_ass_new_bv_list", "parent": 74, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 35}}, {"id": 76, "type": "parameter_list", "text": "(BtorMemMgr *mm)", "parent": 74, "children": [77], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 52}}, {"id": 77, "type": "parameter_declaration", "text": "BtorMemMgr *mm", "parent": 76, "children": [78, 79], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 51}}, {"id": 78, "type": "type_identifier", "text": "BtorMemMgr", "parent": 77, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 47}}, {"id": 79, "type": "pointer_declarator", "text": "*mm", "parent": 77, "children": [80, 81], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 51}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 49}}, {"id": 81, "type": "identifier", "text": "mm", "parent": 79, "children": [], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 51}}, {"id": 82, "type": "declaration", "text": "BtorBVAssList *btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list);", "parent": 0, "children": [83, 84], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 76}}, {"id": 83, "type": "type_identifier", "text": "BtorBVAssList", "parent": 82, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 13}}, {"id": 84, "type": "pointer_declarator", "text": "*btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list)", "parent": 82, "children": [85, 86], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 75}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 86, "type": "function_declarator", "text": "btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list)", "parent": 84, "children": [87, 88], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 75}}, {"id": 87, "type": "identifier", "text": "btor_ass_clone_bv_list", "parent": 86, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 37}}, {"id": 88, "type": "parameter_list", "text": "(BtorMemMgr *mm, BtorBVAssList *list)", "parent": 86, "children": [89, 94], "start_point": {"row": 41, "column": 38}, "end_point": {"row": 41, "column": 75}}, {"id": 89, "type": "parameter_declaration", "text": "BtorMemMgr *mm", "parent": 88, "children": [90, 91], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 53}}, {"id": 90, "type": "type_identifier", "text": "BtorMemMgr", "parent": 89, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 49}}, {"id": 91, "type": "pointer_declarator", "text": "*mm", "parent": 89, "children": [92, 93], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 53}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 51}}, {"id": 93, "type": "identifier", "text": "mm", "parent": 91, "children": [], "start_point": {"row": 41, "column": 51}, "end_point": {"row": 41, "column": 53}}, {"id": 94, "type": "parameter_declaration", "text": "BtorBVAssList *list", "parent": 88, "children": [95, 96], "start_point": {"row": 41, "column": 55}, "end_point": {"row": 41, "column": 74}}, {"id": 95, "type": "type_identifier", "text": "BtorBVAssList", "parent": 94, "children": [], "start_point": {"row": 41, "column": 55}, "end_point": {"row": 41, "column": 68}}, {"id": 96, "type": "pointer_declarator", "text": "*list", "parent": 94, "children": [97, 98], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 41, "column": 74}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 41, "column": 70}}, {"id": 98, "type": "identifier", "text": "list", "parent": 96, "children": [], "start_point": {"row": 41, "column": 70}, "end_point": {"row": 41, "column": 74}}, {"id": 99, "type": "declaration", "text": "void btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup);", "parent": 0, "children": [100, 101], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 70}}, {"id": 100, "type": "primitive_type", "text": "void", "parent": 99, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 101, "type": "function_declarator", "text": "btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup)", "parent": 99, "children": [102, 103], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 69}}, {"id": 102, "type": "identifier", "text": "btor_ass_delete_bv_list", "parent": 101, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 28}}, {"id": 103, "type": "parameter_list", "text": "(BtorBVAssList *list, bool auto_cleanup)", "parent": 101, "children": [104, 109], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 69}}, {"id": 104, "type": "parameter_declaration", "text": "BtorBVAssList *list", "parent": 103, "children": [105, 106], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 49}}, {"id": 105, "type": "type_identifier", "text": "BtorBVAssList", "parent": 104, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 43}}, {"id": 106, "type": "pointer_declarator", "text": "*list", "parent": 104, "children": [107, 108], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 49}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 45}}, {"id": 108, "type": "identifier", "text": "list", "parent": 106, "children": [], "start_point": {"row": 44, "column": 45}, "end_point": {"row": 44, "column": 49}}, {"id": 109, "type": "parameter_declaration", "text": "bool auto_cleanup", "parent": 103, "children": [110, 111], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 68}}, {"id": 110, "type": "primitive_type", "text": "bool", "parent": 109, "children": [], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 55}}, {"id": 111, "type": "identifier", "text": "auto_cleanup", "parent": 109, "children": [], "start_point": {"row": 44, "column": 56}, "end_point": {"row": 44, "column": 68}}, {"id": 112, "type": "declaration", "text": "BtorBVAss *btor_ass_get_bv (const char *ass);", "parent": 0, "children": [113, 114], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 45}}, {"id": 113, "type": "type_identifier", "text": "BtorBVAss", "parent": 112, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 9}}, {"id": 114, "type": "pointer_declarator", "text": "*btor_ass_get_bv (const char *ass)", "parent": 112, "children": [115, 116], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 44}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 11}}, {"id": 116, "type": "function_declarator", "text": "btor_ass_get_bv (const char *ass)", "parent": 114, "children": [117, 118], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 44}}, {"id": 117, "type": "identifier", "text": "btor_ass_get_bv", "parent": 116, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 26}}, {"id": 118, "type": "parameter_list", "text": "(const char *ass)", "parent": 116, "children": [119], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 44}}, {"id": 119, "type": "parameter_declaration", "text": "const char *ass", "parent": 118, "children": [120, 121], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 43}}, {"id": 120, "type": "primitive_type", "text": "char", "parent": 119, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 38}}, {"id": 121, "type": "pointer_declarator", "text": "*ass", "parent": 119, "children": [122, 123], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 43}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 40}}, {"id": 123, "type": "identifier", "text": "ass", "parent": 121, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 43}}, {"id": 124, "type": "declaration", "text": "const char *btor_ass_get_bv_str (BtorBVAss *ass);", "parent": 0, "children": [125, 126], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 49}}, {"id": 125, "type": "primitive_type", "text": "char", "parent": 124, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 10}}, {"id": 126, "type": "pointer_declarator", "text": "*btor_ass_get_bv_str (BtorBVAss *ass)", "parent": 124, "children": [127, 128], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 48}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 12}}, {"id": 128, "type": "function_declarator", "text": "btor_ass_get_bv_str (BtorBVAss *ass)", "parent": 126, "children": [129, 130], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 48}}, {"id": 129, "type": "identifier", "text": "btor_ass_get_bv_str", "parent": 128, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 31}}, {"id": 130, "type": "parameter_list", "text": "(BtorBVAss *ass)", "parent": 128, "children": [131], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 48}}, {"id": 131, "type": "parameter_declaration", "text": "BtorBVAss *ass", "parent": 130, "children": [132, 133], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 47}}, {"id": 132, "type": "type_identifier", "text": "BtorBVAss", "parent": 131, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 42}}, {"id": 133, "type": "pointer_declarator", "text": "*ass", "parent": 131, "children": [134, 135], "start_point": {"row": 50, "column": 43}, "end_point": {"row": 50, "column": 47}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 50, "column": 43}, "end_point": {"row": 50, "column": 44}}, {"id": 135, "type": "identifier", "text": "ass", "parent": 133, "children": [], "start_point": {"row": 50, "column": 44}, "end_point": {"row": 50, "column": 47}}, {"id": 136, "type": "declaration", "text": "BtorBVAss *btor_ass_new_bv (BtorBVAssList *list, char *ass);", "parent": 0, "children": [137, 138], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 60}}, {"id": 137, "type": "type_identifier", "text": "BtorBVAss", "parent": 136, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 9}}, {"id": 138, "type": "pointer_declarator", "text": "*btor_ass_new_bv (BtorBVAssList *list, char *ass)", "parent": 136, "children": [139, 140], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 59}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 11}}, {"id": 140, "type": "function_declarator", "text": "btor_ass_new_bv (BtorBVAssList *list, char *ass)", "parent": 138, "children": [141, 142], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 59}}, {"id": 141, "type": "identifier", "text": "btor_ass_new_bv", "parent": 140, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 26}}, {"id": 142, "type": "parameter_list", "text": "(BtorBVAssList *list, char *ass)", "parent": 140, "children": [143, 148], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 59}}, {"id": 143, "type": "parameter_declaration", "text": "BtorBVAssList *list", "parent": 142, "children": [144, 145], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 47}}, {"id": 144, "type": "type_identifier", "text": "BtorBVAssList", "parent": 143, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 41}}, {"id": 145, "type": "pointer_declarator", "text": "*list", "parent": 143, "children": [146, 147], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 47}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 43}}, {"id": 147, "type": "identifier", "text": "list", "parent": 145, "children": [], "start_point": {"row": 53, "column": 43}, "end_point": {"row": 53, "column": 47}}, {"id": 148, "type": "parameter_declaration", "text": "char *ass", "parent": 142, "children": [149, 150], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 58}}, {"id": 149, "type": "primitive_type", "text": "char", "parent": 148, "children": [], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 53}}, {"id": 150, "type": "pointer_declarator", "text": "*ass", "parent": 148, "children": [151, 152], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 58}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 55}}, {"id": 152, "type": "identifier", "text": "ass", "parent": 150, "children": [], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 58}}, {"id": 153, "type": "declaration", "text": "void btor_ass_release_bv (BtorBVAssList *list, const char *ass);", "parent": 0, "children": [154, 155], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 64}}, {"id": 154, "type": "primitive_type", "text": "void", "parent": 153, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 155, "type": "function_declarator", "text": "btor_ass_release_bv (BtorBVAssList *list, const char *ass)", "parent": 153, "children": [156, 157], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 63}}, {"id": 156, "type": "identifier", "text": "btor_ass_release_bv", "parent": 155, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 24}}, {"id": 157, "type": "parameter_list", "text": "(BtorBVAssList *list, const char *ass)", "parent": 155, "children": [158, 163], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 63}}, {"id": 158, "type": "parameter_declaration", "text": "BtorBVAssList *list", "parent": 157, "children": [159, 160], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 45}}, {"id": 159, "type": "type_identifier", "text": "BtorBVAssList", "parent": 158, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 39}}, {"id": 160, "type": "pointer_declarator", "text": "*list", "parent": 158, "children": [161, 162], "start_point": {"row": 56, "column": 40}, "end_point": {"row": 56, "column": 45}}, {"id": 161, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 56, "column": 40}, "end_point": {"row": 56, "column": 41}}, {"id": 162, "type": "identifier", "text": "list", "parent": 160, "children": [], "start_point": {"row": 56, "column": 41}, "end_point": {"row": 56, "column": 45}}, {"id": 163, "type": "parameter_declaration", "text": "const char *ass", "parent": 157, "children": [164, 165], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 62}}, {"id": 164, "type": "primitive_type", "text": "char", "parent": 163, "children": [], "start_point": {"row": 56, "column": 53}, "end_point": {"row": 56, "column": 57}}, {"id": 165, "type": "pointer_declarator", "text": "*ass", "parent": 163, "children": [166, 167], "start_point": {"row": 56, "column": 58}, "end_point": {"row": 56, "column": 62}}, {"id": 166, "type": "*", "text": "*", "parent": 165, "children": [], "start_point": {"row": 56, "column": 58}, "end_point": {"row": 56, "column": 59}}, {"id": 167, "type": "identifier", "text": "ass", "parent": 165, "children": [], "start_point": {"row": 56, "column": 59}, "end_point": {"row": 56, "column": 62}}, {"id": 168, "type": "type_definition", "text": "typedef struct BtorFunAss BtorFunAss;", "parent": 0, "children": [169, 170, 173], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 37}}, {"id": 169, "type": "typedef", "text": "typedef", "parent": 168, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 170, "type": "struct_specifier", "text": "struct BtorFunAss", "parent": 168, "children": [171, 172], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 25}}, {"id": 171, "type": "struct", "text": "struct", "parent": 170, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 14}}, {"id": 172, "type": "type_identifier", "text": "BtorFunAss", "parent": 170, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 25}}, {"id": 173, "type": "type_identifier", "text": "BtorFunAss", "parent": 168, "children": [], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 36}}, {"id": 174, "type": "type_definition", "text": "typedef struct BtorFunAssList BtorFunAssList;", "parent": 0, "children": [175, 176, 179], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 45}}, {"id": 175, "type": "typedef", "text": "typedef", "parent": 174, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 176, "type": "struct_specifier", "text": "struct BtorFunAssList", "parent": 174, "children": [177, 178], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 29}}, {"id": 177, "type": "struct", "text": "struct", "parent": 176, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 14}}, {"id": 178, "type": "type_identifier", "text": "BtorFunAssList", "parent": 176, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 29}}, {"id": 179, "type": "type_identifier", "text": "BtorFunAssList", "parent": 174, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 44}}, {"id": 180, "type": "struct_specifier", "text": "struct BtorFunAss\n{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *prev;\n BtorFunAss *next;\n}", "parent": 0, "children": [181, 182], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 181, "type": "struct", "text": "struct", "parent": 180, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 182, "type": "type_identifier", "text": "BtorFunAss", "parent": 180, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 17}}, {"id": 183, "type": "field_declaration", "text": "char **cloned_indices;", "parent": 180, "children": [184, 185], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 24}}, {"id": 184, "type": "primitive_type", "text": "char", "parent": 183, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 6}}, {"id": 185, "type": "pointer_declarator", "text": "**cloned_indices", "parent": 183, "children": [186, 187], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 23}}, {"id": 186, "type": "*", "text": "*", "parent": 185, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 8}}, {"id": 187, "type": "pointer_declarator", "text": "*cloned_indices", "parent": 185, "children": [188, 189], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 23}}, {"id": 188, "type": "*", "text": "*", "parent": 187, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 9}}, {"id": 189, "type": "field_identifier", "text": "cloned_indices", "parent": 187, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 23}}, {"id": 190, "type": "field_declaration", "text": "char **cloned_values;", "parent": 180, "children": [191, 192], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 23}}, {"id": 191, "type": "primitive_type", "text": "char", "parent": 190, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 6}}, {"id": 192, "type": "pointer_declarator", "text": "**cloned_values", "parent": 190, "children": [193, 194], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 22}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 8}}, {"id": 194, "type": "pointer_declarator", "text": "*cloned_values", "parent": 192, "children": [195, 196], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 22}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 196, "type": "field_identifier", "text": "cloned_values", "parent": 194, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 22}}, {"id": 197, "type": "field_declaration", "text": "uint32_t size;", "parent": 180, "children": [198, 199], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 16}}, {"id": 198, "type": "primitive_type", "text": "uint32_t", "parent": 197, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 10}}, {"id": 199, "type": "field_identifier", "text": "size", "parent": 197, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 15}}, {"id": 200, "type": "field_declaration", "text": "BtorFunAss *prev;", "parent": 180, "children": [201, 202], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 19}}, {"id": 201, "type": "type_identifier", "text": "BtorFunAss", "parent": 200, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 12}}, {"id": 202, "type": "pointer_declarator", "text": "*prev", "parent": 200, "children": [203, 204], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 18}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 14}}, {"id": 204, "type": "field_identifier", "text": "prev", "parent": 202, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 18}}, {"id": 205, "type": "field_declaration", "text": "BtorFunAss *next;", "parent": 180, "children": [206, 207], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 19}}, {"id": 206, "type": "type_identifier", "text": "BtorFunAss", "parent": 205, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 12}}, {"id": 207, "type": "pointer_declarator", "text": "*next", "parent": 205, "children": [208, 209], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 18}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 14}}, {"id": 209, "type": "field_identifier", "text": "next", "parent": 207, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 18}}, {"id": 210, "type": "struct_specifier", "text": "struct BtorFunAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;\n}", "parent": 0, "children": [211, 212], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 211, "type": "struct", "text": "struct", "parent": 210, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 6}}, {"id": 212, "type": "type_identifier", "text": "BtorFunAssList", "parent": 210, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 21}}, {"id": 213, "type": "field_declaration", "text": "BtorMemMgr *mm;", "parent": 210, "children": [214, 215], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 17}}, {"id": 214, "type": "type_identifier", "text": "BtorMemMgr", "parent": 213, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 12}}, {"id": 215, "type": "pointer_declarator", "text": "*mm", "parent": 213, "children": [216, 217], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 16}}, {"id": 216, "type": "*", "text": "*", "parent": 215, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 14}}, {"id": 217, "type": "field_identifier", "text": "mm", "parent": 215, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 16}}, {"id": 218, "type": "field_declaration", "text": "uint32_t count;", "parent": 210, "children": [219, 220], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 17}}, {"id": 219, "type": "primitive_type", "text": "uint32_t", "parent": 218, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 10}}, {"id": 220, "type": "field_identifier", "text": "count", "parent": 218, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 16}}, {"id": 221, "type": "field_declaration", "text": "BtorFunAss *first;", "parent": 210, "children": [222, 223], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 20}}, {"id": 222, "type": "type_identifier", "text": "BtorFunAss", "parent": 221, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 12}}, {"id": 223, "type": "pointer_declarator", "text": "*first", "parent": 221, "children": [224, 225], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 19}}, {"id": 224, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 14}}, {"id": 225, "type": "field_identifier", "text": "first", "parent": 223, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 19}}, {"id": 226, "type": "field_declaration", "text": "BtorFunAss *last;", "parent": 210, "children": [227, 228], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 19}}, {"id": 227, "type": "type_identifier", "text": "BtorFunAss", "parent": 226, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 12}}, {"id": 228, "type": "pointer_declarator", "text": "*last", "parent": 226, "children": [229, 230], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 18}}, {"id": 229, "type": "*", "text": "*", "parent": 228, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 14}}, {"id": 230, "type": "field_identifier", "text": "last", "parent": 228, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 18}}, {"id": 231, "type": "declaration", "text": "BtorFunAssList *btor_ass_new_fun_list (BtorMemMgr *mm);", "parent": 0, "children": [232, 233], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 55}}, {"id": 232, "type": "type_identifier", "text": "BtorFunAssList", "parent": 231, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 14}}, {"id": 233, "type": "pointer_declarator", "text": "*btor_ass_new_fun_list (BtorMemMgr *mm)", "parent": 231, "children": [234, 235], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 54}}, {"id": 234, "type": "*", "text": "*", "parent": 233, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 16}}, {"id": 235, "type": "function_declarator", "text": "btor_ass_new_fun_list (BtorMemMgr *mm)", "parent": 233, "children": [236, 237], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 54}}, {"id": 236, "type": "identifier", "text": "btor_ass_new_fun_list", "parent": 235, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 37}}, {"id": 237, "type": "parameter_list", "text": "(BtorMemMgr *mm)", "parent": 235, "children": [238], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 54}}, {"id": 238, "type": "parameter_declaration", "text": "BtorMemMgr *mm", "parent": 237, "children": [239, 240], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 53}}, {"id": 239, "type": "type_identifier", "text": "BtorMemMgr", "parent": 238, "children": [], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 49}}, {"id": 240, "type": "pointer_declarator", "text": "*mm", "parent": 238, "children": [241, 242], "start_point": {"row": 81, "column": 50}, "end_point": {"row": 81, "column": 53}}, {"id": 241, "type": "*", "text": "*", "parent": 240, "children": [], "start_point": {"row": 81, "column": 50}, "end_point": {"row": 81, "column": 51}}, {"id": 242, "type": "identifier", "text": "mm", "parent": 240, "children": [], "start_point": {"row": 81, "column": 51}, "end_point": {"row": 81, "column": 53}}, {"id": 243, "type": "declaration", "text": "BtorFunAssList *btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list);", "parent": 0, "children": [244, 245], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 79}}, {"id": 244, "type": "type_identifier", "text": "BtorFunAssList", "parent": 243, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 14}}, {"id": 245, "type": "pointer_declarator", "text": "*btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list)", "parent": 243, "children": [246, 247], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 78}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 16}}, {"id": 247, "type": "function_declarator", "text": "btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list)", "parent": 245, "children": [248, 249], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 78}}, {"id": 248, "type": "identifier", "text": "btor_ass_clone_fun_list", "parent": 247, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 39}}, {"id": 249, "type": "parameter_list", "text": "(BtorMemMgr *mm, BtorFunAssList *list)", "parent": 247, "children": [250, 255], "start_point": {"row": 84, "column": 40}, "end_point": {"row": 84, "column": 78}}, {"id": 250, "type": "parameter_declaration", "text": "BtorMemMgr *mm", "parent": 249, "children": [251, 252], "start_point": {"row": 84, "column": 41}, "end_point": {"row": 84, "column": 55}}, {"id": 251, "type": "type_identifier", "text": "BtorMemMgr", "parent": 250, "children": [], "start_point": {"row": 84, "column": 41}, "end_point": {"row": 84, "column": 51}}, {"id": 252, "type": "pointer_declarator", "text": "*mm", "parent": 250, "children": [253, 254], "start_point": {"row": 84, "column": 52}, "end_point": {"row": 84, "column": 55}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 84, "column": 52}, "end_point": {"row": 84, "column": 53}}, {"id": 254, "type": "identifier", "text": "mm", "parent": 252, "children": [], "start_point": {"row": 84, "column": 53}, "end_point": {"row": 84, "column": 55}}, {"id": 255, "type": "parameter_declaration", "text": "BtorFunAssList *list", "parent": 249, "children": [256, 257], "start_point": {"row": 84, "column": 57}, "end_point": {"row": 84, "column": 77}}, {"id": 256, "type": "type_identifier", "text": "BtorFunAssList", "parent": 255, "children": [], "start_point": {"row": 84, "column": 57}, "end_point": {"row": 84, "column": 71}}, {"id": 257, "type": "pointer_declarator", "text": "*list", "parent": 255, "children": [258, 259], "start_point": {"row": 84, "column": 72}, "end_point": {"row": 84, "column": 77}}, {"id": 258, "type": "*", "text": "*", "parent": 257, "children": [], "start_point": {"row": 84, "column": 72}, "end_point": {"row": 84, "column": 73}}, {"id": 259, "type": "identifier", "text": "list", "parent": 257, "children": [], "start_point": {"row": 84, "column": 73}, "end_point": {"row": 84, "column": 77}}, {"id": 260, "type": "declaration", "text": "void btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup);", "parent": 0, "children": [261, 262], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 72}}, {"id": 261, "type": "primitive_type", "text": "void", "parent": 260, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 4}}, {"id": 262, "type": "function_declarator", "text": "btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup)", "parent": 260, "children": [263, 264], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 71}}, {"id": 263, "type": "identifier", "text": "btor_ass_delete_fun_list", "parent": 262, "children": [], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 29}}, {"id": 264, "type": "parameter_list", "text": "(BtorFunAssList *list, bool auto_cleanup)", "parent": 262, "children": [265, 270], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 71}}, {"id": 265, "type": "parameter_declaration", "text": "BtorFunAssList *list", "parent": 264, "children": [266, 267], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 51}}, {"id": 266, "type": "type_identifier", "text": "BtorFunAssList", "parent": 265, "children": [], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 45}}, {"id": 267, "type": "pointer_declarator", "text": "*list", "parent": 265, "children": [268, 269], "start_point": {"row": 87, "column": 46}, "end_point": {"row": 87, "column": 51}}, {"id": 268, "type": "*", "text": "*", "parent": 267, "children": [], "start_point": {"row": 87, "column": 46}, "end_point": {"row": 87, "column": 47}}, {"id": 269, "type": "identifier", "text": "list", "parent": 267, "children": [], "start_point": {"row": 87, "column": 47}, "end_point": {"row": 87, "column": 51}}, {"id": 270, "type": "parameter_declaration", "text": "bool auto_cleanup", "parent": 264, "children": [271, 272], "start_point": {"row": 87, "column": 53}, "end_point": {"row": 87, "column": 70}}, {"id": 271, "type": "primitive_type", "text": "bool", "parent": 270, "children": [], "start_point": {"row": 87, "column": 53}, "end_point": {"row": 87, "column": 57}}, {"id": 272, "type": "identifier", "text": "auto_cleanup", "parent": 270, "children": [], "start_point": {"row": 87, "column": 58}, "end_point": {"row": 87, "column": 70}}, {"id": 273, "type": "declaration", "text": "BtorFunAss *btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size);", "parent": 0, "children": [274, 275], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 92, "column": 45}}, {"id": 274, "type": "type_identifier", "text": "BtorFunAss", "parent": 273, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 10}}, {"id": 275, "type": "pointer_declarator", "text": "*btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size)", "parent": 273, "children": [276, 277], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 92, "column": 44}}, {"id": 276, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 12}}, {"id": 277, "type": "function_declarator", "text": "btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size)", "parent": 275, "children": [278, 279], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 92, "column": 44}}, {"id": 278, "type": "identifier", "text": "btor_ass_get_fun", "parent": 277, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 28}}, {"id": 279, "type": "parameter_list", "text": "(const char **indices,\n const char **values,\n uint32_t size)", "parent": 277, "children": [280, 287, 294], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 92, "column": 44}}, {"id": 280, "type": "parameter_declaration", "text": "const char **indices", "parent": 279, "children": [281, 282], "start_point": {"row": 90, "column": 30}, "end_point": {"row": 90, "column": 50}}, {"id": 281, "type": "primitive_type", "text": "char", "parent": 280, "children": [], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 40}}, {"id": 282, "type": "pointer_declarator", "text": "**indices", "parent": 280, "children": [283, 284], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 50}}, {"id": 283, "type": "*", "text": "*", "parent": 282, "children": [], "start_point": {"row": 90, "column": 41}, "end_point": {"row": 90, "column": 42}}, {"id": 284, "type": "pointer_declarator", "text": "*indices", "parent": 282, "children": [285, 286], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 50}}, {"id": 285, "type": "*", "text": "*", "parent": 284, "children": [], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 43}}, {"id": 286, "type": "identifier", "text": "indices", "parent": 284, "children": [], "start_point": {"row": 90, "column": 43}, "end_point": {"row": 90, "column": 50}}, {"id": 287, "type": "parameter_declaration", "text": "const char **values", "parent": 279, "children": [288, 289], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 49}}, {"id": 288, "type": "primitive_type", "text": "char", "parent": 287, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 40}}, {"id": 289, "type": "pointer_declarator", "text": "**values", "parent": 287, "children": [290, 291], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 49}}, {"id": 290, "type": "*", "text": "*", "parent": 289, "children": [], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 42}}, {"id": 291, "type": "pointer_declarator", "text": "*values", "parent": 289, "children": [292, 293], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 91, "column": 49}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 91, "column": 43}}, {"id": 293, "type": "identifier", "text": "values", "parent": 291, "children": [], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 49}}, {"id": 294, "type": "parameter_declaration", "text": "uint32_t size", "parent": 279, "children": [295, 296], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 43}}, {"id": 295, "type": "primitive_type", "text": "uint32_t", "parent": 294, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 38}}, {"id": 296, "type": "identifier", "text": "size", "parent": 294, "children": [], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 43}}, {"id": 297, "type": "declaration", "text": "void btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size);", "parent": 0, "children": [298, 299], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 98, "column": 53}}, {"id": 298, "type": "primitive_type", "text": "void", "parent": 297, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 4}}, {"id": 299, "type": "function_declarator", "text": "btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size)", "parent": 297, "children": [300, 301], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 98, "column": 52}}, {"id": 300, "type": "identifier", "text": "btor_ass_get_fun_indices_values", "parent": 299, "children": [], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 36}}, {"id": 301, "type": "parameter_list", "text": "(BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size)", "parent": 299, "children": [302, 307, 316, 325], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 98, "column": 52}}, {"id": 302, "type": "parameter_declaration", "text": "BtorFunAss *ass", "parent": 301, "children": [303, 304], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 53}}, {"id": 303, "type": "type_identifier", "text": "BtorFunAss", "parent": 302, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 48}}, {"id": 304, "type": "pointer_declarator", "text": "*ass", "parent": 302, "children": [305, 306], "start_point": {"row": 95, "column": 49}, "end_point": {"row": 95, "column": 53}}, {"id": 305, "type": "*", "text": "*", "parent": 304, "children": [], "start_point": {"row": 95, "column": 49}, "end_point": {"row": 95, "column": 50}}, {"id": 306, "type": "identifier", "text": "ass", "parent": 304, "children": [], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 53}}, {"id": 307, "type": "parameter_declaration", "text": "char ***indices", "parent": 301, "children": [308, 309], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 53}}, {"id": 308, "type": "primitive_type", "text": "char", "parent": 307, "children": [], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 42}}, {"id": 309, "type": "pointer_declarator", "text": "***indices", "parent": 307, "children": [310, 311], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 53}}, {"id": 310, "type": "*", "text": "*", "parent": 309, "children": [], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 44}}, {"id": 311, "type": "pointer_declarator", "text": "**indices", "parent": 309, "children": [312, 313], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 53}}, {"id": 312, "type": "*", "text": "*", "parent": 311, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 45}}, {"id": 313, "type": "pointer_declarator", "text": "*indices", "parent": 311, "children": [314, 315], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 53}}, {"id": 314, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 46}}, {"id": 315, "type": "identifier", "text": "indices", "parent": 313, "children": [], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 53}}, {"id": 316, "type": "parameter_declaration", "text": "char ***values", "parent": 301, "children": [317, 318], "start_point": {"row": 97, "column": 38}, "end_point": {"row": 97, "column": 52}}, {"id": 317, "type": "primitive_type", "text": "char", "parent": 316, "children": [], "start_point": {"row": 97, "column": 38}, "end_point": {"row": 97, "column": 42}}, {"id": 318, "type": "pointer_declarator", "text": "***values", "parent": 316, "children": [319, 320], "start_point": {"row": 97, "column": 43}, "end_point": {"row": 97, "column": 52}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 97, "column": 43}, "end_point": {"row": 97, "column": 44}}, {"id": 320, "type": "pointer_declarator", "text": "**values", "parent": 318, "children": [321, 322], "start_point": {"row": 97, "column": 44}, "end_point": {"row": 97, "column": 52}}, {"id": 321, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 97, "column": 44}, "end_point": {"row": 97, "column": 45}}, {"id": 322, "type": "pointer_declarator", "text": "*values", "parent": 320, "children": [323, 324], "start_point": {"row": 97, "column": 45}, "end_point": {"row": 97, "column": 52}}, {"id": 323, "type": "*", "text": "*", "parent": 322, "children": [], "start_point": {"row": 97, "column": 45}, "end_point": {"row": 97, "column": 46}}, {"id": 324, "type": "identifier", "text": "values", "parent": 322, "children": [], "start_point": {"row": 97, "column": 46}, "end_point": {"row": 97, "column": 52}}, {"id": 325, "type": "parameter_declaration", "text": "uint32_t size", "parent": 301, "children": [326, 327], "start_point": {"row": 98, "column": 38}, "end_point": {"row": 98, "column": 51}}, {"id": 326, "type": "primitive_type", "text": "uint32_t", "parent": 325, "children": [], "start_point": {"row": 98, "column": 38}, "end_point": {"row": 98, "column": 46}}, {"id": 327, "type": "identifier", "text": "size", "parent": 325, "children": [], "start_point": {"row": 98, "column": 47}, "end_point": {"row": 98, "column": 51}}, {"id": 328, "type": "declaration", "text": "BtorFunAss *btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);", "parent": 0, "children": [329, 330], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 104, "column": 45}}, {"id": 329, "type": "type_identifier", "text": "BtorFunAss", "parent": 328, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 10}}, {"id": 330, "type": "pointer_declarator", "text": "*btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)", "parent": 328, "children": [331, 332], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 104, "column": 44}}, {"id": 331, "type": "*", "text": "*", "parent": 330, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 12}}, {"id": 332, "type": "function_declarator", "text": "btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)", "parent": 330, "children": [333, 334], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 104, "column": 44}}, {"id": 333, "type": "identifier", "text": "btor_ass_new_fun", "parent": 332, "children": [], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 28}}, {"id": 334, "type": "parameter_list", "text": "(BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)", "parent": 332, "children": [335, 340, 347, 354], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 104, "column": 44}}, {"id": 335, "type": "parameter_declaration", "text": "BtorFunAssList *list", "parent": 334, "children": [336, 337], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 50}}, {"id": 336, "type": "type_identifier", "text": "BtorFunAssList", "parent": 335, "children": [], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 44}}, {"id": 337, "type": "pointer_declarator", "text": "*list", "parent": 335, "children": [338, 339], "start_point": {"row": 101, "column": 45}, "end_point": {"row": 101, "column": 50}}, {"id": 338, "type": "*", "text": "*", "parent": 337, "children": [], "start_point": {"row": 101, "column": 45}, "end_point": {"row": 101, "column": 46}}, {"id": 339, "type": "identifier", "text": "list", "parent": 337, "children": [], "start_point": {"row": 101, "column": 46}, "end_point": {"row": 101, "column": 50}}, {"id": 340, "type": "parameter_declaration", "text": "char **indices", "parent": 334, "children": [341, 342], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 44}}, {"id": 341, "type": "primitive_type", "text": "char", "parent": 340, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 34}}, {"id": 342, "type": "pointer_declarator", "text": "**indices", "parent": 340, "children": [343, 344], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 44}}, {"id": 343, "type": "*", "text": "*", "parent": 342, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 36}}, {"id": 344, "type": "pointer_declarator", "text": "*indices", "parent": 342, "children": [345, 346], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 44}}, {"id": 345, "type": "*", "text": "*", "parent": 344, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 37}}, {"id": 346, "type": "identifier", "text": "indices", "parent": 344, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 44}}, {"id": 347, "type": "parameter_declaration", "text": "char **values", "parent": 334, "children": [348, 349], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 43}}, {"id": 348, "type": "primitive_type", "text": "char", "parent": 347, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 34}}, {"id": 349, "type": "pointer_declarator", "text": "**values", "parent": 347, "children": [350, 351], "start_point": {"row": 103, "column": 35}, "end_point": {"row": 103, "column": 43}}, {"id": 350, "type": "*", "text": "*", "parent": 349, "children": [], "start_point": {"row": 103, "column": 35}, "end_point": {"row": 103, "column": 36}}, {"id": 351, "type": "pointer_declarator", "text": "*values", "parent": 349, "children": [352, 353], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 43}}, {"id": 352, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 37}}, {"id": 353, "type": "identifier", "text": "values", "parent": 351, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 43}}, {"id": 354, "type": "parameter_declaration", "text": "uint32_t size", "parent": 334, "children": [355, 356], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 43}}, {"id": 355, "type": "primitive_type", "text": "uint32_t", "parent": 354, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 38}}, {"id": 356, "type": "identifier", "text": "size", "parent": 354, "children": [], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 43}}, {"id": 357, "type": "declaration", "text": "void btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);", "parent": 0, "children": [358, 359], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 110, "column": 42}}, {"id": 358, "type": "primitive_type", "text": "void", "parent": 357, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 4}}, {"id": 359, "type": "function_declarator", "text": "btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)", "parent": 357, "children": [360, 361], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 110, "column": 41}}, {"id": 360, "type": "identifier", "text": "btor_ass_release_fun", "parent": 359, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 25}}, {"id": 361, "type": "parameter_list", "text": "(BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size)", "parent": 359, "children": [362, 367, 374, 381], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 110, "column": 41}}, {"id": 362, "type": "parameter_declaration", "text": "BtorFunAssList *list", "parent": 361, "children": [363, 364], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 47}}, {"id": 363, "type": "type_identifier", "text": "BtorFunAssList", "parent": 362, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 41}}, {"id": 364, "type": "pointer_declarator", "text": "*list", "parent": 362, "children": [365, 366], "start_point": {"row": 107, "column": 42}, "end_point": {"row": 107, "column": 47}}, {"id": 365, "type": "*", "text": "*", "parent": 364, "children": [], "start_point": {"row": 107, "column": 42}, "end_point": {"row": 107, "column": 43}}, {"id": 366, "type": "identifier", "text": "list", "parent": 364, "children": [], "start_point": {"row": 107, "column": 43}, "end_point": {"row": 107, "column": 47}}, {"id": 367, "type": "parameter_declaration", "text": "char **indices", "parent": 361, "children": [368, 369], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 41}}, {"id": 368, "type": "primitive_type", "text": "char", "parent": 367, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 31}}, {"id": 369, "type": "pointer_declarator", "text": "**indices", "parent": 367, "children": [370, 371], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 41}}, {"id": 370, "type": "*", "text": "*", "parent": 369, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 33}}, {"id": 371, "type": "pointer_declarator", "text": "*indices", "parent": 369, "children": [372, 373], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 41}}, {"id": 372, "type": "*", "text": "*", "parent": 371, "children": [], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 34}}, {"id": 373, "type": "identifier", "text": "indices", "parent": 371, "children": [], "start_point": {"row": 108, "column": 34}, "end_point": {"row": 108, "column": 41}}, {"id": 374, "type": "parameter_declaration", "text": "char **values", "parent": 361, "children": [375, 376], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 40}}, {"id": 375, "type": "primitive_type", "text": "char", "parent": 374, "children": [], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 31}}, {"id": 376, "type": "pointer_declarator", "text": "**values", "parent": 374, "children": [377, 378], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 40}}, {"id": 377, "type": "*", "text": "*", "parent": 376, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 33}}, {"id": 378, "type": "pointer_declarator", "text": "*values", "parent": 376, "children": [379, 380], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 40}}, {"id": 379, "type": "*", "text": "*", "parent": 378, "children": [], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 34}}, {"id": 380, "type": "identifier", "text": "values", "parent": 378, "children": [], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 40}}, {"id": 381, "type": "parameter_declaration", "text": "uint32_t size", "parent": 361, "children": [382, 383], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 40}}, {"id": 382, "type": "primitive_type", "text": "uint32_t", "parent": 381, "children": [], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 35}}, {"id": 383, "type": "identifier", "text": "size", "parent": 381, "children": [], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 40}}, {"id": 384, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 6}}]}, "node_categories": {"declarations": {"functions": [74, 86, 101, 116, 128, 140, 155, 235, 247, 262, 277, 299, 332, 359], "variables": [15, 21, 33, 39, 44, 52, 57, 60, 65, 70, 77, 82, 89, 94, 99, 104, 109, 112, 119, 124, 131, 136, 143, 148, 153, 158, 163, 168, 174, 183, 190, 197, 200, 205, 213, 218, 221, 226, 231, 238, 243, 250, 255, 260, 265, 270, 273, 280, 287, 294, 297, 302, 307, 316, 325, 328, 335, 340, 347, 354, 357, 362, 367, 374, 381], "classes": [17, 18, 23, 24, 27, 28, 49, 50, 170, 171, 176, 177, 180, 181, 210, 211], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 25, 26, 29, 30, 31, 32, 37, 38, 40, 43, 45, 48, 51, 53, 56, 59, 61, 64, 66, 69, 71, 75, 78, 81, 83, 87, 90, 93, 95, 98, 102, 105, 108, 111, 113, 117, 123, 129, 132, 135, 137, 141, 144, 147, 152, 156, 159, 162, 167, 172, 173, 178, 179, 182, 189, 196, 199, 201, 204, 206, 209, 212, 214, 217, 220, 222, 225, 227, 230, 232, 236, 239, 242, 244, 248, 251, 254, 256, 259, 263, 266, 269, 272, 274, 278, 286, 293, 296, 300, 303, 306, 315, 324, 327, 329, 333, 336, 339, 346, 353, 356, 360, 363, 366, 373, 380, 383, 384], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_new_bv_list (BtorMemMgr *mm)"}, {"node_id": 86, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list)"}, {"node_id": 101, "universal_type": "function", "name": "auto_cleanup)", "text_snippet": "btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup)"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_get_bv (const char *ass)"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_get_bv_str (BtorBVAss *ass)"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_new_bv (BtorBVAssList *list, char *ass)"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_release_bv (BtorBVAssList *list, const char *ass)"}, {"node_id": 235, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_new_fun_list (BtorMemMgr *mm)"}, {"node_id": 247, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list)"}, {"node_id": 262, "universal_type": "function", "name": "auto_cleanup)", "text_snippet": "btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup)"}, {"node_id": 277, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_get_fun (const char **indices,\n const char **values,\n "}, {"node_id": 299, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indi"}, {"node_id": 332, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n "}, {"node_id": 359, "universal_type": "function", "name": "unknown", "text_snippet": "btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n "}], "class_declarations": [{"node_id": 17, "universal_type": "class", "name": "BtorBVAss", "text_snippet": "struct BtorBVAss"}, {"node_id": 18, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 23, "universal_type": "class", "name": "BtorBVAssList", "text_snippet": "struct BtorBVAssList"}, {"node_id": 24, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 27, "universal_type": "class", "name": "BtorBVAss", "text_snippet": "struct BtorBVAss\n{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only *"}, {"node_id": 28, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 49, "universal_type": "class", "name": "BtorBVAssList", "text_snippet": "struct BtorBVAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n}"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 170, "universal_type": "class", "name": "BtorFunAss", "text_snippet": "struct BtorFunAss"}, {"node_id": 171, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 176, "universal_type": "class", "name": "BtorFunAssList", "text_snippet": "struct BtorFunAssList"}, {"node_id": 177, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 180, "universal_type": "class", "name": "BtorFunAss", "text_snippet": "struct BtorFunAss\n{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *"}, {"node_id": 181, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 210, "universal_type": "class", "name": "BtorFunAssList", "text_snippet": "struct BtorFunAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;"}, {"node_id": 211, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <stdbool.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdint.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"utils/btormem.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/* Boolector: Satisfiability Modulo Theories (SMT) solver.\n *\n * Copyright (C) 2007-2021 by the authors listed in the AUTHORS file.\n *\n * This file is part of Boolector.\n * See COPYING for more information on using this software.\n */\n\n#ifndef BTORASS_H_INCLUDED\n#define BTORASS_H_INCLUDED\n\n#include <stdbool.h>\n#include <stdint.h>\n#include \"utils/btormem.h\"\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorBVAss BtorBVAss;\ntypedef struct BtorBVAssList BtorBVAssList;\n\nstruct BtorBVAss\n{\n#ifndef NDEBUG\n const char *cloned_assignment; /* needed for shadow clone only */\n#endif\n BtorBVAss *prev;\n BtorBVAss *next;\n};\n\nstruct BtorBVAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorBVAss *first;\n BtorBVAss *last;\n};\n\n/* Create new bv assignment list. */\nBtorBVAssList *btor_ass_new_bv_list (BtorMemMgr *mm);\n\n/* Clone bv assignment list. */\nBtorBVAssList *btor_ass_clone_bv_list (BtorMemMgr *mm, BtorBVAssList *list);\n\n/* Delete bv assignment list. */\nvoid btor_ass_delete_bv_list (BtorBVAssList *list, bool auto_cleanup);\n\n/* Get BtorBVAss bucket reference from bv assignment string. */\nBtorBVAss *btor_ass_get_bv (const char *ass);\n\n/* Get bv assignment string from BtorBVAss bucket. */\nconst char *btor_ass_get_bv_str (BtorBVAss *ass);\n\n/* Create new bv assignment and add it to the list. */\nBtorBVAss *btor_ass_new_bv (BtorBVAssList *list, char *ass);\n\n/* Release bv assignment and remove it from the list. */\nvoid btor_ass_release_bv (BtorBVAssList *list, const char *ass);\n\n/*------------------------------------------------------------------------*/\n\ntypedef struct BtorFunAss BtorFunAss;\ntypedef struct BtorFunAssList BtorFunAssList;\n\nstruct BtorFunAss\n{\n char **cloned_indices;\n char **cloned_values;\n uint32_t size;\n BtorFunAss *prev;\n BtorFunAss *next;\n};\n\nstruct BtorFunAssList\n{\n BtorMemMgr *mm;\n uint32_t count;\n BtorFunAss *first;\n BtorFunAss *last;\n};\n\n/* Create new array assignment list. */\nBtorFunAssList *btor_ass_new_fun_list (BtorMemMgr *mm);\n\n/* Clone array assignment list. */\nBtorFunAssList *btor_ass_clone_fun_list (BtorMemMgr *mm, BtorFunAssList *list);\n\n/* Delete array assignment list. */\nvoid btor_ass_delete_fun_list (BtorFunAssList *list, bool auto_cleanup);\n\n/* Get BtorFunAss bucket reference from indices reference. */\nBtorFunAss *btor_ass_get_fun (const char **indices,\n const char **values,\n uint32_t size);\n\n/* Get indices and values references from BtorFunAss bucket. */\nvoid btor_ass_get_fun_indices_values (BtorFunAss *ass,\n char ***indices,\n char ***values,\n uint32_t size);\n\n/* Create new array assignment and add it to the list. */\nBtorFunAss *btor_ass_new_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n/* Release array assignment and remove it from the list. */\nvoid btor_ass_release_fun (BtorFunAssList *list,\n char **indices,\n char **values,\n uint32_t size);\n\n#endif\n"}
80,440
c
#ifndef DMZ_FILE_CACHE_DOT_H #define DMZ_FILE_CACHE_DOT_H #include <dmzRuntimeRTTINamed.h> #include <dmzTypesString.h> namespace dmz { //! FileCache interface name. const char FileCacheInterfaceName[] = "FileCacheInterface"; enum FileCacheResultEnum { CacheFileFound = 1, //!< File found. UnknownFileLocation, //!< Unknown file location. FileNotFoundAtLocation, //!< File not found at given location. }; class RuntimeContext; class FileCacheAction { public: virtual void process_file ( const FileCacheResultEnum RequestResult, const String &LocalFilePath, const String &RequestedFileLocation, const String &RequestedFileName) = 0; protected: FileCacheAction () {;} ~FileCacheAction () {;} private: FileCacheAction (const FileCacheAction &); FileCacheAction &operator= (const FileCacheAction &); }; class FileCache { public: static FileCache *get_interface (RuntimeContext *context); virtual Boolean process_all_requests (const Float64 TimeOut = -1.0) = 0; virtual void add_file_request ( const String &FileLocation, const String &FileName, FileCacheAction &action) = 0; protected: FileCache (RuntimeContext *context); ~FileCache (); private: FileCache (); FileCache (const FileCache &); FileCache &operator= (const FileCache &); RuntimeContext *__context; }; }; /*! \brief Returns interface to the dmz::FileCache. \param[in] context Pointer to runtime context. \return Returns a pointer to the FileCache. Will return NULL if a FileCache has not been created. */ inline dmz::FileCache * dmz::FileCache::get_interface (RuntimeContext *context) { return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context); } //! Constructor. inline dmz::FileCache::FileCache (RuntimeContext *context) : __context (context) { store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this); } //! Destructor. inline dmz::FileCache::~FileCache () { remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this); __context = 0; } #endif // DMZ_FILE_CACHE_DOT_H
31.81
70
(translation_unit) "#ifndef DMZ_FILE_CACHE_DOT_H\n#define DMZ_FILE_CACHE_DOT_H\n\n#include <dmzRuntimeRTTINamed.h>\n#include <dmzTypesString.h>\n\nnamespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = "FileCacheInterface";\n\n enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n };\n\n class RuntimeContext;\n\n class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}\n ~FileCacheAction () {;}\n\n private:\n FileCacheAction (const FileCacheAction &);\n FileCacheAction &operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context);\n\n virtual Boolean process_all_requests (const Float64 TimeOut = -1.0) = 0;\n\n virtual void add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0;\n\n protected:\n FileCache (RuntimeContext *context);\n ~FileCache ();\n\n private:\n FileCache ();\n FileCache (const FileCache &);\n FileCache &operator= (const FileCache &);\n\n RuntimeContext *__context;\n };\n};\n\n\n/*!\n\n\brief Returns interface to the dmz::FileCache.\n\param[in] context Pointer to runtime context.\n\return Returns a pointer to the FileCache. Will return NULL if a FileCache has not\nbeen created.\n\n*/\ninline dmz::FileCache *\ndmz::FileCache::get_interface (RuntimeContext *context) {\n\n return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);\n}\n\n\n//! Constructor.\ninline\ndmz::FileCache::FileCache (RuntimeContext *context) : __context (context) {\n\n store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n}\n\n\n//! Destructor.\ninline\ndmz::FileCache::~FileCache () {\n\n remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n __context = 0;\n}\n\n#endif // DMZ_FILE_CACHE_DOT_H\n" (preproc_ifdef) "#ifndef DMZ_FILE_CACHE_DOT_H\n#define DMZ_FILE_CACHE_DOT_H\n\n#include <dmzRuntimeRTTINamed.h>\n#include <dmzTypesString.h>\n\nnamespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = "FileCacheInterface";\n\n enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n };\n\n class RuntimeContext;\n\n class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}\n ~FileCacheAction () {;}\n\n private:\n FileCacheAction (const FileCacheAction &);\n FileCacheAction &operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context);\n\n virtual Boolean process_all_requests (const Float64 TimeOut = -1.0) = 0;\n\n virtual void add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0;\n\n protected:\n FileCache (RuntimeContext *context);\n ~FileCache ();\n\n private:\n FileCache ();\n FileCache (const FileCache &);\n FileCache &operator= (const FileCache &);\n\n RuntimeContext *__context;\n };\n};\n\n\n/*!\n\n\brief Returns interface to the dmz::FileCache.\n\param[in] context Pointer to runtime context.\n\return Returns a pointer to the FileCache. Will return NULL if a FileCache has not\nbeen created.\n\n*/\ninline dmz::FileCache *\ndmz::FileCache::get_interface (RuntimeContext *context) {\n\n return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);\n}\n\n\n//! Constructor.\ninline\ndmz::FileCache::FileCache (RuntimeContext *context) : __context (context) {\n\n store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n}\n\n\n//! Destructor.\ninline\ndmz::FileCache::~FileCache () {\n\n remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n __context = 0;\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "DMZ_FILE_CACHE_DOT_H" (preproc_def) "#define DMZ_FILE_CACHE_DOT_H\n" (#define) "#define" (identifier) "DMZ_FILE_CACHE_DOT_H" (preproc_include) "#include <dmzRuntimeRTTINamed.h>\n" (#include) "#include" (system_lib_string) "<dmzRuntimeRTTINamed.h>" (preproc_include) "#include <dmzTypesString.h>\n" (#include) "#include" (system_lib_string) "<dmzTypesString.h>" (function_definition) "namespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = "FileCacheInterface";\n\n enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n };\n\n class RuntimeContext;\n\n class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}\n ~FileCacheAction () {;}" (type_identifier) "namespace" (identifier) "dmz" (compound_statement) "{\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = "FileCacheInterface";\n\n enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n };\n\n class RuntimeContext;\n\n class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}\n ~FileCacheAction () {;}" ({) "{" (comment) "//! FileCache interface name." (declaration) "const char FileCacheInterfaceName[] = "FileCacheInterface";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "FileCacheInterfaceName[] = "FileCacheInterface"" (array_declarator) "FileCacheInterfaceName[]" (identifier) "FileCacheInterfaceName" ([) "[" (]) "]" (=) "=" (string_literal) ""FileCacheInterface"" (") """ (string_content) "FileCacheInterface" (") """ (;) ";" (enum_specifier) "enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n }" (enum) "enum" (type_identifier) "FileCacheResultEnum" (enumerator_list) "{\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n }" ({) "{" (enumerator) "CacheFileFound = 1" (identifier) "CacheFileFound" (=) "=" (number_literal) "1" (,) "," (comment) "//!< File found." (enumerator) "UnknownFileLocation" (identifier) "UnknownFileLocation" (,) "," (comment) "//!< Unknown file location." (enumerator) "FileNotFoundAtLocation" (identifier) "FileNotFoundAtLocation" (,) "," (comment) "//!< File not found at given location." (}) "}" (;) ";" (declaration) "class RuntimeContext;" (type_identifier) "class" (identifier) "RuntimeContext" (;) ";" (function_definition) "class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}" (type_identifier) "class" (identifier) "FileCacheAction" (compound_statement) "{\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}" ({) "{" (labeled_statement) "public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;" (statement_identifier) "public" (:) ":" (declaration) "virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0" (function_declarator) "process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName)" (identifier) "process_file" (parameter_list) "(\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName)" (() "(" (parameter_declaration) "const FileCacheResultEnum RequestResult" (type_qualifier) "const" (const) "const" (type_identifier) "FileCacheResultEnum" (identifier) "RequestResult" (,) "," (parameter_declaration) "const String &LocalFilePath" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "LocalFilePath" (,) "," (parameter_declaration) "const String &RequestedFileLocation" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "RequestedFileLocation" (,) "," (parameter_declaration) "const String &RequestedFileName" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "RequestedFileName" ()) ")" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "protected:\n FileCacheAction () {;" (statement_identifier) "protected" (:) ":" (expression_statement) "FileCacheAction () {;" (call_expression) "FileCacheAction ()" (identifier) "FileCacheAction" (argument_list) "()" (() "(" ()) ")" (ERROR) "{" ({) "{" (;) ";" (}) "}" (expression_statement) "~FileCacheAction () {;" (unary_expression) "~FileCacheAction ()" (~) "~" (call_expression) "FileCacheAction ()" (identifier) "FileCacheAction" (argument_list) "()" (() "(" ()) ")" (ERROR) "{" ({) "{" (;) ";" (}) "}" (labeled_statement) "private:\n FileCacheAction (const FileCacheAction &);" (statement_identifier) "private" (:) ":" (declaration) "FileCacheAction (const FileCacheAction &);" (macro_type_specifier) "FileCacheAction (const FileCacheAction &)" (identifier) "FileCacheAction" (() "(" (type_descriptor) "const FileCacheAction" (type_qualifier) "const" (const) "const" (type_identifier) "FileCacheAction" (ERROR) "&" (&) "&" ()) ")" (identifier) "" (;) ";" (expression_statement) "FileCacheAction &operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context);" (binary_expression) "FileCacheAction &operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context)" (identifier) "FileCacheAction" (&) "&" (assignment_expression) "operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context)" (identifier) "operator" (=) "=" (compound_literal_expression) "(const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context)" (() "(" (type_descriptor) "const FileCacheAction" (type_qualifier) "const" (const) "const" (type_identifier) "FileCacheAction" (ERROR) "&" (&) "&" ()) ")" (ERROR) ";\n };\n\n class FileCache" (;) ";" (}) "}" (;) ";" (identifier) "class" (identifier) "FileCache" (initializer_list) "{\n\n public:\n static FileCache *get_interface (RuntimeContext *context)" ({) "{" (initializer_pair) "public:\n static FileCache *get_interface (RuntimeContext *context)" (field_identifier) "public" (:) ":" (ERROR) "static" (identifier) "static" (binary_expression) "FileCache *get_interface (RuntimeContext *context)" (identifier) "FileCache" (*) "*" (call_expression) "get_interface (RuntimeContext *context)" (identifier) "get_interface" (argument_list) "(RuntimeContext *context)" (() "(" (binary_expression) "RuntimeContext *context" (identifier) "RuntimeContext" (*) "*" (identifier) "context" ()) ")" (}) "" (;) ";" (declaration) "virtual Boolean process_all_requests (const Float64 TimeOut = -1.0) = 0;" (type_identifier) "virtual" (ERROR) "Boolean" (identifier) "Boolean" (init_declarator) "process_all_requests (const Float64 TimeOut = -1.0" (function_declarator) "process_all_requests (const Float64 TimeOut" (identifier) "process_all_requests" (parameter_list) "(const Float64 TimeOut" (() "(" (parameter_declaration) "const Float64 TimeOut" (type_qualifier) "const" (const) "const" (type_identifier) "Float64" (identifier) "TimeOut" ()) "" (=) "=" (number_literal) "-1.0" (ERROR) ") = 0" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0" (function_declarator) "add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action)" (identifier) "add_file_request" (parameter_list) "(\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action)" (() "(" (parameter_declaration) "const String &FileLocation" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "FileLocation" (,) "," (parameter_declaration) "const String &FileName" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "FileName" (,) "," (parameter_declaration) "FileCacheAction &action" (type_identifier) "FileCacheAction" (ERROR) "&" (&) "&" (identifier) "action" ()) ")" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "protected:\n FileCache (RuntimeContext *context);" (statement_identifier) "protected" (:) ":" (expression_statement) "FileCache (RuntimeContext *context);" (call_expression) "FileCache (RuntimeContext *context)" (identifier) "FileCache" (argument_list) "(RuntimeContext *context)" (() "(" (binary_expression) "RuntimeContext *context" (identifier) "RuntimeContext" (*) "*" (identifier) "context" ()) ")" (;) ";" (expression_statement) "~FileCache ();" (unary_expression) "~FileCache ()" (~) "~" (call_expression) "FileCache ()" (identifier) "FileCache" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n FileCache ();" (statement_identifier) "private" (:) ":" (expression_statement) "FileCache ();" (call_expression) "FileCache ()" (identifier) "FileCache" (argument_list) "()" (() "(" ()) ")" (;) ";" (macro_type_specifier) "FileCache (const FileCache &)" (identifier) "FileCache" (() "(" (type_descriptor) "const FileCache" (type_qualifier) "const" (const) "const" (type_identifier) "FileCache" (ERROR) "&" (&) "&" ()) ")" (;) ";" (expression_statement) "FileCache &operator= (const FileCache &);\n\n RuntimeContext *__context;" (binary_expression) "FileCache &operator= (const FileCache &);\n\n RuntimeContext *__context" (identifier) "FileCache" (&) "&" (assignment_expression) "operator= (const FileCache &);\n\n RuntimeContext *__context" (identifier) "operator" (=) "=" (binary_expression) "(const FileCache &);\n\n RuntimeContext *__context" (cast_expression) "(const FileCache &);\n\n RuntimeContext" (() "(" (type_descriptor) "const FileCache" (type_qualifier) "const" (const) "const" (type_identifier) "FileCache" (ERROR) "&" (&) "&" ()) ")" (ERROR) ";" (;) ";" (identifier) "RuntimeContext" (*) "*" (identifier) "__context" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (comment) "/*!\n\n\brief Returns interface to the dmz::FileCache.\n\param[in] context Pointer to runtime context.\n\return Returns a pointer to the FileCache. Will return NULL if a FileCache has not\nbeen created.\n\n*/" (function_definition) "inline dmz::FileCache *\ndmz::FileCache::get_interface (RuntimeContext *context) {\n\n return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);\n}" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "dmz" (ERROR) "::FileCache" (:) ":" (:) ":" (identifier) "FileCache" (pointer_declarator) "*\ndmz::FileCache::get_interface (RuntimeContext *context)" (*) "*" (ERROR) "dmz::FileCache::" (identifier) "dmz" (:) ":" (:) ":" (identifier) "FileCache" (:) ":" (:) ":" (function_declarator) "get_interface (RuntimeContext *context)" (identifier) "get_interface" (parameter_list) "(RuntimeContext *context)" (() "(" (parameter_declaration) "RuntimeContext *context" (type_identifier) "RuntimeContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" ()) ")" (compound_statement) "{\n\n return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);\n}" ({) "{" (return_statement) "return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);" (return) "return" (cast_expression) "(FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context)" (() "(" (type_descriptor) "FileCache *" (type_identifier) "FileCache" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "lookup_rtti_named_interface (FileCacheInterfaceName, context)" (identifier) "lookup_rtti_named_interface" (argument_list) "(FileCacheInterfaceName, context)" (() "(" (identifier) "FileCacheInterfaceName" (,) "," (identifier) "context" ()) ")" (;) ";" (}) "}" (comment) "//! Constructor." (function_definition) "inline\ndmz::FileCache::FileCache (RuntimeContext *context) : __context (context) {\n\n store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n}" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "dmz" (ERROR) "::FileCache::" (:) ":" (:) ":" (identifier) "FileCache" (:) ":" (:) ":" (function_declarator) "FileCache (RuntimeContext *context) : __context (context)" (identifier) "FileCache" (parameter_list) "(RuntimeContext *context)" (() "(" (parameter_declaration) "RuntimeContext *context" (type_identifier) "RuntimeContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" ()) ")" (ERROR) ":" (:) ":" (call_expression) "__context (context)" (identifier) "__context" (argument_list) "(context)" (() "(" (identifier) "context" ()) ")" (compound_statement) "{\n\n store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n}" ({) "{" (expression_statement) "store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);" (call_expression) "store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this)" (identifier) "store_rtti_named_interface" (argument_list) "(FileCacheInterfaceName, __context, (void *)this)" (() "(" (identifier) "FileCacheInterfaceName" (,) "," (identifier) "__context" (,) "," (cast_expression) "(void *)this" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "this" ()) ")" (;) ";" (}) "}" (comment) "//! Destructor." (function_definition) "inline\ndmz::FileCache::~FileCache () {\n\n remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n __context = 0;\n}" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "dmz" (ERROR) "::FileCache::~" (:) ":" (:) ":" (identifier) "FileCache" (:) ":" (:) ":" (~) "~" (function_declarator) "FileCache ()" (identifier) "FileCache" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n\n remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n __context = 0;\n}" ({) "{" (expression_statement) "remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);" (call_expression) "remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this)" (identifier) "remove_rtti_named_interface" (argument_list) "(FileCacheInterfaceName, __context, (void *)this)" (() "(" (identifier) "FileCacheInterfaceName" (,) "," (identifier) "__context" (,) "," (cast_expression) "(void *)this" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "this" ()) ")" (;) ";" (expression_statement) "__context = 0;" (assignment_expression) "__context = 0" (identifier) "__context" (=) "=" (number_literal) "0" (;) ";" (}) "}" (#endif) "#endif" (comment) "// DMZ_FILE_CACHE_DOT_H"
471
26
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 31.81, "nodes": 252, "errors": 0, "source_hash": "adcf1876986bcec2cc2686389793754fda4b3133d210281f240798d838f1c5e0", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DMZ_FILE_CACHE_DOT_H\n#define DMZ_FILE_CACHE_DOT_H\n\n#include <dmzRuntimeRTTINamed.h>\n#include <dmzTypesString.h>\n\nnamespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = \"FileCacheInterface\";\n\n enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n };\n\n class RuntimeContext;\n\n class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}\n ~FileCacheAction () {;}\n\n private:\n FileCacheAction (const FileCacheAction &);\n FileCacheAction &operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context);\n\n virtual Boolean process_all_requests (const Float64 TimeOut = -1.0) = 0;\n\n virtual void add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0;\n\n protected:\n FileCache (RuntimeContext *context);\n ~FileCache ();\n\n private:\n FileCache ();\n FileCache (const FileCache &);\n FileCache &operator= (const FileCache &);\n\n RuntimeContext *__context;\n };\n};\n\n\n/*!\n\n\\brief Returns interface to the dmz::FileCache.\n\\param[in] context Pointer to runtime context.\n\\return Returns a pointer to the FileCache. Will return NULL if a FileCache has not\nbeen created.\n\n*/\ninline dmz::FileCache *\ndmz::FileCache::get_interface (RuntimeContext *context) {\n\n return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);\n}\n\n\n//! Constructor.\ninline\ndmz::FileCache::FileCache (RuntimeContext *context) : __context (context) {\n\n store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n}\n\n\n//! Destructor.\ninline\ndmz::FileCache::~FileCache () {\n\n remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n __context = 0;\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 70, 99, 115, 134, 147, 151, 167, 197, 226, 251], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 94, "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": "DMZ_FILE_CACHE_DOT_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define DMZ_FILE_CACHE_DOT_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": "DMZ_FILE_CACHE_DOT_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include <dmzRuntimeRTTINamed.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<dmzRuntimeRTTINamed.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 32}}, {"id": 9, "type": "preproc_include", "text": "#include <dmzTypesString.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": "system_lib_string", "text": "<dmzTypesString.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 27}}, {"id": 12, "type": "function_definition", "text": "namespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = \"FileCacheInterface\";\n\n enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n };\n\n class RuntimeContext;\n\n class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}\n ~FileCacheAction () {;}", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 30, "column": 32}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 14, "type": "identifier", "text": "dmz", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 13}}, {"id": 15, "type": "declaration", "text": "const char FileCacheInterfaceName[] = \"FileCacheInterface\";", "parent": 12, "children": [16, 17], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 62}}, {"id": 16, "type": "primitive_type", "text": "char", "parent": 15, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 13}}, {"id": 17, "type": "init_declarator", "text": "FileCacheInterfaceName[] = \"FileCacheInterface\"", "parent": 15, "children": [18, 20, 21], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 61}}, {"id": 18, "type": "array_declarator", "text": "FileCacheInterfaceName[]", "parent": 17, "children": [19], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 38}}, {"id": 19, "type": "identifier", "text": "FileCacheInterfaceName", "parent": 18, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 36}}, {"id": 20, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 9, "column": 39}, "end_point": {"row": 9, "column": 40}}, {"id": 21, "type": "string_literal", "text": "\"FileCacheInterface\"", "parent": 17, "children": [], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 9, "column": 61}}, {"id": 22, "type": "enum_specifier", "text": "enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n }", "parent": 12, "children": [23, 24, 25], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 15, "column": 4}}, {"id": 23, "type": "enum", "text": "enum", "parent": 22, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 7}}, {"id": 24, "type": "type_identifier", "text": "FileCacheResultEnum", "parent": 22, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 27}}, {"id": 25, "type": "enumerator_list", "text": "{\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n }", "parent": 22, "children": [26, 30, 32], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 15, "column": 4}}, {"id": 26, "type": "enumerator", "text": "CacheFileFound = 1", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 24}}, {"id": 27, "type": "identifier", "text": "CacheFileFound", "parent": 26, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 20}}, {"id": 28, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 22}}, {"id": 29, "type": "number_literal", "text": "1", "parent": 26, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 24}}, {"id": 30, "type": "enumerator", "text": "UnknownFileLocation", "parent": 25, "children": [31], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 25}}, {"id": 31, "type": "identifier", "text": "UnknownFileLocation", "parent": 30, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 25}}, {"id": 32, "type": "enumerator", "text": "FileNotFoundAtLocation", "parent": 25, "children": [33], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 28}}, {"id": 33, "type": "identifier", "text": "FileNotFoundAtLocation", "parent": 32, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 28}}, {"id": 34, "type": "declaration", "text": "class RuntimeContext;", "parent": 12, "children": [35], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 24}}, {"id": 35, "type": "identifier", "text": "RuntimeContext", "parent": 34, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 23}}, {"id": 36, "type": "function_definition", "text": "class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}", "parent": 12, "children": [37], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 29, "column": 31}}, {"id": 37, "type": "identifier", "text": "FileCacheAction", "parent": 36, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 24}}, {"id": 38, "type": "labeled_statement", "text": "public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;", "parent": 36, "children": [39], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 26, "column": 49}}, {"id": 39, "type": "declaration", "text": "virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;", "parent": 38, "children": [40, 41, 43], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 26, "column": 49}}, {"id": 40, "type": "type_identifier", "text": "virtual", "parent": 39, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 16}}, {"id": 41, "type": "ERROR", "text": "void", "parent": 39, "children": [42], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 21}}, {"id": 42, "type": "identifier", "text": "void", "parent": 41, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 21}}, {"id": 43, "type": "init_declarator", "text": "process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0", "parent": 39, "children": [44, 59, 60], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 26, "column": 48}}, {"id": 44, "type": "function_declarator", "text": "process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName)", "parent": 43, "children": [45, 46], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 26, "column": 44}}, {"id": 45, "type": "identifier", "text": "process_file", "parent": 44, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 34}}, {"id": 46, "type": "parameter_list", "text": "(\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName)", "parent": 44, "children": [47, 50, 53, 56], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 26, "column": 44}}, {"id": 47, "type": "parameter_declaration", "text": "const FileCacheResultEnum RequestResult", "parent": 46, "children": [48, 49], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 51}}, {"id": 48, "type": "type_identifier", "text": "FileCacheResultEnum", "parent": 47, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 37}}, {"id": 49, "type": "identifier", "text": "RequestResult", "parent": 47, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 51}}, {"id": 50, "type": "parameter_declaration", "text": "const String &LocalFilePath", "parent": 46, "children": [51, 52], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 39}}, {"id": 51, "type": "type_identifier", "text": "String", "parent": 50, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 24}}, {"id": 52, "type": "identifier", "text": "LocalFilePath", "parent": 50, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 39}}, {"id": 53, "type": "parameter_declaration", "text": "const String &RequestedFileLocation", "parent": 46, "children": [54, 55], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 47}}, {"id": 54, "type": "type_identifier", "text": "String", "parent": 53, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 24}}, {"id": 55, "type": "identifier", "text": "RequestedFileLocation", "parent": 53, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 47}}, {"id": 56, "type": "parameter_declaration", "text": "const String &RequestedFileName", "parent": 46, "children": [57, 58], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 43}}, {"id": 57, "type": "type_identifier", "text": "String", "parent": 56, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 24}}, {"id": 58, "type": "identifier", "text": "RequestedFileName", "parent": 56, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 43}}, {"id": 59, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 46}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 43, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 48}}, {"id": 61, "type": "labeled_statement", "text": "protected:\n FileCacheAction () {;", "parent": 36, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 29, "column": 30}}, {"id": 62, "type": "call_expression", "text": "FileCacheAction ()", "parent": 61, "children": [63, 64], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 27}}, {"id": 63, "type": "identifier", "text": "FileCacheAction", "parent": 62, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 24}}, {"id": 64, "type": "argument_list", "text": "()", "parent": 62, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 27}}, {"id": 65, "type": "unary_expression", "text": "~FileCacheAction ()", "parent": 12, "children": [66, 67], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 28}}, {"id": 66, "type": "~", "text": "~", "parent": 65, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 67, "type": "call_expression", "text": "FileCacheAction ()", "parent": 65, "children": [68, 69], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 28}}, {"id": 68, "type": "identifier", "text": "FileCacheAction", "parent": 67, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 25}}, {"id": 69, "type": "argument_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 28}}, {"id": 70, "type": "labeled_statement", "text": "private:\n FileCacheAction (const FileCacheAction &);", "parent": 0, "children": [71], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 33, "column": 51}}, {"id": 71, "type": "declaration", "text": "FileCacheAction (const FileCacheAction &);", "parent": 70, "children": [72, 76], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 51}}, {"id": 72, "type": "macro_type_specifier", "text": "FileCacheAction (const FileCacheAction &)", "parent": 71, "children": [73, 74], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 50}}, {"id": 73, "type": "identifier", "text": "FileCacheAction", "parent": 72, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 24}}, {"id": 74, "type": "type_descriptor", "text": "const FileCacheAction", "parent": 72, "children": [75], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 47}}, {"id": 75, "type": "type_identifier", "text": "FileCacheAction", "parent": 74, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 47}}, {"id": 76, "type": "identifier", "text": "", "parent": 71, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 50}}, {"id": 77, "type": "binary_expression", "text": "FileCacheAction &operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context)", "parent": 0, "children": [78, 79], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 40, "column": 66}}, {"id": 78, "type": "identifier", "text": "FileCacheAction", "parent": 77, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 24}}, {"id": 79, "type": "assignment_expression", "text": "operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context)", "parent": 77, "children": [80, 81, 82], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 40, "column": 66}}, {"id": 80, "type": "identifier", "text": "operator", "parent": 79, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 34}}, {"id": 81, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 35}}, {"id": 82, "type": "compound_literal_expression", "text": "(const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context)", "parent": 79, "children": [83, 85, 87], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 40, "column": 66}}, {"id": 83, "type": "type_descriptor", "text": "const FileCacheAction", "parent": 82, "children": [84], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 58}}, {"id": 84, "type": "type_identifier", "text": "FileCacheAction", "parent": 83, "children": [], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 58}}, {"id": 85, "type": "ERROR", "text": ";\n };\n\n class FileCache", "parent": 82, "children": [86], "start_point": {"row": 34, "column": 61}, "end_point": {"row": 37, "column": 18}}, {"id": 86, "type": "identifier", "text": "FileCache", "parent": 85, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 18}}, {"id": 87, "type": "initializer_list", "text": "{\n\n public:\n static FileCache *get_interface (RuntimeContext *context)", "parent": 82, "children": [88], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 40, "column": 66}}, {"id": 88, "type": "initializer_pair", "text": "public:\n static FileCache *get_interface (RuntimeContext *context)", "parent": 87, "children": [89], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 40, "column": 66}}, {"id": 89, "type": "binary_expression", "text": "FileCache *get_interface (RuntimeContext *context)", "parent": 88, "children": [90, 91, 92], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 66}}, {"id": 90, "type": "identifier", "text": "FileCache", "parent": 89, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 25}}, {"id": 91, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 27}}, {"id": 92, "type": "call_expression", "text": "get_interface (RuntimeContext *context)", "parent": 89, "children": [93, 94], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 66}}, {"id": 93, "type": "identifier", "text": "get_interface", "parent": 92, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 40}}, {"id": 94, "type": "argument_list", "text": "(RuntimeContext *context)", "parent": 92, "children": [95], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 66}}, {"id": 95, "type": "binary_expression", "text": "RuntimeContext *context", "parent": 94, "children": [96, 97, 98], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 65}}, {"id": 96, "type": "identifier", "text": "RuntimeContext", "parent": 95, "children": [], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 56}}, {"id": 97, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 40, "column": 57}, "end_point": {"row": 40, "column": 58}}, {"id": 98, "type": "identifier", "text": "context", "parent": 95, "children": [], "start_point": {"row": 40, "column": 58}, "end_point": {"row": 40, "column": 65}}, {"id": 99, "type": "declaration", "text": "virtual Boolean process_all_requests (const Float64 TimeOut = -1.0) = 0;", "parent": 0, "children": [100, 101, 103, 112], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 81}}, {"id": 100, "type": "type_identifier", "text": "virtual", "parent": 99, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 16}}, {"id": 101, "type": "ERROR", "text": "Boolean", "parent": 99, "children": [102], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 24}}, {"id": 102, "type": "identifier", "text": "Boolean", "parent": 101, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 24}}, {"id": 103, "type": "init_declarator", "text": "process_all_requests (const Float64 TimeOut = -1.0", "parent": 99, "children": [104, 110, 111], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 75}}, {"id": 104, "type": "function_declarator", "text": "process_all_requests (const Float64 TimeOut", "parent": 103, "children": [105, 106], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 68}}, {"id": 105, "type": "identifier", "text": "process_all_requests", "parent": 104, "children": [], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 45}}, {"id": 106, "type": "parameter_list", "text": "(const Float64 TimeOut", "parent": 104, "children": [107], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 68}}, {"id": 107, "type": "parameter_declaration", "text": "const Float64 TimeOut", "parent": 106, "children": [108, 109], "start_point": {"row": 42, "column": 47}, "end_point": {"row": 42, "column": 68}}, {"id": 108, "type": "type_identifier", "text": "Float64", "parent": 107, "children": [], "start_point": {"row": 42, "column": 53}, "end_point": {"row": 42, "column": 60}}, {"id": 109, "type": "identifier", "text": "TimeOut", "parent": 107, "children": [], "start_point": {"row": 42, "column": 61}, "end_point": {"row": 42, "column": 68}}, {"id": 110, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 42, "column": 69}, "end_point": {"row": 42, "column": 70}}, {"id": 111, "type": "number_literal", "text": "-1.0", "parent": 103, "children": [], "start_point": {"row": 42, "column": 71}, "end_point": {"row": 42, "column": 75}}, {"id": 112, "type": "ERROR", "text": ") = 0", "parent": 99, "children": [113, 114], "start_point": {"row": 42, "column": 75}, "end_point": {"row": 42, "column": 80}}, {"id": 113, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 42, "column": 77}, "end_point": {"row": 42, "column": 78}}, {"id": 114, "type": "number_literal", "text": "0", "parent": 112, "children": [], "start_point": {"row": 42, "column": 79}, "end_point": {"row": 42, "column": 80}}, {"id": 115, "type": "declaration", "text": "virtual void add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0;", "parent": 0, "children": [116, 117, 119], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 47, "column": 41}}, {"id": 116, "type": "type_identifier", "text": "virtual", "parent": 115, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 16}}, {"id": 117, "type": "ERROR", "text": "void", "parent": 115, "children": [118], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 21}}, {"id": 118, "type": "identifier", "text": "void", "parent": 117, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 21}}, {"id": 119, "type": "init_declarator", "text": "add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0", "parent": 115, "children": [120, 132, 133], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 47, "column": 40}}, {"id": 120, "type": "function_declarator", "text": "add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action)", "parent": 119, "children": [121, 122], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 47, "column": 36}}, {"id": 121, "type": "identifier", "text": "add_file_request", "parent": 120, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 38}}, {"id": 122, "type": "parameter_list", "text": "(\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action)", "parent": 120, "children": [123, 126, 129], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 47, "column": 36}}, {"id": 123, "type": "parameter_declaration", "text": "const String &FileLocation", "parent": 122, "children": [124, 125], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 38}}, {"id": 124, "type": "type_identifier", "text": "String", "parent": 123, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 24}}, {"id": 125, "type": "identifier", "text": "FileLocation", "parent": 123, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 38}}, {"id": 126, "type": "parameter_declaration", "text": "const String &FileName", "parent": 122, "children": [127, 128], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 34}}, {"id": 127, "type": "type_identifier", "text": "String", "parent": 126, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 24}}, {"id": 128, "type": "identifier", "text": "FileName", "parent": 126, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 34}}, {"id": 129, "type": "parameter_declaration", "text": "FileCacheAction &action", "parent": 122, "children": [130, 131], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 35}}, {"id": 130, "type": "type_identifier", "text": "FileCacheAction", "parent": 129, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 27}}, {"id": 131, "type": "identifier", "text": "action", "parent": 129, "children": [], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 35}}, {"id": 132, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 38}}, {"id": 133, "type": "number_literal", "text": "0", "parent": 119, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 40}}, {"id": 134, "type": "labeled_statement", "text": "protected:\n FileCache (RuntimeContext *context);", "parent": 0, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 50, "column": 45}}, {"id": 135, "type": "call_expression", "text": "FileCache (RuntimeContext *context)", "parent": 134, "children": [136, 137], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 44}}, {"id": 136, "type": "identifier", "text": "FileCache", "parent": 135, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 18}}, {"id": 137, "type": "argument_list", "text": "(RuntimeContext *context)", "parent": 135, "children": [138], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 44}}, {"id": 138, "type": "binary_expression", "text": "RuntimeContext *context", "parent": 137, "children": [139, 140, 141], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 43}}, {"id": 139, "type": "identifier", "text": "RuntimeContext", "parent": 138, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 34}}, {"id": 140, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 36}}, {"id": 141, "type": "identifier", "text": "context", "parent": 138, "children": [], "start_point": {"row": 50, "column": 36}, "end_point": {"row": 50, "column": 43}}, {"id": 142, "type": "unary_expression", "text": "~FileCache ()", "parent": 0, "children": [143, 144], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 22}}, {"id": 143, "type": "~", "text": "~", "parent": 142, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 144, "type": "call_expression", "text": "FileCache ()", "parent": 142, "children": [145, 146], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 22}}, {"id": 145, "type": "identifier", "text": "FileCache", "parent": 144, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 19}}, {"id": 146, "type": "argument_list", "text": "()", "parent": 144, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 22}}, {"id": 147, "type": "labeled_statement", "text": "private:\n FileCache ();", "parent": 0, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 54, "column": 22}}, {"id": 148, "type": "call_expression", "text": "FileCache ()", "parent": 147, "children": [149, 150], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 21}}, {"id": 149, "type": "identifier", "text": "FileCache", "parent": 148, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 18}}, {"id": 150, "type": "argument_list", "text": "()", "parent": 148, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 21}}, {"id": 151, "type": "macro_type_specifier", "text": "FileCache (const FileCache &)", "parent": 0, "children": [152, 153], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 38}}, {"id": 152, "type": "identifier", "text": "FileCache", "parent": 151, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 18}}, {"id": 153, "type": "type_descriptor", "text": "const FileCache", "parent": 151, "children": [154], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 35}}, {"id": 154, "type": "type_identifier", "text": "FileCache", "parent": 153, "children": [], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 35}}, {"id": 155, "type": "binary_expression", "text": "FileCache &operator= (const FileCache &);\n\n RuntimeContext *__context", "parent": 0, "children": [156, 157], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 58, "column": 34}}, {"id": 156, "type": "identifier", "text": "FileCache", "parent": 155, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 18}}, {"id": 157, "type": "assignment_expression", "text": "operator= (const FileCache &);\n\n RuntimeContext *__context", "parent": 155, "children": [158, 159, 160], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 58, "column": 34}}, {"id": 158, "type": "identifier", "text": "operator", "parent": 157, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 28}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 29}}, {"id": 160, "type": "binary_expression", "text": "(const FileCache &);\n\n RuntimeContext *__context", "parent": 157, "children": [161, 165, 166], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 58, "column": 34}}, {"id": 161, "type": "cast_expression", "text": "(const FileCache &);\n\n RuntimeContext", "parent": 160, "children": [162, 164], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 58, "column": 23}}, {"id": 162, "type": "type_descriptor", "text": "const FileCache", "parent": 161, "children": [163], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 46}}, {"id": 163, "type": "type_identifier", "text": "FileCache", "parent": 162, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 46}}, {"id": 164, "type": "identifier", "text": "RuntimeContext", "parent": 161, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 23}}, {"id": 165, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 25}}, {"id": 166, "type": "identifier", "text": "__context", "parent": 160, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 34}}, {"id": 167, "type": "function_definition", "text": "inline dmz::FileCache *\ndmz::FileCache::get_interface (RuntimeContext *context) {\n\n return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);\n}", "parent": 0, "children": [168, 170, 171, 173], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 75, "column": 1}}, {"id": 168, "type": "storage_class_specifier", "text": "inline", "parent": 167, "children": [169], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 6}}, {"id": 169, "type": "inline", "text": "inline", "parent": 168, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 6}}, {"id": 170, "type": "type_identifier", "text": "dmz", "parent": 167, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 10}}, {"id": 171, "type": "ERROR", "text": "::FileCache", "parent": 167, "children": [172], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 21}}, {"id": 172, "type": "identifier", "text": "FileCache", "parent": 171, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 21}}, {"id": 173, "type": "pointer_declarator", "text": "*\ndmz::FileCache::get_interface (RuntimeContext *context)", "parent": 167, "children": [174, 175, 178], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 72, "column": 55}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 23}}, {"id": 175, "type": "ERROR", "text": "dmz::FileCache::", "parent": 173, "children": [176, 177], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 16}}, {"id": 176, "type": "identifier", "text": "dmz", "parent": 175, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 3}}, {"id": 177, "type": "identifier", "text": "FileCache", "parent": 175, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 14}}, {"id": 178, "type": "function_declarator", "text": "get_interface (RuntimeContext *context)", "parent": 173, "children": [179, 180], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 55}}, {"id": 179, "type": "identifier", "text": "get_interface", "parent": 178, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 29}}, {"id": 180, "type": "parameter_list", "text": "(RuntimeContext *context)", "parent": 178, "children": [181], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 55}}, {"id": 181, "type": "parameter_declaration", "text": "RuntimeContext *context", "parent": 180, "children": [182, 183], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 54}}, {"id": 182, "type": "type_identifier", "text": "RuntimeContext", "parent": 181, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 45}}, {"id": 183, "type": "pointer_declarator", "text": "*context", "parent": 181, "children": [184, 185], "start_point": {"row": 72, "column": 46}, "end_point": {"row": 72, "column": 54}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 72, "column": 46}, "end_point": {"row": 72, "column": 47}}, {"id": 185, "type": "identifier", "text": "context", "parent": 183, "children": [], "start_point": {"row": 72, "column": 47}, "end_point": {"row": 72, "column": 54}}, {"id": 186, "type": "return_statement", "text": "return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);", "parent": 167, "children": [187], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 85}}, {"id": 187, "type": "cast_expression", "text": "(FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context)", "parent": 186, "children": [188, 192], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 84}}, {"id": 188, "type": "type_descriptor", "text": "FileCache *", "parent": 187, "children": [189, 190], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 22}}, {"id": 189, "type": "type_identifier", "text": "FileCache", "parent": 188, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 20}}, {"id": 190, "type": "abstract_pointer_declarator", "text": "*", "parent": 188, "children": [191], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 22}}, {"id": 191, "type": "*", "text": "*", "parent": 190, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 22}}, {"id": 192, "type": "call_expression", "text": "lookup_rtti_named_interface (FileCacheInterfaceName, context)", "parent": 187, "children": [193, 194], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 84}}, {"id": 193, "type": "identifier", "text": "lookup_rtti_named_interface", "parent": 192, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 50}}, {"id": 194, "type": "argument_list", "text": "(FileCacheInterfaceName, context)", "parent": 192, "children": [195, 196], "start_point": {"row": 74, "column": 51}, "end_point": {"row": 74, "column": 84}}, {"id": 195, "type": "identifier", "text": "FileCacheInterfaceName", "parent": 194, "children": [], "start_point": {"row": 74, "column": 52}, "end_point": {"row": 74, "column": 74}}, {"id": 196, "type": "identifier", "text": "context", "parent": 194, "children": [], "start_point": {"row": 74, "column": 76}, "end_point": {"row": 74, "column": 83}}, {"id": 197, "type": "function_definition", "text": "inline\ndmz::FileCache::FileCache (RuntimeContext *context) : __context (context) {\n\n store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n}", "parent": 0, "children": [198, 200, 201, 203], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 198, "type": "storage_class_specifier", "text": "inline", "parent": 197, "children": [199], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 199, "type": "inline", "text": "inline", "parent": 198, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 200, "type": "type_identifier", "text": "dmz", "parent": 197, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 3}}, {"id": 201, "type": "ERROR", "text": "::FileCache::", "parent": 197, "children": [202], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 16}}, {"id": 202, "type": "identifier", "text": "FileCache", "parent": 201, "children": [], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 14}}, {"id": 203, "type": "function_declarator", "text": "FileCache (RuntimeContext *context) : __context (context)", "parent": 197, "children": [204, 205, 211], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 73}}, {"id": 204, "type": "identifier", "text": "FileCache", "parent": 203, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 25}}, {"id": 205, "type": "parameter_list", "text": "(RuntimeContext *context)", "parent": 203, "children": [206], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 80, "column": 51}}, {"id": 206, "type": "parameter_declaration", "text": "RuntimeContext *context", "parent": 205, "children": [207, 208], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 50}}, {"id": 207, "type": "type_identifier", "text": "RuntimeContext", "parent": 206, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 41}}, {"id": 208, "type": "pointer_declarator", "text": "*context", "parent": 206, "children": [209, 210], "start_point": {"row": 80, "column": 42}, "end_point": {"row": 80, "column": 50}}, {"id": 209, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 80, "column": 42}, "end_point": {"row": 80, "column": 43}}, {"id": 210, "type": "identifier", "text": "context", "parent": 208, "children": [], "start_point": {"row": 80, "column": 43}, "end_point": {"row": 80, "column": 50}}, {"id": 211, "type": "call_expression", "text": "__context (context)", "parent": 203, "children": [212, 213], "start_point": {"row": 80, "column": 54}, "end_point": {"row": 80, "column": 73}}, {"id": 212, "type": "identifier", "text": "__context", "parent": 211, "children": [], "start_point": {"row": 80, "column": 54}, "end_point": {"row": 80, "column": 63}}, {"id": 213, "type": "argument_list", "text": "(context)", "parent": 211, "children": [214], "start_point": {"row": 80, "column": 64}, "end_point": {"row": 80, "column": 73}}, {"id": 214, "type": "identifier", "text": "context", "parent": 213, "children": [], "start_point": {"row": 80, "column": 65}, "end_point": {"row": 80, "column": 72}}, {"id": 215, "type": "call_expression", "text": "store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this)", "parent": 197, "children": [216, 217], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 79}}, {"id": 216, "type": "identifier", "text": "store_rtti_named_interface", "parent": 215, "children": [], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 29}}, {"id": 217, "type": "argument_list", "text": "(FileCacheInterfaceName, __context, (void *)this)", "parent": 215, "children": [218, 219, 220], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 79}}, {"id": 218, "type": "identifier", "text": "FileCacheInterfaceName", "parent": 217, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 53}}, {"id": 219, "type": "identifier", "text": "__context", "parent": 217, "children": [], "start_point": {"row": 82, "column": 55}, "end_point": {"row": 82, "column": 64}}, {"id": 220, "type": "cast_expression", "text": "(void *)this", "parent": 217, "children": [221, 225], "start_point": {"row": 82, "column": 66}, "end_point": {"row": 82, "column": 78}}, {"id": 221, "type": "type_descriptor", "text": "void *", "parent": 220, "children": [222, 223], "start_point": {"row": 82, "column": 67}, "end_point": {"row": 82, "column": 73}}, {"id": 222, "type": "primitive_type", "text": "void", "parent": 221, "children": [], "start_point": {"row": 82, "column": 67}, "end_point": {"row": 82, "column": 71}}, {"id": 223, "type": "abstract_pointer_declarator", "text": "*", "parent": 221, "children": [224], "start_point": {"row": 82, "column": 72}, "end_point": {"row": 82, "column": 73}}, {"id": 224, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 82, "column": 72}, "end_point": {"row": 82, "column": 73}}, {"id": 225, "type": "identifier", "text": "this", "parent": 220, "children": [], "start_point": {"row": 82, "column": 74}, "end_point": {"row": 82, "column": 78}}, {"id": 226, "type": "function_definition", "text": "inline\ndmz::FileCache::~FileCache () {\n\n remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n __context = 0;\n}", "parent": 0, "children": [227, 229, 230, 233], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 92, "column": 1}}, {"id": 227, "type": "storage_class_specifier", "text": "inline", "parent": 226, "children": [228], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 6}}, {"id": 228, "type": "inline", "text": "inline", "parent": 227, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 6}}, {"id": 229, "type": "type_identifier", "text": "dmz", "parent": 226, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 3}}, {"id": 230, "type": "ERROR", "text": "::FileCache::~", "parent": 226, "children": [231, 232], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 17}}, {"id": 231, "type": "identifier", "text": "FileCache", "parent": 230, "children": [], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 14}}, {"id": 232, "type": "~", "text": "~", "parent": 230, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 17}}, {"id": 233, "type": "function_declarator", "text": "FileCache ()", "parent": 226, "children": [234, 235], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 29}}, {"id": 234, "type": "identifier", "text": "FileCache", "parent": 233, "children": [], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 26}}, {"id": 235, "type": "parameter_list", "text": "()", "parent": 233, "children": [], "start_point": {"row": 88, "column": 27}, "end_point": {"row": 88, "column": 29}}, {"id": 236, "type": "call_expression", "text": "remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this)", "parent": 226, "children": [237, 238], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 80}}, {"id": 237, "type": "identifier", "text": "remove_rtti_named_interface", "parent": 236, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 30}}, {"id": 238, "type": "argument_list", "text": "(FileCacheInterfaceName, __context, (void *)this)", "parent": 236, "children": [239, 240, 241], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 80}}, {"id": 239, "type": "identifier", "text": "FileCacheInterfaceName", "parent": 238, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 54}}, {"id": 240, "type": "identifier", "text": "__context", "parent": 238, "children": [], "start_point": {"row": 90, "column": 56}, "end_point": {"row": 90, "column": 65}}, {"id": 241, "type": "cast_expression", "text": "(void *)this", "parent": 238, "children": [242, 246], "start_point": {"row": 90, "column": 67}, "end_point": {"row": 90, "column": 79}}, {"id": 242, "type": "type_descriptor", "text": "void *", "parent": 241, "children": [243, 244], "start_point": {"row": 90, "column": 68}, "end_point": {"row": 90, "column": 74}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 242, "children": [], "start_point": {"row": 90, "column": 68}, "end_point": {"row": 90, "column": 72}}, {"id": 244, "type": "abstract_pointer_declarator", "text": "*", "parent": 242, "children": [245], "start_point": {"row": 90, "column": 73}, "end_point": {"row": 90, "column": 74}}, {"id": 245, "type": "*", "text": "*", "parent": 244, "children": [], "start_point": {"row": 90, "column": 73}, "end_point": {"row": 90, "column": 74}}, {"id": 246, "type": "identifier", "text": "this", "parent": 241, "children": [], "start_point": {"row": 90, "column": 75}, "end_point": {"row": 90, "column": 79}}, {"id": 247, "type": "assignment_expression", "text": "__context = 0", "parent": 226, "children": [248, 249, 250], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 16}}, {"id": 248, "type": "identifier", "text": "__context", "parent": 247, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 12}}, {"id": 249, "type": "=", "text": "=", "parent": 247, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 14}}, {"id": 250, "type": "number_literal", "text": "0", "parent": 247, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 16}}, {"id": 251, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 36, 44, 104, 120, 167, 178, 197, 203, 226, 233], "variables": [15, 34, 39, 47, 50, 53, 56, 71, 99, 107, 115, 123, 126, 129, 181, 206], "classes": [168, 198, 227], "imports": [6, 7, 9, 10], "modules": [], "enums": [22, 23, 25, 26, 30, 32]}, "statements": {"expressions": [62, 65, 67, 77, 82, 89, 92, 95, 135, 138, 142, 144, 148, 155, 160, 161, 187, 192, 211, 215, 220, 236, 241], "assignments": [79, 157, 247], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 19, 24, 27, 31, 33, 35, 37, 40, 42, 45, 48, 49, 51, 52, 54, 55, 57, 58, 63, 68, 72, 73, 75, 76, 78, 80, 84, 86, 90, 93, 96, 98, 100, 102, 105, 108, 109, 116, 118, 121, 124, 125, 127, 128, 130, 131, 136, 139, 141, 145, 149, 151, 152, 154, 156, 158, 163, 164, 166, 170, 172, 176, 177, 179, 182, 185, 189, 193, 195, 196, 200, 202, 204, 207, 210, 212, 214, 216, 218, 219, 225, 229, 231, 234, 237, 239, 240, 246, 248, 251], "returns": [186], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 21, 29, 60, 111, 114, 133, 250], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "name.", "text_snippet": "namespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = \"FileCach"}, {"node_id": 36, "universal_type": "function", "name": "FileCacheAction", "text_snippet": "class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCa"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalF"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "process_all_requests (const Float64 TimeOut"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "add_file_request (\n const String &FileLocation,\n const String &FileName,\n "}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "inline dmz::FileCache *\ndmz::FileCache::get_interface (RuntimeContext *context) {\n\n return (FileCa"}, {"node_id": 178, "universal_type": "function", "name": "unknown", "text_snippet": "get_interface (RuntimeContext *context)"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "inline\ndmz::FileCache::FileCache (RuntimeContext *context) : __context (context) {\n\n store_rtti_na"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "FileCache (RuntimeContext *context) : __context (context)"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "inline\ndmz::FileCache::~FileCache () {\n\n remove_rtti_named_interface (FileCacheInterfaceName, __co"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "FileCache ()"}], "class_declarations": [{"node_id": 168, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 198, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 227, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include <dmzRuntimeRTTINamed.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <dmzTypesString.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef DMZ_FILE_CACHE_DOT_H\n#define DMZ_FILE_CACHE_DOT_H\n\n#include <dmzRuntimeRTTINamed.h>\n#include <dmzTypesString.h>\n\nnamespace dmz {\n\n //! FileCache interface name.\n const char FileCacheInterfaceName[] = \"FileCacheInterface\";\n\n enum FileCacheResultEnum {\n CacheFileFound = 1, //!< File found.\n UnknownFileLocation, //!< Unknown file location.\n FileNotFoundAtLocation, //!< File not found at given location.\n };\n\n class RuntimeContext;\n\n class FileCacheAction {\n\n public:\n virtual void process_file (\n const FileCacheResultEnum RequestResult,\n const String &LocalFilePath,\n const String &RequestedFileLocation,\n const String &RequestedFileName) = 0;\n\n protected:\n FileCacheAction () {;}\n ~FileCacheAction () {;}\n\n private:\n FileCacheAction (const FileCacheAction &);\n FileCacheAction &operator= (const FileCacheAction &);\n };\n\n class FileCache {\n\n public:\n static FileCache *get_interface (RuntimeContext *context);\n\n virtual Boolean process_all_requests (const Float64 TimeOut = -1.0) = 0;\n\n virtual void add_file_request (\n const String &FileLocation,\n const String &FileName,\n FileCacheAction &action) = 0;\n\n protected:\n FileCache (RuntimeContext *context);\n ~FileCache ();\n\n private:\n FileCache ();\n FileCache (const FileCache &);\n FileCache &operator= (const FileCache &);\n\n RuntimeContext *__context;\n };\n};\n\n\n/*!\n\n\\brief Returns interface to the dmz::FileCache.\n\\param[in] context Pointer to runtime context.\n\\return Returns a pointer to the FileCache. Will return NULL if a FileCache has not\nbeen created.\n\n*/\ninline dmz::FileCache *\ndmz::FileCache::get_interface (RuntimeContext *context) {\n\n return (FileCache *)lookup_rtti_named_interface (FileCacheInterfaceName, context);\n}\n\n\n//! Constructor.\ninline\ndmz::FileCache::FileCache (RuntimeContext *context) : __context (context) {\n\n store_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n}\n\n\n//! Destructor.\ninline\ndmz::FileCache::~FileCache () {\n\n remove_rtti_named_interface (FileCacheInterfaceName, __context, (void *)this);\n __context = 0;\n}\n\n#endif // DMZ_FILE_CACHE_DOT_H\n"}
80,441
c
#include <stdio.h> #include <stdlib.h> #include <sys/ipc.h> #include <sys/msg.h> #define MSGSZ 128 typedef struct msgbuf { long mtype; char mtext [MSGSZ]; } message_buf; void print_usage(); int main(int argc, char** argv){ FILE * fp; int msqid; key_t key; message_buf rbuf; int bool_print = 1; // printf("%d", argc); if (argc < 3){ print_usage(); return -1; } else { key = atoi(argv[1]); fp = fopen(argv[2],"a"); if (argc == 4){ bool_print = atoi(argv[3]); } } if( (msqid = msgget(key, 0666)) < 0){ perror("msgget"); exit(1); } while(1){ if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){ perror("msgrcv"); } fprintf(fp, "%s\n", rbuf.mtext); fflush(fp); if (bool_print){ printf("%s\n", rbuf.mtext); } // sleep(1); } fclose(fp); return 0; } void print_usage(){ printf("Usage:\n"); printf("./rec msg_key out_file [bool_print=1]\n"); printf("\tmsg_key 1234 for imsi\n"); printf("\tmsg_key 2234 for probe request\n"); printf("\tbool_print 0 mute\n"); }
17.34
56
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <sys/ipc.h>\n#include <sys/msg.h>\n\n#define MSGSZ 128\n\ntypedef struct msgbuf {\n long mtype;\n char mtext [MSGSZ];\n} message_buf;\n\n\nvoid print_usage();\nint main(int argc, char** argv){\n FILE * fp;\n int msqid;\n key_t key;\n message_buf rbuf;\n int bool_print = 1;\n // printf("%d", argc);\n if (argc < 3){\n print_usage();\n return -1;\n } else {\n key = atoi(argv[1]);\n fp = fopen(argv[2],"a");\n if (argc == 4){\n bool_print = atoi(argv[3]);\n }\n }\n \n if( (msqid = msgget(key, 0666)) < 0){\n perror("msgget");\n exit(1);\n }\n while(1){\n if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n perror("msgrcv");\n }\n \n fprintf(fp, "%s\n", rbuf.mtext);\n fflush(fp);\n \n if (bool_print){\n printf("%s\n", rbuf.mtext); \n }\n// sleep(1);\n }\n\n fclose(fp);\n return 0;\n}\n\nvoid print_usage(){\n printf("Usage:\n");\n printf("./rec msg_key out_file [bool_print=1]\n");\n printf("\tmsg_key 1234 for imsi\n");\n printf("\tmsg_key 2234 for probe request\n");\n printf("\tbool_print 0 mute\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 <sys/ipc.h>\n" (#include) "#include" (system_lib_string) "<sys/ipc.h>" (preproc_include) "#include <sys/msg.h>\n" (#include) "#include" (system_lib_string) "<sys/msg.h>" (preproc_def) "#define MSGSZ 128\n" (#define) "#define" (identifier) "MSGSZ" (preproc_arg) "128" (type_definition) "typedef struct msgbuf {\n long mtype;\n char mtext [MSGSZ];\n} message_buf;" (typedef) "typedef" (struct_specifier) "struct msgbuf {\n long mtype;\n char mtext [MSGSZ];\n}" (struct) "struct" (type_identifier) "msgbuf" (field_declaration_list) "{\n long mtype;\n char mtext [MSGSZ];\n}" ({) "{" (field_declaration) "long mtype;" (sized_type_specifier) "long" (long) "long" (field_identifier) "mtype" (;) ";" (field_declaration) "char mtext [MSGSZ];" (primitive_type) "char" (array_declarator) "mtext [MSGSZ]" (field_identifier) "mtext" ([) "[" (identifier) "MSGSZ" (]) "]" (;) ";" (}) "}" (type_identifier) "message_buf" (;) ";" (declaration) "void print_usage();" (primitive_type) "void" (function_declarator) "print_usage()" (identifier) "print_usage" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "int main(int argc, char** argv){\n FILE * fp;\n int msqid;\n key_t key;\n message_buf rbuf;\n int bool_print = 1;\n // printf("%d", argc);\n if (argc < 3){\n print_usage();\n return -1;\n } else {\n key = atoi(argv[1]);\n fp = fopen(argv[2],"a");\n if (argc == 4){\n bool_print = atoi(argv[3]);\n }\n }\n \n if( (msqid = msgget(key, 0666)) < 0){\n perror("msgget");\n exit(1);\n }\n while(1){\n if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n perror("msgrcv");\n }\n \n fprintf(fp, "%s\n", rbuf.mtext);\n fflush(fp);\n \n if (bool_print){\n printf("%s\n", rbuf.mtext); \n }\n// sleep(1);\n }\n\n fclose(fp);\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" (*) "*" (pointer_declarator) "* argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n FILE * fp;\n int msqid;\n key_t key;\n message_buf rbuf;\n int bool_print = 1;\n // printf("%d", argc);\n if (argc < 3){\n print_usage();\n return -1;\n } else {\n key = atoi(argv[1]);\n fp = fopen(argv[2],"a");\n if (argc == 4){\n bool_print = atoi(argv[3]);\n }\n }\n \n if( (msqid = msgget(key, 0666)) < 0){\n perror("msgget");\n exit(1);\n }\n while(1){\n if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n perror("msgrcv");\n }\n \n fprintf(fp, "%s\n", rbuf.mtext);\n fflush(fp);\n \n if (bool_print){\n printf("%s\n", rbuf.mtext); \n }\n// sleep(1);\n }\n\n fclose(fp);\n return 0;\n}" ({) "{" (declaration) "FILE * fp;" (type_identifier) "FILE" (pointer_declarator) "* fp" (*) "*" (identifier) "fp" (;) ";" (declaration) "int msqid;" (primitive_type) "int" (identifier) "msqid" (;) ";" (declaration) "key_t key;" (type_identifier) "key_t" (identifier) "key" (;) ";" (declaration) "message_buf rbuf;" (type_identifier) "message_buf" (identifier) "rbuf" (;) ";" (declaration) "int bool_print = 1;" (primitive_type) "int" (init_declarator) "bool_print = 1" (identifier) "bool_print" (=) "=" (number_literal) "1" (;) ";" (comment) "// printf("%d", argc);" (if_statement) "if (argc < 3){\n print_usage();\n return -1;\n } else {\n key = atoi(argv[1]);\n fp = fopen(argv[2],"a");\n if (argc == 4){\n bool_print = atoi(argv[3]);\n }\n }" (if) "if" (parenthesized_expression) "(argc < 3)" (() "(" (binary_expression) "argc < 3" (identifier) "argc" (<) "<" (number_literal) "3" ()) ")" (compound_statement) "{\n print_usage();\n return -1;\n }" ({) "{" (expression_statement) "print_usage();" (call_expression) "print_usage()" (identifier) "print_usage" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (else_clause) "else {\n key = atoi(argv[1]);\n fp = fopen(argv[2],"a");\n if (argc == 4){\n bool_print = atoi(argv[3]);\n }\n }" (else) "else" (compound_statement) "{\n key = atoi(argv[1]);\n fp = fopen(argv[2],"a");\n if (argc == 4){\n bool_print = atoi(argv[3]);\n }\n }" ({) "{" (expression_statement) "key = atoi(argv[1]);" (assignment_expression) "key = atoi(argv[1])" (identifier) "key" (=) "=" (call_expression) "atoi(argv[1])" (identifier) "atoi" (argument_list) "(argv[1])" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" ()) ")" (;) ";" (expression_statement) "fp = fopen(argv[2],"a");" (assignment_expression) "fp = fopen(argv[2],"a")" (identifier) "fp" (=) "=" (call_expression) "fopen(argv[2],"a")" (identifier) "fopen" (argument_list) "(argv[2],"a")" (() "(" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" (,) "," (string_literal) ""a"" (") """ (string_content) "a" (") """ ()) ")" (;) ";" (if_statement) "if (argc == 4){\n bool_print = atoi(argv[3]);\n }" (if) "if" (parenthesized_expression) "(argc == 4)" (() "(" (binary_expression) "argc == 4" (identifier) "argc" (==) "==" (number_literal) "4" ()) ")" (compound_statement) "{\n bool_print = atoi(argv[3]);\n }" ({) "{" (expression_statement) "bool_print = atoi(argv[3]);" (assignment_expression) "bool_print = atoi(argv[3])" (identifier) "bool_print" (=) "=" (call_expression) "atoi(argv[3])" (identifier) "atoi" (argument_list) "(argv[3])" (() "(" (subscript_expression) "argv[3]" (identifier) "argv" ([) "[" (number_literal) "3" (]) "]" ()) ")" (;) ";" (}) "}" (}) "}" (if_statement) "if( (msqid = msgget(key, 0666)) < 0){\n perror("msgget");\n exit(1);\n }" (if) "if" (parenthesized_expression) "( (msqid = msgget(key, 0666)) < 0)" (() "(" (binary_expression) "(msqid = msgget(key, 0666)) < 0" (parenthesized_expression) "(msqid = msgget(key, 0666))" (() "(" (assignment_expression) "msqid = msgget(key, 0666)" (identifier) "msqid" (=) "=" (call_expression) "msgget(key, 0666)" (identifier) "msgget" (argument_list) "(key, 0666)" (() "(" (identifier) "key" (,) "," (number_literal) "0666" ()) ")" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n perror("msgget");\n exit(1);\n }" ({) "{" (expression_statement) "perror("msgget");" (call_expression) "perror("msgget")" (identifier) "perror" (argument_list) "("msgget")" (() "(" (string_literal) ""msgget"" (") """ (string_content) "msgget" (") """ ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (while_statement) "while(1){\n if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n perror("msgrcv");\n }\n \n fprintf(fp, "%s\n", rbuf.mtext);\n fflush(fp);\n \n if (bool_print){\n printf("%s\n", rbuf.mtext); \n }\n// sleep(1);\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n perror("msgrcv");\n }\n \n fprintf(fp, "%s\n", rbuf.mtext);\n fflush(fp);\n \n if (bool_print){\n printf("%s\n", rbuf.mtext); \n }\n// sleep(1);\n }" ({) "{" (if_statement) "if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n perror("msgrcv");\n }" (if) "if" (parenthesized_expression) "(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0)" (() "(" (binary_expression) "msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0" (call_expression) "msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0)" (identifier) "msgrcv" (argument_list) "(msqid, &rbuf, sizeof(message_buf), 1, 0)" (() "(" (identifier) "msqid" (,) "," (pointer_expression) "&rbuf" (&) "&" (identifier) "rbuf" (,) "," (sizeof_expression) "sizeof(message_buf)" (sizeof) "sizeof" (parenthesized_expression) "(message_buf)" (() "(" (identifier) "message_buf" ()) ")" (,) "," (number_literal) "1" (,) "," (number_literal) "0" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n perror("msgrcv");\n }" ({) "{" (expression_statement) "perror("msgrcv");" (call_expression) "perror("msgrcv")" (identifier) "perror" (argument_list) "("msgrcv")" (() "(" (string_literal) ""msgrcv"" (") """ (string_content) "msgrcv" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "fprintf(fp, "%s\n", rbuf.mtext);" (call_expression) "fprintf(fp, "%s\n", rbuf.mtext)" (identifier) "fprintf" (argument_list) "(fp, "%s\n", rbuf.mtext)" (() "(" (identifier) "fp" (,) "," (string_literal) ""%s\n"" (") """ (string_content) "%s" (escape_sequence) "\n" (") """ (,) "," (field_expression) "rbuf.mtext" (identifier) "rbuf" (.) "." (field_identifier) "mtext" ()) ")" (;) ";" (expression_statement) "fflush(fp);" (call_expression) "fflush(fp)" (identifier) "fflush" (argument_list) "(fp)" (() "(" (identifier) "fp" ()) ")" (;) ";" (if_statement) "if (bool_print){\n printf("%s\n", rbuf.mtext); \n }" (if) "if" (parenthesized_expression) "(bool_print)" (() "(" (identifier) "bool_print" ()) ")" (compound_statement) "{\n printf("%s\n", rbuf.mtext); \n }" ({) "{" (expression_statement) "printf("%s\n", rbuf.mtext);" (call_expression) "printf("%s\n", rbuf.mtext)" (identifier) "printf" (argument_list) "("%s\n", rbuf.mtext)" (() "(" (string_literal) ""%s\n"" (") """ (string_content) "%s" (escape_sequence) "\n" (") """ (,) "," (field_expression) "rbuf.mtext" (identifier) "rbuf" (.) "." (field_identifier) "mtext" ()) ")" (;) ";" (}) "}" (comment) "// sleep(1);" (}) "}" (expression_statement) "fclose(fp);" (call_expression) "fclose(fp)" (identifier) "fclose" (argument_list) "(fp)" (() "(" (identifier) "fp" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void print_usage(){\n printf("Usage:\n");\n printf("./rec msg_key out_file [bool_print=1]\n");\n printf("\tmsg_key 1234 for imsi\n");\n printf("\tmsg_key 2234 for probe request\n");\n printf("\tbool_print 0 mute\n");\n}" (primitive_type) "void" (function_declarator) "print_usage()" (identifier) "print_usage" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n printf("Usage:\n");\n printf("./rec msg_key out_file [bool_print=1]\n");\n printf("\tmsg_key 1234 for imsi\n");\n printf("\tmsg_key 2234 for probe request\n");\n printf("\tbool_print 0 mute\n");\n}" ({) "{" (expression_statement) "printf("Usage:\n");" (call_expression) "printf("Usage:\n")" (identifier) "printf" (argument_list) "("Usage:\n")" (() "(" (string_literal) ""Usage:\n"" (") """ (string_content) "Usage:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("./rec msg_key out_file [bool_print=1]\n");" (call_expression) "printf("./rec msg_key out_file [bool_print=1]\n")" (identifier) "printf" (argument_list) "("./rec msg_key out_file [bool_print=1]\n")" (() "(" (string_literal) ""./rec msg_key out_file [bool_print=1]\n"" (") """ (string_content) "./rec msg_key out_file [bool_print=1]" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("\tmsg_key 1234 for imsi\n");" (call_expression) "printf("\tmsg_key 1234 for imsi\n")" (identifier) "printf" (argument_list) "("\tmsg_key 1234 for imsi\n")" (() "(" (string_literal) ""\tmsg_key 1234 for imsi\n"" (") """ (escape_sequence) "\t" (string_content) "msg_key 1234 for imsi" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("\tmsg_key 2234 for probe request\n");" (call_expression) "printf("\tmsg_key 2234 for probe request\n")" (identifier) "printf" (argument_list) "("\tmsg_key 2234 for probe request\n")" (() "(" (string_literal) ""\tmsg_key 2234 for probe request\n"" (") """ (escape_sequence) "\t" (string_content) "msg_key 2234 for probe request" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("\tbool_print 0 mute\n");" (call_expression) "printf("\tbool_print 0 mute\n")" (identifier) "printf" (argument_list) "("\tbool_print 0 mute\n")" (() "(" (string_literal) ""\tbool_print 0 mute\n"" (") """ (escape_sequence) "\t" (string_content) "bool_print 0 mute" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}"
420
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 17.34, "nodes": 225, "errors": 0, "source_hash": "cabe8f4e65005a5b8aba6cc924fd9aec3f94e4768570ff6edfea3219d3daa9b6", "categorized_nodes": 163}, "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 <sys/ipc.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": "<sys/ipc.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include <sys/msg.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/msg.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 12, "type": "preproc_def", "text": "#define MSGSZ 128\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 14, "type": "identifier", "text": "MSGSZ", "parent": 12, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 13}}, {"id": 15, "type": "preproc_arg", "text": "128", "parent": 12, "children": [], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 17}}, {"id": 16, "type": "type_definition", "text": "typedef struct msgbuf {\n\tlong mtype;\n\tchar mtext [MSGSZ];\n} message_buf;", "parent": null, "children": [17, 18, 30], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 10, "column": 14}}, {"id": 17, "type": "typedef", "text": "typedef", "parent": 16, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 18, "type": "struct_specifier", "text": "struct msgbuf {\n\tlong mtype;\n\tchar mtext [MSGSZ];\n}", "parent": 16, "children": [19, 20], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 10, "column": 1}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 20, "type": "type_identifier", "text": "msgbuf", "parent": 18, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 21}}, {"id": 21, "type": "field_declaration", "text": "long mtype;", "parent": 18, "children": [22, 24], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 12}}, {"id": 22, "type": "sized_type_specifier", "text": "long", "parent": 21, "children": [23], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 5}}, {"id": 23, "type": "long", "text": "long", "parent": 22, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 5}}, {"id": 24, "type": "field_identifier", "text": "mtype", "parent": 21, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 11}}, {"id": 25, "type": "field_declaration", "text": "char mtext [MSGSZ];", "parent": 18, "children": [26, 27], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 20}}, {"id": 26, "type": "primitive_type", "text": "char", "parent": 25, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 5}}, {"id": 27, "type": "array_declarator", "text": "mtext [MSGSZ]", "parent": 25, "children": [28, 29], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 19}}, {"id": 28, "type": "field_identifier", "text": "mtext", "parent": 27, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 11}}, {"id": 29, "type": "identifier", "text": "MSGSZ", "parent": 27, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 18}}, {"id": 30, "type": "type_identifier", "text": "message_buf", "parent": 16, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 13}}, {"id": 31, "type": "declaration", "text": "void print_usage();", "parent": null, "children": [32, 33], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 19}}, {"id": 32, "type": "primitive_type", "text": "void", "parent": 31, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 33, "type": "function_declarator", "text": "print_usage()", "parent": 31, "children": [34, 35], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 18}}, {"id": 34, "type": "identifier", "text": "print_usage", "parent": 33, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 16}}, {"id": 35, "type": "parameter_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 18}}, {"id": 36, "type": "function_definition", "text": "int main(int argc, char** argv){\n\tFILE * fp;\n\tint msqid;\n\tkey_t key;\n\tmessage_buf rbuf;\n\tint bool_print = 1;\n\t// printf(\"%d\", argc);\n\tif (argc < 3){\n\t\tprint_usage();\n\t\treturn -1;\n\t} else {\n\t\tkey = atoi(argv[1]);\n\t\tfp = fopen(argv[2],\"a\");\n\t\tif (argc == 4){\n\t\t\tbool_print = atoi(argv[3]);\n\t\t}\n\t}\n\t\n\tif( (msqid = msgget(key, 0666)) < 0){\n\t\tperror(\"msgget\");\n\t\texit(1);\n\t}\n\twhile(1){\n\t\tif(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n\t\t\tperror(\"msgrcv\");\n\t\t}\n\t\t \n\t\tfprintf(fp, \"%s\\n\", rbuf.mtext);\n\t\tfflush(fp);\n\t\t \n\t\tif (bool_print){\n\t\t\tprintf(\"%s\\n\", rbuf.mtext);\t\n\t\t}\n//\t\tsleep(1);\n\t}\n\n\tfclose(fp);\n\treturn 0;\n}", "parent": null, "children": [37, 38], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 3}}, {"id": 38, "type": "function_declarator", "text": "main(int argc, char** argv)", "parent": 36, "children": [39, 40], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 31}}, {"id": 39, "type": "identifier", "text": "main", "parent": 38, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 8}}, {"id": 40, "type": "parameter_list", "text": "(int argc, char** argv)", "parent": 38, "children": [41, 44], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 31}}, {"id": 41, "type": "parameter_declaration", "text": "int argc", "parent": 40, "children": [42, 43], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 17}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 43, "type": "identifier", "text": "argc", "parent": 41, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 17}}, {"id": 44, "type": "parameter_declaration", "text": "char** argv", "parent": 40, "children": [45, 46], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 30}}, {"id": 45, "type": "primitive_type", "text": "char", "parent": 44, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 23}}, {"id": 46, "type": "pointer_declarator", "text": "** argv", "parent": 44, "children": [47, 48], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 30}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 24}}, {"id": 48, "type": "pointer_declarator", "text": "* argv", "parent": 46, "children": [49, 50], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 30}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 25}}, {"id": 50, "type": "identifier", "text": "argv", "parent": 48, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 30}}, {"id": 51, "type": "declaration", "text": "FILE * fp;", "parent": 36, "children": [52, 53], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 11}}, {"id": 52, "type": "type_identifier", "text": "FILE", "parent": 51, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 5}}, {"id": 53, "type": "pointer_declarator", "text": "* fp", "parent": 51, "children": [54, 55], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 10}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 7}}, {"id": 55, "type": "identifier", "text": "fp", "parent": 53, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 10}}, {"id": 56, "type": "declaration", "text": "int msqid;", "parent": 36, "children": [57, 58], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 11}}, {"id": 57, "type": "primitive_type", "text": "int", "parent": 56, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}, {"id": 58, "type": "identifier", "text": "msqid", "parent": 56, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 10}}, {"id": 59, "type": "declaration", "text": "key_t key;", "parent": 36, "children": [60, 61], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 11}}, {"id": 60, "type": "type_identifier", "text": "key_t", "parent": 59, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 6}}, {"id": 61, "type": "identifier", "text": "key", "parent": 59, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 10}}, {"id": 62, "type": "declaration", "text": "message_buf rbuf;", "parent": 36, "children": [63, 64], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 18}}, {"id": 63, "type": "type_identifier", "text": "message_buf", "parent": 62, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 12}}, {"id": 64, "type": "identifier", "text": "rbuf", "parent": 62, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 17}}, {"id": 65, "type": "declaration", "text": "int bool_print = 1;", "parent": 36, "children": [66, 67], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 20}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 4}}, {"id": 67, "type": "init_declarator", "text": "bool_print = 1", "parent": 65, "children": [68, 69, 70], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 19}}, {"id": 68, "type": "identifier", "text": "bool_print", "parent": 67, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 15}}, {"id": 69, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 17}}, {"id": 70, "type": "number_literal", "text": "1", "parent": 67, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 19}}, {"id": 71, "type": "if_statement", "text": "if (argc < 3){\n\t\tprint_usage();\n\t\treturn -1;\n\t} else {\n\t\tkey = atoi(argv[1]);\n\t\tfp = fopen(argv[2],\"a\");\n\t\tif (argc == 4){\n\t\t\tbool_print = atoi(argv[3]);\n\t\t}\n\t}", "parent": 36, "children": [72, 82], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 72, "type": "parenthesized_expression", "text": "(argc < 3)", "parent": 71, "children": [73], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 14}}, {"id": 73, "type": "binary_expression", "text": "argc < 3", "parent": 72, "children": [74, 75, 76], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 13}}, {"id": 74, "type": "identifier", "text": "argc", "parent": 73, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 9}}, {"id": 75, "type": "<", "text": "<", "parent": 73, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 76, "type": "number_literal", "text": "3", "parent": 73, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 77, "type": "call_expression", "text": "print_usage()", "parent": 71, "children": [78, 79], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 15}}, {"id": 78, "type": "identifier", "text": "print_usage", "parent": 77, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 13}}, {"id": 79, "type": "argument_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 15}}, {"id": 80, "type": "return_statement", "text": "return -1;", "parent": 71, "children": [81], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 12}}, {"id": 81, "type": "number_literal", "text": "-1", "parent": 80, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 11}}, {"id": 82, "type": "else_clause", "text": "else {\n\t\tkey = atoi(argv[1]);\n\t\tfp = fopen(argv[2],\"a\");\n\t\tif (argc == 4){\n\t\t\tbool_print = atoi(argv[3]);\n\t\t}\n\t}", "parent": 71, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 30, "column": 2}}, {"id": 83, "type": "assignment_expression", "text": "key = atoi(argv[1])", "parent": 82, "children": [84, 85, 86], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 21}}, {"id": 84, "type": "identifier", "text": "key", "parent": 83, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 85, "type": "=", "text": "=", "parent": 83, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 7}}, {"id": 86, "type": "call_expression", "text": "atoi(argv[1])", "parent": 83, "children": [87, 88], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 21}}, {"id": 87, "type": "identifier", "text": "atoi", "parent": 86, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 88, "type": "argument_list", "text": "(argv[1])", "parent": 86, "children": [89], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 21}}, {"id": 89, "type": "subscript_expression", "text": "argv[1]", "parent": 88, "children": [90, 91], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 20}}, {"id": 90, "type": "identifier", "text": "argv", "parent": 89, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 17}}, {"id": 91, "type": "number_literal", "text": "1", "parent": 89, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 92, "type": "assignment_expression", "text": "fp = fopen(argv[2],\"a\")", "parent": 82, "children": [93, 94, 95], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 25}}, {"id": 93, "type": "identifier", "text": "fp", "parent": 92, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 4}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 6}}, {"id": 95, "type": "call_expression", "text": "fopen(argv[2],\"a\")", "parent": 92, "children": [96, 97], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 25}}, {"id": 96, "type": "identifier", "text": "fopen", "parent": 95, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 12}}, {"id": 97, "type": "argument_list", "text": "(argv[2],\"a\")", "parent": 95, "children": [98, 101], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 25}}, {"id": 98, "type": "subscript_expression", "text": "argv[2]", "parent": 97, "children": [99, 100], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 20}}, {"id": 99, "type": "identifier", "text": "argv", "parent": 98, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 17}}, {"id": 100, "type": "number_literal", "text": "2", "parent": 98, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 19}}, {"id": 101, "type": "string_literal", "text": "\"a\"", "parent": 97, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 24}}, {"id": 102, "type": "if_statement", "text": "if (argc == 4){\n\t\t\tbool_print = atoi(argv[3]);\n\t\t}", "parent": 82, "children": [103], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 29, "column": 3}}, {"id": 103, "type": "parenthesized_expression", "text": "(argc == 4)", "parent": 102, "children": [104], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 16}}, {"id": 104, "type": "binary_expression", "text": "argc == 4", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 15}}, {"id": 105, "type": "identifier", "text": "argc", "parent": 104, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 10}}, {"id": 106, "type": "==", "text": "==", "parent": 104, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 13}}, {"id": 107, "type": "number_literal", "text": "4", "parent": 104, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 15}}, {"id": 108, "type": "assignment_expression", "text": "bool_print = atoi(argv[3])", "parent": 102, "children": [109, 110, 111], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 29}}, {"id": 109, "type": "identifier", "text": "bool_print", "parent": 108, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 13}}, {"id": 110, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 111, "type": "call_expression", "text": "atoi(argv[3])", "parent": 108, "children": [112, 113], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 29}}, {"id": 112, "type": "identifier", "text": "atoi", "parent": 111, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 20}}, {"id": 113, "type": "argument_list", "text": "(argv[3])", "parent": 111, "children": [114], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 29}}, {"id": 114, "type": "subscript_expression", "text": "argv[3]", "parent": 113, "children": [115, 116], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 28}}, {"id": 115, "type": "identifier", "text": "argv", "parent": 114, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 25}}, {"id": 116, "type": "number_literal", "text": "3", "parent": 114, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 27}}, {"id": 117, "type": "if_statement", "text": "if( (msqid = msgget(key, 0666)) < 0){\n\t\tperror(\"msgget\");\n\t\texit(1);\n\t}", "parent": 36, "children": [118], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 35, "column": 2}}, {"id": 118, "type": "parenthesized_expression", "text": "( (msqid = msgget(key, 0666)) < 0)", "parent": 117, "children": [119], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 37}}, {"id": 119, "type": "binary_expression", "text": "(msqid = msgget(key, 0666)) < 0", "parent": 118, "children": [120, 129, 130], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 36}}, {"id": 120, "type": "parenthesized_expression", "text": "(msqid = msgget(key, 0666))", "parent": 119, "children": [121], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 32}}, {"id": 121, "type": "assignment_expression", "text": "msqid = msgget(key, 0666)", "parent": 120, "children": [122, 123, 124], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 31}}, {"id": 122, "type": "identifier", "text": "msqid", "parent": 121, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 11}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 124, "type": "call_expression", "text": "msgget(key, 0666)", "parent": 121, "children": [125, 126], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 31}}, {"id": 125, "type": "identifier", "text": "msgget", "parent": 124, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 20}}, {"id": 126, "type": "argument_list", "text": "(key, 0666)", "parent": 124, "children": [127, 128], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 31}}, {"id": 127, "type": "identifier", "text": "key", "parent": 126, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 24}}, {"id": 128, "type": "number_literal", "text": "0666", "parent": 126, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 30}}, {"id": 129, "type": "<", "text": "<", "parent": 119, "children": [], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 34}}, {"id": 130, "type": "number_literal", "text": "0", "parent": 119, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 36}}, {"id": 131, "type": "call_expression", "text": "perror(\"msgget\")", "parent": 117, "children": [132, 133], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 18}}, {"id": 132, "type": "identifier", "text": "perror", "parent": 131, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 133, "type": "argument_list", "text": "(\"msgget\")", "parent": 131, "children": [134], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 18}}, {"id": 134, "type": "string_literal", "text": "\"msgget\"", "parent": 133, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 17}}, {"id": 135, "type": "call_expression", "text": "exit(1)", "parent": 117, "children": [136, 137], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 9}}, {"id": 136, "type": "identifier", "text": "exit", "parent": 135, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 137, "type": "argument_list", "text": "(1)", "parent": 135, "children": [138], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 9}}, {"id": 138, "type": "number_literal", "text": "1", "parent": 137, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 8}}, {"id": 139, "type": "while_statement", "text": "while(1){\n\t\tif(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n\t\t\tperror(\"msgrcv\");\n\t\t}\n\t\t \n\t\tfprintf(fp, \"%s\\n\", rbuf.mtext);\n\t\tfflush(fp);\n\t\t \n\t\tif (bool_print){\n\t\t\tprintf(\"%s\\n\", rbuf.mtext);\t\n\t\t}\n//\t\tsleep(1);\n\t}", "parent": 36, "children": [140], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 48, "column": 2}}, {"id": 140, "type": "parenthesized_expression", "text": "(1)", "parent": 139, "children": [141], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 9}}, {"id": 141, "type": "number_literal", "text": "1", "parent": 140, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 8}}, {"id": 142, "type": "if_statement", "text": "if(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n\t\t\tperror(\"msgrcv\");\n\t\t}", "parent": 139, "children": [143], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 39, "column": 3}}, {"id": 143, "type": "parenthesized_expression", "text": "(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0)", "parent": 142, "children": [144], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 57}}, {"id": 144, "type": "binary_expression", "text": "msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0", "parent": 143, "children": [145, 156, 157], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 56}}, {"id": 145, "type": "call_expression", "text": "msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0)", "parent": 144, "children": [146, 147], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 52}}, {"id": 146, "type": "identifier", "text": "msgrcv", "parent": 145, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 11}}, {"id": 147, "type": "argument_list", "text": "(msqid, &rbuf, sizeof(message_buf), 1, 0)", "parent": 145, "children": [148, 149, 151, 154, 155], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 52}}, {"id": 148, "type": "identifier", "text": "msqid", "parent": 147, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 17}}, {"id": 149, "type": "pointer_expression", "text": "&rbuf", "parent": 147, "children": [150], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 24}}, {"id": 150, "type": "identifier", "text": "rbuf", "parent": 149, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 24}}, {"id": 151, "type": "sizeof_expression", "text": "sizeof(message_buf)", "parent": 147, "children": [152], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 45}}, {"id": 152, "type": "parenthesized_expression", "text": "(message_buf)", "parent": 151, "children": [153], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 45}}, {"id": 153, "type": "identifier", "text": "message_buf", "parent": 152, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 44}}, {"id": 154, "type": "number_literal", "text": "1", "parent": 147, "children": [], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 48}}, {"id": 155, "type": "number_literal", "text": "0", "parent": 147, "children": [], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 51}}, {"id": 156, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 54}}, {"id": 157, "type": "number_literal", "text": "0", "parent": 144, "children": [], "start_point": {"row": 37, "column": 55}, "end_point": {"row": 37, "column": 56}}, {"id": 158, "type": "call_expression", "text": "perror(\"msgrcv\")", "parent": 142, "children": [159, 160], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 19}}, {"id": 159, "type": "identifier", "text": "perror", "parent": 158, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 9}}, {"id": 160, "type": "argument_list", "text": "(\"msgrcv\")", "parent": 158, "children": [161], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 19}}, {"id": 161, "type": "string_literal", "text": "\"msgrcv\"", "parent": 160, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 18}}, {"id": 162, "type": "call_expression", "text": "fprintf(fp, \"%s\\n\", rbuf.mtext)", "parent": 139, "children": [163, 164], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 33}}, {"id": 163, "type": "identifier", "text": "fprintf", "parent": 162, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 9}}, {"id": 164, "type": "argument_list", "text": "(fp, \"%s\\n\", rbuf.mtext)", "parent": 162, "children": [165, 166, 168], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 33}}, {"id": 165, "type": "identifier", "text": "fp", "parent": 164, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 12}}, {"id": 166, "type": "string_literal", "text": "\"%s\\n\"", "parent": 164, "children": [167], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 20}}, {"id": 167, "type": "escape_sequence", "text": "\\n", "parent": 166, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 168, "type": "field_expression", "text": "rbuf.mtext", "parent": 164, "children": [169, 170], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 32}}, {"id": 169, "type": "identifier", "text": "rbuf", "parent": 168, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 26}}, {"id": 170, "type": "field_identifier", "text": "mtext", "parent": 168, "children": [], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 32}}, {"id": 171, "type": "call_expression", "text": "fflush(fp)", "parent": 139, "children": [172, 173], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 12}}, {"id": 172, "type": "identifier", "text": "fflush", "parent": 171, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 8}}, {"id": 173, "type": "argument_list", "text": "(fp)", "parent": 171, "children": [174], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 174, "type": "identifier", "text": "fp", "parent": 173, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 11}}, {"id": 175, "type": "if_statement", "text": "if (bool_print){\n\t\t\tprintf(\"%s\\n\", rbuf.mtext);\t\n\t\t}", "parent": 139, "children": [176], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 46, "column": 3}}, {"id": 176, "type": "parenthesized_expression", "text": "(bool_print)", "parent": 175, "children": [177], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 17}}, {"id": 177, "type": "identifier", "text": "bool_print", "parent": 176, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 16}}, {"id": 178, "type": "call_expression", "text": "printf(\"%s\\n\", rbuf.mtext)", "parent": 175, "children": [179, 180], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 29}}, {"id": 179, "type": "identifier", "text": "printf", "parent": 178, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 9}}, {"id": 180, "type": "argument_list", "text": "(\"%s\\n\", rbuf.mtext)", "parent": 178, "children": [181, 183], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 29}}, {"id": 181, "type": "string_literal", "text": "\"%s\\n\"", "parent": 180, "children": [182], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 16}}, {"id": 182, "type": "escape_sequence", "text": "\\n", "parent": 181, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 15}}, {"id": 183, "type": "field_expression", "text": "rbuf.mtext", "parent": 180, "children": [184, 185], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 28}}, {"id": 184, "type": "identifier", "text": "rbuf", "parent": 183, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 22}}, {"id": 185, "type": "field_identifier", "text": "mtext", "parent": 183, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 28}}, {"id": 186, "type": "call_expression", "text": "fclose(fp)", "parent": 36, "children": [187, 188], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 11}}, {"id": 187, "type": "identifier", "text": "fclose", "parent": 186, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 7}}, {"id": 188, "type": "argument_list", "text": "(fp)", "parent": 186, "children": [189], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 11}}, {"id": 189, "type": "identifier", "text": "fp", "parent": 188, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 10}}, {"id": 190, "type": "return_statement", "text": "return 0;", "parent": 36, "children": [191], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 10}}, {"id": 191, "type": "number_literal", "text": "0", "parent": 190, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 9}}, {"id": 192, "type": "function_definition", "text": "void print_usage(){\n\tprintf(\"Usage:\\n\");\n\tprintf(\"./rec msg_key out_file [bool_print=1]\\n\");\n\tprintf(\"\\tmsg_key 1234 for imsi\\n\");\n\tprintf(\"\\tmsg_key 2234 for probe request\\n\");\n\tprintf(\"\\tbool_print 0 mute\\n\");\n}", "parent": null, "children": [193, 194], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 193, "type": "primitive_type", "text": "void", "parent": 192, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 194, "type": "function_declarator", "text": "print_usage()", "parent": 192, "children": [195, 196], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 18}}, {"id": 195, "type": "identifier", "text": "print_usage", "parent": 194, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 16}}, {"id": 196, "type": "parameter_list", "text": "()", "parent": 194, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 18}}, {"id": 197, "type": "call_expression", "text": "printf(\"Usage:\\n\")", "parent": 192, "children": [198, 199], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 19}}, {"id": 198, "type": "identifier", "text": "printf", "parent": 197, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 7}}, {"id": 199, "type": "argument_list", "text": "(\"Usage:\\n\")", "parent": 197, "children": [200], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 19}}, {"id": 200, "type": "string_literal", "text": "\"Usage:\\n\"", "parent": 199, "children": [201], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 18}}, {"id": 201, "type": "escape_sequence", "text": "\\n", "parent": 200, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 17}}, {"id": 202, "type": "call_expression", "text": "printf(\"./rec msg_key out_file [bool_print=1]\\n\")", "parent": 192, "children": [203, 204], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 50}}, {"id": 203, "type": "identifier", "text": "printf", "parent": 202, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 7}}, {"id": 204, "type": "argument_list", "text": "(\"./rec msg_key out_file [bool_print=1]\\n\")", "parent": 202, "children": [205], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 50}}, {"id": 205, "type": "string_literal", "text": "\"./rec msg_key out_file [bool_print=1]\\n\"", "parent": 204, "children": [206], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 49}}, {"id": 206, "type": "escape_sequence", "text": "\\n", "parent": 205, "children": [], "start_point": {"row": 56, "column": 46}, "end_point": {"row": 56, "column": 48}}, {"id": 207, "type": "call_expression", "text": "printf(\"\\tmsg_key 1234 for imsi\\n\")", "parent": 192, "children": [208, 209], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 36}}, {"id": 208, "type": "identifier", "text": "printf", "parent": 207, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 7}}, {"id": 209, "type": "argument_list", "text": "(\"\\tmsg_key 1234 for imsi\\n\")", "parent": 207, "children": [210], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 36}}, {"id": 210, "type": "string_literal", "text": "\"\\tmsg_key 1234 for imsi\\n\"", "parent": 209, "children": [211, 212], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 35}}, {"id": 211, "type": "escape_sequence", "text": "\\t", "parent": 210, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 11}}, {"id": 212, "type": "escape_sequence", "text": "\\n", "parent": 210, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 34}}, {"id": 213, "type": "call_expression", "text": "printf(\"\\tmsg_key 2234 for probe request\\n\")", "parent": 192, "children": [214, 215], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 45}}, {"id": 214, "type": "identifier", "text": "printf", "parent": 213, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 7}}, {"id": 215, "type": "argument_list", "text": "(\"\\tmsg_key 2234 for probe request\\n\")", "parent": 213, "children": [216], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 45}}, {"id": 216, "type": "string_literal", "text": "\"\\tmsg_key 2234 for probe request\\n\"", "parent": 215, "children": [217, 218], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 44}}, {"id": 217, "type": "escape_sequence", "text": "\\t", "parent": 216, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 11}}, {"id": 218, "type": "escape_sequence", "text": "\\n", "parent": 216, "children": [], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 43}}, {"id": 219, "type": "call_expression", "text": "printf(\"\\tbool_print 0 mute\\n\")", "parent": 192, "children": [220, 221], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 32}}, {"id": 220, "type": "identifier", "text": "printf", "parent": 219, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 7}}, {"id": 221, "type": "argument_list", "text": "(\"\\tbool_print 0 mute\\n\")", "parent": 219, "children": [222], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 32}}, {"id": 222, "type": "string_literal", "text": "\"\\tbool_print 0 mute\\n\"", "parent": 221, "children": [223, 224], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 31}}, {"id": 223, "type": "escape_sequence", "text": "\\t", "parent": 222, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 11}}, {"id": 224, "type": "escape_sequence", "text": "\\n", "parent": 222, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 30}}]}, "node_categories": {"declarations": {"functions": [33, 36, 38, 192, 194], "variables": [16, 21, 25, 31, 41, 44, 51, 56, 59, 62, 65], "classes": [18, 19], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [72, 73, 77, 86, 89, 95, 98, 103, 104, 111, 114, 118, 119, 120, 124, 131, 135, 140, 143, 144, 145, 149, 151, 152, 158, 162, 168, 171, 176, 178, 183, 186, 197, 202, 207, 213, 219], "assignments": [83, 92, 108, 121], "loops": [139], "conditionals": [14, 20, 22, 24, 28, 29, 30, 34, 39, 43, 50, 52, 55, 58, 60, 61, 63, 64, 68, 71, 74, 78, 84, 87, 90, 93, 96, 99, 102, 105, 109, 112, 115, 117, 122, 125, 127, 132, 136, 142, 146, 148, 150, 153, 159, 163, 165, 169, 170, 172, 174, 175, 177, 179, 184, 185, 187, 189, 195, 198, 203, 208, 214, 220], "returns": [80, 190], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 70, 76, 81, 91, 100, 101, 107, 116, 128, 130, 134, 138, 141, 154, 155, 157, 161, 166, 181, 191, 200, 205, 210, 216, 222], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "print_usage()"}, {"node_id": 36, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char** argv){\n\tFILE * fp;\n\tint msqid;\n\tkey_t key;\n\tmessage_buf rbuf;\n\tint bool_pr"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char** argv)"}, {"node_id": 192, "universal_type": "function", "name": "print_usage", "text_snippet": "void print_usage(){\n\tprintf(\"Usage:\\n\");\n\tprintf(\"./rec msg_key out_file [bool_print=1]\\n\");\n\tprintf"}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": "print_usage()"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "msgbuf", "text_snippet": "struct msgbuf {\n\tlong mtype;\n\tchar mtext [MSGSZ];\n}"}, {"node_id": 19, "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 <sys/ipc.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <sys/msg.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <sys/ipc.h>\n#include <sys/msg.h>\n\n#define MSGSZ 128\n\ntypedef struct msgbuf {\n\tlong mtype;\n\tchar mtext [MSGSZ];\n} message_buf;\n\n\nvoid print_usage();\nint main(int argc, char** argv){\n\tFILE * fp;\n\tint msqid;\n\tkey_t key;\n\tmessage_buf rbuf;\n\tint bool_print = 1;\n\t// printf(\"%d\", argc);\n\tif (argc < 3){\n\t\tprint_usage();\n\t\treturn -1;\n\t} else {\n\t\tkey = atoi(argv[1]);\n\t\tfp = fopen(argv[2],\"a\");\n\t\tif (argc == 4){\n\t\t\tbool_print = atoi(argv[3]);\n\t\t}\n\t}\n\t\n\tif( (msqid = msgget(key, 0666)) < 0){\n\t\tperror(\"msgget\");\n\t\texit(1);\n\t}\n\twhile(1){\n\t\tif(msgrcv(msqid, &rbuf, sizeof(message_buf), 1, 0) < 0){\n\t\t\tperror(\"msgrcv\");\n\t\t}\n\t\t \n\t\tfprintf(fp, \"%s\\n\", rbuf.mtext);\n\t\tfflush(fp);\n\t\t \n\t\tif (bool_print){\n\t\t\tprintf(\"%s\\n\", rbuf.mtext);\t\n\t\t}\n//\t\tsleep(1);\n\t}\n\n\tfclose(fp);\n\treturn 0;\n}\n\nvoid print_usage(){\n\tprintf(\"Usage:\\n\");\n\tprintf(\"./rec msg_key out_file [bool_print=1]\\n\");\n\tprintf(\"\\tmsg_key 1234 for imsi\\n\");\n\tprintf(\"\\tmsg_key 2234 for probe request\\n\");\n\tprintf(\"\\tbool_print 0 mute\\n\");\n}"}
80,442
c
/*++ Copyright (c) 2015 <NAME> Module Name: UserApi.h Abstract: This file defines the interface for the library to control the driver Environment: User mode only --*/ #ifndef __USERAPI_H #define __USERAPI_H #ifdef __cplusplus extern "C" { #endif extern HRESULT WINAPI GetValue( __out PULONG Val ); #ifdef __cplusplus } #endif #endif // __USERAPI_H
17.79
19
(translation_unit) "/*++\n\nCopyright (c) 2015 <NAME>\n\nModule Name:\n\n UserApi.h\n\nAbstract:\n\n This file defines the interface for the library to control the driver\n\nEnvironment:\n\n User mode only\n\n--*/\n#ifndef __USERAPI_H\n#define __USERAPI_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif // __USERAPI_H\n" (comment) "/*++\n\nCopyright (c) 2015 <NAME>\n\nModule Name:\n\n UserApi.h\n\nAbstract:\n\n This file defines the interface for the library to control the driver\n\nEnvironment:\n\n User mode only\n\n--*/" (preproc_ifdef) "#ifndef __USERAPI_H\n#define __USERAPI_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "__USERAPI_H" (preproc_def) "#define __USERAPI_H\n" (#define) "#define" (identifier) "__USERAPI_H" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (declaration) "extern HRESULT WINAPI GetValue( __out PULONG Val );" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "HRESULT" (ERROR) "WINAPI" (identifier) "WINAPI" (function_declarator) "GetValue( __out PULONG Val )" (identifier) "GetValue" (parameter_list) "( __out PULONG Val )" (() "(" (parameter_declaration) "__out PULONG" (type_identifier) "__out" (identifier) "PULONG" (ERROR) "Val" (identifier) "Val" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif" (comment) "// __USERAPI_H"
46
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.79, "nodes": 34, "errors": 0, "source_hash": "e2dcc38e451e25ed638e59b9b10027441d61f23f37a8641b733573e03252f21c", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __USERAPI_H\n#define __USERAPI_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 33], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 2, "type": "identifier", "text": "__USERAPI_H", "parent": 0, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define __USERAPI_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 5, "type": "identifier", "text": "__USERAPI_H", "parent": 3, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 19}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 32], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\n", "parent": 9, "children": [13], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 14, "type": "declaration", "text": "extern HRESULT WINAPI GetValue( __out PULONG Val );", "parent": 9, "children": [15, 17, 18, 20], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 51}}, {"id": 15, "type": "storage_class_specifier", "text": "extern", "parent": 14, "children": [16], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 16, "type": "extern", "text": "extern", "parent": 15, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 17, "type": "type_identifier", "text": "HRESULT", "parent": 14, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 14}}, {"id": 18, "type": "ERROR", "text": "WINAPI", "parent": 14, "children": [19], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 21}}, {"id": 19, "type": "identifier", "text": "WINAPI", "parent": 18, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 21}}, {"id": 20, "type": "function_declarator", "text": "GetValue( __out PULONG Val )", "parent": 14, "children": [21, 22], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 50}}, {"id": 21, "type": "identifier", "text": "GetValue", "parent": 20, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 30}}, {"id": 22, "type": "parameter_list", "text": "( __out PULONG Val )", "parent": 20, "children": [23, 26], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 50}}, {"id": 23, "type": "parameter_declaration", "text": "__out PULONG", "parent": 22, "children": [24, 25], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 44}}, {"id": 24, "type": "type_identifier", "text": "__out", "parent": 23, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 37}}, {"id": 25, "type": "identifier", "text": "PULONG", "parent": 23, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 44}}, {"id": 26, "type": "ERROR", "text": "Val", "parent": 22, "children": [27], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 48}}, {"id": 27, "type": "identifier", "text": "Val", "parent": 26, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 48}}, {"id": 28, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [29, 30, 31], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 18}}, {"id": 29, "type": "#ifdef", "text": "#ifdef", "parent": 28, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 30, "type": "identifier", "text": "__cplusplus", "parent": 28, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 18}}, {"id": 31, "type": "#endif", "text": "", "parent": 28, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 18}}, {"id": 32, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 33, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}]}, "node_categories": {"declarations": {"functions": [20], "variables": [14, 23], "classes": [15], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 17, 19, 21, 24, 25, 27, 28, 29, 30, 31, 32, 33], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "GetValue( __out PULONG Val )"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "/*++\n\nCopyright (c) 2015 <NAME>\n\nModule Name:\n\n UserApi.h\n\nAbstract:\n\n This file defines the interface for the library to control the driver\n\nEnvironment:\n\n\tUser mode only\n\n--*/\n#ifndef __USERAPI_H\n#define __USERAPI_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nextern HRESULT WINAPI GetValue( __out PULONG Val );\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif // __USERAPI_H\n"}
80,443
c
// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "GameFramework/Character.h" #include "TP_SideScrollerCharacter.generated.h" UCLASS(config=Game) class ATP_SideScrollerCharacter : public ACharacter { GENERATED_BODY() /** Side view camera */ UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) class UCameraComponent* SideViewCameraComponent; /** Camera boom positioning the camera beside the character */ UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) class USpringArmComponent* CameraBoom; protected: // --- Functions --- \\ void MoveRight(float Val); void MoveUp(float Val); void InteractWithObject(); UFUNCTION(BlueprintNativeEvent) void TraceForward(); void TraceForward_Implementation(); void TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location); void TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location); virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override; // --- Fields --- \\ UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Interactions") float TraceDistance; public: ATP_SideScrollerCharacter(); /** Returns SideViewCameraComponent subobject **/ FORCEINLINE class UCameraComponent* GetSideViewCameraComponent() const { return SideViewCameraComponent; } /** Returns CameraBoom subobject **/ FORCEINLINE class USpringArmComponent* GetCameraBoom() const { return CameraBoom; } };
30.73
51
(translation_unit) "// Copyright Epic Games, Inc. All Rights Reserved. \n \n#pragma once \n \n#include "CoreMinimal.h" \n#include "GameFramework/Character.h" \n#include "TP_SideScrollerCharacter.generated.h" \n \nUCLASS(config=Game) \nclass ATP_SideScrollerCharacter : public ACharacter \n{ \n GENERATED_BODY() \n \n /** Side view camera */ \n UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) \n class UCameraComponent* SideViewCameraComponent; \n \n /** Camera boom positioning the camera beside the character */ \n UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) \n class USpringArmComponent* CameraBoom; \n \nprotected: \n \n // --- Functions --- \\ \n \n void MoveRight(float Val); \n void MoveUp(float Val); \n void InteractWithObject(); \n \n UFUNCTION(BlueprintNativeEvent) \n void TraceForward(); \n void TraceForward_Implementation(); \n \n void TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location); \n void TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location); \n \n virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override; \n \n // --- Fields --- \\ \n \n UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Interactions") \n float TraceDistance; \n \npublic: \n ATP_SideScrollerCharacter(); \n \n /** Returns SideViewCameraComponent subobject **/ \n FORCEINLINE class UCameraComponent* GetSideViewCameraComponent() const { return SideViewCameraComponent; } \n /** Returns CameraBoom subobject **/ \n FORCEINLINE class USpringArmComponent* GetCameraBoom() const { return CameraBoom; } \n}; \n" (comment) "// Copyright Epic Games, Inc. All Rights Reserved. " (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include "CoreMinimal.h" \n" (#include) "#include" (string_literal) ""CoreMinimal.h"" (") """ (string_content) "CoreMinimal.h" (") """ (preproc_include) "#include "GameFramework/Character.h" \n" (#include) "#include" (string_literal) ""GameFramework/Character.h"" (") """ (string_content) "GameFramework/Character.h" (") """ (preproc_include) "#include "TP_SideScrollerCharacter.generated.h" \n" (#include) "#include" (string_literal) ""TP_SideScrollerCharacter.generated.h"" (") """ (string_content) "TP_SideScrollerCharacter.generated.h" (") """ (ERROR) "UCLASS(config=Game) \nclass" (call_expression) "UCLASS(config=Game)" (identifier) "UCLASS" (argument_list) "(config=Game)" (() "(" (assignment_expression) "config=Game" (identifier) "config" (=) "=" (identifier) "Game" ()) ")" (identifier) "class" (labeled_statement) "ATP_SideScrollerCharacter : public ACharacter \n{ \n GENERATED_BODY() \n \n /** Side view camera */ \n UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) \n class UCameraComponent* SideViewCameraComponent;" (statement_identifier) "ATP_SideScrollerCharacter" (:) ":" (declaration) "public ACharacter \n{ \n GENERATED_BODY() \n \n /** Side view camera */ \n UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) \n class UCameraComponent* SideViewCameraComponent;" (type_identifier) "public" (ERROR) "ACharacter \n{" (identifier) "ACharacter" ({) "{" (init_declarator) "GENERATED_BODY() \n \n /** Side view camera */ \n UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera" (function_declarator) "GENERATED_BODY() \n \n /** Side view camera */ \n UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category" (identifier) "GENERATED_BODY" (parameter_list) "()" (() "(" ()) ")" (comment) "/** Side view camera */" (call_expression) "UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category" (identifier) "UPROPERTY" (argument_list) "(VisibleAnywhere, BlueprintReadOnly, Category" (() "(" (identifier) "VisibleAnywhere" (,) "," (identifier) "BlueprintReadOnly" (,) "," (identifier) "Category" ()) "" (=) "=" (identifier) "Camera" (,) "," (init_declarator) "meta = (AllowPrivateAccess = "true")) \n class UCameraComponent* SideViewCameraComponent" (identifier) "meta" (=) "=" (ERROR) "(AllowPrivateAccess = "true")) \n class" (parenthesized_expression) "(AllowPrivateAccess = "true")" (() "(" (assignment_expression) "AllowPrivateAccess = "true"" (identifier) "AllowPrivateAccess" (=) "=" (string_literal) ""true"" (") """ (string_content) "true" (") """ ()) ")" ()) ")" (identifier) "class" (binary_expression) "UCameraComponent* SideViewCameraComponent" (identifier) "UCameraComponent" (*) "*" (identifier) "SideViewCameraComponent" (;) ";" (comment) "/** Camera boom positioning the camera beside the character */" (ERROR) "UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true")) \n class" (call_expression) "UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true"))" (identifier) "UPROPERTY" (argument_list) "(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = "true"))" (() "(" (identifier) "VisibleAnywhere" (,) "," (identifier) "BlueprintReadOnly" (,) "," (assignment_expression) "Category = Camera" (identifier) "Category" (=) "=" (identifier) "Camera" (,) "," (assignment_expression) "meta = (AllowPrivateAccess = "true")" (identifier) "meta" (=) "=" (parenthesized_expression) "(AllowPrivateAccess = "true")" (() "(" (assignment_expression) "AllowPrivateAccess = "true"" (identifier) "AllowPrivateAccess" (=) "=" (string_literal) ""true"" (") """ (string_content) "true" (") """ ()) ")" ()) ")" (identifier) "class" (declaration) "USpringArmComponent* CameraBoom;" (type_identifier) "USpringArmComponent" (pointer_declarator) "* CameraBoom" (*) "*" (identifier) "CameraBoom" (;) ";" (labeled_statement) "protected: \n \n // --- Functions --- \\ \n \n void MoveRight(float Val);" (statement_identifier) "protected" (:) ":" (comment) "// --- Functions --- \\ \n " (declaration) "void MoveRight(float Val);" (primitive_type) "void" (function_declarator) "MoveRight(float Val)" (identifier) "MoveRight" (parameter_list) "(float Val)" (() "(" (parameter_declaration) "float Val" (primitive_type) "float" (identifier) "Val" ()) ")" (;) ";" (declaration) "void MoveUp(float Val);" (primitive_type) "void" (function_declarator) "MoveUp(float Val)" (identifier) "MoveUp" (parameter_list) "(float Val)" (() "(" (parameter_declaration) "float Val" (primitive_type) "float" (identifier) "Val" ()) ")" (;) ";" (declaration) "void InteractWithObject();" (primitive_type) "void" (function_declarator) "InteractWithObject()" (identifier) "InteractWithObject" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "UFUNCTION(BlueprintNativeEvent) \n void TraceForward();" (macro_type_specifier) "UFUNCTION(BlueprintNativeEvent)" (identifier) "UFUNCTION" (() "(" (type_descriptor) "BlueprintNativeEvent" (type_identifier) "BlueprintNativeEvent" ()) ")" (ERROR) "void" (identifier) "void" (function_declarator) "TraceForward()" (identifier) "TraceForward" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void TraceForward_Implementation();" (primitive_type) "void" (function_declarator) "TraceForward_Implementation()" (identifier) "TraceForward_Implementation" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location);" (primitive_type) "void" (function_declarator) "TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location)" (identifier) "TouchStarted" (parameter_list) "(const ETouchIndex::Type FingerIndex, const FVector Location)" (() "(" (parameter_declaration) "const ETouchIndex::Type FingerIndex" (type_qualifier) "const" (const) "const" (type_identifier) "ETouchIndex" (ERROR) "::Type" (:) ":" (:) ":" (identifier) "Type" (identifier) "FingerIndex" (,) "," (parameter_declaration) "const FVector Location" (type_qualifier) "const" (const) "const" (type_identifier) "FVector" (identifier) "Location" ()) ")" (;) ";" (declaration) "void TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location);" (primitive_type) "void" (function_declarator) "TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location)" (identifier) "TouchStopped" (parameter_list) "(const ETouchIndex::Type FingerIndex, const FVector Location)" (() "(" (parameter_declaration) "const ETouchIndex::Type FingerIndex" (type_qualifier) "const" (const) "const" (type_identifier) "ETouchIndex" (ERROR) "::Type" (:) ":" (:) ":" (identifier) "Type" (identifier) "FingerIndex" (,) "," (parameter_declaration) "const FVector Location" (type_qualifier) "const" (const) "const" (type_identifier) "FVector" (identifier) "Location" ()) ")" (;) ";" (function_definition) "virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override; \n \n // --- Fields --- \\ \n \n UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Interactions") \n float TraceDistance; \n \npublic: \n ATP_SideScrollerCharacter(); \n \n /** Returns SideViewCameraComponent subobject **/ \n FORCEINLINE class UCameraComponent* GetSideViewCameraComponent() const { return SideViewCameraComponent; }" (type_identifier) "virtual" (ERROR) "void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;" (identifier) "void" (function_declarator) "SetupPlayerInputComponent(class UInputComponent* InputComponent) override" (identifier) "SetupPlayerInputComponent" (parameter_list) "(class UInputComponent* InputComponent)" (() "(" (parameter_declaration) "class UInputComponent* InputComponent" (type_identifier) "class" (ERROR) "UInputComponent" (identifier) "UInputComponent" (pointer_declarator) "* InputComponent" (*) "*" (identifier) "InputComponent" ()) ")" (identifier) "override" (;) ";" (comment) "// --- Fields --- \\ \n " (function_declarator) "UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Interactions")" (identifier) "UPROPERTY" (parameter_list) "(EditAnywhere, BlueprintReadOnly, Category = "Interactions")" (() "(" (identifier) "EditAnywhere" (,) "," (identifier) "BlueprintReadOnly" (,) "," (identifier) "Category" (ERROR) "= "Interactions"" (=) "=" (") """ (identifier) "Interactions" (") """ ()) ")" (declaration) "float TraceDistance;" (primitive_type) "float" (identifier) "TraceDistance" (;) ";" (declaration) "public: \n ATP_SideScrollerCharacter();" (type_identifier) "public" (ERROR) ":" (:) ":" (function_declarator) "ATP_SideScrollerCharacter()" (identifier) "ATP_SideScrollerCharacter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/** Returns SideViewCameraComponent subobject **/" (declaration) "FORCEINLINE class" (type_identifier) "FORCEINLINE" (identifier) "class" (;) "" (ERROR) "UCameraComponent* GetSideViewCameraComponent() const" (type_identifier) "UCameraComponent" (pointer_declarator) "* GetSideViewCameraComponent() const" (*) "*" (function_declarator) "GetSideViewCameraComponent() const" (identifier) "GetSideViewCameraComponent" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return SideViewCameraComponent; }" ({) "{" (return_statement) "return SideViewCameraComponent;" (return) "return" (identifier) "SideViewCameraComponent" (;) ";" (}) "}" (comment) "/** Returns CameraBoom subobject **/" (declaration) "FORCEINLINE class" (type_identifier) "FORCEINLINE" (identifier) "class" (;) "" (function_definition) "USpringArmComponent* GetCameraBoom() const { return CameraBoom; }" (type_identifier) "USpringArmComponent" (pointer_declarator) "* GetCameraBoom() const" (*) "*" (function_declarator) "GetCameraBoom() const" (identifier) "GetCameraBoom" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return CameraBoom; }" ({) "{" (return_statement) "return CameraBoom;" (return) "return" (identifier) "CameraBoom" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";"
318
13
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 30.73, "nodes": 188, "errors": 0, "source_hash": "7413726402c289f27bc7a6ba67cc3e269737e25d5991af7abf5d02331b17211f", "categorized_nodes": 128}, "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 \"CoreMinimal.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": "\"CoreMinimal.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"GameFramework/Character.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": "\"GameFramework/Character.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 36}}, {"id": 9, "type": "preproc_include", "text": "#include \"TP_SideScrollerCharacter.generated.h\"\r\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": "\"TP_SideScrollerCharacter.generated.h\"", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 47}}, {"id": 12, "type": "ERROR", "text": "UCLASS(config=Game)\r\nclass", "parent": null, "children": [13], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 13, "type": "call_expression", "text": "UCLASS(config=Game)", "parent": 12, "children": [14, 15], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 19}}, {"id": 14, "type": "identifier", "text": "UCLASS", "parent": 13, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 15, "type": "argument_list", "text": "(config=Game)", "parent": 13, "children": [16], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 19}}, {"id": 16, "type": "assignment_expression", "text": "config=Game", "parent": 15, "children": [17, 18, 19], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 18}}, {"id": 17, "type": "identifier", "text": "config", "parent": 16, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 13}}, {"id": 18, "type": "=", "text": "=", "parent": 16, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 14}}, {"id": 19, "type": "identifier", "text": "Game", "parent": 16, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 18}}, {"id": 20, "type": "labeled_statement", "text": "ATP_SideScrollerCharacter : public ACharacter\r\n{\r\n\tGENERATED_BODY()\r\n\r\n\t/** Side view camera */\r\n\tUPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = \"true\"))\r\n\tclass UCameraComponent* SideViewCameraComponent;", "parent": null, "children": [21, 22], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 15, "column": 49}}, {"id": 21, "type": "statement_identifier", "text": "ATP_SideScrollerCharacter", "parent": 20, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 31}}, {"id": 22, "type": "declaration", "text": "public ACharacter\r\n{\r\n\tGENERATED_BODY()\r\n\r\n\t/** Side view camera */\r\n\tUPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = \"true\"))\r\n\tclass UCameraComponent* SideViewCameraComponent;", "parent": 20, "children": [23, 25, 37], "start_point": {"row": 9, "column": 34}, "end_point": {"row": 15, "column": 49}}, {"id": 23, "type": "ERROR", "text": "ACharacter\r\n{", "parent": 22, "children": [24], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 10, "column": 1}}, {"id": 24, "type": "identifier", "text": "ACharacter", "parent": 23, "children": [], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 9, "column": 51}}, {"id": 25, "type": "init_declarator", "text": "GENERATED_BODY()\r\n\r\n\t/** Side view camera */\r\n\tUPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera", "parent": 22, "children": [26, 35, 36], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 14, "column": 64}}, {"id": 26, "type": "function_declarator", "text": "GENERATED_BODY()\r\n\r\n\t/** Side view camera */\r\n\tUPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 14, "column": 55}}, {"id": 27, "type": "identifier", "text": "GENERATED_BODY", "parent": 26, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 15}}, {"id": 28, "type": "parameter_list", "text": "()", "parent": 26, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 17}}, {"id": 29, "type": "call_expression", "text": "UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category", "parent": 26, "children": [30, 31], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 55}}, {"id": 30, "type": "identifier", "text": "UPROPERTY", "parent": 29, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 31, "type": "argument_list", "text": "(VisibleAnywhere, BlueprintReadOnly, Category", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 55}}, {"id": 32, "type": "identifier", "text": "VisibleAnywhere", "parent": 31, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 26}}, {"id": 33, "type": "identifier", "text": "BlueprintReadOnly", "parent": 31, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 45}}, {"id": 34, "type": "identifier", "text": "Category", "parent": 31, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 55}}, {"id": 35, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 14, "column": 56}, "end_point": {"row": 14, "column": 57}}, {"id": 36, "type": "identifier", "text": "Camera", "parent": 25, "children": [], "start_point": {"row": 14, "column": 58}, "end_point": {"row": 14, "column": 64}}, {"id": 37, "type": "init_declarator", "text": "meta = (AllowPrivateAccess = \"true\"))\r\n\tclass UCameraComponent* SideViewCameraComponent", "parent": 22, "children": [38, 39, 40, 46], "start_point": {"row": 14, "column": 66}, "end_point": {"row": 15, "column": 48}}, {"id": 38, "type": "identifier", "text": "meta", "parent": 37, "children": [], "start_point": {"row": 14, "column": 66}, "end_point": {"row": 14, "column": 70}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 14, "column": 71}, "end_point": {"row": 14, "column": 72}}, {"id": 40, "type": "ERROR", "text": "(AllowPrivateAccess = \"true\"))\r\n\tclass", "parent": 37, "children": [41], "start_point": {"row": 14, "column": 73}, "end_point": {"row": 15, "column": 6}}, {"id": 41, "type": "parenthesized_expression", "text": "(AllowPrivateAccess = \"true\")", "parent": 40, "children": [42], "start_point": {"row": 14, "column": 73}, "end_point": {"row": 14, "column": 102}}, {"id": 42, "type": "assignment_expression", "text": "AllowPrivateAccess = \"true\"", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 14, "column": 74}, "end_point": {"row": 14, "column": 101}}, {"id": 43, "type": "identifier", "text": "AllowPrivateAccess", "parent": 42, "children": [], "start_point": {"row": 14, "column": 74}, "end_point": {"row": 14, "column": 92}}, {"id": 44, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 14, "column": 93}, "end_point": {"row": 14, "column": 94}}, {"id": 45, "type": "string_literal", "text": "\"true\"", "parent": 42, "children": [], "start_point": {"row": 14, "column": 95}, "end_point": {"row": 14, "column": 101}}, {"id": 46, "type": "binary_expression", "text": "UCameraComponent* SideViewCameraComponent", "parent": 37, "children": [47, 48, 49], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 48}}, {"id": 47, "type": "identifier", "text": "UCameraComponent", "parent": 46, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 23}}, {"id": 48, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 49, "type": "identifier", "text": "SideViewCameraComponent", "parent": 46, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 48}}, {"id": 50, "type": "ERROR", "text": "UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = \"true\"))\r\n\tclass", "parent": null, "children": [51], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 19, "column": 6}}, {"id": 51, "type": "call_expression", "text": "UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = \"true\"))", "parent": 50, "children": [52, 53], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 103}}, {"id": 52, "type": "identifier", "text": "UPROPERTY", "parent": 51, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 53, "type": "argument_list", "text": "(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = \"true\"))", "parent": 51, "children": [54, 55, 56, 60], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 103}}, {"id": 54, "type": "identifier", "text": "VisibleAnywhere", "parent": 53, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 26}}, {"id": 55, "type": "identifier", "text": "BlueprintReadOnly", "parent": 53, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 45}}, {"id": 56, "type": "assignment_expression", "text": "Category = Camera", "parent": 53, "children": [57, 58, 59], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 64}}, {"id": 57, "type": "identifier", "text": "Category", "parent": 56, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 55}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 18, "column": 56}, "end_point": {"row": 18, "column": 57}}, {"id": 59, "type": "identifier", "text": "Camera", "parent": 56, "children": [], "start_point": {"row": 18, "column": 58}, "end_point": {"row": 18, "column": 64}}, {"id": 60, "type": "assignment_expression", "text": "meta = (AllowPrivateAccess = \"true\")", "parent": 53, "children": [61, 62, 63], "start_point": {"row": 18, "column": 66}, "end_point": {"row": 18, "column": 102}}, {"id": 61, "type": "identifier", "text": "meta", "parent": 60, "children": [], "start_point": {"row": 18, "column": 66}, "end_point": {"row": 18, "column": 70}}, {"id": 62, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 18, "column": 71}, "end_point": {"row": 18, "column": 72}}, {"id": 63, "type": "parenthesized_expression", "text": "(AllowPrivateAccess = \"true\")", "parent": 60, "children": [64], "start_point": {"row": 18, "column": 73}, "end_point": {"row": 18, "column": 102}}, {"id": 64, "type": "assignment_expression", "text": "AllowPrivateAccess = \"true\"", "parent": 63, "children": [65, 66, 67], "start_point": {"row": 18, "column": 74}, "end_point": {"row": 18, "column": 101}}, {"id": 65, "type": "identifier", "text": "AllowPrivateAccess", "parent": 64, "children": [], "start_point": {"row": 18, "column": 74}, "end_point": {"row": 18, "column": 92}}, {"id": 66, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 18, "column": 93}, "end_point": {"row": 18, "column": 94}}, {"id": 67, "type": "string_literal", "text": "\"true\"", "parent": 64, "children": [], "start_point": {"row": 18, "column": 95}, "end_point": {"row": 18, "column": 101}}, {"id": 68, "type": "declaration", "text": "USpringArmComponent* CameraBoom;", "parent": null, "children": [69, 70], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 39}}, {"id": 69, "type": "type_identifier", "text": "USpringArmComponent", "parent": 68, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 26}}, {"id": 70, "type": "pointer_declarator", "text": "* CameraBoom", "parent": 68, "children": [71, 72], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 38}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 72, "type": "identifier", "text": "CameraBoom", "parent": 70, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 38}}, {"id": 73, "type": "labeled_statement", "text": "protected:\r\n\r\n\t// --- Functions --- \\\\\r\n\t\r\n\tvoid MoveRight(float Val);", "parent": null, "children": [74], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 25, "column": 27}}, {"id": 74, "type": "declaration", "text": "void MoveRight(float Val);", "parent": 73, "children": [75, 76], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 27}}, {"id": 75, "type": "primitive_type", "text": "void", "parent": 74, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 76, "type": "function_declarator", "text": "MoveRight(float Val)", "parent": 74, "children": [77, 78], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 26}}, {"id": 77, "type": "identifier", "text": "MoveRight", "parent": 76, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 15}}, {"id": 78, "type": "parameter_list", "text": "(float Val)", "parent": 76, "children": [79], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 26}}, {"id": 79, "type": "parameter_declaration", "text": "float Val", "parent": 78, "children": [80, 81], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 25}}, {"id": 80, "type": "primitive_type", "text": "float", "parent": 79, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 21}}, {"id": 81, "type": "identifier", "text": "Val", "parent": 79, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 25}}, {"id": 82, "type": "declaration", "text": "void MoveUp(float Val);", "parent": null, "children": [83, 84], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 24}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 5}}, {"id": 84, "type": "function_declarator", "text": "MoveUp(float Val)", "parent": 82, "children": [85, 86], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 23}}, {"id": 85, "type": "identifier", "text": "MoveUp", "parent": 84, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 12}}, {"id": 86, "type": "parameter_list", "text": "(float Val)", "parent": 84, "children": [87], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 23}}, {"id": 87, "type": "parameter_declaration", "text": "float Val", "parent": 86, "children": [88, 89], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 22}}, {"id": 88, "type": "primitive_type", "text": "float", "parent": 87, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 18}}, {"id": 89, "type": "identifier", "text": "Val", "parent": 87, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 22}}, {"id": 90, "type": "declaration", "text": "void InteractWithObject();", "parent": null, "children": [91, 92], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 27}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 92, "type": "function_declarator", "text": "InteractWithObject()", "parent": 90, "children": [93, 94], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 26}}, {"id": 93, "type": "identifier", "text": "InteractWithObject", "parent": 92, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 24}}, {"id": 94, "type": "parameter_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 26}}, {"id": 95, "type": "declaration", "text": "UFUNCTION(BlueprintNativeEvent)\r\n\tvoid TraceForward();", "parent": null, "children": [96, 100, 102], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 30, "column": 21}}, {"id": 96, "type": "macro_type_specifier", "text": "UFUNCTION(BlueprintNativeEvent)", "parent": 95, "children": [97, 98], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 32}}, {"id": 97, "type": "identifier", "text": "UFUNCTION", "parent": 96, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 10}}, {"id": 98, "type": "type_descriptor", "text": "BlueprintNativeEvent", "parent": 96, "children": [99], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 31}}, {"id": 99, "type": "type_identifier", "text": "BlueprintNativeEvent", "parent": 98, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 31}}, {"id": 100, "type": "ERROR", "text": "void", "parent": 95, "children": [101], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 5}}, {"id": 101, "type": "identifier", "text": "void", "parent": 100, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 5}}, {"id": 102, "type": "function_declarator", "text": "TraceForward()", "parent": 95, "children": [103, 104], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 20}}, {"id": 103, "type": "identifier", "text": "TraceForward", "parent": 102, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 18}}, {"id": 104, "type": "parameter_list", "text": "()", "parent": 102, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 20}}, {"id": 105, "type": "declaration", "text": "void TraceForward_Implementation();", "parent": null, "children": [106, 107], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 36}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 107, "type": "function_declarator", "text": "TraceForward_Implementation()", "parent": 105, "children": [108, 109], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 35}}, {"id": 108, "type": "identifier", "text": "TraceForward_Implementation", "parent": 107, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 33}}, {"id": 109, "type": "parameter_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 35}}, {"id": 110, "type": "declaration", "text": "void TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location);", "parent": null, "children": [111, 112], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 80}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 110, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 5}}, {"id": 112, "type": "function_declarator", "text": "TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location)", "parent": 110, "children": [113, 114], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 79}}, {"id": 113, "type": "identifier", "text": "TouchStarted", "parent": 112, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 18}}, {"id": 114, "type": "parameter_list", "text": "(const ETouchIndex::Type FingerIndex, const FVector Location)", "parent": 112, "children": [115, 120], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 79}}, {"id": 115, "type": "parameter_declaration", "text": "const ETouchIndex::Type FingerIndex", "parent": 114, "children": [116, 117, 119], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 54}}, {"id": 116, "type": "type_identifier", "text": "ETouchIndex", "parent": 115, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 36}}, {"id": 117, "type": "ERROR", "text": "::Type", "parent": 115, "children": [118], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 42}}, {"id": 118, "type": "identifier", "text": "Type", "parent": 117, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 42}}, {"id": 119, "type": "identifier", "text": "FingerIndex", "parent": 115, "children": [], "start_point": {"row": 33, "column": 43}, "end_point": {"row": 33, "column": 54}}, {"id": 120, "type": "parameter_declaration", "text": "const FVector Location", "parent": 114, "children": [121, 122], "start_point": {"row": 33, "column": 56}, "end_point": {"row": 33, "column": 78}}, {"id": 121, "type": "type_identifier", "text": "FVector", "parent": 120, "children": [], "start_point": {"row": 33, "column": 62}, "end_point": {"row": 33, "column": 69}}, {"id": 122, "type": "identifier", "text": "Location", "parent": 120, "children": [], "start_point": {"row": 33, "column": 70}, "end_point": {"row": 33, "column": 78}}, {"id": 123, "type": "declaration", "text": "void TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location);", "parent": null, "children": [124, 125], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 80}}, {"id": 124, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 125, "type": "function_declarator", "text": "TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location)", "parent": 123, "children": [126, 127], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 79}}, {"id": 126, "type": "identifier", "text": "TouchStopped", "parent": 125, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 18}}, {"id": 127, "type": "parameter_list", "text": "(const ETouchIndex::Type FingerIndex, const FVector Location)", "parent": 125, "children": [128, 133], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 79}}, {"id": 128, "type": "parameter_declaration", "text": "const ETouchIndex::Type FingerIndex", "parent": 127, "children": [129, 130, 132], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 54}}, {"id": 129, "type": "type_identifier", "text": "ETouchIndex", "parent": 128, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 36}}, {"id": 130, "type": "ERROR", "text": "::Type", "parent": 128, "children": [131], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 42}}, {"id": 131, "type": "identifier", "text": "Type", "parent": 130, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 42}}, {"id": 132, "type": "identifier", "text": "FingerIndex", "parent": 128, "children": [], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 54}}, {"id": 133, "type": "parameter_declaration", "text": "const FVector Location", "parent": 127, "children": [134, 135], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 78}}, {"id": 134, "type": "type_identifier", "text": "FVector", "parent": 133, "children": [], "start_point": {"row": 34, "column": 62}, "end_point": {"row": 34, "column": 69}}, {"id": 135, "type": "identifier", "text": "Location", "parent": 133, "children": [], "start_point": {"row": 34, "column": 70}, "end_point": {"row": 34, "column": 78}}, {"id": 136, "type": "function_definition", "text": "virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;\r\n\r\n\t// --- Fields --- \\\\\r\n\r\n\tUPROPERTY(EditAnywhere, BlueprintReadOnly, Category = \"Interactions\")\r\n\tfloat TraceDistance;\r\n\r\npublic:\r\n\tATP_SideScrollerCharacter();\r\n\r\n\t/** Returns SideViewCameraComponent subobject **/\r\n\tFORCEINLINE class UCameraComponent* GetSideViewCameraComponent() const { return SideViewCameraComponent; }", "parent": null, "children": [137, 138, 150, 159, 162, 166, 168], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 47, "column": 107}}, {"id": 137, "type": "type_identifier", "text": "virtual", "parent": 136, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 8}}, {"id": 138, "type": "ERROR", "text": "void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;", "parent": 136, "children": [139, 140], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 88}}, {"id": 139, "type": "identifier", "text": "void", "parent": 138, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 13}}, {"id": 140, "type": "function_declarator", "text": "SetupPlayerInputComponent(class UInputComponent* InputComponent) override", "parent": 138, "children": [141, 142, 149], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 87}}, {"id": 141, "type": "identifier", "text": "SetupPlayerInputComponent", "parent": 140, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 39}}, {"id": 142, "type": "parameter_list", "text": "(class UInputComponent* InputComponent)", "parent": 140, "children": [143], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 78}}, {"id": 143, "type": "parameter_declaration", "text": "class UInputComponent* InputComponent", "parent": 142, "children": [144, 146], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 77}}, {"id": 144, "type": "ERROR", "text": "UInputComponent", "parent": 143, "children": [145], "start_point": {"row": 36, "column": 46}, "end_point": {"row": 36, "column": 61}}, {"id": 145, "type": "identifier", "text": "UInputComponent", "parent": 144, "children": [], "start_point": {"row": 36, "column": 46}, "end_point": {"row": 36, "column": 61}}, {"id": 146, "type": "pointer_declarator", "text": "* InputComponent", "parent": 143, "children": [147, 148], "start_point": {"row": 36, "column": 61}, "end_point": {"row": 36, "column": 77}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 36, "column": 61}, "end_point": {"row": 36, "column": 62}}, {"id": 148, "type": "identifier", "text": "InputComponent", "parent": 146, "children": [], "start_point": {"row": 36, "column": 63}, "end_point": {"row": 36, "column": 77}}, {"id": 149, "type": "identifier", "text": "override", "parent": 140, "children": [], "start_point": {"row": 36, "column": 79}, "end_point": {"row": 36, "column": 87}}, {"id": 150, "type": "function_declarator", "text": "UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = \"Interactions\")", "parent": 136, "children": [151, 152], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 70}}, {"id": 151, "type": "identifier", "text": "UPROPERTY", "parent": 150, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 10}}, {"id": 152, "type": "parameter_list", "text": "(EditAnywhere, BlueprintReadOnly, Category = \"Interactions\")", "parent": 150, "children": [153, 154, 155, 156], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 70}}, {"id": 153, "type": "identifier", "text": "EditAnywhere", "parent": 152, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 23}}, {"id": 154, "type": "identifier", "text": "BlueprintReadOnly", "parent": 152, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 42}}, {"id": 155, "type": "identifier", "text": "Category", "parent": 152, "children": [], "start_point": {"row": 40, "column": 44}, "end_point": {"row": 40, "column": 52}}, {"id": 156, "type": "ERROR", "text": "= \"Interactions\"", "parent": 152, "children": [157, 158], "start_point": {"row": 40, "column": 53}, "end_point": {"row": 40, "column": 69}}, {"id": 157, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 40, "column": 53}, "end_point": {"row": 40, "column": 54}}, {"id": 158, "type": "identifier", "text": "Interactions", "parent": 156, "children": [], "start_point": {"row": 40, "column": 56}, "end_point": {"row": 40, "column": 68}}, {"id": 159, "type": "declaration", "text": "float TraceDistance;", "parent": 136, "children": [160, 161], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 21}}, {"id": 160, "type": "primitive_type", "text": "float", "parent": 159, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 6}}, {"id": 161, "type": "identifier", "text": "TraceDistance", "parent": 159, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 20}}, {"id": 162, "type": "declaration", "text": "public:\r\n\tATP_SideScrollerCharacter();", "parent": 136, "children": [163], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 29}}, {"id": 163, "type": "function_declarator", "text": "ATP_SideScrollerCharacter()", "parent": 162, "children": [164, 165], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 28}}, {"id": 164, "type": "identifier", "text": "ATP_SideScrollerCharacter", "parent": 163, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 26}}, {"id": 165, "type": "parameter_list", "text": "()", "parent": 163, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 28}}, {"id": 166, "type": "declaration", "text": "FORCEINLINE class", "parent": 136, "children": [167], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 18}}, {"id": 167, "type": "type_identifier", "text": "FORCEINLINE", "parent": 166, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 12}}, {"id": 168, "type": "ERROR", "text": "UCameraComponent* GetSideViewCameraComponent() const", "parent": 136, "children": [169, 170], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 71}}, {"id": 169, "type": "type_identifier", "text": "UCameraComponent", "parent": 168, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 35}}, {"id": 170, "type": "pointer_declarator", "text": "* GetSideViewCameraComponent() const", "parent": 168, "children": [171, 172], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 71}}, {"id": 171, "type": "*", "text": "*", "parent": 170, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 36}}, {"id": 172, "type": "function_declarator", "text": "GetSideViewCameraComponent() const", "parent": 170, "children": [173, 174], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 71}}, {"id": 173, "type": "identifier", "text": "GetSideViewCameraComponent", "parent": 172, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 63}}, {"id": 174, "type": "parameter_list", "text": "()", "parent": 172, "children": [], "start_point": {"row": 47, "column": 63}, "end_point": {"row": 47, "column": 65}}, {"id": 175, "type": "return_statement", "text": "return SideViewCameraComponent;", "parent": 136, "children": [176], "start_point": {"row": 47, "column": 74}, "end_point": {"row": 47, "column": 105}}, {"id": 176, "type": "identifier", "text": "SideViewCameraComponent", "parent": 175, "children": [], "start_point": {"row": 47, "column": 81}, "end_point": {"row": 47, "column": 104}}, {"id": 177, "type": "declaration", "text": "FORCEINLINE class", "parent": null, "children": [178], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 18}}, {"id": 178, "type": "type_identifier", "text": "FORCEINLINE", "parent": 177, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 12}}, {"id": 179, "type": "function_definition", "text": "USpringArmComponent* GetCameraBoom() const { return CameraBoom; }", "parent": null, "children": [180, 181], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 84}}, {"id": 180, "type": "type_identifier", "text": "USpringArmComponent", "parent": 179, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 38}}, {"id": 181, "type": "pointer_declarator", "text": "* GetCameraBoom() const", "parent": 179, "children": [182, 183], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 61}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 39}}, {"id": 183, "type": "function_declarator", "text": "GetCameraBoom() const", "parent": 181, "children": [184, 185], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 61}}, {"id": 184, "type": "identifier", "text": "GetCameraBoom", "parent": 183, "children": [], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 53}}, {"id": 185, "type": "parameter_list", "text": "()", "parent": 183, "children": [], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 55}}, {"id": 186, "type": "return_statement", "text": "return CameraBoom;", "parent": 179, "children": [187], "start_point": {"row": 49, "column": 64}, "end_point": {"row": 49, "column": 82}}, {"id": 187, "type": "identifier", "text": "CameraBoom", "parent": 186, "children": [], "start_point": {"row": 49, "column": 71}, "end_point": {"row": 49, "column": 81}}]}, "node_categories": {"declarations": {"functions": [26, 76, 84, 92, 102, 107, 112, 125, 136, 140, 150, 163, 172, 179, 183], "variables": [22, 68, 74, 79, 82, 87, 90, 95, 105, 110, 115, 120, 123, 128, 133, 143, 159, 162, 166, 177], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [13, 29, 41, 46, 51, 63], "assignments": [16, 42, 56, 60, 64], "loops": [], "conditionals": [14, 17, 19, 21, 24, 27, 30, 32, 33, 34, 36, 38, 43, 47, 49, 52, 54, 55, 57, 59, 61, 65, 69, 72, 77, 81, 85, 89, 93, 96, 97, 99, 101, 103, 108, 113, 116, 118, 119, 121, 122, 126, 129, 131, 132, 134, 135, 137, 139, 141, 145, 148, 149, 151, 153, 154, 155, 158, 161, 164, 167, 169, 173, 176, 178, 180, 184, 187], "returns": [175, 186], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 45, 67], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "GENERATED_BODY()\r\n\r\n\t/** Side view camera */\r\n\tUPROPERTY(VisibleAnywhere, BlueprintReadOnly, Categor"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "MoveRight(float Val)"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "MoveUp(float Val)"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "InteractWithObject()"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "TraceForward()"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "TraceForward_Implementation()"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location)"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location)"}, {"node_id": 136, "universal_type": "function", "name": "SetupPlayerInputComponent", "text_snippet": "virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;\r\n\r\n\t// --- F"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "SetupPlayerInputComponent(class UInputComponent* InputComponent) override"}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = \"Interactions\")"}, {"node_id": 163, "universal_type": "function", "name": "unknown", "text_snippet": "ATP_SideScrollerCharacter()"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "GetSideViewCameraComponent() const"}, {"node_id": 179, "universal_type": "function", "name": "unknown", "text_snippet": "USpringArmComponent* GetCameraBoom() const { return CameraBoom; }"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "GetCameraBoom() const"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreMinimal.h\"\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"GameFramework/Character.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"TP_SideScrollerCharacter.generated.h\"\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Copyright Epic Games, Inc. All Rights Reserved.\r\n\r\n#pragma once\r\n\r\n#include \"CoreMinimal.h\"\r\n#include \"GameFramework/Character.h\"\r\n#include \"TP_SideScrollerCharacter.generated.h\"\r\n\r\nUCLASS(config=Game)\r\nclass ATP_SideScrollerCharacter : public ACharacter\r\n{\r\n\tGENERATED_BODY()\r\n\r\n\t/** Side view camera */\r\n\tUPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = \"true\"))\r\n\tclass UCameraComponent* SideViewCameraComponent;\r\n\r\n\t/** Camera boom positioning the camera beside the character */\r\n\tUPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Camera, meta = (AllowPrivateAccess = \"true\"))\r\n\tclass USpringArmComponent* CameraBoom;\r\n\r\nprotected:\r\n\r\n\t// --- Functions --- \\\\\r\n\t\r\n\tvoid MoveRight(float Val);\r\n\tvoid MoveUp(float Val);\r\n\tvoid InteractWithObject();\r\n\r\n\tUFUNCTION(BlueprintNativeEvent)\r\n\tvoid TraceForward();\r\n\tvoid TraceForward_Implementation();\r\n\r\n\tvoid TouchStarted(const ETouchIndex::Type FingerIndex, const FVector Location);\r\n\tvoid TouchStopped(const ETouchIndex::Type FingerIndex, const FVector Location);\r\n\t\r\n\tvirtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;\r\n\r\n\t// --- Fields --- \\\\\r\n\r\n\tUPROPERTY(EditAnywhere, BlueprintReadOnly, Category = \"Interactions\")\r\n\tfloat TraceDistance;\r\n\r\npublic:\r\n\tATP_SideScrollerCharacter();\r\n\r\n\t/** Returns SideViewCameraComponent subobject **/\r\n\tFORCEINLINE class UCameraComponent* GetSideViewCameraComponent() const { return SideViewCameraComponent; }\r\n\t/** Returns CameraBoom subobject **/\r\n\tFORCEINLINE class USpringArmComponent* GetCameraBoom() const { return CameraBoom; }\r\n};\r\n"}
80,444
c
// // WLBaseRefreshService.h // wlive // // Created by Fane on 2020/7/7. // Copyright © 2020 wcsz. All rights reserved. // #import "WLBaseService.h" #import "WLEmptyView.h" #import "WLBaseServiceHeader.h" NS_ASSUME_NONNULL_BEGIN #pragma - 分页的请求 @interface WLBaseRefreshService : WLBaseService // 带分页请求的类, 使用此初始化方法 - (instancetype)initRefreshDelegate:(id<WLRefreshProtocol>)delegate; @property (nonatomic)NSInteger pageSize;// 默认10 @property (nonatomic)NSInteger pager;// 默认1 @property (nonatomic)NSInteger pagerType;//0为id 1 为updateTime 2 为pager @property (nonatomic) Class serializerClass;// 请求成功, 默认使用此类去解析数据, 成功返回list @property (nonatomic, strong) WLEmptyView *emptyView; @property (nonatomic,weak)id <WLRefreshProtocol> refreshDelegate; - (void)beginRefreshing;// 刷新不带动画 - (void)beginRefreshing:(BOOL)animated;// 刷新带动画 - (void)endRefreshing;// 结束刷新 - (void)removeMJHeader;// 移除刷新 - (void)removeJMFooter;// 移除下拉加载 @end /// private 内部使用 @interface WLBaseRefreshService (serializer) - (NSInteger)total; - (NSArray *)list;// 返回的list 尚未解析 - (NSDictionary *)pagerParamHandle; - (void)loadMoreHandle;// 处理分页 @end NS_ASSUME_NONNULL_END
28.23
39
(translation_unit) "//\n// WLBaseRefreshService.h\n// wlive\n//\n// Created by Fane on 2020/7/7.\n// Copyright © 2020 wcsz. All rights reserved.\n//\n\n#import "WLBaseService.h"\n#import "WLEmptyView.h"\n#import "WLBaseServiceHeader.h"\nNS_ASSUME_NONNULL_BEGIN\n\n\n\n#pragma - 分页的请求\n@interface WLBaseRefreshService : WLBaseService\n\n// 带分页请求的类, 使用此初始化方法\n- (instancetype)initRefreshDelegate:(id<WLRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteger pageSize;// 默认10\n\n@property (nonatomic)NSInteger pager;// 默认1\n\n@property (nonatomic)NSInteger pagerType;//0为id 1 为updateTime 2 为pager\n\n@property (nonatomic) Class serializerClass;// 请求成功, 默认使用此类去解析数据, 成功返回list\n\n@property (nonatomic, strong) WLEmptyView *emptyView;\n\n@property (nonatomic,weak)id <WLRefreshProtocol> refreshDelegate;\n\n\n- (void)beginRefreshing;// 刷新不带动画\n- (void)beginRefreshing:(BOOL)animated;// 刷新带动画\n- (void)endRefreshing;// 结束刷新\n- (void)removeMJHeader;// 移除刷新\n- (void)removeJMFooter;// 移除下拉加载\n\n@end\n\n\n/// private 内部使用\n@interface WLBaseRefreshService (serializer)\n\n- (NSInteger)total;\n\n- (NSArray *)list;// 返回的list 尚未解析\n\n- (NSDictionary *)pagerParamHandle;\n\n- (void)loadMoreHandle;// 处理分页\n\n@end\n\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// WLBaseRefreshService.h" (comment) "// wlive" (comment) "//" (comment) "// Created by Fane on 2020/7/7." (comment) "// Copyright © 2020 wcsz. All rights reserved.\n" (comment) "/\n" (preproc_call) "import "WLBaseService.h"\n#" (preproc_directive) "import " (preproc_arg) "WLBaseService.h"\n" (preproc_call) "import "WLEmptyView.h"\n#" (preproc_directive) "import " (preproc_arg) "WLEmptyView.h"\n" (preproc_call) "import "WLBaseServiceHeader.h"\nN" (preproc_directive) "import " (preproc_arg) "WLBaseServiceHeader.h"\n" (expression_statement) "S_ASSUME_NONNULL_BEGIN\n" (identifier) "S_ASSUME_NONNULL_BEGIN\n" (;) "" (preproc_call) "pragma - 分页的请求\n@interface " (preproc_directive) "pragma " (preproc_arg) " 分页的请求\n@interface" (ERROR) "WLBaseRefreshService : WLBaseService\n\n// 带分页请求的" (ERROR) "W" (type_identifier) "LBaseRefr" (identifier) "shService : WLBaseSe" (:) "v" (identifier) "ce\n\n// 带分页请求的" (comment) " 使用此初始化方法\n- (instancetype)initRefreshDelegate:(id<" (ERROR) "LRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteger pageSize;//" (binary_expression) "LRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteger pageSiz" (binary_expression) "LRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteg" (unary_expression) "LRefreshProtocol>)delegate;\n\n@prope" (-) "L" (cast_expression) "efreshProtocol>)delegate;\n\n@prope" (() "e" (type_descriptor) "freshProtoco" (type_identifier) "freshProtoco" ()) "l" (identifier) ">)delegate;\n\n@prope" (ERROR) "rty " (:) "r" (() "t" (identifier) "y " (<) "(" (identifier) "nonatomic)NSInteg" (>) "e" (ERROR) "r" ()) "r" (identifier) " pageSiz" (;) "e" (ERROR) "/" (declaration) " 默认10\n\n@property (nonatomic)NSInteger p" (macro_type_specifier) " 默认10\n\n@property (no" (identifier) " 默认10\n\n@" (() "r" (type_descriptor) "operty (n" (type_identifier) "operty (n" ()) "o" (identifier) "natomic)N" (ERROR) "Integer " (identifier) "Integer " (;) "p" (comment) "ager;// 默认1" (ERROR) "@" (ERROR) "@" (declaration) "property (nonatomic)NSInteger pagerT" (macro_type_specifier) "property (nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "NSInteger" (ERROR) "pager" (identifier) "pager" (;) "T" (comment) "ype;//0为id" (ERROR) " " (ERROR) " " (declaration) "为updateTime 2 为pager\n\n@property (nonatom" (macro_type_specifier) "为updateTime 2 为pager" (identifier) "为updateT" (() "m" (type_descriptor) "e 2 为page" (type_identifier) "e 2 为page" ()) "r" (ERROR) "\n\n@proper" (identifier) "\n\n@proper" (identifier) "y (nonato" (;) "m" (comment) "ic) Class serializerClass;// 请求成功, " (ERROR) "使" (ERROR) "使" (declaration) "用此类去解析数据, 成功返回list\n\n@property (nonatomic, s" (macro_type_specifier) "用此类去解析数据, 成功返回list\n\n" (identifier) "用此类去解析数据" (() " " (type_descriptor) "成功返回list\n" (type_identifier) "成功返回list\n" ()) "\n" (ERROR) "prope" (identifier) "prope" (identifier) "ty (nonatomic, " (;) "s" (comment) "trong) WLEmptyView *emptyView;\n\n@property (nonatomic,weak)id <WLRefr" (ERROR) "h" (ERROR) "h" (expression_statement) "Protocol> refreshDelegate;\n\n" (call_expression) "Protocol> refreshDelegate;\n\n" (identifier) "Protocol" (argument_list) " refreshDelegate;\n\n" (() " " (identifier) "refreshDe" (,) "l" (identifier) "gate;\n" ()) "\n" (;) "" (declaration) "- (void)beginRefreshing" (type_identifier) "- (void)beg" (pointer_declarator) "nRefreshin" (*) "n" (identifier) "Refreshin" (;) "g" (ERROR) "/ 刷新不带动画\n- (void)beginRefreshing:(BOOL)animated;// 刷新带动画\n- (void" (ERROR) "/" (binary_expression) " 刷新不带动画\n- (void)beginRefreshing:(BOOL)animated;// 刷新带动画\n- (void" (binary_expression) " 刷新不带动画\n- (void)beginRefreshing:(BOOL)animated" (call_expression) " 刷新不带动画\n- (void)beginRefr" (identifier) " 刷新不带动画\n" (argument_list) " (void)beginRefr" (() " " (identifier) "(void)beg" (,) "i" (identifier) "nRef" ()) "r" (ERROR) "es" (identifier) "es" (<) "i" (identifier) "ng:(BOOL)animated" (>) ";" (identifier) "/ 刷新带动画\n- (void" (expression_statement) ")" (;) ")" (expression_statement) "Refreshing;// 结束刷新\n- (vo" (unary_expression) "Refreshing;// 结束刷新\n- (v" (-) "R" (cast_expression) "freshing;// 结束刷新\n- (v" (() "f" (type_descriptor) "resh" (primitive_type) "resh" ()) "i" (identifier) "ng;// 结束刷新\n- (v" (;) "o" (comment) "id)removeMJHeader;// " (expression_statement) "除刷新\n- (void)removeJMFooter;// 移除下拉加载\n\n@" (unary_expression) "除刷新\n- (void)removeJMFoo" (-) "除" (cast_expression) "新\n- (void)removeJMFoo" (() "新" (type_descriptor) "\n- (" (primitive_type) "\n- (" ()) "v" (identifier) "oid)removeJMFoo" (ERROR) "ter;// 移除下拉加载\n\n" (:) "t" (() "e" (identifier) "r;//" ()) " " (identifier) "移除下拉加载\n\n" (;) "@" (comment) "end\n\n\n/// private " (expression_statement) "部使用\n@interface WLBaseR" (unary_expression) "部使用\n@interface WLBase" (-) "部" (cast_expression) "用\n@interface WLBase" (() "用" (type_descriptor) "\n@in" (primitive_type) "\n@in" ()) "t" (identifier) "erface WLBase" (;) "R" (comment) "efreshService (" (expression_statement) "erializer)\n\n- (NSIntege" (unary_expression) "erializer)\n\n- (NSInteg" (-) "e" (cast_expression) "ializer)\n\n- (NSInteg" (() "i" (type_descriptor) "aliz" (primitive_type) "aliz" ()) "e" (identifier) "r)\n\n- (NSInteg" (;) "e" (comment) "r)total;\n\n- (NS" (expression_statement) "rray *)list;// 返回的list " (unary_expression) "rray *)list;// 返回的list" (-) "r" (cast_expression) "ay *)list;// 返回的list" (() "a" (type_descriptor) "y *)" (primitive_type) "y *)" ()) "l" (identifier) "ist;// 返回的list" (;) " " (comment) "尚未解析\n\n- (NSDictionary" (ERROR) ")pagerParamHandle;\n\n- (void)loadMoreHandle;// 处理分页\n\n@end\n\n\nNS_ASSUME_NONNULL" (ERROR) ")" (type_identifier) "pag" (comment) "aramHandle;\n\n- (void)loa" (ERROR) "MoreHandle" (ERROR) "M" (identifier) "oreHandle" (function_declarator) "// 处理分页\n\n@end\n\n\nNS_ASSUME_NONNULL" (identifier) "// 处理分页\n\n@end\n\n\nNS_A" (parameter_list) "SUME_NONNULL" (() "S" (identifier) "UME_NONNUL" ()) "L" (expression_statement) "ND\n" (unary_expression) "ND\n" (-) "N" (cast_expression) "\n" (() "\n" (type_descriptor) "" (type_identifier) "" ()) "" (identifier) "" (;) "" (expression_statement) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (type_identifier) "" (abstract_pointer_declarator) "" (*) "" ()) "" (identifier) "" (;) "" (comment) "" (expression_statement) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (type_identifier) "" (abstract_pointer_declarator) "" (*) "" ()) "" (identifier) "" (;) "" (expression_statement) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (;) "" (comment) "" (ERROR) "" (ERROR) "" (declaration) "" (type_identifier) "" (identifier) "" (;) ""
271
28
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 28.23, "nodes": 170, "errors": 0, "source_hash": "cfbff5c6fdd8a468f7b0c61828346ddbeb4bd75c150fb4da74be5a66a05e2113", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"WLBaseService.h\"\n#", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "WLBaseService.h\"\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 2, "type": "preproc_call", "text": "import \"WLEmptyView.h\"\n#", "parent": null, "children": [3], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 3, "type": "preproc_arg", "text": "WLEmptyView.h\"\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 4, "type": "preproc_call", "text": "import \"WLBaseServiceHeader.h\"\nN", "parent": null, "children": [5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 5, "type": "preproc_arg", "text": "WLBaseServiceHeader.h\"\n", "parent": 4, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 31}}, {"id": 6, "type": "identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": null, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 23}}, {"id": 7, "type": "preproc_call", "text": "pragma - \u5206\u9875\u7684\u8bf7\u6c42\n@interface ", "parent": null, "children": [8, 9], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 8, "type": "preproc_directive", "text": "pragma ", "parent": 7, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 9, "type": "preproc_arg", "text": " \u5206\u9875\u7684\u8bf7\u6c42\n@interface", "parent": 7, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 25}}, {"id": 10, "type": "ERROR", "text": "WLBaseRefreshService : WLBaseService\n\n// \u5e26\u5206\u9875\u8bf7\u6c42\u7684", "parent": null, "children": [11, 12, 13, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 47}}, {"id": 11, "type": "ERROR", "text": "W", "parent": 10, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "LBaseRefr", "parent": 10, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 10}}, {"id": 13, "type": "identifier", "text": "shService : WLBaseSe", "parent": 10, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 31}}, {"id": 14, "type": "identifier", "text": "ce\n\n// \u5e26\u5206\u9875\u8bf7\u6c42\u7684", "parent": 10, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 47}}, {"id": 15, "type": "ERROR", "text": "LRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteger pageSize;//", "parent": null, "children": [16, 30], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 16, "type": "binary_expression", "text": "LRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteger pageSiz", "parent": 15, "children": [17, 27, 28, 29], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 67}}, {"id": 17, "type": "binary_expression", "text": "LRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteg", "parent": 16, "children": [18, 24, 26], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 57}}, {"id": 18, "type": "unary_expression", "text": "LRefreshProtocol>)delegate;\n\n@prope", "parent": 17, "children": [19, 20], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 35}}, {"id": 19, "type": "-", "text": "L", "parent": 18, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 20, "type": "cast_expression", "text": "efreshProtocol>)delegate;\n\n@prope", "parent": 18, "children": [21, 23], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 35}}, {"id": 21, "type": "type_descriptor", "text": "freshProtoco", "parent": 20, "children": [22], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 15}}, {"id": 22, "type": "type_identifier", "text": "freshProtoco", "parent": 21, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 15}}, {"id": 23, "type": "identifier", "text": ">)delegate;\n\n@prope", "parent": 20, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 35}}, {"id": 24, "type": "ERROR", "text": "rty ", "parent": 17, "children": [25], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 39}}, {"id": 25, "type": "identifier", "text": "y ", "parent": 24, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 39}}, {"id": 26, "type": "identifier", "text": "nonatomic)NSInteg", "parent": 17, "children": [], "start_point": {"row": 19, "column": 40}, "end_point": {"row": 19, "column": 57}}, {"id": 27, "type": ">", "text": "e", "parent": 16, "children": [], "start_point": {"row": 19, "column": 57}, "end_point": {"row": 19, "column": 58}}, {"id": 28, "type": "ERROR", "text": "r", "parent": 16, "children": [], "start_point": {"row": 19, "column": 58}, "end_point": {"row": 19, "column": 59}}, {"id": 29, "type": "identifier", "text": " pageSiz", "parent": 16, "children": [], "start_point": {"row": 19, "column": 59}, "end_point": {"row": 19, "column": 67}}, {"id": 30, "type": "ERROR", "text": "/", "parent": 15, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 31, "type": "declaration", "text": " \u9ed8\u8ba410\n\n@property (nonatomic)NSInteger p", "parent": null, "children": [32, 36, 37], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 40}}, {"id": 32, "type": "macro_type_specifier", "text": " \u9ed8\u8ba410\n\n@property (no", "parent": 31, "children": [33, 34], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 21}}, {"id": 33, "type": "identifier", "text": " \u9ed8\u8ba410\n\n@", "parent": 32, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 34, "type": "type_descriptor", "text": "operty (n", "parent": 32, "children": [35], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 20}}, {"id": 35, "type": "type_identifier", "text": "operty (n", "parent": 34, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 20}}, {"id": 36, "type": "identifier", "text": "natomic)N", "parent": 31, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 30}}, {"id": 37, "type": "ERROR", "text": "Integer ", "parent": 31, "children": [38], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 39}}, {"id": 38, "type": "identifier", "text": "Integer ", "parent": 37, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 39}}, {"id": 39, "type": "ERROR", "text": "@", "parent": null, "children": [40], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 40, "type": "ERROR", "text": "@", "parent": 39, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 41, "type": "declaration", "text": "property (nonatomic)NSInteger pagerT", "parent": null, "children": [42, 46, 47], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 37}}, {"id": 42, "type": "macro_type_specifier", "text": "property (nonatomic)", "parent": 41, "children": [43, 44], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 21}}, {"id": 43, "type": "identifier", "text": "property", "parent": 42, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 44, "type": "type_descriptor", "text": "nonatomic", "parent": 42, "children": [45], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 20}}, {"id": 45, "type": "type_identifier", "text": "nonatomic", "parent": 44, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 20}}, {"id": 46, "type": "identifier", "text": "NSInteger", "parent": 41, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 30}}, {"id": 47, "type": "ERROR", "text": "pager", "parent": 41, "children": [48], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 36}}, {"id": 48, "type": "identifier", "text": "pager", "parent": 47, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 36}}, {"id": 49, "type": "ERROR", "text": " ", "parent": null, "children": [50], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 50, "type": "ERROR", "text": " ", "parent": 49, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 51, "type": "declaration", "text": "\u4e3aupdateTime 2 \u4e3apager\n\n@property (nonatom", "parent": null, "children": [52, 56, 58], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 41}}, {"id": 52, "type": "macro_type_specifier", "text": "\u4e3aupdateTime 2 \u4e3apager", "parent": 51, "children": [53, 54], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 21}}, {"id": 53, "type": "identifier", "text": "\u4e3aupdateT", "parent": 52, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 54, "type": "type_descriptor", "text": "e 2 \u4e3apage", "parent": 52, "children": [55], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 20}}, {"id": 55, "type": "type_identifier", "text": "e 2 \u4e3apage", "parent": 54, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 20}}, {"id": 56, "type": "ERROR", "text": "\n\n@proper", "parent": 51, "children": [57], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 30}}, {"id": 57, "type": "identifier", "text": "\n\n@proper", "parent": 56, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 30}}, {"id": 58, "type": "identifier", "text": "y (nonato", "parent": 51, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 40}}, {"id": 59, "type": "ERROR", "text": "\u4f7f", "parent": null, "children": [60], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 60, "type": "ERROR", "text": "\u4f7f", "parent": 59, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 61, "type": "declaration", "text": "\u7528\u6b64\u7c7b\u53bb\u89e3\u6790\u6570\u636e, \u6210\u529f\u8fd4\u56delist\n\n@property (nonatomic, s", "parent": null, "children": [62, 66, 68], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 44}}, {"id": 62, "type": "macro_type_specifier", "text": "\u7528\u6b64\u7c7b\u53bb\u89e3\u6790\u6570\u636e, \u6210\u529f\u8fd4\u56delist\n\n", "parent": 61, "children": [63, 64], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 21}}, {"id": 63, "type": "identifier", "text": "\u7528\u6b64\u7c7b\u53bb\u89e3\u6790\u6570\u636e", "parent": 62, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 64, "type": "type_descriptor", "text": "\u6210\u529f\u8fd4\u56delist\n", "parent": 62, "children": [65], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 20}}, {"id": 65, "type": "type_identifier", "text": "\u6210\u529f\u8fd4\u56delist\n", "parent": 64, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 20}}, {"id": 66, "type": "ERROR", "text": "prope", "parent": 61, "children": [67], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 27}}, {"id": 67, "type": "identifier", "text": "prope", "parent": 66, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 27}}, {"id": 68, "type": "identifier", "text": "ty (nonatomic, ", "parent": 61, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 43}}, {"id": 69, "type": "ERROR", "text": "h", "parent": null, "children": [70], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 70, "type": "ERROR", "text": "h", "parent": 69, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 71, "type": "call_expression", "text": "Protocol> refreshDelegate;\n\n", "parent": null, "children": [72, 73], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 29}}, {"id": 72, "type": "identifier", "text": "Protocol", "parent": 71, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 73, "type": "argument_list", "text": " refreshDelegate;\n\n", "parent": 71, "children": [74, 75], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 29}}, {"id": 74, "type": "identifier", "text": "refreshDe", "parent": 73, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 20}}, {"id": 75, "type": "identifier", "text": "gate;\n", "parent": 73, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 28}}, {"id": 76, "type": "declaration", "text": "- (void)beginRefreshing", "parent": null, "children": [77, 78], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 53}}, {"id": 77, "type": "type_identifier", "text": "- (void)beg", "parent": 76, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 41}}, {"id": 78, "type": "pointer_declarator", "text": "nRefreshin", "parent": 76, "children": [79, 80], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 52}}, {"id": 79, "type": "*", "text": "n", "parent": 78, "children": [], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 43}}, {"id": 80, "type": "identifier", "text": "Refreshin", "parent": 78, "children": [], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 52}}, {"id": 81, "type": "ERROR", "text": "/ \u5237\u65b0\u4e0d\u5e26\u52a8\u753b\n- (void)beginRefreshing:(BOOL)animated;// \u5237\u65b0\u5e26\u52a8\u753b\n- (void", "parent": null, "children": [82, 83], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 64}}, {"id": 82, "type": "ERROR", "text": "/", "parent": 81, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 83, "type": "binary_expression", "text": " \u5237\u65b0\u4e0d\u5e26\u52a8\u753b\n- (void)beginRefreshing:(BOOL)animated;// \u5237\u65b0\u5e26\u52a8\u753b\n- (void", "parent": 81, "children": [84, 94], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 64}}, {"id": 84, "type": "binary_expression", "text": " \u5237\u65b0\u4e0d\u5e26\u52a8\u753b\n- (void)beginRefreshing:(BOOL)animated", "parent": 83, "children": [85, 90, 92, 93], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 47}}, {"id": 85, "type": "call_expression", "text": " \u5237\u65b0\u4e0d\u5e26\u52a8\u753b\n- (void)beginRefr", "parent": 84, "children": [86, 87], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 26}}, {"id": 86, "type": "identifier", "text": " \u5237\u65b0\u4e0d\u5e26\u52a8\u753b\n", "parent": 85, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 9}}, {"id": 87, "type": "argument_list", "text": " (void)beginRefr", "parent": 85, "children": [88, 89], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 26}}, {"id": 88, "type": "identifier", "text": "(void)beg", "parent": 87, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 20}}, {"id": 89, "type": "identifier", "text": "nRef", "parent": 87, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 25}}, {"id": 90, "type": "ERROR", "text": "es", "parent": 84, "children": [91], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 28}}, {"id": 91, "type": "identifier", "text": "es", "parent": 90, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 28}}, {"id": 92, "type": "<", "text": "i", "parent": 84, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 30}}, {"id": 93, "type": "identifier", "text": "ng:(BOOL)animated", "parent": 84, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 47}}, {"id": 94, "type": "identifier", "text": "/ \u5237\u65b0\u5e26\u52a8\u753b\n- (void", "parent": 83, "children": [], "start_point": {"row": 31, "column": 49}, "end_point": {"row": 31, "column": 64}}, {"id": 95, "type": "unary_expression", "text": "Refreshing;// \u7ed3\u675f\u5237\u65b0\n- (v", "parent": null, "children": [96, 97], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 23}}, {"id": 96, "type": "-", "text": "R", "parent": 95, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 97, "type": "cast_expression", "text": "freshing;// \u7ed3\u675f\u5237\u65b0\n- (v", "parent": 95, "children": [98, 100], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 23}}, {"id": 98, "type": "type_descriptor", "text": "resh", "parent": 97, "children": [99], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 99, "type": "primitive_type", "text": "resh", "parent": 98, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 100, "type": "identifier", "text": "ng;// \u7ed3\u675f\u5237\u65b0\n- (v", "parent": 97, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 23}}, {"id": 101, "type": "unary_expression", "text": "\u9664\u5237\u65b0\n- (void)removeJMFoo", "parent": null, "children": [102, 103], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 23}}, {"id": 102, "type": "-", "text": "\u9664", "parent": 101, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 103, "type": "cast_expression", "text": "\u65b0\n- (void)removeJMFoo", "parent": 101, "children": [104, 106], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 23}}, {"id": 104, "type": "type_descriptor", "text": "\n- (", "parent": 103, "children": [105], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 105, "type": "primitive_type", "text": "\n- (", "parent": 104, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 106, "type": "identifier", "text": "oid)removeJMFoo", "parent": 103, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 23}}, {"id": 107, "type": "ERROR", "text": "ter;// \u79fb\u9664\u4e0b\u62c9\u52a0\u8f7d\n\n", "parent": null, "children": [108, 109], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 38}}, {"id": 108, "type": "identifier", "text": "r;//", "parent": 107, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 29}}, {"id": 109, "type": "identifier", "text": "\u79fb\u9664\u4e0b\u62c9\u52a0\u8f7d\n\n", "parent": 107, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 38}}, {"id": 110, "type": "unary_expression", "text": "\u90e8\u4f7f\u7528\n@interface WLBase", "parent": null, "children": [111, 112], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 21}}, {"id": 111, "type": "-", "text": "\u90e8", "parent": 110, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 112, "type": "cast_expression", "text": "\u7528\n@interface WLBase", "parent": 110, "children": [113, 115], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 21}}, {"id": 113, "type": "type_descriptor", "text": "\n@in", "parent": 112, "children": [114], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 114, "type": "primitive_type", "text": "\n@in", "parent": 113, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 115, "type": "identifier", "text": "erface WLBase", "parent": 112, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 21}}, {"id": 116, "type": "unary_expression", "text": "erializer)\n\n- (NSInteg", "parent": null, "children": [117, 118], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 22}}, {"id": 117, "type": "-", "text": "e", "parent": 116, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 118, "type": "cast_expression", "text": "ializer)\n\n- (NSInteg", "parent": 116, "children": [119, 121], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 22}}, {"id": 119, "type": "type_descriptor", "text": "aliz", "parent": 118, "children": [120], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 120, "type": "primitive_type", "text": "aliz", "parent": 119, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 121, "type": "identifier", "text": "r)\n\n- (NSInteg", "parent": 118, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 22}}, {"id": 122, "type": "unary_expression", "text": "rray *)list;// \u8fd4\u56de\u7684list", "parent": null, "children": [123, 124], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 22}}, {"id": 123, "type": "-", "text": "r", "parent": 122, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 124, "type": "cast_expression", "text": "ay *)list;// \u8fd4\u56de\u7684list", "parent": 122, "children": [125, 127], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 22}}, {"id": 125, "type": "type_descriptor", "text": "y *)", "parent": 124, "children": [126], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 126, "type": "primitive_type", "text": "y *)", "parent": 125, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 127, "type": "identifier", "text": "ist;// \u8fd4\u56de\u7684list", "parent": 124, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 22}}, {"id": 128, "type": "ERROR", "text": ")pagerParamHandle;\n\n- (void)loadMoreHandle;// \u5904\u7406\u5206\u9875\n\n@end\n\n\nNS_ASSUME_NONNULL", "parent": null, "children": [129, 130, 133], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 44, "column": 44}}, {"id": 129, "type": "type_identifier", "text": "pag", "parent": 128, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 4}}, {"id": 130, "type": "ERROR", "text": "MoreHandle", "parent": 128, "children": [131, 132], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 10}}, {"id": 131, "type": "ERROR", "text": "M", "parent": 130, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 132, "type": "identifier", "text": "oreHandle", "parent": 130, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 10}}, {"id": 133, "type": "function_declarator", "text": "// \u5904\u7406\u5206\u9875\n\n@end\n\n\nNS_ASSUME_NONNULL", "parent": 128, "children": [134, 135], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 44}}, {"id": 134, "type": "identifier", "text": "// \u5904\u7406\u5206\u9875\n\n@end\n\n\nNS_A", "parent": 133, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 31}}, {"id": 135, "type": "parameter_list", "text": "SUME_NONNULL", "parent": 133, "children": [136], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 44}}, {"id": 136, "type": "identifier", "text": "UME_NONNUL", "parent": 135, "children": [], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 43}}, {"id": 137, "type": "unary_expression", "text": "ND\n", "parent": null, "children": [138, 139], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 18}}, {"id": 138, "type": "-", "text": "N", "parent": 137, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 139, "type": "cast_expression", "text": "\n", "parent": 137, "children": [140, 142], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 18}}, {"id": 140, "type": "type_descriptor", "text": "", "parent": 139, "children": [141], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 12}}, {"id": 141, "type": "type_identifier", "text": "", "parent": 140, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 12}}, {"id": 142, "type": "identifier", "text": "", "parent": 139, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 18}}, {"id": 143, "type": "unary_expression", "text": "", "parent": null, "children": [144, 145], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 17}}, {"id": 144, "type": "-", "text": "", "parent": 143, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 145, "type": "cast_expression", "text": "", "parent": 143, "children": [146, 150], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 17}}, {"id": 146, "type": "type_descriptor", "text": "", "parent": 145, "children": [147, 148], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 12}}, {"id": 147, "type": "type_identifier", "text": "", "parent": 146, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 10}}, {"id": 148, "type": "abstract_pointer_declarator", "text": "", "parent": 146, "children": [149], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}, {"id": 149, "type": "*", "text": "", "parent": 148, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}, {"id": 150, "type": "identifier", "text": "", "parent": 145, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 151, "type": "unary_expression", "text": "", "parent": null, "children": [152, 153], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 34}}, {"id": 152, "type": "-", "text": "", "parent": 151, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 153, "type": "cast_expression", "text": "", "parent": 151, "children": [154, 158], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 34}}, {"id": 154, "type": "type_descriptor", "text": "", "parent": 153, "children": [155, 156], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 17}}, {"id": 155, "type": "type_identifier", "text": "", "parent": 154, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 15}}, {"id": 156, "type": "abstract_pointer_declarator", "text": "", "parent": 154, "children": [157], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 17}}, {"id": 157, "type": "*", "text": "", "parent": 156, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 17}}, {"id": 158, "type": "identifier", "text": "", "parent": 153, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 34}}, {"id": 159, "type": "unary_expression", "text": "", "parent": null, "children": [160, 161], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 22}}, {"id": 160, "type": "-", "text": "", "parent": 159, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 161, "type": "cast_expression", "text": "", "parent": 159, "children": [162, 164], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 22}}, {"id": 162, "type": "type_descriptor", "text": "", "parent": 161, "children": [163], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 163, "type": "primitive_type", "text": "", "parent": 162, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 164, "type": "identifier", "text": "", "parent": 161, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 22}}, {"id": 165, "type": "ERROR", "text": "", "parent": null, "children": [166], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 166, "type": "ERROR", "text": "", "parent": 165, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 167, "type": "declaration", "text": "", "parent": null, "children": [168, 169], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 57, "column": 21}}, {"id": 168, "type": "type_identifier", "text": "", "parent": 167, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 4}}, {"id": 169, "type": "identifier", "text": "", "parent": 167, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 21}}]}, "node_categories": {"declarations": {"functions": [133], "variables": [31, 41, 51, 61, 76, 167], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [16, 17, 18, 20, 71, 83, 84, 85, 95, 97, 101, 103, 110, 112, 116, 118, 122, 124, 137, 139, 143, 145, 151, 153, 159, 161], "assignments": [], "loops": [], "conditionals": [6, 12, 13, 14, 22, 23, 25, 26, 29, 32, 33, 35, 36, 38, 42, 43, 45, 46, 48, 52, 53, 55, 57, 58, 62, 63, 65, 67, 68, 72, 74, 75, 77, 80, 86, 88, 89, 91, 93, 94, 100, 106, 108, 109, 115, 121, 127, 129, 132, 134, 136, 141, 142, 147, 150, 155, 158, 164, 168, 169], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2, 4, 7], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "// \u5904\u7406\u5206\u9875\n\n@end\n\n\nNS_ASSUME_NONNULL"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// WLBaseRefreshService.h\n// wlive\n//\n// Created by Fane on 2020/7/7.\n// Copyright \u00a9 2020 wcsz. All rights reserved.\n//\n\n#import \"WLBaseService.h\"\n#import \"WLEmptyView.h\"\n#import \"WLBaseServiceHeader.h\"\nNS_ASSUME_NONNULL_BEGIN\n\n\n\n#pragma - \u5206\u9875\u7684\u8bf7\u6c42\n@interface WLBaseRefreshService : WLBaseService\n\n// \u5e26\u5206\u9875\u8bf7\u6c42\u7684\u7c7b, \u4f7f\u7528\u6b64\u521d\u59cb\u5316\u65b9\u6cd5\n- (instancetype)initRefreshDelegate:(id<WLRefreshProtocol>)delegate;\n\n@property (nonatomic)NSInteger pageSize;// \u9ed8\u8ba410\n\n@property (nonatomic)NSInteger pager;// \u9ed8\u8ba41\n\n@property (nonatomic)NSInteger pagerType;//0\u4e3aid 1 \u4e3aupdateTime 2 \u4e3apager\n\n@property (nonatomic) Class serializerClass;// \u8bf7\u6c42\u6210\u529f, \u9ed8\u8ba4\u4f7f\u7528\u6b64\u7c7b\u53bb\u89e3\u6790\u6570\u636e, \u6210\u529f\u8fd4\u56delist\n\n@property (nonatomic, strong) WLEmptyView *emptyView;\n\n@property (nonatomic,weak)id <WLRefreshProtocol> refreshDelegate;\n\n\n- (void)beginRefreshing;// \u5237\u65b0\u4e0d\u5e26\u52a8\u753b\n- (void)beginRefreshing:(BOOL)animated;// \u5237\u65b0\u5e26\u52a8\u753b\n- (void)endRefreshing;// \u7ed3\u675f\u5237\u65b0\n- (void)removeMJHeader;// \u79fb\u9664\u5237\u65b0\n- (void)removeJMFooter;// \u79fb\u9664\u4e0b\u62c9\u52a0\u8f7d\n\n@end\n\n\n/// private \u5185\u90e8\u4f7f\u7528\n@interface WLBaseRefreshService (serializer)\n\n- (NSInteger)total;\n\n- (NSArray *)list;// \u8fd4\u56de\u7684list \u5c1a\u672a\u89e3\u6790\n\n- (NSDictionary *)pagerParamHandle;\n\n- (void)loadMoreHandle;// \u5904\u7406\u5206\u9875\n\n@end\n\n\nNS_ASSUME_NONNULL_END\n"}
80,445
c
#include <stdio.h> const int size = 5; int main(void) { int list[size], odd = 0, even = 0, negative = 0, positive = 0; for(int i = 0; i < size; i++) scanf("%d", &list[i]); for(int i = 0; i < size; i++) { if(list[i] < 0 && list[i] % 2 == 0) { negative++; even++; } else if(list[i] > 0 && list[i] % 2 == 0) { positive++; even++; } else if(list[i] < 0 && list[i] % 2 != 0) { negative++; odd++; } else if(list[i] > 0 && list[i] % 2 != 0) { positive++; odd++; } else { even++; } } printf("%d valor(es) par(es)\n", even); printf("%d valor(es) impar(es)\n", odd); printf("%d valor(es) positivo(s)\n", positive); printf("%d valor(es) negativo(s)\n", negative); return 0; }
28.07
30
(translation_unit) "#include <stdio.h>\n\nconst int size = 5; \n\nint main(void) {\n int list[size], odd = 0, even = 0, negative = 0, positive = 0;\n\n for(int i = 0; i < size; i++) \n scanf("%d", &list[i]);\n \n for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }\n\n printf("%d valor(es) par(es)\n", even);\n printf("%d valor(es) impar(es)\n", odd);\n printf("%d valor(es) positivo(s)\n", positive);\n printf("%d valor(es) negativo(s)\n", negative);\n return 0;\n} " (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "const int size = 5;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (init_declarator) "size = 5" (identifier) "size" (=) "=" (number_literal) "5" (;) ";" (function_definition) "int main(void) {\n int list[size], odd = 0, even = 0, negative = 0, positive = 0;\n\n for(int i = 0; i < size; i++) \n scanf("%d", &list[i]);\n \n for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }\n\n printf("%d valor(es) par(es)\n", even);\n printf("%d valor(es) impar(es)\n", odd);\n printf("%d valor(es) positivo(s)\n", positive);\n printf("%d valor(es) negativo(s)\n", negative);\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 int list[size], odd = 0, even = 0, negative = 0, positive = 0;\n\n for(int i = 0; i < size; i++) \n scanf("%d", &list[i]);\n \n for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }\n\n printf("%d valor(es) par(es)\n", even);\n printf("%d valor(es) impar(es)\n", odd);\n printf("%d valor(es) positivo(s)\n", positive);\n printf("%d valor(es) negativo(s)\n", negative);\n return 0;\n}" ({) "{" (declaration) "int list[size], odd = 0, even = 0, negative = 0, positive = 0;" (primitive_type) "int" (array_declarator) "list[size]" (identifier) "list" ([) "[" (identifier) "size" (]) "]" (,) "," (init_declarator) "odd = 0" (identifier) "odd" (=) "=" (number_literal) "0" (,) "," (init_declarator) "even = 0" (identifier) "even" (=) "=" (number_literal) "0" (,) "," (init_declarator) "negative = 0" (identifier) "negative" (=) "=" (number_literal) "0" (,) "," (init_declarator) "positive = 0" (identifier) "positive" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(int i = 0; i < size; i++) \n scanf("%d", &list[i]);" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < size" (identifier) "i" (<) "<" (identifier) "size" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "scanf("%d", &list[i]);" (call_expression) "scanf("%d", &list[i])" (identifier) "scanf" (argument_list) "("%d", &list[i])" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&list[i]" (&) "&" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (for_statement) "for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < size" (identifier) "i" (<) "<" (identifier) "size" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }" ({) "{" (if_statement) "if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }" (if) "if" (parenthesized_expression) "(list[i] < 0 && list[i] % 2 == 0)" (() "(" (binary_expression) "list[i] < 0 && list[i] % 2 == 0" (binary_expression) "list[i] < 0" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (<) "<" (number_literal) "0" (&&) "&&" (binary_expression) "list[i] % 2 == 0" (binary_expression) "list[i] % 2" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (%) "%" (number_literal) "2" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n negative++;\n even++;\n }" ({) "{" (expression_statement) "negative++;" (update_expression) "negative++" (identifier) "negative" (++) "++" (;) ";" (expression_statement) "even++;" (update_expression) "even++" (identifier) "even" (++) "++" (;) ";" (}) "}" (else_clause) "else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }" (else) "else" (if_statement) "if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }" (if) "if" (parenthesized_expression) "(list[i] > 0 && list[i] % 2 == 0)" (() "(" (binary_expression) "list[i] > 0 && list[i] % 2 == 0" (binary_expression) "list[i] > 0" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (>) ">" (number_literal) "0" (&&) "&&" (binary_expression) "list[i] % 2 == 0" (binary_expression) "list[i] % 2" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (%) "%" (number_literal) "2" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n positive++;\n even++;\n }" ({) "{" (expression_statement) "positive++;" (update_expression) "positive++" (identifier) "positive" (++) "++" (;) ";" (expression_statement) "even++;" (update_expression) "even++" (identifier) "even" (++) "++" (;) ";" (}) "}" (else_clause) "else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }" (else) "else" (if_statement) "if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }" (if) "if" (parenthesized_expression) "(list[i] < 0 && list[i] % 2 != 0)" (() "(" (binary_expression) "list[i] < 0 && list[i] % 2 != 0" (binary_expression) "list[i] < 0" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (<) "<" (number_literal) "0" (&&) "&&" (binary_expression) "list[i] % 2 != 0" (binary_expression) "list[i] % 2" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (%) "%" (number_literal) "2" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n negative++;\n odd++;\n }" ({) "{" (expression_statement) "negative++;" (update_expression) "negative++" (identifier) "negative" (++) "++" (;) ";" (expression_statement) "odd++;" (update_expression) "odd++" (identifier) "odd" (++) "++" (;) ";" (}) "}" (else_clause) "else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }" (else) "else" (if_statement) "if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }" (if) "if" (parenthesized_expression) "(list[i] > 0 && list[i] % 2 != 0)" (() "(" (binary_expression) "list[i] > 0 && list[i] % 2 != 0" (binary_expression) "list[i] > 0" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (>) ">" (number_literal) "0" (&&) "&&" (binary_expression) "list[i] % 2 != 0" (binary_expression) "list[i] % 2" (subscript_expression) "list[i]" (identifier) "list" ([) "[" (identifier) "i" (]) "]" (%) "%" (number_literal) "2" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n positive++;\n odd++;\n }" ({) "{" (expression_statement) "positive++;" (update_expression) "positive++" (identifier) "positive" (++) "++" (;) ";" (expression_statement) "odd++;" (update_expression) "odd++" (identifier) "odd" (++) "++" (;) ";" (}) "}" (else_clause) "else {\n even++;\n }" (else) "else" (compound_statement) "{\n even++;\n }" ({) "{" (expression_statement) "even++;" (update_expression) "even++" (identifier) "even" (++) "++" (;) ";" (}) "}" (}) "}" (expression_statement) "printf("%d valor(es) par(es)\n", even);" (call_expression) "printf("%d valor(es) par(es)\n", even)" (identifier) "printf" (argument_list) "("%d valor(es) par(es)\n", even)" (() "(" (string_literal) ""%d valor(es) par(es)\n"" (") """ (string_content) "%d valor(es) par(es)" (escape_sequence) "\n" (") """ (,) "," (identifier) "even" ()) ")" (;) ";" (expression_statement) "printf("%d valor(es) impar(es)\n", odd);" (call_expression) "printf("%d valor(es) impar(es)\n", odd)" (identifier) "printf" (argument_list) "("%d valor(es) impar(es)\n", odd)" (() "(" (string_literal) ""%d valor(es) impar(es)\n"" (") """ (string_content) "%d valor(es) impar(es)" (escape_sequence) "\n" (") """ (,) "," (identifier) "odd" ()) ")" (;) ";" (expression_statement) "printf("%d valor(es) positivo(s)\n", positive);" (call_expression) "printf("%d valor(es) positivo(s)\n", positive)" (identifier) "printf" (argument_list) "("%d valor(es) positivo(s)\n", positive)" (() "(" (string_literal) ""%d valor(es) positivo(s)\n"" (") """ (string_content) "%d valor(es) positivo(s)" (escape_sequence) "\n" (") """ (,) "," (identifier) "positive" ()) ")" (;) ";" (expression_statement) "printf("%d valor(es) negativo(s)\n", negative);" (call_expression) "printf("%d valor(es) negativo(s)\n", negative)" (identifier) "printf" (argument_list) "("%d valor(es) negativo(s)\n", negative)" (() "(" (string_literal) ""%d valor(es) negativo(s)\n"" (") """ (string_content) "%d valor(es) negativo(s)" (escape_sequence) "\n" (") """ (,) "," (identifier) "negative" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
345
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 28.07, "nodes": 206, "errors": 0, "source_hash": "a56c06b4948970ddb40cb7a47864b2ae09ffd250edf9e76c1269bac3dbe0b170", "categorized_nodes": 142}, "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": "declaration", "text": "const int size = 5;", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 19}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 9}}, {"id": 5, "type": "init_declarator", "text": "size = 5", "parent": 3, "children": [6, 7, 8], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 18}}, {"id": 6, "type": "identifier", "text": "size", "parent": 5, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 14}}, {"id": 7, "type": "=", "text": "=", "parent": 5, "children": [], "start_point": {"row": 2, "column": 15}, "end_point": {"row": 2, "column": 16}}, {"id": 8, "type": "number_literal", "text": "5", "parent": 5, "children": [], "start_point": {"row": 2, "column": 17}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "function_definition", "text": "int main(void) {\n int list[size], odd = 0, even = 0, negative = 0, positive = 0;\n\n for(int i = 0; i < size; i++) \n scanf(\"%d\", &list[i]);\n \n for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }\n\n printf(\"%d valor(es) par(es)\\n\", even);\n printf(\"%d valor(es) impar(es)\\n\", odd);\n printf(\"%d valor(es) positivo(s)\\n\", positive);\n printf(\"%d valor(es) negativo(s)\\n\", negative);\n return 0;\n}", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "main(void)", "parent": 9, "children": [12, 13], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 14}}, {"id": 12, "type": "identifier", "text": "main", "parent": 11, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 8}}, {"id": 13, "type": "parameter_list", "text": "(void)", "parent": 11, "children": [14], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 14}}, {"id": 14, "type": "parameter_declaration", "text": "void", "parent": 13, "children": [15], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 13}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 13}}, {"id": 16, "type": "declaration", "text": "int list[size], odd = 0, even = 0, negative = 0, positive = 0;", "parent": 9, "children": [17, 18, 21, 25, 29, 33], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 66}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 7}}, {"id": 18, "type": "array_declarator", "text": "list[size]", "parent": 16, "children": [19, 20], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 18}}, {"id": 19, "type": "identifier", "text": "list", "parent": 18, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 12}}, {"id": 20, "type": "identifier", "text": "size", "parent": 18, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 17}}, {"id": 21, "type": "init_declarator", "text": "odd = 0", "parent": 16, "children": [22, 23, 24], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 27}}, {"id": 22, "type": "identifier", "text": "odd", "parent": 21, "children": [], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 23}}, {"id": 23, "type": "=", "text": "=", "parent": 21, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 25}}, {"id": 24, "type": "number_literal", "text": "0", "parent": 21, "children": [], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 27}}, {"id": 25, "type": "init_declarator", "text": "even = 0", "parent": 16, "children": [26, 27, 28], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 37}}, {"id": 26, "type": "identifier", "text": "even", "parent": 25, "children": [], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 33}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 35}}, {"id": 28, "type": "number_literal", "text": "0", "parent": 25, "children": [], "start_point": {"row": 5, "column": 36}, "end_point": {"row": 5, "column": 37}}, {"id": 29, "type": "init_declarator", "text": "negative = 0", "parent": 16, "children": [30, 31, 32], "start_point": {"row": 5, "column": 39}, "end_point": {"row": 5, "column": 51}}, {"id": 30, "type": "identifier", "text": "negative", "parent": 29, "children": [], "start_point": {"row": 5, "column": 39}, "end_point": {"row": 5, "column": 47}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 5, "column": 48}, "end_point": {"row": 5, "column": 49}}, {"id": 32, "type": "number_literal", "text": "0", "parent": 29, "children": [], "start_point": {"row": 5, "column": 50}, "end_point": {"row": 5, "column": 51}}, {"id": 33, "type": "init_declarator", "text": "positive = 0", "parent": 16, "children": [34, 35, 36], "start_point": {"row": 5, "column": 53}, "end_point": {"row": 5, "column": 65}}, {"id": 34, "type": "identifier", "text": "positive", "parent": 33, "children": [], "start_point": {"row": 5, "column": 53}, "end_point": {"row": 5, "column": 61}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 5, "column": 62}, "end_point": {"row": 5, "column": 63}}, {"id": 36, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 5, "column": 64}, "end_point": {"row": 5, "column": 65}}, {"id": 37, "type": "for_statement", "text": "for(int i = 0; i < size; i++) \n scanf(\"%d\", &list[i]);", "parent": 9, "children": [38, 44, 48], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 8, "column": 30}}, {"id": 38, "type": "declaration", "text": "int i = 0;", "parent": 37, "children": [39, 40], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 18}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 11}}, {"id": 40, "type": "init_declarator", "text": "i = 0", "parent": 38, "children": [41, 42, 43], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 17}}, {"id": 41, "type": "identifier", "text": "i", "parent": 40, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 13}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 15}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 40, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 17}}, {"id": 44, "type": "binary_expression", "text": "i < size", "parent": 37, "children": [45, 46, 47], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 27}}, {"id": 45, "type": "identifier", "text": "i", "parent": 44, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 20}}, {"id": 46, "type": "<", "text": "<", "parent": 44, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 22}}, {"id": 47, "type": "identifier", "text": "size", "parent": 44, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 27}}, {"id": 48, "type": "update_expression", "text": "i++", "parent": 37, "children": [49, 50], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 32}}, {"id": 49, "type": "identifier", "text": "i", "parent": 48, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 30}}, {"id": 50, "type": "++", "text": "++", "parent": 48, "children": [], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 32}}, {"id": 51, "type": "call_expression", "text": "scanf(\"%d\", &list[i])", "parent": 37, "children": [52, 53], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 29}}, {"id": 52, "type": "identifier", "text": "scanf", "parent": 51, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 53, "type": "argument_list", "text": "(\"%d\", &list[i])", "parent": 51, "children": [54, 55], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 29}}, {"id": 54, "type": "string_literal", "text": "\"%d\"", "parent": 53, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 18}}, {"id": 55, "type": "pointer_expression", "text": "&list[i]", "parent": 53, "children": [56], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 28}}, {"id": 56, "type": "subscript_expression", "text": "list[i]", "parent": 55, "children": [57, 58], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 28}}, {"id": 57, "type": "identifier", "text": "list", "parent": 56, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 25}}, {"id": 58, "type": "identifier", "text": "i", "parent": 56, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 27}}, {"id": 59, "type": "for_statement", "text": "for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }", "parent": 9, "children": [60, 66, 70], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 26, "column": 5}}, {"id": 60, "type": "declaration", "text": "int i = 0;", "parent": 59, "children": [61, 62], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 18}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 11}}, {"id": 62, "type": "init_declarator", "text": "i = 0", "parent": 60, "children": [63, 64, 65], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 17}}, {"id": 63, "type": "identifier", "text": "i", "parent": 62, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 65, "type": "number_literal", "text": "0", "parent": 62, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 17}}, {"id": 66, "type": "binary_expression", "text": "i < size", "parent": 59, "children": [67, 68, 69], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 27}}, {"id": 67, "type": "identifier", "text": "i", "parent": 66, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 20}}, {"id": 68, "type": "<", "text": "<", "parent": 66, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 22}}, {"id": 69, "type": "identifier", "text": "size", "parent": 66, "children": [], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 27}}, {"id": 70, "type": "update_expression", "text": "i++", "parent": 59, "children": [71, 72], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 32}}, {"id": 71, "type": "identifier", "text": "i", "parent": 70, "children": [], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 30}}, {"id": 72, "type": "++", "text": "++", "parent": 70, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 32}}, {"id": 73, "type": "if_statement", "text": "if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }", "parent": 59, "children": [74, 98], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 25, "column": 9}}, {"id": 74, "type": "parenthesized_expression", "text": "(list[i] < 0 && list[i] % 2 == 0)", "parent": 73, "children": [75], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 43}}, {"id": 75, "type": "binary_expression", "text": "list[i] < 0 && list[i] % 2 == 0", "parent": 74, "children": [76, 82, 83], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 42}}, {"id": 76, "type": "binary_expression", "text": "list[i] < 0", "parent": 75, "children": [77, 80, 81], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 22}}, {"id": 77, "type": "subscript_expression", "text": "list[i]", "parent": 76, "children": [78, 79], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 18}}, {"id": 78, "type": "identifier", "text": "list", "parent": 77, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 15}}, {"id": 79, "type": "identifier", "text": "i", "parent": 77, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 80, "type": "<", "text": "<", "parent": 76, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 20}}, {"id": 81, "type": "number_literal", "text": "0", "parent": 76, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 22}}, {"id": 82, "type": "&&", "text": "&&", "parent": 75, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 25}}, {"id": 83, "type": "binary_expression", "text": "list[i] % 2 == 0", "parent": 75, "children": [84, 90, 91], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 42}}, {"id": 84, "type": "binary_expression", "text": "list[i] % 2", "parent": 83, "children": [85, 88, 89], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 37}}, {"id": 85, "type": "subscript_expression", "text": "list[i]", "parent": 84, "children": [86, 87], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 33}}, {"id": 86, "type": "identifier", "text": "list", "parent": 85, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 30}}, {"id": 87, "type": "identifier", "text": "i", "parent": 85, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 32}}, {"id": 88, "type": "%", "text": "%", "parent": 84, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 35}}, {"id": 89, "type": "number_literal", "text": "2", "parent": 84, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 37}}, {"id": 90, "type": "==", "text": "==", "parent": 83, "children": [], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 40}}, {"id": 91, "type": "number_literal", "text": "0", "parent": 83, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 42}}, {"id": 92, "type": "update_expression", "text": "negative++", "parent": 73, "children": [93, 94], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 22}}, {"id": 93, "type": "identifier", "text": "negative", "parent": 92, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 20}}, {"id": 94, "type": "++", "text": "++", "parent": 92, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 22}}, {"id": 95, "type": "update_expression", "text": "even++", "parent": 73, "children": [96, 97], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 18}}, {"id": 96, "type": "identifier", "text": "even", "parent": 95, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 16}}, {"id": 97, "type": "++", "text": "++", "parent": 95, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 18}}, {"id": 98, "type": "else_clause", "text": "else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }", "parent": 73, "children": [99], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 25, "column": 9}}, {"id": 99, "type": "if_statement", "text": "if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }", "parent": 98, "children": [100, 124], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 25, "column": 9}}, {"id": 100, "type": "parenthesized_expression", "text": "(list[i] > 0 && list[i] % 2 == 0)", "parent": 99, "children": [101], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 50}}, {"id": 101, "type": "binary_expression", "text": "list[i] > 0 && list[i] % 2 == 0", "parent": 100, "children": [102, 108, 109], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 49}}, {"id": 102, "type": "binary_expression", "text": "list[i] > 0", "parent": 101, "children": [103, 106, 107], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 29}}, {"id": 103, "type": "subscript_expression", "text": "list[i]", "parent": 102, "children": [104, 105], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 25}}, {"id": 104, "type": "identifier", "text": "list", "parent": 103, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 22}}, {"id": 105, "type": "identifier", "text": "i", "parent": 103, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 24}}, {"id": 106, "type": ">", "text": ">", "parent": 102, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 102, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 29}}, {"id": 108, "type": "&&", "text": "&&", "parent": 101, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 32}}, {"id": 109, "type": "binary_expression", "text": "list[i] % 2 == 0", "parent": 101, "children": [110, 116, 117], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 49}}, {"id": 110, "type": "binary_expression", "text": "list[i] % 2", "parent": 109, "children": [111, 114, 115], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 44}}, {"id": 111, "type": "subscript_expression", "text": "list[i]", "parent": 110, "children": [112, 113], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 40}}, {"id": 112, "type": "identifier", "text": "list", "parent": 111, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 113, "type": "identifier", "text": "i", "parent": 111, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 39}}, {"id": 114, "type": "%", "text": "%", "parent": 110, "children": [], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 42}}, {"id": 115, "type": "number_literal", "text": "2", "parent": 110, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 44}}, {"id": 116, "type": "==", "text": "==", "parent": 109, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 47}}, {"id": 117, "type": "number_literal", "text": "0", "parent": 109, "children": [], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 49}}, {"id": 118, "type": "update_expression", "text": "positive++", "parent": 99, "children": [119, 120], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 22}}, {"id": 119, "type": "identifier", "text": "positive", "parent": 118, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 20}}, {"id": 120, "type": "++", "text": "++", "parent": 118, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 22}}, {"id": 121, "type": "update_expression", "text": "even++", "parent": 99, "children": [122, 123], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 18}}, {"id": 122, "type": "identifier", "text": "even", "parent": 121, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 16}}, {"id": 123, "type": "++", "text": "++", "parent": 121, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 18}}, {"id": 124, "type": "else_clause", "text": "else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }", "parent": 99, "children": [125], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 25, "column": 9}}, {"id": 125, "type": "if_statement", "text": "if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }", "parent": 124, "children": [126, 150], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 25, "column": 9}}, {"id": 126, "type": "parenthesized_expression", "text": "(list[i] < 0 && list[i] % 2 != 0)", "parent": 125, "children": [127], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 50}}, {"id": 127, "type": "binary_expression", "text": "list[i] < 0 && list[i] % 2 != 0", "parent": 126, "children": [128, 134, 135], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 49}}, {"id": 128, "type": "binary_expression", "text": "list[i] < 0", "parent": 127, "children": [129, 132, 133], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 29}}, {"id": 129, "type": "subscript_expression", "text": "list[i]", "parent": 128, "children": [130, 131], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 25}}, {"id": 130, "type": "identifier", "text": "list", "parent": 129, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 22}}, {"id": 131, "type": "identifier", "text": "i", "parent": 129, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 24}}, {"id": 132, "type": "<", "text": "<", "parent": 128, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 27}}, {"id": 133, "type": "number_literal", "text": "0", "parent": 128, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 29}}, {"id": 134, "type": "&&", "text": "&&", "parent": 127, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 32}}, {"id": 135, "type": "binary_expression", "text": "list[i] % 2 != 0", "parent": 127, "children": [136, 142, 143], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 49}}, {"id": 136, "type": "binary_expression", "text": "list[i] % 2", "parent": 135, "children": [137, 140, 141], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 44}}, {"id": 137, "type": "subscript_expression", "text": "list[i]", "parent": 136, "children": [138, 139], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 40}}, {"id": 138, "type": "identifier", "text": "list", "parent": 137, "children": [], "start_point": {"row": 17, "column": 33}, "end_point": {"row": 17, "column": 37}}, {"id": 139, "type": "identifier", "text": "i", "parent": 137, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 39}}, {"id": 140, "type": "%", "text": "%", "parent": 136, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 42}}, {"id": 141, "type": "number_literal", "text": "2", "parent": 136, "children": [], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 44}}, {"id": 142, "type": "!=", "text": "!=", "parent": 135, "children": [], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 47}}, {"id": 143, "type": "number_literal", "text": "0", "parent": 135, "children": [], "start_point": {"row": 17, "column": 48}, "end_point": {"row": 17, "column": 49}}, {"id": 144, "type": "update_expression", "text": "negative++", "parent": 125, "children": [145, 146], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 22}}, {"id": 145, "type": "identifier", "text": "negative", "parent": 144, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 20}}, {"id": 146, "type": "++", "text": "++", "parent": 144, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 22}}, {"id": 147, "type": "update_expression", "text": "odd++", "parent": 125, "children": [148, 149], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 17}}, {"id": 148, "type": "identifier", "text": "odd", "parent": 147, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 15}}, {"id": 149, "type": "++", "text": "++", "parent": 147, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 17}}, {"id": 150, "type": "else_clause", "text": "else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }", "parent": 125, "children": [151], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 25, "column": 9}}, {"id": 151, "type": "if_statement", "text": "if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }", "parent": 150, "children": [152, 176], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 25, "column": 9}}, {"id": 152, "type": "parenthesized_expression", "text": "(list[i] > 0 && list[i] % 2 != 0)", "parent": 151, "children": [153], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 50}}, {"id": 153, "type": "binary_expression", "text": "list[i] > 0 && list[i] % 2 != 0", "parent": 152, "children": [154, 160, 161], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 49}}, {"id": 154, "type": "binary_expression", "text": "list[i] > 0", "parent": 153, "children": [155, 158, 159], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 29}}, {"id": 155, "type": "subscript_expression", "text": "list[i]", "parent": 154, "children": [156, 157], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 25}}, {"id": 156, "type": "identifier", "text": "list", "parent": 155, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 22}}, {"id": 157, "type": "identifier", "text": "i", "parent": 155, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 24}}, {"id": 158, "type": ">", "text": ">", "parent": 154, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 27}}, {"id": 159, "type": "number_literal", "text": "0", "parent": 154, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 29}}, {"id": 160, "type": "&&", "text": "&&", "parent": 153, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 32}}, {"id": 161, "type": "binary_expression", "text": "list[i] % 2 != 0", "parent": 153, "children": [162, 168, 169], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 49}}, {"id": 162, "type": "binary_expression", "text": "list[i] % 2", "parent": 161, "children": [163, 166, 167], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 44}}, {"id": 163, "type": "subscript_expression", "text": "list[i]", "parent": 162, "children": [164, 165], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 40}}, {"id": 164, "type": "identifier", "text": "list", "parent": 163, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 37}}, {"id": 165, "type": "identifier", "text": "i", "parent": 163, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 39}}, {"id": 166, "type": "%", "text": "%", "parent": 162, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 42}}, {"id": 167, "type": "number_literal", "text": "2", "parent": 162, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 44}}, {"id": 168, "type": "!=", "text": "!=", "parent": 161, "children": [], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 20, "column": 47}}, {"id": 169, "type": "number_literal", "text": "0", "parent": 161, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 49}}, {"id": 170, "type": "update_expression", "text": "positive++", "parent": 151, "children": [171, 172], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 22}}, {"id": 171, "type": "identifier", "text": "positive", "parent": 170, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 20}}, {"id": 172, "type": "++", "text": "++", "parent": 170, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 22}}, {"id": 173, "type": "update_expression", "text": "odd++", "parent": 151, "children": [174, 175], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 17}}, {"id": 174, "type": "identifier", "text": "odd", "parent": 173, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 175, "type": "++", "text": "++", "parent": 173, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 17}}, {"id": 176, "type": "else_clause", "text": "else {\n even++;\n }", "parent": 151, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 25, "column": 9}}, {"id": 177, "type": "update_expression", "text": "even++", "parent": 176, "children": [178, 179], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 18}}, {"id": 178, "type": "identifier", "text": "even", "parent": 177, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 16}}, {"id": 179, "type": "++", "text": "++", "parent": 177, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 18}}, {"id": 180, "type": "call_expression", "text": "printf(\"%d valor(es) par(es)\\n\", even)", "parent": 9, "children": [181, 182], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 42}}, {"id": 181, "type": "identifier", "text": "printf", "parent": 180, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 182, "type": "argument_list", "text": "(\"%d valor(es) par(es)\\n\", even)", "parent": 180, "children": [183, 185], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 42}}, {"id": 183, "type": "string_literal", "text": "\"%d valor(es) par(es)\\n\"", "parent": 182, "children": [184], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 35}}, {"id": 184, "type": "escape_sequence", "text": "\\n", "parent": 183, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 34}}, {"id": 185, "type": "identifier", "text": "even", "parent": 182, "children": [], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 41}}, {"id": 186, "type": "call_expression", "text": "printf(\"%d valor(es) impar(es)\\n\", odd)", "parent": 9, "children": [187, 188], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 43}}, {"id": 187, "type": "identifier", "text": "printf", "parent": 186, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 188, "type": "argument_list", "text": "(\"%d valor(es) impar(es)\\n\", odd)", "parent": 186, "children": [189, 191], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 43}}, {"id": 189, "type": "string_literal", "text": "\"%d valor(es) impar(es)\\n\"", "parent": 188, "children": [190], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 37}}, {"id": 190, "type": "escape_sequence", "text": "\\n", "parent": 189, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 36}}, {"id": 191, "type": "identifier", "text": "odd", "parent": 188, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 42}}, {"id": 192, "type": "call_expression", "text": "printf(\"%d valor(es) positivo(s)\\n\", positive)", "parent": 9, "children": [193, 194], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 50}}, {"id": 193, "type": "identifier", "text": "printf", "parent": 192, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 194, "type": "argument_list", "text": "(\"%d valor(es) positivo(s)\\n\", positive)", "parent": 192, "children": [195, 197], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 50}}, {"id": 195, "type": "string_literal", "text": "\"%d valor(es) positivo(s)\\n\"", "parent": 194, "children": [196], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 39}}, {"id": 196, "type": "escape_sequence", "text": "\\n", "parent": 195, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 38}}, {"id": 197, "type": "identifier", "text": "positive", "parent": 194, "children": [], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 49}}, {"id": 198, "type": "call_expression", "text": "printf(\"%d valor(es) negativo(s)\\n\", negative)", "parent": 9, "children": [199, 200], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 50}}, {"id": 199, "type": "identifier", "text": "printf", "parent": 198, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 200, "type": "argument_list", "text": "(\"%d valor(es) negativo(s)\\n\", negative)", "parent": 198, "children": [201, 203], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 50}}, {"id": 201, "type": "string_literal", "text": "\"%d valor(es) negativo(s)\\n\"", "parent": 200, "children": [202], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 39}}, {"id": 202, "type": "escape_sequence", "text": "\\n", "parent": 201, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 38}}, {"id": 203, "type": "identifier", "text": "negative", "parent": 200, "children": [], "start_point": {"row": 31, "column": 41}, "end_point": {"row": 31, "column": 49}}, {"id": 204, "type": "return_statement", "text": "return 0;", "parent": 9, "children": [205], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 13}}, {"id": 205, "type": "number_literal", "text": "0", "parent": 204, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 12}}]}, "node_categories": {"declarations": {"functions": [9, 11], "variables": [3, 14, 16, 38, 60], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [44, 48, 51, 55, 56, 66, 70, 74, 75, 76, 77, 83, 84, 85, 92, 95, 100, 101, 102, 103, 109, 110, 111, 118, 121, 126, 127, 128, 129, 135, 136, 137, 144, 147, 152, 153, 154, 155, 161, 162, 163, 170, 173, 177, 180, 186, 192, 198], "assignments": [], "loops": [37, 59], "conditionals": [6, 12, 19, 20, 22, 26, 30, 34, 41, 45, 47, 49, 52, 57, 58, 63, 67, 69, 71, 73, 78, 79, 86, 87, 93, 96, 99, 104, 105, 112, 113, 119, 122, 125, 130, 131, 138, 139, 145, 148, 151, 156, 157, 164, 165, 171, 174, 178, 181, 185, 187, 191, 193, 197, 199, 203], "returns": [204], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 8, 24, 28, 32, 36, 43, 54, 65, 81, 89, 91, 107, 115, 117, 133, 141, 143, 159, 167, 169, 183, 189, 195, 201, 205], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "main", "text_snippet": "int main(void) {\n int list[size], odd = 0, even = 0, negative = 0, positive = 0;\n\n for(int i ="}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n\nconst int size = 5; \n\nint main(void) {\n int list[size], odd = 0, even = 0, negative = 0, positive = 0;\n\n for(int i = 0; i < size; i++) \n scanf(\"%d\", &list[i]);\n \n for(int i = 0; i < size; i++) {\n if(list[i] < 0 && list[i] % 2 == 0) {\n negative++;\n even++;\n } else if(list[i] > 0 && list[i] % 2 == 0) {\n positive++;\n even++;\n } else if(list[i] < 0 && list[i] % 2 != 0) {\n negative++;\n odd++;\n } else if(list[i] > 0 && list[i] % 2 != 0) {\n positive++;\n odd++;\n } else {\n even++;\n }\n }\n\n printf(\"%d valor(es) par(es)\\n\", even);\n printf(\"%d valor(es) impar(es)\\n\", odd);\n printf(\"%d valor(es) positivo(s)\\n\", positive);\n printf(\"%d valor(es) negativo(s)\\n\", negative);\n return 0;\n} "}
80,446
c
#pragma once #include <core.h> #include <QDoubleSpinBox> #include <userinterface.qt.controls/ValueWidget.h> namespace nspace{ class DoubleSpinBoxWidget : public ValueWidget{ Q_OBJECT; private: QDoubleSpinBox * _spinbox; public: DoubleSpinBoxWidget(QWidget * parent); public slots: void updateWidgetValue(); void updateValueHolder(); protected slots: void onValueChanged(double); }; }
21.75
20
(translation_unit) "#pragma once \n \n#include <core.h> \n#include <QDoubleSpinBox> \n#include <userinterface.qt.controls/ValueWidget.h> \n \nnamespace nspace{ \n class DoubleSpinBoxWidget : public ValueWidget{ \n Q_OBJECT; \n private: \n QDoubleSpinBox * _spinbox; \n public: \n DoubleSpinBoxWidget(QWidget * parent); \n public slots: \n void updateWidgetValue(); \n void updateValueHolder(); \n protected slots: \n void onValueChanged(double); \n }; \n} \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include <core.h> \n" (#include) "#include" (system_lib_string) "<core.h>" (preproc_include) "#include <QDoubleSpinBox> \n" (#include) "#include" (system_lib_string) "<QDoubleSpinBox>" (preproc_include) "#include <userinterface.qt.controls/ValueWidget.h> \n" (#include) "#include" (system_lib_string) "<userinterface.qt.controls/ValueWidget.h>" (function_definition) "namespace nspace{ \n class DoubleSpinBoxWidget : public ValueWidget{ \n Q_OBJECT; \n private: \n QDoubleSpinBox * _spinbox; \n public: \n DoubleSpinBoxWidget(QWidget * parent); \n public slots: \n void updateWidgetValue(); \n void updateValueHolder(); \n protected slots: \n void onValueChanged(double); \n }; \n}" (type_identifier) "namespace" (identifier) "nspace" (compound_statement) "{ \n class DoubleSpinBoxWidget : public ValueWidget{ \n Q_OBJECT; \n private: \n QDoubleSpinBox * _spinbox; \n public: \n DoubleSpinBoxWidget(QWidget * parent); \n public slots: \n void updateWidgetValue(); \n void updateValueHolder(); \n protected slots: \n void onValueChanged(double); \n }; \n}" ({) "{" (function_definition) "class DoubleSpinBoxWidget : public ValueWidget{ \n Q_OBJECT; \n private: \n QDoubleSpinBox * _spinbox; \n public: \n DoubleSpinBoxWidget(QWidget * parent); \n public slots: \n void updateWidgetValue(); \n void updateValueHolder(); \n protected slots: \n void onValueChanged(double); \n }" (type_identifier) "class" (identifier) "DoubleSpinBoxWidget" (ERROR) ": public ValueWidget" (:) ":" (identifier) "public" (identifier) "ValueWidget" (compound_statement) "{ \n Q_OBJECT; \n private: \n QDoubleSpinBox * _spinbox; \n public: \n DoubleSpinBoxWidget(QWidget * parent); \n public slots: \n void updateWidgetValue(); \n void updateValueHolder(); \n protected slots: \n void onValueChanged(double); \n }" ({) "{" (expression_statement) "Q_OBJECT;" (identifier) "Q_OBJECT" (;) ";" (labeled_statement) "private: \n QDoubleSpinBox * _spinbox;" (statement_identifier) "private" (:) ":" (declaration) "QDoubleSpinBox * _spinbox;" (type_identifier) "QDoubleSpinBox" (pointer_declarator) "* _spinbox" (*) "*" (identifier) "_spinbox" (;) ";" (labeled_statement) "public: \n DoubleSpinBoxWidget(QWidget * parent);" (statement_identifier) "public" (:) ":" (expression_statement) "DoubleSpinBoxWidget(QWidget * parent);" (call_expression) "DoubleSpinBoxWidget(QWidget * parent)" (identifier) "DoubleSpinBoxWidget" (argument_list) "(QWidget * parent)" (() "(" (binary_expression) "QWidget * parent" (identifier) "QWidget" (*) "*" (identifier) "parent" ()) ")" (;) ";" (ERROR) "public slots:" (type_identifier) "public" (identifier) "slots" (:) ":" (declaration) "void updateWidgetValue();" (primitive_type) "void" (function_declarator) "updateWidgetValue()" (identifier) "updateWidgetValue" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void updateValueHolder();" (primitive_type) "void" (function_declarator) "updateValueHolder()" (identifier) "updateValueHolder" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "protected slots:" (type_identifier) "protected" (identifier) "slots" (:) ":" (declaration) "void onValueChanged(double);" (primitive_type) "void" (function_declarator) "onValueChanged(double)" (identifier) "onValueChanged" (parameter_list) "(double)" (() "(" (parameter_declaration) "double" (primitive_type) "double" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
91
3
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 21.75, "nodes": 55, "errors": 0, "source_hash": "1c8681d8c419a1dfe0aaaaba097f0a8bed8975353b265f65662af0ba825fd96d", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once\r", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 13}}, {"id": 3, "type": "preproc_include", "text": "#include <core.h>\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<core.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <QDoubleSpinBox>\r\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": "<QDoubleSpinBox>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <userinterface.qt.controls/ValueWidget.h>\r\n", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<userinterface.qt.controls/ValueWidget.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 50}}, {"id": 12, "type": "function_definition", "text": "namespace nspace{\r\n class DoubleSpinBoxWidget : public ValueWidget{\r\n Q_OBJECT;\r\n private:\r\n QDoubleSpinBox * _spinbox;\r\n public:\r\n DoubleSpinBoxWidget(QWidget * parent);\r\n public slots:\r\n void updateWidgetValue();\r\n void updateValueHolder();\r\n protected slots:\r\n void onValueChanged(double);\r\n };\r\n}", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 14, "type": "identifier", "text": "nspace", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 16}}, {"id": 15, "type": "function_definition", "text": "class DoubleSpinBoxWidget : public ValueWidget{\r\n Q_OBJECT;\r\n private:\r\n QDoubleSpinBox * _spinbox;\r\n public:\r\n DoubleSpinBoxWidget(QWidget * parent);\r\n public slots:\r\n void updateWidgetValue();\r\n void updateValueHolder();\r\n protected slots:\r\n void onValueChanged(double);\r\n }", "parent": 12, "children": [16, 17], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 18, "column": 3}}, {"id": 16, "type": "identifier", "text": "DoubleSpinBoxWidget", "parent": 15, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 27}}, {"id": 17, "type": "ERROR", "text": ": public ValueWidget", "parent": 15, "children": [18], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 48}}, {"id": 18, "type": "identifier", "text": "ValueWidget", "parent": 17, "children": [], "start_point": {"row": 7, "column": 37}, "end_point": {"row": 7, "column": 48}}, {"id": 19, "type": "identifier", "text": "Q_OBJECT", "parent": 15, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 12}}, {"id": 20, "type": "labeled_statement", "text": "private:\r\n QDoubleSpinBox * _spinbox;", "parent": 15, "children": [21], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 10, "column": 30}}, {"id": 21, "type": "declaration", "text": "QDoubleSpinBox * _spinbox;", "parent": 20, "children": [22, 23], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 30}}, {"id": 22, "type": "type_identifier", "text": "QDoubleSpinBox", "parent": 21, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 18}}, {"id": 23, "type": "pointer_declarator", "text": "* _spinbox", "parent": 21, "children": [24, 25], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 29}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 20}}, {"id": 25, "type": "identifier", "text": "_spinbox", "parent": 23, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 29}}, {"id": 26, "type": "labeled_statement", "text": "public:\r\n DoubleSpinBoxWidget(QWidget * parent);", "parent": 15, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 12, "column": 42}}, {"id": 27, "type": "call_expression", "text": "DoubleSpinBoxWidget(QWidget * parent)", "parent": 26, "children": [28, 29], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 41}}, {"id": 28, "type": "identifier", "text": "DoubleSpinBoxWidget", "parent": 27, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 23}}, {"id": 29, "type": "argument_list", "text": "(QWidget * parent)", "parent": 27, "children": [30], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 41}}, {"id": 30, "type": "binary_expression", "text": "QWidget * parent", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 40}}, {"id": 31, "type": "identifier", "text": "QWidget", "parent": 30, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 31}}, {"id": 32, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 33}}, {"id": 33, "type": "identifier", "text": "parent", "parent": 30, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 40}}, {"id": 34, "type": "ERROR", "text": "public slots:", "parent": 15, "children": [35], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 17}}, {"id": 35, "type": "identifier", "text": "slots", "parent": 34, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 16}}, {"id": 36, "type": "declaration", "text": "void updateWidgetValue();", "parent": 15, "children": [37, 38], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 31}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 10}}, {"id": 38, "type": "function_declarator", "text": "updateWidgetValue()", "parent": 36, "children": [39, 40], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 30}}, {"id": 39, "type": "identifier", "text": "updateWidgetValue", "parent": 38, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 28}}, {"id": 40, "type": "parameter_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 30}}, {"id": 41, "type": "declaration", "text": "void updateValueHolder();", "parent": 15, "children": [42, 43], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 31}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 10}}, {"id": 43, "type": "function_declarator", "text": "updateValueHolder()", "parent": 41, "children": [44, 45], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 30}}, {"id": 44, "type": "identifier", "text": "updateValueHolder", "parent": 43, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 28}}, {"id": 45, "type": "parameter_list", "text": "()", "parent": 43, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 30}}, {"id": 46, "type": "ERROR", "text": "protected slots:", "parent": 15, "children": [47], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 22}}, {"id": 47, "type": "identifier", "text": "slots", "parent": 46, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 21}}, {"id": 48, "type": "declaration", "text": "void onValueChanged(double);", "parent": 15, "children": [49, 50], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 36}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 12}}, {"id": 50, "type": "function_declarator", "text": "onValueChanged(double)", "parent": 48, "children": [51, 52], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 35}}, {"id": 51, "type": "identifier", "text": "onValueChanged", "parent": 50, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 27}}, {"id": 52, "type": "parameter_list", "text": "(double)", "parent": 50, "children": [53], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 35}}, {"id": 53, "type": "parameter_declaration", "text": "double", "parent": 52, "children": [54], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 34}}, {"id": 54, "type": "primitive_type", "text": "double", "parent": 53, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 34}}]}, "node_categories": {"declarations": {"functions": [12, 15, 38, 43, 50], "variables": [21, 36, 41, 48, 53], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [27, 30], "assignments": [], "loops": [], "conditionals": [13, 14, 16, 18, 19, 22, 25, 28, 31, 33, 35, 39, 44, 47, 51], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "DoubleSpinBoxWidget", "text_snippet": "namespace nspace{\r\n class DoubleSpinBoxWidget : public ValueWidget{\r\n Q_OBJECT;\r\n private:\r\n "}, {"node_id": 15, "universal_type": "function", "name": "DoubleSpinBoxWidget", "text_snippet": "class DoubleSpinBoxWidget : public ValueWidget{\r\n Q_OBJECT;\r\n private:\r\n QDoubleSpinBox * _sp"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "updateWidgetValue()"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "updateValueHolder()"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "onValueChanged(double)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <core.h>\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <QDoubleSpinBox>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <userinterface.qt.controls/ValueWidget.h>\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\r\n\r\n#include <core.h>\r\n#include <QDoubleSpinBox>\r\n#include <userinterface.qt.controls/ValueWidget.h>\r\n\r\nnamespace nspace{\r\n class DoubleSpinBoxWidget : public ValueWidget{\r\n Q_OBJECT;\r\n private:\r\n QDoubleSpinBox * _spinbox;\r\n public:\r\n DoubleSpinBoxWidget(QWidget * parent);\r\n public slots:\r\n void updateWidgetValue();\r\n void updateValueHolder();\r\n protected slots:\r\n void onValueChanged(double);\r\n };\r\n}\r\n"}
80,447
c
/* * A swapon(8)/swapoff(8) for Linux 0.99. * swapon.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp */ #include "sundries.h" /* Nonzero for chatty (-v). This is a nonstandard flag (not in BSD). */ int verbose = 0; extern char version[]; static char *program_name; static struct option longopts[] = { { "all", 0, 0, 'a' }, { "help", 0, 0, 'h' }, { "verbose", 0, 0, 'v' }, { "version", 0, 0, 'V' }, { NULL, 0, 0, 0 } }; const char *usage_string = "\ usage: %s [-hV]\n\ %s -a [-v]\n\ %s [-v] special ...\n\ "; static void usage (FILE *fp, int n) { fprintf (fp, usage_string, program_name, program_name, program_name); exit (n); } static int swap (const char *special) { int status; if (verbose) printf("%s on device %s\n", program_name, special); if (streq (program_name, "swapon")) status = swapon (special,0); else status = swapoff (special); if (status < 0) fprintf (stderr, "%s: %s: %s\n", program_name, special, strerror (errno)); return status; } int main (int argc, char *argv[]) { struct fstab *fstab; int status; int all = 0; int c; if (strrchr (argv[0], '/') != NULL) program_name = strrchr (argv[0], '/') + 1; else program_name = argv[0]; while ((c = getopt_long (argc, argv, "ahvV", longopts, NULL)) != EOF) switch (c) { case 'a': /* all */ ++all; break; case 'h': /* help */ usage (stdout, 0); break; case 'v': /* be chatty */ ++verbose; break; case 'V': /* version */ printf ("%s\n", version); exit (0); case 0: break; case '?': default: usage (stderr, 1); } argv += optind; status = 0; if (all) { while ((fstab = getfsent()) != NULL) if (streq (fstab->fs_type, FSTAB_SW)) status |= swap (fstab->fs_spec); } else if (*argv == NULL) { usage (stderr, 2); } else { while (*argv != NULL) status |= swap (*argv++); } return status; }
20.37
91
(translation_unit) "/*\n * A swapon(8)/swapoff(8) for Linux 0.99.\n * swapon.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp\n */\n\n#include "sundries.h"\n\n/* Nonzero for chatty (-v). This is a nonstandard flag (not in BSD). */\nint verbose = 0;\n\nextern char version[];\nstatic char *program_name;\nstatic struct option longopts[] =\n{\n { "all", 0, 0, 'a' },\n { "help", 0, 0, 'h' },\n { "verbose", 0, 0, 'v' },\n { "version", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n};\n\nconst char *usage_string = "\\nusage: %s [-hV]\n\\n %s -a [-v]\n\\n %s [-v] special ...\n\\n";\n\nstatic void\nusage (FILE *fp, int n)\n{\n fprintf (fp, usage_string, program_name, program_name, program_name);\n exit (n);\n}\n\nstatic int\nswap (const char *special)\n{\n int status;\n\n if (verbose)\n printf("%s on device %s\n", program_name, special);\n\n if (streq (program_name, "swapon"))\n status = swapon (special,0);\n else\n status = swapoff (special);\n\n if (status < 0)\n fprintf (stderr, "%s: %s: %s\n", program_name, special, strerror (errno));\n\n return status;\n}\n\nint\nmain (int argc, char *argv[])\n{\n struct fstab *fstab;\n int status;\n int all = 0;\n int c;\n\n if (strrchr (argv[0], '/') != NULL)\n program_name = strrchr (argv[0], '/') + 1;\n else\n program_name = argv[0];\n\n while ((c = getopt_long (argc, argv, "ahvV", longopts, NULL)) != EOF)\n switch (c)\n {\n case 'a': /* all */\n ++all;\n break;\n case 'h': /* help */\n usage (stdout, 0);\n break;\n case 'v': /* be chatty */\n ++verbose;\n break;\n case 'V': /* version */\n printf ("%s\n", version);\n exit (0);\n case 0:\n break;\n case '?':\n default:\n usage (stderr, 1);\n }\n\n argv += optind;\n\n status = 0;\n\n if (all)\n {\n while ((fstab = getfsent()) != NULL)\n if (streq (fstab->fs_type, FSTAB_SW))\n status |= swap (fstab->fs_spec);\n }\n else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n status |= swap (*argv++);\n }\n return status;\n}\n" (comment) "/*\n * A swapon(8)/swapoff(8) for Linux 0.99.\n * swapon.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp\n */" (preproc_include) "#include "sundries.h"\n" (#include) "#include" (string_literal) ""sundries.h"" (") """ (string_content) "sundries.h" (") """ (comment) "/* Nonzero for chatty (-v). This is a nonstandard flag (not in BSD). */" (declaration) "int verbose = 0;" (primitive_type) "int" (init_declarator) "verbose = 0" (identifier) "verbose" (=) "=" (number_literal) "0" (;) ";" (declaration) "extern char version[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "version[]" (identifier) "version" ([) "[" (]) "]" (;) ";" (declaration) "static char *program_name;" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (pointer_declarator) "*program_name" (*) "*" (identifier) "program_name" (;) ";" (declaration) "static struct option longopts[] =\n{\n { "all", 0, 0, 'a' },\n { "help", 0, 0, 'h' },\n { "verbose", 0, 0, 'v' },\n { "version", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct option" (struct) "struct" (type_identifier) "option" (init_declarator) "longopts[] =\n{\n { "all", 0, 0, 'a' },\n { "help", 0, 0, 'h' },\n { "verbose", 0, 0, 'v' },\n { "version", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n}" (array_declarator) "longopts[]" (identifier) "longopts" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n { "all", 0, 0, 'a' },\n { "help", 0, 0, 'h' },\n { "verbose", 0, 0, 'v' },\n { "version", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n}" ({) "{" (initializer_list) "{ "all", 0, 0, 'a' }" ({) "{" (string_literal) ""all"" (") """ (string_content) "all" (") """ (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (char_literal) "'a'" (') "'" (character) "a" (') "'" (}) "}" (,) "," (initializer_list) "{ "help", 0, 0, 'h' }" ({) "{" (string_literal) ""help"" (") """ (string_content) "help" (") """ (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (char_literal) "'h'" (') "'" (character) "h" (') "'" (}) "}" (,) "," (initializer_list) "{ "verbose", 0, 0, 'v' }" ({) "{" (string_literal) ""verbose"" (") """ (string_content) "verbose" (") """ (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (char_literal) "'v'" (') "'" (character) "v" (') "'" (}) "}" (,) "," (initializer_list) "{ "version", 0, 0, 'V' }" ({) "{" (string_literal) ""version"" (") """ (string_content) "version" (") """ (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (char_literal) "'V'" (') "'" (character) "V" (') "'" (}) "}" (,) "," (initializer_list) "{ NULL, 0, 0, 0 }" ({) "{" (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (}) "}" (;) ";" (declaration) "const char *usage_string = "\\nusage: %s [-hV]\n\\n %s -a [-v]\n\\n %s [-v] special ...\n\\n";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*usage_string = "\\nusage: %s [-hV]\n\\n %s -a [-v]\n\\n %s [-v] special ...\n\\n"" (pointer_declarator) "*usage_string" (*) "*" (identifier) "usage_string" (=) "=" (string_literal) ""\\nusage: %s [-hV]\n\\n %s -a [-v]\n\\n %s [-v] special ...\n\\n"" (") """ (escape_sequence) "\\n" (string_content) "usage: %s [-hV]" (escape_sequence) "\n" (escape_sequence) "\\n" (string_content) " %s -a [-v]" (escape_sequence) "\n" (escape_sequence) "\\n" (string_content) " %s [-v] special ..." (escape_sequence) "\n" (escape_sequence) "\\n" (") """ (;) ";" (function_definition) "static void\nusage (FILE *fp, int n)\n{\n fprintf (fp, usage_string, program_name, program_name, program_name);\n exit (n);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "usage (FILE *fp, int n)" (identifier) "usage" (parameter_list) "(FILE *fp, int n)" (() "(" (parameter_declaration) "FILE *fp" (type_identifier) "FILE" (pointer_declarator) "*fp" (*) "*" (identifier) "fp" (,) "," (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" ()) ")" (compound_statement) "{\n fprintf (fp, usage_string, program_name, program_name, program_name);\n exit (n);\n}" ({) "{" (expression_statement) "fprintf (fp, usage_string, program_name, program_name, program_name);" (call_expression) "fprintf (fp, usage_string, program_name, program_name, program_name)" (identifier) "fprintf" (argument_list) "(fp, usage_string, program_name, program_name, program_name)" (() "(" (identifier) "fp" (,) "," (identifier) "usage_string" (,) "," (identifier) "program_name" (,) "," (identifier) "program_name" (,) "," (identifier) "program_name" ()) ")" (;) ";" (expression_statement) "exit (n);" (call_expression) "exit (n)" (identifier) "exit" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (;) ";" (}) "}" (function_definition) "static int\nswap (const char *special)\n{\n int status;\n\n if (verbose)\n printf("%s on device %s\n", program_name, special);\n\n if (streq (program_name, "swapon"))\n status = swapon (special,0);\n else\n status = swapoff (special);\n\n if (status < 0)\n fprintf (stderr, "%s: %s: %s\n", program_name, special, strerror (errno));\n\n return status;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "swap (const char *special)" (identifier) "swap" (parameter_list) "(const char *special)" (() "(" (parameter_declaration) "const char *special" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*special" (*) "*" (identifier) "special" ()) ")" (compound_statement) "{\n int status;\n\n if (verbose)\n printf("%s on device %s\n", program_name, special);\n\n if (streq (program_name, "swapon"))\n status = swapon (special,0);\n else\n status = swapoff (special);\n\n if (status < 0)\n fprintf (stderr, "%s: %s: %s\n", program_name, special, strerror (errno));\n\n return status;\n}" ({) "{" (declaration) "int status;" (primitive_type) "int" (identifier) "status" (;) ";" (if_statement) "if (verbose)\n printf("%s on device %s\n", program_name, special);" (if) "if" (parenthesized_expression) "(verbose)" (() "(" (identifier) "verbose" ()) ")" (expression_statement) "printf("%s on device %s\n", program_name, special);" (call_expression) "printf("%s on device %s\n", program_name, special)" (identifier) "printf" (argument_list) "("%s on device %s\n", program_name, special)" (() "(" (string_literal) ""%s on device %s\n"" (") """ (string_content) "%s on device %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "program_name" (,) "," (identifier) "special" ()) ")" (;) ";" (if_statement) "if (streq (program_name, "swapon"))\n status = swapon (special,0);\n else\n status = swapoff (special);" (if) "if" (parenthesized_expression) "(streq (program_name, "swapon"))" (() "(" (call_expression) "streq (program_name, "swapon")" (identifier) "streq" (argument_list) "(program_name, "swapon")" (() "(" (identifier) "program_name" (,) "," (string_literal) ""swapon"" (") """ (string_content) "swapon" (") """ ()) ")" ()) ")" (expression_statement) "status = swapon (special,0);" (assignment_expression) "status = swapon (special,0)" (identifier) "status" (=) "=" (call_expression) "swapon (special,0)" (identifier) "swapon" (argument_list) "(special,0)" (() "(" (identifier) "special" (,) "," (number_literal) "0" ()) ")" (;) ";" (else_clause) "else\n status = swapoff (special);" (else) "else" (expression_statement) "status = swapoff (special);" (assignment_expression) "status = swapoff (special)" (identifier) "status" (=) "=" (call_expression) "swapoff (special)" (identifier) "swapoff" (argument_list) "(special)" (() "(" (identifier) "special" ()) ")" (;) ";" (if_statement) "if (status < 0)\n fprintf (stderr, "%s: %s: %s\n", program_name, special, strerror (errno));" (if) "if" (parenthesized_expression) "(status < 0)" (() "(" (binary_expression) "status < 0" (identifier) "status" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "fprintf (stderr, "%s: %s: %s\n", program_name, special, strerror (errno));" (call_expression) "fprintf (stderr, "%s: %s: %s\n", program_name, special, strerror (errno))" (identifier) "fprintf" (argument_list) "(stderr, "%s: %s: %s\n", program_name, special, strerror (errno))" (() "(" (identifier) "stderr" (,) "," (string_literal) ""%s: %s: %s\n"" (") """ (string_content) "%s: %s: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "program_name" (,) "," (identifier) "special" (,) "," (call_expression) "strerror (errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return status;" (return) "return" (identifier) "status" (;) ";" (}) "}" (function_definition) "int\nmain (int argc, char *argv[])\n{\n struct fstab *fstab;\n int status;\n int all = 0;\n int c;\n\n if (strrchr (argv[0], '/') != NULL)\n program_name = strrchr (argv[0], '/') + 1;\n else\n program_name = argv[0];\n\n while ((c = getopt_long (argc, argv, "ahvV", longopts, NULL)) != EOF)\n switch (c)\n {\n case 'a': /* all */\n ++all;\n break;\n case 'h': /* help */\n usage (stdout, 0);\n break;\n case 'v': /* be chatty */\n ++verbose;\n break;\n case 'V': /* version */\n printf ("%s\n", version);\n exit (0);\n case 0:\n break;\n case '?':\n default:\n usage (stderr, 1);\n }\n\n argv += optind;\n\n status = 0;\n\n if (all)\n {\n while ((fstab = getfsent()) != NULL)\n if (streq (fstab->fs_type, FSTAB_SW))\n status |= swap (fstab->fs_spec);\n }\n else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n status |= swap (*argv++);\n }\n return status;\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 struct fstab *fstab;\n int status;\n int all = 0;\n int c;\n\n if (strrchr (argv[0], '/') != NULL)\n program_name = strrchr (argv[0], '/') + 1;\n else\n program_name = argv[0];\n\n while ((c = getopt_long (argc, argv, "ahvV", longopts, NULL)) != EOF)\n switch (c)\n {\n case 'a': /* all */\n ++all;\n break;\n case 'h': /* help */\n usage (stdout, 0);\n break;\n case 'v': /* be chatty */\n ++verbose;\n break;\n case 'V': /* version */\n printf ("%s\n", version);\n exit (0);\n case 0:\n break;\n case '?':\n default:\n usage (stderr, 1);\n }\n\n argv += optind;\n\n status = 0;\n\n if (all)\n {\n while ((fstab = getfsent()) != NULL)\n if (streq (fstab->fs_type, FSTAB_SW))\n status |= swap (fstab->fs_spec);\n }\n else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n status |= swap (*argv++);\n }\n return status;\n}" ({) "{" (declaration) "struct fstab *fstab;" (struct_specifier) "struct fstab" (struct) "struct" (type_identifier) "fstab" (pointer_declarator) "*fstab" (*) "*" (identifier) "fstab" (;) ";" (declaration) "int status;" (primitive_type) "int" (identifier) "status" (;) ";" (declaration) "int all = 0;" (primitive_type) "int" (init_declarator) "all = 0" (identifier) "all" (=) "=" (number_literal) "0" (;) ";" (declaration) "int c;" (primitive_type) "int" (identifier) "c" (;) ";" (if_statement) "if (strrchr (argv[0], '/') != NULL)\n program_name = strrchr (argv[0], '/') + 1;\n else\n program_name = argv[0];" (if) "if" (parenthesized_expression) "(strrchr (argv[0], '/') != NULL)" (() "(" (binary_expression) "strrchr (argv[0], '/') != NULL" (call_expression) "strrchr (argv[0], '/')" (identifier) "strrchr" (argument_list) "(argv[0], '/')" (() "(" (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "program_name = strrchr (argv[0], '/') + 1;" (assignment_expression) "program_name = strrchr (argv[0], '/') + 1" (identifier) "program_name" (=) "=" (binary_expression) "strrchr (argv[0], '/') + 1" (call_expression) "strrchr (argv[0], '/')" (identifier) "strrchr" (argument_list) "(argv[0], '/')" (() "(" (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" (+) "+" (number_literal) "1" (;) ";" (else_clause) "else\n program_name = argv[0];" (else) "else" (expression_statement) "program_name = argv[0];" (assignment_expression) "program_name = argv[0]" (identifier) "program_name" (=) "=" (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (;) ";" (while_statement) "while ((c = getopt_long (argc, argv, "ahvV", longopts, NULL)) != EOF)\n switch (c)\n {\n case 'a': /* all */\n ++all;\n break;\n case 'h': /* help */\n usage (stdout, 0);\n break;\n case 'v': /* be chatty */\n ++verbose;\n break;\n case 'V': /* version */\n printf ("%s\n", version);\n exit (0);\n case 0:\n break;\n case '?':\n default:\n usage (stderr, 1);\n }" (while) "while" (parenthesized_expression) "((c = getopt_long (argc, argv, "ahvV", longopts, NULL)) != EOF)" (() "(" (binary_expression) "(c = getopt_long (argc, argv, "ahvV", longopts, NULL)) != EOF" (parenthesized_expression) "(c = getopt_long (argc, argv, "ahvV", longopts, NULL))" (() "(" (assignment_expression) "c = getopt_long (argc, argv, "ahvV", longopts, NULL)" (identifier) "c" (=) "=" (call_expression) "getopt_long (argc, argv, "ahvV", longopts, NULL)" (identifier) "getopt_long" (argument_list) "(argc, argv, "ahvV", longopts, NULL)" (() "(" (identifier) "argc" (,) "," (identifier) "argv" (,) "," (string_literal) ""ahvV"" (") """ (string_content) "ahvV" (") """ (,) "," (identifier) "longopts" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" ()) ")" (!=) "!=" (identifier) "EOF" ()) ")" (switch_statement) "switch (c)\n {\n case 'a': /* all */\n ++all;\n break;\n case 'h': /* help */\n usage (stdout, 0);\n break;\n case 'v': /* be chatty */\n ++verbose;\n break;\n case 'V': /* version */\n printf ("%s\n", version);\n exit (0);\n case 0:\n break;\n case '?':\n default:\n usage (stderr, 1);\n }" (switch) "switch" (parenthesized_expression) "(c)" (() "(" (identifier) "c" ()) ")" (compound_statement) "{\n case 'a': /* all */\n ++all;\n break;\n case 'h': /* help */\n usage (stdout, 0);\n break;\n case 'v': /* be chatty */\n ++verbose;\n break;\n case 'V': /* version */\n printf ("%s\n", version);\n exit (0);\n case 0:\n break;\n case '?':\n default:\n usage (stderr, 1);\n }" ({) "{" (case_statement) "case 'a': /* all */\n ++all;\n break;" (case) "case" (char_literal) "'a'" (') "'" (character) "a" (') "'" (:) ":" (comment) "/* all */" (expression_statement) "++all;" (update_expression) "++all" (++) "++" (identifier) "all" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'h': /* help */\n usage (stdout, 0);\n break;" (case) "case" (char_literal) "'h'" (') "'" (character) "h" (') "'" (:) ":" (comment) "/* help */" (expression_statement) "usage (stdout, 0);" (call_expression) "usage (stdout, 0)" (identifier) "usage" (argument_list) "(stdout, 0)" (() "(" (identifier) "stdout" (,) "," (number_literal) "0" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'v': /* be chatty */\n ++verbose;\n break;" (case) "case" (char_literal) "'v'" (') "'" (character) "v" (') "'" (:) ":" (comment) "/* be chatty */" (expression_statement) "++verbose;" (update_expression) "++verbose" (++) "++" (identifier) "verbose" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'V': /* version */\n printf ("%s\n", version);\n exit (0);" (case) "case" (char_literal) "'V'" (') "'" (character) "V" (') "'" (:) ":" (comment) "/* version */" (expression_statement) "printf ("%s\n", version);" (call_expression) "printf ("%s\n", version)" (identifier) "printf" (argument_list) "("%s\n", version)" (() "(" (string_literal) ""%s\n"" (") """ (string_content) "%s" (escape_sequence) "\n" (") """ (,) "," (identifier) "version" ()) ")" (;) ";" (expression_statement) "exit (0);" (call_expression) "exit (0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (case_statement) "case 0:\n break;" (case) "case" (number_literal) "0" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case '?':" (case) "case" (char_literal) "'?'" (') "'" (character) "?" (') "'" (:) ":" (case_statement) "default:\n usage (stderr, 1);" (default) "default" (:) ":" (expression_statement) "usage (stderr, 1);" (call_expression) "usage (stderr, 1)" (identifier) "usage" (argument_list) "(stderr, 1)" (() "(" (identifier) "stderr" (,) "," (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "argv += optind;" (assignment_expression) "argv += optind" (identifier) "argv" (+=) "+=" (identifier) "optind" (;) ";" (expression_statement) "status = 0;" (assignment_expression) "status = 0" (identifier) "status" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (all)\n {\n while ((fstab = getfsent()) != NULL)\n if (streq (fstab->fs_type, FSTAB_SW))\n status |= swap (fstab->fs_spec);\n }\n else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n status |= swap (*argv++);\n }" (if) "if" (parenthesized_expression) "(all)" (() "(" (identifier) "all" ()) ")" (compound_statement) "{\n while ((fstab = getfsent()) != NULL)\n if (streq (fstab->fs_type, FSTAB_SW))\n status |= swap (fstab->fs_spec);\n }" ({) "{" (while_statement) "while ((fstab = getfsent()) != NULL)\n if (streq (fstab->fs_type, FSTAB_SW))\n status |= swap (fstab->fs_spec);" (while) "while" (parenthesized_expression) "((fstab = getfsent()) != NULL)" (() "(" (binary_expression) "(fstab = getfsent()) != NULL" (parenthesized_expression) "(fstab = getfsent())" (() "(" (assignment_expression) "fstab = getfsent()" (identifier) "fstab" (=) "=" (call_expression) "getfsent()" (identifier) "getfsent" (argument_list) "()" (() "(" ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (if_statement) "if (streq (fstab->fs_type, FSTAB_SW))\n status |= swap (fstab->fs_spec);" (if) "if" (parenthesized_expression) "(streq (fstab->fs_type, FSTAB_SW))" (() "(" (call_expression) "streq (fstab->fs_type, FSTAB_SW)" (identifier) "streq" (argument_list) "(fstab->fs_type, FSTAB_SW)" (() "(" (field_expression) "fstab->fs_type" (identifier) "fstab" (->) "->" (field_identifier) "fs_type" (,) "," (identifier) "FSTAB_SW" ()) ")" ()) ")" (expression_statement) "status |= swap (fstab->fs_spec);" (assignment_expression) "status |= swap (fstab->fs_spec)" (identifier) "status" (|=) "|=" (call_expression) "swap (fstab->fs_spec)" (identifier) "swap" (argument_list) "(fstab->fs_spec)" (() "(" (field_expression) "fstab->fs_spec" (identifier) "fstab" (->) "->" (field_identifier) "fs_spec" ()) ")" (;) ";" (}) "}" (else_clause) "else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n status |= swap (*argv++);\n }" (else) "else" (if_statement) "if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n status |= swap (*argv++);\n }" (if) "if" (parenthesized_expression) "(*argv == NULL)" (() "(" (binary_expression) "*argv == NULL" (pointer_expression) "*argv" (*) "*" (identifier) "argv" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n usage (stderr, 2);\n }" ({) "{" (expression_statement) "usage (stderr, 2);" (call_expression) "usage (stderr, 2)" (identifier) "usage" (argument_list) "(stderr, 2)" (() "(" (identifier) "stderr" (,) "," (number_literal) "2" ()) ")" (;) ";" (}) "}" (else_clause) "else\n {\n while (*argv != NULL)\n status |= swap (*argv++);\n }" (else) "else" (compound_statement) "{\n while (*argv != NULL)\n status |= swap (*argv++);\n }" ({) "{" (while_statement) "while (*argv != NULL)\n status |= swap (*argv++);" (while) "while" (parenthesized_expression) "(*argv != NULL)" (() "(" (binary_expression) "*argv != NULL" (pointer_expression) "*argv" (*) "*" (identifier) "argv" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "status |= swap (*argv++);" (assignment_expression) "status |= swap (*argv++)" (identifier) "status" (|=) "|=" (call_expression) "swap (*argv++)" (identifier) "swap" (argument_list) "(*argv++)" (() "(" (pointer_expression) "*argv++" (*) "*" (update_expression) "argv++" (identifier) "argv" (++) "++" ()) ")" (;) ";" (}) "}" (return_statement) "return status;" (return) "return" (identifier) "status" (;) ";" (}) "}"
710
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 20.37, "nodes": 416, "errors": 0, "source_hash": "6ecf7e2639e7059b3c87e4099ab245874d8f282bd1dffd151a39e3765a381b1a", "categorized_nodes": 257}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"sundries.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": "\"sundries.h\"", "parent": 0, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 21}}, {"id": 3, "type": "declaration", "text": "int verbose = 0;", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 16}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 5, "type": "init_declarator", "text": "verbose = 0", "parent": 3, "children": [6, 7, 8], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 15}}, {"id": 6, "type": "identifier", "text": "verbose", "parent": 5, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 11}}, {"id": 7, "type": "=", "text": "=", "parent": 5, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 13}}, {"id": 8, "type": "number_literal", "text": "0", "parent": 5, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 15}}, {"id": 9, "type": "declaration", "text": "extern char version[];", "parent": null, "children": [10, 12, 13], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 22}}, {"id": 10, "type": "storage_class_specifier", "text": "extern", "parent": 9, "children": [11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 11, "type": "extern", "text": "extern", "parent": 10, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 9, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 11}}, {"id": 13, "type": "array_declarator", "text": "version[]", "parent": 9, "children": [14], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 21}}, {"id": 14, "type": "identifier", "text": "version", "parent": 13, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 19}}, {"id": 15, "type": "declaration", "text": "static char *program_name;", "parent": null, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 26}}, {"id": 16, "type": "primitive_type", "text": "char", "parent": 15, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 11}}, {"id": 17, "type": "pointer_declarator", "text": "*program_name", "parent": 15, "children": [18, 19], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 25}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 13}}, {"id": 19, "type": "identifier", "text": "program_name", "parent": 17, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 25}}, {"id": 20, "type": "declaration", "text": "static struct option longopts[] =\n{\n { \"all\", 0, 0, 'a' },\n { \"help\", 0, 0, 'h' },\n { \"verbose\", 0, 0, 'v' },\n { \"version\", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n};", "parent": null, "children": [21, 24], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 19, "column": 2}}, {"id": 21, "type": "struct_specifier", "text": "struct option", "parent": 20, "children": [22, 23], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 20}}, {"id": 22, "type": "struct", "text": "struct", "parent": 21, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 13}}, {"id": 23, "type": "type_identifier", "text": "option", "parent": 21, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 20}}, {"id": 24, "type": "init_declarator", "text": "longopts[] =\n{\n { \"all\", 0, 0, 'a' },\n { \"help\", 0, 0, 'h' },\n { \"verbose\", 0, 0, 'v' },\n { \"version\", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n}", "parent": 20, "children": [25, 27, 28], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 19, "column": 1}}, {"id": 25, "type": "array_declarator", "text": "longopts[]", "parent": 24, "children": [26], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 31}}, {"id": 26, "type": "identifier", "text": "longopts", "parent": 25, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 29}}, {"id": 27, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 33}}, {"id": 28, "type": "initializer_list", "text": "{\n { \"all\", 0, 0, 'a' },\n { \"help\", 0, 0, 'h' },\n { \"verbose\", 0, 0, 'v' },\n { \"version\", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n}", "parent": 24, "children": [29, 37, 45, 53, 61], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 29, "type": "initializer_list", "text": "{ \"all\", 0, 0, 'a' }", "parent": 28, "children": [30, 31, 32, 33], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 22}}, {"id": 30, "type": "string_literal", "text": "\"all\"", "parent": 29, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 9}}, {"id": 31, "type": "number_literal", "text": "0", "parent": 29, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 32, "type": "number_literal", "text": "0", "parent": 29, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 15}}, {"id": 33, "type": "char_literal", "text": "'a'", "parent": 29, "children": [34, 35, 36], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 20}}, {"id": 34, "type": "'", "text": "'", "parent": 33, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 35, "type": "character", "text": "a", "parent": 33, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 36, "type": "'", "text": "'", "parent": 33, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 20}}, {"id": 37, "type": "initializer_list", "text": "{ \"help\", 0, 0, 'h' }", "parent": 28, "children": [38, 39, 40, 41], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 23}}, {"id": 38, "type": "string_literal", "text": "\"help\"", "parent": 37, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 39, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 40, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 16}}, {"id": 41, "type": "char_literal", "text": "'h'", "parent": 37, "children": [42, 43, 44], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 21}}, {"id": 42, "type": "'", "text": "'", "parent": 41, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 43, "type": "character", "text": "h", "parent": 41, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 44, "type": "'", "text": "'", "parent": 41, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 21}}, {"id": 45, "type": "initializer_list", "text": "{ \"verbose\", 0, 0, 'v' }", "parent": 28, "children": [46, 47, 48, 49], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 26}}, {"id": 46, "type": "string_literal", "text": "\"verbose\"", "parent": 45, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 13}}, {"id": 47, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 16}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 49, "type": "char_literal", "text": "'v'", "parent": 45, "children": [50, 51, 52], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 24}}, {"id": 50, "type": "'", "text": "'", "parent": 49, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 22}}, {"id": 51, "type": "character", "text": "v", "parent": 49, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 23}}, {"id": 52, "type": "'", "text": "'", "parent": 49, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 24}}, {"id": 53, "type": "initializer_list", "text": "{ \"version\", 0, 0, 'V' }", "parent": 28, "children": [54, 55, 56, 57], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 26}}, {"id": 54, "type": "string_literal", "text": "\"version\"", "parent": 53, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 13}}, {"id": 55, "type": "number_literal", "text": "0", "parent": 53, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 16}}, {"id": 56, "type": "number_literal", "text": "0", "parent": 53, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 19}}, {"id": 57, "type": "char_literal", "text": "'V'", "parent": 53, "children": [58, 59, 60], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 24}}, {"id": 58, "type": "'", "text": "'", "parent": 57, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 22}}, {"id": 59, "type": "character", "text": "V", "parent": 57, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 23}}, {"id": 60, "type": "'", "text": "'", "parent": 57, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 24}}, {"id": 61, "type": "initializer_list", "text": "{ NULL, 0, 0, 0 }", "parent": 28, "children": [62, 64, 65, 66], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 19}}, {"id": 62, "type": "null", "text": "NULL", "parent": 61, "children": [63], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 63, "type": "NULL", "text": "NULL", "parent": 62, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 64, "type": "number_literal", "text": "0", "parent": 61, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 11}}, {"id": 65, "type": "number_literal", "text": "0", "parent": 61, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 14}}, {"id": 66, "type": "number_literal", "text": "0", "parent": 61, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 17}}, {"id": 67, "type": "declaration", "text": "const char *usage_string = \"\\\nusage: %s [-hV]\\n\\\n %s -a [-v]\\n\\\n %s [-v] special ...\\n\\\n\";", "parent": null, "children": [68, 69], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 25, "column": 2}}, {"id": 68, "type": "primitive_type", "text": "char", "parent": 67, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 10}}, {"id": 69, "type": "init_declarator", "text": "*usage_string = \"\\\nusage: %s [-hV]\\n\\\n %s -a [-v]\\n\\\n %s [-v] special ...\\n\\\n\"", "parent": 67, "children": [70, 73, 74], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 25, "column": 1}}, {"id": 70, "type": "pointer_declarator", "text": "*usage_string", "parent": 69, "children": [71, 72], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 24}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 12}}, {"id": 72, "type": "identifier", "text": "usage_string", "parent": 70, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 24}}, {"id": 73, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 26}}, {"id": 74, "type": "string_literal", "text": "\"\\\nusage: %s [-hV]\\n\\\n %s -a [-v]\\n\\\n %s [-v] special ...\\n\\\n\"", "parent": 69, "children": [75, 76, 77, 78, 79, 80, 81], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 25, "column": 1}}, {"id": 75, "type": "escape_sequence", "text": "\\\n", "parent": 74, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 22, "column": 0}}, {"id": 76, "type": "escape_sequence", "text": "\\n", "parent": 74, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 17}}, {"id": 77, "type": "escape_sequence", "text": "\\\n", "parent": 74, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 23, "column": 0}}, {"id": 78, "type": "escape_sequence", "text": "\\n", "parent": 74, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 19}}, {"id": 79, "type": "escape_sequence", "text": "\\\n", "parent": 74, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 24, "column": 0}}, {"id": 80, "type": "escape_sequence", "text": "\\n", "parent": 74, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 28}}, {"id": 81, "type": "escape_sequence", "text": "\\\n", "parent": 74, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 25, "column": 0}}, {"id": 82, "type": "function_definition", "text": "static void\nusage (FILE *fp, int n)\n{\n fprintf (fp, usage_string, program_name, program_name, program_name);\n exit (n);\n}", "parent": null, "children": [83, 84], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 11}}, {"id": 84, "type": "function_declarator", "text": "usage (FILE *fp, int n)", "parent": 82, "children": [85, 86], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 23}}, {"id": 85, "type": "identifier", "text": "usage", "parent": 84, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 5}}, {"id": 86, "type": "parameter_list", "text": "(FILE *fp, int n)", "parent": 84, "children": [87, 92], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 23}}, {"id": 87, "type": "parameter_declaration", "text": "FILE *fp", "parent": 86, "children": [88, 89], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 15}}, {"id": 88, "type": "type_identifier", "text": "FILE", "parent": 87, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 11}}, {"id": 89, "type": "pointer_declarator", "text": "*fp", "parent": 87, "children": [90, 91], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 15}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 91, "type": "identifier", "text": "fp", "parent": 89, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 15}}, {"id": 92, "type": "parameter_declaration", "text": "int n", "parent": 86, "children": [93, 94], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 22}}, {"id": 93, "type": "primitive_type", "text": "int", "parent": 92, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 20}}, {"id": 94, "type": "identifier", "text": "n", "parent": 92, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 22}}, {"id": 95, "type": "call_expression", "text": "fprintf (fp, usage_string, program_name, program_name, program_name)", "parent": 82, "children": [96, 97], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 70}}, {"id": 96, "type": "identifier", "text": "fprintf", "parent": 95, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 97, "type": "argument_list", "text": "(fp, usage_string, program_name, program_name, program_name)", "parent": 95, "children": [98, 99, 100, 101, 102], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 70}}, {"id": 98, "type": "identifier", "text": "fp", "parent": 97, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 13}}, {"id": 99, "type": "identifier", "text": "usage_string", "parent": 97, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 27}}, {"id": 100, "type": "identifier", "text": "program_name", "parent": 97, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 41}}, {"id": 101, "type": "identifier", "text": "program_name", "parent": 97, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 55}}, {"id": 102, "type": "identifier", "text": "program_name", "parent": 97, "children": [], "start_point": {"row": 30, "column": 57}, "end_point": {"row": 30, "column": 69}}, {"id": 103, "type": "call_expression", "text": "exit (n)", "parent": 82, "children": [104, 105], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 10}}, {"id": 104, "type": "identifier", "text": "exit", "parent": 103, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 105, "type": "argument_list", "text": "(n)", "parent": 103, "children": [106], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 10}}, {"id": 106, "type": "identifier", "text": "n", "parent": 105, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 9}}, {"id": 107, "type": "function_definition", "text": "static int\nswap (const char *special)\n{\n int status;\n\n if (verbose)\n printf(\"%s on device %s\\n\", program_name, special);\n\n if (streq (program_name, \"swapon\"))\n status = swapon (special,0);\n else\n status = swapoff (special);\n\n if (status < 0)\n fprintf (stderr, \"%s: %s: %s\\n\", program_name, special, strerror (errno));\n\n return status;\n}", "parent": null, "children": [108, 109], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 108, "type": "primitive_type", "text": "int", "parent": 107, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 10}}, {"id": 109, "type": "function_declarator", "text": "swap (const char *special)", "parent": 107, "children": [110, 111], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 26}}, {"id": 110, "type": "identifier", "text": "swap", "parent": 109, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 4}}, {"id": 111, "type": "parameter_list", "text": "(const char *special)", "parent": 109, "children": [112], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 26}}, {"id": 112, "type": "parameter_declaration", "text": "const char *special", "parent": 111, "children": [113, 114], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 25}}, {"id": 113, "type": "primitive_type", "text": "char", "parent": 112, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 16}}, {"id": 114, "type": "pointer_declarator", "text": "*special", "parent": 112, "children": [115, 116], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 25}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 18}}, {"id": 116, "type": "identifier", "text": "special", "parent": 114, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 25}}, {"id": 117, "type": "declaration", "text": "int status;", "parent": 107, "children": [118, 119], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 13}}, {"id": 118, "type": "primitive_type", "text": "int", "parent": 117, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 5}}, {"id": 119, "type": "identifier", "text": "status", "parent": 117, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 12}}, {"id": 120, "type": "if_statement", "text": "if (verbose)\n printf(\"%s on device %s\\n\", program_name, special);", "parent": 107, "children": [121], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 40, "column": 55}}, {"id": 121, "type": "parenthesized_expression", "text": "(verbose)", "parent": 120, "children": [122], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 14}}, {"id": 122, "type": "identifier", "text": "verbose", "parent": 121, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 13}}, {"id": 123, "type": "call_expression", "text": "printf(\"%s on device %s\\n\", program_name, special)", "parent": 120, "children": [124, 125], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 54}}, {"id": 124, "type": "identifier", "text": "printf", "parent": 123, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 10}}, {"id": 125, "type": "argument_list", "text": "(\"%s on device %s\\n\", program_name, special)", "parent": 123, "children": [126, 128, 129], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 54}}, {"id": 126, "type": "string_literal", "text": "\"%s on device %s\\n\"", "parent": 125, "children": [127], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 30}}, {"id": 127, "type": "escape_sequence", "text": "\\n", "parent": 126, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 29}}, {"id": 128, "type": "identifier", "text": "program_name", "parent": 125, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 44}}, {"id": 129, "type": "identifier", "text": "special", "parent": 125, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 53}}, {"id": 130, "type": "if_statement", "text": "if (streq (program_name, \"swapon\"))\n status = swapon (special,0);\n else\n status = swapoff (special);", "parent": 107, "children": [131, 145], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 45, "column": 31}}, {"id": 131, "type": "parenthesized_expression", "text": "(streq (program_name, \"swapon\"))", "parent": 130, "children": [132], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 37}}, {"id": 132, "type": "call_expression", "text": "streq (program_name, \"swapon\")", "parent": 131, "children": [133, 134], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 36}}, {"id": 133, "type": "identifier", "text": "streq", "parent": 132, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 11}}, {"id": 134, "type": "argument_list", "text": "(program_name, \"swapon\")", "parent": 132, "children": [135, 136], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 36}}, {"id": 135, "type": "identifier", "text": "program_name", "parent": 134, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 25}}, {"id": 136, "type": "string_literal", "text": "\"swapon\"", "parent": 134, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 35}}, {"id": 137, "type": "assignment_expression", "text": "status = swapon (special,0)", "parent": 130, "children": [138, 139, 140], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 31}}, {"id": 138, "type": "identifier", "text": "status", "parent": 137, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 10}}, {"id": 139, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 12}}, {"id": 140, "type": "call_expression", "text": "swapon (special,0)", "parent": 137, "children": [141, 142], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 31}}, {"id": 141, "type": "identifier", "text": "swapon", "parent": 140, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 19}}, {"id": 142, "type": "argument_list", "text": "(special,0)", "parent": 140, "children": [143, 144], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 31}}, {"id": 143, "type": "identifier", "text": "special", "parent": 142, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 28}}, {"id": 144, "type": "number_literal", "text": "0", "parent": 142, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 30}}, {"id": 145, "type": "else_clause", "text": "else\n status = swapoff (special);", "parent": 130, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 45, "column": 31}}, {"id": 146, "type": "assignment_expression", "text": "status = swapoff (special)", "parent": 145, "children": [147, 148, 149], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 30}}, {"id": 147, "type": "identifier", "text": "status", "parent": 146, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 10}}, {"id": 148, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 12}}, {"id": 149, "type": "call_expression", "text": "swapoff (special)", "parent": 146, "children": [150, 151], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 30}}, {"id": 150, "type": "identifier", "text": "swapoff", "parent": 149, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 20}}, {"id": 151, "type": "argument_list", "text": "(special)", "parent": 149, "children": [152], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 30}}, {"id": 152, "type": "identifier", "text": "special", "parent": 151, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 29}}, {"id": 153, "type": "if_statement", "text": "if (status < 0)\n fprintf (stderr, \"%s: %s: %s\\n\", program_name, special, strerror (errno));", "parent": 107, "children": [154], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 48, "column": 78}}, {"id": 154, "type": "parenthesized_expression", "text": "(status < 0)", "parent": 153, "children": [155], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 17}}, {"id": 155, "type": "binary_expression", "text": "status < 0", "parent": 154, "children": [156, 157, 158], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 16}}, {"id": 156, "type": "identifier", "text": "status", "parent": 155, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 12}}, {"id": 157, "type": "<", "text": "<", "parent": 155, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 14}}, {"id": 158, "type": "number_literal", "text": "0", "parent": 155, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 159, "type": "call_expression", "text": "fprintf (stderr, \"%s: %s: %s\\n\", program_name, special, strerror (errno))", "parent": 153, "children": [160, 161], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 77}}, {"id": 160, "type": "identifier", "text": "fprintf", "parent": 159, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 11}}, {"id": 161, "type": "argument_list", "text": "(stderr, \"%s: %s: %s\\n\", program_name, special, strerror (errno))", "parent": 159, "children": [162, 163, 165, 166, 167], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 77}}, {"id": 162, "type": "identifier", "text": "stderr", "parent": 161, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 19}}, {"id": 163, "type": "string_literal", "text": "\"%s: %s: %s\\n\"", "parent": 161, "children": [164], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 35}}, {"id": 164, "type": "escape_sequence", "text": "\\n", "parent": 163, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 34}}, {"id": 165, "type": "identifier", "text": "program_name", "parent": 161, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 49}}, {"id": 166, "type": "identifier", "text": "special", "parent": 161, "children": [], "start_point": {"row": 48, "column": 51}, "end_point": {"row": 48, "column": 58}}, {"id": 167, "type": "call_expression", "text": "strerror (errno)", "parent": 161, "children": [168, 169], "start_point": {"row": 48, "column": 60}, "end_point": {"row": 48, "column": 76}}, {"id": 168, "type": "identifier", "text": "strerror", "parent": 167, "children": [], "start_point": {"row": 48, "column": 60}, "end_point": {"row": 48, "column": 68}}, {"id": 169, "type": "argument_list", "text": "(errno)", "parent": 167, "children": [170], "start_point": {"row": 48, "column": 69}, "end_point": {"row": 48, "column": 76}}, {"id": 170, "type": "identifier", "text": "errno", "parent": 169, "children": [], "start_point": {"row": 48, "column": 70}, "end_point": {"row": 48, "column": 75}}, {"id": 171, "type": "return_statement", "text": "return status;", "parent": 107, "children": [172], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 16}}, {"id": 172, "type": "identifier", "text": "status", "parent": 171, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 15}}, {"id": 173, "type": "function_definition", "text": "int\nmain (int argc, char *argv[])\n{\n struct fstab *fstab;\n int status;\n int all = 0;\n int c;\n\n if (strrchr (argv[0], '/') != NULL)\n program_name = strrchr (argv[0], '/') + 1;\n else\n program_name = argv[0];\n\n while ((c = getopt_long (argc, argv, \"ahvV\", longopts, NULL)) != EOF)\n switch (c)\n {\n case 'a':\t\t\t/* all */\n\t++all;\n\tbreak;\n case 'h':\t\t\t/* help */\n\tusage (stdout, 0);\n\tbreak;\n case 'v':\t\t\t/* be chatty */\n\t++verbose;\n\tbreak;\n case 'V':\t\t\t/* version */\n\tprintf (\"%s\\n\", version);\n\texit (0);\n case 0:\n\tbreak;\n case '?':\n default:\n\tusage (stderr, 1);\n }\n\n argv += optind;\n\n status = 0;\n\n if (all)\n {\n while ((fstab = getfsent()) != NULL)\n\tif (streq (fstab->fs_type, FSTAB_SW))\n\t status |= swap (fstab->fs_spec);\n }\n else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n\tstatus |= swap (*argv++);\n }\n return status;\n}", "parent": null, "children": [174, 175], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 174, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 3}}, {"id": 175, "type": "function_declarator", "text": "main (int argc, char *argv[])", "parent": 173, "children": [176, 177], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 29}}, {"id": 176, "type": "identifier", "text": "main", "parent": 175, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 177, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 175, "children": [178, 181], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 29}}, {"id": 178, "type": "parameter_declaration", "text": "int argc", "parent": 177, "children": [179, 180], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 14}}, {"id": 179, "type": "primitive_type", "text": "int", "parent": 178, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 9}}, {"id": 180, "type": "identifier", "text": "argc", "parent": 178, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 14}}, {"id": 181, "type": "parameter_declaration", "text": "char *argv[]", "parent": 177, "children": [182, 183], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 28}}, {"id": 182, "type": "primitive_type", "text": "char", "parent": 181, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 20}}, {"id": 183, "type": "pointer_declarator", "text": "*argv[]", "parent": 181, "children": [184, 185], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 28}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 185, "type": "array_declarator", "text": "argv[]", "parent": 183, "children": [186], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 28}}, {"id": 186, "type": "identifier", "text": "argv", "parent": 185, "children": [], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 26}}, {"id": 187, "type": "declaration", "text": "struct fstab *fstab;", "parent": 173, "children": [188, 191], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 22}}, {"id": 188, "type": "struct_specifier", "text": "struct fstab", "parent": 187, "children": [189, 190], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 14}}, {"id": 189, "type": "struct", "text": "struct", "parent": 188, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 8}}, {"id": 190, "type": "type_identifier", "text": "fstab", "parent": 188, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 14}}, {"id": 191, "type": "pointer_declarator", "text": "*fstab", "parent": 187, "children": [192, 193], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 21}}, {"id": 192, "type": "*", "text": "*", "parent": 191, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 16}}, {"id": 193, "type": "identifier", "text": "fstab", "parent": 191, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 21}}, {"id": 194, "type": "declaration", "text": "int status;", "parent": 173, "children": [195, 196], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 13}}, {"id": 195, "type": "primitive_type", "text": "int", "parent": 194, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 5}}, {"id": 196, "type": "identifier", "text": "status", "parent": 194, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 12}}, {"id": 197, "type": "declaration", "text": "int all = 0;", "parent": 173, "children": [198, 199], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 14}}, {"id": 198, "type": "primitive_type", "text": "int", "parent": 197, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 5}}, {"id": 199, "type": "init_declarator", "text": "all = 0", "parent": 197, "children": [200, 201, 202], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 13}}, {"id": 200, "type": "identifier", "text": "all", "parent": 199, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 9}}, {"id": 201, "type": "=", "text": "=", "parent": 199, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 11}}, {"id": 202, "type": "number_literal", "text": "0", "parent": 199, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 203, "type": "declaration", "text": "int c;", "parent": 173, "children": [204, 205], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 8}}, {"id": 204, "type": "primitive_type", "text": "int", "parent": 203, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 5}}, {"id": 205, "type": "identifier", "text": "c", "parent": 203, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 7}}, {"id": 206, "type": "if_statement", "text": "if (strrchr (argv[0], '/') != NULL)\n program_name = strrchr (argv[0], '/') + 1;\n else\n program_name = argv[0];", "parent": 173, "children": [207, 238], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 64, "column": 27}}, {"id": 207, "type": "parenthesized_expression", "text": "(strrchr (argv[0], '/') != NULL)", "parent": 206, "children": [208], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 37}}, {"id": 208, "type": "binary_expression", "text": "strrchr (argv[0], '/') != NULL", "parent": 207, "children": [209, 219, 220], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 36}}, {"id": 209, "type": "call_expression", "text": "strrchr (argv[0], '/')", "parent": 208, "children": [210, 211], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 28}}, {"id": 210, "type": "identifier", "text": "strrchr", "parent": 209, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 13}}, {"id": 211, "type": "argument_list", "text": "(argv[0], '/')", "parent": 209, "children": [212, 215], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 28}}, {"id": 212, "type": "subscript_expression", "text": "argv[0]", "parent": 211, "children": [213, 214], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 22}}, {"id": 213, "type": "identifier", "text": "argv", "parent": 212, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 19}}, {"id": 214, "type": "number_literal", "text": "0", "parent": 212, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 215, "type": "char_literal", "text": "'/'", "parent": 211, "children": [216, 217, 218], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 27}}, {"id": 216, "type": "'", "text": "'", "parent": 215, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 25}}, {"id": 217, "type": "character", "text": "/", "parent": 215, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 26}}, {"id": 218, "type": "'", "text": "'", "parent": 215, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 27}}, {"id": 219, "type": "!=", "text": "!=", "parent": 208, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 31}}, {"id": 220, "type": "null", "text": "NULL", "parent": 208, "children": [221], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 36}}, {"id": 221, "type": "NULL", "text": "NULL", "parent": 220, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 36}}, {"id": 222, "type": "assignment_expression", "text": "program_name = strrchr (argv[0], '/') + 1", "parent": 206, "children": [223, 224, 225], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 45}}, {"id": 223, "type": "identifier", "text": "program_name", "parent": 222, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 16}}, {"id": 224, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 225, "type": "binary_expression", "text": "strrchr (argv[0], '/') + 1", "parent": 222, "children": [226, 236, 237], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 45}}, {"id": 226, "type": "call_expression", "text": "strrchr (argv[0], '/')", "parent": 225, "children": [227, 228], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 41}}, {"id": 227, "type": "identifier", "text": "strrchr", "parent": 226, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 26}}, {"id": 228, "type": "argument_list", "text": "(argv[0], '/')", "parent": 226, "children": [229, 232], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 41}}, {"id": 229, "type": "subscript_expression", "text": "argv[0]", "parent": 228, "children": [230, 231], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 35}}, {"id": 230, "type": "identifier", "text": "argv", "parent": 229, "children": [], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 32}}, {"id": 231, "type": "number_literal", "text": "0", "parent": 229, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 34}}, {"id": 232, "type": "char_literal", "text": "'/'", "parent": 228, "children": [233, 234, 235], "start_point": {"row": 62, "column": 37}, "end_point": {"row": 62, "column": 40}}, {"id": 233, "type": "'", "text": "'", "parent": 232, "children": [], "start_point": {"row": 62, "column": 37}, "end_point": {"row": 62, "column": 38}}, {"id": 234, "type": "character", "text": "/", "parent": 232, "children": [], "start_point": {"row": 62, "column": 38}, "end_point": {"row": 62, "column": 39}}, {"id": 235, "type": "'", "text": "'", "parent": 232, "children": [], "start_point": {"row": 62, "column": 39}, "end_point": {"row": 62, "column": 40}}, {"id": 236, "type": "+", "text": "+", "parent": 225, "children": [], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 43}}, {"id": 237, "type": "number_literal", "text": "1", "parent": 225, "children": [], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 45}}, {"id": 238, "type": "else_clause", "text": "else\n program_name = argv[0];", "parent": 206, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 64, "column": 27}}, {"id": 239, "type": "assignment_expression", "text": "program_name = argv[0]", "parent": 238, "children": [240, 241, 242], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 26}}, {"id": 240, "type": "identifier", "text": "program_name", "parent": 239, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 16}}, {"id": 241, "type": "=", "text": "=", "parent": 239, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 18}}, {"id": 242, "type": "subscript_expression", "text": "argv[0]", "parent": 239, "children": [243, 244], "start_point": {"row": 64, "column": 19}, "end_point": {"row": 64, "column": 26}}, {"id": 243, "type": "identifier", "text": "argv", "parent": 242, "children": [], "start_point": {"row": 64, "column": 19}, "end_point": {"row": 64, "column": 23}}, {"id": 244, "type": "number_literal", "text": "0", "parent": 242, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 25}}, {"id": 245, "type": "while_statement", "text": "while ((c = getopt_long (argc, argv, \"ahvV\", longopts, NULL)) != EOF)\n switch (c)\n {\n case 'a':\t\t\t/* all */\n\t++all;\n\tbreak;\n case 'h':\t\t\t/* help */\n\tusage (stdout, 0);\n\tbreak;\n case 'v':\t\t\t/* be chatty */\n\t++verbose;\n\tbreak;\n case 'V':\t\t\t/* version */\n\tprintf (\"%s\\n\", version);\n\texit (0);\n case 0:\n\tbreak;\n case '?':\n default:\n\tusage (stderr, 1);\n }", "parent": 173, "children": [246, 263], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 86, "column": 7}}, {"id": 246, "type": "parenthesized_expression", "text": "((c = getopt_long (argc, argv, \"ahvV\", longopts, NULL)) != EOF)", "parent": 245, "children": [247], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 71}}, {"id": 247, "type": "binary_expression", "text": "(c = getopt_long (argc, argv, \"ahvV\", longopts, NULL)) != EOF", "parent": 246, "children": [248, 261, 262], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 70}}, {"id": 248, "type": "parenthesized_expression", "text": "(c = getopt_long (argc, argv, \"ahvV\", longopts, NULL))", "parent": 247, "children": [249], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 63}}, {"id": 249, "type": "assignment_expression", "text": "c = getopt_long (argc, argv, \"ahvV\", longopts, NULL)", "parent": 248, "children": [250, 251, 252], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 62}}, {"id": 250, "type": "identifier", "text": "c", "parent": 249, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 251, "type": "=", "text": "=", "parent": 249, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 252, "type": "call_expression", "text": "getopt_long (argc, argv, \"ahvV\", longopts, NULL)", "parent": 249, "children": [253, 254], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 62}}, {"id": 253, "type": "identifier", "text": "getopt_long", "parent": 252, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 25}}, {"id": 254, "type": "argument_list", "text": "(argc, argv, \"ahvV\", longopts, NULL)", "parent": 252, "children": [255, 256, 257, 258, 259], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 62}}, {"id": 255, "type": "identifier", "text": "argc", "parent": 254, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 31}}, {"id": 256, "type": "identifier", "text": "argv", "parent": 254, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 37}}, {"id": 257, "type": "string_literal", "text": "\"ahvV\"", "parent": 254, "children": [], "start_point": {"row": 66, "column": 39}, "end_point": {"row": 66, "column": 45}}, {"id": 258, "type": "identifier", "text": "longopts", "parent": 254, "children": [], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 55}}, {"id": 259, "type": "null", "text": "NULL", "parent": 254, "children": [260], "start_point": {"row": 66, "column": 57}, "end_point": {"row": 66, "column": 61}}, {"id": 260, "type": "NULL", "text": "NULL", "parent": 259, "children": [], "start_point": {"row": 66, "column": 57}, "end_point": {"row": 66, "column": 61}}, {"id": 261, "type": "!=", "text": "!=", "parent": 247, "children": [], "start_point": {"row": 66, "column": 64}, "end_point": {"row": 66, "column": 66}}, {"id": 262, "type": "identifier", "text": "EOF", "parent": 247, "children": [], "start_point": {"row": 66, "column": 67}, "end_point": {"row": 66, "column": 70}}, {"id": 263, "type": "switch_statement", "text": "switch (c)\n {\n case 'a':\t\t\t/* all */\n\t++all;\n\tbreak;\n case 'h':\t\t\t/* help */\n\tusage (stdout, 0);\n\tbreak;\n case 'v':\t\t\t/* be chatty */\n\t++verbose;\n\tbreak;\n case 'V':\t\t\t/* version */\n\tprintf (\"%s\\n\", version);\n\texit (0);\n case 0:\n\tbreak;\n case '?':\n default:\n\tusage (stderr, 1);\n }", "parent": 245, "children": [264, 265], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 86, "column": 7}}, {"id": 264, "type": "switch", "text": "switch", "parent": 263, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 10}}, {"id": 265, "type": "parenthesized_expression", "text": "(c)", "parent": 263, "children": [266], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 14}}, {"id": 266, "type": "identifier", "text": "c", "parent": 265, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 13}}, {"id": 267, "type": "case_statement", "text": "case 'a':\t\t\t/* all */\n\t++all;\n\tbreak;", "parent": 263, "children": [268, 269, 276], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 71, "column": 7}}, {"id": 268, "type": "case", "text": "case", "parent": 267, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 10}}, {"id": 269, "type": "char_literal", "text": "'a'", "parent": 267, "children": [270, 271, 272], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 14}}, {"id": 270, "type": "'", "text": "'", "parent": 269, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 12}}, {"id": 271, "type": "character", "text": "a", "parent": 269, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 13}}, {"id": 272, "type": "'", "text": "'", "parent": 269, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 14}}, {"id": 273, "type": "update_expression", "text": "++all", "parent": 267, "children": [274, 275], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 6}}, {"id": 274, "type": "++", "text": "++", "parent": 273, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 3}}, {"id": 275, "type": "identifier", "text": "all", "parent": 273, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 6}}, {"id": 276, "type": "break_statement", "text": "break;", "parent": 267, "children": [277], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 7}}, {"id": 277, "type": "break", "text": "break", "parent": 276, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 6}}, {"id": 278, "type": "case_statement", "text": "case 'h':\t\t\t/* help */\n\tusage (stdout, 0);\n\tbreak;", "parent": 263, "children": [279, 280, 289], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 74, "column": 7}}, {"id": 279, "type": "case", "text": "case", "parent": 278, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 10}}, {"id": 280, "type": "char_literal", "text": "'h'", "parent": 278, "children": [281, 282, 283], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 14}}, {"id": 281, "type": "'", "text": "'", "parent": 280, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 12}}, {"id": 282, "type": "character", "text": "h", "parent": 280, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 13}}, {"id": 283, "type": "'", "text": "'", "parent": 280, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 14}}, {"id": 284, "type": "call_expression", "text": "usage (stdout, 0)", "parent": 278, "children": [285, 286], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 18}}, {"id": 285, "type": "identifier", "text": "usage", "parent": 284, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 6}}, {"id": 286, "type": "argument_list", "text": "(stdout, 0)", "parent": 284, "children": [287, 288], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 18}}, {"id": 287, "type": "identifier", "text": "stdout", "parent": 286, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 14}}, {"id": 288, "type": "number_literal", "text": "0", "parent": 286, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 17}}, {"id": 289, "type": "break_statement", "text": "break;", "parent": 278, "children": [290], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 7}}, {"id": 290, "type": "break", "text": "break", "parent": 289, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 6}}, {"id": 291, "type": "case_statement", "text": "case 'v':\t\t\t/* be chatty */\n\t++verbose;\n\tbreak;", "parent": 263, "children": [292, 293, 300], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 77, "column": 7}}, {"id": 292, "type": "case", "text": "case", "parent": 291, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 10}}, {"id": 293, "type": "char_literal", "text": "'v'", "parent": 291, "children": [294, 295, 296], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 14}}, {"id": 294, "type": "'", "text": "'", "parent": 293, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 12}}, {"id": 295, "type": "character", "text": "v", "parent": 293, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 13}}, {"id": 296, "type": "'", "text": "'", "parent": 293, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 14}}, {"id": 297, "type": "update_expression", "text": "++verbose", "parent": 291, "children": [298, 299], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 10}}, {"id": 298, "type": "++", "text": "++", "parent": 297, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 3}}, {"id": 299, "type": "identifier", "text": "verbose", "parent": 297, "children": [], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 10}}, {"id": 300, "type": "break_statement", "text": "break;", "parent": 291, "children": [301], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 7}}, {"id": 301, "type": "break", "text": "break", "parent": 300, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 6}}, {"id": 302, "type": "case_statement", "text": "case 'V':\t\t\t/* version */\n\tprintf (\"%s\\n\", version);\n\texit (0);", "parent": 263, "children": [303, 304], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 80, "column": 10}}, {"id": 303, "type": "case", "text": "case", "parent": 302, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 10}}, {"id": 304, "type": "char_literal", "text": "'V'", "parent": 302, "children": [305, 306, 307], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 14}}, {"id": 305, "type": "'", "text": "'", "parent": 304, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 12}}, {"id": 306, "type": "character", "text": "V", "parent": 304, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 13}}, {"id": 307, "type": "'", "text": "'", "parent": 304, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 14}}, {"id": 308, "type": "call_expression", "text": "printf (\"%s\\n\", version)", "parent": 302, "children": [309, 310], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 25}}, {"id": 309, "type": "identifier", "text": "printf", "parent": 308, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 7}}, {"id": 310, "type": "argument_list", "text": "(\"%s\\n\", version)", "parent": 308, "children": [311, 313], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 25}}, {"id": 311, "type": "string_literal", "text": "\"%s\\n\"", "parent": 310, "children": [312], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 15}}, {"id": 312, "type": "escape_sequence", "text": "\\n", "parent": 311, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 14}}, {"id": 313, "type": "identifier", "text": "version", "parent": 310, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 24}}, {"id": 314, "type": "call_expression", "text": "exit (0)", "parent": 302, "children": [315, 316], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 9}}, {"id": 315, "type": "identifier", "text": "exit", "parent": 314, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 316, "type": "argument_list", "text": "(0)", "parent": 314, "children": [317], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 9}}, {"id": 317, "type": "number_literal", "text": "0", "parent": 316, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 8}}, {"id": 318, "type": "case_statement", "text": "case 0:\n\tbreak;", "parent": 263, "children": [319, 320, 321], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 82, "column": 7}}, {"id": 319, "type": "case", "text": "case", "parent": 318, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 10}}, {"id": 320, "type": "number_literal", "text": "0", "parent": 318, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 12}}, {"id": 321, "type": "break_statement", "text": "break;", "parent": 318, "children": [322], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 7}}, {"id": 322, "type": "break", "text": "break", "parent": 321, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 6}}, {"id": 323, "type": "case_statement", "text": "case '?':", "parent": 263, "children": [324, 325], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 15}}, {"id": 324, "type": "case", "text": "case", "parent": 323, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 10}}, {"id": 325, "type": "char_literal", "text": "'?'", "parent": 323, "children": [326, 327, 328], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 14}}, {"id": 326, "type": "'", "text": "'", "parent": 325, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 12}}, {"id": 327, "type": "character", "text": "?", "parent": 325, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 328, "type": "'", "text": "'", "parent": 325, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 14}}, {"id": 329, "type": "case_statement", "text": "default:\n\tusage (stderr, 1);", "parent": 263, "children": [330], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 85, "column": 19}}, {"id": 330, "type": "default", "text": "default", "parent": 329, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 13}}, {"id": 331, "type": "call_expression", "text": "usage (stderr, 1)", "parent": 329, "children": [332, 333], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 18}}, {"id": 332, "type": "identifier", "text": "usage", "parent": 331, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 6}}, {"id": 333, "type": "argument_list", "text": "(stderr, 1)", "parent": 331, "children": [334, 335], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 18}}, {"id": 334, "type": "identifier", "text": "stderr", "parent": 333, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 14}}, {"id": 335, "type": "number_literal", "text": "1", "parent": 333, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 17}}, {"id": 336, "type": "assignment_expression", "text": "argv += optind", "parent": 173, "children": [337, 338, 339], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 16}}, {"id": 337, "type": "identifier", "text": "argv", "parent": 336, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 6}}, {"id": 338, "type": "+=", "text": "+=", "parent": 336, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 9}}, {"id": 339, "type": "identifier", "text": "optind", "parent": 336, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 16}}, {"id": 340, "type": "assignment_expression", "text": "status = 0", "parent": 173, "children": [341, 342, 343], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 12}}, {"id": 341, "type": "identifier", "text": "status", "parent": 340, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 8}}, {"id": 342, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 10}}, {"id": 343, "type": "number_literal", "text": "0", "parent": 340, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 12}}, {"id": 344, "type": "if_statement", "text": "if (all)\n {\n while ((fstab = getfsent()) != NULL)\n\tif (streq (fstab->fs_type, FSTAB_SW))\n\t status |= swap (fstab->fs_spec);\n }\n else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n\tstatus |= swap (*argv++);\n }", "parent": 173, "children": [345, 378], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 106, "column": 5}}, {"id": 345, "type": "parenthesized_expression", "text": "(all)", "parent": 344, "children": [346], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 10}}, {"id": 346, "type": "identifier", "text": "all", "parent": 345, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 9}}, {"id": 347, "type": "while_statement", "text": "while ((fstab = getfsent()) != NULL)\n\tif (streq (fstab->fs_type, FSTAB_SW))\n\t status |= swap (fstab->fs_spec);", "parent": 344, "children": [348, 360], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 96, "column": 35}}, {"id": 348, "type": "parenthesized_expression", "text": "((fstab = getfsent()) != NULL)", "parent": 347, "children": [349], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 42}}, {"id": 349, "type": "binary_expression", "text": "(fstab = getfsent()) != NULL", "parent": 348, "children": [350, 357, 358], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 41}}, {"id": 350, "type": "parenthesized_expression", "text": "(fstab = getfsent())", "parent": 349, "children": [351], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 33}}, {"id": 351, "type": "assignment_expression", "text": "fstab = getfsent()", "parent": 350, "children": [352, 353, 354], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 32}}, {"id": 352, "type": "identifier", "text": "fstab", "parent": 351, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 19}}, {"id": 353, "type": "=", "text": "=", "parent": 351, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 21}}, {"id": 354, "type": "call_expression", "text": "getfsent()", "parent": 351, "children": [355, 356], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 32}}, {"id": 355, "type": "identifier", "text": "getfsent", "parent": 354, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 30}}, {"id": 356, "type": "argument_list", "text": "()", "parent": 354, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 32}}, {"id": 357, "type": "!=", "text": "!=", "parent": 349, "children": [], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 36}}, {"id": 358, "type": "null", "text": "NULL", "parent": 349, "children": [359], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 41}}, {"id": 359, "type": "NULL", "text": "NULL", "parent": 358, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 41}}, {"id": 360, "type": "if_statement", "text": "if (streq (fstab->fs_type, FSTAB_SW))\n\t status |= swap (fstab->fs_spec);", "parent": 347, "children": [361], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 96, "column": 35}}, {"id": 361, "type": "parenthesized_expression", "text": "(streq (fstab->fs_type, FSTAB_SW))", "parent": 360, "children": [362], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 38}}, {"id": 362, "type": "call_expression", "text": "streq (fstab->fs_type, FSTAB_SW)", "parent": 361, "children": [363, 364], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 37}}, {"id": 363, "type": "identifier", "text": "streq", "parent": 362, "children": [], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 10}}, {"id": 364, "type": "argument_list", "text": "(fstab->fs_type, FSTAB_SW)", "parent": 362, "children": [365, 368], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 37}}, {"id": 365, "type": "field_expression", "text": "fstab->fs_type", "parent": 364, "children": [366, 367], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 26}}, {"id": 366, "type": "identifier", "text": "fstab", "parent": 365, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 17}}, {"id": 367, "type": "field_identifier", "text": "fs_type", "parent": 365, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 26}}, {"id": 368, "type": "identifier", "text": "FSTAB_SW", "parent": 364, "children": [], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 36}}, {"id": 369, "type": "assignment_expression", "text": "status |= swap (fstab->fs_spec)", "parent": 360, "children": [370, 371, 372], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 34}}, {"id": 370, "type": "identifier", "text": "status", "parent": 369, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 9}}, {"id": 371, "type": "|=", "text": "|=", "parent": 369, "children": [], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 12}}, {"id": 372, "type": "call_expression", "text": "swap (fstab->fs_spec)", "parent": 369, "children": [373, 374], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 34}}, {"id": 373, "type": "identifier", "text": "swap", "parent": 372, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 17}}, {"id": 374, "type": "argument_list", "text": "(fstab->fs_spec)", "parent": 372, "children": [375], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 34}}, {"id": 375, "type": "field_expression", "text": "fstab->fs_spec", "parent": 374, "children": [376, 377], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 33}}, {"id": 376, "type": "identifier", "text": "fstab", "parent": 375, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 24}}, {"id": 377, "type": "field_identifier", "text": "fs_spec", "parent": 375, "children": [], "start_point": {"row": 96, "column": 26}, "end_point": {"row": 96, "column": 33}}, {"id": 378, "type": "else_clause", "text": "else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n\tstatus |= swap (*argv++);\n }", "parent": 344, "children": [379], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 106, "column": 5}}, {"id": 379, "type": "if_statement", "text": "if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n\tstatus |= swap (*argv++);\n }", "parent": 378, "children": [380, 393], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 106, "column": 5}}, {"id": 380, "type": "parenthesized_expression", "text": "(*argv == NULL)", "parent": 379, "children": [381], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 25}}, {"id": 381, "type": "binary_expression", "text": "*argv == NULL", "parent": 380, "children": [382, 385, 386], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 24}}, {"id": 382, "type": "pointer_expression", "text": "*argv", "parent": 381, "children": [383, 384], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 16}}, {"id": 383, "type": "*", "text": "*", "parent": 382, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 12}}, {"id": 384, "type": "identifier", "text": "argv", "parent": 382, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 16}}, {"id": 385, "type": "==", "text": "==", "parent": 381, "children": [], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 19}}, {"id": 386, "type": "null", "text": "NULL", "parent": 381, "children": [387], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 24}}, {"id": 387, "type": "NULL", "text": "NULL", "parent": 386, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 24}}, {"id": 388, "type": "call_expression", "text": "usage (stderr, 2)", "parent": 379, "children": [389, 390], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 23}}, {"id": 389, "type": "identifier", "text": "usage", "parent": 388, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 11}}, {"id": 390, "type": "argument_list", "text": "(stderr, 2)", "parent": 388, "children": [391, 392], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 23}}, {"id": 391, "type": "identifier", "text": "stderr", "parent": 390, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 19}}, {"id": 392, "type": "number_literal", "text": "2", "parent": 390, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 22}}, {"id": 393, "type": "else_clause", "text": "else\n {\n while (*argv != NULL)\n\tstatus |= swap (*argv++);\n }", "parent": 379, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 106, "column": 5}}, {"id": 394, "type": "while_statement", "text": "while (*argv != NULL)\n\tstatus |= swap (*argv++);", "parent": 393, "children": [395], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 105, "column": 26}}, {"id": 395, "type": "parenthesized_expression", "text": "(*argv != NULL)", "parent": 394, "children": [396], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 27}}, {"id": 396, "type": "binary_expression", "text": "*argv != NULL", "parent": 395, "children": [397, 400, 401], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 26}}, {"id": 397, "type": "pointer_expression", "text": "*argv", "parent": 396, "children": [398, 399], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 18}}, {"id": 398, "type": "*", "text": "*", "parent": 397, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 14}}, {"id": 399, "type": "identifier", "text": "argv", "parent": 397, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 18}}, {"id": 400, "type": "!=", "text": "!=", "parent": 396, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 21}}, {"id": 401, "type": "null", "text": "NULL", "parent": 396, "children": [402], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 26}}, {"id": 402, "type": "NULL", "text": "NULL", "parent": 401, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 26}}, {"id": 403, "type": "assignment_expression", "text": "status |= swap (*argv++)", "parent": 394, "children": [404, 405, 406], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 25}}, {"id": 404, "type": "identifier", "text": "status", "parent": 403, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 7}}, {"id": 405, "type": "|=", "text": "|=", "parent": 403, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 10}}, {"id": 406, "type": "call_expression", "text": "swap (*argv++)", "parent": 403, "children": [407, 408], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 25}}, {"id": 407, "type": "identifier", "text": "swap", "parent": 406, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 15}}, {"id": 408, "type": "argument_list", "text": "(*argv++)", "parent": 406, "children": [409], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 25}}, {"id": 409, "type": "pointer_expression", "text": "*argv++", "parent": 408, "children": [410, 411], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 24}}, {"id": 410, "type": "*", "text": "*", "parent": 409, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 18}}, {"id": 411, "type": "update_expression", "text": "argv++", "parent": 409, "children": [412, 413], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 24}}, {"id": 412, "type": "identifier", "text": "argv", "parent": 411, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 22}}, {"id": 413, "type": "++", "text": "++", "parent": 411, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 24}}, {"id": 414, "type": "return_statement", "text": "return status;", "parent": 173, "children": [415], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 16}}, {"id": 415, "type": "identifier", "text": "status", "parent": 414, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 15}}]}, "node_categories": {"declarations": {"functions": [82, 84, 107, 109, 173, 175], "variables": [3, 9, 15, 20, 67, 87, 92, 112, 117, 178, 181, 187, 194, 197, 203], "classes": [10, 21, 22, 188, 189], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [95, 103, 121, 123, 131, 132, 140, 149, 154, 155, 159, 167, 207, 208, 209, 212, 225, 226, 229, 242, 246, 247, 248, 252, 265, 273, 284, 297, 308, 314, 331, 345, 348, 349, 350, 354, 361, 362, 365, 372, 375, 380, 381, 382, 388, 395, 396, 397, 406, 409, 411], "assignments": [137, 146, 222, 239, 249, 336, 340, 351, 369, 403], "loops": [245, 347, 394], "conditionals": [6, 14, 19, 23, 26, 72, 85, 88, 91, 94, 96, 98, 99, 100, 101, 102, 104, 106, 110, 116, 119, 120, 122, 124, 128, 129, 130, 133, 135, 138, 141, 143, 147, 150, 152, 153, 156, 160, 162, 165, 166, 168, 170, 172, 176, 180, 186, 190, 193, 196, 200, 205, 206, 210, 213, 223, 227, 230, 240, 243, 250, 253, 255, 256, 258, 262, 263, 264, 266, 267, 268, 275, 278, 279, 285, 287, 291, 292, 299, 302, 303, 309, 313, 315, 318, 319, 323, 324, 329, 332, 334, 337, 339, 341, 344, 346, 352, 355, 360, 363, 366, 367, 368, 370, 373, 376, 377, 379, 384, 389, 391, 399, 404, 407, 412, 415], "returns": [171, 414], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 8, 30, 31, 32, 33, 38, 39, 40, 41, 46, 47, 48, 49, 54, 55, 56, 57, 64, 65, 66, 74, 126, 136, 144, 158, 163, 202, 214, 215, 231, 232, 237, 244, 257, 269, 280, 288, 293, 304, 311, 317, 320, 325, 335, 343, 392], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 82, "universal_type": "function", "name": "usage", "text_snippet": "static void\nusage (FILE *fp, int n)\n{\n fprintf (fp, usage_string, program_name, program_name, progr"}, {"node_id": 84, "universal_type": "function", "name": "n)", "text_snippet": "usage (FILE *fp, int n)"}, {"node_id": 107, "universal_type": "function", "name": "swap", "text_snippet": "static int\nswap (const char *special)\n{\n int status;\n\n if (verbose)\n printf(\"%s on device %s\\n\""}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "swap (const char *special)"}, {"node_id": 173, "universal_type": "function", "name": "main", "text_snippet": "int\nmain (int argc, char *argv[])\n{\n struct fstab *fstab;\n int status;\n int all = 0;\n int c;\n\n "}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "main (int argc, char *argv[])"}], "class_declarations": [{"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 21, "universal_type": "class", "name": "option", "text_snippet": "struct option"}, {"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 188, "universal_type": "class", "name": "fstab", "text_snippet": "struct fstab"}, {"node_id": 189, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"sundries.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/*\n * A swapon(8)/swapoff(8) for Linux 0.99.\n * swapon.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp\n */\n\n#include \"sundries.h\"\n\n/* Nonzero for chatty (-v). This is a nonstandard flag (not in BSD). */\nint verbose = 0;\n\nextern char version[];\nstatic char *program_name;\nstatic struct option longopts[] =\n{\n { \"all\", 0, 0, 'a' },\n { \"help\", 0, 0, 'h' },\n { \"verbose\", 0, 0, 'v' },\n { \"version\", 0, 0, 'V' },\n { NULL, 0, 0, 0 }\n};\n\nconst char *usage_string = \"\\\nusage: %s [-hV]\\n\\\n %s -a [-v]\\n\\\n %s [-v] special ...\\n\\\n\";\n\nstatic void\nusage (FILE *fp, int n)\n{\n fprintf (fp, usage_string, program_name, program_name, program_name);\n exit (n);\n}\n\nstatic int\nswap (const char *special)\n{\n int status;\n\n if (verbose)\n printf(\"%s on device %s\\n\", program_name, special);\n\n if (streq (program_name, \"swapon\"))\n status = swapon (special,0);\n else\n status = swapoff (special);\n\n if (status < 0)\n fprintf (stderr, \"%s: %s: %s\\n\", program_name, special, strerror (errno));\n\n return status;\n}\n\nint\nmain (int argc, char *argv[])\n{\n struct fstab *fstab;\n int status;\n int all = 0;\n int c;\n\n if (strrchr (argv[0], '/') != NULL)\n program_name = strrchr (argv[0], '/') + 1;\n else\n program_name = argv[0];\n\n while ((c = getopt_long (argc, argv, \"ahvV\", longopts, NULL)) != EOF)\n switch (c)\n {\n case 'a':\t\t\t/* all */\n\t++all;\n\tbreak;\n case 'h':\t\t\t/* help */\n\tusage (stdout, 0);\n\tbreak;\n case 'v':\t\t\t/* be chatty */\n\t++verbose;\n\tbreak;\n case 'V':\t\t\t/* version */\n\tprintf (\"%s\\n\", version);\n\texit (0);\n case 0:\n\tbreak;\n case '?':\n default:\n\tusage (stderr, 1);\n }\n\n argv += optind;\n\n status = 0;\n\n if (all)\n {\n while ((fstab = getfsent()) != NULL)\n\tif (streq (fstab->fs_type, FSTAB_SW))\n\t status |= swap (fstab->fs_spec);\n }\n else if (*argv == NULL)\n {\n usage (stderr, 2);\n }\n else\n {\n while (*argv != NULL)\n\tstatus |= swap (*argv++);\n }\n return status;\n}\n"}
80,448
c
/* * Copyright (C) 2007 The Android Open Source Project * * 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. */ /******************************************************************************* * * Filename: * --------- * mt_sco_afe_connection.c * * Project: * -------- * MT6797 Audio Driver Kernel Function * * Description: * ------------ * Audio register * * Author: * ------- * <NAME> * *------------------------------------------------------------------------------ * *******************************************************************************/ /***************************************************************************** * C O M P I L E R F L A G S *****************************************************************************/ /***************************************************************************** * E X T E R N A L R E F E R E N C E S *****************************************************************************/ #include "AudDrv_Common.h" #include "AudDrv_Def.h" #include "AudDrv_Afe.h" #include "AudDrv_Ana.h" #include "AudDrv_Clk.h" #include "mt_soc_digital_type.h" #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/device.h> #include <linux/slab.h> #include <linux/fs.h> #include <linux/completion.h> #include <linux/mm.h> #include <linux/delay.h> #include <linux/interrupt.h> #include <linux/dma-mapping.h> #include <linux/vmalloc.h> #include <linux/platform_device.h> #include <linux/miscdevice.h> #include <linux/wait.h> #include <linux/spinlock.h> #include <linux/sched.h> #include <linux/wakelock.h> #include <linux/semaphore.h> #include <linux/jiffies.h> #include <linux/proc_fs.h> #include <linux/string.h> #include <linux/mutex.h> #include <asm/uaccess.h> #include <asm/irq.h> #include <asm/io.h> #include <asm/div64.h> /*#include <linux/clk.h> #include <linux/delay.h> #include <linux/gpio.h> #include <linux/platform_device.h> #include <linux/slab.h> #include <sound/core.h> #include <sound/soc.h> #include <sound/soc-dapm.h> #include <sound/pcm.h> #include <sound/jack.h>*/ #ifdef DEBUG_AUDDRV #define PRINTK_AUDDRV(format, args...) printk(format, ##args) #else #define PRINTK_AUDDRV(format, args...) #endif /* mutex lock */ static DEFINE_MUTEX(afe_connection_mutex); /** * connection of register */ const uint32 mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output] = { AFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4, AFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9, AFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14, AFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19, AFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24, AFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29, }; /** * connection state of register */ static char mConnectionState[Soc_Aud_InterConnectionInput_Num_Input] [Soc_Aud_InterConnectionOutput_Num_Output] = { {0} }; static bool CheckBitsandReg(short regaddr, char bits) { if (regaddr <= 0 || bits < 0) { printk("regaddr = %x bits = %d\n", regaddr, bits); return false; } return true; } bool SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output) { /* printk("SetinputConnection ConnectionState = %d Input = %d Output = %d\n", ConnectionState, Input, Output); */ int connectReg = 0; switch (ConnectionState) { case Soc_Aud_InterCon_DisConnect: { /* printk("nConnectionState = %d\n", ConnectionState); */ if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection) == Soc_Aud_InterCon_Connection) { /* here to disconnect connect bits */ connectReg = mConnectionReg[Output]; if (CheckBitsandReg(connectReg, Input)) { Afe_Set_Reg(connectReg, 0, 1 << Input); mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection); } } if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift) == Soc_Aud_InterCon_ConnectionShift) { /* here to disconnect connect shift bits */ if (CheckBitsandReg(AFE_CONN_RS, Input)) { Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input); mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift); } } break; } case Soc_Aud_InterCon_Connection: { /* printk("nConnectionState = %d\n", ConnectionState); */ connectReg = mConnectionReg[Output]; if (CheckBitsandReg(connectReg, Input)) { Afe_Set_Reg(connectReg, 1 << Input, 1 << Input); mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection; } break; } case Soc_Aud_InterCon_ConnectionShift: { /* printk("nConnectionState = %d\n", ConnectionState); */ if (CheckBitsandReg(AFE_CONN_RS, Input)) { Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input); mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift; } break; } default: pr_err("no this state ConnectionState = %d\n", ConnectionState); break; } return true; } EXPORT_SYMBOL(SetConnectionState);
30.55
172
(translation_unit) "/*\n * Copyright (C) 2007 The Android Open Source Project\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 * Filename:\n * ---------\n * mt_sco_afe_connection.c\n *\n * Project:\n * --------\n * MT6797 Audio Driver Kernel Function\n *\n * Description:\n * ------------\n * Audio register\n *\n * Author:\n * -------\n * <NAME>\n *\n *------------------------------------------------------------------------------\n *\n *******************************************************************************/\n\n\n/*****************************************************************************\n * C O M P I L E R F L A G S\n *****************************************************************************/\n\n\n/*****************************************************************************\n * E X T E R N A L R E F E R E N C E S\n *****************************************************************************/\n\n#include "AudDrv_Common.h"\n#include "AudDrv_Def.h"\n#include "AudDrv_Afe.h"\n#include "AudDrv_Ana.h"\n#include "AudDrv_Clk.h"\n#include "mt_soc_digital_type.h"\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/init.h>\n#include <linux/device.h>\n#include <linux/slab.h>\n#include <linux/fs.h>\n#include <linux/completion.h>\n#include <linux/mm.h>\n#include <linux/delay.h>\n#include <linux/interrupt.h>\n#include <linux/dma-mapping.h>\n#include <linux/vmalloc.h>\n#include <linux/platform_device.h>\n#include <linux/miscdevice.h>\n#include <linux/wait.h>\n#include <linux/spinlock.h>\n#include <linux/sched.h>\n#include <linux/wakelock.h>\n#include <linux/semaphore.h>\n#include <linux/jiffies.h>\n#include <linux/proc_fs.h>\n#include <linux/string.h>\n#include <linux/mutex.h>\n#include <asm/uaccess.h>\n#include <asm/irq.h>\n#include <asm/io.h>\n#include <asm/div64.h>\n\n/*#include <linux/clk.h>\n#include <linux/delay.h>\n#include <linux/gpio.h>\n#include <linux/platform_device.h>\n#include <linux/slab.h>\n#include <sound/core.h>\n#include <sound/soc.h>\n#include <sound/soc-dapm.h>\n#include <sound/pcm.h>\n#include <sound/jack.h>*/\n\n#ifdef DEBUG_AUDDRV\n#define PRINTK_AUDDRV(format, args...) printk(format, ##args)\n#else\n#define PRINTK_AUDDRV(format, args...)\n#endif\n\n/* mutex lock */\nstatic DEFINE_MUTEX(afe_connection_mutex);\n\n/**\n* connection of register\n*/\nconst uint32 mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output] = {\n AFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n AFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n AFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n AFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n AFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n AFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n };\n\n/**\n* connection state of register\n*/\nstatic char mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n [Soc_Aud_InterConnectionOutput_Num_Output] = { {0} };\n\nstatic bool CheckBitsandReg(short regaddr, char bits)\n{\n if (regaddr <= 0 || bits < 0) {\n printk("regaddr = %x bits = %d\n", regaddr, bits);\n return false;\n }\n return true;\n}\n\nbool SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)\n{\n /* printk("SetinputConnection ConnectionState = %d\n Input = %d Output = %d\n", ConnectionState, Input, Output); */\n int connectReg = 0;\n\n switch (ConnectionState) {\n case Soc_Aud_InterCon_DisConnect:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }\n break;\n }\n case Soc_Aud_InterCon_Connection:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }\n break;\n }\n case Soc_Aud_InterCon_ConnectionShift:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }\n break;\n }\n default:\n pr_err("no this state ConnectionState = %d\n", ConnectionState);\n break;\n }\n\n return true;\n}\nEXPORT_SYMBOL(SetConnectionState);\n" (comment) "/*\n * Copyright (C) 2007 The Android Open Source Project\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 *\n * Filename:\n * ---------\n * mt_sco_afe_connection.c\n *\n * Project:\n * --------\n * MT6797 Audio Driver Kernel Function\n *\n * Description:\n * ------------\n * Audio register\n *\n * Author:\n * -------\n * <NAME>\n *\n *------------------------------------------------------------------------------\n *\n *******************************************************************************/" (comment) "/*****************************************************************************\n * C O M P I L E R F L A G S\n *****************************************************************************/" (comment) "/*****************************************************************************\n * E X T E R N A L R E F E R E N C E S\n *****************************************************************************/" (preproc_include) "#include "AudDrv_Common.h"\n" (#include) "#include" (string_literal) ""AudDrv_Common.h"" (") """ (string_content) "AudDrv_Common.h" (") """ (preproc_include) "#include "AudDrv_Def.h"\n" (#include) "#include" (string_literal) ""AudDrv_Def.h"" (") """ (string_content) "AudDrv_Def.h" (") """ (preproc_include) "#include "AudDrv_Afe.h"\n" (#include) "#include" (string_literal) ""AudDrv_Afe.h"" (") """ (string_content) "AudDrv_Afe.h" (") """ (preproc_include) "#include "AudDrv_Ana.h"\n" (#include) "#include" (string_literal) ""AudDrv_Ana.h"" (") """ (string_content) "AudDrv_Ana.h" (") """ (preproc_include) "#include "AudDrv_Clk.h"\n" (#include) "#include" (string_literal) ""AudDrv_Clk.h"" (") """ (string_content) "AudDrv_Clk.h" (") """ (preproc_include) "#include "mt_soc_digital_type.h"\n" (#include) "#include" (string_literal) ""mt_soc_digital_type.h"" (") """ (string_content) "mt_soc_digital_type.h" (") """ (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/device.h>\n" (#include) "#include" (system_lib_string) "<linux/device.h>" (preproc_include) "#include <linux/slab.h>\n" (#include) "#include" (system_lib_string) "<linux/slab.h>" (preproc_include) "#include <linux/fs.h>\n" (#include) "#include" (system_lib_string) "<linux/fs.h>" (preproc_include) "#include <linux/completion.h>\n" (#include) "#include" (system_lib_string) "<linux/completion.h>" (preproc_include) "#include <linux/mm.h>\n" (#include) "#include" (system_lib_string) "<linux/mm.h>" (preproc_include) "#include <linux/delay.h>\n" (#include) "#include" (system_lib_string) "<linux/delay.h>" (preproc_include) "#include <linux/interrupt.h>\n" (#include) "#include" (system_lib_string) "<linux/interrupt.h>" (preproc_include) "#include <linux/dma-mapping.h>\n" (#include) "#include" (system_lib_string) "<linux/dma-mapping.h>" (preproc_include) "#include <linux/vmalloc.h>\n" (#include) "#include" (system_lib_string) "<linux/vmalloc.h>" (preproc_include) "#include <linux/platform_device.h>\n" (#include) "#include" (system_lib_string) "<linux/platform_device.h>" (preproc_include) "#include <linux/miscdevice.h>\n" (#include) "#include" (system_lib_string) "<linux/miscdevice.h>" (preproc_include) "#include <linux/wait.h>\n" (#include) "#include" (system_lib_string) "<linux/wait.h>" (preproc_include) "#include <linux/spinlock.h>\n" (#include) "#include" (system_lib_string) "<linux/spinlock.h>" (preproc_include) "#include <linux/sched.h>\n" (#include) "#include" (system_lib_string) "<linux/sched.h>" (preproc_include) "#include <linux/wakelock.h>\n" (#include) "#include" (system_lib_string) "<linux/wakelock.h>" (preproc_include) "#include <linux/semaphore.h>\n" (#include) "#include" (system_lib_string) "<linux/semaphore.h>" (preproc_include) "#include <linux/jiffies.h>\n" (#include) "#include" (system_lib_string) "<linux/jiffies.h>" (preproc_include) "#include <linux/proc_fs.h>\n" (#include) "#include" (system_lib_string) "<linux/proc_fs.h>" (preproc_include) "#include <linux/string.h>\n" (#include) "#include" (system_lib_string) "<linux/string.h>" (preproc_include) "#include <linux/mutex.h>\n" (#include) "#include" (system_lib_string) "<linux/mutex.h>" (preproc_include) "#include <asm/uaccess.h>\n" (#include) "#include" (system_lib_string) "<asm/uaccess.h>" (preproc_include) "#include <asm/irq.h>\n" (#include) "#include" (system_lib_string) "<asm/irq.h>" (preproc_include) "#include <asm/io.h>\n" (#include) "#include" (system_lib_string) "<asm/io.h>" (preproc_include) "#include <asm/div64.h>\n" (#include) "#include" (system_lib_string) "<asm/div64.h>" (comment) "/*#include <linux/clk.h>\n#include <linux/delay.h>\n#include <linux/gpio.h>\n#include <linux/platform_device.h>\n#include <linux/slab.h>\n#include <sound/core.h>\n#include <sound/soc.h>\n#include <sound/soc-dapm.h>\n#include <sound/pcm.h>\n#include <sound/jack.h>*/" (preproc_ifdef) "#ifdef DEBUG_AUDDRV\n#define PRINTK_AUDDRV(format, args...) printk(format, ##args)\n#else\n#define PRINTK_AUDDRV(format, args...)\n#endif" (#ifdef) "#ifdef" (identifier) "DEBUG_AUDDRV" (preproc_function_def) "#define PRINTK_AUDDRV(format, args...) printk(format, ##args)\n" (#define) "#define" (identifier) "PRINTK_AUDDRV" (preproc_params) "(format, args...)" (() "(" (identifier) "format" (,) "," (identifier) "args" (ERROR) "..." (...) "..." ()) ")" (preproc_arg) "printk(format, ##args)" (preproc_else) "#else\n#define PRINTK_AUDDRV(format, args...)\n" (#else) "#else" (preproc_function_def) "#define PRINTK_AUDDRV(format, args...)\n" (#define) "#define" (identifier) "PRINTK_AUDDRV" (preproc_params) "(format, args...)" (() "(" (identifier) "format" (,) "," (identifier) "args" (ERROR) "..." (...) "..." ()) ")" (#endif) "#endif" (comment) "/* mutex lock */" (declaration) "static DEFINE_MUTEX(afe_connection_mutex);" (storage_class_specifier) "static" (static) "static" (type_identifier) "DEFINE_MUTEX" (parenthesized_declarator) "(afe_connection_mutex)" (() "(" (identifier) "afe_connection_mutex" ()) ")" (;) ";" (comment) "/**\n* connection of register\n*/" (declaration) "const uint32 mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output] = {\n AFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n AFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n AFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n AFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n AFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n AFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n };" (type_qualifier) "const" (const) "const" (type_identifier) "uint32" (init_declarator) "mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output] = {\n AFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n AFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n AFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n AFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n AFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n AFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n }" (array_declarator) "mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output]" (identifier) "mConnectionReg" ([) "[" (identifier) "Soc_Aud_InterConnectionOutput_Num_Output" (]) "]" (=) "=" (initializer_list) "{\n AFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n AFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n AFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n AFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n AFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n AFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n }" ({) "{" (identifier) "AFE_CONN0" (,) "," (identifier) "AFE_CONN1" (,) "," (identifier) "AFE_CONN2" (,) "," (identifier) "AFE_CONN3" (,) "," (identifier) "AFE_CONN4" (,) "," (identifier) "AFE_CONN5" (,) "," (identifier) "AFE_CONN6" (,) "," (identifier) "AFE_CONN7" (,) "," (identifier) "AFE_CONN8" (,) "," (identifier) "AFE_CONN9" (,) "," (identifier) "AFE_CONN10" (,) "," (identifier) "AFE_CONN11" (,) "," (identifier) "AFE_CONN12" (,) "," (identifier) "AFE_CONN13" (,) "," (identifier) "AFE_CONN14" (,) "," (identifier) "AFE_CONN15" (,) "," (identifier) "AFE_CONN16" (,) "," (identifier) "AFE_CONN17" (,) "," (identifier) "AFE_CONN18" (,) "," (identifier) "AFE_CONN19" (,) "," (identifier) "AFE_CONN20" (,) "," (identifier) "AFE_CONN21" (,) "," (identifier) "AFE_CONN22" (,) "," (identifier) "AFE_CONN23" (,) "," (identifier) "AFE_CONN24" (,) "," (identifier) "AFE_CONN25" (,) "," (identifier) "AFE_CONN26" (,) "," (identifier) "AFE_CONN27" (,) "," (identifier) "AFE_CONN28" (,) "," (identifier) "AFE_CONN29" (,) "," (}) "}" (;) ";" (comment) "/**\n* connection state of register\n*/" (declaration) "static char mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n [Soc_Aud_InterConnectionOutput_Num_Output] = { {0} };" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n [Soc_Aud_InterConnectionOutput_Num_Output] = { {0} }" (array_declarator) "mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n [Soc_Aud_InterConnectionOutput_Num_Output]" (array_declarator) "mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]" (identifier) "mConnectionState" ([) "[" (identifier) "Soc_Aud_InterConnectionInput_Num_Input" (]) "]" ([) "[" (identifier) "Soc_Aud_InterConnectionOutput_Num_Output" (]) "]" (=) "=" (initializer_list) "{ {0} }" ({) "{" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (}) "}" (;) ";" (function_definition) "static bool CheckBitsandReg(short regaddr, char bits)\n{\n if (regaddr <= 0 || bits < 0) {\n printk("regaddr = %x bits = %d\n", regaddr, bits);\n return false;\n }\n return true;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "CheckBitsandReg(short regaddr, char bits)" (identifier) "CheckBitsandReg" (parameter_list) "(short regaddr, char bits)" (() "(" (parameter_declaration) "short regaddr" (sized_type_specifier) "short" (short) "short" (identifier) "regaddr" (,) "," (parameter_declaration) "char bits" (primitive_type) "char" (identifier) "bits" ()) ")" (compound_statement) "{\n if (regaddr <= 0 || bits < 0) {\n printk("regaddr = %x bits = %d\n", regaddr, bits);\n return false;\n }\n return true;\n}" ({) "{" (if_statement) "if (regaddr <= 0 || bits < 0) {\n printk("regaddr = %x bits = %d\n", regaddr, bits);\n return false;\n }" (if) "if" (parenthesized_expression) "(regaddr <= 0 || bits < 0)" (() "(" (binary_expression) "regaddr <= 0 || bits < 0" (binary_expression) "regaddr <= 0" (identifier) "regaddr" (<=) "<=" (number_literal) "0" (||) "||" (binary_expression) "bits < 0" (identifier) "bits" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n printk("regaddr = %x bits = %d\n", regaddr, bits);\n return false;\n }" ({) "{" (expression_statement) "printk("regaddr = %x bits = %d\n", regaddr, bits);" (call_expression) "printk("regaddr = %x bits = %d\n", regaddr, bits)" (identifier) "printk" (argument_list) "("regaddr = %x bits = %d\n", regaddr, bits)" (() "(" (string_literal) ""regaddr = %x bits = %d\n"" (") """ (string_content) "regaddr = %x bits = %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "regaddr" (,) "," (identifier) "bits" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "bool SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)\n{\n /* printk("SetinputConnection ConnectionState = %d\n Input = %d Output = %d\n", ConnectionState, Input, Output); */\n int connectReg = 0;\n\n switch (ConnectionState) {\n case Soc_Aud_InterCon_DisConnect:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }\n break;\n }\n case Soc_Aud_InterCon_Connection:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }\n break;\n }\n case Soc_Aud_InterCon_ConnectionShift:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }\n break;\n }\n default:\n pr_err("no this state ConnectionState = %d\n", ConnectionState);\n break;\n }\n\n return true;\n}" (primitive_type) "bool" (function_declarator) "SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)" (identifier) "SetConnectionState" (parameter_list) "(uint32 ConnectionState, uint32 Input, uint32 Output)" (() "(" (parameter_declaration) "uint32 ConnectionState" (type_identifier) "uint32" (identifier) "ConnectionState" (,) "," (parameter_declaration) "uint32 Input" (type_identifier) "uint32" (identifier) "Input" (,) "," (parameter_declaration) "uint32 Output" (type_identifier) "uint32" (identifier) "Output" ()) ")" (compound_statement) "{\n /* printk("SetinputConnection ConnectionState = %d\n Input = %d Output = %d\n", ConnectionState, Input, Output); */\n int connectReg = 0;\n\n switch (ConnectionState) {\n case Soc_Aud_InterCon_DisConnect:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }\n break;\n }\n case Soc_Aud_InterCon_Connection:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }\n break;\n }\n case Soc_Aud_InterCon_ConnectionShift:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }\n break;\n }\n default:\n pr_err("no this state ConnectionState = %d\n", ConnectionState);\n break;\n }\n\n return true;\n}" ({) "{" (comment) "/* printk("SetinputConnection ConnectionState = %d\n Input = %d Output = %d\n", ConnectionState, Input, Output); */" (declaration) "int connectReg = 0;" (primitive_type) "int" (init_declarator) "connectReg = 0" (identifier) "connectReg" (=) "=" (number_literal) "0" (;) ";" (switch_statement) "switch (ConnectionState) {\n case Soc_Aud_InterCon_DisConnect:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }\n break;\n }\n case Soc_Aud_InterCon_Connection:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }\n break;\n }\n case Soc_Aud_InterCon_ConnectionShift:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }\n break;\n }\n default:\n pr_err("no this state ConnectionState = %d\n", ConnectionState);\n break;\n }" (switch) "switch" (parenthesized_expression) "(ConnectionState)" (() "(" (identifier) "ConnectionState" ()) ")" (compound_statement) "{\n case Soc_Aud_InterCon_DisConnect:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }\n break;\n }\n case Soc_Aud_InterCon_Connection:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }\n break;\n }\n case Soc_Aud_InterCon_ConnectionShift:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }\n break;\n }\n default:\n pr_err("no this state ConnectionState = %d\n", ConnectionState);\n break;\n }" ({) "{" (case_statement) "case Soc_Aud_InterCon_DisConnect:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }\n break;\n }" (case) "case" (identifier) "Soc_Aud_InterCon_DisConnect" (:) ":" (compound_statement) "{\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }\n if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }\n break;\n }" ({) "{" (comment) "/* printk("nConnectionState = %d\n", ConnectionState); */" (if_statement) "if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection) {\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }" (if) "if" (parenthesized_expression) "((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection)" (() "(" (binary_expression) "(mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n == Soc_Aud_InterCon_Connection" (parenthesized_expression) "(mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)" (() "(" (binary_expression) "mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection" (subscript_expression) "mConnectionState[Input][Output]" (subscript_expression) "mConnectionState[Input]" (identifier) "mConnectionState" ([) "[" (identifier) "Input" (]) "]" ([) "[" (identifier) "Output" (]) "]" (&) "&" (identifier) "Soc_Aud_InterCon_Connection" ()) ")" (==) "==" (identifier) "Soc_Aud_InterCon_Connection" ()) ")" (compound_statement) "{\n\n /* here to disconnect connect bits */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }\n }" ({) "{" (comment) "/* here to disconnect connect bits */" (expression_statement) "connectReg = mConnectionReg[Output];" (assignment_expression) "connectReg = mConnectionReg[Output]" (identifier) "connectReg" (=) "=" (subscript_expression) "mConnectionReg[Output]" (identifier) "mConnectionReg" ([) "[" (identifier) "Output" (]) "]" (;) ";" (if_statement) "if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }" (if) "if" (parenthesized_expression) "(CheckBitsandReg(connectReg, Input))" (() "(" (call_expression) "CheckBitsandReg(connectReg, Input)" (identifier) "CheckBitsandReg" (argument_list) "(connectReg, Input)" (() "(" (identifier) "connectReg" (,) "," (identifier) "Input" ()) ")" ()) ")" (compound_statement) "{\n Afe_Set_Reg(connectReg, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n }" ({) "{" (expression_statement) "Afe_Set_Reg(connectReg, 0, 1 << Input);" (call_expression) "Afe_Set_Reg(connectReg, 0, 1 << Input)" (identifier) "Afe_Set_Reg" (argument_list) "(connectReg, 0, 1 << Input)" (() "(" (identifier) "connectReg" (,) "," (number_literal) "0" (,) "," (binary_expression) "1 << Input" (number_literal) "1" (<<) "<<" (identifier) "Input" ()) ")" (;) ";" (expression_statement) "mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);" (assignment_expression) "mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection)" (subscript_expression) "mConnectionState[Input][Output]" (subscript_expression) "mConnectionState[Input]" (identifier) "mConnectionState" ([) "[" (identifier) "Input" (]) "]" ([) "[" (identifier) "Output" (]) "]" (&=) "&=" (unary_expression) "~(Soc_Aud_InterCon_Connection)" (~) "~" (parenthesized_expression) "(Soc_Aud_InterCon_Connection)" (() "(" (identifier) "Soc_Aud_InterCon_Connection" ()) ")" (;) ";" (}) "}" (}) "}" (if_statement) "if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift) {\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }" (if) "if" (parenthesized_expression) "((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift)" (() "(" (binary_expression) "(mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n == Soc_Aud_InterCon_ConnectionShift" (parenthesized_expression) "(mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)" (() "(" (binary_expression) "mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift" (subscript_expression) "mConnectionState[Input][Output]" (subscript_expression) "mConnectionState[Input]" (identifier) "mConnectionState" ([) "[" (identifier) "Input" (]) "]" ([) "[" (identifier) "Output" (]) "]" (&) "&" (identifier) "Soc_Aud_InterCon_ConnectionShift" ()) ")" (==) "==" (identifier) "Soc_Aud_InterCon_ConnectionShift" ()) ")" (compound_statement) "{\n\n /* here to disconnect connect shift bits */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }\n }" ({) "{" (comment) "/* here to disconnect connect shift bits */" (if_statement) "if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }" (if) "if" (parenthesized_expression) "(CheckBitsandReg(AFE_CONN_RS, Input))" (() "(" (call_expression) "CheckBitsandReg(AFE_CONN_RS, Input)" (identifier) "CheckBitsandReg" (argument_list) "(AFE_CONN_RS, Input)" (() "(" (identifier) "AFE_CONN_RS" (,) "," (identifier) "Input" ()) ")" ()) ")" (compound_statement) "{\n Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n }" ({) "{" (expression_statement) "Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);" (call_expression) "Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input)" (identifier) "Afe_Set_Reg" (argument_list) "(AFE_CONN_RS, 0, 1 << Input)" (() "(" (identifier) "AFE_CONN_RS" (,) "," (number_literal) "0" (,) "," (binary_expression) "1 << Input" (number_literal) "1" (<<) "<<" (identifier) "Input" ()) ")" (;) ";" (expression_statement) "mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);" (assignment_expression) "mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift)" (subscript_expression) "mConnectionState[Input][Output]" (subscript_expression) "mConnectionState[Input]" (identifier) "mConnectionState" ([) "[" (identifier) "Input" (]) "]" ([) "[" (identifier) "Output" (]) "]" (&=) "&=" (unary_expression) "~(Soc_Aud_InterCon_ConnectionShift)" (~) "~" (parenthesized_expression) "(Soc_Aud_InterCon_ConnectionShift)" (() "(" (identifier) "Soc_Aud_InterCon_ConnectionShift" ()) ")" (;) ";" (}) "}" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (case_statement) "case Soc_Aud_InterCon_Connection:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }\n break;\n }" (case) "case" (identifier) "Soc_Aud_InterCon_Connection" (:) ":" (compound_statement) "{\n /* printk("nConnectionState = %d\n", ConnectionState); */\n connectReg = mConnectionReg[Output];\n if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }\n break;\n }" ({) "{" (comment) "/* printk("nConnectionState = %d\n", ConnectionState); */" (expression_statement) "connectReg = mConnectionReg[Output];" (assignment_expression) "connectReg = mConnectionReg[Output]" (identifier) "connectReg" (=) "=" (subscript_expression) "mConnectionReg[Output]" (identifier) "mConnectionReg" ([) "[" (identifier) "Output" (]) "]" (;) ";" (if_statement) "if (CheckBitsandReg(connectReg, Input)) {\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }" (if) "if" (parenthesized_expression) "(CheckBitsandReg(connectReg, Input))" (() "(" (call_expression) "CheckBitsandReg(connectReg, Input)" (identifier) "CheckBitsandReg" (argument_list) "(connectReg, Input)" (() "(" (identifier) "connectReg" (,) "," (identifier) "Input" ()) ")" ()) ")" (compound_statement) "{\n Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n }" ({) "{" (expression_statement) "Afe_Set_Reg(connectReg, 1 << Input, 1 << Input);" (call_expression) "Afe_Set_Reg(connectReg, 1 << Input, 1 << Input)" (identifier) "Afe_Set_Reg" (argument_list) "(connectReg, 1 << Input, 1 << Input)" (() "(" (identifier) "connectReg" (,) "," (binary_expression) "1 << Input" (number_literal) "1" (<<) "<<" (identifier) "Input" (,) "," (binary_expression) "1 << Input" (number_literal) "1" (<<) "<<" (identifier) "Input" ()) ")" (;) ";" (expression_statement) "mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;" (assignment_expression) "mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection" (subscript_expression) "mConnectionState[Input][Output]" (subscript_expression) "mConnectionState[Input]" (identifier) "mConnectionState" ([) "[" (identifier) "Input" (]) "]" ([) "[" (identifier) "Output" (]) "]" (|=) "|=" (identifier) "Soc_Aud_InterCon_Connection" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (case_statement) "case Soc_Aud_InterCon_ConnectionShift:\n {\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }\n break;\n }" (case) "case" (identifier) "Soc_Aud_InterCon_ConnectionShift" (:) ":" (compound_statement) "{\n /* printk("nConnectionState = %d\n", ConnectionState); */\n if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }\n break;\n }" ({) "{" (comment) "/* printk("nConnectionState = %d\n", ConnectionState); */" (if_statement) "if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }" (if) "if" (parenthesized_expression) "(CheckBitsandReg(AFE_CONN_RS, Input))" (() "(" (call_expression) "CheckBitsandReg(AFE_CONN_RS, Input)" (identifier) "CheckBitsandReg" (argument_list) "(AFE_CONN_RS, Input)" (() "(" (identifier) "AFE_CONN_RS" (,) "," (identifier) "Input" ()) ")" ()) ")" (compound_statement) "{\n Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n }" ({) "{" (expression_statement) "Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);" (call_expression) "Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input)" (identifier) "Afe_Set_Reg" (argument_list) "(AFE_CONN_RS, 1 << Input, 1 << Input)" (() "(" (identifier) "AFE_CONN_RS" (,) "," (binary_expression) "1 << Input" (number_literal) "1" (<<) "<<" (identifier) "Input" (,) "," (binary_expression) "1 << Input" (number_literal) "1" (<<) "<<" (identifier) "Input" ()) ")" (;) ";" (expression_statement) "mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;" (assignment_expression) "mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift" (subscript_expression) "mConnectionState[Input][Output]" (subscript_expression) "mConnectionState[Input]" (identifier) "mConnectionState" ([) "[" (identifier) "Input" (]) "]" ([) "[" (identifier) "Output" (]) "]" (|=) "|=" (identifier) "Soc_Aud_InterCon_ConnectionShift" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (case_statement) "default:\n pr_err("no this state ConnectionState = %d\n", ConnectionState);\n break;" (default) "default" (:) ":" (expression_statement) "pr_err("no this state ConnectionState = %d\n", ConnectionState);" (call_expression) "pr_err("no this state ConnectionState = %d\n", ConnectionState)" (identifier) "pr_err" (argument_list) "("no this state ConnectionState = %d\n", ConnectionState)" (() "(" (string_literal) ""no this state ConnectionState = %d\n"" (") """ (string_content) "no this state ConnectionState = %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "ConnectionState" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (expression_statement) "EXPORT_SYMBOL(SetConnectionState);" (call_expression) "EXPORT_SYMBOL(SetConnectionState)" (identifier) "EXPORT_SYMBOL" (argument_list) "(SetConnectionState)" (() "(" (identifier) "SetConnectionState" ()) ")" (;) ";"
697
2
{"language": "c", "success": true, "metadata": {"lines": 172, "avg_line_length": 30.55, "nodes": 408, "errors": 0, "source_hash": "788ff5d22a8bfd73d5552f4067bc4ae91831aaecf77cc5448f34212fd5a0ebae", "categorized_nodes": 336}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"AudDrv_Common.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"AudDrv_Common.h\"", "parent": 0, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 26}}, {"id": 3, "type": "preproc_include", "text": "#include \"AudDrv_Def.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"AudDrv_Def.h\"", "parent": 3, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"AudDrv_Afe.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"AudDrv_Afe.h\"", "parent": 6, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include \"AudDrv_Ana.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"AudDrv_Ana.h\"", "parent": 9, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 23}}, {"id": 12, "type": "preproc_include", "text": "#include \"AudDrv_Clk.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"AudDrv_Clk.h\"", "parent": 12, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include \"mt_soc_digital_type.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"mt_soc_digital_type.h\"", "parent": 15, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 32}}, {"id": 18, "type": "preproc_include", "text": "#include <linux/kernel.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<linux/kernel.h>", "parent": 18, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 25}}, {"id": 21, "type": "preproc_include", "text": "#include <linux/module.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<linux/module.h>", "parent": 21, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 25}}, {"id": 24, "type": "preproc_include", "text": "#include <linux/init.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<linux/init.h>", "parent": 24, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 23}}, {"id": 27, "type": "preproc_include", "text": "#include <linux/device.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<linux/device.h>", "parent": 27, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 25}}, {"id": 30, "type": "preproc_include", "text": "#include <linux/slab.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<linux/slab.h>", "parent": 30, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 23}}, {"id": 33, "type": "preproc_include", "text": "#include <linux/fs.h>\n", "parent": null, "children": [34, 35], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<linux/fs.h>", "parent": 33, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 21}}, {"id": 36, "type": "preproc_include", "text": "#include <linux/completion.h>\n", "parent": null, "children": [37, 38], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 8}}, {"id": 38, "type": "system_lib_string", "text": "<linux/completion.h>", "parent": 36, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 29}}, {"id": 39, "type": "preproc_include", "text": "#include <linux/mm.h>\n", "parent": null, "children": [40, 41], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 8}}, {"id": 41, "type": "system_lib_string", "text": "<linux/mm.h>", "parent": 39, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 21}}, {"id": 42, "type": "preproc_include", "text": "#include <linux/delay.h>\n", "parent": null, "children": [43, 44], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 8}}, {"id": 44, "type": "system_lib_string", "text": "<linux/delay.h>", "parent": 42, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 24}}, {"id": 45, "type": "preproc_include", "text": "#include <linux/interrupt.h>\n", "parent": null, "children": [46, 47], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 46, "type": "#include", "text": "#include", "parent": 45, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 8}}, {"id": 47, "type": "system_lib_string", "text": "<linux/interrupt.h>", "parent": 45, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 28}}, {"id": 48, "type": "preproc_include", "text": "#include <linux/dma-mapping.h>\n", "parent": null, "children": [49, 50], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 49, "type": "#include", "text": "#include", "parent": 48, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 8}}, {"id": 50, "type": "system_lib_string", "text": "<linux/dma-mapping.h>", "parent": 48, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 30}}, {"id": 51, "type": "preproc_include", "text": "#include <linux/vmalloc.h>\n", "parent": null, "children": [52, 53], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 52, "type": "#include", "text": "#include", "parent": 51, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 8}}, {"id": 53, "type": "system_lib_string", "text": "<linux/vmalloc.h>", "parent": 51, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 26}}, {"id": 54, "type": "preproc_include", "text": "#include <linux/platform_device.h>\n", "parent": null, "children": [55, 56], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 55, "type": "#include", "text": "#include", "parent": 54, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 8}}, {"id": 56, "type": "system_lib_string", "text": "<linux/platform_device.h>", "parent": 54, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 34}}, {"id": 57, "type": "preproc_include", "text": "#include <linux/miscdevice.h>\n", "parent": null, "children": [58, 59], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 58, "type": "#include", "text": "#include", "parent": 57, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 8}}, {"id": 59, "type": "system_lib_string", "text": "<linux/miscdevice.h>", "parent": 57, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 29}}, {"id": 60, "type": "preproc_include", "text": "#include <linux/wait.h>\n", "parent": null, "children": [61, 62], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 61, "type": "#include", "text": "#include", "parent": 60, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 8}}, {"id": 62, "type": "system_lib_string", "text": "<linux/wait.h>", "parent": 60, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 23}}, {"id": 63, "type": "preproc_include", "text": "#include <linux/spinlock.h>\n", "parent": null, "children": [64, 65], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 70, "column": 0}}, {"id": 64, "type": "#include", "text": "#include", "parent": 63, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 8}}, {"id": 65, "type": "system_lib_string", "text": "<linux/spinlock.h>", "parent": 63, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 27}}, {"id": 66, "type": "preproc_include", "text": "#include <linux/sched.h>\n", "parent": null, "children": [67, 68], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 67, "type": "#include", "text": "#include", "parent": 66, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 8}}, {"id": 68, "type": "system_lib_string", "text": "<linux/sched.h>", "parent": 66, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 24}}, {"id": 69, "type": "preproc_include", "text": "#include <linux/wakelock.h>\n", "parent": null, "children": [70, 71], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 0}}, {"id": 70, "type": "#include", "text": "#include", "parent": 69, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 8}}, {"id": 71, "type": "system_lib_string", "text": "<linux/wakelock.h>", "parent": 69, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 27}}, {"id": 72, "type": "preproc_include", "text": "#include <linux/semaphore.h>\n", "parent": null, "children": [73, 74], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 73, "column": 0}}, {"id": 73, "type": "#include", "text": "#include", "parent": 72, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 8}}, {"id": 74, "type": "system_lib_string", "text": "<linux/semaphore.h>", "parent": 72, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 28}}, {"id": 75, "type": "preproc_include", "text": "#include <linux/jiffies.h>\n", "parent": null, "children": [76, 77], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 76, "type": "#include", "text": "#include", "parent": 75, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 8}}, {"id": 77, "type": "system_lib_string", "text": "<linux/jiffies.h>", "parent": 75, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 26}}, {"id": 78, "type": "preproc_include", "text": "#include <linux/proc_fs.h>\n", "parent": null, "children": [79, 80], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 79, "type": "#include", "text": "#include", "parent": 78, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 8}}, {"id": 80, "type": "system_lib_string", "text": "<linux/proc_fs.h>", "parent": 78, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 26}}, {"id": 81, "type": "preproc_include", "text": "#include <linux/string.h>\n", "parent": null, "children": [82, 83], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 76, "column": 0}}, {"id": 82, "type": "#include", "text": "#include", "parent": 81, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 8}}, {"id": 83, "type": "system_lib_string", "text": "<linux/string.h>", "parent": 81, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 25}}, {"id": 84, "type": "preproc_include", "text": "#include <linux/mutex.h>\n", "parent": null, "children": [85, 86], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 85, "type": "#include", "text": "#include", "parent": 84, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 8}}, {"id": 86, "type": "system_lib_string", "text": "<linux/mutex.h>", "parent": 84, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 24}}, {"id": 87, "type": "preproc_include", "text": "#include <asm/uaccess.h>\n", "parent": null, "children": [88, 89], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 78, "column": 0}}, {"id": 88, "type": "#include", "text": "#include", "parent": 87, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 8}}, {"id": 89, "type": "system_lib_string", "text": "<asm/uaccess.h>", "parent": 87, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 24}}, {"id": 90, "type": "preproc_include", "text": "#include <asm/irq.h>\n", "parent": null, "children": [91, 92], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 79, "column": 0}}, {"id": 91, "type": "#include", "text": "#include", "parent": 90, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 8}}, {"id": 92, "type": "system_lib_string", "text": "<asm/irq.h>", "parent": 90, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 20}}, {"id": 93, "type": "preproc_include", "text": "#include <asm/io.h>\n", "parent": null, "children": [94, 95], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 80, "column": 0}}, {"id": 94, "type": "#include", "text": "#include", "parent": 93, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 8}}, {"id": 95, "type": "system_lib_string", "text": "<asm/io.h>", "parent": 93, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 19}}, {"id": 96, "type": "preproc_include", "text": "#include <asm/div64.h>\n", "parent": null, "children": [97, 98], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 81, "column": 0}}, {"id": 97, "type": "#include", "text": "#include", "parent": 96, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 8}}, {"id": 98, "type": "system_lib_string", "text": "<asm/div64.h>", "parent": 96, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 22}}, {"id": 99, "type": "preproc_ifdef", "text": "#ifdef DEBUG_AUDDRV\n#define PRINTK_AUDDRV(format, args...) printk(format, ##args)\n#else\n#define PRINTK_AUDDRV(format, args...)\n#endif", "parent": null, "children": [100, 101, 102, 109, 117], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 97, "column": 6}}, {"id": 100, "type": "#ifdef", "text": "#ifdef", "parent": 99, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 101, "type": "identifier", "text": "DEBUG_AUDDRV", "parent": 99, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 19}}, {"id": 102, "type": "preproc_function_def", "text": "#define PRINTK_AUDDRV(format, args...) printk(format, ##args)\n", "parent": 99, "children": [103, 104, 105, 108], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 0}}, {"id": 103, "type": "#define", "text": "#define", "parent": 102, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 7}}, {"id": 104, "type": "identifier", "text": "PRINTK_AUDDRV", "parent": 102, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 21}}, {"id": 105, "type": "preproc_params", "text": "(format, args...)", "parent": 102, "children": [106, 107], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 38}}, {"id": 106, "type": "identifier", "text": "format", "parent": 105, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 28}}, {"id": 107, "type": "identifier", "text": "args", "parent": 105, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 34}}, {"id": 108, "type": "preproc_arg", "text": "printk(format, ##args)", "parent": 102, "children": [], "start_point": {"row": 94, "column": 39}, "end_point": {"row": 94, "column": 61}}, {"id": 109, "type": "preproc_else", "text": "#else\n#define PRINTK_AUDDRV(format, args...)\n", "parent": 99, "children": [110, 111], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 110, "type": "#else", "text": "#else", "parent": 109, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 5}}, {"id": 111, "type": "preproc_function_def", "text": "#define PRINTK_AUDDRV(format, args...)\n", "parent": 109, "children": [112, 113, 114], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 112, "type": "#define", "text": "#define", "parent": 111, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 7}}, {"id": 113, "type": "identifier", "text": "PRINTK_AUDDRV", "parent": 111, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 21}}, {"id": 114, "type": "preproc_params", "text": "(format, args...)", "parent": 111, "children": [115, 116], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 38}}, {"id": 115, "type": "identifier", "text": "format", "parent": 114, "children": [], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 28}}, {"id": 116, "type": "identifier", "text": "args", "parent": 114, "children": [], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 34}}, {"id": 117, "type": "#endif", "text": "#endif", "parent": 99, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 6}}, {"id": 118, "type": "declaration", "text": "static DEFINE_MUTEX(afe_connection_mutex);", "parent": null, "children": [119, 120], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 42}}, {"id": 119, "type": "type_identifier", "text": "DEFINE_MUTEX", "parent": 118, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 19}}, {"id": 120, "type": "parenthesized_declarator", "text": "(afe_connection_mutex)", "parent": 118, "children": [121], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 41}}, {"id": 121, "type": "identifier", "text": "afe_connection_mutex", "parent": 120, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 40}}, {"id": 122, "type": "declaration", "text": "const uint32 mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output] = {\n\tAFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n\tAFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n\tAFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n\tAFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n\tAFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n\tAFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n\t};", "parent": null, "children": [123, 124], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 112, "column": 3}}, {"id": 123, "type": "type_identifier", "text": "uint32", "parent": 122, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 12}}, {"id": 124, "type": "init_declarator", "text": "mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output] = {\n\tAFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n\tAFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n\tAFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n\tAFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n\tAFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n\tAFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n\t}", "parent": 122, "children": [125, 128, 129], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 112, "column": 2}}, {"id": 125, "type": "array_declarator", "text": "mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output]", "parent": 124, "children": [126, 127], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 69}}, {"id": 126, "type": "identifier", "text": "mConnectionReg", "parent": 125, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 27}}, {"id": 127, "type": "identifier", "text": "Soc_Aud_InterConnectionOutput_Num_Output", "parent": 125, "children": [], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 68}}, {"id": 128, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 105, "column": 70}, "end_point": {"row": 105, "column": 71}}, {"id": 129, "type": "initializer_list", "text": "{\n\tAFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n\tAFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n\tAFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n\tAFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n\tAFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n\tAFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n\t}", "parent": 124, "children": [130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159], "start_point": {"row": 105, "column": 72}, "end_point": {"row": 112, "column": 2}}, {"id": 130, "type": "identifier", "text": "AFE_CONN0", "parent": 129, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 10}}, {"id": 131, "type": "identifier", "text": "AFE_CONN1", "parent": 129, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 21}}, {"id": 132, "type": "identifier", "text": "AFE_CONN2", "parent": 129, "children": [], "start_point": {"row": 106, "column": 23}, "end_point": {"row": 106, "column": 32}}, {"id": 133, "type": "identifier", "text": "AFE_CONN3", "parent": 129, "children": [], "start_point": {"row": 106, "column": 34}, "end_point": {"row": 106, "column": 43}}, {"id": 134, "type": "identifier", "text": "AFE_CONN4", "parent": 129, "children": [], "start_point": {"row": 106, "column": 45}, "end_point": {"row": 106, "column": 54}}, {"id": 135, "type": "identifier", "text": "AFE_CONN5", "parent": 129, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 10}}, {"id": 136, "type": "identifier", "text": "AFE_CONN6", "parent": 129, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 21}}, {"id": 137, "type": "identifier", "text": "AFE_CONN7", "parent": 129, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 32}}, {"id": 138, "type": "identifier", "text": "AFE_CONN8", "parent": 129, "children": [], "start_point": {"row": 107, "column": 34}, "end_point": {"row": 107, "column": 43}}, {"id": 139, "type": "identifier", "text": "AFE_CONN9", "parent": 129, "children": [], "start_point": {"row": 107, "column": 45}, "end_point": {"row": 107, "column": 54}}, {"id": 140, "type": "identifier", "text": "AFE_CONN10", "parent": 129, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 11}}, {"id": 141, "type": "identifier", "text": "AFE_CONN11", "parent": 129, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 23}}, {"id": 142, "type": "identifier", "text": "AFE_CONN12", "parent": 129, "children": [], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 35}}, {"id": 143, "type": "identifier", "text": "AFE_CONN13", "parent": 129, "children": [], "start_point": {"row": 108, "column": 37}, "end_point": {"row": 108, "column": 47}}, {"id": 144, "type": "identifier", "text": "AFE_CONN14", "parent": 129, "children": [], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 59}}, {"id": 145, "type": "identifier", "text": "AFE_CONN15", "parent": 129, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 11}}, {"id": 146, "type": "identifier", "text": "AFE_CONN16", "parent": 129, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 23}}, {"id": 147, "type": "identifier", "text": "AFE_CONN17", "parent": 129, "children": [], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 35}}, {"id": 148, "type": "identifier", "text": "AFE_CONN18", "parent": 129, "children": [], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 47}}, {"id": 149, "type": "identifier", "text": "AFE_CONN19", "parent": 129, "children": [], "start_point": {"row": 109, "column": 49}, "end_point": {"row": 109, "column": 59}}, {"id": 150, "type": "identifier", "text": "AFE_CONN20", "parent": 129, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 11}}, {"id": 151, "type": "identifier", "text": "AFE_CONN21", "parent": 129, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 23}}, {"id": 152, "type": "identifier", "text": "AFE_CONN22", "parent": 129, "children": [], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 35}}, {"id": 153, "type": "identifier", "text": "AFE_CONN23", "parent": 129, "children": [], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 47}}, {"id": 154, "type": "identifier", "text": "AFE_CONN24", "parent": 129, "children": [], "start_point": {"row": 110, "column": 49}, "end_point": {"row": 110, "column": 59}}, {"id": 155, "type": "identifier", "text": "AFE_CONN25", "parent": 129, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 11}}, {"id": 156, "type": "identifier", "text": "AFE_CONN26", "parent": 129, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 23}}, {"id": 157, "type": "identifier", "text": "AFE_CONN27", "parent": 129, "children": [], "start_point": {"row": 111, "column": 25}, "end_point": {"row": 111, "column": 35}}, {"id": 158, "type": "identifier", "text": "AFE_CONN28", "parent": 129, "children": [], "start_point": {"row": 111, "column": 37}, "end_point": {"row": 111, "column": 47}}, {"id": 159, "type": "identifier", "text": "AFE_CONN29", "parent": 129, "children": [], "start_point": {"row": 111, "column": 49}, "end_point": {"row": 111, "column": 59}}, {"id": 160, "type": "declaration", "text": "static char mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n\t[Soc_Aud_InterConnectionOutput_Num_Output] = { {0} };", "parent": null, "children": [161, 162], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 54}}, {"id": 161, "type": "primitive_type", "text": "char", "parent": 160, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 11}}, {"id": 162, "type": "init_declarator", "text": "mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n\t[Soc_Aud_InterConnectionOutput_Num_Output] = { {0} }", "parent": 160, "children": [163, 168, 169], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 118, "column": 53}}, {"id": 163, "type": "array_declarator", "text": "mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n\t[Soc_Aud_InterConnectionOutput_Num_Output]", "parent": 162, "children": [164, 167], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 118, "column": 43}}, {"id": 164, "type": "array_declarator", "text": "mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]", "parent": 163, "children": [165, 166], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 68}}, {"id": 165, "type": "identifier", "text": "mConnectionState", "parent": 164, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 28}}, {"id": 166, "type": "identifier", "text": "Soc_Aud_InterConnectionInput_Num_Input", "parent": 164, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 67}}, {"id": 167, "type": "identifier", "text": "Soc_Aud_InterConnectionOutput_Num_Output", "parent": 163, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 42}}, {"id": 168, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 118, "column": 44}, "end_point": {"row": 118, "column": 45}}, {"id": 169, "type": "initializer_list", "text": "{ {0} }", "parent": 162, "children": [170], "start_point": {"row": 118, "column": 46}, "end_point": {"row": 118, "column": 53}}, {"id": 170, "type": "initializer_list", "text": "{0}", "parent": 169, "children": [171], "start_point": {"row": 118, "column": 48}, "end_point": {"row": 118, "column": 51}}, {"id": 171, "type": "number_literal", "text": "0", "parent": 170, "children": [], "start_point": {"row": 118, "column": 49}, "end_point": {"row": 118, "column": 50}}, {"id": 172, "type": "function_definition", "text": "static bool CheckBitsandReg(short regaddr, char bits)\n{\n\tif (regaddr <= 0 || bits < 0) {\n\t\tprintk(\"regaddr = %x bits = %d\\n\", regaddr, bits);\n\t\treturn false;\n\t}\n\treturn true;\n}", "parent": null, "children": [173, 174], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 127, "column": 1}}, {"id": 173, "type": "primitive_type", "text": "bool", "parent": 172, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 11}}, {"id": 174, "type": "function_declarator", "text": "CheckBitsandReg(short regaddr, char bits)", "parent": 172, "children": [175, 176], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 53}}, {"id": 175, "type": "identifier", "text": "CheckBitsandReg", "parent": 174, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 27}}, {"id": 176, "type": "parameter_list", "text": "(short regaddr, char bits)", "parent": 174, "children": [177, 181], "start_point": {"row": 120, "column": 27}, "end_point": {"row": 120, "column": 53}}, {"id": 177, "type": "parameter_declaration", "text": "short regaddr", "parent": 176, "children": [178, 180], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 41}}, {"id": 178, "type": "sized_type_specifier", "text": "short", "parent": 177, "children": [179], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 33}}, {"id": 179, "type": "short", "text": "short", "parent": 178, "children": [], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 33}}, {"id": 180, "type": "identifier", "text": "regaddr", "parent": 177, "children": [], "start_point": {"row": 120, "column": 34}, "end_point": {"row": 120, "column": 41}}, {"id": 181, "type": "parameter_declaration", "text": "char bits", "parent": 176, "children": [182, 183], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 52}}, {"id": 182, "type": "primitive_type", "text": "char", "parent": 181, "children": [], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 47}}, {"id": 183, "type": "identifier", "text": "bits", "parent": 181, "children": [], "start_point": {"row": 120, "column": 48}, "end_point": {"row": 120, "column": 52}}, {"id": 184, "type": "if_statement", "text": "if (regaddr <= 0 || bits < 0) {\n\t\tprintk(\"regaddr = %x bits = %d\\n\", regaddr, bits);\n\t\treturn false;\n\t}", "parent": 172, "children": [185], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 125, "column": 2}}, {"id": 185, "type": "parenthesized_expression", "text": "(regaddr <= 0 || bits < 0)", "parent": 184, "children": [186], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 30}}, {"id": 186, "type": "binary_expression", "text": "regaddr <= 0 || bits < 0", "parent": 185, "children": [187, 191, 192], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 29}}, {"id": 187, "type": "binary_expression", "text": "regaddr <= 0", "parent": 186, "children": [188, 189, 190], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 17}}, {"id": 188, "type": "identifier", "text": "regaddr", "parent": 187, "children": [], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 12}}, {"id": 189, "type": "<=", "text": "<=", "parent": 187, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 15}}, {"id": 190, "type": "number_literal", "text": "0", "parent": 187, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 17}}, {"id": 191, "type": "||", "text": "||", "parent": 186, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 20}}, {"id": 192, "type": "binary_expression", "text": "bits < 0", "parent": 186, "children": [193, 194, 195], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 29}}, {"id": 193, "type": "identifier", "text": "bits", "parent": 192, "children": [], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 25}}, {"id": 194, "type": "<", "text": "<", "parent": 192, "children": [], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 27}}, {"id": 195, "type": "number_literal", "text": "0", "parent": 192, "children": [], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 29}}, {"id": 196, "type": "call_expression", "text": "printk(\"regaddr = %x bits = %d\\n\", regaddr, bits)", "parent": 184, "children": [197, 198], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 51}}, {"id": 197, "type": "identifier", "text": "printk", "parent": 196, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 8}}, {"id": 198, "type": "argument_list", "text": "(\"regaddr = %x bits = %d\\n\", regaddr, bits)", "parent": 196, "children": [199, 201, 202], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 51}}, {"id": 199, "type": "string_literal", "text": "\"regaddr = %x bits = %d\\n\"", "parent": 198, "children": [200], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 35}}, {"id": 200, "type": "escape_sequence", "text": "\\n", "parent": 199, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 34}}, {"id": 201, "type": "identifier", "text": "regaddr", "parent": 198, "children": [], "start_point": {"row": 123, "column": 37}, "end_point": {"row": 123, "column": 44}}, {"id": 202, "type": "identifier", "text": "bits", "parent": 198, "children": [], "start_point": {"row": 123, "column": 46}, "end_point": {"row": 123, "column": 50}}, {"id": 203, "type": "return_statement", "text": "return false;", "parent": 184, "children": [204], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 15}}, {"id": 204, "type": "false", "text": "false", "parent": 203, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 14}}, {"id": 205, "type": "return_statement", "text": "return true;", "parent": 172, "children": [206], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 13}}, {"id": 206, "type": "true", "text": "true", "parent": 205, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 12}}, {"id": 207, "type": "function_definition", "text": "bool SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)\n{\n\t/* printk(\"SetinputConnection ConnectionState = %d\n\tInput = %d Output = %d\\n\", ConnectionState, Input, Output); */\n\tint connectReg = 0;\n\n\tswitch (ConnectionState) {\n\tcase Soc_Aud_InterCon_DisConnect:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n\t\t\t== Soc_Aud_InterCon_Connection) {\n\n\t\t\t/* here to disconnect connect bits */\n\t\t\tconnectReg = mConnectionReg[Output];\n\t\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\t\tAfe_Set_Reg(connectReg, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n\t\t\t}\n\t\t}\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n\t\t\t== Soc_Aud_InterCon_ConnectionShift) {\n\n\t\t\t/* here to disconnect connect shift bits */\n\t\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\t\tAfe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n\t\t\t}\n\t\t}\n\t\tbreak;\n\t}\n\tcase Soc_Aud_InterCon_Connection:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tconnectReg = mConnectionReg[Output];\n\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\tAfe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n\t\t}\n\t\tbreak;\n\t}\n\tcase Soc_Aud_InterCon_ConnectionShift:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\tAfe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n\t\t}\n\t\tbreak;\n\t}\n\tdefault:\n\t\tpr_err(\"no this state ConnectionState = %d\\n\", ConnectionState);\n\t\tbreak;\n\t}\n\n\treturn true;\n}", "parent": null, "children": [208, 209], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 185, "column": 1}}, {"id": 208, "type": "primitive_type", "text": "bool", "parent": 207, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 4}}, {"id": 209, "type": "function_declarator", "text": "SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)", "parent": 207, "children": [210, 211], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 76}}, {"id": 210, "type": "identifier", "text": "SetConnectionState", "parent": 209, "children": [], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 23}}, {"id": 211, "type": "parameter_list", "text": "(uint32 ConnectionState, uint32 Input, uint32 Output)", "parent": 209, "children": [212, 215, 218], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 76}}, {"id": 212, "type": "parameter_declaration", "text": "uint32 ConnectionState", "parent": 211, "children": [213, 214], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 46}}, {"id": 213, "type": "type_identifier", "text": "uint32", "parent": 212, "children": [], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 30}}, {"id": 214, "type": "identifier", "text": "ConnectionState", "parent": 212, "children": [], "start_point": {"row": 129, "column": 31}, "end_point": {"row": 129, "column": 46}}, {"id": 215, "type": "parameter_declaration", "text": "uint32 Input", "parent": 211, "children": [216, 217], "start_point": {"row": 129, "column": 48}, "end_point": {"row": 129, "column": 60}}, {"id": 216, "type": "type_identifier", "text": "uint32", "parent": 215, "children": [], "start_point": {"row": 129, "column": 48}, "end_point": {"row": 129, "column": 54}}, {"id": 217, "type": "identifier", "text": "Input", "parent": 215, "children": [], "start_point": {"row": 129, "column": 55}, "end_point": {"row": 129, "column": 60}}, {"id": 218, "type": "parameter_declaration", "text": "uint32 Output", "parent": 211, "children": [219, 220], "start_point": {"row": 129, "column": 62}, "end_point": {"row": 129, "column": 75}}, {"id": 219, "type": "type_identifier", "text": "uint32", "parent": 218, "children": [], "start_point": {"row": 129, "column": 62}, "end_point": {"row": 129, "column": 68}}, {"id": 220, "type": "identifier", "text": "Output", "parent": 218, "children": [], "start_point": {"row": 129, "column": 69}, "end_point": {"row": 129, "column": 75}}, {"id": 221, "type": "declaration", "text": "int connectReg = 0;", "parent": 207, "children": [222, 223], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 20}}, {"id": 222, "type": "primitive_type", "text": "int", "parent": 221, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 4}}, {"id": 223, "type": "init_declarator", "text": "connectReg = 0", "parent": 221, "children": [224, 225, 226], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 19}}, {"id": 224, "type": "identifier", "text": "connectReg", "parent": 223, "children": [], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 15}}, {"id": 225, "type": "=", "text": "=", "parent": 223, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 17}}, {"id": 226, "type": "number_literal", "text": "0", "parent": 223, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 19}}, {"id": 227, "type": "switch_statement", "text": "switch (ConnectionState) {\n\tcase Soc_Aud_InterCon_DisConnect:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n\t\t\t== Soc_Aud_InterCon_Connection) {\n\n\t\t\t/* here to disconnect connect bits */\n\t\t\tconnectReg = mConnectionReg[Output];\n\t\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\t\tAfe_Set_Reg(connectReg, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n\t\t\t}\n\t\t}\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n\t\t\t== Soc_Aud_InterCon_ConnectionShift) {\n\n\t\t\t/* here to disconnect connect shift bits */\n\t\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\t\tAfe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n\t\t\t}\n\t\t}\n\t\tbreak;\n\t}\n\tcase Soc_Aud_InterCon_Connection:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tconnectReg = mConnectionReg[Output];\n\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\tAfe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n\t\t}\n\t\tbreak;\n\t}\n\tcase Soc_Aud_InterCon_ConnectionShift:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\tAfe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n\t\t}\n\t\tbreak;\n\t}\n\tdefault:\n\t\tpr_err(\"no this state ConnectionState = %d\\n\", ConnectionState);\n\t\tbreak;\n\t}", "parent": 207, "children": [228, 229], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 182, "column": 2}}, {"id": 228, "type": "switch", "text": "switch", "parent": 227, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 7}}, {"id": 229, "type": "parenthesized_expression", "text": "(ConnectionState)", "parent": 227, "children": [230], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 25}}, {"id": 230, "type": "identifier", "text": "ConnectionState", "parent": 229, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 24}}, {"id": 231, "type": "case_statement", "text": "case Soc_Aud_InterCon_DisConnect:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n\t\t\t== Soc_Aud_InterCon_Connection) {\n\n\t\t\t/* here to disconnect connect bits */\n\t\t\tconnectReg = mConnectionReg[Output];\n\t\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\t\tAfe_Set_Reg(connectReg, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n\t\t\t}\n\t\t}\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n\t\t\t== Soc_Aud_InterCon_ConnectionShift) {\n\n\t\t\t/* here to disconnect connect shift bits */\n\t\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\t\tAfe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n\t\t\t}\n\t\t}\n\t\tbreak;\n\t}", "parent": 227, "children": [232, 233], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 159, "column": 2}}, {"id": 232, "type": "case", "text": "case", "parent": 231, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 5}}, {"id": 233, "type": "identifier", "text": "Soc_Aud_InterCon_DisConnect", "parent": 231, "children": [], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 33}}, {"id": 234, "type": "if_statement", "text": "if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n\t\t\t== Soc_Aud_InterCon_Connection) {\n\n\t\t\t/* here to disconnect connect bits */\n\t\t\tconnectReg = mConnectionReg[Output];\n\t\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\t\tAfe_Set_Reg(connectReg, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n\t\t\t}\n\t\t}", "parent": 231, "children": [235], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 148, "column": 3}}, {"id": 235, "type": "parenthesized_expression", "text": "((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n\t\t\t== Soc_Aud_InterCon_Connection)", "parent": 234, "children": [236], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 140, "column": 34}}, {"id": 236, "type": "binary_expression", "text": "(mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n\t\t\t== Soc_Aud_InterCon_Connection", "parent": 235, "children": [237, 245, 246], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 140, "column": 33}}, {"id": 237, "type": "parenthesized_expression", "text": "(mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)", "parent": 236, "children": [238], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 69}}, {"id": 238, "type": "binary_expression", "text": "mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection", "parent": 237, "children": [239, 244], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 68}}, {"id": 239, "type": "subscript_expression", "text": "mConnectionState[Input][Output]", "parent": 238, "children": [240, 243], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 38}}, {"id": 240, "type": "subscript_expression", "text": "mConnectionState[Input]", "parent": 239, "children": [241, 242], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 30}}, {"id": 241, "type": "identifier", "text": "mConnectionState", "parent": 240, "children": [], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 23}}, {"id": 242, "type": "identifier", "text": "Input", "parent": 240, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 29}}, {"id": 243, "type": "identifier", "text": "Output", "parent": 239, "children": [], "start_point": {"row": 139, "column": 31}, "end_point": {"row": 139, "column": 37}}, {"id": 244, "type": "identifier", "text": "Soc_Aud_InterCon_Connection", "parent": 238, "children": [], "start_point": {"row": 139, "column": 41}, "end_point": {"row": 139, "column": 68}}, {"id": 245, "type": "==", "text": "==", "parent": 236, "children": [], "start_point": {"row": 140, "column": 3}, "end_point": {"row": 140, "column": 5}}, {"id": 246, "type": "identifier", "text": "Soc_Aud_InterCon_Connection", "parent": 236, "children": [], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 33}}, {"id": 247, "type": "assignment_expression", "text": "connectReg = mConnectionReg[Output]", "parent": 234, "children": [248, 249, 250], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 38}}, {"id": 248, "type": "identifier", "text": "connectReg", "parent": 247, "children": [], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 13}}, {"id": 249, "type": "=", "text": "=", "parent": 247, "children": [], "start_point": {"row": 143, "column": 14}, "end_point": {"row": 143, "column": 15}}, {"id": 250, "type": "subscript_expression", "text": "mConnectionReg[Output]", "parent": 247, "children": [251, 252], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 38}}, {"id": 251, "type": "identifier", "text": "mConnectionReg", "parent": 250, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 30}}, {"id": 252, "type": "identifier", "text": "Output", "parent": 250, "children": [], "start_point": {"row": 143, "column": 31}, "end_point": {"row": 143, "column": 37}}, {"id": 253, "type": "if_statement", "text": "if (CheckBitsandReg(connectReg, Input)) {\n\t\t\t\tAfe_Set_Reg(connectReg, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n\t\t\t}", "parent": 234, "children": [254], "start_point": {"row": 144, "column": 3}, "end_point": {"row": 147, "column": 4}}, {"id": 254, "type": "parenthesized_expression", "text": "(CheckBitsandReg(connectReg, Input))", "parent": 253, "children": [255], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 42}}, {"id": 255, "type": "call_expression", "text": "CheckBitsandReg(connectReg, Input)", "parent": 254, "children": [256, 257], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 41}}, {"id": 256, "type": "identifier", "text": "CheckBitsandReg", "parent": 255, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 22}}, {"id": 257, "type": "argument_list", "text": "(connectReg, Input)", "parent": 255, "children": [258, 259], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 41}}, {"id": 258, "type": "identifier", "text": "connectReg", "parent": 257, "children": [], "start_point": {"row": 144, "column": 23}, "end_point": {"row": 144, "column": 33}}, {"id": 259, "type": "identifier", "text": "Input", "parent": 257, "children": [], "start_point": {"row": 144, "column": 35}, "end_point": {"row": 144, "column": 40}}, {"id": 260, "type": "call_expression", "text": "Afe_Set_Reg(connectReg, 0, 1 << Input)", "parent": 253, "children": [261, 262], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 42}}, {"id": 261, "type": "identifier", "text": "Afe_Set_Reg", "parent": 260, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 15}}, {"id": 262, "type": "argument_list", "text": "(connectReg, 0, 1 << Input)", "parent": 260, "children": [263, 264, 265], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 42}}, {"id": 263, "type": "identifier", "text": "connectReg", "parent": 262, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 26}}, {"id": 264, "type": "number_literal", "text": "0", "parent": 262, "children": [], "start_point": {"row": 145, "column": 28}, "end_point": {"row": 145, "column": 29}}, {"id": 265, "type": "binary_expression", "text": "1 << Input", "parent": 262, "children": [266, 267, 268], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 41}}, {"id": 266, "type": "number_literal", "text": "1", "parent": 265, "children": [], "start_point": {"row": 145, "column": 31}, "end_point": {"row": 145, "column": 32}}, {"id": 267, "type": "<<", "text": "<<", "parent": 265, "children": [], "start_point": {"row": 145, "column": 33}, "end_point": {"row": 145, "column": 35}}, {"id": 268, "type": "identifier", "text": "Input", "parent": 265, "children": [], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 41}}, {"id": 269, "type": "assignment_expression", "text": "mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection)", "parent": 253, "children": [270, 275, 276], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 69}}, {"id": 270, "type": "subscript_expression", "text": "mConnectionState[Input][Output]", "parent": 269, "children": [271, 274], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 35}}, {"id": 271, "type": "subscript_expression", "text": "mConnectionState[Input]", "parent": 270, "children": [272, 273], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 27}}, {"id": 272, "type": "identifier", "text": "mConnectionState", "parent": 271, "children": [], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 20}}, {"id": 273, "type": "identifier", "text": "Input", "parent": 271, "children": [], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 26}}, {"id": 274, "type": "identifier", "text": "Output", "parent": 270, "children": [], "start_point": {"row": 146, "column": 28}, "end_point": {"row": 146, "column": 34}}, {"id": 275, "type": "&=", "text": "&=", "parent": 269, "children": [], "start_point": {"row": 146, "column": 36}, "end_point": {"row": 146, "column": 38}}, {"id": 276, "type": "unary_expression", "text": "~(Soc_Aud_InterCon_Connection)", "parent": 269, "children": [277, 278], "start_point": {"row": 146, "column": 39}, "end_point": {"row": 146, "column": 69}}, {"id": 277, "type": "~", "text": "~", "parent": 276, "children": [], "start_point": {"row": 146, "column": 39}, "end_point": {"row": 146, "column": 40}}, {"id": 278, "type": "parenthesized_expression", "text": "(Soc_Aud_InterCon_Connection)", "parent": 276, "children": [279], "start_point": {"row": 146, "column": 40}, "end_point": {"row": 146, "column": 69}}, {"id": 279, "type": "identifier", "text": "Soc_Aud_InterCon_Connection", "parent": 278, "children": [], "start_point": {"row": 146, "column": 41}, "end_point": {"row": 146, "column": 68}}, {"id": 280, "type": "if_statement", "text": "if ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n\t\t\t== Soc_Aud_InterCon_ConnectionShift) {\n\n\t\t\t/* here to disconnect connect shift bits */\n\t\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\t\tAfe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n\t\t\t}\n\t\t}", "parent": 231, "children": [281], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 157, "column": 3}}, {"id": 281, "type": "parenthesized_expression", "text": "((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n\t\t\t== Soc_Aud_InterCon_ConnectionShift)", "parent": 280, "children": [282], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 150, "column": 39}}, {"id": 282, "type": "binary_expression", "text": "(mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n\t\t\t== Soc_Aud_InterCon_ConnectionShift", "parent": 281, "children": [283, 291, 292], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 150, "column": 38}}, {"id": 283, "type": "parenthesized_expression", "text": "(mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)", "parent": 282, "children": [284], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 74}}, {"id": 284, "type": "binary_expression", "text": "mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift", "parent": 283, "children": [285, 290], "start_point": {"row": 149, "column": 7}, "end_point": {"row": 149, "column": 73}}, {"id": 285, "type": "subscript_expression", "text": "mConnectionState[Input][Output]", "parent": 284, "children": [286, 289], "start_point": {"row": 149, "column": 7}, "end_point": {"row": 149, "column": 38}}, {"id": 286, "type": "subscript_expression", "text": "mConnectionState[Input]", "parent": 285, "children": [287, 288], "start_point": {"row": 149, "column": 7}, "end_point": {"row": 149, "column": 30}}, {"id": 287, "type": "identifier", "text": "mConnectionState", "parent": 286, "children": [], "start_point": {"row": 149, "column": 7}, "end_point": {"row": 149, "column": 23}}, {"id": 288, "type": "identifier", "text": "Input", "parent": 286, "children": [], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 29}}, {"id": 289, "type": "identifier", "text": "Output", "parent": 285, "children": [], "start_point": {"row": 149, "column": 31}, "end_point": {"row": 149, "column": 37}}, {"id": 290, "type": "identifier", "text": "Soc_Aud_InterCon_ConnectionShift", "parent": 284, "children": [], "start_point": {"row": 149, "column": 41}, "end_point": {"row": 149, "column": 73}}, {"id": 291, "type": "==", "text": "==", "parent": 282, "children": [], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 5}}, {"id": 292, "type": "identifier", "text": "Soc_Aud_InterCon_ConnectionShift", "parent": 282, "children": [], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 38}}, {"id": 293, "type": "if_statement", "text": "if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\t\tAfe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n\t\t\t}", "parent": 280, "children": [294], "start_point": {"row": 153, "column": 3}, "end_point": {"row": 156, "column": 4}}, {"id": 294, "type": "parenthesized_expression", "text": "(CheckBitsandReg(AFE_CONN_RS, Input))", "parent": 293, "children": [295], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 43}}, {"id": 295, "type": "call_expression", "text": "CheckBitsandReg(AFE_CONN_RS, Input)", "parent": 294, "children": [296, 297], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 42}}, {"id": 296, "type": "identifier", "text": "CheckBitsandReg", "parent": 295, "children": [], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 22}}, {"id": 297, "type": "argument_list", "text": "(AFE_CONN_RS, Input)", "parent": 295, "children": [298, 299], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 42}}, {"id": 298, "type": "identifier", "text": "AFE_CONN_RS", "parent": 297, "children": [], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 34}}, {"id": 299, "type": "identifier", "text": "Input", "parent": 297, "children": [], "start_point": {"row": 153, "column": 36}, "end_point": {"row": 153, "column": 41}}, {"id": 300, "type": "call_expression", "text": "Afe_Set_Reg(AFE_CONN_RS, 0, 1 << Input)", "parent": 293, "children": [301, 302], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 43}}, {"id": 301, "type": "identifier", "text": "Afe_Set_Reg", "parent": 300, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 15}}, {"id": 302, "type": "argument_list", "text": "(AFE_CONN_RS, 0, 1 << Input)", "parent": 300, "children": [303, 304, 305], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 43}}, {"id": 303, "type": "identifier", "text": "AFE_CONN_RS", "parent": 302, "children": [], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 27}}, {"id": 304, "type": "number_literal", "text": "0", "parent": 302, "children": [], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 30}}, {"id": 305, "type": "binary_expression", "text": "1 << Input", "parent": 302, "children": [306, 307, 308], "start_point": {"row": 154, "column": 32}, "end_point": {"row": 154, "column": 42}}, {"id": 306, "type": "number_literal", "text": "1", "parent": 305, "children": [], "start_point": {"row": 154, "column": 32}, "end_point": {"row": 154, "column": 33}}, {"id": 307, "type": "<<", "text": "<<", "parent": 305, "children": [], "start_point": {"row": 154, "column": 34}, "end_point": {"row": 154, "column": 36}}, {"id": 308, "type": "identifier", "text": "Input", "parent": 305, "children": [], "start_point": {"row": 154, "column": 37}, "end_point": {"row": 154, "column": 42}}, {"id": 309, "type": "assignment_expression", "text": "mConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift)", "parent": 293, "children": [310, 315, 316], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 74}}, {"id": 310, "type": "subscript_expression", "text": "mConnectionState[Input][Output]", "parent": 309, "children": [311, 314], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 35}}, {"id": 311, "type": "subscript_expression", "text": "mConnectionState[Input]", "parent": 310, "children": [312, 313], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 27}}, {"id": 312, "type": "identifier", "text": "mConnectionState", "parent": 311, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 20}}, {"id": 313, "type": "identifier", "text": "Input", "parent": 311, "children": [], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 26}}, {"id": 314, "type": "identifier", "text": "Output", "parent": 310, "children": [], "start_point": {"row": 155, "column": 28}, "end_point": {"row": 155, "column": 34}}, {"id": 315, "type": "&=", "text": "&=", "parent": 309, "children": [], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 38}}, {"id": 316, "type": "unary_expression", "text": "~(Soc_Aud_InterCon_ConnectionShift)", "parent": 309, "children": [317, 318], "start_point": {"row": 155, "column": 39}, "end_point": {"row": 155, "column": 74}}, {"id": 317, "type": "~", "text": "~", "parent": 316, "children": [], "start_point": {"row": 155, "column": 39}, "end_point": {"row": 155, "column": 40}}, {"id": 318, "type": "parenthesized_expression", "text": "(Soc_Aud_InterCon_ConnectionShift)", "parent": 316, "children": [319], "start_point": {"row": 155, "column": 40}, "end_point": {"row": 155, "column": 74}}, {"id": 319, "type": "identifier", "text": "Soc_Aud_InterCon_ConnectionShift", "parent": 318, "children": [], "start_point": {"row": 155, "column": 41}, "end_point": {"row": 155, "column": 73}}, {"id": 320, "type": "break_statement", "text": "break;", "parent": 231, "children": [321], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 8}}, {"id": 321, "type": "break", "text": "break", "parent": 320, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 7}}, {"id": 322, "type": "case_statement", "text": "case Soc_Aud_InterCon_Connection:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tconnectReg = mConnectionReg[Output];\n\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\tAfe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n\t\t}\n\t\tbreak;\n\t}", "parent": 227, "children": [323, 324], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 169, "column": 2}}, {"id": 323, "type": "case", "text": "case", "parent": 322, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 5}}, {"id": 324, "type": "identifier", "text": "Soc_Aud_InterCon_Connection", "parent": 322, "children": [], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 33}}, {"id": 325, "type": "assignment_expression", "text": "connectReg = mConnectionReg[Output]", "parent": 322, "children": [326, 327, 328], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 37}}, {"id": 326, "type": "identifier", "text": "connectReg", "parent": 325, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 12}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 14}}, {"id": 328, "type": "subscript_expression", "text": "mConnectionReg[Output]", "parent": 325, "children": [329, 330], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 37}}, {"id": 329, "type": "identifier", "text": "mConnectionReg", "parent": 328, "children": [], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 29}}, {"id": 330, "type": "identifier", "text": "Output", "parent": 328, "children": [], "start_point": {"row": 163, "column": 30}, "end_point": {"row": 163, "column": 36}}, {"id": 331, "type": "if_statement", "text": "if (CheckBitsandReg(connectReg, Input)) {\n\t\t\tAfe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n\t\t}", "parent": 322, "children": [332], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 167, "column": 3}}, {"id": 332, "type": "parenthesized_expression", "text": "(CheckBitsandReg(connectReg, Input))", "parent": 331, "children": [333], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 41}}, {"id": 333, "type": "call_expression", "text": "CheckBitsandReg(connectReg, Input)", "parent": 332, "children": [334, 335], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 40}}, {"id": 334, "type": "identifier", "text": "CheckBitsandReg", "parent": 333, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 21}}, {"id": 335, "type": "argument_list", "text": "(connectReg, Input)", "parent": 333, "children": [336, 337], "start_point": {"row": 164, "column": 21}, "end_point": {"row": 164, "column": 40}}, {"id": 336, "type": "identifier", "text": "connectReg", "parent": 335, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 32}}, {"id": 337, "type": "identifier", "text": "Input", "parent": 335, "children": [], "start_point": {"row": 164, "column": 34}, "end_point": {"row": 164, "column": 39}}, {"id": 338, "type": "call_expression", "text": "Afe_Set_Reg(connectReg, 1 << Input, 1 << Input)", "parent": 331, "children": [339, 340], "start_point": {"row": 165, "column": 3}, "end_point": {"row": 165, "column": 50}}, {"id": 339, "type": "identifier", "text": "Afe_Set_Reg", "parent": 338, "children": [], "start_point": {"row": 165, "column": 3}, "end_point": {"row": 165, "column": 14}}, {"id": 340, "type": "argument_list", "text": "(connectReg, 1 << Input, 1 << Input)", "parent": 338, "children": [341, 342, 346], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 50}}, {"id": 341, "type": "identifier", "text": "connectReg", "parent": 340, "children": [], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 25}}, {"id": 342, "type": "binary_expression", "text": "1 << Input", "parent": 340, "children": [343, 344, 345], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 37}}, {"id": 343, "type": "number_literal", "text": "1", "parent": 342, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 28}}, {"id": 344, "type": "<<", "text": "<<", "parent": 342, "children": [], "start_point": {"row": 165, "column": 29}, "end_point": {"row": 165, "column": 31}}, {"id": 345, "type": "identifier", "text": "Input", "parent": 342, "children": [], "start_point": {"row": 165, "column": 32}, "end_point": {"row": 165, "column": 37}}, {"id": 346, "type": "binary_expression", "text": "1 << Input", "parent": 340, "children": [347, 348, 349], "start_point": {"row": 165, "column": 39}, "end_point": {"row": 165, "column": 49}}, {"id": 347, "type": "number_literal", "text": "1", "parent": 346, "children": [], "start_point": {"row": 165, "column": 39}, "end_point": {"row": 165, "column": 40}}, {"id": 348, "type": "<<", "text": "<<", "parent": 346, "children": [], "start_point": {"row": 165, "column": 41}, "end_point": {"row": 165, "column": 43}}, {"id": 349, "type": "identifier", "text": "Input", "parent": 346, "children": [], "start_point": {"row": 165, "column": 44}, "end_point": {"row": 165, "column": 49}}, {"id": 350, "type": "assignment_expression", "text": "mConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection", "parent": 331, "children": [351, 356, 357], "start_point": {"row": 166, "column": 3}, "end_point": {"row": 166, "column": 65}}, {"id": 351, "type": "subscript_expression", "text": "mConnectionState[Input][Output]", "parent": 350, "children": [352, 355], "start_point": {"row": 166, "column": 3}, "end_point": {"row": 166, "column": 34}}, {"id": 352, "type": "subscript_expression", "text": "mConnectionState[Input]", "parent": 351, "children": [353, 354], "start_point": {"row": 166, "column": 3}, "end_point": {"row": 166, "column": 26}}, {"id": 353, "type": "identifier", "text": "mConnectionState", "parent": 352, "children": [], "start_point": {"row": 166, "column": 3}, "end_point": {"row": 166, "column": 19}}, {"id": 354, "type": "identifier", "text": "Input", "parent": 352, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 25}}, {"id": 355, "type": "identifier", "text": "Output", "parent": 351, "children": [], "start_point": {"row": 166, "column": 27}, "end_point": {"row": 166, "column": 33}}, {"id": 356, "type": "|=", "text": "|=", "parent": 350, "children": [], "start_point": {"row": 166, "column": 35}, "end_point": {"row": 166, "column": 37}}, {"id": 357, "type": "identifier", "text": "Soc_Aud_InterCon_Connection", "parent": 350, "children": [], "start_point": {"row": 166, "column": 38}, "end_point": {"row": 166, "column": 65}}, {"id": 358, "type": "break_statement", "text": "break;", "parent": 322, "children": [359], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 8}}, {"id": 359, "type": "break", "text": "break", "parent": 358, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 7}}, {"id": 360, "type": "case_statement", "text": "case Soc_Aud_InterCon_ConnectionShift:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\tAfe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n\t\t}\n\t\tbreak;\n\t}", "parent": 227, "children": [361, 362], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 178, "column": 2}}, {"id": 361, "type": "case", "text": "case", "parent": 360, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 5}}, {"id": 362, "type": "identifier", "text": "Soc_Aud_InterCon_ConnectionShift", "parent": 360, "children": [], "start_point": {"row": 170, "column": 6}, "end_point": {"row": 170, "column": 38}}, {"id": 363, "type": "if_statement", "text": "if (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\tAfe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n\t\t}", "parent": 360, "children": [364], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 176, "column": 3}}, {"id": 364, "type": "parenthesized_expression", "text": "(CheckBitsandReg(AFE_CONN_RS, Input))", "parent": 363, "children": [365], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 42}}, {"id": 365, "type": "call_expression", "text": "CheckBitsandReg(AFE_CONN_RS, Input)", "parent": 364, "children": [366, 367], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 41}}, {"id": 366, "type": "identifier", "text": "CheckBitsandReg", "parent": 365, "children": [], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 21}}, {"id": 367, "type": "argument_list", "text": "(AFE_CONN_RS, Input)", "parent": 365, "children": [368, 369], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 41}}, {"id": 368, "type": "identifier", "text": "AFE_CONN_RS", "parent": 367, "children": [], "start_point": {"row": 173, "column": 22}, "end_point": {"row": 173, "column": 33}}, {"id": 369, "type": "identifier", "text": "Input", "parent": 367, "children": [], "start_point": {"row": 173, "column": 35}, "end_point": {"row": 173, "column": 40}}, {"id": 370, "type": "call_expression", "text": "Afe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input)", "parent": 363, "children": [371, 372], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 51}}, {"id": 371, "type": "identifier", "text": "Afe_Set_Reg", "parent": 370, "children": [], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 14}}, {"id": 372, "type": "argument_list", "text": "(AFE_CONN_RS, 1 << Input, 1 << Input)", "parent": 370, "children": [373, 374, 378], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 51}}, {"id": 373, "type": "identifier", "text": "AFE_CONN_RS", "parent": 372, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 26}}, {"id": 374, "type": "binary_expression", "text": "1 << Input", "parent": 372, "children": [375, 376, 377], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 38}}, {"id": 375, "type": "number_literal", "text": "1", "parent": 374, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 29}}, {"id": 376, "type": "<<", "text": "<<", "parent": 374, "children": [], "start_point": {"row": 174, "column": 30}, "end_point": {"row": 174, "column": 32}}, {"id": 377, "type": "identifier", "text": "Input", "parent": 374, "children": [], "start_point": {"row": 174, "column": 33}, "end_point": {"row": 174, "column": 38}}, {"id": 378, "type": "binary_expression", "text": "1 << Input", "parent": 372, "children": [379, 380, 381], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 50}}, {"id": 379, "type": "number_literal", "text": "1", "parent": 378, "children": [], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 41}}, {"id": 380, "type": "<<", "text": "<<", "parent": 378, "children": [], "start_point": {"row": 174, "column": 42}, "end_point": {"row": 174, "column": 44}}, {"id": 381, "type": "identifier", "text": "Input", "parent": 378, "children": [], "start_point": {"row": 174, "column": 45}, "end_point": {"row": 174, "column": 50}}, {"id": 382, "type": "assignment_expression", "text": "mConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift", "parent": 363, "children": [383, 388, 389], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 70}}, {"id": 383, "type": "subscript_expression", "text": "mConnectionState[Input][Output]", "parent": 382, "children": [384, 387], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 34}}, {"id": 384, "type": "subscript_expression", "text": "mConnectionState[Input]", "parent": 383, "children": [385, 386], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 26}}, {"id": 385, "type": "identifier", "text": "mConnectionState", "parent": 384, "children": [], "start_point": {"row": 175, "column": 3}, "end_point": {"row": 175, "column": 19}}, {"id": 386, "type": "identifier", "text": "Input", "parent": 384, "children": [], "start_point": {"row": 175, "column": 20}, "end_point": {"row": 175, "column": 25}}, {"id": 387, "type": "identifier", "text": "Output", "parent": 383, "children": [], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 33}}, {"id": 388, "type": "|=", "text": "|=", "parent": 382, "children": [], "start_point": {"row": 175, "column": 35}, "end_point": {"row": 175, "column": 37}}, {"id": 389, "type": "identifier", "text": "Soc_Aud_InterCon_ConnectionShift", "parent": 382, "children": [], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 70}}, {"id": 390, "type": "break_statement", "text": "break;", "parent": 360, "children": [391], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 8}}, {"id": 391, "type": "break", "text": "break", "parent": 390, "children": [], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 7}}, {"id": 392, "type": "case_statement", "text": "default:\n\t\tpr_err(\"no this state ConnectionState = %d\\n\", ConnectionState);\n\t\tbreak;", "parent": 227, "children": [393, 400], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 181, "column": 8}}, {"id": 393, "type": "default", "text": "default", "parent": 392, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 8}}, {"id": 394, "type": "call_expression", "text": "pr_err(\"no this state ConnectionState = %d\\n\", ConnectionState)", "parent": 392, "children": [395, 396], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 65}}, {"id": 395, "type": "identifier", "text": "pr_err", "parent": 394, "children": [], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 8}}, {"id": 396, "type": "argument_list", "text": "(\"no this state ConnectionState = %d\\n\", ConnectionState)", "parent": 394, "children": [397, 399], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 65}}, {"id": 397, "type": "string_literal", "text": "\"no this state ConnectionState = %d\\n\"", "parent": 396, "children": [398], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 47}}, {"id": 398, "type": "escape_sequence", "text": "\\n", "parent": 397, "children": [], "start_point": {"row": 180, "column": 44}, "end_point": {"row": 180, "column": 46}}, {"id": 399, "type": "identifier", "text": "ConnectionState", "parent": 396, "children": [], "start_point": {"row": 180, "column": 49}, "end_point": {"row": 180, "column": 64}}, {"id": 400, "type": "break_statement", "text": "break;", "parent": 392, "children": [401], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 8}}, {"id": 401, "type": "break", "text": "break", "parent": 400, "children": [], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 7}}, {"id": 402, "type": "return_statement", "text": "return true;", "parent": 207, "children": [403], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 13}}, {"id": 403, "type": "true", "text": "true", "parent": 402, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 12}}, {"id": 404, "type": "call_expression", "text": "EXPORT_SYMBOL(SetConnectionState)", "parent": null, "children": [405, 406], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 33}}, {"id": 405, "type": "identifier", "text": "EXPORT_SYMBOL", "parent": 404, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 13}}, {"id": 406, "type": "argument_list", "text": "(SetConnectionState)", "parent": 404, "children": [407], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 33}}, {"id": 407, "type": "identifier", "text": "SetConnectionState", "parent": 406, "children": [], "start_point": {"row": 186, "column": 14}, "end_point": {"row": 186, "column": 32}}]}, "node_categories": {"declarations": {"functions": [102, 111, 172, 174, 207, 209], "variables": [118, 122, 160, 177, 181, 212, 215, 218, 221], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 40, 42, 43, 45, 46, 48, 49, 51, 52, 54, 55, 57, 58, 60, 61, 63, 64, 66, 67, 69, 70, 72, 73, 75, 76, 78, 79, 81, 82, 84, 85, 87, 88, 90, 91, 93, 94, 96, 97], "modules": [], "enums": []}, "statements": {"expressions": [185, 186, 187, 192, 196, 229, 235, 236, 237, 238, 239, 240, 250, 254, 255, 260, 265, 270, 271, 276, 278, 281, 282, 283, 284, 285, 286, 294, 295, 300, 305, 310, 311, 316, 318, 328, 332, 333, 338, 342, 346, 351, 352, 364, 365, 370, 374, 378, 383, 384, 394, 404], "assignments": [247, 269, 309, 325, 350, 382], "loops": [], "conditionals": [99, 100, 101, 104, 106, 107, 113, 115, 116, 117, 119, 121, 123, 126, 127, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 165, 166, 167, 175, 178, 180, 183, 184, 188, 193, 197, 201, 202, 210, 213, 214, 216, 217, 219, 220, 224, 227, 228, 230, 231, 232, 233, 234, 241, 242, 243, 244, 246, 248, 251, 252, 253, 256, 258, 259, 261, 263, 268, 272, 273, 274, 279, 280, 287, 288, 289, 290, 292, 293, 296, 298, 299, 301, 303, 308, 312, 313, 314, 319, 322, 323, 324, 326, 329, 330, 331, 334, 336, 337, 339, 341, 345, 349, 353, 354, 355, 357, 360, 361, 362, 363, 366, 368, 369, 371, 373, 377, 381, 385, 386, 387, 389, 392, 395, 399, 405, 407], "returns": [203, 205, 402], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 98, 171, 190, 195, 199, 226, 264, 266, 304, 306, 343, 347, 375, 379, 397], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "#define PRINTK_AUDDRV(format, args...) printk(format, ##args)\n"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "#define PRINTK_AUDDRV(format, args...)\n"}, {"node_id": 172, "universal_type": "function", "name": "CheckBitsandReg", "text_snippet": "static bool CheckBitsandReg(short regaddr, char bits)\n{\n\tif (regaddr <= 0 || bits < 0) {\n\t\tprintk(\"r"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "CheckBitsandReg(short regaddr, char bits)"}, {"node_id": 207, "universal_type": "function", "name": "SetConnectionState", "text_snippet": "bool SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)\n{\n\t/* printk(\"SetinputC"}, {"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"AudDrv_Common.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"AudDrv_Def.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"AudDrv_Afe.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"AudDrv_Ana.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"AudDrv_Clk.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"mt_soc_digital_type.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <linux/kernel.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <linux/module.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <linux/init.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <linux/device.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <linux/slab.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <linux/fs.h>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include <linux/completion.h>\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include <linux/mm.h>\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include <linux/delay.h>\n"}, {"node_id": 43, "text": "#include"}, {"node_id": 45, "text": "#include <linux/interrupt.h>\n"}, {"node_id": 46, "text": "#include"}, {"node_id": 48, "text": "#include <linux/dma-mapping.h>\n"}, {"node_id": 49, "text": "#include"}, {"node_id": 51, "text": "#include <linux/vmalloc.h>\n"}, {"node_id": 52, "text": "#include"}, {"node_id": 54, "text": "#include <linux/platform_device.h>\n"}, {"node_id": 55, "text": "#include"}, {"node_id": 57, "text": "#include <linux/miscdevice.h>\n"}, {"node_id": 58, "text": "#include"}, {"node_id": 60, "text": "#include <linux/wait.h>\n"}, {"node_id": 61, "text": "#include"}, {"node_id": 63, "text": "#include <linux/spinlock.h>\n"}, {"node_id": 64, "text": "#include"}, {"node_id": 66, "text": "#include <linux/sched.h>\n"}, {"node_id": 67, "text": "#include"}, {"node_id": 69, "text": "#include <linux/wakelock.h>\n"}, {"node_id": 70, "text": "#include"}, {"node_id": 72, "text": "#include <linux/semaphore.h>\n"}, {"node_id": 73, "text": "#include"}, {"node_id": 75, "text": "#include <linux/jiffies.h>\n"}, {"node_id": 76, "text": "#include"}, {"node_id": 78, "text": "#include <linux/proc_fs.h>\n"}, {"node_id": 79, "text": "#include"}, {"node_id": 81, "text": "#include <linux/string.h>\n"}, {"node_id": 82, "text": "#include"}, {"node_id": 84, "text": "#include <linux/mutex.h>\n"}, {"node_id": 85, "text": "#include"}, {"node_id": 87, "text": "#include <asm/uaccess.h>\n"}, {"node_id": 88, "text": "#include"}, {"node_id": 90, "text": "#include <asm/irq.h>\n"}, {"node_id": 91, "text": "#include"}, {"node_id": 93, "text": "#include <asm/io.h>\n"}, {"node_id": 94, "text": "#include"}, {"node_id": 96, "text": "#include <asm/div64.h>\n"}, {"node_id": 97, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (C) 2007 The Android Open Source Project\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 * Filename:\n * ---------\n * mt_sco_afe_connection.c\n *\n * Project:\n * --------\n * MT6797 Audio Driver Kernel Function\n *\n * Description:\n * ------------\n * Audio register\n *\n * Author:\n * -------\n * <NAME>\n *\n *------------------------------------------------------------------------------\n *\n *******************************************************************************/\n\n\n/*****************************************************************************\n * C O M P I L E R F L A G S\n *****************************************************************************/\n\n\n/*****************************************************************************\n * E X T E R N A L R E F E R E N C E S\n *****************************************************************************/\n\n#include \"AudDrv_Common.h\"\n#include \"AudDrv_Def.h\"\n#include \"AudDrv_Afe.h\"\n#include \"AudDrv_Ana.h\"\n#include \"AudDrv_Clk.h\"\n#include \"mt_soc_digital_type.h\"\n\n#include <linux/kernel.h>\n#include <linux/module.h>\n#include <linux/init.h>\n#include <linux/device.h>\n#include <linux/slab.h>\n#include <linux/fs.h>\n#include <linux/completion.h>\n#include <linux/mm.h>\n#include <linux/delay.h>\n#include <linux/interrupt.h>\n#include <linux/dma-mapping.h>\n#include <linux/vmalloc.h>\n#include <linux/platform_device.h>\n#include <linux/miscdevice.h>\n#include <linux/wait.h>\n#include <linux/spinlock.h>\n#include <linux/sched.h>\n#include <linux/wakelock.h>\n#include <linux/semaphore.h>\n#include <linux/jiffies.h>\n#include <linux/proc_fs.h>\n#include <linux/string.h>\n#include <linux/mutex.h>\n#include <asm/uaccess.h>\n#include <asm/irq.h>\n#include <asm/io.h>\n#include <asm/div64.h>\n\n/*#include <linux/clk.h>\n#include <linux/delay.h>\n#include <linux/gpio.h>\n#include <linux/platform_device.h>\n#include <linux/slab.h>\n#include <sound/core.h>\n#include <sound/soc.h>\n#include <sound/soc-dapm.h>\n#include <sound/pcm.h>\n#include <sound/jack.h>*/\n\n#ifdef DEBUG_AUDDRV\n#define PRINTK_AUDDRV(format, args...) printk(format, ##args)\n#else\n#define PRINTK_AUDDRV(format, args...)\n#endif\n\n/* mutex lock */\nstatic DEFINE_MUTEX(afe_connection_mutex);\n\n/**\n* connection of register\n*/\nconst uint32 mConnectionReg[Soc_Aud_InterConnectionOutput_Num_Output] = {\n\tAFE_CONN0, AFE_CONN1, AFE_CONN2, AFE_CONN3, AFE_CONN4,\n\tAFE_CONN5, AFE_CONN6, AFE_CONN7, AFE_CONN8, AFE_CONN9,\n\tAFE_CONN10, AFE_CONN11, AFE_CONN12, AFE_CONN13, AFE_CONN14,\n\tAFE_CONN15, AFE_CONN16, AFE_CONN17, AFE_CONN18, AFE_CONN19,\n\tAFE_CONN20, AFE_CONN21, AFE_CONN22, AFE_CONN23, AFE_CONN24,\n\tAFE_CONN25, AFE_CONN26, AFE_CONN27, AFE_CONN28, AFE_CONN29,\n\t};\n\n/**\n* connection state of register\n*/\nstatic char mConnectionState[Soc_Aud_InterConnectionInput_Num_Input]\n\t[Soc_Aud_InterConnectionOutput_Num_Output] = { {0} };\n\nstatic bool CheckBitsandReg(short regaddr, char bits)\n{\n\tif (regaddr <= 0 || bits < 0) {\n\t\tprintk(\"regaddr = %x bits = %d\\n\", regaddr, bits);\n\t\treturn false;\n\t}\n\treturn true;\n}\n\nbool SetConnectionState(uint32 ConnectionState, uint32 Input, uint32 Output)\n{\n\t/* printk(\"SetinputConnection ConnectionState = %d\n\tInput = %d Output = %d\\n\", ConnectionState, Input, Output); */\n\tint connectReg = 0;\n\n\tswitch (ConnectionState) {\n\tcase Soc_Aud_InterCon_DisConnect:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_Connection)\n\t\t\t== Soc_Aud_InterCon_Connection) {\n\n\t\t\t/* here to disconnect connect bits */\n\t\t\tconnectReg = mConnectionReg[Output];\n\t\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\t\tAfe_Set_Reg(connectReg, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_Connection);\n\t\t\t}\n\t\t}\n\t\tif ((mConnectionState[Input][Output] & Soc_Aud_InterCon_ConnectionShift)\n\t\t\t== Soc_Aud_InterCon_ConnectionShift) {\n\n\t\t\t/* here to disconnect connect shift bits */\n\t\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\t\tAfe_Set_Reg(AFE_CONN_RS, 0, 1 << Input);\n\t\t\t\tmConnectionState[Input][Output] &= ~(Soc_Aud_InterCon_ConnectionShift);\n\t\t\t}\n\t\t}\n\t\tbreak;\n\t}\n\tcase Soc_Aud_InterCon_Connection:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tconnectReg = mConnectionReg[Output];\n\t\tif (CheckBitsandReg(connectReg, Input)) {\n\t\t\tAfe_Set_Reg(connectReg, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_Connection;\n\t\t}\n\t\tbreak;\n\t}\n\tcase Soc_Aud_InterCon_ConnectionShift:\n\t{\n\t\t/* printk(\"nConnectionState = %d\\n\", ConnectionState); */\n\t\tif (CheckBitsandReg(AFE_CONN_RS, Input)) {\n\t\t\tAfe_Set_Reg(AFE_CONN_RS, 1 << Input, 1 << Input);\n\t\t\tmConnectionState[Input][Output] |= Soc_Aud_InterCon_ConnectionShift;\n\t\t}\n\t\tbreak;\n\t}\n\tdefault:\n\t\tpr_err(\"no this state ConnectionState = %d\\n\", ConnectionState);\n\t\tbreak;\n\t}\n\n\treturn true;\n}\nEXPORT_SYMBOL(SetConnectionState);\n"}
80,449
c
// // UIImage+TYQRCode.h // TuyaCommunityKitSample // // Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com/) // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIImage (TYQRCode) + (UIImage *)ty_qrCodeWithString:(NSString *)str width:(CGFloat)width; @end NS_ASSUME_NONNULL_END
24.25
12
(translation_unit) "//\n// UIImage+TYQRCode.h\n// TuyaCommunityKitSample\n//\n// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com/)\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIImage (TYQRCode)\n\n+ (UIImage *)ty_qrCodeWithString:(NSString *)str width:(CGFloat)width;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// UIImage+TYQRCode.h" (comment) "// TuyaCommunityKitSample" (comment) "//" (comment) "// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com/)" (comment) "//" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (declaration) "NS_ASSUME_NONNULL_BEGIN\n\n@interface UIImage (TYQRCode)\n\n+ (UIImage *)" (type_identifier) "NS_ASSUME_NONNULL_BEGIN" (ERROR) "@interface UIImage (TYQRCode)\n\n+" (ERROR) "@" (identifier) "interface" (function_declarator) "UIImage (TYQRCode)" (identifier) "UIImage" (parameter_list) "(TYQRCode)" (() "(" (identifier) "TYQRCode" ()) ")" (+) "+" (parenthesized_declarator) "(UIImage *)" (() "(" (identifier) "UIImage" (ERROR) "*" (*) "*" ()) ")" (;) "" (labeled_statement) "ty_qrCodeWithString:(NSString *)str" (statement_identifier) "ty_qrCodeWithString" (:) ":" (expression_statement) "(NSString *)str" (cast_expression) "(NSString *)str" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "str" (;) "" (labeled_statement) "width:(CGFloat)width;" (statement_identifier) "width" (:) ":" (expression_statement) "(CGFloat)width;" (cast_expression) "(CGFloat)width" (() "(" (type_descriptor) "CGFloat" (type_identifier) "CGFloat" ()) ")" (identifier) "width" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\n\nNS_ASSUME_NONNULL_END" (type_identifier) "end" (identifier) "NS_ASSUME_NONNULL_END" (;) ""
59
5
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.25, "nodes": 35, "errors": 0, "source_hash": "b416e18a12148fd4309487b18308752a233f29cb83f47df2a1e22089b3e8b700", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/UIKit.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<UIKit/UIKit.h>", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 3, "type": "declaration", "text": "NS_ASSUME_NONNULL_BEGIN\n\n@interface UIImage (TYQRCode)\n\n+ (UIImage *)", "parent": null, "children": [4, 5, 13], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 13, "column": 13}}, {"id": 4, "type": "type_identifier", "text": "NS_ASSUME_NONNULL_BEGIN", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 23}}, {"id": 5, "type": "ERROR", "text": "@interface UIImage (TYQRCode)\n\n+", "parent": 3, "children": [6, 7, 8, 12], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 6, "type": "ERROR", "text": "@", "parent": 5, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 7, "type": "identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 10}}, {"id": 8, "type": "function_declarator", "text": "UIImage (TYQRCode)", "parent": 5, "children": [9, 10], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 29}}, {"id": 9, "type": "identifier", "text": "UIImage", "parent": 8, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 18}}, {"id": 10, "type": "parameter_list", "text": "(TYQRCode)", "parent": 8, "children": [11], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 29}}, {"id": 11, "type": "identifier", "text": "TYQRCode", "parent": 10, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 28}}, {"id": 12, "type": "+", "text": "+", "parent": 5, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 13, "type": "parenthesized_declarator", "text": "(UIImage *)", "parent": 3, "children": [14, 15], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 13}}, {"id": 14, "type": "identifier", "text": "UIImage", "parent": 13, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 10}}, {"id": 15, "type": "ERROR", "text": "*", "parent": 13, "children": [16], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 17, "type": "labeled_statement", "text": "ty_qrCodeWithString:(NSString *)str", "parent": null, "children": [18], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 48}}, {"id": 18, "type": "statement_identifier", "text": "ty_qrCodeWithString", "parent": 17, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 32}}, {"id": 19, "type": "cast_expression", "text": "(NSString *)str", "parent": 17, "children": [20, 24], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 48}}, {"id": 20, "type": "type_descriptor", "text": "NSString *", "parent": 19, "children": [21, 22], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 44}}, {"id": 21, "type": "type_identifier", "text": "NSString", "parent": 20, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 42}}, {"id": 22, "type": "abstract_pointer_declarator", "text": "*", "parent": 20, "children": [23], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 44}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 44}}, {"id": 24, "type": "identifier", "text": "str", "parent": 19, "children": [], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 48}}, {"id": 25, "type": "labeled_statement", "text": "width:(CGFloat)width;", "parent": null, "children": [26], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 70}}, {"id": 26, "type": "statement_identifier", "text": "width", "parent": 25, "children": [], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 54}}, {"id": 27, "type": "cast_expression", "text": "(CGFloat)width", "parent": 25, "children": [28, 30], "start_point": {"row": 13, "column": 55}, "end_point": {"row": 13, "column": 69}}, {"id": 28, "type": "type_descriptor", "text": "CGFloat", "parent": 27, "children": [29], "start_point": {"row": 13, "column": 56}, "end_point": {"row": 13, "column": 63}}, {"id": 29, "type": "type_identifier", "text": "CGFloat", "parent": 28, "children": [], "start_point": {"row": 13, "column": 56}, "end_point": {"row": 13, "column": 63}}, {"id": 30, "type": "identifier", "text": "width", "parent": 27, "children": [], "start_point": {"row": 13, "column": 64}, "end_point": {"row": 13, "column": 69}}, {"id": 31, "type": "ERROR", "text": "@", "parent": null, "children": [32], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 32, "type": "ERROR", "text": "@", "parent": 31, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 33, "type": "declaration", "text": "end\n\nNS_ASSUME_NONNULL_END", "parent": null, "children": [34], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 17, "column": 21}}, {"id": 34, "type": "identifier", "text": "NS_ASSUME_NONNULL_END", "parent": 33, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 21}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [3, 33], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [19, 27], "assignments": [], "loops": [], "conditionals": [4, 7, 9, 11, 14, 18, 21, 24, 26, 29, 30, 34], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "UIImage (TYQRCode)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// UIImage+TYQRCode.h\n// TuyaCommunityKitSample\n//\n// Copyright (c) 2014-2021 Tuya Inc. (https://developer.tuya.com/)\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIImage (TYQRCode)\n\n+ (UIImage *)ty_qrCodeWithString:(NSString *)str width:(CGFloat)width;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,450
c
#pragma once #include "geometrycentral/pointcloud/point_cloud.h" #include "geometrycentral/pointcloud/point_position_geometry.h" #include "geometrycentral/surface/embedded_geometry_interface.h" #include "geometrycentral/surface/surface_point.h" #include <tuple> namespace geometrycentral { namespace pointcloud { std::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>> uniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts); } } // namespace geometrycentral
41.77
13
(translation_unit) "#pragma once\n\n#include "geometrycentral/pointcloud/point_cloud.h"\n#include "geometrycentral/pointcloud/point_position_geometry.h"\n#include "geometrycentral/surface/embedded_geometry_interface.h"\n#include "geometrycentral/surface/surface_point.h"\n\n#include <tuple>\n\nnamespace geometrycentral {\nnamespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}\n} // namespace geometrycentral\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "geometrycentral/pointcloud/point_cloud.h"\n" (#include) "#include" (string_literal) ""geometrycentral/pointcloud/point_cloud.h"" (") """ (string_content) "geometrycentral/pointcloud/point_cloud.h" (") """ (preproc_include) "#include "geometrycentral/pointcloud/point_position_geometry.h"\n" (#include) "#include" (string_literal) ""geometrycentral/pointcloud/point_position_geometry.h"" (") """ (string_content) "geometrycentral/pointcloud/point_position_geometry.h" (") """ (preproc_include) "#include "geometrycentral/surface/embedded_geometry_interface.h"\n" (#include) "#include" (string_literal) ""geometrycentral/surface/embedded_geometry_interface.h"" (") """ (string_content) "geometrycentral/surface/embedded_geometry_interface.h" (") """ (preproc_include) "#include "geometrycentral/surface/surface_point.h"\n" (#include) "#include" (string_literal) ""geometrycentral/surface/surface_point.h"" (") """ (string_content) "geometrycentral/surface/surface_point.h" (") """ (preproc_include) "#include <tuple>\n" (#include) "#include" (system_lib_string) "<tuple>" (function_definition) "namespace geometrycentral {\nnamespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}\n}" (type_identifier) "namespace" (identifier) "geometrycentral" (compound_statement) "{\nnamespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}\n}" ({) "{" (function_definition) "namespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}" (type_identifier) "namespace" (identifier) "pointcloud" (compound_statement) "{\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}" ({) "{" (ERROR) "std::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::" (comma_expression) "std::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface" (identifier) "std" (ERROR) "::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>" (:) ":" (:) ":" (binary_expression) "tuple<std" (identifier) "tuple" (<) "<" (identifier) "std" (:) ":" (:) ":" (binary_expression) "unique_ptr<PointCloud" (identifier) "unique_ptr" (<) "<" (identifier) "PointCloud" (>) ">" (,) "," (binary_expression) "PointData<Vector3" (identifier) "PointData" (<) "<" (identifier) "Vector3" (>) ">" (,) "," (binary_expression) "PointData<surface" (identifier) "PointData" (<) "<" (identifier) "surface" (:) ":" (:) ":" (expression_statement) "SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);" (binary_expression) "SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts)" (identifier) "SurfacePoint" (>>) ">>" (call_expression) "uniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts)" (identifier) "uniformlySamplePointsOnSurface" (argument_list) "(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts)" (() "(" (ERROR) "surface::" (identifier) "surface" (:) ":" (:) ":" (binary_expression) "SurfaceMesh& mesh" (identifier) "SurfaceMesh" (&) "&" (identifier) "mesh" (,) "," (ERROR) "surface::" (identifier) "surface" (:) ":" (:) ":" (binary_expression) "EmbeddedGeometryInterface& geom" (identifier) "EmbeddedGeometryInterface" (&) "&" (identifier) "geom" (,) "," (identifier) "size_t" (ERROR) "nPts" (identifier) "nPts" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// namespace geometrycentral"
105
5
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 41.77, "nodes": 65, "errors": 0, "source_hash": "7ce5b69aef2d0778d88429d68e45651a12b728550ee275c0ec3db62349b876ce", "categorized_nodes": 50}, "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 \"geometrycentral/pointcloud/point_cloud.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": "\"geometrycentral/pointcloud/point_cloud.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 51}}, {"id": 6, "type": "preproc_include", "text": "#include \"geometrycentral/pointcloud/point_position_geometry.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": "\"geometrycentral/pointcloud/point_position_geometry.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 63}}, {"id": 9, "type": "preproc_include", "text": "#include \"geometrycentral/surface/embedded_geometry_interface.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": "\"geometrycentral/surface/embedded_geometry_interface.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 64}}, {"id": 12, "type": "preproc_include", "text": "#include \"geometrycentral/surface/surface_point.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": "\"geometrycentral/surface/surface_point.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 50}}, {"id": 15, "type": "preproc_include", "text": "#include <tuple>\n", "parent": null, "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": "<tuple>", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 16}}, {"id": 18, "type": "function_definition", "text": "namespace geometrycentral {\nnamespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}\n}", "parent": null, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 20, "type": "identifier", "text": "geometrycentral", "parent": 18, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 25}}, {"id": 21, "type": "function_definition", "text": "namespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}", "parent": 18, "children": [22, 23], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 23, "type": "identifier", "text": "pointcloud", "parent": 21, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 20}}, {"id": 24, "type": "ERROR", "text": "std::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::", "parent": 21, "children": [25], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 79}}, {"id": 25, "type": "comma_expression", "text": "std::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface", "parent": 24, "children": [26, 27, 42], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 77}}, {"id": 26, "type": "identifier", "text": "std", "parent": 25, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 3}}, {"id": 27, "type": "ERROR", "text": "::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>", "parent": 25, "children": [28, 32, 36, 37, 41], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 58}}, {"id": 28, "type": "binary_expression", "text": "tuple<std", "parent": 27, "children": [29, 30, 31], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 14}}, {"id": 29, "type": "identifier", "text": "tuple", "parent": 28, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 10}}, {"id": 30, "type": "<", "text": "<", "parent": 28, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 31, "type": "identifier", "text": "std", "parent": 28, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 14}}, {"id": 32, "type": "binary_expression", "text": "unique_ptr<PointCloud", "parent": 27, "children": [33, 34, 35], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 37}}, {"id": 33, "type": "identifier", "text": "unique_ptr", "parent": 32, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 26}}, {"id": 34, "type": "<", "text": "<", "parent": 32, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 27}}, {"id": 35, "type": "identifier", "text": "PointCloud", "parent": 32, "children": [], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 37}}, {"id": 36, "type": ">", "text": ">", "parent": 27, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 38}}, {"id": 37, "type": "binary_expression", "text": "PointData<Vector3", "parent": 27, "children": [38, 39, 40], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 57}}, {"id": 38, "type": "identifier", "text": "PointData", "parent": 37, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 49}}, {"id": 39, "type": "<", "text": "<", "parent": 37, "children": [], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 50}}, {"id": 40, "type": "identifier", "text": "Vector3", "parent": 37, "children": [], "start_point": {"row": 12, "column": 50}, "end_point": {"row": 12, "column": 57}}, {"id": 41, "type": ">", "text": ">", "parent": 27, "children": [], "start_point": {"row": 12, "column": 57}, "end_point": {"row": 12, "column": 58}}, {"id": 42, "type": "binary_expression", "text": "PointData<surface", "parent": 25, "children": [43, 44, 45], "start_point": {"row": 12, "column": 60}, "end_point": {"row": 12, "column": 77}}, {"id": 43, "type": "identifier", "text": "PointData", "parent": 42, "children": [], "start_point": {"row": 12, "column": 60}, "end_point": {"row": 12, "column": 69}}, {"id": 44, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 12, "column": 69}, "end_point": {"row": 12, "column": 70}}, {"id": 45, "type": "identifier", "text": "surface", "parent": 42, "children": [], "start_point": {"row": 12, "column": 70}, "end_point": {"row": 12, "column": 77}}, {"id": 46, "type": "binary_expression", "text": "SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts)", "parent": 21, "children": [47, 48, 49], "start_point": {"row": 12, "column": 79}, "end_point": {"row": 13, "column": 113}}, {"id": 47, "type": "identifier", "text": "SurfacePoint", "parent": 46, "children": [], "start_point": {"row": 12, "column": 79}, "end_point": {"row": 12, "column": 91}}, {"id": 48, "type": ">>", "text": ">>", "parent": 46, "children": [], "start_point": {"row": 12, "column": 91}, "end_point": {"row": 12, "column": 93}}, {"id": 49, "type": "call_expression", "text": "uniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts)", "parent": 46, "children": [50, 51], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 113}}, {"id": 50, "type": "identifier", "text": "uniformlySamplePointsOnSurface", "parent": 49, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 30}}, {"id": 51, "type": "argument_list", "text": "(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts)", "parent": 49, "children": [52, 54, 57, 59, 62, 63], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 113}}, {"id": 52, "type": "ERROR", "text": "surface::", "parent": 51, "children": [53], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 40}}, {"id": 53, "type": "identifier", "text": "surface", "parent": 52, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 38}}, {"id": 54, "type": "binary_expression", "text": "SurfaceMesh& mesh", "parent": 51, "children": [55, 56], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 57}}, {"id": 55, "type": "identifier", "text": "SurfaceMesh", "parent": 54, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 51}}, {"id": 56, "type": "identifier", "text": "mesh", "parent": 54, "children": [], "start_point": {"row": 13, "column": 53}, "end_point": {"row": 13, "column": 57}}, {"id": 57, "type": "ERROR", "text": "surface::", "parent": 51, "children": [58], "start_point": {"row": 13, "column": 59}, "end_point": {"row": 13, "column": 68}}, {"id": 58, "type": "identifier", "text": "surface", "parent": 57, "children": [], "start_point": {"row": 13, "column": 59}, "end_point": {"row": 13, "column": 66}}, {"id": 59, "type": "binary_expression", "text": "EmbeddedGeometryInterface& geom", "parent": 51, "children": [60, 61], "start_point": {"row": 13, "column": 68}, "end_point": {"row": 13, "column": 99}}, {"id": 60, "type": "identifier", "text": "EmbeddedGeometryInterface", "parent": 59, "children": [], "start_point": {"row": 13, "column": 68}, "end_point": {"row": 13, "column": 93}}, {"id": 61, "type": "identifier", "text": "geom", "parent": 59, "children": [], "start_point": {"row": 13, "column": 95}, "end_point": {"row": 13, "column": 99}}, {"id": 62, "type": "identifier", "text": "size_t", "parent": 51, "children": [], "start_point": {"row": 13, "column": 101}, "end_point": {"row": 13, "column": 107}}, {"id": 63, "type": "ERROR", "text": "nPts", "parent": 51, "children": [64], "start_point": {"row": 13, "column": 108}, "end_point": {"row": 13, "column": 112}}, {"id": 64, "type": "identifier", "text": "nPts", "parent": 63, "children": [], "start_point": {"row": 13, "column": 108}, "end_point": {"row": 13, "column": 112}}]}, "node_categories": {"declarations": {"functions": [18, 21], "variables": [], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [25, 28, 32, 37, 42, 46, 49, 54, 59], "assignments": [], "loops": [], "conditionals": [19, 20, 22, 23, 26, 29, 31, 33, 35, 38, 40, 43, 45, 47, 50, 53, 55, 56, 58, 60, 61, 62, 64], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "namespace geometrycentral {\nnamespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointDat"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "namespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surfac"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"geometrycentral/pointcloud/point_cloud.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"geometrycentral/pointcloud/point_position_geometry.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"geometrycentral/surface/embedded_geometry_interface.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"geometrycentral/surface/surface_point.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <tuple>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"geometrycentral/pointcloud/point_cloud.h\"\n#include \"geometrycentral/pointcloud/point_position_geometry.h\"\n#include \"geometrycentral/surface/embedded_geometry_interface.h\"\n#include \"geometrycentral/surface/surface_point.h\"\n\n#include <tuple>\n\nnamespace geometrycentral {\nnamespace pointcloud {\n\nstd::tuple<std::unique_ptr<PointCloud>, PointData<Vector3>, PointData<surface::SurfacePoint>>\nuniformlySamplePointsOnSurface(surface::SurfaceMesh& mesh, surface::EmbeddedGeometryInterface& geom, size_t nPts);\n\n\n}\n} // namespace geometrycentral\n"}
80,451
c
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef TimerData_DEFINED #define TimerData_DEFINED #include "SkString.h" #include "SkTemplates.h" #ifdef SK_BUILD_FOR_WIN #pragma warning(push) #pragma warning(disable : 4530) #endif #include "SkJSONCPP.h" #ifdef SK_BUILD_FOR_WIN #pragma warning(pop) #endif class Timer; class TimerData { public: /** * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values. **/ explicit TimerData(int maxNumTimings); /** * Collect times from the Timer for an iteration. It will fail if called more often than * indicated in the constructor. * * @param Timer Must not be null. */ bool appendTimes(Timer*); enum Result { kMin_Result, kAvg_Result, kPerIter_Result }; enum TimerFlags { kWall_Flag = 0x1, kTruncatedWall_Flag = 0x2, kCpu_Flag = 0x4, kTruncatedCpu_Flag = 0x8, kGpu_Flag = 0x10 }; /** * Gets the timer data results as a string. * @param doubleFormat printf-style format for doubles (e.g. "%02d") * @param result the type of result desired * @param the name of the config being timed (prepended to results string) * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported. * @param itersPerTiming the number of test/bench iterations that correspond to each * appendTimes() call, 1 when appendTimes is called for each iteration. */ SkString getResult(const char* doubleFormat, Result result, const char* configName, uint32_t timerFlags, int itersPerTiming = 1); Json::Value getJSON(uint32_t timerFlags, Result result, int itersPerTiming = 1); private: int fMaxNumTimings; int fCurrTiming; SkAutoTArray<double> fWallTimes; SkAutoTArray<double> fTruncatedWallTimes; SkAutoTArray<double> fCpuTimes; SkAutoTArray<double> fTruncatedCpuTimes; SkAutoTArray<double> fGpuTimes; }; #endif // TimerData_DEFINED
31.66
71
(translation_unit) "/*\n * Copyright 2012 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#ifndef TimerData_DEFINED\n#define TimerData_DEFINED\n\n#include "SkString.h"\n#include "SkTemplates.h"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(push)\n #pragma warning(disable : 4530)\n#endif\n\n#include "SkJSONCPP.h"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(pop)\n#endif\n\nclass Timer;\n\nclass TimerData {\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);\n\n /**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */\n bool appendTimes(Timer*);\n\n enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n };\n\n enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n };\n\n /**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. "%02d")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */\n SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);\n Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);\n\nprivate:\n int fMaxNumTimings;\n int fCurrTiming;\n\n SkAutoTArray<double> fWallTimes;\n SkAutoTArray<double> fTruncatedWallTimes;\n SkAutoTArray<double> fCpuTimes;\n SkAutoTArray<double> fTruncatedCpuTimes;\n SkAutoTArray<double> fGpuTimes;\n};\n\n#endif // TimerData_DEFINED\n" (comment) "/*\n * Copyright 2012 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */" (preproc_ifdef) "#ifndef TimerData_DEFINED\n#define TimerData_DEFINED\n\n#include "SkString.h"\n#include "SkTemplates.h"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(push)\n #pragma warning(disable : 4530)\n#endif\n\n#include "SkJSONCPP.h"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(pop)\n#endif\n\nclass Timer;\n\nclass TimerData {\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);\n\n /**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */\n bool appendTimes(Timer*);\n\n enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n };\n\n enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n };\n\n /**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. "%02d")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */\n SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);\n Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);\n\nprivate:\n int fMaxNumTimings;\n int fCurrTiming;\n\n SkAutoTArray<double> fWallTimes;\n SkAutoTArray<double> fTruncatedWallTimes;\n SkAutoTArray<double> fCpuTimes;\n SkAutoTArray<double> fTruncatedCpuTimes;\n SkAutoTArray<double> fGpuTimes;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "TimerData_DEFINED" (preproc_def) "#define TimerData_DEFINED\n" (#define) "#define" (identifier) "TimerData_DEFINED" (preproc_include) "#include "SkString.h"\n" (#include) "#include" (string_literal) ""SkString.h"" (") """ (string_content) "SkString.h" (") """ (preproc_include) "#include "SkTemplates.h"\n" (#include) "#include" (string_literal) ""SkTemplates.h"" (") """ (string_content) "SkTemplates.h" (") """ (preproc_ifdef) "#ifdef SK_BUILD_FOR_WIN\n #pragma warning(push)\n #pragma warning(disable : 4530)\n#endif" (#ifdef) "#ifdef" (identifier) "SK_BUILD_FOR_WIN" (preproc_call) "#pragma warning(push)\n" (preproc_directive) "#pragma" (preproc_arg) "warning(push)" (preproc_call) "#pragma warning(disable : 4530)\n" (preproc_directive) "#pragma" (preproc_arg) "warning(disable : 4530)" (#endif) "#endif" (preproc_include) "#include "SkJSONCPP.h"\n" (#include) "#include" (string_literal) ""SkJSONCPP.h"" (") """ (string_content) "SkJSONCPP.h" (") """ (preproc_ifdef) "#ifdef SK_BUILD_FOR_WIN\n #pragma warning(pop)\n#endif" (#ifdef) "#ifdef" (identifier) "SK_BUILD_FOR_WIN" (preproc_call) "#pragma warning(pop)\n" (preproc_directive) "#pragma" (preproc_arg) "warning(pop)" (#endif) "#endif" (declaration) "class Timer;" (type_identifier) "class" (identifier) "Timer" (;) ";" (function_definition) "class TimerData {\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);\n\n /**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */\n bool appendTimes(Timer*);\n\n enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n };\n\n enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n };\n\n /**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. "%02d")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */\n SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);\n Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);\n\nprivate:\n int fMaxNumTimings;\n int fCurrTiming;\n\n SkAutoTArray<double> fWallTimes;\n SkAutoTArray<double> fTruncatedWallTimes;\n SkAutoTArray<double> fCpuTimes;\n SkAutoTArray<double> fTruncatedCpuTimes;\n SkAutoTArray<double> fGpuTimes;\n}" (type_identifier) "class" (identifier) "TimerData" (compound_statement) "{\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);\n\n /**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */\n bool appendTimes(Timer*);\n\n enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n };\n\n enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n };\n\n /**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. "%02d")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */\n SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);\n Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);\n\nprivate:\n int fMaxNumTimings;\n int fCurrTiming;\n\n SkAutoTArray<double> fWallTimes;\n SkAutoTArray<double> fTruncatedWallTimes;\n SkAutoTArray<double> fCpuTimes;\n SkAutoTArray<double> fTruncatedCpuTimes;\n SkAutoTArray<double> fGpuTimes;\n}" ({) "{" (labeled_statement) "public:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);" (statement_identifier) "public" (:) ":" (comment) "/**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/" (declaration) "explicit TimerData(int maxNumTimings);" (type_identifier) "explicit" (function_declarator) "TimerData(int maxNumTimings)" (identifier) "TimerData" (parameter_list) "(int maxNumTimings)" (() "(" (parameter_declaration) "int maxNumTimings" (primitive_type) "int" (identifier) "maxNumTimings" ()) ")" (;) ";" (comment) "/**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */" (declaration) "bool appendTimes(Timer*);" (primitive_type) "bool" (function_declarator) "appendTimes(Timer*)" (identifier) "appendTimes" (parameter_list) "(Timer*)" (() "(" (parameter_declaration) "Timer*" (type_identifier) "Timer" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (enum_specifier) "enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n }" (enum) "enum" (type_identifier) "Result" (enumerator_list) "{\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n }" ({) "{" (enumerator) "kMin_Result" (identifier) "kMin_Result" (,) "," (enumerator) "kAvg_Result" (identifier) "kAvg_Result" (,) "," (enumerator) "kPerIter_Result" (identifier) "kPerIter_Result" (}) "}" (;) ";" (enum_specifier) "enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n }" (enum) "enum" (type_identifier) "TimerFlags" (enumerator_list) "{\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n }" ({) "{" (enumerator) "kWall_Flag = 0x1" (identifier) "kWall_Flag" (=) "=" (number_literal) "0x1" (,) "," (enumerator) "kTruncatedWall_Flag = 0x2" (identifier) "kTruncatedWall_Flag" (=) "=" (number_literal) "0x2" (,) "," (enumerator) "kCpu_Flag = 0x4" (identifier) "kCpu_Flag" (=) "=" (number_literal) "0x4" (,) "," (enumerator) "kTruncatedCpu_Flag = 0x8" (identifier) "kTruncatedCpu_Flag" (=) "=" (number_literal) "0x8" (,) "," (enumerator) "kGpu_Flag = 0x10" (identifier) "kGpu_Flag" (=) "=" (number_literal) "0x10" (}) "}" (;) ";" (comment) "/**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. "%02d")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */" (declaration) "SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);" (type_identifier) "SkString" (init_declarator) "getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1" (function_declarator) "getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming" (identifier) "getResult" (parameter_list) "(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming" (() "(" (parameter_declaration) "const char* doubleFormat" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* doubleFormat" (*) "*" (identifier) "doubleFormat" (,) "," (parameter_declaration) "Result result" (type_identifier) "Result" (identifier) "result" (,) "," (parameter_declaration) "const char* configName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* configName" (*) "*" (identifier) "configName" (,) "," (parameter_declaration) "uint32_t timerFlags" (primitive_type) "uint32_t" (identifier) "timerFlags" (,) "," (parameter_declaration) "int itersPerTiming" (primitive_type) "int" (identifier) "itersPerTiming" ()) "" (=) "=" (number_literal) "1" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);" (statement_identifier) "Json" (:) ":" (ERROR) ":" (:) ":" (declaration) "Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);" (type_identifier) "Value" (init_declarator) "getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1" (function_declarator) "getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming" (identifier) "getJSON" (parameter_list) "(uint32_t timerFlags,\n Result result,\n int itersPerTiming" (() "(" (parameter_declaration) "uint32_t timerFlags" (primitive_type) "uint32_t" (identifier) "timerFlags" (,) "," (parameter_declaration) "Result result" (type_identifier) "Result" (identifier) "result" (,) "," (parameter_declaration) "int itersPerTiming" (primitive_type) "int" (identifier) "itersPerTiming" ()) "" (=) "=" (number_literal) "1" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "private:\n int fMaxNumTimings;" (statement_identifier) "private" (:) ":" (declaration) "int fMaxNumTimings;" (primitive_type) "int" (identifier) "fMaxNumTimings" (;) ";" (declaration) "int fCurrTiming;" (primitive_type) "int" (identifier) "fCurrTiming" (;) ";" (expression_statement) "SkAutoTArray<double> fWallTimes;" (binary_expression) "SkAutoTArray<double> fWallTimes" (binary_expression) "SkAutoTArray<double" (identifier) "SkAutoTArray" (<) "<" (identifier) "double" (>) ">" (identifier) "fWallTimes" (;) ";" (expression_statement) "SkAutoTArray<double> fTruncatedWallTimes;" (binary_expression) "SkAutoTArray<double> fTruncatedWallTimes" (binary_expression) "SkAutoTArray<double" (identifier) "SkAutoTArray" (<) "<" (identifier) "double" (>) ">" (identifier) "fTruncatedWallTimes" (;) ";" (expression_statement) "SkAutoTArray<double> fCpuTimes;" (binary_expression) "SkAutoTArray<double> fCpuTimes" (binary_expression) "SkAutoTArray<double" (identifier) "SkAutoTArray" (<) "<" (identifier) "double" (>) ">" (identifier) "fCpuTimes" (;) ";" (expression_statement) "SkAutoTArray<double> fTruncatedCpuTimes;" (binary_expression) "SkAutoTArray<double> fTruncatedCpuTimes" (binary_expression) "SkAutoTArray<double" (identifier) "SkAutoTArray" (<) "<" (identifier) "double" (>) ">" (identifier) "fTruncatedCpuTimes" (;) ";" (expression_statement) "SkAutoTArray<double> fGpuTimes;" (binary_expression) "SkAutoTArray<double> fGpuTimes" (binary_expression) "SkAutoTArray<double" (identifier) "SkAutoTArray" (<) "<" (identifier) "double" (>) ">" (identifier) "fGpuTimes" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// TimerData_DEFINED"
257
3
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 31.66, "nodes": 177, "errors": 0, "source_hash": "aca0f0c8ab99e0cbc25628e6b7c1b94f4cbbf4f4faea89bf4b832d10cfdb41a7", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TimerData_DEFINED\n#define TimerData_DEFINED\n\n#include \"SkString.h\"\n#include \"SkTemplates.h\"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(push)\n #pragma warning(disable : 4530)\n#endif\n\n#include \"SkJSONCPP.h\"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(pop)\n#endif\n\nclass Timer;\n\nclass TimerData {\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);\n\n /**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */\n bool appendTimes(Timer*);\n\n enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n };\n\n enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n };\n\n /**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. \"%02d\")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */\n SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);\n Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);\n\nprivate:\n int fMaxNumTimings;\n int fCurrTiming;\n\n SkAutoTArray<double> fWallTimes;\n SkAutoTArray<double> fTruncatedWallTimes;\n SkAutoTArray<double> fCpuTimes;\n SkAutoTArray<double> fTruncatedCpuTimes;\n SkAutoTArray<double> fGpuTimes;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 22, 25, 32, 34, 176], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 84, "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": "TimerData_DEFINED", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define TimerData_DEFINED\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "TimerData_DEFINED", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include \"SkString.h\"\n", "parent": 0, "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": "string_literal", "text": "\"SkString.h\"", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"SkTemplates.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"SkTemplates.h\"", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 24}}, {"id": 12, "type": "preproc_ifdef", "text": "#ifdef SK_BUILD_FOR_WIN\n #pragma warning(push)\n #pragma warning(disable : 4530)\n#endif", "parent": 0, "children": [13, 14, 15, 18, 21], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 13, "type": "#ifdef", "text": "#ifdef", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 14, "type": "identifier", "text": "SK_BUILD_FOR_WIN", "parent": 12, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 23}}, {"id": 15, "type": "preproc_call", "text": "#pragma warning(push)\n", "parent": 12, "children": [16, 17], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 15, "column": 0}}, {"id": 16, "type": "preproc_directive", "text": "#pragma", "parent": 15, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 11}}, {"id": 17, "type": "preproc_arg", "text": "warning(push)", "parent": 15, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 25}}, {"id": 18, "type": "preproc_call", "text": "#pragma warning(disable : 4530)\n", "parent": 12, "children": [19, 20], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 16, "column": 0}}, {"id": 19, "type": "preproc_directive", "text": "#pragma", "parent": 18, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 20, "type": "preproc_arg", "text": "warning(disable : 4530)", "parent": 18, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 35}}, {"id": 21, "type": "#endif", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 22, "type": "preproc_include", "text": "#include \"SkJSONCPP.h\"\n", "parent": 0, "children": [23, 24], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 24, "type": "string_literal", "text": "\"SkJSONCPP.h\"", "parent": 22, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 22}}, {"id": 25, "type": "preproc_ifdef", "text": "#ifdef SK_BUILD_FOR_WIN\n #pragma warning(pop)\n#endif", "parent": 0, "children": [26, 27, 28, 31], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 26, "type": "#ifdef", "text": "#ifdef", "parent": 25, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 27, "type": "identifier", "text": "SK_BUILD_FOR_WIN", "parent": 25, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 23}}, {"id": 28, "type": "preproc_call", "text": "#pragma warning(pop)\n", "parent": 25, "children": [29, 30], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 22, "column": 0}}, {"id": 29, "type": "preproc_directive", "text": "#pragma", "parent": 28, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 11}}, {"id": 30, "type": "preproc_arg", "text": "warning(pop)", "parent": 28, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 24}}, {"id": 31, "type": "#endif", "text": "#endif", "parent": 25, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 32, "type": "declaration", "text": "class Timer;", "parent": 0, "children": [33], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 12}}, {"id": 33, "type": "identifier", "text": "Timer", "parent": 32, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 11}}, {"id": 34, "type": "function_definition", "text": "class TimerData {\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);\n\n /**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */\n bool appendTimes(Timer*);\n\n enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n };\n\n enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n };\n\n /**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. \"%02d\")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */\n SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);\n Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);\n\nprivate:\n int fMaxNumTimings;\n int fCurrTiming;\n\n SkAutoTArray<double> fWallTimes;\n SkAutoTArray<double> fTruncatedWallTimes;\n SkAutoTArray<double> fCpuTimes;\n SkAutoTArray<double> fTruncatedCpuTimes;\n SkAutoTArray<double> fGpuTimes;\n}", "parent": 0, "children": [35], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 35, "type": "identifier", "text": "TimerData", "parent": 34, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 15}}, {"id": 36, "type": "labeled_statement", "text": "public:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);", "parent": 34, "children": [37], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 31, "column": 42}}, {"id": 37, "type": "declaration", "text": "explicit TimerData(int maxNumTimings);", "parent": 36, "children": [38, 39], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 42}}, {"id": 38, "type": "type_identifier", "text": "explicit", "parent": 37, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 12}}, {"id": 39, "type": "function_declarator", "text": "TimerData(int maxNumTimings)", "parent": 37, "children": [40, 41], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 41}}, {"id": 40, "type": "identifier", "text": "TimerData", "parent": 39, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 22}}, {"id": 41, "type": "parameter_list", "text": "(int maxNumTimings)", "parent": 39, "children": [42], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 41}}, {"id": 42, "type": "parameter_declaration", "text": "int maxNumTimings", "parent": 41, "children": [43, 44], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 40}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 26}}, {"id": 44, "type": "identifier", "text": "maxNumTimings", "parent": 42, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 40}}, {"id": 45, "type": "declaration", "text": "bool appendTimes(Timer*);", "parent": 34, "children": [46, 47], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 29}}, {"id": 46, "type": "primitive_type", "text": "bool", "parent": 45, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 47, "type": "function_declarator", "text": "appendTimes(Timer*)", "parent": 45, "children": [48, 49], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 28}}, {"id": 48, "type": "identifier", "text": "appendTimes", "parent": 47, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 20}}, {"id": 49, "type": "parameter_list", "text": "(Timer*)", "parent": 47, "children": [50], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 28}}, {"id": 50, "type": "parameter_declaration", "text": "Timer*", "parent": 49, "children": [51, 52], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 27}}, {"id": 51, "type": "type_identifier", "text": "Timer", "parent": 50, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 26}}, {"id": 52, "type": "abstract_pointer_declarator", "text": "*", "parent": 50, "children": [53], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 27}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 27}}, {"id": 54, "type": "enum_specifier", "text": "enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n }", "parent": 34, "children": [55, 56, 57], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 45, "column": 5}}, {"id": 55, "type": "enum", "text": "enum", "parent": 54, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 8}}, {"id": 56, "type": "type_identifier", "text": "Result", "parent": 54, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 15}}, {"id": 57, "type": "enumerator_list", "text": "{\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n }", "parent": 54, "children": [58, 60, 62], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 45, "column": 5}}, {"id": 58, "type": "enumerator", "text": "kMin_Result", "parent": 57, "children": [59], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 19}}, {"id": 59, "type": "identifier", "text": "kMin_Result", "parent": 58, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 19}}, {"id": 60, "type": "enumerator", "text": "kAvg_Result", "parent": 57, "children": [61], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 19}}, {"id": 61, "type": "identifier", "text": "kAvg_Result", "parent": 60, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 19}}, {"id": 62, "type": "enumerator", "text": "kPerIter_Result", "parent": 57, "children": [63], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 23}}, {"id": 63, "type": "identifier", "text": "kPerIter_Result", "parent": 62, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 23}}, {"id": 64, "type": "enum_specifier", "text": "enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n }", "parent": 34, "children": [65, 66, 67], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 53, "column": 5}}, {"id": 65, "type": "enum", "text": "enum", "parent": 64, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 8}}, {"id": 66, "type": "type_identifier", "text": "TimerFlags", "parent": 64, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 19}}, {"id": 67, "type": "enumerator_list", "text": "{\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n }", "parent": 64, "children": [68, 72, 76, 80, 84], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 53, "column": 5}}, {"id": 68, "type": "enumerator", "text": "kWall_Flag = 0x1", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 37}}, {"id": 69, "type": "identifier", "text": "kWall_Flag", "parent": 68, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 18}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 33}}, {"id": 71, "type": "number_literal", "text": "0x1", "parent": 68, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 37}}, {"id": 72, "type": "enumerator", "text": "kTruncatedWall_Flag = 0x2", "parent": 67, "children": [73, 74, 75], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 37}}, {"id": 73, "type": "identifier", "text": "kTruncatedWall_Flag", "parent": 72, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 27}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 33}}, {"id": 75, "type": "number_literal", "text": "0x2", "parent": 72, "children": [], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 37}}, {"id": 76, "type": "enumerator", "text": "kCpu_Flag = 0x4", "parent": 67, "children": [77, 78, 79], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 37}}, {"id": 77, "type": "identifier", "text": "kCpu_Flag", "parent": 76, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 17}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 33}}, {"id": 79, "type": "number_literal", "text": "0x4", "parent": 76, "children": [], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 37}}, {"id": 80, "type": "enumerator", "text": "kTruncatedCpu_Flag = 0x8", "parent": 67, "children": [81, 82, 83], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 37}}, {"id": 81, "type": "identifier", "text": "kTruncatedCpu_Flag", "parent": 80, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 26}}, {"id": 82, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 33}}, {"id": 83, "type": "number_literal", "text": "0x8", "parent": 80, "children": [], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 37}}, {"id": 84, "type": "enumerator", "text": "kGpu_Flag = 0x10", "parent": 67, "children": [85, 86, 87], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 38}}, {"id": 85, "type": "identifier", "text": "kGpu_Flag", "parent": 84, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 17}}, {"id": 86, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 33}}, {"id": 87, "type": "number_literal", "text": "0x10", "parent": 84, "children": [], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 38}}, {"id": 88, "type": "declaration", "text": "SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);", "parent": 34, "children": [89, 90], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 68, "column": 47}}, {"id": 89, "type": "type_identifier", "text": "SkString", "parent": 88, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 12}}, {"id": 90, "type": "init_declarator", "text": "getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1", "parent": 88, "children": [91, 113, 114], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 68, "column": 45}}, {"id": 91, "type": "function_declarator", "text": "getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming", "parent": 90, "children": [92, 93], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 68, "column": 41}}, {"id": 92, "type": "identifier", "text": "getResult", "parent": 91, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 22}}, {"id": 93, "type": "parameter_list", "text": "(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming", "parent": 91, "children": [94, 99, 102, 107, 110], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 68, "column": 41}}, {"id": 94, "type": "parameter_declaration", "text": "const char* doubleFormat", "parent": 93, "children": [95, 96], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 47}}, {"id": 95, "type": "primitive_type", "text": "char", "parent": 94, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 33}}, {"id": 96, "type": "pointer_declarator", "text": "* doubleFormat", "parent": 94, "children": [97, 98], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 47}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 34}}, {"id": 98, "type": "identifier", "text": "doubleFormat", "parent": 96, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 47}}, {"id": 99, "type": "parameter_declaration", "text": "Result result", "parent": 93, "children": [100, 101], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 36}}, {"id": 100, "type": "type_identifier", "text": "Result", "parent": 99, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 29}}, {"id": 101, "type": "identifier", "text": "result", "parent": 99, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 36}}, {"id": 102, "type": "parameter_declaration", "text": "const char* configName", "parent": 93, "children": [103, 104], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 45}}, {"id": 103, "type": "primitive_type", "text": "char", "parent": 102, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 33}}, {"id": 104, "type": "pointer_declarator", "text": "* configName", "parent": 102, "children": [105, 106], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 45}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 34}}, {"id": 106, "type": "identifier", "text": "configName", "parent": 104, "children": [], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 45}}, {"id": 107, "type": "parameter_declaration", "text": "uint32_t timerFlags", "parent": 93, "children": [108, 109], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 42}}, {"id": 108, "type": "primitive_type", "text": "uint32_t", "parent": 107, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 31}}, {"id": 109, "type": "identifier", "text": "timerFlags", "parent": 107, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 42}}, {"id": 110, "type": "parameter_declaration", "text": "int itersPerTiming", "parent": 93, "children": [111, 112], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 41}}, {"id": 111, "type": "primitive_type", "text": "int", "parent": 110, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 26}}, {"id": 112, "type": "identifier", "text": "itersPerTiming", "parent": 110, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 41}}, {"id": 113, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 68, "column": 42}, "end_point": {"row": 68, "column": 43}}, {"id": 114, "type": "number_literal", "text": "1", "parent": 90, "children": [], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 45}}, {"id": 115, "type": "labeled_statement", "text": "Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);", "parent": 34, "children": [116, 117], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 71, "column": 48}}, {"id": 116, "type": "statement_identifier", "text": "Json", "parent": 115, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 8}}, {"id": 117, "type": "declaration", "text": "Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);", "parent": 115, "children": [118, 119], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 71, "column": 48}}, {"id": 118, "type": "type_identifier", "text": "Value", "parent": 117, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 15}}, {"id": 119, "type": "init_declarator", "text": "getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1", "parent": 117, "children": [120, 132, 133], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 71, "column": 46}}, {"id": 120, "type": "function_declarator", "text": "getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming", "parent": 119, "children": [121, 122], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 71, "column": 42}}, {"id": 121, "type": "identifier", "text": "getJSON", "parent": 120, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 23}}, {"id": 122, "type": "parameter_list", "text": "(uint32_t timerFlags,\n Result result,\n int itersPerTiming", "parent": 120, "children": [123, 126, 129], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 71, "column": 42}}, {"id": 123, "type": "parameter_declaration", "text": "uint32_t timerFlags", "parent": 122, "children": [124, 125], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 43}}, {"id": 124, "type": "primitive_type", "text": "uint32_t", "parent": 123, "children": [], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 32}}, {"id": 125, "type": "identifier", "text": "timerFlags", "parent": 123, "children": [], "start_point": {"row": 69, "column": 33}, "end_point": {"row": 69, "column": 43}}, {"id": 126, "type": "parameter_declaration", "text": "Result result", "parent": 122, "children": [127, 128], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 37}}, {"id": 127, "type": "type_identifier", "text": "Result", "parent": 126, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 30}}, {"id": 128, "type": "identifier", "text": "result", "parent": 126, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 37}}, {"id": 129, "type": "parameter_declaration", "text": "int itersPerTiming", "parent": 122, "children": [130, 131], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 42}}, {"id": 130, "type": "primitive_type", "text": "int", "parent": 129, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 27}}, {"id": 131, "type": "identifier", "text": "itersPerTiming", "parent": 129, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 42}}, {"id": 132, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 44}}, {"id": 133, "type": "number_literal", "text": "1", "parent": 119, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 46}}, {"id": 134, "type": "labeled_statement", "text": "private:\n int fMaxNumTimings;", "parent": 34, "children": [135], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 23}}, {"id": 135, "type": "declaration", "text": "int fMaxNumTimings;", "parent": 134, "children": [136, 137], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 23}}, {"id": 136, "type": "primitive_type", "text": "int", "parent": 135, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 7}}, {"id": 137, "type": "identifier", "text": "fMaxNumTimings", "parent": 135, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 22}}, {"id": 138, "type": "declaration", "text": "int fCurrTiming;", "parent": 34, "children": [139, 140], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 20}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 7}}, {"id": 140, "type": "identifier", "text": "fCurrTiming", "parent": 138, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 19}}, {"id": 141, "type": "binary_expression", "text": "SkAutoTArray<double> fWallTimes", "parent": 34, "children": [142, 146, 147], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 35}}, {"id": 142, "type": "binary_expression", "text": "SkAutoTArray<double", "parent": 141, "children": [143, 144, 145], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 23}}, {"id": 143, "type": "identifier", "text": "SkAutoTArray", "parent": 142, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 16}}, {"id": 144, "type": "<", "text": "<", "parent": 142, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 17}}, {"id": 145, "type": "identifier", "text": "double", "parent": 142, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 23}}, {"id": 146, "type": ">", "text": ">", "parent": 141, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 24}}, {"id": 147, "type": "identifier", "text": "fWallTimes", "parent": 141, "children": [], "start_point": {"row": 77, "column": 25}, "end_point": {"row": 77, "column": 35}}, {"id": 148, "type": "binary_expression", "text": "SkAutoTArray<double> fTruncatedWallTimes", "parent": 34, "children": [149, 153, 154], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 44}}, {"id": 149, "type": "binary_expression", "text": "SkAutoTArray<double", "parent": 148, "children": [150, 151, 152], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 23}}, {"id": 150, "type": "identifier", "text": "SkAutoTArray", "parent": 149, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 16}}, {"id": 151, "type": "<", "text": "<", "parent": 149, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 17}}, {"id": 152, "type": "identifier", "text": "double", "parent": 149, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 23}}, {"id": 153, "type": ">", "text": ">", "parent": 148, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 24}}, {"id": 154, "type": "identifier", "text": "fTruncatedWallTimes", "parent": 148, "children": [], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 44}}, {"id": 155, "type": "binary_expression", "text": "SkAutoTArray<double> fCpuTimes", "parent": 34, "children": [156, 160, 161], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 34}}, {"id": 156, "type": "binary_expression", "text": "SkAutoTArray<double", "parent": 155, "children": [157, 158, 159], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 23}}, {"id": 157, "type": "identifier", "text": "SkAutoTArray", "parent": 156, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 16}}, {"id": 158, "type": "<", "text": "<", "parent": 156, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 17}}, {"id": 159, "type": "identifier", "text": "double", "parent": 156, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 23}}, {"id": 160, "type": ">", "text": ">", "parent": 155, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 24}}, {"id": 161, "type": "identifier", "text": "fCpuTimes", "parent": 155, "children": [], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 34}}, {"id": 162, "type": "binary_expression", "text": "SkAutoTArray<double> fTruncatedCpuTimes", "parent": 34, "children": [163, 167, 168], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 43}}, {"id": 163, "type": "binary_expression", "text": "SkAutoTArray<double", "parent": 162, "children": [164, 165, 166], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 23}}, {"id": 164, "type": "identifier", "text": "SkAutoTArray", "parent": 163, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 16}}, {"id": 165, "type": "<", "text": "<", "parent": 163, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 17}}, {"id": 166, "type": "identifier", "text": "double", "parent": 163, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 23}}, {"id": 167, "type": ">", "text": ">", "parent": 162, "children": [], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 24}}, {"id": 168, "type": "identifier", "text": "fTruncatedCpuTimes", "parent": 162, "children": [], "start_point": {"row": 80, "column": 25}, "end_point": {"row": 80, "column": 43}}, {"id": 169, "type": "binary_expression", "text": "SkAutoTArray<double> fGpuTimes", "parent": 34, "children": [170, 174, 175], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 34}}, {"id": 170, "type": "binary_expression", "text": "SkAutoTArray<double", "parent": 169, "children": [171, 172, 173], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 23}}, {"id": 171, "type": "identifier", "text": "SkAutoTArray", "parent": 170, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 16}}, {"id": 172, "type": "<", "text": "<", "parent": 170, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 17}}, {"id": 173, "type": "identifier", "text": "double", "parent": 170, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 23}}, {"id": 174, "type": ">", "text": ">", "parent": 169, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 24}}, {"id": 175, "type": "identifier", "text": "fGpuTimes", "parent": 169, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 34}}, {"id": 176, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 6}}]}, "node_categories": {"declarations": {"functions": [34, 39, 47, 91, 120], "variables": [32, 37, 42, 45, 50, 88, 94, 99, 102, 107, 110, 117, 123, 126, 129, 135, 138], "classes": [], "imports": [6, 7, 9, 10, 22, 23], "modules": [], "enums": [54, 55, 57, 58, 60, 62, 64, 65, 67, 68, 72, 76, 80, 84]}, "statements": {"expressions": [141, 142, 148, 149, 155, 156, 162, 163, 169, 170], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 13, 14, 21, 25, 26, 27, 31, 33, 35, 38, 40, 44, 48, 51, 56, 59, 61, 63, 66, 69, 73, 77, 81, 85, 89, 92, 98, 100, 101, 106, 109, 112, 116, 118, 121, 125, 127, 128, 131, 137, 140, 143, 145, 147, 150, 152, 154, 157, 159, 161, 164, 166, 168, 171, 173, 175, 176], "returns": [], "exceptions": []}, "expressions": {"calls": [15, 18, 28], "literals": [8, 11, 24, 71, 75, 79, 83, 87, 114, 133], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "TimerData", "text_snippet": "class TimerData {\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets o"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "TimerData(int maxNumTimings)"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "appendTimes(Timer*)"}, {"node_id": 91, "universal_type": "function", "name": "itersPerTiming", "text_snippet": "getResult(const char* doubleFormat,\n Result result,\n con"}, {"node_id": 120, "universal_type": "function", "name": "itersPerTiming", "text_snippet": "getJSON(uint32_t timerFlags,\n Result result,\n int iter"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"SkString.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"SkTemplates.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 22, "text": "#include \"SkJSONCPP.h\"\n"}, {"node_id": 23, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2012 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#ifndef TimerData_DEFINED\n#define TimerData_DEFINED\n\n#include \"SkString.h\"\n#include \"SkTemplates.h\"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(push)\n #pragma warning(disable : 4530)\n#endif\n\n#include \"SkJSONCPP.h\"\n\n#ifdef SK_BUILD_FOR_WIN\n #pragma warning(pop)\n#endif\n\nclass Timer;\n\nclass TimerData {\npublic:\n /**\n * Constructs a TimerData to hold at most maxNumTimings sets of elapsed timer values.\n **/\n explicit TimerData(int maxNumTimings);\n\n /**\n * Collect times from the Timer for an iteration. It will fail if called more often than\n * indicated in the constructor.\n *\n * @param Timer Must not be null.\n */\n bool appendTimes(Timer*);\n\n enum Result {\n kMin_Result,\n kAvg_Result,\n kPerIter_Result\n };\n\n enum TimerFlags {\n kWall_Flag = 0x1,\n kTruncatedWall_Flag = 0x2,\n kCpu_Flag = 0x4,\n kTruncatedCpu_Flag = 0x8,\n kGpu_Flag = 0x10\n };\n\n /**\n * Gets the timer data results as a string.\n * @param doubleFormat printf-style format for doubles (e.g. \"%02d\")\n * @param result the type of result desired\n * @param the name of the config being timed (prepended to results string)\n * @param timerFlags bitfield of TimerFlags values indicating which timers should be reported.\n * @param itersPerTiming the number of test/bench iterations that correspond to each\n * appendTimes() call, 1 when appendTimes is called for each iteration.\n */\n SkString getResult(const char* doubleFormat,\n Result result,\n const char* configName,\n uint32_t timerFlags,\n int itersPerTiming = 1);\n Json::Value getJSON(uint32_t timerFlags,\n Result result,\n int itersPerTiming = 1);\n\nprivate:\n int fMaxNumTimings;\n int fCurrTiming;\n\n SkAutoTArray<double> fWallTimes;\n SkAutoTArray<double> fTruncatedWallTimes;\n SkAutoTArray<double> fCpuTimes;\n SkAutoTArray<double> fTruncatedCpuTimes;\n SkAutoTArray<double> fGpuTimes;\n};\n\n#endif // TimerData_DEFINED\n"}
80,452
c
/* * ion/shortcut.h * * Copyright (c) <NAME> 2002 * See the included file LICENSE for details. */ #ifndef INCLUDED_SHORTCUT_H #define INCLUDED_SHORTCUT_H #include <X11/keysym.h> #include "function.h" #include "client.h" #include "wedln.h" extern bool shortcut_is_valid(int cut); extern void shortcut_remove(int cut); extern void shortcut_set(WThing *thing, int cut); extern void set_shortcut(WFrame *frame); extern void goto_shortcut(WFrame *frame); #endif /* INCLUDED_SHORTCUT_H */
23.5
20
(translation_unit) "/*\n * ion/shortcut.h\n *\n * Copyright (c) <NAME> 2002\n * See the included file LICENSE for details.\n */\n\n#ifndef INCLUDED_SHORTCUT_H\n#define INCLUDED_SHORTCUT_H\n\n#include <X11/keysym.h>\n#include "function.h"\n#include "client.h"\n#include "wedln.h"\n\n\nextern bool shortcut_is_valid(int cut);\nextern void shortcut_remove(int cut);\nextern void shortcut_set(WThing *thing, int cut);\n\nextern void set_shortcut(WFrame *frame);\nextern void goto_shortcut(WFrame *frame);\n\n\n#endif /* INCLUDED_SHORTCUT_H */\n" (comment) "/*\n * ion/shortcut.h\n *\n * Copyright (c) <NAME> 2002\n * See the included file LICENSE for details.\n */" (preproc_ifdef) "#ifndef INCLUDED_SHORTCUT_H\n#define INCLUDED_SHORTCUT_H\n\n#include <X11/keysym.h>\n#include "function.h"\n#include "client.h"\n#include "wedln.h"\n\n\nextern bool shortcut_is_valid(int cut);\nextern void shortcut_remove(int cut);\nextern void shortcut_set(WThing *thing, int cut);\n\nextern void set_shortcut(WFrame *frame);\nextern void goto_shortcut(WFrame *frame);\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "INCLUDED_SHORTCUT_H" (preproc_def) "#define INCLUDED_SHORTCUT_H\n" (#define) "#define" (identifier) "INCLUDED_SHORTCUT_H" (preproc_include) "#include <X11/keysym.h>\n" (#include) "#include" (system_lib_string) "<X11/keysym.h>" (preproc_include) "#include "function.h"\n" (#include) "#include" (string_literal) ""function.h"" (") """ (string_content) "function.h" (") """ (preproc_include) "#include "client.h"\n" (#include) "#include" (string_literal) ""client.h"" (") """ (string_content) "client.h" (") """ (preproc_include) "#include "wedln.h"\n" (#include) "#include" (string_literal) ""wedln.h"" (") """ (string_content) "wedln.h" (") """ (declaration) "extern bool shortcut_is_valid(int cut);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "bool" (function_declarator) "shortcut_is_valid(int cut)" (identifier) "shortcut_is_valid" (parameter_list) "(int cut)" (() "(" (parameter_declaration) "int cut" (primitive_type) "int" (identifier) "cut" ()) ")" (;) ";" (declaration) "extern void shortcut_remove(int cut);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "shortcut_remove(int cut)" (identifier) "shortcut_remove" (parameter_list) "(int cut)" (() "(" (parameter_declaration) "int cut" (primitive_type) "int" (identifier) "cut" ()) ")" (;) ";" (declaration) "extern void shortcut_set(WThing *thing, int cut);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "shortcut_set(WThing *thing, int cut)" (identifier) "shortcut_set" (parameter_list) "(WThing *thing, int cut)" (() "(" (parameter_declaration) "WThing *thing" (type_identifier) "WThing" (pointer_declarator) "*thing" (*) "*" (identifier) "thing" (,) "," (parameter_declaration) "int cut" (primitive_type) "int" (identifier) "cut" ()) ")" (;) ";" (declaration) "extern void set_shortcut(WFrame *frame);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "set_shortcut(WFrame *frame)" (identifier) "set_shortcut" (parameter_list) "(WFrame *frame)" (() "(" (parameter_declaration) "WFrame *frame" (type_identifier) "WFrame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" ()) ")" (;) ";" (declaration) "extern void goto_shortcut(WFrame *frame);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "goto_shortcut(WFrame *frame)" (identifier) "goto_shortcut" (parameter_list) "(WFrame *frame)" (() "(" (parameter_declaration) "WFrame *frame" (type_identifier) "WFrame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* INCLUDED_SHORTCUT_H */"
106
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 23.5, "nodes": 78, "errors": 0, "source_hash": "d944e6b62334cd24e64c8b02ea86e811b40f1e2fbeb31854912009717e016f13", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef INCLUDED_SHORTCUT_H\n#define INCLUDED_SHORTCUT_H\n\n#include <X11/keysym.h>\n#include \"function.h\"\n#include \"client.h\"\n#include \"wedln.h\"\n\n\nextern bool shortcut_is_valid(int cut);\nextern void shortcut_remove(int cut);\nextern void shortcut_set(WThing *thing, int cut);\n\nextern void set_shortcut(WFrame *frame);\nextern void goto_shortcut(WFrame *frame);\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 28, 38, 53, 65, 77], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 24, "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": "INCLUDED_SHORTCUT_H", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define INCLUDED_SHORTCUT_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "INCLUDED_SHORTCUT_H", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include <X11/keysym.h>\n", "parent": 0, "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": "<X11/keysym.h>", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include \"function.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"function.h\"", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include \"client.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"client.h\"", "parent": 12, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include \"wedln.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"wedln.h\"", "parent": 15, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 18}}, {"id": 18, "type": "declaration", "text": "extern bool shortcut_is_valid(int cut);", "parent": 0, "children": [19, 21, 22], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 39}}, {"id": 19, "type": "storage_class_specifier", "text": "extern", "parent": 18, "children": [20], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 20, "type": "extern", "text": "extern", "parent": 19, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 21, "type": "primitive_type", "text": "bool", "parent": 18, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 11}}, {"id": 22, "type": "function_declarator", "text": "shortcut_is_valid(int cut)", "parent": 18, "children": [23, 24], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 38}}, {"id": 23, "type": "identifier", "text": "shortcut_is_valid", "parent": 22, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 29}}, {"id": 24, "type": "parameter_list", "text": "(int cut)", "parent": 22, "children": [25], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 38}}, {"id": 25, "type": "parameter_declaration", "text": "int cut", "parent": 24, "children": [26, 27], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 37}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 25, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 33}}, {"id": 27, "type": "identifier", "text": "cut", "parent": 25, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 37}}, {"id": 28, "type": "declaration", "text": "extern void shortcut_remove(int cut);", "parent": 0, "children": [29, 31, 32], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 37}}, {"id": 29, "type": "storage_class_specifier", "text": "extern", "parent": 28, "children": [30], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 30, "type": "extern", "text": "extern", "parent": 29, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 31, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 11}}, {"id": 32, "type": "function_declarator", "text": "shortcut_remove(int cut)", "parent": 28, "children": [33, 34], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 36}}, {"id": 33, "type": "identifier", "text": "shortcut_remove", "parent": 32, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 27}}, {"id": 34, "type": "parameter_list", "text": "(int cut)", "parent": 32, "children": [35], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 36}}, {"id": 35, "type": "parameter_declaration", "text": "int cut", "parent": 34, "children": [36, 37], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 35}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 31}}, {"id": 37, "type": "identifier", "text": "cut", "parent": 35, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 35}}, {"id": 38, "type": "declaration", "text": "extern void shortcut_set(WThing *thing, int cut);", "parent": 0, "children": [39, 41, 42], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 49}}, {"id": 39, "type": "storage_class_specifier", "text": "extern", "parent": 38, "children": [40], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 40, "type": "extern", "text": "extern", "parent": 39, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 41, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 11}}, {"id": 42, "type": "function_declarator", "text": "shortcut_set(WThing *thing, int cut)", "parent": 38, "children": [43, 44], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 48}}, {"id": 43, "type": "identifier", "text": "shortcut_set", "parent": 42, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 24}}, {"id": 44, "type": "parameter_list", "text": "(WThing *thing, int cut)", "parent": 42, "children": [45, 50], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 48}}, {"id": 45, "type": "parameter_declaration", "text": "WThing *thing", "parent": 44, "children": [46, 47], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 38}}, {"id": 46, "type": "type_identifier", "text": "WThing", "parent": 45, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 31}}, {"id": 47, "type": "pointer_declarator", "text": "*thing", "parent": 45, "children": [48, 49], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 38}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 33}}, {"id": 49, "type": "identifier", "text": "thing", "parent": 47, "children": [], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 38}}, {"id": 50, "type": "parameter_declaration", "text": "int cut", "parent": 44, "children": [51, 52], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 47}}, {"id": 51, "type": "primitive_type", "text": "int", "parent": 50, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 43}}, {"id": 52, "type": "identifier", "text": "cut", "parent": 50, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 47}}, {"id": 53, "type": "declaration", "text": "extern void set_shortcut(WFrame *frame);", "parent": 0, "children": [54, 56, 57], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 40}}, {"id": 54, "type": "storage_class_specifier", "text": "extern", "parent": 53, "children": [55], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 55, "type": "extern", "text": "extern", "parent": 54, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 11}}, {"id": 57, "type": "function_declarator", "text": "set_shortcut(WFrame *frame)", "parent": 53, "children": [58, 59], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 39}}, {"id": 58, "type": "identifier", "text": "set_shortcut", "parent": 57, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 24}}, {"id": 59, "type": "parameter_list", "text": "(WFrame *frame)", "parent": 57, "children": [60], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 39}}, {"id": 60, "type": "parameter_declaration", "text": "WFrame *frame", "parent": 59, "children": [61, 62], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 38}}, {"id": 61, "type": "type_identifier", "text": "WFrame", "parent": 60, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 31}}, {"id": 62, "type": "pointer_declarator", "text": "*frame", "parent": 60, "children": [63, 64], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 38}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 33}}, {"id": 64, "type": "identifier", "text": "frame", "parent": 62, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 38}}, {"id": 65, "type": "declaration", "text": "extern void goto_shortcut(WFrame *frame);", "parent": 0, "children": [66, 68, 69], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 41}}, {"id": 66, "type": "storage_class_specifier", "text": "extern", "parent": 65, "children": [67], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 67, "type": "extern", "text": "extern", "parent": 66, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 11}}, {"id": 69, "type": "function_declarator", "text": "goto_shortcut(WFrame *frame)", "parent": 65, "children": [70, 71], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 40}}, {"id": 70, "type": "identifier", "text": "goto_shortcut", "parent": 69, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 25}}, {"id": 71, "type": "parameter_list", "text": "(WFrame *frame)", "parent": 69, "children": [72], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 40}}, {"id": 72, "type": "parameter_declaration", "text": "WFrame *frame", "parent": 71, "children": [73, 74], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 39}}, {"id": 73, "type": "type_identifier", "text": "WFrame", "parent": 72, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 32}}, {"id": 74, "type": "pointer_declarator", "text": "*frame", "parent": 72, "children": [75, 76], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 39}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 34}}, {"id": 76, "type": "identifier", "text": "frame", "parent": 74, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 39}}, {"id": 77, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}]}, "node_categories": {"declarations": {"functions": [22, 32, 42, 57, 69], "variables": [18, 25, 28, 35, 38, 45, 50, 53, 60, 65, 72], "classes": [19, 29, 39, 54, 66], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 23, 27, 33, 37, 43, 46, 49, 52, 58, 61, 64, 70, 73, 76, 77], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "shortcut_is_valid(int cut)"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "shortcut_remove(int cut)"}, {"node_id": 42, "universal_type": "function", "name": "cut)", "text_snippet": "shortcut_set(WThing *thing, int cut)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "set_shortcut(WFrame *frame)"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "goto_shortcut(WFrame *frame)"}], "class_declarations": [{"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 29, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 39, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 66, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include <X11/keysym.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"function.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"client.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"wedln.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/*\n * ion/shortcut.h\n *\n * Copyright (c) <NAME> 2002\n * See the included file LICENSE for details.\n */\n\n#ifndef INCLUDED_SHORTCUT_H\n#define INCLUDED_SHORTCUT_H\n\n#include <X11/keysym.h>\n#include \"function.h\"\n#include \"client.h\"\n#include \"wedln.h\"\n\n\nextern bool shortcut_is_valid(int cut);\nextern void shortcut_remove(int cut);\nextern void shortcut_set(WThing *thing, int cut);\n\nextern void set_shortcut(WFrame *frame);\nextern void goto_shortcut(WFrame *frame);\n\n\n#endif /* INCLUDED_SHORTCUT_H */\n"}
80,453
c
/** GUI themes. Copyright (c) 2018 <NAME> */ #include <fmedia.h> #include <gui-winapi/gui.h> #include <FF/gui/loader.h> #include <FF/data/conf-copy.h> #include <FFOS/process.h> #define dbglog0(...) fmed_dbglog(core, NULL, "gui", __VA_ARGS__) #define errlog0(...) fmed_errlog(core, NULL, "gui", __VA_ARGS__) #define syserrlog0(...) fmed_syserrlog(core, NULL, "gui", __VA_ARGS__) enum { MENU_FIRST_IDX = 11, }; struct theme { char *name; }; struct theme_reader { struct theme *find; uint found :1; }; static int theme_conf_new(ffconf_scheme *cs, void *obj) { struct theme_reader *tr = obj; const ffstr *name = ffconf_scheme_objval(cs); static const ffconf_arg dummy = {}; if (tr->find != NULL) { if (!ffstr_eqz(name, tr->find->name)) { ffconf_scheme_skipctx(cs); return 0; } ffconf_scheme_addctx(cs, &dummy, NULL); tr->found = 1; return 0; } struct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme); if (NULL == (t->name = ffsz_alcopystr(name))) return FFPARS_ESYS; ffconf_scheme_skipctx(cs); return 0; } static const ffconf_arg gui_themeconf_args[] = { { "theme", FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new }, {} }; /** Read themes data from file and: a) prepare themes array (set theme name) b) gather theme's data and write to file */ static int themes_read2(struct theme *t, const char *ofn) { int rc = -1, r; ffbool copy = 0; ffconf_ctxcopy ctxcopy = {}; ffstr themedata = {}; ffvec ddata = {}; char *fn = NULL; struct theme_reader tr = {}; tr.find = t; ffconf conf = {}; ffconf_init(&conf); ffconf_scheme cs = {}; ffconf_scheme_init(&cs, &conf); ffconf_scheme_addctx(&cs, gui_themeconf_args, &tr); fn = core->getpath(FFSTR("theme.conf")); if (0 != fffile_readwhole(fn, &ddata, -1)) { syserrlog0("theme.conf parser: fffile_readwhole"); goto end; } ffstr data; ffstr_set2(&data, &ddata); while (data.len != 0) { r = ffconf_parse(&conf, &data); if (r < 0) { errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r)); goto end; } if (copy) { r = ffconf_ctx_copy(&ctxcopy, conf.val, r); if (r < 0) { errlog0("theme.conf parser: ffconf_ctx_copy"); goto end; } else if (r > 0) { themedata = ffconf_ctxcopy_acquire(&ctxcopy); ffconf_ctxcopy_destroy(&ctxcopy); if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) { syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn); goto end; } rc = 0; goto end; } continue; } r = ffconf_scheme_process(&cs, r); if (r < 0) { errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg); goto end; } if (tr.found) { ffconf_ctxcopy_init(&ctxcopy); copy = 1; } } end: ffmem_free(fn); ffstr_free(&themedata); ffconf_fin(&conf); ffconf_scheme_destroy(&cs); ffvec_free(&ddata); ffconf_ctxcopy_destroy(&ctxcopy); return rc; } void gui_themes_read(void) { themes_read2(NULL, NULL); } void gui_themes_destroy(void) { struct theme *t; FFARR_WALKT(&gg->themes, t, struct theme) { ffmem_free(t->name); } ffarr_free(&gg->themes); } /** Add menu items to switch between themes. */ void gui_themes_add(uint def) { struct theme *t; ffui_menuitem mi = {}; char buf[64]; uint i = MENU_FIRST_IDX, id = 0; ffui_menu_rm(&gg->mfile, i); if (def == 0) ffui_menu_addstate(&mi, FFUI_MENU_CHECKED); FFARR_WALKT(&gg->themes, t, struct theme) { ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME); ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK); size_t n = ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name); ffui_menu_settext(&mi, buf, n); ffui_menu_ins(&gg->mfile, i++, &mi); } if (def != 0) gui_theme_set(def); } /** Apply UI changes from a theme. */ void gui_theme_set(int idx) { dbglog0("applying theme %d...", idx); struct theme *t = ffarr_itemT(&gg->themes, idx, struct theme); char *fn = ffenv_expand(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf"); if (0 != themes_read2(t, fn)) return; ffui_loader ldr; ffui_ldr_init2(&ldr, &gui_getctl, NULL, gg); ffui_ldr_loadconf(&ldr, fn); fffile_rm(fn); ffui_menuitem mi = {}; ffui_menu_clearstate(&mi, FFUI_MENU_CHECKED); ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi); ffui_menu_addstate(&mi, FFUI_MENU_CHECKED); ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi); gg->theme_index = idx; wmain_redraw(); ffmem_free(fn); ffui_ldr_fin(&ldr); }
25.49
166
(translation_unit) "/** GUI themes.\nCopyright (c) 2018 <NAME> */\n\n#include <fmedia.h>\n#include <gui-winapi/gui.h>\n#include <FF/gui/loader.h>\n#include <FF/data/conf-copy.h>\n#include <FFOS/process.h>\n\n\n#define dbglog0(...) fmed_dbglog(core, NULL, "gui", __VA_ARGS__)\n#define errlog0(...) fmed_errlog(core, NULL, "gui", __VA_ARGS__)\n#define syserrlog0(...) fmed_syserrlog(core, NULL, "gui", __VA_ARGS__)\n\nenum {\n MENU_FIRST_IDX = 11,\n};\n\nstruct theme {\n char *name;\n};\n\nstruct theme_reader {\n struct theme *find;\n uint found :1;\n};\n\nstatic int theme_conf_new(ffconf_scheme *cs, void *obj)\n{\n struct theme_reader *tr = obj;\n const ffstr *name = ffconf_scheme_objval(cs);\n\n static const ffconf_arg dummy = {};\n\n if (tr->find != NULL) {\n if (!ffstr_eqz(name, tr->find->name)) {\n ffconf_scheme_skipctx(cs);\n return 0;\n }\n ffconf_scheme_addctx(cs, &dummy, NULL);\n tr->found = 1;\n return 0;\n }\n\n struct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme);\n if (NULL == (t->name = ffsz_alcopystr(name)))\n return FFPARS_ESYS;\n ffconf_scheme_skipctx(cs);\n return 0;\n}\n\nstatic const ffconf_arg gui_themeconf_args[] = {\n { "theme", FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n {}\n};\n\n/** Read themes data from file and:\n a) prepare themes array (set theme name)\n b) gather theme's data and write to file */\nstatic int themes_read2(struct theme *t, const char *ofn)\n{\n int rc = -1, r;\n ffbool copy = 0;\n ffconf_ctxcopy ctxcopy = {};\n ffstr themedata = {};\n ffvec ddata = {};\n char *fn = NULL;\n\n struct theme_reader tr = {};\n tr.find = t;\n\n ffconf conf = {};\n ffconf_init(&conf);\n\n ffconf_scheme cs = {};\n ffconf_scheme_init(&cs, &conf);\n ffconf_scheme_addctx(&cs, gui_themeconf_args, &tr);\n\n fn = core->getpath(FFSTR("theme.conf"));\n if (0 != fffile_readwhole(fn, &ddata, -1)) {\n syserrlog0("theme.conf parser: fffile_readwhole");\n goto end;\n }\n\n ffstr data;\n ffstr_set2(&data, &ddata);\n\n while (data.len != 0) {\n r = ffconf_parse(&conf, &data);\n if (r < 0) {\n errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));\n goto end;\n }\n\n if (copy) {\n r = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }\n continue;\n }\n\n r = ffconf_scheme_process(&cs, r);\n if (r < 0) {\n errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);\n goto end;\n }\n\n if (tr.found) {\n ffconf_ctxcopy_init(&ctxcopy);\n copy = 1;\n }\n }\n\nend:\n ffmem_free(fn);\n ffstr_free(&themedata);\n ffconf_fin(&conf);\n ffconf_scheme_destroy(&cs);\n ffvec_free(&ddata);\n ffconf_ctxcopy_destroy(&ctxcopy);\n return rc;\n}\n\nvoid gui_themes_read(void)\n{\n themes_read2(NULL, NULL);\n}\n\nvoid gui_themes_destroy(void)\n{\n struct theme *t;\n FFARR_WALKT(&gg->themes, t, struct theme) {\n ffmem_free(t->name);\n }\n ffarr_free(&gg->themes);\n}\n\n/** Add menu items to switch between themes. */\nvoid gui_themes_add(uint def)\n{\n struct theme *t;\n ffui_menuitem mi = {};\n char buf[64];\n uint i = MENU_FIRST_IDX, id = 0;\n\n ffui_menu_rm(&gg->mfile, i);\n\n if (def == 0)\n ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n\n FFARR_WALKT(&gg->themes, t, struct theme) {\n ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME);\n ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK);\n size_t n = ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name);\n ffui_menu_settext(&mi, buf, n);\n ffui_menu_ins(&gg->mfile, i++, &mi);\n }\n\n if (def != 0)\n gui_theme_set(def);\n}\n\n/** Apply UI changes from a theme. */\nvoid gui_theme_set(int idx)\n{\n dbglog0("applying theme %d...", idx);\n struct theme *t = ffarr_itemT(&gg->themes, idx, struct theme);\n\n char *fn = ffenv_expand(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf");\n if (0 != themes_read2(t, fn))\n return;\n\n ffui_loader ldr;\n ffui_ldr_init2(&ldr, &gui_getctl, NULL, gg);\n ffui_ldr_loadconf(&ldr, fn);\n fffile_rm(fn);\n\n ffui_menuitem mi = {};\n ffui_menu_clearstate(&mi, FFUI_MENU_CHECKED);\n ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi);\n ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi);\n gg->theme_index = idx;\n\n wmain_redraw();\n\n ffmem_free(fn);\n ffui_ldr_fin(&ldr);\n}\n" (comment) "/** GUI themes.\nCopyright (c) 2018 <NAME> */" (preproc_include) "#include <fmedia.h>\n" (#include) "#include" (system_lib_string) "<fmedia.h>" (preproc_include) "#include <gui-winapi/gui.h>\n" (#include) "#include" (system_lib_string) "<gui-winapi/gui.h>" (preproc_include) "#include <FF/gui/loader.h>\n" (#include) "#include" (system_lib_string) "<FF/gui/loader.h>" (preproc_include) "#include <FF/data/conf-copy.h>\n" (#include) "#include" (system_lib_string) "<FF/data/conf-copy.h>" (preproc_include) "#include <FFOS/process.h>\n" (#include) "#include" (system_lib_string) "<FFOS/process.h>" (preproc_function_def) "#define dbglog0(...) fmed_dbglog(core, NULL, "gui", __VA_ARGS__)\n" (#define) "#define" (identifier) "dbglog0" (preproc_params) "(...)" (() "(" (...) "..." ()) ")" (preproc_arg) "fmed_dbglog(core, NULL, "gui", __VA_ARGS__)" (preproc_function_def) "#define errlog0(...) fmed_errlog(core, NULL, "gui", __VA_ARGS__)\n" (#define) "#define" (identifier) "errlog0" (preproc_params) "(...)" (() "(" (...) "..." ()) ")" (preproc_arg) "fmed_errlog(core, NULL, "gui", __VA_ARGS__)" (preproc_function_def) "#define syserrlog0(...) fmed_syserrlog(core, NULL, "gui", __VA_ARGS__)\n" (#define) "#define" (identifier) "syserrlog0" (preproc_params) "(...)" (() "(" (...) "..." ()) ")" (preproc_arg) "fmed_syserrlog(core, NULL, "gui", __VA_ARGS__)" (enum_specifier) "enum {\n MENU_FIRST_IDX = 11,\n}" (enum) "enum" (enumerator_list) "{\n MENU_FIRST_IDX = 11,\n}" ({) "{" (enumerator) "MENU_FIRST_IDX = 11" (identifier) "MENU_FIRST_IDX" (=) "=" (number_literal) "11" (,) "," (}) "}" (;) ";" (struct_specifier) "struct theme {\n char *name;\n}" (struct) "struct" (type_identifier) "theme" (field_declaration_list) "{\n char *name;\n}" ({) "{" (field_declaration) "char *name;" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct theme_reader {\n struct theme *find;\n uint found :1;\n}" (struct) "struct" (type_identifier) "theme_reader" (field_declaration_list) "{\n struct theme *find;\n uint found :1;\n}" ({) "{" (field_declaration) "struct theme *find;" (struct_specifier) "struct theme" (struct) "struct" (type_identifier) "theme" (pointer_declarator) "*find" (*) "*" (field_identifier) "find" (;) ";" (field_declaration) "uint found :1;" (type_identifier) "uint" (field_identifier) "found" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (}) "}" (;) ";" (function_definition) "static int theme_conf_new(ffconf_scheme *cs, void *obj)\n{\n struct theme_reader *tr = obj;\n const ffstr *name = ffconf_scheme_objval(cs);\n\n static const ffconf_arg dummy = {};\n\n if (tr->find != NULL) {\n if (!ffstr_eqz(name, tr->find->name)) {\n ffconf_scheme_skipctx(cs);\n return 0;\n }\n ffconf_scheme_addctx(cs, &dummy, NULL);\n tr->found = 1;\n return 0;\n }\n\n struct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme);\n if (NULL == (t->name = ffsz_alcopystr(name)))\n return FFPARS_ESYS;\n ffconf_scheme_skipctx(cs);\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "theme_conf_new(ffconf_scheme *cs, void *obj)" (identifier) "theme_conf_new" (parameter_list) "(ffconf_scheme *cs, void *obj)" (() "(" (parameter_declaration) "ffconf_scheme *cs" (type_identifier) "ffconf_scheme" (pointer_declarator) "*cs" (*) "*" (identifier) "cs" (,) "," (parameter_declaration) "void *obj" (primitive_type) "void" (pointer_declarator) "*obj" (*) "*" (identifier) "obj" ()) ")" (compound_statement) "{\n struct theme_reader *tr = obj;\n const ffstr *name = ffconf_scheme_objval(cs);\n\n static const ffconf_arg dummy = {};\n\n if (tr->find != NULL) {\n if (!ffstr_eqz(name, tr->find->name)) {\n ffconf_scheme_skipctx(cs);\n return 0;\n }\n ffconf_scheme_addctx(cs, &dummy, NULL);\n tr->found = 1;\n return 0;\n }\n\n struct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme);\n if (NULL == (t->name = ffsz_alcopystr(name)))\n return FFPARS_ESYS;\n ffconf_scheme_skipctx(cs);\n return 0;\n}" ({) "{" (declaration) "struct theme_reader *tr = obj;" (struct_specifier) "struct theme_reader" (struct) "struct" (type_identifier) "theme_reader" (init_declarator) "*tr = obj" (pointer_declarator) "*tr" (*) "*" (identifier) "tr" (=) "=" (identifier) "obj" (;) ";" (declaration) "const ffstr *name = ffconf_scheme_objval(cs);" (type_qualifier) "const" (const) "const" (type_identifier) "ffstr" (init_declarator) "*name = ffconf_scheme_objval(cs)" (pointer_declarator) "*name" (*) "*" (identifier) "name" (=) "=" (call_expression) "ffconf_scheme_objval(cs)" (identifier) "ffconf_scheme_objval" (argument_list) "(cs)" (() "(" (identifier) "cs" ()) ")" (;) ";" (declaration) "static const ffconf_arg dummy = {};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "ffconf_arg" (init_declarator) "dummy = {}" (identifier) "dummy" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (if_statement) "if (tr->find != NULL) {\n if (!ffstr_eqz(name, tr->find->name)) {\n ffconf_scheme_skipctx(cs);\n return 0;\n }\n ffconf_scheme_addctx(cs, &dummy, NULL);\n tr->found = 1;\n return 0;\n }" (if) "if" (parenthesized_expression) "(tr->find != NULL)" (() "(" (binary_expression) "tr->find != NULL" (field_expression) "tr->find" (identifier) "tr" (->) "->" (field_identifier) "find" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n if (!ffstr_eqz(name, tr->find->name)) {\n ffconf_scheme_skipctx(cs);\n return 0;\n }\n ffconf_scheme_addctx(cs, &dummy, NULL);\n tr->found = 1;\n return 0;\n }" ({) "{" (if_statement) "if (!ffstr_eqz(name, tr->find->name)) {\n ffconf_scheme_skipctx(cs);\n return 0;\n }" (if) "if" (parenthesized_expression) "(!ffstr_eqz(name, tr->find->name))" (() "(" (unary_expression) "!ffstr_eqz(name, tr->find->name)" (!) "!" (call_expression) "ffstr_eqz(name, tr->find->name)" (identifier) "ffstr_eqz" (argument_list) "(name, tr->find->name)" (() "(" (identifier) "name" (,) "," (field_expression) "tr->find->name" (field_expression) "tr->find" (identifier) "tr" (->) "->" (field_identifier) "find" (->) "->" (field_identifier) "name" ()) ")" ()) ")" (compound_statement) "{\n ffconf_scheme_skipctx(cs);\n return 0;\n }" ({) "{" (expression_statement) "ffconf_scheme_skipctx(cs);" (call_expression) "ffconf_scheme_skipctx(cs)" (identifier) "ffconf_scheme_skipctx" (argument_list) "(cs)" (() "(" (identifier) "cs" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "ffconf_scheme_addctx(cs, &dummy, NULL);" (call_expression) "ffconf_scheme_addctx(cs, &dummy, NULL)" (identifier) "ffconf_scheme_addctx" (argument_list) "(cs, &dummy, NULL)" (() "(" (identifier) "cs" (,) "," (pointer_expression) "&dummy" (&) "&" (identifier) "dummy" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "tr->found = 1;" (assignment_expression) "tr->found = 1" (field_expression) "tr->found" (identifier) "tr" (->) "->" (field_identifier) "found" (=) "=" (number_literal) "1" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (declaration) "struct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme);" (struct_specifier) "struct theme" (struct) "struct" (type_identifier) "theme" (init_declarator) "*t = ffarr_pushgrowT(&gg->themes, 2, struct theme)" (pointer_declarator) "*t" (*) "*" (identifier) "t" (=) "=" (call_expression) "ffarr_pushgrowT(&gg->themes, 2, struct theme)" (identifier) "ffarr_pushgrowT" (argument_list) "(&gg->themes, 2, struct theme)" (() "(" (pointer_expression) "&gg->themes" (&) "&" (field_expression) "gg->themes" (identifier) "gg" (->) "->" (field_identifier) "themes" (,) "," (number_literal) "2" (,) "," (identifier) "struct" (ERROR) "theme" (identifier) "theme" ()) ")" (;) ";" (if_statement) "if (NULL == (t->name = ffsz_alcopystr(name)))\n return FFPARS_ESYS;" (if) "if" (parenthesized_expression) "(NULL == (t->name = ffsz_alcopystr(name)))" (() "(" (binary_expression) "NULL == (t->name = ffsz_alcopystr(name))" (null) "NULL" (NULL) "NULL" (==) "==" (parenthesized_expression) "(t->name = ffsz_alcopystr(name))" (() "(" (assignment_expression) "t->name = ffsz_alcopystr(name)" (field_expression) "t->name" (identifier) "t" (->) "->" (field_identifier) "name" (=) "=" (call_expression) "ffsz_alcopystr(name)" (identifier) "ffsz_alcopystr" (argument_list) "(name)" (() "(" (identifier) "name" ()) ")" ()) ")" ()) ")" (return_statement) "return FFPARS_ESYS;" (return) "return" (identifier) "FFPARS_ESYS" (;) ";" (expression_statement) "ffconf_scheme_skipctx(cs);" (call_expression) "ffconf_scheme_skipctx(cs)" (identifier) "ffconf_scheme_skipctx" (argument_list) "(cs)" (() "(" (identifier) "cs" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (declaration) "static const ffconf_arg gui_themeconf_args[] = {\n { "theme", FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n {}\n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "ffconf_arg" (init_declarator) "gui_themeconf_args[] = {\n { "theme", FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n {}\n}" (array_declarator) "gui_themeconf_args[]" (identifier) "gui_themeconf_args" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n { "theme", FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n {}\n}" ({) "{" (initializer_list) "{ "theme", FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new }" ({) "{" (string_literal) ""theme"" (") """ (string_content) "theme" (") """ (,) "," (binary_expression) "FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI" (binary_expression) "FFCONF_TOBJ | FFCONF_FNOTEMPTY" (identifier) "FFCONF_TOBJ" (|) "|" (identifier) "FFCONF_FNOTEMPTY" (|) "|" (identifier) "FFCONF_FMULTI" (,) "," (cast_expression) "(ffsize)theme_conf_new" (() "(" (type_descriptor) "ffsize" (type_identifier) "ffsize" ()) ")" (identifier) "theme_conf_new" (}) "}" (,) "," (initializer_list) "{}" ({) "{" (}) "}" (}) "}" (;) ";" (comment) "/** Read themes data from file and:\n a) prepare themes array (set theme name)\n b) gather theme's data and write to file */" (function_definition) "static int themes_read2(struct theme *t, const char *ofn)\n{\n int rc = -1, r;\n ffbool copy = 0;\n ffconf_ctxcopy ctxcopy = {};\n ffstr themedata = {};\n ffvec ddata = {};\n char *fn = NULL;\n\n struct theme_reader tr = {};\n tr.find = t;\n\n ffconf conf = {};\n ffconf_init(&conf);\n\n ffconf_scheme cs = {};\n ffconf_scheme_init(&cs, &conf);\n ffconf_scheme_addctx(&cs, gui_themeconf_args, &tr);\n\n fn = core->getpath(FFSTR("theme.conf"));\n if (0 != fffile_readwhole(fn, &ddata, -1)) {\n syserrlog0("theme.conf parser: fffile_readwhole");\n goto end;\n }\n\n ffstr data;\n ffstr_set2(&data, &ddata);\n\n while (data.len != 0) {\n r = ffconf_parse(&conf, &data);\n if (r < 0) {\n errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));\n goto end;\n }\n\n if (copy) {\n r = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }\n continue;\n }\n\n r = ffconf_scheme_process(&cs, r);\n if (r < 0) {\n errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);\n goto end;\n }\n\n if (tr.found) {\n ffconf_ctxcopy_init(&ctxcopy);\n copy = 1;\n }\n }\n\nend:\n ffmem_free(fn);\n ffstr_free(&themedata);\n ffconf_fin(&conf);\n ffconf_scheme_destroy(&cs);\n ffvec_free(&ddata);\n ffconf_ctxcopy_destroy(&ctxcopy);\n return rc;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "themes_read2(struct theme *t, const char *ofn)" (identifier) "themes_read2" (parameter_list) "(struct theme *t, const char *ofn)" (() "(" (parameter_declaration) "struct theme *t" (struct_specifier) "struct theme" (struct) "struct" (type_identifier) "theme" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "const char *ofn" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*ofn" (*) "*" (identifier) "ofn" ()) ")" (compound_statement) "{\n int rc = -1, r;\n ffbool copy = 0;\n ffconf_ctxcopy ctxcopy = {};\n ffstr themedata = {};\n ffvec ddata = {};\n char *fn = NULL;\n\n struct theme_reader tr = {};\n tr.find = t;\n\n ffconf conf = {};\n ffconf_init(&conf);\n\n ffconf_scheme cs = {};\n ffconf_scheme_init(&cs, &conf);\n ffconf_scheme_addctx(&cs, gui_themeconf_args, &tr);\n\n fn = core->getpath(FFSTR("theme.conf"));\n if (0 != fffile_readwhole(fn, &ddata, -1)) {\n syserrlog0("theme.conf parser: fffile_readwhole");\n goto end;\n }\n\n ffstr data;\n ffstr_set2(&data, &ddata);\n\n while (data.len != 0) {\n r = ffconf_parse(&conf, &data);\n if (r < 0) {\n errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));\n goto end;\n }\n\n if (copy) {\n r = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }\n continue;\n }\n\n r = ffconf_scheme_process(&cs, r);\n if (r < 0) {\n errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);\n goto end;\n }\n\n if (tr.found) {\n ffconf_ctxcopy_init(&ctxcopy);\n copy = 1;\n }\n }\n\nend:\n ffmem_free(fn);\n ffstr_free(&themedata);\n ffconf_fin(&conf);\n ffconf_scheme_destroy(&cs);\n ffvec_free(&ddata);\n ffconf_ctxcopy_destroy(&ctxcopy);\n return rc;\n}" ({) "{" (declaration) "int rc = -1, r;" (primitive_type) "int" (init_declarator) "rc = -1" (identifier) "rc" (=) "=" (number_literal) "-1" (,) "," (identifier) "r" (;) ";" (declaration) "ffbool copy = 0;" (type_identifier) "ffbool" (init_declarator) "copy = 0" (identifier) "copy" (=) "=" (number_literal) "0" (;) ";" (declaration) "ffconf_ctxcopy ctxcopy = {};" (type_identifier) "ffconf_ctxcopy" (init_declarator) "ctxcopy = {}" (identifier) "ctxcopy" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "ffstr themedata = {};" (type_identifier) "ffstr" (init_declarator) "themedata = {}" (identifier) "themedata" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "ffvec ddata = {};" (type_identifier) "ffvec" (init_declarator) "ddata = {}" (identifier) "ddata" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "char *fn = NULL;" (primitive_type) "char" (init_declarator) "*fn = NULL" (pointer_declarator) "*fn" (*) "*" (identifier) "fn" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "struct theme_reader tr = {};" (struct_specifier) "struct theme_reader" (struct) "struct" (type_identifier) "theme_reader" (init_declarator) "tr = {}" (identifier) "tr" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (expression_statement) "tr.find = t;" (assignment_expression) "tr.find = t" (field_expression) "tr.find" (identifier) "tr" (.) "." (field_identifier) "find" (=) "=" (identifier) "t" (;) ";" (declaration) "ffconf conf = {};" (type_identifier) "ffconf" (init_declarator) "conf = {}" (identifier) "conf" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (expression_statement) "ffconf_init(&conf);" (call_expression) "ffconf_init(&conf)" (identifier) "ffconf_init" (argument_list) "(&conf)" (() "(" (pointer_expression) "&conf" (&) "&" (identifier) "conf" ()) ")" (;) ";" (declaration) "ffconf_scheme cs = {};" (type_identifier) "ffconf_scheme" (init_declarator) "cs = {}" (identifier) "cs" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (expression_statement) "ffconf_scheme_init(&cs, &conf);" (call_expression) "ffconf_scheme_init(&cs, &conf)" (identifier) "ffconf_scheme_init" (argument_list) "(&cs, &conf)" (() "(" (pointer_expression) "&cs" (&) "&" (identifier) "cs" (,) "," (pointer_expression) "&conf" (&) "&" (identifier) "conf" ()) ")" (;) ";" (expression_statement) "ffconf_scheme_addctx(&cs, gui_themeconf_args, &tr);" (call_expression) "ffconf_scheme_addctx(&cs, gui_themeconf_args, &tr)" (identifier) "ffconf_scheme_addctx" (argument_list) "(&cs, gui_themeconf_args, &tr)" (() "(" (pointer_expression) "&cs" (&) "&" (identifier) "cs" (,) "," (identifier) "gui_themeconf_args" (,) "," (pointer_expression) "&tr" (&) "&" (identifier) "tr" ()) ")" (;) ";" (expression_statement) "fn = core->getpath(FFSTR("theme.conf"));" (assignment_expression) "fn = core->getpath(FFSTR("theme.conf"))" (identifier) "fn" (=) "=" (call_expression) "core->getpath(FFSTR("theme.conf"))" (field_expression) "core->getpath" (identifier) "core" (->) "->" (field_identifier) "getpath" (argument_list) "(FFSTR("theme.conf"))" (() "(" (call_expression) "FFSTR("theme.conf")" (identifier) "FFSTR" (argument_list) "("theme.conf")" (() "(" (string_literal) ""theme.conf"" (") """ (string_content) "theme.conf" (") """ ()) ")" ()) ")" (;) ";" (if_statement) "if (0 != fffile_readwhole(fn, &ddata, -1)) {\n syserrlog0("theme.conf parser: fffile_readwhole");\n goto end;\n }" (if) "if" (parenthesized_expression) "(0 != fffile_readwhole(fn, &ddata, -1))" (() "(" (binary_expression) "0 != fffile_readwhole(fn, &ddata, -1)" (number_literal) "0" (!=) "!=" (call_expression) "fffile_readwhole(fn, &ddata, -1)" (identifier) "fffile_readwhole" (argument_list) "(fn, &ddata, -1)" (() "(" (identifier) "fn" (,) "," (pointer_expression) "&ddata" (&) "&" (identifier) "ddata" (,) "," (number_literal) "-1" ()) ")" ()) ")" (compound_statement) "{\n syserrlog0("theme.conf parser: fffile_readwhole");\n goto end;\n }" ({) "{" (expression_statement) "syserrlog0("theme.conf parser: fffile_readwhole");" (call_expression) "syserrlog0("theme.conf parser: fffile_readwhole")" (identifier) "syserrlog0" (argument_list) "("theme.conf parser: fffile_readwhole")" (() "(" (string_literal) ""theme.conf parser: fffile_readwhole"" (") """ (string_content) "theme.conf parser: fffile_readwhole" (") """ ()) ")" (;) ";" (goto_statement) "goto end;" (goto) "goto" (statement_identifier) "end" (;) ";" (}) "}" (declaration) "ffstr data;" (type_identifier) "ffstr" (identifier) "data" (;) ";" (expression_statement) "ffstr_set2(&data, &ddata);" (call_expression) "ffstr_set2(&data, &ddata)" (identifier) "ffstr_set2" (argument_list) "(&data, &ddata)" (() "(" (pointer_expression) "&data" (&) "&" (identifier) "data" (,) "," (pointer_expression) "&ddata" (&) "&" (identifier) "ddata" ()) ")" (;) ";" (while_statement) "while (data.len != 0) {\n r = ffconf_parse(&conf, &data);\n if (r < 0) {\n errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));\n goto end;\n }\n\n if (copy) {\n r = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }\n continue;\n }\n\n r = ffconf_scheme_process(&cs, r);\n if (r < 0) {\n errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);\n goto end;\n }\n\n if (tr.found) {\n ffconf_ctxcopy_init(&ctxcopy);\n copy = 1;\n }\n }" (while) "while" (parenthesized_expression) "(data.len != 0)" (() "(" (binary_expression) "data.len != 0" (field_expression) "data.len" (identifier) "data" (.) "." (field_identifier) "len" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n r = ffconf_parse(&conf, &data);\n if (r < 0) {\n errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));\n goto end;\n }\n\n if (copy) {\n r = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }\n continue;\n }\n\n r = ffconf_scheme_process(&cs, r);\n if (r < 0) {\n errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);\n goto end;\n }\n\n if (tr.found) {\n ffconf_ctxcopy_init(&ctxcopy);\n copy = 1;\n }\n }" ({) "{" (expression_statement) "r = ffconf_parse(&conf, &data);" (assignment_expression) "r = ffconf_parse(&conf, &data)" (identifier) "r" (=) "=" (call_expression) "ffconf_parse(&conf, &data)" (identifier) "ffconf_parse" (argument_list) "(&conf, &data)" (() "(" (pointer_expression) "&conf" (&) "&" (identifier) "conf" (,) "," (pointer_expression) "&data" (&) "&" (identifier) "data" ()) ")" (;) ";" (if_statement) "if (r < 0) {\n errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));\n goto end;\n }" (if) "if" (parenthesized_expression) "(r < 0)" (() "(" (binary_expression) "r < 0" (identifier) "r" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));\n goto end;\n }" ({) "{" (expression_statement) "errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r));" (call_expression) "errlog0("theme.conf: ffconf_parse: %s", ffconf_errstr(r))" (identifier) "errlog0" (argument_list) "("theme.conf: ffconf_parse: %s", ffconf_errstr(r))" (() "(" (string_literal) ""theme.conf: ffconf_parse: %s"" (") """ (string_content) "theme.conf: ffconf_parse: %s" (") """ (,) "," (call_expression) "ffconf_errstr(r)" (identifier) "ffconf_errstr" (argument_list) "(r)" (() "(" (identifier) "r" ()) ")" ()) ")" (;) ";" (goto_statement) "goto end;" (goto) "goto" (statement_identifier) "end" (;) ";" (}) "}" (if_statement) "if (copy) {\n r = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }\n continue;\n }" (if) "if" (parenthesized_expression) "(copy)" (() "(" (identifier) "copy" ()) ")" (compound_statement) "{\n r = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }\n continue;\n }" ({) "{" (expression_statement) "r = ffconf_ctx_copy(&ctxcopy, conf.val, r);" (assignment_expression) "r = ffconf_ctx_copy(&ctxcopy, conf.val, r)" (identifier) "r" (=) "=" (call_expression) "ffconf_ctx_copy(&ctxcopy, conf.val, r)" (identifier) "ffconf_ctx_copy" (argument_list) "(&ctxcopy, conf.val, r)" (() "(" (pointer_expression) "&ctxcopy" (&) "&" (identifier) "ctxcopy" (,) "," (field_expression) "conf.val" (identifier) "conf" (.) "." (field_identifier) "val" (,) "," (identifier) "r" ()) ")" (;) ";" (if_statement) "if (r < 0) {\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n } else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }" (if) "if" (parenthesized_expression) "(r < 0)" (() "(" (binary_expression) "r < 0" (identifier) "r" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n errlog0("theme.conf parser: ffconf_ctx_copy");\n goto end;\n }" ({) "{" (expression_statement) "errlog0("theme.conf parser: ffconf_ctx_copy");" (call_expression) "errlog0("theme.conf parser: ffconf_ctx_copy")" (identifier) "errlog0" (argument_list) "("theme.conf parser: ffconf_ctx_copy")" (() "(" (string_literal) ""theme.conf parser: ffconf_ctx_copy"" (") """ (string_content) "theme.conf parser: ffconf_ctx_copy" (") """ ()) ")" (;) ";" (goto_statement) "goto end;" (goto) "goto" (statement_identifier) "end" (;) ";" (}) "}" (else_clause) "else if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }" (else) "else" (if_statement) "if (r > 0) {\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }" (if) "if" (parenthesized_expression) "(r > 0)" (() "(" (binary_expression) "r > 0" (identifier) "r" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n themedata = ffconf_ctxcopy_acquire(&ctxcopy);\n ffconf_ctxcopy_destroy(&ctxcopy);\n if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }\n rc = 0;\n goto end;\n }" ({) "{" (expression_statement) "themedata = ffconf_ctxcopy_acquire(&ctxcopy);" (assignment_expression) "themedata = ffconf_ctxcopy_acquire(&ctxcopy)" (identifier) "themedata" (=) "=" (call_expression) "ffconf_ctxcopy_acquire(&ctxcopy)" (identifier) "ffconf_ctxcopy_acquire" (argument_list) "(&ctxcopy)" (() "(" (pointer_expression) "&ctxcopy" (&) "&" (identifier) "ctxcopy" ()) ")" (;) ";" (expression_statement) "ffconf_ctxcopy_destroy(&ctxcopy);" (call_expression) "ffconf_ctxcopy_destroy(&ctxcopy)" (identifier) "ffconf_ctxcopy_destroy" (argument_list) "(&ctxcopy)" (() "(" (pointer_expression) "&ctxcopy" (&) "&" (identifier) "ctxcopy" ()) ")" (;) ";" (if_statement) "if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }" (if) "if" (parenthesized_expression) "(0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0))" (() "(" (binary_expression) "0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)" (number_literal) "0" (!=) "!=" (call_expression) "fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)" (identifier) "fffile_writewhole" (argument_list) "(ofn, themedata.ptr, themedata.len, 0)" (() "(" (identifier) "ofn" (,) "," (field_expression) "themedata.ptr" (identifier) "themedata" (.) "." (field_identifier) "ptr" (,) "," (field_expression) "themedata.len" (identifier) "themedata" (.) "." (field_identifier) "len" (,) "," (number_literal) "0" ()) ")" ()) ")" (compound_statement) "{\n syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);\n goto end;\n }" ({) "{" (expression_statement) "syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn);" (call_expression) "syserrlog0("theme.conf parser: fffile_writewhole(): %s", ofn)" (identifier) "syserrlog0" (argument_list) "("theme.conf parser: fffile_writewhole(): %s", ofn)" (() "(" (string_literal) ""theme.conf parser: fffile_writewhole(): %s"" (") """ (string_content) "theme.conf parser: fffile_writewhole(): %s" (") """ (,) "," (identifier) "ofn" ()) ")" (;) ";" (goto_statement) "goto end;" (goto) "goto" (statement_identifier) "end" (;) ";" (}) "}" (expression_statement) "rc = 0;" (assignment_expression) "rc = 0" (identifier) "rc" (=) "=" (number_literal) "0" (;) ";" (goto_statement) "goto end;" (goto) "goto" (statement_identifier) "end" (;) ";" (}) "}" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (expression_statement) "r = ffconf_scheme_process(&cs, r);" (assignment_expression) "r = ffconf_scheme_process(&cs, r)" (identifier) "r" (=) "=" (call_expression) "ffconf_scheme_process(&cs, r)" (identifier) "ffconf_scheme_process" (argument_list) "(&cs, r)" (() "(" (pointer_expression) "&cs" (&) "&" (identifier) "cs" (,) "," (identifier) "r" ()) ")" (;) ";" (if_statement) "if (r < 0) {\n errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);\n goto end;\n }" (if) "if" (parenthesized_expression) "(r < 0)" (() "(" (binary_expression) "r < 0" (identifier) "r" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);\n goto end;\n }" ({) "{" (expression_statement) "errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg);" (call_expression) "errlog0("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg)" (identifier) "errlog0" (argument_list) "("theme.conf: ffconf_scheme_process: %s: %s", ffconf_errstr(r), cs.errmsg)" (() "(" (string_literal) ""theme.conf: ffconf_scheme_process: %s: %s"" (") """ (string_content) "theme.conf: ffconf_scheme_process: %s: %s" (") """ (,) "," (call_expression) "ffconf_errstr(r)" (identifier) "ffconf_errstr" (argument_list) "(r)" (() "(" (identifier) "r" ()) ")" (,) "," (field_expression) "cs.errmsg" (identifier) "cs" (.) "." (field_identifier) "errmsg" ()) ")" (;) ";" (goto_statement) "goto end;" (goto) "goto" (statement_identifier) "end" (;) ";" (}) "}" (if_statement) "if (tr.found) {\n ffconf_ctxcopy_init(&ctxcopy);\n copy = 1;\n }" (if) "if" (parenthesized_expression) "(tr.found)" (() "(" (field_expression) "tr.found" (identifier) "tr" (.) "." (field_identifier) "found" ()) ")" (compound_statement) "{\n ffconf_ctxcopy_init(&ctxcopy);\n copy = 1;\n }" ({) "{" (expression_statement) "ffconf_ctxcopy_init(&ctxcopy);" (call_expression) "ffconf_ctxcopy_init(&ctxcopy)" (identifier) "ffconf_ctxcopy_init" (argument_list) "(&ctxcopy)" (() "(" (pointer_expression) "&ctxcopy" (&) "&" (identifier) "ctxcopy" ()) ")" (;) ";" (expression_statement) "copy = 1;" (assignment_expression) "copy = 1" (identifier) "copy" (=) "=" (number_literal) "1" (;) ";" (}) "}" (}) "}" (labeled_statement) "end:\n ffmem_free(fn);" (statement_identifier) "end" (:) ":" (expression_statement) "ffmem_free(fn);" (call_expression) "ffmem_free(fn)" (identifier) "ffmem_free" (argument_list) "(fn)" (() "(" (identifier) "fn" ()) ")" (;) ";" (expression_statement) "ffstr_free(&themedata);" (call_expression) "ffstr_free(&themedata)" (identifier) "ffstr_free" (argument_list) "(&themedata)" (() "(" (pointer_expression) "&themedata" (&) "&" (identifier) "themedata" ()) ")" (;) ";" (expression_statement) "ffconf_fin(&conf);" (call_expression) "ffconf_fin(&conf)" (identifier) "ffconf_fin" (argument_list) "(&conf)" (() "(" (pointer_expression) "&conf" (&) "&" (identifier) "conf" ()) ")" (;) ";" (expression_statement) "ffconf_scheme_destroy(&cs);" (call_expression) "ffconf_scheme_destroy(&cs)" (identifier) "ffconf_scheme_destroy" (argument_list) "(&cs)" (() "(" (pointer_expression) "&cs" (&) "&" (identifier) "cs" ()) ")" (;) ";" (expression_statement) "ffvec_free(&ddata);" (call_expression) "ffvec_free(&ddata)" (identifier) "ffvec_free" (argument_list) "(&ddata)" (() "(" (pointer_expression) "&ddata" (&) "&" (identifier) "ddata" ()) ")" (;) ";" (expression_statement) "ffconf_ctxcopy_destroy(&ctxcopy);" (call_expression) "ffconf_ctxcopy_destroy(&ctxcopy)" (identifier) "ffconf_ctxcopy_destroy" (argument_list) "(&ctxcopy)" (() "(" (pointer_expression) "&ctxcopy" (&) "&" (identifier) "ctxcopy" ()) ")" (;) ";" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (function_definition) "void gui_themes_read(void)\n{\n themes_read2(NULL, NULL);\n}" (primitive_type) "void" (function_declarator) "gui_themes_read(void)" (identifier) "gui_themes_read" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n themes_read2(NULL, NULL);\n}" ({) "{" (expression_statement) "themes_read2(NULL, NULL);" (call_expression) "themes_read2(NULL, NULL)" (identifier) "themes_read2" (argument_list) "(NULL, NULL)" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (}) "}" (function_definition) "void gui_themes_destroy(void)\n{\n struct theme *t;\n FFARR_WALKT(&gg->themes, t, struct theme) {\n ffmem_free(t->name);\n }\n ffarr_free(&gg->themes);\n}" (primitive_type) "void" (function_declarator) "gui_themes_destroy(void)" (identifier) "gui_themes_destroy" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n struct theme *t;\n FFARR_WALKT(&gg->themes, t, struct theme) {\n ffmem_free(t->name);\n }\n ffarr_free(&gg->themes);\n}" ({) "{" (declaration) "struct theme *t;" (struct_specifier) "struct theme" (struct) "struct" (type_identifier) "theme" (pointer_declarator) "*t" (*) "*" (identifier) "t" (;) ";" (expression_statement) "FFARR_WALKT(&gg->themes, t, struct theme)" (call_expression) "FFARR_WALKT(&gg->themes, t, struct theme)" (identifier) "FFARR_WALKT" (argument_list) "(&gg->themes, t, struct theme)" (() "(" (pointer_expression) "&gg->themes" (&) "&" (field_expression) "gg->themes" (identifier) "gg" (->) "->" (field_identifier) "themes" (,) "," (identifier) "t" (,) "," (identifier) "struct" (ERROR) "theme" (identifier) "theme" ()) ")" (;) "" (compound_statement) "{\n ffmem_free(t->name);\n }" ({) "{" (expression_statement) "ffmem_free(t->name);" (call_expression) "ffmem_free(t->name)" (identifier) "ffmem_free" (argument_list) "(t->name)" (() "(" (field_expression) "t->name" (identifier) "t" (->) "->" (field_identifier) "name" ()) ")" (;) ";" (}) "}" (expression_statement) "ffarr_free(&gg->themes);" (call_expression) "ffarr_free(&gg->themes)" (identifier) "ffarr_free" (argument_list) "(&gg->themes)" (() "(" (pointer_expression) "&gg->themes" (&) "&" (field_expression) "gg->themes" (identifier) "gg" (->) "->" (field_identifier) "themes" ()) ")" (;) ";" (}) "}" (comment) "/** Add menu items to switch between themes. */" (function_definition) "void gui_themes_add(uint def)\n{\n struct theme *t;\n ffui_menuitem mi = {};\n char buf[64];\n uint i = MENU_FIRST_IDX, id = 0;\n\n ffui_menu_rm(&gg->mfile, i);\n\n if (def == 0)\n ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n\n FFARR_WALKT(&gg->themes, t, struct theme) {\n ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME);\n ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK);\n size_t n = ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name);\n ffui_menu_settext(&mi, buf, n);\n ffui_menu_ins(&gg->mfile, i++, &mi);\n }\n\n if (def != 0)\n gui_theme_set(def);\n}" (primitive_type) "void" (function_declarator) "gui_themes_add(uint def)" (identifier) "gui_themes_add" (parameter_list) "(uint def)" (() "(" (parameter_declaration) "uint def" (type_identifier) "uint" (identifier) "def" ()) ")" (compound_statement) "{\n struct theme *t;\n ffui_menuitem mi = {};\n char buf[64];\n uint i = MENU_FIRST_IDX, id = 0;\n\n ffui_menu_rm(&gg->mfile, i);\n\n if (def == 0)\n ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n\n FFARR_WALKT(&gg->themes, t, struct theme) {\n ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME);\n ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK);\n size_t n = ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name);\n ffui_menu_settext(&mi, buf, n);\n ffui_menu_ins(&gg->mfile, i++, &mi);\n }\n\n if (def != 0)\n gui_theme_set(def);\n}" ({) "{" (declaration) "struct theme *t;" (struct_specifier) "struct theme" (struct) "struct" (type_identifier) "theme" (pointer_declarator) "*t" (*) "*" (identifier) "t" (;) ";" (declaration) "ffui_menuitem mi = {};" (type_identifier) "ffui_menuitem" (init_declarator) "mi = {}" (identifier) "mi" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (declaration) "char buf[64];" (primitive_type) "char" (array_declarator) "buf[64]" (identifier) "buf" ([) "[" (number_literal) "64" (]) "]" (;) ";" (declaration) "uint i = MENU_FIRST_IDX, id = 0;" (type_identifier) "uint" (init_declarator) "i = MENU_FIRST_IDX" (identifier) "i" (=) "=" (identifier) "MENU_FIRST_IDX" (,) "," (init_declarator) "id = 0" (identifier) "id" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "ffui_menu_rm(&gg->mfile, i);" (call_expression) "ffui_menu_rm(&gg->mfile, i)" (identifier) "ffui_menu_rm" (argument_list) "(&gg->mfile, i)" (() "(" (pointer_expression) "&gg->mfile" (&) "&" (field_expression) "gg->mfile" (identifier) "gg" (->) "->" (field_identifier) "mfile" (,) "," (identifier) "i" ()) ")" (;) ";" (if_statement) "if (def == 0)\n ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);" (if) "if" (parenthesized_expression) "(def == 0)" (() "(" (binary_expression) "def == 0" (identifier) "def" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);" (call_expression) "ffui_menu_addstate(&mi, FFUI_MENU_CHECKED)" (identifier) "ffui_menu_addstate" (argument_list) "(&mi, FFUI_MENU_CHECKED)" (() "(" (pointer_expression) "&mi" (&) "&" (identifier) "mi" (,) "," (identifier) "FFUI_MENU_CHECKED" ()) ")" (;) ";" (expression_statement) "FFARR_WALKT(&gg->themes, t, struct theme)" (call_expression) "FFARR_WALKT(&gg->themes, t, struct theme)" (identifier) "FFARR_WALKT" (argument_list) "(&gg->themes, t, struct theme)" (() "(" (pointer_expression) "&gg->themes" (&) "&" (field_expression) "gg->themes" (identifier) "gg" (->) "->" (field_identifier) "themes" (,) "," (identifier) "t" (,) "," (identifier) "struct" (ERROR) "theme" (identifier) "theme" ()) ")" (;) "" (compound_statement) "{\n ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME);\n ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK);\n size_t n = ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name);\n ffui_menu_settext(&mi, buf, n);\n ffui_menu_ins(&gg->mfile, i++, &mi);\n }" ({) "{" (expression_statement) "ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME);" (call_expression) "ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME)" (identifier) "ffui_menu_setcmd" (argument_list) "(&mi, (id++ << 8) | SETTHEME)" (() "(" (pointer_expression) "&mi" (&) "&" (identifier) "mi" (,) "," (binary_expression) "(id++ << 8) | SETTHEME" (parenthesized_expression) "(id++ << 8)" (() "(" (binary_expression) "id++ << 8" (update_expression) "id++" (identifier) "id" (++) "++" (<<) "<<" (number_literal) "8" ()) ")" (|) "|" (identifier) "SETTHEME" ()) ")" (;) ";" (expression_statement) "ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK);" (call_expression) "ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK)" (identifier) "ffui_menu_settype" (argument_list) "(&mi, FFUI_MENU_RADIOCHECK)" (() "(" (pointer_expression) "&mi" (&) "&" (identifier) "mi" (,) "," (identifier) "FFUI_MENU_RADIOCHECK" ()) ")" (;) ";" (declaration) "size_t n = ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name);" (primitive_type) "size_t" (init_declarator) "n = ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name)" (identifier) "n" (=) "=" (call_expression) "ffs_fmt(buf, buf + sizeof(buf), "Theme: %s", t->name)" (identifier) "ffs_fmt" (argument_list) "(buf, buf + sizeof(buf), "Theme: %s", t->name)" (() "(" (identifier) "buf" (,) "," (binary_expression) "buf + sizeof(buf)" (identifier) "buf" (+) "+" (sizeof_expression) "sizeof(buf)" (sizeof) "sizeof" (parenthesized_expression) "(buf)" (() "(" (identifier) "buf" ()) ")" (,) "," (string_literal) ""Theme: %s"" (") """ (string_content) "Theme: %s" (") """ (,) "," (field_expression) "t->name" (identifier) "t" (->) "->" (field_identifier) "name" ()) ")" (;) ";" (expression_statement) "ffui_menu_settext(&mi, buf, n);" (call_expression) "ffui_menu_settext(&mi, buf, n)" (identifier) "ffui_menu_settext" (argument_list) "(&mi, buf, n)" (() "(" (pointer_expression) "&mi" (&) "&" (identifier) "mi" (,) "," (identifier) "buf" (,) "," (identifier) "n" ()) ")" (;) ";" (expression_statement) "ffui_menu_ins(&gg->mfile, i++, &mi);" (call_expression) "ffui_menu_ins(&gg->mfile, i++, &mi)" (identifier) "ffui_menu_ins" (argument_list) "(&gg->mfile, i++, &mi)" (() "(" (pointer_expression) "&gg->mfile" (&) "&" (field_expression) "gg->mfile" (identifier) "gg" (->) "->" (field_identifier) "mfile" (,) "," (update_expression) "i++" (identifier) "i" (++) "++" (,) "," (pointer_expression) "&mi" (&) "&" (identifier) "mi" ()) ")" (;) ";" (}) "}" (if_statement) "if (def != 0)\n gui_theme_set(def);" (if) "if" (parenthesized_expression) "(def != 0)" (() "(" (binary_expression) "def != 0" (identifier) "def" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "gui_theme_set(def);" (call_expression) "gui_theme_set(def)" (identifier) "gui_theme_set" (argument_list) "(def)" (() "(" (identifier) "def" ()) ")" (;) ";" (}) "}" (comment) "/** Apply UI changes from a theme. */" (function_definition) "void gui_theme_set(int idx)\n{\n dbglog0("applying theme %d...", idx);\n struct theme *t = ffarr_itemT(&gg->themes, idx, struct theme);\n\n char *fn = ffenv_expand(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf");\n if (0 != themes_read2(t, fn))\n return;\n\n ffui_loader ldr;\n ffui_ldr_init2(&ldr, &gui_getctl, NULL, gg);\n ffui_ldr_loadconf(&ldr, fn);\n fffile_rm(fn);\n\n ffui_menuitem mi = {};\n ffui_menu_clearstate(&mi, FFUI_MENU_CHECKED);\n ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi);\n ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi);\n gg->theme_index = idx;\n\n wmain_redraw();\n\n ffmem_free(fn);\n ffui_ldr_fin(&ldr);\n}" (primitive_type) "void" (function_declarator) "gui_theme_set(int idx)" (identifier) "gui_theme_set" (parameter_list) "(int idx)" (() "(" (parameter_declaration) "int idx" (primitive_type) "int" (identifier) "idx" ()) ")" (compound_statement) "{\n dbglog0("applying theme %d...", idx);\n struct theme *t = ffarr_itemT(&gg->themes, idx, struct theme);\n\n char *fn = ffenv_expand(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf");\n if (0 != themes_read2(t, fn))\n return;\n\n ffui_loader ldr;\n ffui_ldr_init2(&ldr, &gui_getctl, NULL, gg);\n ffui_ldr_loadconf(&ldr, fn);\n fffile_rm(fn);\n\n ffui_menuitem mi = {};\n ffui_menu_clearstate(&mi, FFUI_MENU_CHECKED);\n ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi);\n ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi);\n gg->theme_index = idx;\n\n wmain_redraw();\n\n ffmem_free(fn);\n ffui_ldr_fin(&ldr);\n}" ({) "{" (expression_statement) "dbglog0("applying theme %d...", idx);" (call_expression) "dbglog0("applying theme %d...", idx)" (identifier) "dbglog0" (argument_list) "("applying theme %d...", idx)" (() "(" (string_literal) ""applying theme %d..."" (") """ (string_content) "applying theme %d..." (") """ (,) "," (identifier) "idx" ()) ")" (;) ";" (declaration) "struct theme *t = ffarr_itemT(&gg->themes, idx, struct theme);" (struct_specifier) "struct theme" (struct) "struct" (type_identifier) "theme" (init_declarator) "*t = ffarr_itemT(&gg->themes, idx, struct theme)" (pointer_declarator) "*t" (*) "*" (identifier) "t" (=) "=" (call_expression) "ffarr_itemT(&gg->themes, idx, struct theme)" (identifier) "ffarr_itemT" (argument_list) "(&gg->themes, idx, struct theme)" (() "(" (pointer_expression) "&gg->themes" (&) "&" (field_expression) "gg->themes" (identifier) "gg" (->) "->" (field_identifier) "themes" (,) "," (identifier) "idx" (,) "," (identifier) "struct" (ERROR) "theme" (identifier) "theme" ()) ")" (;) ";" (declaration) "char *fn = ffenv_expand(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf");" (primitive_type) "char" (init_declarator) "*fn = ffenv_expand(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf")" (pointer_declarator) "*fn" (*) "*" (identifier) "fn" (=) "=" (call_expression) "ffenv_expand(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf")" (identifier) "ffenv_expand" (argument_list) "(NULL, NULL, 0, "%TMP%\\fmedia-theme.conf")" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "0" (,) "," (string_literal) ""%TMP%\\fmedia-theme.conf"" (") """ (string_content) "%TMP%" (escape_sequence) "\\" (string_content) "fmedia-theme.conf" (") """ ()) ")" (;) ";" (if_statement) "if (0 != themes_read2(t, fn))\n return;" (if) "if" (parenthesized_expression) "(0 != themes_read2(t, fn))" (() "(" (binary_expression) "0 != themes_read2(t, fn)" (number_literal) "0" (!=) "!=" (call_expression) "themes_read2(t, fn)" (identifier) "themes_read2" (argument_list) "(t, fn)" (() "(" (identifier) "t" (,) "," (identifier) "fn" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (declaration) "ffui_loader ldr;" (type_identifier) "ffui_loader" (identifier) "ldr" (;) ";" (expression_statement) "ffui_ldr_init2(&ldr, &gui_getctl, NULL, gg);" (call_expression) "ffui_ldr_init2(&ldr, &gui_getctl, NULL, gg)" (identifier) "ffui_ldr_init2" (argument_list) "(&ldr, &gui_getctl, NULL, gg)" (() "(" (pointer_expression) "&ldr" (&) "&" (identifier) "ldr" (,) "," (pointer_expression) "&gui_getctl" (&) "&" (identifier) "gui_getctl" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "gg" ()) ")" (;) ";" (expression_statement) "ffui_ldr_loadconf(&ldr, fn);" (call_expression) "ffui_ldr_loadconf(&ldr, fn)" (identifier) "ffui_ldr_loadconf" (argument_list) "(&ldr, fn)" (() "(" (pointer_expression) "&ldr" (&) "&" (identifier) "ldr" (,) "," (identifier) "fn" ()) ")" (;) ";" (expression_statement) "fffile_rm(fn);" (call_expression) "fffile_rm(fn)" (identifier) "fffile_rm" (argument_list) "(fn)" (() "(" (identifier) "fn" ()) ")" (;) ";" (declaration) "ffui_menuitem mi = {};" (type_identifier) "ffui_menuitem" (init_declarator) "mi = {}" (identifier) "mi" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (;) ";" (expression_statement) "ffui_menu_clearstate(&mi, FFUI_MENU_CHECKED);" (call_expression) "ffui_menu_clearstate(&mi, FFUI_MENU_CHECKED)" (identifier) "ffui_menu_clearstate" (argument_list) "(&mi, FFUI_MENU_CHECKED)" (() "(" (pointer_expression) "&mi" (&) "&" (identifier) "mi" (,) "," (identifier) "FFUI_MENU_CHECKED" ()) ")" (;) ";" (expression_statement) "ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi);" (call_expression) "ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi)" (identifier) "ffui_menu_set" (argument_list) "(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi)" (() "(" (pointer_expression) "&gg->mfile" (&) "&" (field_expression) "gg->mfile" (identifier) "gg" (->) "->" (field_identifier) "mfile" (,) "," (binary_expression) "MENU_FIRST_IDX + gg->theme_index" (identifier) "MENU_FIRST_IDX" (+) "+" (field_expression) "gg->theme_index" (identifier) "gg" (->) "->" (field_identifier) "theme_index" (,) "," (pointer_expression) "&mi" (&) "&" (identifier) "mi" ()) ")" (;) ";" (expression_statement) "ffui_menu_addstate(&mi, FFUI_MENU_CHECKED);" (call_expression) "ffui_menu_addstate(&mi, FFUI_MENU_CHECKED)" (identifier) "ffui_menu_addstate" (argument_list) "(&mi, FFUI_MENU_CHECKED)" (() "(" (pointer_expression) "&mi" (&) "&" (identifier) "mi" (,) "," (identifier) "FFUI_MENU_CHECKED" ()) ")" (;) ";" (expression_statement) "ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi);" (call_expression) "ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi)" (identifier) "ffui_menu_set" (argument_list) "(&gg->mfile, MENU_FIRST_IDX + idx, &mi)" (() "(" (pointer_expression) "&gg->mfile" (&) "&" (field_expression) "gg->mfile" (identifier) "gg" (->) "->" (field_identifier) "mfile" (,) "," (binary_expression) "MENU_FIRST_IDX + idx" (identifier) "MENU_FIRST_IDX" (+) "+" (identifier) "idx" (,) "," (pointer_expression) "&mi" (&) "&" (identifier) "mi" ()) ")" (;) ";" (expression_statement) "gg->theme_index = idx;" (assignment_expression) "gg->theme_index = idx" (field_expression) "gg->theme_index" (identifier) "gg" (->) "->" (field_identifier) "theme_index" (=) "=" (identifier) "idx" (;) ";" (expression_statement) "wmain_redraw();" (call_expression) "wmain_redraw()" (identifier) "wmain_redraw" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ffmem_free(fn);" (call_expression) "ffmem_free(fn)" (identifier) "ffmem_free" (argument_list) "(fn)" (() "(" (identifier) "fn" ()) ")" (;) ";" (expression_statement) "ffui_ldr_fin(&ldr);" (call_expression) "ffui_ldr_fin(&ldr)" (identifier) "ffui_ldr_fin" (argument_list) "(&ldr)" (() "(" (pointer_expression) "&ldr" (&) "&" (identifier) "ldr" ()) ")" (;) ";" (}) "}"
1,516
4
{"language": "c", "success": true, "metadata": {"lines": 166, "avg_line_length": 25.49, "nodes": 869, "errors": 0, "source_hash": "66a3eae266bafe4daa1a499c11ac869ff30df69344ae1d98c95752ff1ba751b1", "categorized_nodes": 621}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <fmedia.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": "system_lib_string", "text": "<fmedia.h>", "parent": 0, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <gui-winapi/gui.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": "<gui-winapi/gui.h>", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include <FF/gui/loader.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": "<FF/gui/loader.h>", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "#include <FF/data/conf-copy.h>\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": "system_lib_string", "text": "<FF/data/conf-copy.h>", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 30}}, {"id": 12, "type": "preproc_include", "text": "#include <FFOS/process.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<FFOS/process.h>", "parent": 12, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 25}}, {"id": 15, "type": "preproc_function_def", "text": "#define dbglog0(...) fmed_dbglog(core, NULL, \"gui\", __VA_ARGS__)\n", "parent": null, "children": [16, 17, 18, 19], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 17, "type": "identifier", "text": "dbglog0", "parent": 15, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 15}}, {"id": 18, "type": "preproc_params", "text": "(...)", "parent": 15, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 20}}, {"id": 19, "type": "preproc_arg", "text": "fmed_dbglog(core, NULL, \"gui\", __VA_ARGS__)", "parent": 15, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 65}}, {"id": 20, "type": "preproc_function_def", "text": "#define errlog0(...) fmed_errlog(core, NULL, \"gui\", __VA_ARGS__)\n", "parent": null, "children": [21, 22, 23, 24], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 22, "type": "identifier", "text": "errlog0", "parent": 20, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 15}}, {"id": 23, "type": "preproc_params", "text": "(...)", "parent": 20, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 20}}, {"id": 24, "type": "preproc_arg", "text": "fmed_errlog(core, NULL, \"gui\", __VA_ARGS__)", "parent": 20, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 65}}, {"id": 25, "type": "preproc_function_def", "text": "#define syserrlog0(...) fmed_syserrlog(core, NULL, \"gui\", __VA_ARGS__)\n", "parent": null, "children": [26, 27, 28, 29], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 27, "type": "identifier", "text": "syserrlog0", "parent": 25, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 18}}, {"id": 28, "type": "preproc_params", "text": "(...)", "parent": 25, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 23}}, {"id": 29, "type": "preproc_arg", "text": "fmed_syserrlog(core, NULL, \"gui\", __VA_ARGS__)", "parent": 25, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 71}}, {"id": 30, "type": "enum_specifier", "text": "enum {\n\tMENU_FIRST_IDX = 11,\n}", "parent": null, "children": [31, 32], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 31, "type": "enum", "text": "enum", "parent": 30, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 32, "type": "enumerator_list", "text": "{\n\tMENU_FIRST_IDX = 11,\n}", "parent": 30, "children": [33], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 16, "column": 1}}, {"id": 33, "type": "enumerator", "text": "MENU_FIRST_IDX = 11", "parent": 32, "children": [34, 35, 36], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 20}}, {"id": 34, "type": "identifier", "text": "MENU_FIRST_IDX", "parent": 33, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 15}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 17}}, {"id": 36, "type": "number_literal", "text": "11", "parent": 33, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 20}}, {"id": 37, "type": "struct_specifier", "text": "struct theme {\n\tchar *name;\n}", "parent": null, "children": [38, 39], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 39, "type": "type_identifier", "text": "theme", "parent": 37, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 12}}, {"id": 40, "type": "field_declaration", "text": "char *name;", "parent": 37, "children": [41, 42], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 12}}, {"id": 41, "type": "primitive_type", "text": "char", "parent": 40, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 5}}, {"id": 42, "type": "pointer_declarator", "text": "*name", "parent": 40, "children": [43, 44], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 11}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 7}}, {"id": 44, "type": "field_identifier", "text": "name", "parent": 42, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 11}}, {"id": 45, "type": "struct_specifier", "text": "struct theme_reader {\n\tstruct theme *find;\n\tuint found :1;\n}", "parent": null, "children": [46, 47], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 46, "type": "struct", "text": "struct", "parent": 45, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 47, "type": "type_identifier", "text": "theme_reader", "parent": 45, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 19}}, {"id": 48, "type": "field_declaration", "text": "struct theme *find;", "parent": 45, "children": [49, 52], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 20}}, {"id": 49, "type": "struct_specifier", "text": "struct theme", "parent": 48, "children": [50, 51], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 13}}, {"id": 50, "type": "struct", "text": "struct", "parent": 49, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 7}}, {"id": 51, "type": "type_identifier", "text": "theme", "parent": 49, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 13}}, {"id": 52, "type": "pointer_declarator", "text": "*find", "parent": 48, "children": [53, 54], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 19}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 15}}, {"id": 54, "type": "field_identifier", "text": "find", "parent": 52, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 19}}, {"id": 55, "type": "field_declaration", "text": "uint found :1;", "parent": 45, "children": [56, 57, 58], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 15}}, {"id": 56, "type": "type_identifier", "text": "uint", "parent": 55, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 57, "type": "field_identifier", "text": "found", "parent": 55, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 11}}, {"id": 58, "type": "bitfield_clause", "text": ":1", "parent": 55, "children": [59], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 14}}, {"id": 59, "type": "number_literal", "text": "1", "parent": 58, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 60, "type": "function_definition", "text": "static int theme_conf_new(ffconf_scheme *cs, void *obj)\n{\n\tstruct theme_reader *tr = obj;\n\tconst ffstr *name = ffconf_scheme_objval(cs);\n\n\tstatic const ffconf_arg dummy = {};\n\n\tif (tr->find != NULL) {\n\t\tif (!ffstr_eqz(name, tr->find->name)) {\n\t\t\tffconf_scheme_skipctx(cs);\n\t\t\treturn 0;\n\t\t}\n\t\tffconf_scheme_addctx(cs, &dummy, NULL);\n\t\ttr->found = 1;\n\t\treturn 0;\n\t}\n\n\tstruct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme);\n\tif (NULL == (t->name = ffsz_alcopystr(name)))\n\t\treturn FFPARS_ESYS;\n\tffconf_scheme_skipctx(cs);\n\treturn 0;\n}", "parent": null, "children": [61, 62], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 10}}, {"id": 62, "type": "function_declarator", "text": "theme_conf_new(ffconf_scheme *cs, void *obj)", "parent": 60, "children": [63, 64], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 55}}, {"id": 63, "type": "identifier", "text": "theme_conf_new", "parent": 62, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 25}}, {"id": 64, "type": "parameter_list", "text": "(ffconf_scheme *cs, void *obj)", "parent": 62, "children": [65, 70], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 55}}, {"id": 65, "type": "parameter_declaration", "text": "ffconf_scheme *cs", "parent": 64, "children": [66, 67], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 43}}, {"id": 66, "type": "type_identifier", "text": "ffconf_scheme", "parent": 65, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 39}}, {"id": 67, "type": "pointer_declarator", "text": "*cs", "parent": 65, "children": [68, 69], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 43}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 41}}, {"id": 69, "type": "identifier", "text": "cs", "parent": 67, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 43}}, {"id": 70, "type": "parameter_declaration", "text": "void *obj", "parent": 64, "children": [71, 72], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 54}}, {"id": 71, "type": "primitive_type", "text": "void", "parent": 70, "children": [], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 49}}, {"id": 72, "type": "pointer_declarator", "text": "*obj", "parent": 70, "children": [73, 74], "start_point": {"row": 27, "column": 50}, "end_point": {"row": 27, "column": 54}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 27, "column": 50}, "end_point": {"row": 27, "column": 51}}, {"id": 74, "type": "identifier", "text": "obj", "parent": 72, "children": [], "start_point": {"row": 27, "column": 51}, "end_point": {"row": 27, "column": 54}}, {"id": 75, "type": "declaration", "text": "struct theme_reader *tr = obj;", "parent": 60, "children": [76, 79], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 31}}, {"id": 76, "type": "struct_specifier", "text": "struct theme_reader", "parent": 75, "children": [77, 78], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 20}}, {"id": 77, "type": "struct", "text": "struct", "parent": 76, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 7}}, {"id": 78, "type": "type_identifier", "text": "theme_reader", "parent": 76, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 20}}, {"id": 79, "type": "init_declarator", "text": "*tr = obj", "parent": 75, "children": [80, 83, 84], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 30}}, {"id": 80, "type": "pointer_declarator", "text": "*tr", "parent": 79, "children": [81, 82], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 24}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 22}}, {"id": 82, "type": "identifier", "text": "tr", "parent": 80, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 24}}, {"id": 83, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 26}}, {"id": 84, "type": "identifier", "text": "obj", "parent": 79, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 30}}, {"id": 85, "type": "declaration", "text": "const ffstr *name = ffconf_scheme_objval(cs);", "parent": 60, "children": [86, 87], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 46}}, {"id": 86, "type": "type_identifier", "text": "ffstr", "parent": 85, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 12}}, {"id": 87, "type": "init_declarator", "text": "*name = ffconf_scheme_objval(cs)", "parent": 85, "children": [88, 91, 92], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 45}}, {"id": 88, "type": "pointer_declarator", "text": "*name", "parent": 87, "children": [89, 90], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 18}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 14}}, {"id": 90, "type": "identifier", "text": "name", "parent": 88, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 18}}, {"id": 91, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 20}}, {"id": 92, "type": "call_expression", "text": "ffconf_scheme_objval(cs)", "parent": 87, "children": [93, 94], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 45}}, {"id": 93, "type": "identifier", "text": "ffconf_scheme_objval", "parent": 92, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 41}}, {"id": 94, "type": "argument_list", "text": "(cs)", "parent": 92, "children": [95], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 45}}, {"id": 95, "type": "identifier", "text": "cs", "parent": 94, "children": [], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 44}}, {"id": 96, "type": "declaration", "text": "static const ffconf_arg dummy = {};", "parent": 60, "children": [97, 98], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 36}}, {"id": 97, "type": "type_identifier", "text": "ffconf_arg", "parent": 96, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 24}}, {"id": 98, "type": "init_declarator", "text": "dummy = {}", "parent": 96, "children": [99, 100, 101], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 35}}, {"id": 99, "type": "identifier", "text": "dummy", "parent": 98, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 30}}, {"id": 100, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 32}}, {"id": 101, "type": "initializer_list", "text": "{}", "parent": 98, "children": [], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 35}}, {"id": 102, "type": "if_statement", "text": "if (tr->find != NULL) {\n\t\tif (!ffstr_eqz(name, tr->find->name)) {\n\t\t\tffconf_scheme_skipctx(cs);\n\t\t\treturn 0;\n\t\t}\n\t\tffconf_scheme_addctx(cs, &dummy, NULL);\n\t\ttr->found = 1;\n\t\treturn 0;\n\t}", "parent": 60, "children": [103], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 42, "column": 2}}, {"id": 103, "type": "parenthesized_expression", "text": "(tr->find != NULL)", "parent": 102, "children": [104], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 22}}, {"id": 104, "type": "binary_expression", "text": "tr->find != NULL", "parent": 103, "children": [105, 108, 109], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 21}}, {"id": 105, "type": "field_expression", "text": "tr->find", "parent": 104, "children": [106, 107], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 13}}, {"id": 106, "type": "identifier", "text": "tr", "parent": 105, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 7}}, {"id": 107, "type": "field_identifier", "text": "find", "parent": 105, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 108, "type": "!=", "text": "!=", "parent": 104, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 16}}, {"id": 109, "type": "null", "text": "NULL", "parent": 104, "children": [110], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 21}}, {"id": 110, "type": "NULL", "text": "NULL", "parent": 109, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 21}}, {"id": 111, "type": "if_statement", "text": "if (!ffstr_eqz(name, tr->find->name)) {\n\t\t\tffconf_scheme_skipctx(cs);\n\t\t\treturn 0;\n\t\t}", "parent": 102, "children": [112], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 38, "column": 3}}, {"id": 112, "type": "parenthesized_expression", "text": "(!ffstr_eqz(name, tr->find->name))", "parent": 111, "children": [113], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 39}}, {"id": 113, "type": "unary_expression", "text": "!ffstr_eqz(name, tr->find->name)", "parent": 112, "children": [114, 115], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 38}}, {"id": 114, "type": "!", "text": "!", "parent": 113, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 7}}, {"id": 115, "type": "call_expression", "text": "ffstr_eqz(name, tr->find->name)", "parent": 113, "children": [116, 117], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 38}}, {"id": 116, "type": "identifier", "text": "ffstr_eqz", "parent": 115, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 16}}, {"id": 117, "type": "argument_list", "text": "(name, tr->find->name)", "parent": 115, "children": [118, 119], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 38}}, {"id": 118, "type": "identifier", "text": "name", "parent": 117, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 21}}, {"id": 119, "type": "field_expression", "text": "tr->find->name", "parent": 117, "children": [120, 123], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 37}}, {"id": 120, "type": "field_expression", "text": "tr->find", "parent": 119, "children": [121, 122], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 31}}, {"id": 121, "type": "identifier", "text": "tr", "parent": 120, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 25}}, {"id": 122, "type": "field_identifier", "text": "find", "parent": 120, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 31}}, {"id": 123, "type": "field_identifier", "text": "name", "parent": 119, "children": [], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 37}}, {"id": 124, "type": "call_expression", "text": "ffconf_scheme_skipctx(cs)", "parent": 111, "children": [125, 126], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 28}}, {"id": 125, "type": "identifier", "text": "ffconf_scheme_skipctx", "parent": 124, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 24}}, {"id": 126, "type": "argument_list", "text": "(cs)", "parent": 124, "children": [127], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 28}}, {"id": 127, "type": "identifier", "text": "cs", "parent": 126, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 27}}, {"id": 128, "type": "return_statement", "text": "return 0;", "parent": 111, "children": [129], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 12}}, {"id": 129, "type": "number_literal", "text": "0", "parent": 128, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 11}}, {"id": 130, "type": "call_expression", "text": "ffconf_scheme_addctx(cs, &dummy, NULL)", "parent": 102, "children": [131, 132], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 40}}, {"id": 131, "type": "identifier", "text": "ffconf_scheme_addctx", "parent": 130, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 22}}, {"id": 132, "type": "argument_list", "text": "(cs, &dummy, NULL)", "parent": 130, "children": [133, 134, 136], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 40}}, {"id": 133, "type": "identifier", "text": "cs", "parent": 132, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 25}}, {"id": 134, "type": "pointer_expression", "text": "&dummy", "parent": 132, "children": [135], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 33}}, {"id": 135, "type": "identifier", "text": "dummy", "parent": 134, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 33}}, {"id": 136, "type": "null", "text": "NULL", "parent": 132, "children": [137], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 39}}, {"id": 137, "type": "NULL", "text": "NULL", "parent": 136, "children": [], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 39}}, {"id": 138, "type": "assignment_expression", "text": "tr->found = 1", "parent": 102, "children": [139, 142, 143], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 15}}, {"id": 139, "type": "field_expression", "text": "tr->found", "parent": 138, "children": [140, 141], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 11}}, {"id": 140, "type": "identifier", "text": "tr", "parent": 139, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 4}}, {"id": 141, "type": "field_identifier", "text": "found", "parent": 139, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 11}}, {"id": 142, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 13}}, {"id": 143, "type": "number_literal", "text": "1", "parent": 138, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 144, "type": "return_statement", "text": "return 0;", "parent": 102, "children": [145], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 11}}, {"id": 145, "type": "number_literal", "text": "0", "parent": 144, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 10}}, {"id": 146, "type": "declaration", "text": "struct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme);", "parent": 60, "children": [147, 150], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 65}}, {"id": 147, "type": "struct_specifier", "text": "struct theme", "parent": 146, "children": [148, 149], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 13}}, {"id": 148, "type": "struct", "text": "struct", "parent": 147, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 7}}, {"id": 149, "type": "type_identifier", "text": "theme", "parent": 147, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 13}}, {"id": 150, "type": "init_declarator", "text": "*t = ffarr_pushgrowT(&gg->themes, 2, struct theme)", "parent": 146, "children": [151, 154, 155], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 64}}, {"id": 151, "type": "pointer_declarator", "text": "*t", "parent": 150, "children": [152, 153], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 16}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 153, "type": "identifier", "text": "t", "parent": 151, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 16}}, {"id": 154, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 155, "type": "call_expression", "text": "ffarr_pushgrowT(&gg->themes, 2, struct theme)", "parent": 150, "children": [156, 157], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 64}}, {"id": 156, "type": "identifier", "text": "ffarr_pushgrowT", "parent": 155, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 34}}, {"id": 157, "type": "argument_list", "text": "(&gg->themes, 2, struct theme)", "parent": 155, "children": [158, 162, 163, 164], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 64}}, {"id": 158, "type": "pointer_expression", "text": "&gg->themes", "parent": 157, "children": [159], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 46}}, {"id": 159, "type": "field_expression", "text": "gg->themes", "parent": 158, "children": [160, 161], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 46}}, {"id": 160, "type": "identifier", "text": "gg", "parent": 159, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 38}}, {"id": 161, "type": "field_identifier", "text": "themes", "parent": 159, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 46}}, {"id": 162, "type": "number_literal", "text": "2", "parent": 157, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 49}}, {"id": 163, "type": "identifier", "text": "struct", "parent": 157, "children": [], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 57}}, {"id": 164, "type": "ERROR", "text": "theme", "parent": 157, "children": [165], "start_point": {"row": 44, "column": 58}, "end_point": {"row": 44, "column": 63}}, {"id": 165, "type": "identifier", "text": "theme", "parent": 164, "children": [], "start_point": {"row": 44, "column": 58}, "end_point": {"row": 44, "column": 63}}, {"id": 166, "type": "if_statement", "text": "if (NULL == (t->name = ffsz_alcopystr(name)))\n\t\treturn FFPARS_ESYS;", "parent": 60, "children": [167, 182], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 46, "column": 21}}, {"id": 167, "type": "parenthesized_expression", "text": "(NULL == (t->name = ffsz_alcopystr(name)))", "parent": 166, "children": [168], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 46}}, {"id": 168, "type": "binary_expression", "text": "NULL == (t->name = ffsz_alcopystr(name))", "parent": 167, "children": [169, 171, 172], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 45}}, {"id": 169, "type": "null", "text": "NULL", "parent": 168, "children": [170], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 9}}, {"id": 170, "type": "NULL", "text": "NULL", "parent": 169, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 9}}, {"id": 171, "type": "==", "text": "==", "parent": 168, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 12}}, {"id": 172, "type": "parenthesized_expression", "text": "(t->name = ffsz_alcopystr(name))", "parent": 168, "children": [173], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 45}}, {"id": 173, "type": "assignment_expression", "text": "t->name = ffsz_alcopystr(name)", "parent": 172, "children": [174, 177, 178], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 44}}, {"id": 174, "type": "field_expression", "text": "t->name", "parent": 173, "children": [175, 176], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 21}}, {"id": 175, "type": "identifier", "text": "t", "parent": 174, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 176, "type": "field_identifier", "text": "name", "parent": 174, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 21}}, {"id": 177, "type": "=", "text": "=", "parent": 173, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 178, "type": "call_expression", "text": "ffsz_alcopystr(name)", "parent": 173, "children": [179, 180], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 44}}, {"id": 179, "type": "identifier", "text": "ffsz_alcopystr", "parent": 178, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 38}}, {"id": 180, "type": "argument_list", "text": "(name)", "parent": 178, "children": [181], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 44}}, {"id": 181, "type": "identifier", "text": "name", "parent": 180, "children": [], "start_point": {"row": 45, "column": 39}, "end_point": {"row": 45, "column": 43}}, {"id": 182, "type": "return_statement", "text": "return FFPARS_ESYS;", "parent": 166, "children": [183], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 21}}, {"id": 183, "type": "identifier", "text": "FFPARS_ESYS", "parent": 182, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 20}}, {"id": 184, "type": "call_expression", "text": "ffconf_scheme_skipctx(cs)", "parent": 60, "children": [185, 186], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 26}}, {"id": 185, "type": "identifier", "text": "ffconf_scheme_skipctx", "parent": 184, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 22}}, {"id": 186, "type": "argument_list", "text": "(cs)", "parent": 184, "children": [187], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 26}}, {"id": 187, "type": "identifier", "text": "cs", "parent": 186, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 25}}, {"id": 188, "type": "return_statement", "text": "return 0;", "parent": 60, "children": [189], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 10}}, {"id": 189, "type": "number_literal", "text": "0", "parent": 188, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 190, "type": "declaration", "text": "static const ffconf_arg gui_themeconf_args[] = {\n\t{ \"theme\",\tFFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n\t{}\n};", "parent": null, "children": [191, 192], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 54, "column": 2}}, {"id": 191, "type": "type_identifier", "text": "ffconf_arg", "parent": 190, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 23}}, {"id": 192, "type": "init_declarator", "text": "gui_themeconf_args[] = {\n\t{ \"theme\",\tFFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n\t{}\n}", "parent": 190, "children": [193, 195, 196], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 54, "column": 1}}, {"id": 193, "type": "array_declarator", "text": "gui_themeconf_args[]", "parent": 192, "children": [194], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 44}}, {"id": 194, "type": "identifier", "text": "gui_themeconf_args", "parent": 193, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 42}}, {"id": 195, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 51, "column": 45}, "end_point": {"row": 51, "column": 46}}, {"id": 196, "type": "initializer_list", "text": "{\n\t{ \"theme\",\tFFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n\t{}\n}", "parent": 192, "children": [197, 208], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 54, "column": 1}}, {"id": 197, "type": "initializer_list", "text": "{ \"theme\",\tFFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new }", "parent": 196, "children": [198, 199, 204], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 84}}, {"id": 198, "type": "string_literal", "text": "\"theme\"", "parent": 197, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 10}}, {"id": 199, "type": "binary_expression", "text": "FFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI", "parent": 197, "children": [200, 203], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 58}}, {"id": 200, "type": "binary_expression", "text": "FFCONF_TOBJ | FFCONF_FNOTEMPTY", "parent": 199, "children": [201, 202], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 42}}, {"id": 201, "type": "identifier", "text": "FFCONF_TOBJ", "parent": 200, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 23}}, {"id": 202, "type": "identifier", "text": "FFCONF_FNOTEMPTY", "parent": 200, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 42}}, {"id": 203, "type": "identifier", "text": "FFCONF_FMULTI", "parent": 199, "children": [], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 58}}, {"id": 204, "type": "cast_expression", "text": "(ffsize)theme_conf_new", "parent": 197, "children": [205, 207], "start_point": {"row": 52, "column": 60}, "end_point": {"row": 52, "column": 82}}, {"id": 205, "type": "type_descriptor", "text": "ffsize", "parent": 204, "children": [206], "start_point": {"row": 52, "column": 61}, "end_point": {"row": 52, "column": 67}}, {"id": 206, "type": "type_identifier", "text": "ffsize", "parent": 205, "children": [], "start_point": {"row": 52, "column": 61}, "end_point": {"row": 52, "column": 67}}, {"id": 207, "type": "identifier", "text": "theme_conf_new", "parent": 204, "children": [], "start_point": {"row": 52, "column": 68}, "end_point": {"row": 52, "column": 82}}, {"id": 208, "type": "initializer_list", "text": "{}", "parent": 196, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 3}}, {"id": 209, "type": "function_definition", "text": "static int themes_read2(struct theme *t, const char *ofn)\n{\n\tint rc = -1, r;\n\tffbool copy = 0;\n\tffconf_ctxcopy ctxcopy = {};\n\tffstr themedata = {};\n\tffvec ddata = {};\n\tchar *fn = NULL;\n\n\tstruct theme_reader tr = {};\n\ttr.find = t;\n\n\tffconf conf = {};\n\tffconf_init(&conf);\n\n\tffconf_scheme cs = {};\n\tffconf_scheme_init(&cs, &conf);\n\tffconf_scheme_addctx(&cs, gui_themeconf_args, &tr);\n\n\tfn = core->getpath(FFSTR(\"theme.conf\"));\n\tif (0 != fffile_readwhole(fn, &ddata, -1)) {\n\t\tsyserrlog0(\"theme.conf parser: fffile_readwhole\");\n\t\tgoto end;\n\t}\n\n\tffstr data;\n\tffstr_set2(&data, &ddata);\n\n\twhile (data.len != 0) {\n\t\tr = ffconf_parse(&conf, &data);\n\t\tif (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_parse: %s\", ffconf_errstr(r));\n\t\t\tgoto end;\n\t\t}\n\n\t\tif (copy) {\n\t\t\tr = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n\t\t\tif (r < 0) {\n\t\t\t\terrlog0(\"theme.conf parser: ffconf_ctx_copy\");\n\t\t\t\tgoto end;\n\t\t\t} else if (r > 0) {\n\t\t\t\tthemedata = ffconf_ctxcopy_acquire(&ctxcopy);\n\t\t\t\tffconf_ctxcopy_destroy(&ctxcopy);\n\t\t\t\tif (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t\trc = 0;\n\t\t\t\tgoto end;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tr = ffconf_scheme_process(&cs, r);\n\t\tif (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_scheme_process: %s: %s\", ffconf_errstr(r), cs.errmsg);\n\t\t\tgoto end;\n\t\t}\n\n\t\tif (tr.found) {\n\t\t\tffconf_ctxcopy_init(&ctxcopy);\n\t\t\tcopy = 1;\n\t\t}\n\t}\n\nend:\n\tffmem_free(fn);\n\tffstr_free(&themedata);\n\tffconf_fin(&conf);\n\tffconf_scheme_destroy(&cs);\n\tffvec_free(&ddata);\n\tffconf_ctxcopy_destroy(&ctxcopy);\n\treturn rc;\n}", "parent": null, "children": [210, 211], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 132, "column": 1}}, {"id": 210, "type": "primitive_type", "text": "int", "parent": 209, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 10}}, {"id": 211, "type": "function_declarator", "text": "themes_read2(struct theme *t, const char *ofn)", "parent": 209, "children": [212, 213], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 57}}, {"id": 212, "type": "identifier", "text": "themes_read2", "parent": 211, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 23}}, {"id": 213, "type": "parameter_list", "text": "(struct theme *t, const char *ofn)", "parent": 211, "children": [214, 221], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 57}}, {"id": 214, "type": "parameter_declaration", "text": "struct theme *t", "parent": 213, "children": [215, 218], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 39}}, {"id": 215, "type": "struct_specifier", "text": "struct theme", "parent": 214, "children": [216, 217], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 36}}, {"id": 216, "type": "struct", "text": "struct", "parent": 215, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 30}}, {"id": 217, "type": "type_identifier", "text": "theme", "parent": 215, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 36}}, {"id": 218, "type": "pointer_declarator", "text": "*t", "parent": 214, "children": [219, 220], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 59, "column": 39}}, {"id": 219, "type": "*", "text": "*", "parent": 218, "children": [], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 59, "column": 38}}, {"id": 220, "type": "identifier", "text": "t", "parent": 218, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 39}}, {"id": 221, "type": "parameter_declaration", "text": "const char *ofn", "parent": 213, "children": [222, 223], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 56}}, {"id": 222, "type": "primitive_type", "text": "char", "parent": 221, "children": [], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 51}}, {"id": 223, "type": "pointer_declarator", "text": "*ofn", "parent": 221, "children": [224, 225], "start_point": {"row": 59, "column": 52}, "end_point": {"row": 59, "column": 56}}, {"id": 224, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 59, "column": 52}, "end_point": {"row": 59, "column": 53}}, {"id": 225, "type": "identifier", "text": "ofn", "parent": 223, "children": [], "start_point": {"row": 59, "column": 53}, "end_point": {"row": 59, "column": 56}}, {"id": 226, "type": "declaration", "text": "int rc = -1, r;", "parent": 209, "children": [227, 228, 232], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 16}}, {"id": 227, "type": "primitive_type", "text": "int", "parent": 226, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 4}}, {"id": 228, "type": "init_declarator", "text": "rc = -1", "parent": 226, "children": [229, 230, 231], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 12}}, {"id": 229, "type": "identifier", "text": "rc", "parent": 228, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 7}}, {"id": 230, "type": "=", "text": "=", "parent": 228, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 231, "type": "number_literal", "text": "-1", "parent": 228, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 12}}, {"id": 232, "type": "identifier", "text": "r", "parent": 226, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 15}}, {"id": 233, "type": "declaration", "text": "ffbool copy = 0;", "parent": 209, "children": [234, 235], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 17}}, {"id": 234, "type": "type_identifier", "text": "ffbool", "parent": 233, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 7}}, {"id": 235, "type": "init_declarator", "text": "copy = 0", "parent": 233, "children": [236, 237, 238], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 16}}, {"id": 236, "type": "identifier", "text": "copy", "parent": 235, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 12}}, {"id": 237, "type": "=", "text": "=", "parent": 235, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 14}}, {"id": 238, "type": "number_literal", "text": "0", "parent": 235, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 16}}, {"id": 239, "type": "declaration", "text": "ffconf_ctxcopy ctxcopy = {};", "parent": 209, "children": [240, 241], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 29}}, {"id": 240, "type": "type_identifier", "text": "ffconf_ctxcopy", "parent": 239, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 15}}, {"id": 241, "type": "init_declarator", "text": "ctxcopy = {}", "parent": 239, "children": [242, 243, 244], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 28}}, {"id": 242, "type": "identifier", "text": "ctxcopy", "parent": 241, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 23}}, {"id": 243, "type": "=", "text": "=", "parent": 241, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 244, "type": "initializer_list", "text": "{}", "parent": 241, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 28}}, {"id": 245, "type": "declaration", "text": "ffstr themedata = {};", "parent": 209, "children": [246, 247], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 22}}, {"id": 246, "type": "type_identifier", "text": "ffstr", "parent": 245, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 6}}, {"id": 247, "type": "init_declarator", "text": "themedata = {}", "parent": 245, "children": [248, 249, 250], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 21}}, {"id": 248, "type": "identifier", "text": "themedata", "parent": 247, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 16}}, {"id": 249, "type": "=", "text": "=", "parent": 247, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 18}}, {"id": 250, "type": "initializer_list", "text": "{}", "parent": 247, "children": [], "start_point": {"row": 64, "column": 19}, "end_point": {"row": 64, "column": 21}}, {"id": 251, "type": "declaration", "text": "ffvec ddata = {};", "parent": 209, "children": [252, 253], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 18}}, {"id": 252, "type": "type_identifier", "text": "ffvec", "parent": 251, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 6}}, {"id": 253, "type": "init_declarator", "text": "ddata = {}", "parent": 251, "children": [254, 255, 256], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 17}}, {"id": 254, "type": "identifier", "text": "ddata", "parent": 253, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 12}}, {"id": 255, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 14}}, {"id": 256, "type": "initializer_list", "text": "{}", "parent": 253, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 17}}, {"id": 257, "type": "declaration", "text": "char *fn = NULL;", "parent": 209, "children": [258, 259], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 17}}, {"id": 258, "type": "primitive_type", "text": "char", "parent": 257, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 5}}, {"id": 259, "type": "init_declarator", "text": "*fn = NULL", "parent": 257, "children": [260, 263, 264], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 16}}, {"id": 260, "type": "pointer_declarator", "text": "*fn", "parent": 259, "children": [261, 262], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 9}}, {"id": 261, "type": "*", "text": "*", "parent": 260, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 7}}, {"id": 262, "type": "identifier", "text": "fn", "parent": 260, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 9}}, {"id": 263, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 264, "type": "null", "text": "NULL", "parent": 259, "children": [265], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 16}}, {"id": 265, "type": "NULL", "text": "NULL", "parent": 264, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 16}}, {"id": 266, "type": "declaration", "text": "struct theme_reader tr = {};", "parent": 209, "children": [267, 270], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 29}}, {"id": 267, "type": "struct_specifier", "text": "struct theme_reader", "parent": 266, "children": [268, 269], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 20}}, {"id": 268, "type": "struct", "text": "struct", "parent": 267, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 7}}, {"id": 269, "type": "type_identifier", "text": "theme_reader", "parent": 267, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 20}}, {"id": 270, "type": "init_declarator", "text": "tr = {}", "parent": 266, "children": [271, 272, 273], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 28}}, {"id": 271, "type": "identifier", "text": "tr", "parent": 270, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 23}}, {"id": 272, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 25}}, {"id": 273, "type": "initializer_list", "text": "{}", "parent": 270, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 28}}, {"id": 274, "type": "assignment_expression", "text": "tr.find = t", "parent": 209, "children": [275, 278, 279], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 12}}, {"id": 275, "type": "field_expression", "text": "tr.find", "parent": 274, "children": [276, 277], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 8}}, {"id": 276, "type": "identifier", "text": "tr", "parent": 275, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 3}}, {"id": 277, "type": "field_identifier", "text": "find", "parent": 275, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 8}}, {"id": 278, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 10}}, {"id": 279, "type": "identifier", "text": "t", "parent": 274, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 12}}, {"id": 280, "type": "declaration", "text": "ffconf conf = {};", "parent": 209, "children": [281, 282], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 18}}, {"id": 281, "type": "type_identifier", "text": "ffconf", "parent": 280, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 7}}, {"id": 282, "type": "init_declarator", "text": "conf = {}", "parent": 280, "children": [283, 284, 285], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 17}}, {"id": 283, "type": "identifier", "text": "conf", "parent": 282, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 12}}, {"id": 284, "type": "=", "text": "=", "parent": 282, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 14}}, {"id": 285, "type": "initializer_list", "text": "{}", "parent": 282, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 17}}, {"id": 286, "type": "call_expression", "text": "ffconf_init(&conf)", "parent": 209, "children": [287, 288], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 19}}, {"id": 287, "type": "identifier", "text": "ffconf_init", "parent": 286, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 12}}, {"id": 288, "type": "argument_list", "text": "(&conf)", "parent": 286, "children": [289], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 19}}, {"id": 289, "type": "pointer_expression", "text": "&conf", "parent": 288, "children": [290], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 18}}, {"id": 290, "type": "identifier", "text": "conf", "parent": 289, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 18}}, {"id": 291, "type": "declaration", "text": "ffconf_scheme cs = {};", "parent": 209, "children": [292, 293], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 23}}, {"id": 292, "type": "type_identifier", "text": "ffconf_scheme", "parent": 291, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 14}}, {"id": 293, "type": "init_declarator", "text": "cs = {}", "parent": 291, "children": [294, 295, 296], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 22}}, {"id": 294, "type": "identifier", "text": "cs", "parent": 293, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 17}}, {"id": 295, "type": "=", "text": "=", "parent": 293, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 19}}, {"id": 296, "type": "initializer_list", "text": "{}", "parent": 293, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 22}}, {"id": 297, "type": "call_expression", "text": "ffconf_scheme_init(&cs, &conf)", "parent": 209, "children": [298, 299], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 31}}, {"id": 298, "type": "identifier", "text": "ffconf_scheme_init", "parent": 297, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 19}}, {"id": 299, "type": "argument_list", "text": "(&cs, &conf)", "parent": 297, "children": [300, 302], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 31}}, {"id": 300, "type": "pointer_expression", "text": "&cs", "parent": 299, "children": [301], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 23}}, {"id": 301, "type": "identifier", "text": "cs", "parent": 300, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 23}}, {"id": 302, "type": "pointer_expression", "text": "&conf", "parent": 299, "children": [303], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 30}}, {"id": 303, "type": "identifier", "text": "conf", "parent": 302, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 30}}, {"id": 304, "type": "call_expression", "text": "ffconf_scheme_addctx(&cs, gui_themeconf_args, &tr)", "parent": 209, "children": [305, 306], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 51}}, {"id": 305, "type": "identifier", "text": "ffconf_scheme_addctx", "parent": 304, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 21}}, {"id": 306, "type": "argument_list", "text": "(&cs, gui_themeconf_args, &tr)", "parent": 304, "children": [307, 309, 310], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 51}}, {"id": 307, "type": "pointer_expression", "text": "&cs", "parent": 306, "children": [308], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 25}}, {"id": 308, "type": "identifier", "text": "cs", "parent": 307, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 25}}, {"id": 309, "type": "identifier", "text": "gui_themeconf_args", "parent": 306, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 45}}, {"id": 310, "type": "pointer_expression", "text": "&tr", "parent": 306, "children": [311], "start_point": {"row": 76, "column": 47}, "end_point": {"row": 76, "column": 50}}, {"id": 311, "type": "identifier", "text": "tr", "parent": 310, "children": [], "start_point": {"row": 76, "column": 48}, "end_point": {"row": 76, "column": 50}}, {"id": 312, "type": "assignment_expression", "text": "fn = core->getpath(FFSTR(\"theme.conf\"))", "parent": 209, "children": [313, 314, 315], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 40}}, {"id": 313, "type": "identifier", "text": "fn", "parent": 312, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 3}}, {"id": 314, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 5}}, {"id": 315, "type": "call_expression", "text": "core->getpath(FFSTR(\"theme.conf\"))", "parent": 312, "children": [316, 319], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 40}}, {"id": 316, "type": "field_expression", "text": "core->getpath", "parent": 315, "children": [317, 318], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 19}}, {"id": 317, "type": "identifier", "text": "core", "parent": 316, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 10}}, {"id": 318, "type": "field_identifier", "text": "getpath", "parent": 316, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 19}}, {"id": 319, "type": "argument_list", "text": "(FFSTR(\"theme.conf\"))", "parent": 315, "children": [320], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 40}}, {"id": 320, "type": "call_expression", "text": "FFSTR(\"theme.conf\")", "parent": 319, "children": [321, 322], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 39}}, {"id": 321, "type": "identifier", "text": "FFSTR", "parent": 320, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 25}}, {"id": 322, "type": "argument_list", "text": "(\"theme.conf\")", "parent": 320, "children": [323], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 39}}, {"id": 323, "type": "string_literal", "text": "\"theme.conf\"", "parent": 322, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 38}}, {"id": 324, "type": "if_statement", "text": "if (0 != fffile_readwhole(fn, &ddata, -1)) {\n\t\tsyserrlog0(\"theme.conf parser: fffile_readwhole\");\n\t\tgoto end;\n\t}", "parent": 209, "children": [325], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 82, "column": 2}}, {"id": 325, "type": "parenthesized_expression", "text": "(0 != fffile_readwhole(fn, &ddata, -1))", "parent": 324, "children": [326], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 43}}, {"id": 326, "type": "binary_expression", "text": "0 != fffile_readwhole(fn, &ddata, -1)", "parent": 325, "children": [327, 328, 329], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 42}}, {"id": 327, "type": "number_literal", "text": "0", "parent": 326, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 6}}, {"id": 328, "type": "!=", "text": "!=", "parent": 326, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 9}}, {"id": 329, "type": "call_expression", "text": "fffile_readwhole(fn, &ddata, -1)", "parent": 326, "children": [330, 331], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 42}}, {"id": 330, "type": "identifier", "text": "fffile_readwhole", "parent": 329, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 26}}, {"id": 331, "type": "argument_list", "text": "(fn, &ddata, -1)", "parent": 329, "children": [332, 333, 335], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 42}}, {"id": 332, "type": "identifier", "text": "fn", "parent": 331, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 29}}, {"id": 333, "type": "pointer_expression", "text": "&ddata", "parent": 331, "children": [334], "start_point": {"row": 79, "column": 31}, "end_point": {"row": 79, "column": 37}}, {"id": 334, "type": "identifier", "text": "ddata", "parent": 333, "children": [], "start_point": {"row": 79, "column": 32}, "end_point": {"row": 79, "column": 37}}, {"id": 335, "type": "number_literal", "text": "-1", "parent": 331, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 41}}, {"id": 336, "type": "call_expression", "text": "syserrlog0(\"theme.conf parser: fffile_readwhole\")", "parent": 324, "children": [337, 338], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 51}}, {"id": 337, "type": "identifier", "text": "syserrlog0", "parent": 336, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 12}}, {"id": 338, "type": "argument_list", "text": "(\"theme.conf parser: fffile_readwhole\")", "parent": 336, "children": [339], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 51}}, {"id": 339, "type": "string_literal", "text": "\"theme.conf parser: fffile_readwhole\"", "parent": 338, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 50}}, {"id": 340, "type": "goto_statement", "text": "goto end;", "parent": 324, "children": [341], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 11}}, {"id": 341, "type": "goto", "text": "goto", "parent": 340, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 6}}, {"id": 342, "type": "declaration", "text": "ffstr data;", "parent": 209, "children": [343, 344], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 12}}, {"id": 343, "type": "type_identifier", "text": "ffstr", "parent": 342, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 6}}, {"id": 344, "type": "identifier", "text": "data", "parent": 342, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 11}}, {"id": 345, "type": "call_expression", "text": "ffstr_set2(&data, &ddata)", "parent": 209, "children": [346, 347], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 26}}, {"id": 346, "type": "identifier", "text": "ffstr_set2", "parent": 345, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 11}}, {"id": 347, "type": "argument_list", "text": "(&data, &ddata)", "parent": 345, "children": [348, 350], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 26}}, {"id": 348, "type": "pointer_expression", "text": "&data", "parent": 347, "children": [349], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 17}}, {"id": 349, "type": "identifier", "text": "data", "parent": 348, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 17}}, {"id": 350, "type": "pointer_expression", "text": "&ddata", "parent": 347, "children": [351], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 25}}, {"id": 351, "type": "identifier", "text": "ddata", "parent": 350, "children": [], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 25}}, {"id": 352, "type": "while_statement", "text": "while (data.len != 0) {\n\t\tr = ffconf_parse(&conf, &data);\n\t\tif (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_parse: %s\", ffconf_errstr(r));\n\t\t\tgoto end;\n\t\t}\n\n\t\tif (copy) {\n\t\t\tr = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n\t\t\tif (r < 0) {\n\t\t\t\terrlog0(\"theme.conf parser: ffconf_ctx_copy\");\n\t\t\t\tgoto end;\n\t\t\t} else if (r > 0) {\n\t\t\t\tthemedata = ffconf_ctxcopy_acquire(&ctxcopy);\n\t\t\t\tffconf_ctxcopy_destroy(&ctxcopy);\n\t\t\t\tif (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t\trc = 0;\n\t\t\t\tgoto end;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tr = ffconf_scheme_process(&cs, r);\n\t\tif (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_scheme_process: %s: %s\", ffconf_errstr(r), cs.errmsg);\n\t\t\tgoto end;\n\t\t}\n\n\t\tif (tr.found) {\n\t\t\tffconf_ctxcopy_init(&ctxcopy);\n\t\t\tcopy = 1;\n\t\t}\n\t}", "parent": 209, "children": [353], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 122, "column": 2}}, {"id": 353, "type": "parenthesized_expression", "text": "(data.len != 0)", "parent": 352, "children": [354], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 22}}, {"id": 354, "type": "binary_expression", "text": "data.len != 0", "parent": 353, "children": [355, 358, 359], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 21}}, {"id": 355, "type": "field_expression", "text": "data.len", "parent": 354, "children": [356, 357], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 16}}, {"id": 356, "type": "identifier", "text": "data", "parent": 355, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 12}}, {"id": 357, "type": "field_identifier", "text": "len", "parent": 355, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 16}}, {"id": 358, "type": "!=", "text": "!=", "parent": 354, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 19}}, {"id": 359, "type": "number_literal", "text": "0", "parent": 354, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 21}}, {"id": 360, "type": "assignment_expression", "text": "r = ffconf_parse(&conf, &data)", "parent": 352, "children": [361, 362, 363], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 32}}, {"id": 361, "type": "identifier", "text": "r", "parent": 360, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 3}}, {"id": 362, "type": "=", "text": "=", "parent": 360, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 363, "type": "call_expression", "text": "ffconf_parse(&conf, &data)", "parent": 360, "children": [364, 365], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 32}}, {"id": 364, "type": "identifier", "text": "ffconf_parse", "parent": 363, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 18}}, {"id": 365, "type": "argument_list", "text": "(&conf, &data)", "parent": 363, "children": [366, 368], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 32}}, {"id": 366, "type": "pointer_expression", "text": "&conf", "parent": 365, "children": [367], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 24}}, {"id": 367, "type": "identifier", "text": "conf", "parent": 366, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 24}}, {"id": 368, "type": "pointer_expression", "text": "&data", "parent": 365, "children": [369], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 31}}, {"id": 369, "type": "identifier", "text": "data", "parent": 368, "children": [], "start_point": {"row": 88, "column": 27}, "end_point": {"row": 88, "column": 31}}, {"id": 370, "type": "if_statement", "text": "if (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_parse: %s\", ffconf_errstr(r));\n\t\t\tgoto end;\n\t\t}", "parent": 352, "children": [371], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 92, "column": 3}}, {"id": 371, "type": "parenthesized_expression", "text": "(r < 0)", "parent": 370, "children": [372], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 12}}, {"id": 372, "type": "binary_expression", "text": "r < 0", "parent": 371, "children": [373, 374, 375], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 11}}, {"id": 373, "type": "identifier", "text": "r", "parent": 372, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 7}}, {"id": 374, "type": "<", "text": "<", "parent": 372, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 375, "type": "number_literal", "text": "0", "parent": 372, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 11}}, {"id": 376, "type": "call_expression", "text": "errlog0(\"theme.conf: ffconf_parse: %s\", ffconf_errstr(r))", "parent": 370, "children": [377, 378], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 60}}, {"id": 377, "type": "identifier", "text": "errlog0", "parent": 376, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 10}}, {"id": 378, "type": "argument_list", "text": "(\"theme.conf: ffconf_parse: %s\", ffconf_errstr(r))", "parent": 376, "children": [379, 380], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 60}}, {"id": 379, "type": "string_literal", "text": "\"theme.conf: ffconf_parse: %s\"", "parent": 378, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 41}}, {"id": 380, "type": "call_expression", "text": "ffconf_errstr(r)", "parent": 378, "children": [381, 382], "start_point": {"row": 90, "column": 43}, "end_point": {"row": 90, "column": 59}}, {"id": 381, "type": "identifier", "text": "ffconf_errstr", "parent": 380, "children": [], "start_point": {"row": 90, "column": 43}, "end_point": {"row": 90, "column": 56}}, {"id": 382, "type": "argument_list", "text": "(r)", "parent": 380, "children": [383], "start_point": {"row": 90, "column": 56}, "end_point": {"row": 90, "column": 59}}, {"id": 383, "type": "identifier", "text": "r", "parent": 382, "children": [], "start_point": {"row": 90, "column": 57}, "end_point": {"row": 90, "column": 58}}, {"id": 384, "type": "goto_statement", "text": "goto end;", "parent": 370, "children": [385], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 12}}, {"id": 385, "type": "goto", "text": "goto", "parent": 384, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 7}}, {"id": 386, "type": "if_statement", "text": "if (copy) {\n\t\t\tr = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n\t\t\tif (r < 0) {\n\t\t\t\terrlog0(\"theme.conf parser: ffconf_ctx_copy\");\n\t\t\t\tgoto end;\n\t\t\t} else if (r > 0) {\n\t\t\t\tthemedata = ffconf_ctxcopy_acquire(&ctxcopy);\n\t\t\t\tffconf_ctxcopy_destroy(&ctxcopy);\n\t\t\t\tif (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t\trc = 0;\n\t\t\t\tgoto end;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}", "parent": 352, "children": [387], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 110, "column": 3}}, {"id": 387, "type": "parenthesized_expression", "text": "(copy)", "parent": 386, "children": [388], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 11}}, {"id": 388, "type": "identifier", "text": "copy", "parent": 387, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 10}}, {"id": 389, "type": "assignment_expression", "text": "r = ffconf_ctx_copy(&ctxcopy, conf.val, r)", "parent": 386, "children": [390, 391, 392], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 45}}, {"id": 390, "type": "identifier", "text": "r", "parent": 389, "children": [], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 4}}, {"id": 391, "type": "=", "text": "=", "parent": 389, "children": [], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 6}}, {"id": 392, "type": "call_expression", "text": "ffconf_ctx_copy(&ctxcopy, conf.val, r)", "parent": 389, "children": [393, 394], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 45}}, {"id": 393, "type": "identifier", "text": "ffconf_ctx_copy", "parent": 392, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 22}}, {"id": 394, "type": "argument_list", "text": "(&ctxcopy, conf.val, r)", "parent": 392, "children": [395, 397, 400], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 45}}, {"id": 395, "type": "pointer_expression", "text": "&ctxcopy", "parent": 394, "children": [396], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 31}}, {"id": 396, "type": "identifier", "text": "ctxcopy", "parent": 395, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 31}}, {"id": 397, "type": "field_expression", "text": "conf.val", "parent": 394, "children": [398, 399], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 41}}, {"id": 398, "type": "identifier", "text": "conf", "parent": 397, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 37}}, {"id": 399, "type": "field_identifier", "text": "val", "parent": 397, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 41}}, {"id": 400, "type": "identifier", "text": "r", "parent": 394, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 44}}, {"id": 401, "type": "if_statement", "text": "if (r < 0) {\n\t\t\t\terrlog0(\"theme.conf parser: ffconf_ctx_copy\");\n\t\t\t\tgoto end;\n\t\t\t} else if (r > 0) {\n\t\t\t\tthemedata = ffconf_ctxcopy_acquire(&ctxcopy);\n\t\t\t\tffconf_ctxcopy_destroy(&ctxcopy);\n\t\t\t\tif (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t\trc = 0;\n\t\t\t\tgoto end;\n\t\t\t}", "parent": 386, "children": [402, 413], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 108, "column": 4}}, {"id": 402, "type": "parenthesized_expression", "text": "(r < 0)", "parent": 401, "children": [403], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 13}}, {"id": 403, "type": "binary_expression", "text": "r < 0", "parent": 402, "children": [404, 405, 406], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 12}}, {"id": 404, "type": "identifier", "text": "r", "parent": 403, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 8}}, {"id": 405, "type": "<", "text": "<", "parent": 403, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 10}}, {"id": 406, "type": "number_literal", "text": "0", "parent": 403, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 12}}, {"id": 407, "type": "call_expression", "text": "errlog0(\"theme.conf parser: ffconf_ctx_copy\")", "parent": 401, "children": [408, 409], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 49}}, {"id": 408, "type": "identifier", "text": "errlog0", "parent": 407, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 11}}, {"id": 409, "type": "argument_list", "text": "(\"theme.conf parser: ffconf_ctx_copy\")", "parent": 407, "children": [410], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 49}}, {"id": 410, "type": "string_literal", "text": "\"theme.conf parser: ffconf_ctx_copy\"", "parent": 409, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 48}}, {"id": 411, "type": "goto_statement", "text": "goto end;", "parent": 401, "children": [412], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 13}}, {"id": 412, "type": "goto", "text": "goto", "parent": 411, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 8}}, {"id": 413, "type": "else_clause", "text": "else if (r > 0) {\n\t\t\t\tthemedata = ffconf_ctxcopy_acquire(&ctxcopy);\n\t\t\t\tffconf_ctxcopy_destroy(&ctxcopy);\n\t\t\t\tif (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t\trc = 0;\n\t\t\t\tgoto end;\n\t\t\t}", "parent": 401, "children": [414], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 108, "column": 4}}, {"id": 414, "type": "if_statement", "text": "if (r > 0) {\n\t\t\t\tthemedata = ffconf_ctxcopy_acquire(&ctxcopy);\n\t\t\t\tffconf_ctxcopy_destroy(&ctxcopy);\n\t\t\t\tif (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t\trc = 0;\n\t\t\t\tgoto end;\n\t\t\t}", "parent": 413, "children": [415], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 108, "column": 4}}, {"id": 415, "type": "parenthesized_expression", "text": "(r > 0)", "parent": 414, "children": [416], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 20}}, {"id": 416, "type": "binary_expression", "text": "r > 0", "parent": 415, "children": [417, 418, 419], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 19}}, {"id": 417, "type": "identifier", "text": "r", "parent": 416, "children": [], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 15}}, {"id": 418, "type": ">", "text": ">", "parent": 416, "children": [], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 17}}, {"id": 419, "type": "number_literal", "text": "0", "parent": 416, "children": [], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 19}}, {"id": 420, "type": "assignment_expression", "text": "themedata = ffconf_ctxcopy_acquire(&ctxcopy)", "parent": 414, "children": [421, 422, 423], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 48}}, {"id": 421, "type": "identifier", "text": "themedata", "parent": 420, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 13}}, {"id": 422, "type": "=", "text": "=", "parent": 420, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 15}}, {"id": 423, "type": "call_expression", "text": "ffconf_ctxcopy_acquire(&ctxcopy)", "parent": 420, "children": [424, 425], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 48}}, {"id": 424, "type": "identifier", "text": "ffconf_ctxcopy_acquire", "parent": 423, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 38}}, {"id": 425, "type": "argument_list", "text": "(&ctxcopy)", "parent": 423, "children": [426], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 48}}, {"id": 426, "type": "pointer_expression", "text": "&ctxcopy", "parent": 425, "children": [427], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 47}}, {"id": 427, "type": "identifier", "text": "ctxcopy", "parent": 426, "children": [], "start_point": {"row": 100, "column": 40}, "end_point": {"row": 100, "column": 47}}, {"id": 428, "type": "call_expression", "text": "ffconf_ctxcopy_destroy(&ctxcopy)", "parent": 414, "children": [429, 430], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 36}}, {"id": 429, "type": "identifier", "text": "ffconf_ctxcopy_destroy", "parent": 428, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 26}}, {"id": 430, "type": "argument_list", "text": "(&ctxcopy)", "parent": 428, "children": [431], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 36}}, {"id": 431, "type": "pointer_expression", "text": "&ctxcopy", "parent": 430, "children": [432], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 35}}, {"id": 432, "type": "identifier", "text": "ctxcopy", "parent": 431, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 35}}, {"id": 433, "type": "if_statement", "text": "if (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}", "parent": 414, "children": [434], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 434, "type": "parenthesized_expression", "text": "(0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0))", "parent": 433, "children": [435], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 69}}, {"id": 435, "type": "binary_expression", "text": "0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)", "parent": 434, "children": [436, 437, 438], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 68}}, {"id": 436, "type": "number_literal", "text": "0", "parent": 435, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 9}}, {"id": 437, "type": "!=", "text": "!=", "parent": 435, "children": [], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 12}}, {"id": 438, "type": "call_expression", "text": "fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)", "parent": 435, "children": [439, 440], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 68}}, {"id": 439, "type": "identifier", "text": "fffile_writewhole", "parent": 438, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 30}}, {"id": 440, "type": "argument_list", "text": "(ofn, themedata.ptr, themedata.len, 0)", "parent": 438, "children": [441, 442, 445, 448], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 68}}, {"id": 441, "type": "identifier", "text": "ofn", "parent": 440, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 34}}, {"id": 442, "type": "field_expression", "text": "themedata.ptr", "parent": 440, "children": [443, 444], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 49}}, {"id": 443, "type": "identifier", "text": "themedata", "parent": 442, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 45}}, {"id": 444, "type": "field_identifier", "text": "ptr", "parent": 442, "children": [], "start_point": {"row": 102, "column": 46}, "end_point": {"row": 102, "column": 49}}, {"id": 445, "type": "field_expression", "text": "themedata.len", "parent": 440, "children": [446, 447], "start_point": {"row": 102, "column": 51}, "end_point": {"row": 102, "column": 64}}, {"id": 446, "type": "identifier", "text": "themedata", "parent": 445, "children": [], "start_point": {"row": 102, "column": 51}, "end_point": {"row": 102, "column": 60}}, {"id": 447, "type": "field_identifier", "text": "len", "parent": 445, "children": [], "start_point": {"row": 102, "column": 61}, "end_point": {"row": 102, "column": 64}}, {"id": 448, "type": "number_literal", "text": "0", "parent": 440, "children": [], "start_point": {"row": 102, "column": 66}, "end_point": {"row": 102, "column": 67}}, {"id": 449, "type": "call_expression", "text": "syserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn)", "parent": 433, "children": [450, 451], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 66}}, {"id": 450, "type": "identifier", "text": "syserrlog0", "parent": 449, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 15}}, {"id": 451, "type": "argument_list", "text": "(\"theme.conf parser: fffile_writewhole(): %s\", ofn)", "parent": 449, "children": [452, 453], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 66}}, {"id": 452, "type": "string_literal", "text": "\"theme.conf parser: fffile_writewhole(): %s\"", "parent": 451, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 60}}, {"id": 453, "type": "identifier", "text": "ofn", "parent": 451, "children": [], "start_point": {"row": 103, "column": 62}, "end_point": {"row": 103, "column": 65}}, {"id": 454, "type": "goto_statement", "text": "goto end;", "parent": 433, "children": [455], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 14}}, {"id": 455, "type": "goto", "text": "goto", "parent": 454, "children": [], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 9}}, {"id": 456, "type": "assignment_expression", "text": "rc = 0", "parent": 414, "children": [457, 458, 459], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 10}}, {"id": 457, "type": "identifier", "text": "rc", "parent": 456, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 6}}, {"id": 458, "type": "=", "text": "=", "parent": 456, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 8}}, {"id": 459, "type": "number_literal", "text": "0", "parent": 456, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 10}}, {"id": 460, "type": "goto_statement", "text": "goto end;", "parent": 414, "children": [461], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 13}}, {"id": 461, "type": "goto", "text": "goto", "parent": 460, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 8}}, {"id": 462, "type": "continue_statement", "text": "continue;", "parent": 386, "children": [463], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 12}}, {"id": 463, "type": "continue", "text": "continue", "parent": 462, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 11}}, {"id": 464, "type": "assignment_expression", "text": "r = ffconf_scheme_process(&cs, r)", "parent": 352, "children": [465, 466, 467], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 35}}, {"id": 465, "type": "identifier", "text": "r", "parent": 464, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 3}}, {"id": 466, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 5}}, {"id": 467, "type": "call_expression", "text": "ffconf_scheme_process(&cs, r)", "parent": 464, "children": [468, 469], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 35}}, {"id": 468, "type": "identifier", "text": "ffconf_scheme_process", "parent": 467, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 27}}, {"id": 469, "type": "argument_list", "text": "(&cs, r)", "parent": 467, "children": [470, 472], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 35}}, {"id": 470, "type": "pointer_expression", "text": "&cs", "parent": 469, "children": [471], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 31}}, {"id": 471, "type": "identifier", "text": "cs", "parent": 470, "children": [], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 31}}, {"id": 472, "type": "identifier", "text": "r", "parent": 469, "children": [], "start_point": {"row": 112, "column": 33}, "end_point": {"row": 112, "column": 34}}, {"id": 473, "type": "if_statement", "text": "if (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_scheme_process: %s: %s\", ffconf_errstr(r), cs.errmsg);\n\t\t\tgoto end;\n\t\t}", "parent": 352, "children": [474], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 116, "column": 3}}, {"id": 474, "type": "parenthesized_expression", "text": "(r < 0)", "parent": 473, "children": [475], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 12}}, {"id": 475, "type": "binary_expression", "text": "r < 0", "parent": 474, "children": [476, 477, 478], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 11}}, {"id": 476, "type": "identifier", "text": "r", "parent": 475, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 7}}, {"id": 477, "type": "<", "text": "<", "parent": 475, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 9}}, {"id": 478, "type": "number_literal", "text": "0", "parent": 475, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 11}}, {"id": 479, "type": "call_expression", "text": "errlog0(\"theme.conf: ffconf_scheme_process: %s: %s\", ffconf_errstr(r), cs.errmsg)", "parent": 473, "children": [480, 481], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 84}}, {"id": 480, "type": "identifier", "text": "errlog0", "parent": 479, "children": [], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 10}}, {"id": 481, "type": "argument_list", "text": "(\"theme.conf: ffconf_scheme_process: %s: %s\", ffconf_errstr(r), cs.errmsg)", "parent": 479, "children": [482, 483, 487], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 84}}, {"id": 482, "type": "string_literal", "text": "\"theme.conf: ffconf_scheme_process: %s: %s\"", "parent": 481, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 54}}, {"id": 483, "type": "call_expression", "text": "ffconf_errstr(r)", "parent": 481, "children": [484, 485], "start_point": {"row": 114, "column": 56}, "end_point": {"row": 114, "column": 72}}, {"id": 484, "type": "identifier", "text": "ffconf_errstr", "parent": 483, "children": [], "start_point": {"row": 114, "column": 56}, "end_point": {"row": 114, "column": 69}}, {"id": 485, "type": "argument_list", "text": "(r)", "parent": 483, "children": [486], "start_point": {"row": 114, "column": 69}, "end_point": {"row": 114, "column": 72}}, {"id": 486, "type": "identifier", "text": "r", "parent": 485, "children": [], "start_point": {"row": 114, "column": 70}, "end_point": {"row": 114, "column": 71}}, {"id": 487, "type": "field_expression", "text": "cs.errmsg", "parent": 481, "children": [488, 489], "start_point": {"row": 114, "column": 74}, "end_point": {"row": 114, "column": 83}}, {"id": 488, "type": "identifier", "text": "cs", "parent": 487, "children": [], "start_point": {"row": 114, "column": 74}, "end_point": {"row": 114, "column": 76}}, {"id": 489, "type": "field_identifier", "text": "errmsg", "parent": 487, "children": [], "start_point": {"row": 114, "column": 77}, "end_point": {"row": 114, "column": 83}}, {"id": 490, "type": "goto_statement", "text": "goto end;", "parent": 473, "children": [491], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 12}}, {"id": 491, "type": "goto", "text": "goto", "parent": 490, "children": [], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 7}}, {"id": 492, "type": "if_statement", "text": "if (tr.found) {\n\t\t\tffconf_ctxcopy_init(&ctxcopy);\n\t\t\tcopy = 1;\n\t\t}", "parent": 352, "children": [493], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 121, "column": 3}}, {"id": 493, "type": "parenthesized_expression", "text": "(tr.found)", "parent": 492, "children": [494], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 15}}, {"id": 494, "type": "field_expression", "text": "tr.found", "parent": 493, "children": [495, 496], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 14}}, {"id": 495, "type": "identifier", "text": "tr", "parent": 494, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 8}}, {"id": 496, "type": "field_identifier", "text": "found", "parent": 494, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 14}}, {"id": 497, "type": "call_expression", "text": "ffconf_ctxcopy_init(&ctxcopy)", "parent": 492, "children": [498, 499], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 32}}, {"id": 498, "type": "identifier", "text": "ffconf_ctxcopy_init", "parent": 497, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 22}}, {"id": 499, "type": "argument_list", "text": "(&ctxcopy)", "parent": 497, "children": [500], "start_point": {"row": 119, "column": 22}, "end_point": {"row": 119, "column": 32}}, {"id": 500, "type": "pointer_expression", "text": "&ctxcopy", "parent": 499, "children": [501], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 31}}, {"id": 501, "type": "identifier", "text": "ctxcopy", "parent": 500, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 31}}, {"id": 502, "type": "assignment_expression", "text": "copy = 1", "parent": 492, "children": [503, 504, 505], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 11}}, {"id": 503, "type": "identifier", "text": "copy", "parent": 502, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 7}}, {"id": 504, "type": "=", "text": "=", "parent": 502, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 9}}, {"id": 505, "type": "number_literal", "text": "1", "parent": 502, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 11}}, {"id": 506, "type": "labeled_statement", "text": "end:\n\tffmem_free(fn);", "parent": 209, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 125, "column": 16}}, {"id": 507, "type": "call_expression", "text": "ffmem_free(fn)", "parent": 506, "children": [508, 509], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 15}}, {"id": 508, "type": "identifier", "text": "ffmem_free", "parent": 507, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 11}}, {"id": 509, "type": "argument_list", "text": "(fn)", "parent": 507, "children": [510], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 15}}, {"id": 510, "type": "identifier", "text": "fn", "parent": 509, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 14}}, {"id": 511, "type": "call_expression", "text": "ffstr_free(&themedata)", "parent": 209, "children": [512, 513], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 23}}, {"id": 512, "type": "identifier", "text": "ffstr_free", "parent": 511, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 11}}, {"id": 513, "type": "argument_list", "text": "(&themedata)", "parent": 511, "children": [514], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 23}}, {"id": 514, "type": "pointer_expression", "text": "&themedata", "parent": 513, "children": [515], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 22}}, {"id": 515, "type": "identifier", "text": "themedata", "parent": 514, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 22}}, {"id": 516, "type": "call_expression", "text": "ffconf_fin(&conf)", "parent": 209, "children": [517, 518], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 18}}, {"id": 517, "type": "identifier", "text": "ffconf_fin", "parent": 516, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 11}}, {"id": 518, "type": "argument_list", "text": "(&conf)", "parent": 516, "children": [519], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 18}}, {"id": 519, "type": "pointer_expression", "text": "&conf", "parent": 518, "children": [520], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 17}}, {"id": 520, "type": "identifier", "text": "conf", "parent": 519, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 17}}, {"id": 521, "type": "call_expression", "text": "ffconf_scheme_destroy(&cs)", "parent": 209, "children": [522, 523], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 27}}, {"id": 522, "type": "identifier", "text": "ffconf_scheme_destroy", "parent": 521, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 22}}, {"id": 523, "type": "argument_list", "text": "(&cs)", "parent": 521, "children": [524], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 27}}, {"id": 524, "type": "pointer_expression", "text": "&cs", "parent": 523, "children": [525], "start_point": {"row": 128, "column": 23}, "end_point": {"row": 128, "column": 26}}, {"id": 525, "type": "identifier", "text": "cs", "parent": 524, "children": [], "start_point": {"row": 128, "column": 24}, "end_point": {"row": 128, "column": 26}}, {"id": 526, "type": "call_expression", "text": "ffvec_free(&ddata)", "parent": 209, "children": [527, 528], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 19}}, {"id": 527, "type": "identifier", "text": "ffvec_free", "parent": 526, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 11}}, {"id": 528, "type": "argument_list", "text": "(&ddata)", "parent": 526, "children": [529], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 19}}, {"id": 529, "type": "pointer_expression", "text": "&ddata", "parent": 528, "children": [530], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 18}}, {"id": 530, "type": "identifier", "text": "ddata", "parent": 529, "children": [], "start_point": {"row": 129, "column": 13}, "end_point": {"row": 129, "column": 18}}, {"id": 531, "type": "call_expression", "text": "ffconf_ctxcopy_destroy(&ctxcopy)", "parent": 209, "children": [532, 533], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 33}}, {"id": 532, "type": "identifier", "text": "ffconf_ctxcopy_destroy", "parent": 531, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 23}}, {"id": 533, "type": "argument_list", "text": "(&ctxcopy)", "parent": 531, "children": [534], "start_point": {"row": 130, "column": 23}, "end_point": {"row": 130, "column": 33}}, {"id": 534, "type": "pointer_expression", "text": "&ctxcopy", "parent": 533, "children": [535], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 32}}, {"id": 535, "type": "identifier", "text": "ctxcopy", "parent": 534, "children": [], "start_point": {"row": 130, "column": 25}, "end_point": {"row": 130, "column": 32}}, {"id": 536, "type": "return_statement", "text": "return rc;", "parent": 209, "children": [537], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 11}}, {"id": 537, "type": "identifier", "text": "rc", "parent": 536, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 10}}, {"id": 538, "type": "function_definition", "text": "void gui_themes_read(void)\n{\n\tthemes_read2(NULL, NULL);\n}", "parent": null, "children": [539, 540], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 137, "column": 1}}, {"id": 539, "type": "primitive_type", "text": "void", "parent": 538, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 4}}, {"id": 540, "type": "function_declarator", "text": "gui_themes_read(void)", "parent": 538, "children": [541, 542], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 26}}, {"id": 541, "type": "identifier", "text": "gui_themes_read", "parent": 540, "children": [], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 20}}, {"id": 542, "type": "parameter_list", "text": "(void)", "parent": 540, "children": [543], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 26}}, {"id": 543, "type": "parameter_declaration", "text": "void", "parent": 542, "children": [544], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 25}}, {"id": 544, "type": "primitive_type", "text": "void", "parent": 543, "children": [], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 25}}, {"id": 545, "type": "call_expression", "text": "themes_read2(NULL, NULL)", "parent": 538, "children": [546, 547], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 25}}, {"id": 546, "type": "identifier", "text": "themes_read2", "parent": 545, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 13}}, {"id": 547, "type": "argument_list", "text": "(NULL, NULL)", "parent": 545, "children": [548, 550], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 25}}, {"id": 548, "type": "null", "text": "NULL", "parent": 547, "children": [549], "start_point": {"row": 136, "column": 14}, "end_point": {"row": 136, "column": 18}}, {"id": 549, "type": "NULL", "text": "NULL", "parent": 548, "children": [], "start_point": {"row": 136, "column": 14}, "end_point": {"row": 136, "column": 18}}, {"id": 550, "type": "null", "text": "NULL", "parent": 547, "children": [551], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 24}}, {"id": 551, "type": "NULL", "text": "NULL", "parent": 550, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 24}}, {"id": 552, "type": "function_definition", "text": "void gui_themes_destroy(void)\n{\n\tstruct theme *t;\n\tFFARR_WALKT(&gg->themes, t, struct theme) {\n\t\tffmem_free(t->name);\n\t}\n\tffarr_free(&gg->themes);\n}", "parent": null, "children": [553, 554], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 146, "column": 1}}, {"id": 553, "type": "primitive_type", "text": "void", "parent": 552, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 4}}, {"id": 554, "type": "function_declarator", "text": "gui_themes_destroy(void)", "parent": 552, "children": [555, 556], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 29}}, {"id": 555, "type": "identifier", "text": "gui_themes_destroy", "parent": 554, "children": [], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 23}}, {"id": 556, "type": "parameter_list", "text": "(void)", "parent": 554, "children": [557], "start_point": {"row": 139, "column": 23}, "end_point": {"row": 139, "column": 29}}, {"id": 557, "type": "parameter_declaration", "text": "void", "parent": 556, "children": [558], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 28}}, {"id": 558, "type": "primitive_type", "text": "void", "parent": 557, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 28}}, {"id": 559, "type": "declaration", "text": "struct theme *t;", "parent": 552, "children": [560, 563], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 17}}, {"id": 560, "type": "struct_specifier", "text": "struct theme", "parent": 559, "children": [561, 562], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 13}}, {"id": 561, "type": "struct", "text": "struct", "parent": 560, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 7}}, {"id": 562, "type": "type_identifier", "text": "theme", "parent": 560, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 13}}, {"id": 563, "type": "pointer_declarator", "text": "*t", "parent": 559, "children": [564, 565], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 16}}, {"id": 564, "type": "*", "text": "*", "parent": 563, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 15}}, {"id": 565, "type": "identifier", "text": "t", "parent": 563, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 16}}, {"id": 566, "type": "call_expression", "text": "FFARR_WALKT(&gg->themes, t, struct theme)", "parent": 552, "children": [567, 568], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 42}}, {"id": 567, "type": "identifier", "text": "FFARR_WALKT", "parent": 566, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 12}}, {"id": 568, "type": "argument_list", "text": "(&gg->themes, t, struct theme)", "parent": 566, "children": [569, 573, 574, 575], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 42}}, {"id": 569, "type": "pointer_expression", "text": "&gg->themes", "parent": 568, "children": [570], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 24}}, {"id": 570, "type": "field_expression", "text": "gg->themes", "parent": 569, "children": [571, 572], "start_point": {"row": 142, "column": 14}, "end_point": {"row": 142, "column": 24}}, {"id": 571, "type": "identifier", "text": "gg", "parent": 570, "children": [], "start_point": {"row": 142, "column": 14}, "end_point": {"row": 142, "column": 16}}, {"id": 572, "type": "field_identifier", "text": "themes", "parent": 570, "children": [], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 24}}, {"id": 573, "type": "identifier", "text": "t", "parent": 568, "children": [], "start_point": {"row": 142, "column": 26}, "end_point": {"row": 142, "column": 27}}, {"id": 574, "type": "identifier", "text": "struct", "parent": 568, "children": [], "start_point": {"row": 142, "column": 29}, "end_point": {"row": 142, "column": 35}}, {"id": 575, "type": "ERROR", "text": "theme", "parent": 568, "children": [576], "start_point": {"row": 142, "column": 36}, "end_point": {"row": 142, "column": 41}}, {"id": 576, "type": "identifier", "text": "theme", "parent": 575, "children": [], "start_point": {"row": 142, "column": 36}, "end_point": {"row": 142, "column": 41}}, {"id": 577, "type": "call_expression", "text": "ffmem_free(t->name)", "parent": 552, "children": [578, 579], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 21}}, {"id": 578, "type": "identifier", "text": "ffmem_free", "parent": 577, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 12}}, {"id": 579, "type": "argument_list", "text": "(t->name)", "parent": 577, "children": [580], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 21}}, {"id": 580, "type": "field_expression", "text": "t->name", "parent": 579, "children": [581, 582], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 20}}, {"id": 581, "type": "identifier", "text": "t", "parent": 580, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 14}}, {"id": 582, "type": "field_identifier", "text": "name", "parent": 580, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 20}}, {"id": 583, "type": "call_expression", "text": "ffarr_free(&gg->themes)", "parent": 552, "children": [584, 585], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 24}}, {"id": 584, "type": "identifier", "text": "ffarr_free", "parent": 583, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 11}}, {"id": 585, "type": "argument_list", "text": "(&gg->themes)", "parent": 583, "children": [586], "start_point": {"row": 145, "column": 11}, "end_point": {"row": 145, "column": 24}}, {"id": 586, "type": "pointer_expression", "text": "&gg->themes", "parent": 585, "children": [587], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 23}}, {"id": 587, "type": "field_expression", "text": "gg->themes", "parent": 586, "children": [588, 589], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 23}}, {"id": 588, "type": "identifier", "text": "gg", "parent": 587, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 15}}, {"id": 589, "type": "field_identifier", "text": "themes", "parent": 587, "children": [], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 23}}, {"id": 590, "type": "function_definition", "text": "void gui_themes_add(uint def)\n{\n\tstruct theme *t;\n\tffui_menuitem mi = {};\n\tchar buf[64];\n\tuint i = MENU_FIRST_IDX, id = 0;\n\n\tffui_menu_rm(&gg->mfile, i);\n\n\tif (def == 0)\n\t\tffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n\n\tFFARR_WALKT(&gg->themes, t, struct theme) {\n\t\tffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME);\n\t\tffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK);\n\t\tsize_t n = ffs_fmt(buf, buf + sizeof(buf), \"Theme: %s\", t->name);\n\t\tffui_menu_settext(&mi, buf, n);\n\t\tffui_menu_ins(&gg->mfile, i++, &mi);\n\t}\n\n\tif (def != 0)\n\t\tgui_theme_set(def);\n}", "parent": null, "children": [591, 592], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 591, "type": "primitive_type", "text": "void", "parent": 590, "children": [], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 149, "column": 4}}, {"id": 592, "type": "function_declarator", "text": "gui_themes_add(uint def)", "parent": 590, "children": [593, 594], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 29}}, {"id": 593, "type": "identifier", "text": "gui_themes_add", "parent": 592, "children": [], "start_point": {"row": 149, "column": 5}, "end_point": {"row": 149, "column": 19}}, {"id": 594, "type": "parameter_list", "text": "(uint def)", "parent": 592, "children": [595], "start_point": {"row": 149, "column": 19}, "end_point": {"row": 149, "column": 29}}, {"id": 595, "type": "parameter_declaration", "text": "uint def", "parent": 594, "children": [596], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 28}}, {"id": 596, "type": "type_identifier", "text": "uint", "parent": 595, "children": [], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 24}}, {"id": 597, "type": "declaration", "text": "struct theme *t;", "parent": 590, "children": [598, 601], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 17}}, {"id": 598, "type": "struct_specifier", "text": "struct theme", "parent": 597, "children": [599, 600], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 13}}, {"id": 599, "type": "struct", "text": "struct", "parent": 598, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 7}}, {"id": 600, "type": "type_identifier", "text": "theme", "parent": 598, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 13}}, {"id": 601, "type": "pointer_declarator", "text": "*t", "parent": 597, "children": [602, 603], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 16}}, {"id": 602, "type": "*", "text": "*", "parent": 601, "children": [], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 15}}, {"id": 603, "type": "identifier", "text": "t", "parent": 601, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 16}}, {"id": 604, "type": "declaration", "text": "ffui_menuitem mi = {};", "parent": 590, "children": [605, 606], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 23}}, {"id": 605, "type": "type_identifier", "text": "ffui_menuitem", "parent": 604, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 14}}, {"id": 606, "type": "init_declarator", "text": "mi = {}", "parent": 604, "children": [607, 608, 609], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 22}}, {"id": 607, "type": "identifier", "text": "mi", "parent": 606, "children": [], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 17}}, {"id": 608, "type": "=", "text": "=", "parent": 606, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 19}}, {"id": 609, "type": "initializer_list", "text": "{}", "parent": 606, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 22}}, {"id": 610, "type": "declaration", "text": "char buf[64];", "parent": 590, "children": [611, 612], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 14}}, {"id": 611, "type": "primitive_type", "text": "char", "parent": 610, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 5}}, {"id": 612, "type": "array_declarator", "text": "buf[64]", "parent": 610, "children": [613, 614], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 13}}, {"id": 613, "type": "identifier", "text": "buf", "parent": 612, "children": [], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 9}}, {"id": 614, "type": "number_literal", "text": "64", "parent": 612, "children": [], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 12}}, {"id": 615, "type": "declaration", "text": "uint i = MENU_FIRST_IDX, id = 0;", "parent": 590, "children": [616, 617, 621], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 33}}, {"id": 616, "type": "type_identifier", "text": "uint", "parent": 615, "children": [], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 5}}, {"id": 617, "type": "init_declarator", "text": "i = MENU_FIRST_IDX", "parent": 615, "children": [618, 619, 620], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 24}}, {"id": 618, "type": "identifier", "text": "i", "parent": 617, "children": [], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 7}}, {"id": 619, "type": "=", "text": "=", "parent": 617, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 9}}, {"id": 620, "type": "identifier", "text": "MENU_FIRST_IDX", "parent": 617, "children": [], "start_point": {"row": 154, "column": 10}, "end_point": {"row": 154, "column": 24}}, {"id": 621, "type": "init_declarator", "text": "id = 0", "parent": 615, "children": [622, 623, 624], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 32}}, {"id": 622, "type": "identifier", "text": "id", "parent": 621, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 28}}, {"id": 623, "type": "=", "text": "=", "parent": 621, "children": [], "start_point": {"row": 154, "column": 29}, "end_point": {"row": 154, "column": 30}}, {"id": 624, "type": "number_literal", "text": "0", "parent": 621, "children": [], "start_point": {"row": 154, "column": 31}, "end_point": {"row": 154, "column": 32}}, {"id": 625, "type": "call_expression", "text": "ffui_menu_rm(&gg->mfile, i)", "parent": 590, "children": [626, 627], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 28}}, {"id": 626, "type": "identifier", "text": "ffui_menu_rm", "parent": 625, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 13}}, {"id": 627, "type": "argument_list", "text": "(&gg->mfile, i)", "parent": 625, "children": [628, 632], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 28}}, {"id": 628, "type": "pointer_expression", "text": "&gg->mfile", "parent": 627, "children": [629], "start_point": {"row": 156, "column": 14}, "end_point": {"row": 156, "column": 24}}, {"id": 629, "type": "field_expression", "text": "gg->mfile", "parent": 628, "children": [630, 631], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 24}}, {"id": 630, "type": "identifier", "text": "gg", "parent": 629, "children": [], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 17}}, {"id": 631, "type": "field_identifier", "text": "mfile", "parent": 629, "children": [], "start_point": {"row": 156, "column": 19}, "end_point": {"row": 156, "column": 24}}, {"id": 632, "type": "identifier", "text": "i", "parent": 627, "children": [], "start_point": {"row": 156, "column": 26}, "end_point": {"row": 156, "column": 27}}, {"id": 633, "type": "if_statement", "text": "if (def == 0)\n\t\tffui_menu_addstate(&mi, FFUI_MENU_CHECKED);", "parent": 590, "children": [634], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 159, "column": 45}}, {"id": 634, "type": "parenthesized_expression", "text": "(def == 0)", "parent": 633, "children": [635], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 14}}, {"id": 635, "type": "binary_expression", "text": "def == 0", "parent": 634, "children": [636, 637], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 13}}, {"id": 636, "type": "==", "text": "==", "parent": 635, "children": [], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 11}}, {"id": 637, "type": "number_literal", "text": "0", "parent": 635, "children": [], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 13}}, {"id": 638, "type": "call_expression", "text": "ffui_menu_addstate(&mi, FFUI_MENU_CHECKED)", "parent": 633, "children": [639, 640], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 44}}, {"id": 639, "type": "identifier", "text": "ffui_menu_addstate", "parent": 638, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 20}}, {"id": 640, "type": "argument_list", "text": "(&mi, FFUI_MENU_CHECKED)", "parent": 638, "children": [641, 643], "start_point": {"row": 159, "column": 20}, "end_point": {"row": 159, "column": 44}}, {"id": 641, "type": "pointer_expression", "text": "&mi", "parent": 640, "children": [642], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 24}}, {"id": 642, "type": "identifier", "text": "mi", "parent": 641, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 24}}, {"id": 643, "type": "identifier", "text": "FFUI_MENU_CHECKED", "parent": 640, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 43}}, {"id": 644, "type": "call_expression", "text": "FFARR_WALKT(&gg->themes, t, struct theme)", "parent": 590, "children": [645, 646], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 42}}, {"id": 645, "type": "identifier", "text": "FFARR_WALKT", "parent": 644, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 12}}, {"id": 646, "type": "argument_list", "text": "(&gg->themes, t, struct theme)", "parent": 644, "children": [647, 651, 652, 653], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 42}}, {"id": 647, "type": "pointer_expression", "text": "&gg->themes", "parent": 646, "children": [648], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 24}}, {"id": 648, "type": "field_expression", "text": "gg->themes", "parent": 647, "children": [649, 650], "start_point": {"row": 161, "column": 14}, "end_point": {"row": 161, "column": 24}}, {"id": 649, "type": "identifier", "text": "gg", "parent": 648, "children": [], "start_point": {"row": 161, "column": 14}, "end_point": {"row": 161, "column": 16}}, {"id": 650, "type": "field_identifier", "text": "themes", "parent": 648, "children": [], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 24}}, {"id": 651, "type": "identifier", "text": "t", "parent": 646, "children": [], "start_point": {"row": 161, "column": 26}, "end_point": {"row": 161, "column": 27}}, {"id": 652, "type": "identifier", "text": "struct", "parent": 646, "children": [], "start_point": {"row": 161, "column": 29}, "end_point": {"row": 161, "column": 35}}, {"id": 653, "type": "ERROR", "text": "theme", "parent": 646, "children": [654], "start_point": {"row": 161, "column": 36}, "end_point": {"row": 161, "column": 41}}, {"id": 654, "type": "identifier", "text": "theme", "parent": 653, "children": [], "start_point": {"row": 161, "column": 36}, "end_point": {"row": 161, "column": 41}}, {"id": 655, "type": "call_expression", "text": "ffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME)", "parent": 590, "children": [656, 657], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 47}}, {"id": 656, "type": "identifier", "text": "ffui_menu_setcmd", "parent": 655, "children": [], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 18}}, {"id": 657, "type": "argument_list", "text": "(&mi, (id++ << 8) | SETTHEME)", "parent": 655, "children": [658, 660], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 47}}, {"id": 658, "type": "pointer_expression", "text": "&mi", "parent": 657, "children": [659], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 22}}, {"id": 659, "type": "identifier", "text": "mi", "parent": 658, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 22}}, {"id": 660, "type": "binary_expression", "text": "(id++ << 8) | SETTHEME", "parent": 657, "children": [661, 668], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 46}}, {"id": 661, "type": "parenthesized_expression", "text": "(id++ << 8)", "parent": 660, "children": [662], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 35}}, {"id": 662, "type": "binary_expression", "text": "id++ << 8", "parent": 661, "children": [663, 666, 667], "start_point": {"row": 162, "column": 25}, "end_point": {"row": 162, "column": 34}}, {"id": 663, "type": "update_expression", "text": "id++", "parent": 662, "children": [664, 665], "start_point": {"row": 162, "column": 25}, "end_point": {"row": 162, "column": 29}}, {"id": 664, "type": "identifier", "text": "id", "parent": 663, "children": [], "start_point": {"row": 162, "column": 25}, "end_point": {"row": 162, "column": 27}}, {"id": 665, "type": "++", "text": "++", "parent": 663, "children": [], "start_point": {"row": 162, "column": 27}, "end_point": {"row": 162, "column": 29}}, {"id": 666, "type": "<<", "text": "<<", "parent": 662, "children": [], "start_point": {"row": 162, "column": 30}, "end_point": {"row": 162, "column": 32}}, {"id": 667, "type": "number_literal", "text": "8", "parent": 662, "children": [], "start_point": {"row": 162, "column": 33}, "end_point": {"row": 162, "column": 34}}, {"id": 668, "type": "identifier", "text": "SETTHEME", "parent": 660, "children": [], "start_point": {"row": 162, "column": 38}, "end_point": {"row": 162, "column": 46}}, {"id": 669, "type": "call_expression", "text": "ffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK)", "parent": 590, "children": [670, 671], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 46}}, {"id": 670, "type": "identifier", "text": "ffui_menu_settype", "parent": 669, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 19}}, {"id": 671, "type": "argument_list", "text": "(&mi, FFUI_MENU_RADIOCHECK)", "parent": 669, "children": [672, 674], "start_point": {"row": 163, "column": 19}, "end_point": {"row": 163, "column": 46}}, {"id": 672, "type": "pointer_expression", "text": "&mi", "parent": 671, "children": [673], "start_point": {"row": 163, "column": 20}, "end_point": {"row": 163, "column": 23}}, {"id": 673, "type": "identifier", "text": "mi", "parent": 672, "children": [], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 23}}, {"id": 674, "type": "identifier", "text": "FFUI_MENU_RADIOCHECK", "parent": 671, "children": [], "start_point": {"row": 163, "column": 25}, "end_point": {"row": 163, "column": 45}}, {"id": 675, "type": "declaration", "text": "size_t n = ffs_fmt(buf, buf + sizeof(buf), \"Theme: %s\", t->name);", "parent": 590, "children": [676, 677], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 67}}, {"id": 676, "type": "primitive_type", "text": "size_t", "parent": 675, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 8}}, {"id": 677, "type": "init_declarator", "text": "n = ffs_fmt(buf, buf + sizeof(buf), \"Theme: %s\", t->name)", "parent": 675, "children": [678, 679, 680], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 66}}, {"id": 678, "type": "identifier", "text": "n", "parent": 677, "children": [], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 10}}, {"id": 679, "type": "=", "text": "=", "parent": 677, "children": [], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 12}}, {"id": 680, "type": "call_expression", "text": "ffs_fmt(buf, buf + sizeof(buf), \"Theme: %s\", t->name)", "parent": 677, "children": [681, 682], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 66}}, {"id": 681, "type": "identifier", "text": "ffs_fmt", "parent": 680, "children": [], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 20}}, {"id": 682, "type": "argument_list", "text": "(buf, buf + sizeof(buf), \"Theme: %s\", t->name)", "parent": 680, "children": [683, 684, 690, 691], "start_point": {"row": 164, "column": 20}, "end_point": {"row": 164, "column": 66}}, {"id": 683, "type": "identifier", "text": "buf", "parent": 682, "children": [], "start_point": {"row": 164, "column": 21}, "end_point": {"row": 164, "column": 24}}, {"id": 684, "type": "binary_expression", "text": "buf + sizeof(buf)", "parent": 682, "children": [685, 686, 687], "start_point": {"row": 164, "column": 26}, "end_point": {"row": 164, "column": 43}}, {"id": 685, "type": "identifier", "text": "buf", "parent": 684, "children": [], "start_point": {"row": 164, "column": 26}, "end_point": {"row": 164, "column": 29}}, {"id": 686, "type": "+", "text": "+", "parent": 684, "children": [], "start_point": {"row": 164, "column": 30}, "end_point": {"row": 164, "column": 31}}, {"id": 687, "type": "sizeof_expression", "text": "sizeof(buf)", "parent": 684, "children": [688], "start_point": {"row": 164, "column": 32}, "end_point": {"row": 164, "column": 43}}, {"id": 688, "type": "parenthesized_expression", "text": "(buf)", "parent": 687, "children": [689], "start_point": {"row": 164, "column": 38}, "end_point": {"row": 164, "column": 43}}, {"id": 689, "type": "identifier", "text": "buf", "parent": 688, "children": [], "start_point": {"row": 164, "column": 39}, "end_point": {"row": 164, "column": 42}}, {"id": 690, "type": "string_literal", "text": "\"Theme: %s\"", "parent": 682, "children": [], "start_point": {"row": 164, "column": 45}, "end_point": {"row": 164, "column": 56}}, {"id": 691, "type": "field_expression", "text": "t->name", "parent": 682, "children": [692, 693], "start_point": {"row": 164, "column": 58}, "end_point": {"row": 164, "column": 65}}, {"id": 692, "type": "identifier", "text": "t", "parent": 691, "children": [], "start_point": {"row": 164, "column": 58}, "end_point": {"row": 164, "column": 59}}, {"id": 693, "type": "field_identifier", "text": "name", "parent": 691, "children": [], "start_point": {"row": 164, "column": 61}, "end_point": {"row": 164, "column": 65}}, {"id": 694, "type": "call_expression", "text": "ffui_menu_settext(&mi, buf, n)", "parent": 590, "children": [695, 696], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 32}}, {"id": 695, "type": "identifier", "text": "ffui_menu_settext", "parent": 694, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 19}}, {"id": 696, "type": "argument_list", "text": "(&mi, buf, n)", "parent": 694, "children": [697, 699, 700], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 32}}, {"id": 697, "type": "pointer_expression", "text": "&mi", "parent": 696, "children": [698], "start_point": {"row": 165, "column": 20}, "end_point": {"row": 165, "column": 23}}, {"id": 698, "type": "identifier", "text": "mi", "parent": 697, "children": [], "start_point": {"row": 165, "column": 21}, "end_point": {"row": 165, "column": 23}}, {"id": 699, "type": "identifier", "text": "buf", "parent": 696, "children": [], "start_point": {"row": 165, "column": 25}, "end_point": {"row": 165, "column": 28}}, {"id": 700, "type": "identifier", "text": "n", "parent": 696, "children": [], "start_point": {"row": 165, "column": 30}, "end_point": {"row": 165, "column": 31}}, {"id": 701, "type": "call_expression", "text": "ffui_menu_ins(&gg->mfile, i++, &mi)", "parent": 590, "children": [702, 703], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 37}}, {"id": 702, "type": "identifier", "text": "ffui_menu_ins", "parent": 701, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 15}}, {"id": 703, "type": "argument_list", "text": "(&gg->mfile, i++, &mi)", "parent": 701, "children": [704, 708, 711], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 37}}, {"id": 704, "type": "pointer_expression", "text": "&gg->mfile", "parent": 703, "children": [705], "start_point": {"row": 166, "column": 16}, "end_point": {"row": 166, "column": 26}}, {"id": 705, "type": "field_expression", "text": "gg->mfile", "parent": 704, "children": [706, 707], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 26}}, {"id": 706, "type": "identifier", "text": "gg", "parent": 705, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 19}}, {"id": 707, "type": "field_identifier", "text": "mfile", "parent": 705, "children": [], "start_point": {"row": 166, "column": 21}, "end_point": {"row": 166, "column": 26}}, {"id": 708, "type": "update_expression", "text": "i++", "parent": 703, "children": [709, 710], "start_point": {"row": 166, "column": 28}, "end_point": {"row": 166, "column": 31}}, {"id": 709, "type": "identifier", "text": "i", "parent": 708, "children": [], "start_point": {"row": 166, "column": 28}, "end_point": {"row": 166, "column": 29}}, {"id": 710, "type": "++", "text": "++", "parent": 708, "children": [], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 31}}, {"id": 711, "type": "pointer_expression", "text": "&mi", "parent": 703, "children": [712], "start_point": {"row": 166, "column": 33}, "end_point": {"row": 166, "column": 36}}, {"id": 712, "type": "identifier", "text": "mi", "parent": 711, "children": [], "start_point": {"row": 166, "column": 34}, "end_point": {"row": 166, "column": 36}}, {"id": 713, "type": "if_statement", "text": "if (def != 0)\n\t\tgui_theme_set(def);", "parent": 590, "children": [714], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 170, "column": 21}}, {"id": 714, "type": "parenthesized_expression", "text": "(def != 0)", "parent": 713, "children": [715], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 14}}, {"id": 715, "type": "binary_expression", "text": "def != 0", "parent": 714, "children": [716, 717], "start_point": {"row": 169, "column": 5}, "end_point": {"row": 169, "column": 13}}, {"id": 716, "type": "!=", "text": "!=", "parent": 715, "children": [], "start_point": {"row": 169, "column": 9}, "end_point": {"row": 169, "column": 11}}, {"id": 717, "type": "number_literal", "text": "0", "parent": 715, "children": [], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 13}}, {"id": 718, "type": "call_expression", "text": "gui_theme_set(def)", "parent": 713, "children": [719, 720], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 20}}, {"id": 719, "type": "identifier", "text": "gui_theme_set", "parent": 718, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 15}}, {"id": 720, "type": "argument_list", "text": "(def)", "parent": 718, "children": [], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 20}}, {"id": 721, "type": "function_definition", "text": "void gui_theme_set(int idx)\n{\n\tdbglog0(\"applying theme %d...\", idx);\n\tstruct theme *t = ffarr_itemT(&gg->themes, idx, struct theme);\n\n\tchar *fn = ffenv_expand(NULL, NULL, 0, \"%TMP%\\\\fmedia-theme.conf\");\n\tif (0 != themes_read2(t, fn))\n\t\treturn;\n\n\tffui_loader ldr;\n\tffui_ldr_init2(&ldr, &gui_getctl, NULL, gg);\n\tffui_ldr_loadconf(&ldr, fn);\n\tfffile_rm(fn);\n\n\tffui_menuitem mi = {};\n\tffui_menu_clearstate(&mi, FFUI_MENU_CHECKED);\n\tffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi);\n\tffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n\tffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi);\n\tgg->theme_index = idx;\n\n\twmain_redraw();\n\n\tffmem_free(fn);\n\tffui_ldr_fin(&ldr);\n}", "parent": null, "children": [722, 723], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 199, "column": 1}}, {"id": 722, "type": "primitive_type", "text": "void", "parent": 721, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 4}}, {"id": 723, "type": "function_declarator", "text": "gui_theme_set(int idx)", "parent": 721, "children": [724, 725], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 27}}, {"id": 724, "type": "identifier", "text": "gui_theme_set", "parent": 723, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 18}}, {"id": 725, "type": "parameter_list", "text": "(int idx)", "parent": 723, "children": [726], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 27}}, {"id": 726, "type": "parameter_declaration", "text": "int idx", "parent": 725, "children": [727, 728], "start_point": {"row": 174, "column": 19}, "end_point": {"row": 174, "column": 26}}, {"id": 727, "type": "primitive_type", "text": "int", "parent": 726, "children": [], "start_point": {"row": 174, "column": 19}, "end_point": {"row": 174, "column": 22}}, {"id": 728, "type": "identifier", "text": "idx", "parent": 726, "children": [], "start_point": {"row": 174, "column": 23}, "end_point": {"row": 174, "column": 26}}, {"id": 729, "type": "call_expression", "text": "dbglog0(\"applying theme %d...\", idx)", "parent": 721, "children": [730, 731], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 37}}, {"id": 730, "type": "identifier", "text": "dbglog0", "parent": 729, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 8}}, {"id": 731, "type": "argument_list", "text": "(\"applying theme %d...\", idx)", "parent": 729, "children": [732, 733], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 37}}, {"id": 732, "type": "string_literal", "text": "\"applying theme %d...\"", "parent": 731, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 31}}, {"id": 733, "type": "identifier", "text": "idx", "parent": 731, "children": [], "start_point": {"row": 176, "column": 33}, "end_point": {"row": 176, "column": 36}}, {"id": 734, "type": "declaration", "text": "struct theme *t = ffarr_itemT(&gg->themes, idx, struct theme);", "parent": 721, "children": [735, 738], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 63}}, {"id": 735, "type": "struct_specifier", "text": "struct theme", "parent": 734, "children": [736, 737], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 13}}, {"id": 736, "type": "struct", "text": "struct", "parent": 735, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 7}}, {"id": 737, "type": "type_identifier", "text": "theme", "parent": 735, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 13}}, {"id": 738, "type": "init_declarator", "text": "*t = ffarr_itemT(&gg->themes, idx, struct theme)", "parent": 734, "children": [739, 742, 743], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 62}}, {"id": 739, "type": "pointer_declarator", "text": "*t", "parent": 738, "children": [740, 741], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 16}}, {"id": 740, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 15}}, {"id": 741, "type": "identifier", "text": "t", "parent": 739, "children": [], "start_point": {"row": 177, "column": 15}, "end_point": {"row": 177, "column": 16}}, {"id": 742, "type": "=", "text": "=", "parent": 738, "children": [], "start_point": {"row": 177, "column": 17}, "end_point": {"row": 177, "column": 18}}, {"id": 743, "type": "call_expression", "text": "ffarr_itemT(&gg->themes, idx, struct theme)", "parent": 738, "children": [744, 745], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 177, "column": 62}}, {"id": 744, "type": "identifier", "text": "ffarr_itemT", "parent": 743, "children": [], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 177, "column": 30}}, {"id": 745, "type": "argument_list", "text": "(&gg->themes, idx, struct theme)", "parent": 743, "children": [746, 750, 751, 752], "start_point": {"row": 177, "column": 30}, "end_point": {"row": 177, "column": 62}}, {"id": 746, "type": "pointer_expression", "text": "&gg->themes", "parent": 745, "children": [747], "start_point": {"row": 177, "column": 31}, "end_point": {"row": 177, "column": 42}}, {"id": 747, "type": "field_expression", "text": "gg->themes", "parent": 746, "children": [748, 749], "start_point": {"row": 177, "column": 32}, "end_point": {"row": 177, "column": 42}}, {"id": 748, "type": "identifier", "text": "gg", "parent": 747, "children": [], "start_point": {"row": 177, "column": 32}, "end_point": {"row": 177, "column": 34}}, {"id": 749, "type": "field_identifier", "text": "themes", "parent": 747, "children": [], "start_point": {"row": 177, "column": 36}, "end_point": {"row": 177, "column": 42}}, {"id": 750, "type": "identifier", "text": "idx", "parent": 745, "children": [], "start_point": {"row": 177, "column": 44}, "end_point": {"row": 177, "column": 47}}, {"id": 751, "type": "identifier", "text": "struct", "parent": 745, "children": [], "start_point": {"row": 177, "column": 49}, "end_point": {"row": 177, "column": 55}}, {"id": 752, "type": "ERROR", "text": "theme", "parent": 745, "children": [753], "start_point": {"row": 177, "column": 56}, "end_point": {"row": 177, "column": 61}}, {"id": 753, "type": "identifier", "text": "theme", "parent": 752, "children": [], "start_point": {"row": 177, "column": 56}, "end_point": {"row": 177, "column": 61}}, {"id": 754, "type": "declaration", "text": "char *fn = ffenv_expand(NULL, NULL, 0, \"%TMP%\\\\fmedia-theme.conf\");", "parent": 721, "children": [755, 756], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 68}}, {"id": 755, "type": "primitive_type", "text": "char", "parent": 754, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 5}}, {"id": 756, "type": "init_declarator", "text": "*fn = ffenv_expand(NULL, NULL, 0, \"%TMP%\\\\fmedia-theme.conf\")", "parent": 754, "children": [757, 760, 761], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 67}}, {"id": 757, "type": "pointer_declarator", "text": "*fn", "parent": 756, "children": [758, 759], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 9}}, {"id": 758, "type": "*", "text": "*", "parent": 757, "children": [], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 7}}, {"id": 759, "type": "identifier", "text": "fn", "parent": 757, "children": [], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 9}}, {"id": 760, "type": "=", "text": "=", "parent": 756, "children": [], "start_point": {"row": 179, "column": 10}, "end_point": {"row": 179, "column": 11}}, {"id": 761, "type": "call_expression", "text": "ffenv_expand(NULL, NULL, 0, \"%TMP%\\\\fmedia-theme.conf\")", "parent": 756, "children": [762, 763], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 67}}, {"id": 762, "type": "identifier", "text": "ffenv_expand", "parent": 761, "children": [], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 24}}, {"id": 763, "type": "argument_list", "text": "(NULL, NULL, 0, \"%TMP%\\\\fmedia-theme.conf\")", "parent": 761, "children": [764, 766, 768, 769], "start_point": {"row": 179, "column": 24}, "end_point": {"row": 179, "column": 67}}, {"id": 764, "type": "null", "text": "NULL", "parent": 763, "children": [765], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 29}}, {"id": 765, "type": "NULL", "text": "NULL", "parent": 764, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 29}}, {"id": 766, "type": "null", "text": "NULL", "parent": 763, "children": [767], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 35}}, {"id": 767, "type": "NULL", "text": "NULL", "parent": 766, "children": [], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 35}}, {"id": 768, "type": "number_literal", "text": "0", "parent": 763, "children": [], "start_point": {"row": 179, "column": 37}, "end_point": {"row": 179, "column": 38}}, {"id": 769, "type": "string_literal", "text": "\"%TMP%\\\\fmedia-theme.conf\"", "parent": 763, "children": [770], "start_point": {"row": 179, "column": 40}, "end_point": {"row": 179, "column": 66}}, {"id": 770, "type": "escape_sequence", "text": "\\\\", "parent": 769, "children": [], "start_point": {"row": 179, "column": 46}, "end_point": {"row": 179, "column": 48}}, {"id": 771, "type": "if_statement", "text": "if (0 != themes_read2(t, fn))\n\t\treturn;", "parent": 721, "children": [772, 781], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 181, "column": 9}}, {"id": 772, "type": "parenthesized_expression", "text": "(0 != themes_read2(t, fn))", "parent": 771, "children": [773], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 30}}, {"id": 773, "type": "binary_expression", "text": "0 != themes_read2(t, fn)", "parent": 772, "children": [774, 775, 776], "start_point": {"row": 180, "column": 5}, "end_point": {"row": 180, "column": 29}}, {"id": 774, "type": "number_literal", "text": "0", "parent": 773, "children": [], "start_point": {"row": 180, "column": 5}, "end_point": {"row": 180, "column": 6}}, {"id": 775, "type": "!=", "text": "!=", "parent": 773, "children": [], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 9}}, {"id": 776, "type": "call_expression", "text": "themes_read2(t, fn)", "parent": 773, "children": [777, 778], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 29}}, {"id": 777, "type": "identifier", "text": "themes_read2", "parent": 776, "children": [], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 22}}, {"id": 778, "type": "argument_list", "text": "(t, fn)", "parent": 776, "children": [779, 780], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 29}}, {"id": 779, "type": "identifier", "text": "t", "parent": 778, "children": [], "start_point": {"row": 180, "column": 23}, "end_point": {"row": 180, "column": 24}}, {"id": 780, "type": "identifier", "text": "fn", "parent": 778, "children": [], "start_point": {"row": 180, "column": 26}, "end_point": {"row": 180, "column": 28}}, {"id": 781, "type": "return_statement", "text": "return;", "parent": 771, "children": [], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 9}}, {"id": 782, "type": "declaration", "text": "ffui_loader ldr;", "parent": 721, "children": [783, 784], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 17}}, {"id": 783, "type": "type_identifier", "text": "ffui_loader", "parent": 782, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 12}}, {"id": 784, "type": "identifier", "text": "ldr", "parent": 782, "children": [], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 16}}, {"id": 785, "type": "call_expression", "text": "ffui_ldr_init2(&ldr, &gui_getctl, NULL, gg)", "parent": 721, "children": [786, 787], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 44}}, {"id": 786, "type": "identifier", "text": "ffui_ldr_init2", "parent": 785, "children": [], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 184, "column": 15}}, {"id": 787, "type": "argument_list", "text": "(&ldr, &gui_getctl, NULL, gg)", "parent": 785, "children": [788, 790, 792, 794], "start_point": {"row": 184, "column": 15}, "end_point": {"row": 184, "column": 44}}, {"id": 788, "type": "pointer_expression", "text": "&ldr", "parent": 787, "children": [789], "start_point": {"row": 184, "column": 16}, "end_point": {"row": 184, "column": 20}}, {"id": 789, "type": "identifier", "text": "ldr", "parent": 788, "children": [], "start_point": {"row": 184, "column": 17}, "end_point": {"row": 184, "column": 20}}, {"id": 790, "type": "pointer_expression", "text": "&gui_getctl", "parent": 787, "children": [791], "start_point": {"row": 184, "column": 22}, "end_point": {"row": 184, "column": 33}}, {"id": 791, "type": "identifier", "text": "gui_getctl", "parent": 790, "children": [], "start_point": {"row": 184, "column": 23}, "end_point": {"row": 184, "column": 33}}, {"id": 792, "type": "null", "text": "NULL", "parent": 787, "children": [793], "start_point": {"row": 184, "column": 35}, "end_point": {"row": 184, "column": 39}}, {"id": 793, "type": "NULL", "text": "NULL", "parent": 792, "children": [], "start_point": {"row": 184, "column": 35}, "end_point": {"row": 184, "column": 39}}, {"id": 794, "type": "identifier", "text": "gg", "parent": 787, "children": [], "start_point": {"row": 184, "column": 41}, "end_point": {"row": 184, "column": 43}}, {"id": 795, "type": "call_expression", "text": "ffui_ldr_loadconf(&ldr, fn)", "parent": 721, "children": [796, 797], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 28}}, {"id": 796, "type": "identifier", "text": "ffui_ldr_loadconf", "parent": 795, "children": [], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 18}}, {"id": 797, "type": "argument_list", "text": "(&ldr, fn)", "parent": 795, "children": [798, 800], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 28}}, {"id": 798, "type": "pointer_expression", "text": "&ldr", "parent": 797, "children": [799], "start_point": {"row": 185, "column": 19}, "end_point": {"row": 185, "column": 23}}, {"id": 799, "type": "identifier", "text": "ldr", "parent": 798, "children": [], "start_point": {"row": 185, "column": 20}, "end_point": {"row": 185, "column": 23}}, {"id": 800, "type": "identifier", "text": "fn", "parent": 797, "children": [], "start_point": {"row": 185, "column": 25}, "end_point": {"row": 185, "column": 27}}, {"id": 801, "type": "call_expression", "text": "fffile_rm(fn)", "parent": 721, "children": [802, 803], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 14}}, {"id": 802, "type": "identifier", "text": "fffile_rm", "parent": 801, "children": [], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 10}}, {"id": 803, "type": "argument_list", "text": "(fn)", "parent": 801, "children": [804], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 14}}, {"id": 804, "type": "identifier", "text": "fn", "parent": 803, "children": [], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 13}}, {"id": 805, "type": "declaration", "text": "ffui_menuitem mi = {};", "parent": 721, "children": [806, 807], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 23}}, {"id": 806, "type": "type_identifier", "text": "ffui_menuitem", "parent": 805, "children": [], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 14}}, {"id": 807, "type": "init_declarator", "text": "mi = {}", "parent": 805, "children": [808, 809, 810], "start_point": {"row": 188, "column": 15}, "end_point": {"row": 188, "column": 22}}, {"id": 808, "type": "identifier", "text": "mi", "parent": 807, "children": [], "start_point": {"row": 188, "column": 15}, "end_point": {"row": 188, "column": 17}}, {"id": 809, "type": "=", "text": "=", "parent": 807, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 19}}, {"id": 810, "type": "initializer_list", "text": "{}", "parent": 807, "children": [], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 22}}, {"id": 811, "type": "call_expression", "text": "ffui_menu_clearstate(&mi, FFUI_MENU_CHECKED)", "parent": 721, "children": [812, 813], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 45}}, {"id": 812, "type": "identifier", "text": "ffui_menu_clearstate", "parent": 811, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 21}}, {"id": 813, "type": "argument_list", "text": "(&mi, FFUI_MENU_CHECKED)", "parent": 811, "children": [814, 816], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 45}}, {"id": 814, "type": "pointer_expression", "text": "&mi", "parent": 813, "children": [815], "start_point": {"row": 189, "column": 22}, "end_point": {"row": 189, "column": 25}}, {"id": 815, "type": "identifier", "text": "mi", "parent": 814, "children": [], "start_point": {"row": 189, "column": 23}, "end_point": {"row": 189, "column": 25}}, {"id": 816, "type": "identifier", "text": "FFUI_MENU_CHECKED", "parent": 813, "children": [], "start_point": {"row": 189, "column": 27}, "end_point": {"row": 189, "column": 44}}, {"id": 817, "type": "call_expression", "text": "ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi)", "parent": 721, "children": [818, 819], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 65}}, {"id": 818, "type": "identifier", "text": "ffui_menu_set", "parent": 817, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 14}}, {"id": 819, "type": "argument_list", "text": "(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi)", "parent": 817, "children": [820, 824, 830], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 65}}, {"id": 820, "type": "pointer_expression", "text": "&gg->mfile", "parent": 819, "children": [821], "start_point": {"row": 190, "column": 15}, "end_point": {"row": 190, "column": 25}}, {"id": 821, "type": "field_expression", "text": "gg->mfile", "parent": 820, "children": [822, 823], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 25}}, {"id": 822, "type": "identifier", "text": "gg", "parent": 821, "children": [], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 18}}, {"id": 823, "type": "field_identifier", "text": "mfile", "parent": 821, "children": [], "start_point": {"row": 190, "column": 20}, "end_point": {"row": 190, "column": 25}}, {"id": 824, "type": "binary_expression", "text": "MENU_FIRST_IDX + gg->theme_index", "parent": 819, "children": [825, 826, 827], "start_point": {"row": 190, "column": 27}, "end_point": {"row": 190, "column": 59}}, {"id": 825, "type": "identifier", "text": "MENU_FIRST_IDX", "parent": 824, "children": [], "start_point": {"row": 190, "column": 27}, "end_point": {"row": 190, "column": 41}}, {"id": 826, "type": "+", "text": "+", "parent": 824, "children": [], "start_point": {"row": 190, "column": 42}, "end_point": {"row": 190, "column": 43}}, {"id": 827, "type": "field_expression", "text": "gg->theme_index", "parent": 824, "children": [828, 829], "start_point": {"row": 190, "column": 44}, "end_point": {"row": 190, "column": 59}}, {"id": 828, "type": "identifier", "text": "gg", "parent": 827, "children": [], "start_point": {"row": 190, "column": 44}, "end_point": {"row": 190, "column": 46}}, {"id": 829, "type": "field_identifier", "text": "theme_index", "parent": 827, "children": [], "start_point": {"row": 190, "column": 48}, "end_point": {"row": 190, "column": 59}}, {"id": 830, "type": "pointer_expression", "text": "&mi", "parent": 819, "children": [831], "start_point": {"row": 190, "column": 61}, "end_point": {"row": 190, "column": 64}}, {"id": 831, "type": "identifier", "text": "mi", "parent": 830, "children": [], "start_point": {"row": 190, "column": 62}, "end_point": {"row": 190, "column": 64}}, {"id": 832, "type": "call_expression", "text": "ffui_menu_addstate(&mi, FFUI_MENU_CHECKED)", "parent": 721, "children": [833, 834], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 43}}, {"id": 833, "type": "identifier", "text": "ffui_menu_addstate", "parent": 832, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 19}}, {"id": 834, "type": "argument_list", "text": "(&mi, FFUI_MENU_CHECKED)", "parent": 832, "children": [835, 837], "start_point": {"row": 191, "column": 19}, "end_point": {"row": 191, "column": 43}}, {"id": 835, "type": "pointer_expression", "text": "&mi", "parent": 834, "children": [836], "start_point": {"row": 191, "column": 20}, "end_point": {"row": 191, "column": 23}}, {"id": 836, "type": "identifier", "text": "mi", "parent": 835, "children": [], "start_point": {"row": 191, "column": 21}, "end_point": {"row": 191, "column": 23}}, {"id": 837, "type": "identifier", "text": "FFUI_MENU_CHECKED", "parent": 834, "children": [], "start_point": {"row": 191, "column": 25}, "end_point": {"row": 191, "column": 42}}, {"id": 838, "type": "call_expression", "text": "ffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi)", "parent": 721, "children": [839, 840], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 53}}, {"id": 839, "type": "identifier", "text": "ffui_menu_set", "parent": 838, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 14}}, {"id": 840, "type": "argument_list", "text": "(&gg->mfile, MENU_FIRST_IDX + idx, &mi)", "parent": 838, "children": [841, 845, 849], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 53}}, {"id": 841, "type": "pointer_expression", "text": "&gg->mfile", "parent": 840, "children": [842], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 25}}, {"id": 842, "type": "field_expression", "text": "gg->mfile", "parent": 841, "children": [843, 844], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 25}}, {"id": 843, "type": "identifier", "text": "gg", "parent": 842, "children": [], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 18}}, {"id": 844, "type": "field_identifier", "text": "mfile", "parent": 842, "children": [], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 25}}, {"id": 845, "type": "binary_expression", "text": "MENU_FIRST_IDX + idx", "parent": 840, "children": [846, 847, 848], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 47}}, {"id": 846, "type": "identifier", "text": "MENU_FIRST_IDX", "parent": 845, "children": [], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 41}}, {"id": 847, "type": "+", "text": "+", "parent": 845, "children": [], "start_point": {"row": 192, "column": 42}, "end_point": {"row": 192, "column": 43}}, {"id": 848, "type": "identifier", "text": "idx", "parent": 845, "children": [], "start_point": {"row": 192, "column": 44}, "end_point": {"row": 192, "column": 47}}, {"id": 849, "type": "pointer_expression", "text": "&mi", "parent": 840, "children": [850], "start_point": {"row": 192, "column": 49}, "end_point": {"row": 192, "column": 52}}, {"id": 850, "type": "identifier", "text": "mi", "parent": 849, "children": [], "start_point": {"row": 192, "column": 50}, "end_point": {"row": 192, "column": 52}}, {"id": 851, "type": "assignment_expression", "text": "gg->theme_index = idx", "parent": 721, "children": [852, 855, 856], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 22}}, {"id": 852, "type": "field_expression", "text": "gg->theme_index", "parent": 851, "children": [853, 854], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 16}}, {"id": 853, "type": "identifier", "text": "gg", "parent": 852, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 3}}, {"id": 854, "type": "field_identifier", "text": "theme_index", "parent": 852, "children": [], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 16}}, {"id": 855, "type": "=", "text": "=", "parent": 851, "children": [], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 18}}, {"id": 856, "type": "identifier", "text": "idx", "parent": 851, "children": [], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 22}}, {"id": 857, "type": "call_expression", "text": "wmain_redraw()", "parent": 721, "children": [858, 859], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 15}}, {"id": 858, "type": "identifier", "text": "wmain_redraw", "parent": 857, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 13}}, {"id": 859, "type": "argument_list", "text": "()", "parent": 857, "children": [], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 15}}, {"id": 860, "type": "call_expression", "text": "ffmem_free(fn)", "parent": 721, "children": [861, 862], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 15}}, {"id": 861, "type": "identifier", "text": "ffmem_free", "parent": 860, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 11}}, {"id": 862, "type": "argument_list", "text": "(fn)", "parent": 860, "children": [863], "start_point": {"row": 197, "column": 11}, "end_point": {"row": 197, "column": 15}}, {"id": 863, "type": "identifier", "text": "fn", "parent": 862, "children": [], "start_point": {"row": 197, "column": 12}, "end_point": {"row": 197, "column": 14}}, {"id": 864, "type": "call_expression", "text": "ffui_ldr_fin(&ldr)", "parent": 721, "children": [865, 866], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 19}}, {"id": 865, "type": "identifier", "text": "ffui_ldr_fin", "parent": 864, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 13}}, {"id": 866, "type": "argument_list", "text": "(&ldr)", "parent": 864, "children": [867], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 19}}, {"id": 867, "type": "pointer_expression", "text": "&ldr", "parent": 866, "children": [868], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 18}}, {"id": 868, "type": "identifier", "text": "ldr", "parent": 867, "children": [], "start_point": {"row": 198, "column": 15}, "end_point": {"row": 198, "column": 18}}]}, "node_categories": {"declarations": {"functions": [15, 20, 25, 60, 62, 209, 211, 538, 540, 552, 554, 590, 592, 721, 723], "variables": [40, 48, 55, 65, 70, 75, 85, 96, 146, 190, 214, 221, 226, 233, 239, 245, 251, 257, 266, 280, 291, 342, 543, 557, 559, 595, 597, 604, 610, 615, 675, 726, 734, 754, 782, 805], "classes": [37, 38, 45, 46, 49, 50, 76, 77, 147, 148, 215, 216, 267, 268, 560, 561, 598, 599, 735, 736], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": [30, 31, 32, 33]}, "statements": {"expressions": [92, 103, 104, 105, 112, 113, 115, 119, 120, 124, 130, 134, 139, 155, 158, 159, 167, 168, 172, 174, 178, 184, 199, 200, 204, 275, 286, 289, 297, 300, 302, 304, 307, 310, 315, 316, 320, 325, 326, 329, 333, 336, 345, 348, 350, 353, 354, 355, 363, 366, 368, 371, 372, 376, 380, 387, 392, 395, 397, 402, 403, 407, 415, 416, 423, 426, 428, 431, 434, 435, 438, 442, 445, 449, 467, 470, 474, 475, 479, 483, 487, 493, 494, 497, 500, 507, 511, 514, 516, 519, 521, 524, 526, 529, 531, 534, 545, 566, 569, 570, 577, 580, 583, 586, 587, 625, 628, 629, 634, 635, 638, 641, 644, 647, 648, 655, 658, 660, 661, 662, 663, 669, 672, 680, 684, 687, 688, 691, 694, 697, 701, 704, 705, 708, 711, 714, 715, 718, 729, 743, 746, 747, 761, 772, 773, 776, 785, 788, 790, 795, 798, 801, 811, 814, 817, 820, 821, 824, 827, 830, 832, 835, 838, 841, 842, 845, 849, 852, 857, 860, 864, 867], "assignments": [138, 173, 274, 312, 360, 389, 420, 456, 464, 502, 851], "loops": [352], "conditionals": [17, 22, 27, 34, 39, 44, 47, 51, 54, 56, 57, 63, 66, 69, 74, 78, 82, 84, 86, 90, 93, 95, 97, 99, 102, 106, 107, 111, 116, 118, 121, 122, 123, 125, 127, 131, 133, 135, 140, 141, 149, 153, 156, 160, 161, 163, 165, 166, 175, 176, 179, 181, 183, 185, 187, 191, 194, 201, 202, 203, 206, 207, 212, 217, 220, 225, 229, 232, 234, 236, 240, 242, 246, 248, 252, 254, 262, 269, 271, 276, 277, 279, 281, 283, 287, 290, 292, 294, 298, 301, 303, 305, 308, 309, 311, 313, 317, 318, 321, 324, 330, 332, 334, 337, 343, 344, 346, 349, 351, 356, 357, 361, 364, 367, 369, 370, 373, 377, 381, 383, 386, 388, 390, 393, 396, 398, 399, 400, 401, 404, 408, 414, 417, 421, 424, 427, 429, 432, 433, 439, 441, 443, 444, 446, 447, 450, 453, 457, 465, 468, 471, 472, 473, 476, 480, 484, 486, 488, 489, 492, 495, 496, 498, 501, 503, 508, 510, 512, 515, 517, 520, 522, 525, 527, 530, 532, 535, 537, 541, 546, 555, 562, 565, 567, 571, 572, 573, 574, 576, 578, 581, 582, 584, 588, 589, 593, 596, 600, 603, 605, 607, 613, 616, 618, 620, 622, 626, 630, 631, 632, 633, 639, 642, 643, 645, 649, 650, 651, 652, 654, 656, 659, 664, 668, 670, 673, 674, 678, 681, 683, 685, 689, 692, 693, 695, 698, 699, 700, 702, 706, 707, 709, 712, 713, 719, 724, 728, 730, 733, 737, 741, 744, 748, 749, 750, 751, 753, 759, 762, 771, 777, 779, 780, 783, 784, 786, 789, 791, 794, 796, 799, 800, 802, 804, 806, 808, 812, 815, 816, 818, 822, 823, 825, 828, 829, 831, 833, 836, 837, 839, 843, 844, 846, 848, 850, 853, 854, 856, 858, 861, 863, 865, 868], "returns": [128, 144, 182, 188, 536, 781], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 36, 59, 129, 143, 145, 162, 189, 198, 231, 238, 323, 327, 335, 339, 359, 375, 379, 406, 410, 419, 436, 448, 452, 459, 478, 482, 505, 614, 624, 637, 667, 690, 717, 732, 768, 769, 774], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [58]}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "#define dbglog0(...) fmed_dbglog(core, NULL, \"gui\", __VA_ARGS__)\n"}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "#define errlog0(...) fmed_errlog(core, NULL, \"gui\", __VA_ARGS__)\n"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "#define syserrlog0(...) fmed_syserrlog(core, NULL, \"gui\", __VA_ARGS__)\n"}, {"node_id": 60, "universal_type": "function", "name": "theme_conf_new", "text_snippet": "static int theme_conf_new(ffconf_scheme *cs, void *obj)\n{\n\tstruct theme_reader *tr = obj;\n\tconst ffs"}, {"node_id": 62, "universal_type": "function", "name": "*obj)", "text_snippet": "theme_conf_new(ffconf_scheme *cs, void *obj)"}, {"node_id": 209, "universal_type": "function", "name": "themes_read2", "text_snippet": "static int themes_read2(struct theme *t, const char *ofn)\n{\n\tint rc = -1, r;\n\tffbool copy = 0;\n\tffco"}, {"node_id": 211, "universal_type": "function", "name": "unknown", "text_snippet": "themes_read2(struct theme *t, const char *ofn)"}, {"node_id": 538, "universal_type": "function", "name": "gui_themes_read", "text_snippet": "void gui_themes_read(void)\n{\n\tthemes_read2(NULL, NULL);\n}"}, {"node_id": 540, "universal_type": "function", "name": "unknown", "text_snippet": "gui_themes_read(void)"}, {"node_id": 552, "universal_type": "function", "name": "gui_themes_destroy", "text_snippet": "void gui_themes_destroy(void)\n{\n\tstruct theme *t;\n\tFFARR_WALKT(&gg->themes, t, struct theme) {\n\t\tffm"}, {"node_id": 554, "universal_type": "function", "name": "unknown", "text_snippet": "gui_themes_destroy(void)"}, {"node_id": 590, "universal_type": "function", "name": "gui_themes_add", "text_snippet": "void gui_themes_add(uint def)\n{\n\tstruct theme *t;\n\tffui_menuitem mi = {};\n\tchar buf[64];\n\tuint i = M"}, {"node_id": 592, "universal_type": "function", "name": "unknown", "text_snippet": "gui_themes_add(uint def)"}, {"node_id": 721, "universal_type": "function", "name": "gui_theme_set", "text_snippet": "void gui_theme_set(int idx)\n{\n\tdbglog0(\"applying theme %d...\", idx);\n\tstruct theme *t = ffarr_itemT("}, {"node_id": 723, "universal_type": "function", "name": "unknown", "text_snippet": "gui_theme_set(int idx)"}], "class_declarations": [{"node_id": 37, "universal_type": "class", "name": "theme", "text_snippet": "struct theme {\n\tchar *name;\n}"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 45, "universal_type": "class", "name": "theme_reader", "text_snippet": "struct theme_reader {\n\tstruct theme *find;\n\tuint found :1;\n}"}, {"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 49, "universal_type": "class", "name": "theme", "text_snippet": "struct theme"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 76, "universal_type": "class", "name": "theme_reader", "text_snippet": "struct theme_reader"}, {"node_id": 77, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 147, "universal_type": "class", "name": "theme", "text_snippet": "struct theme"}, {"node_id": 148, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 215, "universal_type": "class", "name": "theme", "text_snippet": "struct theme"}, {"node_id": 216, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 267, "universal_type": "class", "name": "theme_reader", "text_snippet": "struct theme_reader"}, {"node_id": 268, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 560, "universal_type": "class", "name": "theme", "text_snippet": "struct theme"}, {"node_id": 561, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 598, "universal_type": "class", "name": "theme", "text_snippet": "struct theme"}, {"node_id": 599, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 735, "universal_type": "class", "name": "theme", "text_snippet": "struct theme"}, {"node_id": 736, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <fmedia.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <gui-winapi/gui.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <FF/gui/loader.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <FF/data/conf-copy.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <FFOS/process.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/** GUI themes.\nCopyright (c) 2018 <NAME> */\n\n#include <fmedia.h>\n#include <gui-winapi/gui.h>\n#include <FF/gui/loader.h>\n#include <FF/data/conf-copy.h>\n#include <FFOS/process.h>\n\n\n#define dbglog0(...) fmed_dbglog(core, NULL, \"gui\", __VA_ARGS__)\n#define errlog0(...) fmed_errlog(core, NULL, \"gui\", __VA_ARGS__)\n#define syserrlog0(...) fmed_syserrlog(core, NULL, \"gui\", __VA_ARGS__)\n\nenum {\n\tMENU_FIRST_IDX = 11,\n};\n\nstruct theme {\n\tchar *name;\n};\n\nstruct theme_reader {\n\tstruct theme *find;\n\tuint found :1;\n};\n\nstatic int theme_conf_new(ffconf_scheme *cs, void *obj)\n{\n\tstruct theme_reader *tr = obj;\n\tconst ffstr *name = ffconf_scheme_objval(cs);\n\n\tstatic const ffconf_arg dummy = {};\n\n\tif (tr->find != NULL) {\n\t\tif (!ffstr_eqz(name, tr->find->name)) {\n\t\t\tffconf_scheme_skipctx(cs);\n\t\t\treturn 0;\n\t\t}\n\t\tffconf_scheme_addctx(cs, &dummy, NULL);\n\t\ttr->found = 1;\n\t\treturn 0;\n\t}\n\n\tstruct theme *t = ffarr_pushgrowT(&gg->themes, 2, struct theme);\n\tif (NULL == (t->name = ffsz_alcopystr(name)))\n\t\treturn FFPARS_ESYS;\n\tffconf_scheme_skipctx(cs);\n\treturn 0;\n}\n\nstatic const ffconf_arg gui_themeconf_args[] = {\n\t{ \"theme\",\tFFCONF_TOBJ | FFCONF_FNOTEMPTY | FFCONF_FMULTI, (ffsize)theme_conf_new },\n\t{}\n};\n\n/** Read themes data from file and:\n a) prepare themes array (set theme name)\n b) gather theme's data and write to file */\nstatic int themes_read2(struct theme *t, const char *ofn)\n{\n\tint rc = -1, r;\n\tffbool copy = 0;\n\tffconf_ctxcopy ctxcopy = {};\n\tffstr themedata = {};\n\tffvec ddata = {};\n\tchar *fn = NULL;\n\n\tstruct theme_reader tr = {};\n\ttr.find = t;\n\n\tffconf conf = {};\n\tffconf_init(&conf);\n\n\tffconf_scheme cs = {};\n\tffconf_scheme_init(&cs, &conf);\n\tffconf_scheme_addctx(&cs, gui_themeconf_args, &tr);\n\n\tfn = core->getpath(FFSTR(\"theme.conf\"));\n\tif (0 != fffile_readwhole(fn, &ddata, -1)) {\n\t\tsyserrlog0(\"theme.conf parser: fffile_readwhole\");\n\t\tgoto end;\n\t}\n\n\tffstr data;\n\tffstr_set2(&data, &ddata);\n\n\twhile (data.len != 0) {\n\t\tr = ffconf_parse(&conf, &data);\n\t\tif (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_parse: %s\", ffconf_errstr(r));\n\t\t\tgoto end;\n\t\t}\n\n\t\tif (copy) {\n\t\t\tr = ffconf_ctx_copy(&ctxcopy, conf.val, r);\n\t\t\tif (r < 0) {\n\t\t\t\terrlog0(\"theme.conf parser: ffconf_ctx_copy\");\n\t\t\t\tgoto end;\n\t\t\t} else if (r > 0) {\n\t\t\t\tthemedata = ffconf_ctxcopy_acquire(&ctxcopy);\n\t\t\t\tffconf_ctxcopy_destroy(&ctxcopy);\n\t\t\t\tif (0 != fffile_writewhole(ofn, themedata.ptr, themedata.len, 0)) {\n\t\t\t\t\tsyserrlog0(\"theme.conf parser: fffile_writewhole(): %s\", ofn);\n\t\t\t\t\tgoto end;\n\t\t\t\t}\n\t\t\t\trc = 0;\n\t\t\t\tgoto end;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tr = ffconf_scheme_process(&cs, r);\n\t\tif (r < 0) {\n\t\t\terrlog0(\"theme.conf: ffconf_scheme_process: %s: %s\", ffconf_errstr(r), cs.errmsg);\n\t\t\tgoto end;\n\t\t}\n\n\t\tif (tr.found) {\n\t\t\tffconf_ctxcopy_init(&ctxcopy);\n\t\t\tcopy = 1;\n\t\t}\n\t}\n\nend:\n\tffmem_free(fn);\n\tffstr_free(&themedata);\n\tffconf_fin(&conf);\n\tffconf_scheme_destroy(&cs);\n\tffvec_free(&ddata);\n\tffconf_ctxcopy_destroy(&ctxcopy);\n\treturn rc;\n}\n\nvoid gui_themes_read(void)\n{\n\tthemes_read2(NULL, NULL);\n}\n\nvoid gui_themes_destroy(void)\n{\n\tstruct theme *t;\n\tFFARR_WALKT(&gg->themes, t, struct theme) {\n\t\tffmem_free(t->name);\n\t}\n\tffarr_free(&gg->themes);\n}\n\n/** Add menu items to switch between themes. */\nvoid gui_themes_add(uint def)\n{\n\tstruct theme *t;\n\tffui_menuitem mi = {};\n\tchar buf[64];\n\tuint i = MENU_FIRST_IDX, id = 0;\n\n\tffui_menu_rm(&gg->mfile, i);\n\n\tif (def == 0)\n\t\tffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n\n\tFFARR_WALKT(&gg->themes, t, struct theme) {\n\t\tffui_menu_setcmd(&mi, (id++ << 8) | SETTHEME);\n\t\tffui_menu_settype(&mi, FFUI_MENU_RADIOCHECK);\n\t\tsize_t n = ffs_fmt(buf, buf + sizeof(buf), \"Theme: %s\", t->name);\n\t\tffui_menu_settext(&mi, buf, n);\n\t\tffui_menu_ins(&gg->mfile, i++, &mi);\n\t}\n\n\tif (def != 0)\n\t\tgui_theme_set(def);\n}\n\n/** Apply UI changes from a theme. */\nvoid gui_theme_set(int idx)\n{\n\tdbglog0(\"applying theme %d...\", idx);\n\tstruct theme *t = ffarr_itemT(&gg->themes, idx, struct theme);\n\n\tchar *fn = ffenv_expand(NULL, NULL, 0, \"%TMP%\\\\fmedia-theme.conf\");\n\tif (0 != themes_read2(t, fn))\n\t\treturn;\n\n\tffui_loader ldr;\n\tffui_ldr_init2(&ldr, &gui_getctl, NULL, gg);\n\tffui_ldr_loadconf(&ldr, fn);\n\tfffile_rm(fn);\n\n\tffui_menuitem mi = {};\n\tffui_menu_clearstate(&mi, FFUI_MENU_CHECKED);\n\tffui_menu_set(&gg->mfile, MENU_FIRST_IDX + gg->theme_index, &mi);\n\tffui_menu_addstate(&mi, FFUI_MENU_CHECKED);\n\tffui_menu_set(&gg->mfile, MENU_FIRST_IDX + idx, &mi);\n\tgg->theme_index = idx;\n\n\twmain_redraw();\n\n\tffmem_free(fn);\n\tffui_ldr_fin(&ldr);\n}\n"}
80,454
c
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: CLCD Manages the Logitech G-Series Gaming Keyboard LCD // // $NoKeywords: $ //=============================================================================// #ifndef HUD_LCD_H #define HUD_LCD_H #ifdef _WIN32 #pragma once #endif #include "tier1/utlvector.h" #include "tier1/utlstring.h" #include "tier1/utldict.h" #include "ihudlcd.h" class KeyValues; class IG15; class C_BasePlayer; enum { LCDITEM_UNKNOWN = 0, LCDITEM_PAGE, LCDITEM_TEXT, LCDITEM_ICON, LCDITEM_AGGREGATE, // Made up of subitems }; // Aggregate item types enum { AGGTYPE_UNKNOWN = 0, AGGTYPE_PERPLAYER, AGGTYPE_PERTEAM, }; class CLCDItem { public: CLCDItem() : m_bActive( true ), m_nSubPage( 0 ), m_Type( LCDITEM_UNKNOWN ), m_Handle( 0 ), x( 0 ), y( 0 ), w( 0 ), h( 0 ) { } virtual ~CLCDItem() {} virtual void Create( IG15 *lcd ) = 0; virtual void Wipe( IG15 *lcd ); bool m_bActive; int m_Type; void *m_Handle; int x, y, w, h; int m_nSubPage; CUtlVector< CLCDItem * > m_Children; }; class CLCDItemText : public CLCDItem { typedef CLCDItem BaseClass; public: CLCDItemText() : m_bHasWildcard( false ), m_iSize( 0 ), m_iAlign( 0 ) { m_Type = LCDITEM_TEXT; } virtual void Create( IG15 *lcd ); CUtlString m_OriginalText; bool m_bHasWildcard; int m_iSize; int m_iAlign; }; class CLCDItemIcon : public CLCDItem { typedef CLCDItem BaseClass; public: CLCDItemIcon() : m_icon( NULL ) { m_Type = LCDITEM_ICON; } virtual void Create( IG15 *lcd ); CUtlString m_IconName; void *m_icon; }; class CLCDItemAggregate : public CLCDItem { typedef CLCDItem BaseClass; public: CLCDItemAggregate() : m_AggType( AGGTYPE_UNKNOWN ), m_dwNextUpdateTime( 0 ), m_yincrement( 0 ) { m_Type = LCDITEM_AGGREGATE; } virtual void Create( IG15 *lcd ); virtual void Wipe( IG15 *lcd ); void WipeChildrenOnly( IG15 *lcd ); unsigned int m_dwNextUpdateTime; int m_AggType; int m_yincrement; // Representative row CUtlVector< CLCDItem * > m_Definition; }; class CLCDPage : public CLCDItem { public: CLCDPage() : m_bSubItem( false ), m_bTitlePage( false ), m_bRequiresPlayer( false ), m_nSubPageCount( 1 ) { m_Type = LCDITEM_PAGE; } ~CLCDPage() { } virtual void Create( IG15 *lcd ) { } CLCDItem *Alloc( int type ) { CLCDItem *item = NULL; switch ( type ) { default: break; case LCDITEM_PAGE: // This shouldn't occur break; case LCDITEM_TEXT: item = new CLCDItemText(); break; case LCDITEM_ICON: item = new CLCDItemIcon(); break; case LCDITEM_AGGREGATE: item = new CLCDItemAggregate(); break; } if ( item ) { return item; } Assert( 0 ); return NULL; } void InitFromKeyValues( KeyValues *kv ); bool m_bSubItem; bool m_bTitlePage; bool m_bRequiresPlayer; int m_nSubPageCount; }; //----------------------------------------------------------------------------- // Purpose: Manages the Logitech G-Series Gaming Keyboard LCD //----------------------------------------------------------------------------- class CLCD : public IHudLCD { public: CLCD(); ~CLCD(); // Implement IHudLCD virtual void SetGlobalStat( char const *name, char const *value ); virtual void AddChatLine( char const *txt ); // Exposed as a ConCommand void Reload(); void DumpPlayer(); public: // Init's called when the HUD's created at DLL load void Init( void ); void Shutdown(); void Update( void ); bool IsConnected() const; private: CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub ); CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub ); void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list ); void ParsePage( KeyValues *kv ); void ParseIconMappings( KeyValues *kv ); void ParseReplacements( KeyValues *kv ); void DisplayCurrentPage( unsigned int dwCurTime ); void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show ); int FindTitlePage(); void BuildUpdatedText( char const *in, CUtlString& out ); void LookupToken( char const *token, CUtlString& value ); bool ExtractArrayIndex( char *str, size_t bufsize, int *index ); bool Replace( CUtlString& str, char const *search, char const *replace ); void DoGlobalReplacements( CUtlString& str ); void ReduceParentheses( CUtlString& str ); bool IsPageValid( int currentPage, C_BasePlayer *player ); void UpdateChat(); IG15 *m_lcd ; CUtlString m_Title; int m_Size[ 2 ]; CUtlVector< CLCDPage * > m_Pages; int m_nCurrentPage; int m_nSubPage; int m_nMaxChatHistory; CUtlDict< int, int > m_TextSizes; CUtlDict< int, int > m_TextAlignments; struct IconInfo_t { void *m_handle; }; CUtlDict< IconInfo_t, int > m_Icons; bool m_bHadPlayer; CUtlDict< CUtlString, int > m_GlobalStats; CUtlVector< CUtlString > m_ChatHistory; unsigned int m_dwNextUpdateTime; CSysModule *m_pG15Module; CreateInterfaceFn m_G15Factory; }; extern CLCD gLCD; #endif // HUD_LCD_H
28.76
218
(translation_unit) "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: CLCD Manages the Logitech G-Series Gaming Keyboard LCD\n//\n// $NoKeywords: $\n//=============================================================================//\n#ifndef HUD_LCD_H\n#define HUD_LCD_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#include "tier1/utlvector.h"\n#include "tier1/utlstring.h"\n#include "tier1/utldict.h"\n\n#include "ihudlcd.h"\n\nclass KeyValues;\nclass IG15;\nclass C_BasePlayer;\n\nenum\n{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n};\n\n// Aggregate item types\nenum\n{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n};\n\nclass CLCDItem\n{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;\n virtual void Wipe( IG15 *lcd );\n\n bool m_bActive;\n int m_Type;\n void *m_Handle;\n int x, y, w, h;\n\n int m_nSubPage;\n\n CUtlVector< CLCDItem * > m_Children;\n};\n\nclass CLCDItemText : public CLCDItem\n{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )\n {\n m_Type = LCDITEM_TEXT;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_OriginalText;\n bool m_bHasWildcard;\n int m_iSize;\n int m_iAlign;\n};\n\nclass CLCDItemIcon : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_IconName;\n void *m_icon;\n};\n\nclass CLCDItemAggregate : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )\n {\n m_Type = LCDITEM_AGGREGATE;\n }\n\n virtual void Create( IG15 *lcd );\n virtual void Wipe( IG15 *lcd );\n\n void WipeChildrenOnly( IG15 *lcd );\n\n unsigned int m_dwNextUpdateTime;\n int m_AggType;\n\n int m_yincrement;\n\n // Representative row\n CUtlVector< CLCDItem * > m_Definition;\n};\n\nclass CLCDPage : public CLCDItem\n{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )\n {\n m_Type = LCDITEM_PAGE;\n }\n\n ~CLCDPage()\n {\n }\n\n virtual void Create( IG15 *lcd )\n {\n }\n\n CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }\n\n void InitFromKeyValues( KeyValues *kv );\n\n bool m_bSubItem;\n bool m_bTitlePage;\n bool m_bRequiresPlayer;\n int m_nSubPageCount;\n};\n\n//-----------------------------------------------------------------------------\n// Purpose: Manages the Logitech G-Series Gaming Keyboard LCD\n//-----------------------------------------------------------------------------\nclass CLCD : public IHudLCD\n{\npublic:\n CLCD();\n ~CLCD();\n\n // Implement IHudLCD\n virtual void SetGlobalStat( char const *name, char const *value );\n virtual void AddChatLine( char const *txt );\n\n // Exposed as a ConCommand\n void Reload();\n void DumpPlayer();\n\npublic:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );\n void Shutdown();\n void Update( void );\n bool IsConnected() const;\n\nprivate:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );\n\n void ParsePage( KeyValues *kv );\n void ParseIconMappings( KeyValues *kv );\n void ParseReplacements( KeyValues *kv );\n void DisplayCurrentPage( unsigned int dwCurTime );\n\n void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );\n\n int FindTitlePage();\n void BuildUpdatedText( char const *in, CUtlString& out );\n void LookupToken( char const *token, CUtlString& value );\n bool ExtractArrayIndex( char *str, size_t bufsize, int *index );\n\n bool Replace( CUtlString& str, char const *search, char const *replace );\n void DoGlobalReplacements( CUtlString& str );\n void ReduceParentheses( CUtlString& str );\n\n bool IsPageValid( int currentPage, C_BasePlayer *player );\n void UpdateChat();\n\n IG15 *m_lcd ;\n\n CUtlString m_Title;\n int m_Size[ 2 ];\n CUtlVector< CLCDPage * > m_Pages;\n int m_nCurrentPage;\n int m_nSubPage;\n int m_nMaxChatHistory;\n\n CUtlDict< int, int > m_TextSizes;\n CUtlDict< int, int > m_TextAlignments;\n\n struct IconInfo_t\n {\n void *m_handle;\n };\n\n CUtlDict< IconInfo_t, int > m_Icons;\n bool m_bHadPlayer;\n\n CUtlDict< CUtlString, int > m_GlobalStats;\n CUtlVector< CUtlString > m_ChatHistory;\n\n unsigned int m_dwNextUpdateTime;\n CSysModule *m_pG15Module;\n CreateInterfaceFn m_G15Factory;\n};\n\nextern CLCD gLCD;\n\n#endif // HUD_LCD_H\n" (comment) "//========= Copyright Valve Corporation, All rights reserved. ============//" (comment) "//" (comment) "// Purpose: CLCD Manages the Logitech G-Series Gaming Keyboard LCD" (comment) "//" (comment) "// $NoKeywords: $" (comment) "//=============================================================================//" (preproc_ifdef) "#ifndef HUD_LCD_H\n#define HUD_LCD_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#include "tier1/utlvector.h"\n#include "tier1/utlstring.h"\n#include "tier1/utldict.h"\n\n#include "ihudlcd.h"\n\nclass KeyValues;\nclass IG15;\nclass C_BasePlayer;\n\nenum\n{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n};\n\n// Aggregate item types\nenum\n{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n};\n\nclass CLCDItem\n{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;\n virtual void Wipe( IG15 *lcd );\n\n bool m_bActive;\n int m_Type;\n void *m_Handle;\n int x, y, w, h;\n\n int m_nSubPage;\n\n CUtlVector< CLCDItem * > m_Children;\n};\n\nclass CLCDItemText : public CLCDItem\n{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )\n {\n m_Type = LCDITEM_TEXT;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_OriginalText;\n bool m_bHasWildcard;\n int m_iSize;\n int m_iAlign;\n};\n\nclass CLCDItemIcon : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_IconName;\n void *m_icon;\n};\n\nclass CLCDItemAggregate : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )\n {\n m_Type = LCDITEM_AGGREGATE;\n }\n\n virtual void Create( IG15 *lcd );\n virtual void Wipe( IG15 *lcd );\n\n void WipeChildrenOnly( IG15 *lcd );\n\n unsigned int m_dwNextUpdateTime;\n int m_AggType;\n\n int m_yincrement;\n\n // Representative row\n CUtlVector< CLCDItem * > m_Definition;\n};\n\nclass CLCDPage : public CLCDItem\n{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )\n {\n m_Type = LCDITEM_PAGE;\n }\n\n ~CLCDPage()\n {\n }\n\n virtual void Create( IG15 *lcd )\n {\n }\n\n CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }\n\n void InitFromKeyValues( KeyValues *kv );\n\n bool m_bSubItem;\n bool m_bTitlePage;\n bool m_bRequiresPlayer;\n int m_nSubPageCount;\n};\n\n//-----------------------------------------------------------------------------\n// Purpose: Manages the Logitech G-Series Gaming Keyboard LCD\n//-----------------------------------------------------------------------------\nclass CLCD : public IHudLCD\n{\npublic:\n CLCD();\n ~CLCD();\n\n // Implement IHudLCD\n virtual void SetGlobalStat( char const *name, char const *value );\n virtual void AddChatLine( char const *txt );\n\n // Exposed as a ConCommand\n void Reload();\n void DumpPlayer();\n\npublic:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );\n void Shutdown();\n void Update( void );\n bool IsConnected() const;\n\nprivate:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );\n\n void ParsePage( KeyValues *kv );\n void ParseIconMappings( KeyValues *kv );\n void ParseReplacements( KeyValues *kv );\n void DisplayCurrentPage( unsigned int dwCurTime );\n\n void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );\n\n int FindTitlePage();\n void BuildUpdatedText( char const *in, CUtlString& out );\n void LookupToken( char const *token, CUtlString& value );\n bool ExtractArrayIndex( char *str, size_t bufsize, int *index );\n\n bool Replace( CUtlString& str, char const *search, char const *replace );\n void DoGlobalReplacements( CUtlString& str );\n void ReduceParentheses( CUtlString& str );\n\n bool IsPageValid( int currentPage, C_BasePlayer *player );\n void UpdateChat();\n\n IG15 *m_lcd ;\n\n CUtlString m_Title;\n int m_Size[ 2 ];\n CUtlVector< CLCDPage * > m_Pages;\n int m_nCurrentPage;\n int m_nSubPage;\n int m_nMaxChatHistory;\n\n CUtlDict< int, int > m_TextSizes;\n CUtlDict< int, int > m_TextAlignments;\n\n struct IconInfo_t\n {\n void *m_handle;\n };\n\n CUtlDict< IconInfo_t, int > m_Icons;\n bool m_bHadPlayer;\n\n CUtlDict< CUtlString, int > m_GlobalStats;\n CUtlVector< CUtlString > m_ChatHistory;\n\n unsigned int m_dwNextUpdateTime;\n CSysModule *m_pG15Module;\n CreateInterfaceFn m_G15Factory;\n};\n\nextern CLCD gLCD;\n\n#endif" (#ifndef) "#ifndef" (identifier) "HUD_LCD_H" (preproc_def) "#define HUD_LCD_H\n" (#define) "#define" (identifier) "HUD_LCD_H" (preproc_ifdef) "#ifdef _WIN32\n#pragma once\n#endif" (#ifdef) "#ifdef" (identifier) "_WIN32" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (#endif) "#endif" (preproc_include) "#include "tier1/utlvector.h"\n" (#include) "#include" (string_literal) ""tier1/utlvector.h"" (") """ (string_content) "tier1/utlvector.h" (") """ (preproc_include) "#include "tier1/utlstring.h"\n" (#include) "#include" (string_literal) ""tier1/utlstring.h"" (") """ (string_content) "tier1/utlstring.h" (") """ (preproc_include) "#include "tier1/utldict.h"\n" (#include) "#include" (string_literal) ""tier1/utldict.h"" (") """ (string_content) "tier1/utldict.h" (") """ (preproc_include) "#include "ihudlcd.h"\n" (#include) "#include" (string_literal) ""ihudlcd.h"" (") """ (string_content) "ihudlcd.h" (") """ (declaration) "class KeyValues;" (type_identifier) "class" (identifier) "KeyValues" (;) ";" (declaration) "class IG15;" (type_identifier) "class" (identifier) "IG15" (;) ";" (declaration) "class C_BasePlayer;" (type_identifier) "class" (identifier) "C_BasePlayer" (;) ";" (enum_specifier) "enum\n{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n}" (enum) "enum" (enumerator_list) "{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n}" ({) "{" (enumerator) "LCDITEM_UNKNOWN = 0" (identifier) "LCDITEM_UNKNOWN" (=) "=" (number_literal) "0" (,) "," (enumerator) "LCDITEM_PAGE" (identifier) "LCDITEM_PAGE" (,) "," (enumerator) "LCDITEM_TEXT" (identifier) "LCDITEM_TEXT" (,) "," (enumerator) "LCDITEM_ICON" (identifier) "LCDITEM_ICON" (,) "," (enumerator) "LCDITEM_AGGREGATE" (identifier) "LCDITEM_AGGREGATE" (,) "," (comment) "// Made up of subitems" (}) "}" (;) ";" (comment) "// Aggregate item types" (enum_specifier) "enum\n{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n}" (enum) "enum" (enumerator_list) "{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n}" ({) "{" (enumerator) "AGGTYPE_UNKNOWN = 0" (identifier) "AGGTYPE_UNKNOWN" (=) "=" (number_literal) "0" (,) "," (enumerator) "AGGTYPE_PERPLAYER" (identifier) "AGGTYPE_PERPLAYER" (,) "," (enumerator) "AGGTYPE_PERTEAM" (identifier) "AGGTYPE_PERTEAM" (,) "," (}) "}" (;) ";" (function_definition) "class CLCDItem\n{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;\n virtual void Wipe( IG15 *lcd );\n\n bool m_bActive;\n int m_Type;\n void *m_Handle;\n int x, y, w, h;\n\n int m_nSubPage;\n\n CUtlVector< CLCDItem * > m_Children;\n}" (type_identifier) "class" (identifier) "CLCDItem" (compound_statement) "{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;\n virtual void Wipe( IG15 *lcd );\n\n bool m_bActive;\n int m_Type;\n void *m_Handle;\n int x, y, w, h;\n\n int m_nSubPage;\n\n CUtlVector< CLCDItem * > m_Children;\n}" ({) "{" (labeled_statement) "public:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;" (statement_identifier) "public" (:) ":" (ERROR) "CLCDItem() :" (call_expression) "CLCDItem()" (identifier) "CLCDItem" (argument_list) "()" (() "(" ()) ")" (:) ":" (expression_statement) "m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;" (comma_expression) "m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (call_expression) "m_bActive( true )" (identifier) "m_bActive" (argument_list) "( true )" (() "(" (true) "true" ()) ")" (,) "," (comma_expression) "m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (call_expression) "m_nSubPage( 0 )" (identifier) "m_nSubPage" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (,) "," (comma_expression) "m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (call_expression) "m_Type( LCDITEM_UNKNOWN )" (identifier) "m_Type" (argument_list) "( LCDITEM_UNKNOWN )" (() "(" (identifier) "LCDITEM_UNKNOWN" ()) ")" (,) "," (comma_expression) "m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (call_expression) "m_Handle( 0 )" (identifier) "m_Handle" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (,) "," (comma_expression) "x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (call_expression) "x( 0 )" (identifier) "x" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (,) "," (comma_expression) "y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (call_expression) "y( 0 )" (identifier) "y" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (,) "," (comma_expression) "w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (call_expression) "w( 0 )" (identifier) "w" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (,) "," (ERROR) "h( 0 )\n {\n }\n\n virtual" (call_expression) "h( 0 )" (identifier) "h" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" ({) "{" (}) "}" (identifier) "virtual" (binary_expression) "~CLCDItem() {}\n\n virtual void Create( IG15 *lcd" (unary_expression) "~CLCDItem()" (~) "~" (call_expression) "CLCDItem()" (identifier) "CLCDItem" (argument_list) "()" (() "(" ()) ")" (ERROR) "{}\n\n virtual void Create( IG15" ({) "{" (}) "}" (identifier) "virtual" (primitive_type) "void" (identifier) "Create" (() "(" (identifier) "IG15" (*) "*" (identifier) "lcd" (ERROR) ") = 0" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void Wipe( IG15 *lcd );" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Wipe( IG15 *lcd )" (identifier) "Wipe" (parameter_list) "( IG15 *lcd )" (() "(" (parameter_declaration) "IG15 *lcd" (type_identifier) "IG15" (pointer_declarator) "*lcd" (*) "*" (identifier) "lcd" ()) ")" (;) ";" (declaration) "bool m_bActive;" (primitive_type) "bool" (identifier) "m_bActive" (;) ";" (declaration) "int m_Type;" (primitive_type) "int" (identifier) "m_Type" (;) ";" (declaration) "void *m_Handle;" (primitive_type) "void" (pointer_declarator) "*m_Handle" (*) "*" (identifier) "m_Handle" (;) ";" (declaration) "int x, y, w, h;" (primitive_type) "int" (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "w" (,) "," (identifier) "h" (;) ";" (declaration) "int m_nSubPage;" (primitive_type) "int" (identifier) "m_nSubPage" (;) ";" (expression_statement) "CUtlVector< CLCDItem * > m_Children;" (binary_expression) "CUtlVector< CLCDItem * > m_Children" (binary_expression) "CUtlVector< CLCDItem" (identifier) "CUtlVector" (<) "<" (identifier) "CLCDItem" (ERROR) "*" (*) "*" (>) ">" (identifier) "m_Children" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class CLCDItemText : public CLCDItem\n{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )\n {\n m_Type = LCDITEM_TEXT;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_OriginalText;\n bool m_bHasWildcard;\n int m_iSize;\n int m_iAlign;\n}" (type_identifier) "class" (identifier) "CLCDItemText" (ERROR) ": public CLCDItem" (:) ":" (identifier) "public" (identifier) "CLCDItem" (compound_statement) "{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )\n {\n m_Type = LCDITEM_TEXT;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_OriginalText;\n bool m_bHasWildcard;\n int m_iSize;\n int m_iAlign;\n}" ({) "{" (type_definition) "typedef CLCDItem BaseClass;" (typedef) "typedef" (type_identifier) "CLCDItem" (type_identifier) "BaseClass" (;) ";" (labeled_statement) "public:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )" (statement_identifier) "public" (:) ":" (ERROR) "CLCDItemText() :" (call_expression) "CLCDItemText()" (identifier) "CLCDItemText" (argument_list) "()" (() "(" ()) ")" (:) ":" (expression_statement) "m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )" (comma_expression) "m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )" (call_expression) "m_bHasWildcard( false )" (identifier) "m_bHasWildcard" (argument_list) "( false )" (() "(" (false) "false" ()) ")" (,) "," (comma_expression) "m_iSize( 0 ),\n m_iAlign( 0 )" (call_expression) "m_iSize( 0 )" (identifier) "m_iSize" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "m_iAlign( 0 )" (identifier) "m_iAlign" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (;) "" (compound_statement) "{\n m_Type = LCDITEM_TEXT;\n }" ({) "{" (expression_statement) "m_Type = LCDITEM_TEXT;" (assignment_expression) "m_Type = LCDITEM_TEXT" (identifier) "m_Type" (=) "=" (identifier) "LCDITEM_TEXT" (;) ";" (}) "}" (declaration) "virtual void Create( IG15 *lcd );" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Create( IG15 *lcd )" (identifier) "Create" (parameter_list) "( IG15 *lcd )" (() "(" (parameter_declaration) "IG15 *lcd" (type_identifier) "IG15" (pointer_declarator) "*lcd" (*) "*" (identifier) "lcd" ()) ")" (;) ";" (declaration) "CUtlString m_OriginalText;" (type_identifier) "CUtlString" (identifier) "m_OriginalText" (;) ";" (declaration) "bool m_bHasWildcard;" (primitive_type) "bool" (identifier) "m_bHasWildcard" (;) ";" (declaration) "int m_iSize;" (primitive_type) "int" (identifier) "m_iSize" (;) ";" (declaration) "int m_iAlign;" (primitive_type) "int" (identifier) "m_iAlign" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class CLCDItemIcon : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_IconName;\n void *m_icon;\n}" (type_identifier) "class" (identifier) "CLCDItemIcon" (ERROR) ": public CLCDItem" (:) ":" (identifier) "public" (identifier) "CLCDItem" (compound_statement) "{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_IconName;\n void *m_icon;\n}" ({) "{" (type_definition) "typedef CLCDItem BaseClass;" (typedef) "typedef" (type_identifier) "CLCDItem" (type_identifier) "BaseClass" (;) ";" (labeled_statement) "public:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }" (statement_identifier) "public" (:) ":" (ERROR) "CLCDItemIcon() :\n m_icon( NULL )" (call_expression) "CLCDItemIcon()" (identifier) "CLCDItemIcon" (argument_list) "()" (() "(" ()) ")" (:) ":" (macro_type_specifier) "m_icon( NULL )" (identifier) "m_icon" (() "(" (type_descriptor) "NULL" (type_identifier) "NULL" ()) ")" (compound_statement) "{\n m_Type = LCDITEM_ICON;\n }" ({) "{" (expression_statement) "m_Type = LCDITEM_ICON;" (assignment_expression) "m_Type = LCDITEM_ICON" (identifier) "m_Type" (=) "=" (identifier) "LCDITEM_ICON" (;) ";" (}) "}" (declaration) "virtual void Create( IG15 *lcd );" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Create( IG15 *lcd )" (identifier) "Create" (parameter_list) "( IG15 *lcd )" (() "(" (parameter_declaration) "IG15 *lcd" (type_identifier) "IG15" (pointer_declarator) "*lcd" (*) "*" (identifier) "lcd" ()) ")" (;) ";" (declaration) "CUtlString m_IconName;" (type_identifier) "CUtlString" (identifier) "m_IconName" (;) ";" (declaration) "void *m_icon;" (primitive_type) "void" (pointer_declarator) "*m_icon" (*) "*" (identifier) "m_icon" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class CLCDItemAggregate : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )\n {\n m_Type = LCDITEM_AGGREGATE;\n }\n\n virtual void Create( IG15 *lcd );\n virtual void Wipe( IG15 *lcd );\n\n void WipeChildrenOnly( IG15 *lcd );\n\n unsigned int m_dwNextUpdateTime;\n int m_AggType;\n\n int m_yincrement;\n\n // Representative row\n CUtlVector< CLCDItem * > m_Definition;\n}" (type_identifier) "class" (identifier) "CLCDItemAggregate" (ERROR) ": public CLCDItem" (:) ":" (identifier) "public" (identifier) "CLCDItem" (compound_statement) "{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )\n {\n m_Type = LCDITEM_AGGREGATE;\n }\n\n virtual void Create( IG15 *lcd );\n virtual void Wipe( IG15 *lcd );\n\n void WipeChildrenOnly( IG15 *lcd );\n\n unsigned int m_dwNextUpdateTime;\n int m_AggType;\n\n int m_yincrement;\n\n // Representative row\n CUtlVector< CLCDItem * > m_Definition;\n}" ({) "{" (type_definition) "typedef CLCDItem BaseClass;" (typedef) "typedef" (type_identifier) "CLCDItem" (type_identifier) "BaseClass" (;) ";" (labeled_statement) "public:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )" (statement_identifier) "public" (:) ":" (ERROR) "CLCDItemAggregate() :" (call_expression) "CLCDItemAggregate()" (identifier) "CLCDItemAggregate" (argument_list) "()" (() "(" ()) ")" (:) ":" (expression_statement) "m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )" (comma_expression) "m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )" (call_expression) "m_AggType( AGGTYPE_UNKNOWN )" (identifier) "m_AggType" (argument_list) "( AGGTYPE_UNKNOWN )" (() "(" (identifier) "AGGTYPE_UNKNOWN" ()) ")" (,) "," (comma_expression) "m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )" (call_expression) "m_dwNextUpdateTime( 0 )" (identifier) "m_dwNextUpdateTime" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "m_yincrement( 0 )" (identifier) "m_yincrement" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (;) "" (compound_statement) "{\n m_Type = LCDITEM_AGGREGATE;\n }" ({) "{" (expression_statement) "m_Type = LCDITEM_AGGREGATE;" (assignment_expression) "m_Type = LCDITEM_AGGREGATE" (identifier) "m_Type" (=) "=" (identifier) "LCDITEM_AGGREGATE" (;) ";" (}) "}" (declaration) "virtual void Create( IG15 *lcd );" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Create( IG15 *lcd )" (identifier) "Create" (parameter_list) "( IG15 *lcd )" (() "(" (parameter_declaration) "IG15 *lcd" (type_identifier) "IG15" (pointer_declarator) "*lcd" (*) "*" (identifier) "lcd" ()) ")" (;) ";" (declaration) "virtual void Wipe( IG15 *lcd );" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Wipe( IG15 *lcd )" (identifier) "Wipe" (parameter_list) "( IG15 *lcd )" (() "(" (parameter_declaration) "IG15 *lcd" (type_identifier) "IG15" (pointer_declarator) "*lcd" (*) "*" (identifier) "lcd" ()) ")" (;) ";" (declaration) "void WipeChildrenOnly( IG15 *lcd );" (primitive_type) "void" (function_declarator) "WipeChildrenOnly( IG15 *lcd )" (identifier) "WipeChildrenOnly" (parameter_list) "( IG15 *lcd )" (() "(" (parameter_declaration) "IG15 *lcd" (type_identifier) "IG15" (pointer_declarator) "*lcd" (*) "*" (identifier) "lcd" ()) ")" (;) ";" (declaration) "unsigned int m_dwNextUpdateTime;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "m_dwNextUpdateTime" (;) ";" (declaration) "int m_AggType;" (primitive_type) "int" (identifier) "m_AggType" (;) ";" (declaration) "int m_yincrement;" (primitive_type) "int" (identifier) "m_yincrement" (;) ";" (comment) "// Representative row" (expression_statement) "CUtlVector< CLCDItem * > m_Definition;" (binary_expression) "CUtlVector< CLCDItem * > m_Definition" (binary_expression) "CUtlVector< CLCDItem" (identifier) "CUtlVector" (<) "<" (identifier) "CLCDItem" (ERROR) "*" (*) "*" (>) ">" (identifier) "m_Definition" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class CLCDPage : public CLCDItem\n{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )\n {\n m_Type = LCDITEM_PAGE;\n }\n\n ~CLCDPage()\n {\n }\n\n virtual void Create( IG15 *lcd )\n {\n }\n\n CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }\n\n void InitFromKeyValues( KeyValues *kv );\n\n bool m_bSubItem;\n bool m_bTitlePage;\n bool m_bRequiresPlayer;\n int m_nSubPageCount;\n}" (type_identifier) "class" (identifier) "CLCDPage" (ERROR) ": public CLCDItem" (:) ":" (identifier) "public" (identifier) "CLCDItem" (compound_statement) "{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )\n {\n m_Type = LCDITEM_PAGE;\n }\n\n ~CLCDPage()\n {\n }\n\n virtual void Create( IG15 *lcd )\n {\n }\n\n CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }\n\n void InitFromKeyValues( KeyValues *kv );\n\n bool m_bSubItem;\n bool m_bTitlePage;\n bool m_bRequiresPlayer;\n int m_nSubPageCount;\n}" ({) "{" (labeled_statement) "public:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )" (statement_identifier) "public" (:) ":" (ERROR) "CLCDPage() :" (call_expression) "CLCDPage()" (identifier) "CLCDPage" (argument_list) "()" (() "(" ()) ")" (:) ":" (expression_statement) "m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )" (comma_expression) "m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )" (call_expression) "m_bSubItem( false )" (identifier) "m_bSubItem" (argument_list) "( false )" (() "(" (false) "false" ()) ")" (,) "," (comma_expression) "m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )" (call_expression) "m_bTitlePage( false )" (identifier) "m_bTitlePage" (argument_list) "( false )" (() "(" (false) "false" ()) ")" (,) "," (comma_expression) "m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )" (call_expression) "m_bRequiresPlayer( false )" (identifier) "m_bRequiresPlayer" (argument_list) "( false )" (() "(" (false) "false" ()) ")" (,) "," (call_expression) "m_nSubPageCount( 1 )" (identifier) "m_nSubPageCount" (argument_list) "( 1 )" (() "(" (number_literal) "1" ()) ")" (;) "" (compound_statement) "{\n m_Type = LCDITEM_PAGE;\n }" ({) "{" (expression_statement) "m_Type = LCDITEM_PAGE;" (assignment_expression) "m_Type = LCDITEM_PAGE" (identifier) "m_Type" (=) "=" (identifier) "LCDITEM_PAGE" (;) ";" (}) "}" (expression_statement) "~CLCDPage()" (unary_expression) "~CLCDPage()" (~) "~" (call_expression) "CLCDPage()" (identifier) "CLCDPage" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n }" ({) "{" (}) "}" (function_definition) "virtual void Create( IG15 *lcd )\n {\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Create( IG15 *lcd )" (identifier) "Create" (parameter_list) "( IG15 *lcd )" (() "(" (parameter_declaration) "IG15 *lcd" (type_identifier) "IG15" (pointer_declarator) "*lcd" (*) "*" (identifier) "lcd" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (function_definition) "CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }" (type_identifier) "CLCDItem" (pointer_declarator) "*Alloc( int type )" (*) "*" (function_declarator) "Alloc( int type )" (identifier) "Alloc" (parameter_list) "( int type )" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" ()) ")" (compound_statement) "{\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }" ({) "{" (declaration) "CLCDItem *item = NULL;" (type_identifier) "CLCDItem" (init_declarator) "*item = NULL" (pointer_declarator) "*item" (*) "*" (identifier) "item" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (switch_statement) "switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }" (switch) "switch" (parenthesized_expression) "( type )" (() "(" (identifier) "type" ()) ")" (compound_statement) "{\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }" ({) "{" (case_statement) "default:\n break;" (default) "default" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case LCDITEM_PAGE:\n // This shouldn't occur\n break;" (case) "case" (identifier) "LCDITEM_PAGE" (:) ":" (comment) "// This shouldn't occur" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;" (case) "case" (identifier) "LCDITEM_TEXT" (:) ":" (expression_statement) "item = new CLCDItemText();" (assignment_expression) "item = new CLCDItemText()" (identifier) "item" (=) "=" (ERROR) "new" (identifier) "new" (call_expression) "CLCDItemText()" (identifier) "CLCDItemText" (argument_list) "()" (() "(" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;" (case) "case" (identifier) "LCDITEM_ICON" (:) ":" (expression_statement) "item = new CLCDItemIcon();" (assignment_expression) "item = new CLCDItemIcon()" (identifier) "item" (=) "=" (ERROR) "new" (identifier) "new" (call_expression) "CLCDItemIcon()" (identifier) "CLCDItemIcon" (argument_list) "()" (() "(" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;" (case) "case" (identifier) "LCDITEM_AGGREGATE" (:) ":" (expression_statement) "item = new CLCDItemAggregate();" (assignment_expression) "item = new CLCDItemAggregate()" (identifier) "item" (=) "=" (ERROR) "new" (identifier) "new" (call_expression) "CLCDItemAggregate()" (identifier) "CLCDItemAggregate" (argument_list) "()" (() "(" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (if_statement) "if ( item )\n {\n return item;\n }" (if) "if" (parenthesized_expression) "( item )" (() "(" (identifier) "item" ()) ")" (compound_statement) "{\n return item;\n }" ({) "{" (return_statement) "return item;" (return) "return" (identifier) "item" (;) ";" (}) "}" (expression_statement) "Assert( 0 );" (call_expression) "Assert( 0 )" (identifier) "Assert" (argument_list) "( 0 )" (() "(" (number_literal) "0" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (declaration) "void InitFromKeyValues( KeyValues *kv );" (primitive_type) "void" (function_declarator) "InitFromKeyValues( KeyValues *kv )" (identifier) "InitFromKeyValues" (parameter_list) "( KeyValues *kv )" (() "(" (parameter_declaration) "KeyValues *kv" (type_identifier) "KeyValues" (pointer_declarator) "*kv" (*) "*" (identifier) "kv" ()) ")" (;) ";" (declaration) "bool m_bSubItem;" (primitive_type) "bool" (identifier) "m_bSubItem" (;) ";" (declaration) "bool m_bTitlePage;" (primitive_type) "bool" (identifier) "m_bTitlePage" (;) ";" (declaration) "bool m_bRequiresPlayer;" (primitive_type) "bool" (identifier) "m_bRequiresPlayer" (;) ";" (declaration) "int m_nSubPageCount;" (primitive_type) "int" (identifier) "m_nSubPageCount" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "//-----------------------------------------------------------------------------" (comment) "// Purpose: Manages the Logitech G-Series Gaming Keyboard LCD" (comment) "//-----------------------------------------------------------------------------" (function_definition) "class CLCD : public IHudLCD\n{\npublic:\n CLCD();\n ~CLCD();\n\n // Implement IHudLCD\n virtual void SetGlobalStat( char const *name, char const *value );\n virtual void AddChatLine( char const *txt );\n\n // Exposed as a ConCommand\n void Reload();\n void DumpPlayer();\n\npublic:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );\n void Shutdown();\n void Update( void );\n bool IsConnected() const;\n\nprivate:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );\n\n void ParsePage( KeyValues *kv );\n void ParseIconMappings( KeyValues *kv );\n void ParseReplacements( KeyValues *kv );\n void DisplayCurrentPage( unsigned int dwCurTime );\n\n void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );\n\n int FindTitlePage();\n void BuildUpdatedText( char const *in, CUtlString& out );\n void LookupToken( char const *token, CUtlString& value );\n bool ExtractArrayIndex( char *str, size_t bufsize, int *index );\n\n bool Replace( CUtlString& str, char const *search, char const *replace );\n void DoGlobalReplacements( CUtlString& str );\n void ReduceParentheses( CUtlString& str );\n\n bool IsPageValid( int currentPage, C_BasePlayer *player );\n void UpdateChat();\n\n IG15 *m_lcd ;\n\n CUtlString m_Title;\n int m_Size[ 2 ];\n CUtlVector< CLCDPage * > m_Pages;\n int m_nCurrentPage;\n int m_nSubPage;\n int m_nMaxChatHistory;\n\n CUtlDict< int, int > m_TextSizes;\n CUtlDict< int, int > m_TextAlignments;\n\n struct IconInfo_t\n {\n void *m_handle;\n };\n\n CUtlDict< IconInfo_t, int > m_Icons;\n bool m_bHadPlayer;\n\n CUtlDict< CUtlString, int > m_GlobalStats;\n CUtlVector< CUtlString > m_ChatHistory;\n\n unsigned int m_dwNextUpdateTime;\n CSysModule *m_pG15Module;\n CreateInterfaceFn m_G15Factory;\n}" (type_identifier) "class" (ERROR) "CLCD : public" (identifier) "CLCD" (:) ":" (identifier) "public" (identifier) "IHudLCD" (compound_statement) "{\npublic:\n CLCD();\n ~CLCD();\n\n // Implement IHudLCD\n virtual void SetGlobalStat( char const *name, char const *value );\n virtual void AddChatLine( char const *txt );\n\n // Exposed as a ConCommand\n void Reload();\n void DumpPlayer();\n\npublic:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );\n void Shutdown();\n void Update( void );\n bool IsConnected() const;\n\nprivate:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );\n\n void ParsePage( KeyValues *kv );\n void ParseIconMappings( KeyValues *kv );\n void ParseReplacements( KeyValues *kv );\n void DisplayCurrentPage( unsigned int dwCurTime );\n\n void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );\n\n int FindTitlePage();\n void BuildUpdatedText( char const *in, CUtlString& out );\n void LookupToken( char const *token, CUtlString& value );\n bool ExtractArrayIndex( char *str, size_t bufsize, int *index );\n\n bool Replace( CUtlString& str, char const *search, char const *replace );\n void DoGlobalReplacements( CUtlString& str );\n void ReduceParentheses( CUtlString& str );\n\n bool IsPageValid( int currentPage, C_BasePlayer *player );\n void UpdateChat();\n\n IG15 *m_lcd ;\n\n CUtlString m_Title;\n int m_Size[ 2 ];\n CUtlVector< CLCDPage * > m_Pages;\n int m_nCurrentPage;\n int m_nSubPage;\n int m_nMaxChatHistory;\n\n CUtlDict< int, int > m_TextSizes;\n CUtlDict< int, int > m_TextAlignments;\n\n struct IconInfo_t\n {\n void *m_handle;\n };\n\n CUtlDict< IconInfo_t, int > m_Icons;\n bool m_bHadPlayer;\n\n CUtlDict< CUtlString, int > m_GlobalStats;\n CUtlVector< CUtlString > m_ChatHistory;\n\n unsigned int m_dwNextUpdateTime;\n CSysModule *m_pG15Module;\n CreateInterfaceFn m_G15Factory;\n}" ({) "{" (labeled_statement) "public:\n CLCD();" (statement_identifier) "public" (:) ":" (expression_statement) "CLCD();" (call_expression) "CLCD()" (identifier) "CLCD" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~CLCD();" (unary_expression) "~CLCD()" (~) "~" (call_expression) "CLCD()" (identifier) "CLCD" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Implement IHudLCD" (declaration) "virtual void SetGlobalStat( char const *name, char const *value );" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "SetGlobalStat( char const *name, char const *value )" (identifier) "SetGlobalStat" (parameter_list) "( char const *name, char const *value )" (() "(" (parameter_declaration) "char const *name" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "char const *value" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*value" (*) "*" (identifier) "value" ()) ")" (;) ";" (declaration) "virtual void AddChatLine( char const *txt );" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "AddChatLine( char const *txt )" (identifier) "AddChatLine" (parameter_list) "( char const *txt )" (() "(" (parameter_declaration) "char const *txt" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*txt" (*) "*" (identifier) "txt" ()) ")" (;) ";" (comment) "// Exposed as a ConCommand" (declaration) "void Reload();" (primitive_type) "void" (function_declarator) "Reload()" (identifier) "Reload" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void DumpPlayer();" (primitive_type) "void" (function_declarator) "DumpPlayer()" (identifier) "DumpPlayer" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );" (statement_identifier) "public" (:) ":" (comment) "// Init's called when the HUD's created at DLL load" (declaration) "void Init( void );" (primitive_type) "void" (function_declarator) "Init( void )" (identifier) "Init" (parameter_list) "( void )" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void Shutdown();" (primitive_type) "void" (function_declarator) "Shutdown()" (identifier) "Shutdown" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void Update( void );" (primitive_type) "void" (function_declarator) "Update( void )" (identifier) "Update" (parameter_list) "( void )" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (ERROR) "bool IsConnected() const" (primitive_type) "bool" (function_declarator) "IsConnected()" (identifier) "IsConnected" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );" (statement_identifier) "private" (:) ":" (declaration) "CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );" (type_identifier) "CLCDItemIcon" (pointer_declarator) "*ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub )" (*) "*" (function_declarator) "ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub )" (identifier) "ParseItemIcon" (parameter_list) "( CLCDPage *page, bool bCreateHandles, KeyValues *sub )" (() "(" (parameter_declaration) "CLCDPage *page" (type_identifier) "CLCDPage" (pointer_declarator) "*page" (*) "*" (identifier) "page" (,) "," (parameter_declaration) "bool bCreateHandles" (primitive_type) "bool" (identifier) "bCreateHandles" (,) "," (parameter_declaration) "KeyValues *sub" (type_identifier) "KeyValues" (pointer_declarator) "*sub" (*) "*" (identifier) "sub" ()) ")" (;) ";" (declaration) "CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );" (type_identifier) "CLCDItemText" (pointer_declarator) "*ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub )" (*) "*" (function_declarator) "ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub )" (identifier) "ParseItemText" (parameter_list) "( CLCDPage *page, bool bCreateHandles, KeyValues *sub )" (() "(" (parameter_declaration) "CLCDPage *page" (type_identifier) "CLCDPage" (pointer_declarator) "*page" (*) "*" (identifier) "page" (,) "," (parameter_declaration) "bool bCreateHandles" (primitive_type) "bool" (identifier) "bCreateHandles" (,) "," (parameter_declaration) "KeyValues *sub" (type_identifier) "KeyValues" (pointer_declarator) "*sub" (*) "*" (identifier) "sub" ()) ")" (;) ";" (declaration) "void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );" (primitive_type) "void" (function_declarator) "ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list )" (identifier) "ParseItems_R" (parameter_list) "( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list )" (() "(" (parameter_declaration) "CLCDPage *page" (type_identifier) "CLCDPage" (pointer_declarator) "*page" (*) "*" (identifier) "page" (,) "," (parameter_declaration) "bool bCreateHandles" (primitive_type) "bool" (identifier) "bCreateHandles" (,) "," (parameter_declaration) "KeyValues *kv" (type_identifier) "KeyValues" (pointer_declarator) "*kv" (*) "*" (identifier) "kv" (,) "," (parameter_declaration) "CUtlVector< CLCDItem * >& list" (type_identifier) "CUtlVector" (ERROR) "< CLCDItem * >&" (<) "<" (identifier) "CLCDItem" (*) "*" (>) ">" (&) "&" (identifier) "list" ()) ")" (;) ";" (declaration) "void ParsePage( KeyValues *kv );" (primitive_type) "void" (function_declarator) "ParsePage( KeyValues *kv )" (identifier) "ParsePage" (parameter_list) "( KeyValues *kv )" (() "(" (parameter_declaration) "KeyValues *kv" (type_identifier) "KeyValues" (pointer_declarator) "*kv" (*) "*" (identifier) "kv" ()) ")" (;) ";" (declaration) "void ParseIconMappings( KeyValues *kv );" (primitive_type) "void" (function_declarator) "ParseIconMappings( KeyValues *kv )" (identifier) "ParseIconMappings" (parameter_list) "( KeyValues *kv )" (() "(" (parameter_declaration) "KeyValues *kv" (type_identifier) "KeyValues" (pointer_declarator) "*kv" (*) "*" (identifier) "kv" ()) ")" (;) ";" (declaration) "void ParseReplacements( KeyValues *kv );" (primitive_type) "void" (function_declarator) "ParseReplacements( KeyValues *kv )" (identifier) "ParseReplacements" (parameter_list) "( KeyValues *kv )" (() "(" (parameter_declaration) "KeyValues *kv" (type_identifier) "KeyValues" (pointer_declarator) "*kv" (*) "*" (identifier) "kv" ()) ")" (;) ";" (declaration) "void DisplayCurrentPage( unsigned int dwCurTime );" (primitive_type) "void" (function_declarator) "DisplayCurrentPage( unsigned int dwCurTime )" (identifier) "DisplayCurrentPage" (parameter_list) "( unsigned int dwCurTime )" (() "(" (parameter_declaration) "unsigned int dwCurTime" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "dwCurTime" ()) ")" (;) ";" (declaration) "void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );" (primitive_type) "void" (function_declarator) "ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show )" (identifier) "ShowItems_R" (parameter_list) "( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show )" (() "(" (parameter_declaration) "CLCDPage *page" (type_identifier) "CLCDPage" (pointer_declarator) "*page" (*) "*" (identifier) "page" (,) "," (parameter_declaration) "unsigned int dwCurTime" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "dwCurTime" (,) "," (parameter_declaration) "CUtlVector< CLCDItem * >& list" (type_identifier) "CUtlVector" (ERROR) "< CLCDItem * >&" (<) "<" (identifier) "CLCDItem" (*) "*" (>) ">" (&) "&" (identifier) "list" (,) "," (parameter_declaration) "bool show" (primitive_type) "bool" (identifier) "show" ()) ")" (;) ";" (declaration) "int FindTitlePage();" (primitive_type) "int" (function_declarator) "FindTitlePage()" (identifier) "FindTitlePage" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void BuildUpdatedText( char const *in, CUtlString& out );" (primitive_type) "void" (function_declarator) "BuildUpdatedText( char const *in, CUtlString& out )" (identifier) "BuildUpdatedText" (parameter_list) "( char const *in, CUtlString& out )" (() "(" (parameter_declaration) "char const *in" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*in" (*) "*" (identifier) "in" (,) "," (parameter_declaration) "CUtlString& out" (type_identifier) "CUtlString" (ERROR) "&" (&) "&" (identifier) "out" ()) ")" (;) ";" (declaration) "void LookupToken( char const *token, CUtlString& value );" (primitive_type) "void" (function_declarator) "LookupToken( char const *token, CUtlString& value )" (identifier) "LookupToken" (parameter_list) "( char const *token, CUtlString& value )" (() "(" (parameter_declaration) "char const *token" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*token" (*) "*" (identifier) "token" (,) "," (parameter_declaration) "CUtlString& value" (type_identifier) "CUtlString" (ERROR) "&" (&) "&" (identifier) "value" ()) ")" (;) ";" (declaration) "bool ExtractArrayIndex( char *str, size_t bufsize, int *index );" (primitive_type) "bool" (function_declarator) "ExtractArrayIndex( char *str, size_t bufsize, int *index )" (identifier) "ExtractArrayIndex" (parameter_list) "( char *str, size_t bufsize, int *index )" (() "(" (parameter_declaration) "char *str" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "size_t bufsize" (primitive_type) "size_t" (identifier) "bufsize" (,) "," (parameter_declaration) "int *index" (primitive_type) "int" (pointer_declarator) "*index" (*) "*" (identifier) "index" ()) ")" (;) ";" (declaration) "bool Replace( CUtlString& str, char const *search, char const *replace );" (primitive_type) "bool" (function_declarator) "Replace( CUtlString& str, char const *search, char const *replace )" (identifier) "Replace" (parameter_list) "( CUtlString& str, char const *search, char const *replace )" (() "(" (parameter_declaration) "CUtlString& str" (type_identifier) "CUtlString" (ERROR) "&" (&) "&" (identifier) "str" (,) "," (parameter_declaration) "char const *search" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*search" (*) "*" (identifier) "search" (,) "," (parameter_declaration) "char const *replace" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*replace" (*) "*" (identifier) "replace" ()) ")" (;) ";" (declaration) "void DoGlobalReplacements( CUtlString& str );" (primitive_type) "void" (function_declarator) "DoGlobalReplacements( CUtlString& str )" (identifier) "DoGlobalReplacements" (parameter_list) "( CUtlString& str )" (() "(" (parameter_declaration) "CUtlString& str" (type_identifier) "CUtlString" (ERROR) "&" (&) "&" (identifier) "str" ()) ")" (;) ";" (declaration) "void ReduceParentheses( CUtlString& str );" (primitive_type) "void" (function_declarator) "ReduceParentheses( CUtlString& str )" (identifier) "ReduceParentheses" (parameter_list) "( CUtlString& str )" (() "(" (parameter_declaration) "CUtlString& str" (type_identifier) "CUtlString" (ERROR) "&" (&) "&" (identifier) "str" ()) ")" (;) ";" (declaration) "bool IsPageValid( int currentPage, C_BasePlayer *player );" (primitive_type) "bool" (function_declarator) "IsPageValid( int currentPage, C_BasePlayer *player )" (identifier) "IsPageValid" (parameter_list) "( int currentPage, C_BasePlayer *player )" (() "(" (parameter_declaration) "int currentPage" (primitive_type) "int" (identifier) "currentPage" (,) "," (parameter_declaration) "C_BasePlayer *player" (type_identifier) "C_BasePlayer" (pointer_declarator) "*player" (*) "*" (identifier) "player" ()) ")" (;) ";" (declaration) "void UpdateChat();" (primitive_type) "void" (function_declarator) "UpdateChat()" (identifier) "UpdateChat" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "IG15 *m_lcd ;" (type_identifier) "IG15" (pointer_declarator) "*m_lcd" (*) "*" (identifier) "m_lcd" (;) ";" (declaration) "CUtlString m_Title;" (type_identifier) "CUtlString" (identifier) "m_Title" (;) ";" (declaration) "int m_Size[ 2 ];" (primitive_type) "int" (array_declarator) "m_Size[ 2 ]" (identifier) "m_Size" ([) "[" (number_literal) "2" (]) "]" (;) ";" (expression_statement) "CUtlVector< CLCDPage * > m_Pages;" (binary_expression) "CUtlVector< CLCDPage * > m_Pages" (binary_expression) "CUtlVector< CLCDPage" (identifier) "CUtlVector" (<) "<" (identifier) "CLCDPage" (ERROR) "*" (*) "*" (>) ">" (identifier) "m_Pages" (;) ";" (declaration) "int m_nCurrentPage;" (primitive_type) "int" (identifier) "m_nCurrentPage" (;) ";" (declaration) "int m_nSubPage;" (primitive_type) "int" (identifier) "m_nSubPage" (;) ";" (declaration) "int m_nMaxChatHistory;" (primitive_type) "int" (identifier) "m_nMaxChatHistory" (;) ";" (expression_statement) "CUtlDict< int, int > m_TextSizes;" (comma_expression) "CUtlDict< int, int > m_TextSizes" (binary_expression) "CUtlDict< int" (identifier) "CUtlDict" (<) "<" (identifier) "int" (,) "," (binary_expression) "int > m_TextSizes" (identifier) "int" (>) ">" (identifier) "m_TextSizes" (;) ";" (expression_statement) "CUtlDict< int, int > m_TextAlignments;" (comma_expression) "CUtlDict< int, int > m_TextAlignments" (binary_expression) "CUtlDict< int" (identifier) "CUtlDict" (<) "<" (identifier) "int" (,) "," (binary_expression) "int > m_TextAlignments" (identifier) "int" (>) ">" (identifier) "m_TextAlignments" (;) ";" (struct_specifier) "struct IconInfo_t\n {\n void *m_handle;\n }" (struct) "struct" (type_identifier) "IconInfo_t" (field_declaration_list) "{\n void *m_handle;\n }" ({) "{" (field_declaration) "void *m_handle;" (primitive_type) "void" (pointer_declarator) "*m_handle" (*) "*" (field_identifier) "m_handle" (;) ";" (}) "}" (;) ";" (expression_statement) "CUtlDict< IconInfo_t, int > m_Icons;" (comma_expression) "CUtlDict< IconInfo_t, int > m_Icons" (binary_expression) "CUtlDict< IconInfo_t" (identifier) "CUtlDict" (<) "<" (identifier) "IconInfo_t" (,) "," (binary_expression) "int > m_Icons" (identifier) "int" (>) ">" (identifier) "m_Icons" (;) ";" (declaration) "bool m_bHadPlayer;" (primitive_type) "bool" (identifier) "m_bHadPlayer" (;) ";" (expression_statement) "CUtlDict< CUtlString, int > m_GlobalStats;" (comma_expression) "CUtlDict< CUtlString, int > m_GlobalStats" (binary_expression) "CUtlDict< CUtlString" (identifier) "CUtlDict" (<) "<" (identifier) "CUtlString" (,) "," (binary_expression) "int > m_GlobalStats" (identifier) "int" (>) ">" (identifier) "m_GlobalStats" (;) ";" (expression_statement) "CUtlVector< CUtlString > m_ChatHistory;" (binary_expression) "CUtlVector< CUtlString > m_ChatHistory" (binary_expression) "CUtlVector< CUtlString" (identifier) "CUtlVector" (<) "<" (identifier) "CUtlString" (>) ">" (identifier) "m_ChatHistory" (;) ";" (declaration) "unsigned int m_dwNextUpdateTime;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "m_dwNextUpdateTime" (;) ";" (declaration) "CSysModule *m_pG15Module;" (type_identifier) "CSysModule" (pointer_declarator) "*m_pG15Module" (*) "*" (identifier) "m_pG15Module" (;) ";" (declaration) "CreateInterfaceFn m_G15Factory;" (type_identifier) "CreateInterfaceFn" (identifier) "m_G15Factory" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "extern CLCD gLCD;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "CLCD" (identifier) "gLCD" (;) ";" (#endif) "#endif" (comment) "// HUD_LCD_H"
1,399
35
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 28.76, "nodes": 906, "errors": 0, "source_hash": "d1f15e9627a36fc793e28614d96b48d48989b18823490352cfaabf32aaf91e01", "categorized_nodes": 590}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HUD_LCD_H\n#define HUD_LCD_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#include \"tier1/utlvector.h\"\n#include \"tier1/utlstring.h\"\n#include \"tier1/utldict.h\"\n\n#include \"ihudlcd.h\"\n\nclass KeyValues;\nclass IG15;\nclass C_BasePlayer;\n\nenum\n{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n};\n\n// Aggregate item types\nenum\n{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n};\n\nclass CLCDItem\n{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;\n virtual void Wipe( IG15 *lcd );\n\n bool m_bActive;\n int m_Type;\n void *m_Handle;\n int x, y, w, h;\n\n int m_nSubPage;\n\n CUtlVector< CLCDItem * > m_Children;\n};\n\nclass CLCDItemText : public CLCDItem\n{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )\n {\n m_Type = LCDITEM_TEXT;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_OriginalText;\n bool m_bHasWildcard;\n int m_iSize;\n int m_iAlign;\n};\n\nclass CLCDItemIcon : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_IconName;\n void *m_icon;\n};\n\nclass CLCDItemAggregate : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )\n {\n m_Type = LCDITEM_AGGREGATE;\n }\n\n virtual void Create( IG15 *lcd );\n virtual void Wipe( IG15 *lcd );\n\n void WipeChildrenOnly( IG15 *lcd );\n\n unsigned int m_dwNextUpdateTime;\n int m_AggType;\n\n int m_yincrement;\n\n // Representative row\n CUtlVector< CLCDItem * > m_Definition;\n};\n\nclass CLCDPage : public CLCDItem\n{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )\n {\n m_Type = LCDITEM_PAGE;\n }\n\n ~CLCDPage()\n {\n }\n\n virtual void Create( IG15 *lcd )\n {\n }\n\n CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }\n\n void InitFromKeyValues( KeyValues *kv );\n\n bool m_bSubItem;\n bool m_bTitlePage;\n bool m_bRequiresPlayer;\n int m_nSubPageCount;\n};\n\n//-----------------------------------------------------------------------------\n// Purpose: Manages the Logitech G-Series Gaming Keyboard LCD\n//-----------------------------------------------------------------------------\nclass CLCD : public IHudLCD\n{\npublic:\n CLCD();\n ~CLCD();\n\n // Implement IHudLCD\n virtual void SetGlobalStat( char const *name, char const *value );\n virtual void AddChatLine( char const *txt );\n\n // Exposed as a ConCommand\n void Reload();\n void DumpPlayer();\n\npublic:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );\n void Shutdown();\n void Update( void );\n bool IsConnected() const;\n\nprivate:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );\n\n void ParsePage( KeyValues *kv );\n void ParseIconMappings( KeyValues *kv );\n void ParseReplacements( KeyValues *kv );\n void DisplayCurrentPage( unsigned int dwCurTime );\n\n void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );\n\n int FindTitlePage();\n void BuildUpdatedText( char const *in, CUtlString& out );\n void LookupToken( char const *token, CUtlString& value );\n bool ExtractArrayIndex( char *str, size_t bufsize, int *index );\n\n bool Replace( CUtlString& str, char const *search, char const *replace );\n void DoGlobalReplacements( CUtlString& str );\n void ReduceParentheses( CUtlString& str );\n\n bool IsPageValid( int currentPage, C_BasePlayer *player );\n void UpdateChat();\n\n IG15 *m_lcd ;\n\n CUtlString m_Title;\n int m_Size[ 2 ];\n CUtlVector< CLCDPage * > m_Pages;\n int m_nCurrentPage;\n int m_nSubPage;\n int m_nMaxChatHistory;\n\n CUtlDict< int, int > m_TextSizes;\n CUtlDict< int, int > m_TextAlignments;\n\n struct IconInfo_t\n {\n void *m_handle;\n };\n\n CUtlDict< IconInfo_t, int > m_Icons;\n bool m_bHadPlayer;\n\n CUtlDict< CUtlString, int > m_GlobalStats;\n CUtlVector< CUtlString > m_ChatHistory;\n\n unsigned int m_dwNextUpdateTime;\n CSysModule *m_pG15Module;\n CreateInterfaceFn m_G15Factory;\n};\n\nextern CLCD gLCD;\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 13, 16, 19, 22, 25, 27, 29, 31, 46, 57, 162, 217, 258, 343, 491, 900, 905], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 272, "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": "HUD_LCD_H", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define HUD_LCD_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": "HUD_LCD_H", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 17}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef _WIN32\n#pragma once\n#endif", "parent": 0, "children": [7, 8, 9, 12], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 8, "type": "identifier", "text": "_WIN32", "parent": 6, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 13}}, {"id": 9, "type": "preproc_call", "text": "#pragma once\n", "parent": 6, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#pragma", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "once", "parent": 9, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 12}}, {"id": 12, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 13, "type": "preproc_include", "text": "#include \"tier1/utlvector.h\"\n", "parent": 0, "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": "string_literal", "text": "\"tier1/utlvector.h\"", "parent": 13, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 28}}, {"id": 16, "type": "preproc_include", "text": "#include \"tier1/utlstring.h\"\n", "parent": 0, "children": [17, 18], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 18, "type": "string_literal", "text": "\"tier1/utlstring.h\"", "parent": 16, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 28}}, {"id": 19, "type": "preproc_include", "text": "#include \"tier1/utldict.h\"\n", "parent": 0, "children": [20, 21], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 21, "type": "string_literal", "text": "\"tier1/utldict.h\"", "parent": 19, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 26}}, {"id": 22, "type": "preproc_include", "text": "#include \"ihudlcd.h\"\n", "parent": 0, "children": [23, 24], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 24, "type": "string_literal", "text": "\"ihudlcd.h\"", "parent": 22, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 20}}, {"id": 25, "type": "declaration", "text": "class KeyValues;", "parent": 0, "children": [26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 16}}, {"id": 26, "type": "identifier", "text": "KeyValues", "parent": 25, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 15}}, {"id": 27, "type": "declaration", "text": "class IG15;", "parent": 0, "children": [28], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 11}}, {"id": 28, "type": "identifier", "text": "IG15", "parent": 27, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 10}}, {"id": 29, "type": "declaration", "text": "class C_BasePlayer;", "parent": 0, "children": [30], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 19}}, {"id": 30, "type": "identifier", "text": "C_BasePlayer", "parent": 29, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 18}}, {"id": 31, "type": "enum_specifier", "text": "enum\n{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n}", "parent": 0, "children": [32, 33], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 32, "type": "enum", "text": "enum", "parent": 31, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 33, "type": "enumerator_list", "text": "{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n}", "parent": 31, "children": [34, 38, 40, 42, 44], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 34, "type": "enumerator", "text": "LCDITEM_UNKNOWN = 0", "parent": 33, "children": [35, 36, 37], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 23}}, {"id": 35, "type": "identifier", "text": "LCDITEM_UNKNOWN", "parent": 34, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 19}}, {"id": 36, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 37, "type": "number_literal", "text": "0", "parent": 34, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 38, "type": "enumerator", "text": "LCDITEM_PAGE", "parent": 33, "children": [39], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 16}}, {"id": 39, "type": "identifier", "text": "LCDITEM_PAGE", "parent": 38, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 16}}, {"id": 40, "type": "enumerator", "text": "LCDITEM_TEXT", "parent": 33, "children": [41], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 16}}, {"id": 41, "type": "identifier", "text": "LCDITEM_TEXT", "parent": 40, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 16}}, {"id": 42, "type": "enumerator", "text": "LCDITEM_ICON", "parent": 33, "children": [43], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 16}}, {"id": 43, "type": "identifier", "text": "LCDITEM_ICON", "parent": 42, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 16}}, {"id": 44, "type": "enumerator", "text": "LCDITEM_AGGREGATE", "parent": 33, "children": [45], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 21}}, {"id": 45, "type": "identifier", "text": "LCDITEM_AGGREGATE", "parent": 44, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 21}}, {"id": 46, "type": "enum_specifier", "text": "enum\n{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n}", "parent": 0, "children": [47, 48], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 47, "type": "enum", "text": "enum", "parent": 46, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 4}}, {"id": 48, "type": "enumerator_list", "text": "{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n}", "parent": 46, "children": [49, 53, 55], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 49, "type": "enumerator", "text": "AGGTYPE_UNKNOWN = 0", "parent": 48, "children": [50, 51, 52], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 23}}, {"id": 50, "type": "identifier", "text": "AGGTYPE_UNKNOWN", "parent": 49, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 19}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 52, "type": "number_literal", "text": "0", "parent": 49, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 23}}, {"id": 53, "type": "enumerator", "text": "AGGTYPE_PERPLAYER", "parent": 48, "children": [54], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 21}}, {"id": 54, "type": "identifier", "text": "AGGTYPE_PERPLAYER", "parent": 53, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 21}}, {"id": 55, "type": "enumerator", "text": "AGGTYPE_PERTEAM", "parent": 48, "children": [56], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 19}}, {"id": 56, "type": "identifier", "text": "AGGTYPE_PERTEAM", "parent": 55, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 19}}, {"id": 57, "type": "function_definition", "text": "class CLCDItem\n{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;\n virtual void Wipe( IG15 *lcd );\n\n bool m_bActive;\n int m_Type;\n void *m_Handle;\n int x, y, w, h;\n\n int m_nSubPage;\n\n CUtlVector< CLCDItem * > m_Children;\n}", "parent": 0, "children": [58], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 58, "type": "identifier", "text": "CLCDItem", "parent": 57, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 14}}, {"id": 59, "type": "labeled_statement", "text": "public:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;", "parent": 57, "children": [60], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 56, "column": 41}}, {"id": 60, "type": "ERROR", "text": "CLCDItem() :", "parent": 59, "children": [61], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 16}}, {"id": 61, "type": "call_expression", "text": "CLCDItem()", "parent": 60, "children": [62, 63], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 14}}, {"id": 62, "type": "identifier", "text": "CLCDItem", "parent": 61, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 12}}, {"id": 63, "type": "argument_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 14}}, {"id": 64, "type": "comma_expression", "text": "m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 59, "children": [65, 69], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 65, "type": "call_expression", "text": "m_bActive( true )", "parent": 64, "children": [66, 67], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 25}}, {"id": 66, "type": "identifier", "text": "m_bActive", "parent": 65, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 17}}, {"id": 67, "type": "argument_list", "text": "( true )", "parent": 65, "children": [68], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 25}}, {"id": 68, "type": "true", "text": "true", "parent": 67, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 23}}, {"id": 69, "type": "comma_expression", "text": "m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 64, "children": [70, 74], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 70, "type": "call_expression", "text": "m_nSubPage( 0 )", "parent": 69, "children": [71, 72], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 23}}, {"id": 71, "type": "identifier", "text": "m_nSubPage", "parent": 70, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 18}}, {"id": 72, "type": "argument_list", "text": "( 0 )", "parent": 70, "children": [73], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 23}}, {"id": 73, "type": "number_literal", "text": "0", "parent": 72, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 21}}, {"id": 74, "type": "comma_expression", "text": "m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 69, "children": [75, 79], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 75, "type": "call_expression", "text": "m_Type( LCDITEM_UNKNOWN )", "parent": 74, "children": [76, 77], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 33}}, {"id": 76, "type": "identifier", "text": "m_Type", "parent": 75, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 14}}, {"id": 77, "type": "argument_list", "text": "( LCDITEM_UNKNOWN )", "parent": 75, "children": [78], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 33}}, {"id": 78, "type": "identifier", "text": "LCDITEM_UNKNOWN", "parent": 77, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 31}}, {"id": 79, "type": "comma_expression", "text": "m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 74, "children": [80, 84], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 80, "type": "call_expression", "text": "m_Handle( 0 )", "parent": 79, "children": [81, 82], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 21}}, {"id": 81, "type": "identifier", "text": "m_Handle", "parent": 80, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 82, "type": "argument_list", "text": "( 0 )", "parent": 80, "children": [83], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 21}}, {"id": 83, "type": "number_literal", "text": "0", "parent": 82, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 19}}, {"id": 84, "type": "comma_expression", "text": "x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 79, "children": [85, 89], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 85, "type": "call_expression", "text": "x( 0 )", "parent": 84, "children": [86, 87], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 86, "type": "identifier", "text": "x", "parent": 85, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 87, "type": "argument_list", "text": "( 0 )", "parent": 85, "children": [88], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 14}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 87, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 89, "type": "comma_expression", "text": "y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 84, "children": [90, 94], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 90, "type": "call_expression", "text": "y( 0 )", "parent": 89, "children": [91, 92], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 14}}, {"id": 91, "type": "identifier", "text": "y", "parent": 90, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 92, "type": "argument_list", "text": "( 0 )", "parent": 90, "children": [93], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 14}}, {"id": 93, "type": "number_literal", "text": "0", "parent": 92, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}, {"id": 94, "type": "comma_expression", "text": "w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 89, "children": [95, 99, 105], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 56, "column": 34}}, {"id": 95, "type": "call_expression", "text": "w( 0 )", "parent": 94, "children": [96, 97], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 14}}, {"id": 96, "type": "identifier", "text": "w", "parent": 95, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 9}}, {"id": 97, "type": "argument_list", "text": "( 0 )", "parent": 95, "children": [98], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 14}}, {"id": 98, "type": "number_literal", "text": "0", "parent": 97, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 12}}, {"id": 99, "type": "ERROR", "text": "h( 0 )\n {\n }\n\n virtual", "parent": 94, "children": [100, 104], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 54, "column": 11}}, {"id": 100, "type": "call_expression", "text": "h( 0 )", "parent": 99, "children": [101, 102], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 14}}, {"id": 101, "type": "identifier", "text": "h", "parent": 100, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 102, "type": "argument_list", "text": "( 0 )", "parent": 100, "children": [103], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 14}}, {"id": 103, "type": "number_literal", "text": "0", "parent": 102, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 12}}, {"id": 104, "type": "identifier", "text": "virtual", "parent": 99, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 11}}, {"id": 105, "type": "binary_expression", "text": "~CLCDItem() {}\n\n virtual void Create( IG15 *lcd", "parent": 94, "children": [106, 111, 116, 117], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 56, "column": 34}}, {"id": 106, "type": "unary_expression", "text": "~CLCDItem()", "parent": 105, "children": [107, 108], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 23}}, {"id": 107, "type": "~", "text": "~", "parent": 106, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 108, "type": "call_expression", "text": "CLCDItem()", "parent": 106, "children": [109, 110], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 23}}, {"id": 109, "type": "identifier", "text": "CLCDItem", "parent": 108, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 21}}, {"id": 110, "type": "argument_list", "text": "()", "parent": 108, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 23}}, {"id": 111, "type": "ERROR", "text": "{}\n\n virtual void Create( IG15", "parent": 105, "children": [112, 113, 114, 115], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 56, "column": 29}}, {"id": 112, "type": "identifier", "text": "virtual", "parent": 111, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 11}}, {"id": 113, "type": "primitive_type", "text": "void", "parent": 111, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 16}}, {"id": 114, "type": "identifier", "text": "Create", "parent": 111, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 23}}, {"id": 115, "type": "identifier", "text": "IG15", "parent": 111, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 29}}, {"id": 116, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 31}}, {"id": 117, "type": "identifier", "text": "lcd", "parent": 105, "children": [], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 34}}, {"id": 118, "type": "ERROR", "text": ") = 0", "parent": 59, "children": [119, 120], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 40}}, {"id": 119, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 38}}, {"id": 120, "type": "number_literal", "text": "0", "parent": 118, "children": [], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 40}}, {"id": 121, "type": "declaration", "text": "virtual void Wipe( IG15 *lcd );", "parent": 57, "children": [122, 123, 125], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 35}}, {"id": 122, "type": "type_identifier", "text": "virtual", "parent": 121, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 11}}, {"id": 123, "type": "ERROR", "text": "void", "parent": 121, "children": [124], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 16}}, {"id": 124, "type": "identifier", "text": "void", "parent": 123, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 16}}, {"id": 125, "type": "function_declarator", "text": "Wipe( IG15 *lcd )", "parent": 121, "children": [126, 127], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 34}}, {"id": 126, "type": "identifier", "text": "Wipe", "parent": 125, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 21}}, {"id": 127, "type": "parameter_list", "text": "( IG15 *lcd )", "parent": 125, "children": [128], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 34}}, {"id": 128, "type": "parameter_declaration", "text": "IG15 *lcd", "parent": 127, "children": [129, 130], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 32}}, {"id": 129, "type": "type_identifier", "text": "IG15", "parent": 128, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 27}}, {"id": 130, "type": "pointer_declarator", "text": "*lcd", "parent": 128, "children": [131, 132], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 32}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 29}}, {"id": 132, "type": "identifier", "text": "lcd", "parent": 130, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 32}}, {"id": 133, "type": "declaration", "text": "bool m_bActive;", "parent": 57, "children": [134, 135], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 26}}, {"id": 134, "type": "primitive_type", "text": "bool", "parent": 133, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 8}}, {"id": 135, "type": "identifier", "text": "m_bActive", "parent": 133, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 25}}, {"id": 136, "type": "declaration", "text": "int m_Type;", "parent": 57, "children": [137, 138], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 23}}, {"id": 137, "type": "primitive_type", "text": "int", "parent": 136, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 7}}, {"id": 138, "type": "identifier", "text": "m_Type", "parent": 136, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 22}}, {"id": 139, "type": "declaration", "text": "void *m_Handle;", "parent": 57, "children": [140, 141], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 26}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 8}}, {"id": 141, "type": "pointer_declarator", "text": "*m_Handle", "parent": 139, "children": [142, 143], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 25}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 143, "type": "identifier", "text": "m_Handle", "parent": 141, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 25}}, {"id": 144, "type": "declaration", "text": "int x, y, w, h;", "parent": 57, "children": [145, 146, 147, 148, 149], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 27}}, {"id": 145, "type": "primitive_type", "text": "int", "parent": 144, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 7}}, {"id": 146, "type": "identifier", "text": "x", "parent": 144, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 17}}, {"id": 147, "type": "identifier", "text": "y", "parent": 144, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 20}}, {"id": 148, "type": "identifier", "text": "w", "parent": 144, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 23}}, {"id": 149, "type": "identifier", "text": "h", "parent": 144, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 26}}, {"id": 150, "type": "declaration", "text": "int m_nSubPage;", "parent": 57, "children": [151, 152], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 27}}, {"id": 151, "type": "primitive_type", "text": "int", "parent": 150, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 7}}, {"id": 152, "type": "identifier", "text": "m_nSubPage", "parent": 150, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 26}}, {"id": 153, "type": "binary_expression", "text": "CUtlVector< CLCDItem * > m_Children", "parent": 57, "children": [154, 158, 160, 161], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 42}}, {"id": 154, "type": "binary_expression", "text": "CUtlVector< CLCDItem", "parent": 153, "children": [155, 156, 157], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 24}}, {"id": 155, "type": "identifier", "text": "CUtlVector", "parent": 154, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 14}}, {"id": 156, "type": "<", "text": "<", "parent": 154, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 157, "type": "identifier", "text": "CLCDItem", "parent": 154, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 24}}, {"id": 158, "type": "ERROR", "text": "*", "parent": 153, "children": [159], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 26}}, {"id": 159, "type": "*", "text": "*", "parent": 158, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 26}}, {"id": 160, "type": ">", "text": ">", "parent": 153, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 28}}, {"id": 161, "type": "identifier", "text": "m_Children", "parent": 153, "children": [], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 42}}, {"id": 162, "type": "function_definition", "text": "class CLCDItemText : public CLCDItem\n{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )\n {\n m_Type = LCDITEM_TEXT;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_OriginalText;\n bool m_bHasWildcard;\n int m_iSize;\n int m_iAlign;\n}", "parent": 0, "children": [163, 164], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 163, "type": "identifier", "text": "CLCDItemText", "parent": 162, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 18}}, {"id": 164, "type": "ERROR", "text": ": public CLCDItem", "parent": 162, "children": [165], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 36}}, {"id": 165, "type": "identifier", "text": "CLCDItem", "parent": 164, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 36}}, {"id": 166, "type": "type_definition", "text": "typedef CLCDItem BaseClass;", "parent": 162, "children": [167, 168, 169], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 31}}, {"id": 167, "type": "typedef", "text": "typedef", "parent": 166, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 11}}, {"id": 168, "type": "type_identifier", "text": "CLCDItem", "parent": 166, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 20}}, {"id": 169, "type": "type_identifier", "text": "BaseClass", "parent": 166, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 30}}, {"id": 170, "type": "labeled_statement", "text": "public:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )", "parent": 162, "children": [171], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 76, "column": 21}}, {"id": 171, "type": "ERROR", "text": "CLCDItemText() :", "parent": 170, "children": [172], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 20}}, {"id": 172, "type": "call_expression", "text": "CLCDItemText()", "parent": 171, "children": [173, 174], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 18}}, {"id": 173, "type": "identifier", "text": "CLCDItemText", "parent": 172, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 16}}, {"id": 174, "type": "argument_list", "text": "()", "parent": 172, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 18}}, {"id": 175, "type": "comma_expression", "text": "m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )", "parent": 170, "children": [176, 180], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 76, "column": 21}}, {"id": 176, "type": "call_expression", "text": "m_bHasWildcard( false )", "parent": 175, "children": [177, 178], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 31}}, {"id": 177, "type": "identifier", "text": "m_bHasWildcard", "parent": 176, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 22}}, {"id": 178, "type": "argument_list", "text": "( false )", "parent": 176, "children": [179], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 31}}, {"id": 179, "type": "false", "text": "false", "parent": 178, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 29}}, {"id": 180, "type": "comma_expression", "text": "m_iSize( 0 ),\n m_iAlign( 0 )", "parent": 175, "children": [181, 185], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 76, "column": 21}}, {"id": 181, "type": "call_expression", "text": "m_iSize( 0 )", "parent": 180, "children": [182, 183], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 20}}, {"id": 182, "type": "identifier", "text": "m_iSize", "parent": 181, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 15}}, {"id": 183, "type": "argument_list", "text": "( 0 )", "parent": 181, "children": [184], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 20}}, {"id": 184, "type": "number_literal", "text": "0", "parent": 183, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 185, "type": "call_expression", "text": "m_iAlign( 0 )", "parent": 180, "children": [186, 187], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 21}}, {"id": 186, "type": "identifier", "text": "m_iAlign", "parent": 185, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 16}}, {"id": 187, "type": "argument_list", "text": "( 0 )", "parent": 185, "children": [188], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 21}}, {"id": 188, "type": "number_literal", "text": "0", "parent": 187, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 19}}, {"id": 189, "type": "assignment_expression", "text": "m_Type = LCDITEM_TEXT", "parent": 162, "children": [190, 191, 192], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 29}}, {"id": 190, "type": "identifier", "text": "m_Type", "parent": 189, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 14}}, {"id": 191, "type": "=", "text": "=", "parent": 189, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 16}}, {"id": 192, "type": "identifier", "text": "LCDITEM_TEXT", "parent": 189, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 29}}, {"id": 193, "type": "declaration", "text": "virtual void Create( IG15 *lcd );", "parent": 162, "children": [194, 195, 197], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 37}}, {"id": 194, "type": "type_identifier", "text": "virtual", "parent": 193, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 11}}, {"id": 195, "type": "ERROR", "text": "void", "parent": 193, "children": [196], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 16}}, {"id": 196, "type": "identifier", "text": "void", "parent": 195, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 16}}, {"id": 197, "type": "function_declarator", "text": "Create( IG15 *lcd )", "parent": 193, "children": [198, 199], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 36}}, {"id": 198, "type": "identifier", "text": "Create", "parent": 197, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 23}}, {"id": 199, "type": "parameter_list", "text": "( IG15 *lcd )", "parent": 197, "children": [200], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 36}}, {"id": 200, "type": "parameter_declaration", "text": "IG15 *lcd", "parent": 199, "children": [201, 202], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 34}}, {"id": 201, "type": "type_identifier", "text": "IG15", "parent": 200, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 29}}, {"id": 202, "type": "pointer_declarator", "text": "*lcd", "parent": 200, "children": [203, 204], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 34}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 31}}, {"id": 204, "type": "identifier", "text": "lcd", "parent": 202, "children": [], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 34}}, {"id": 205, "type": "declaration", "text": "CUtlString m_OriginalText;", "parent": 162, "children": [206, 207], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 31}}, {"id": 206, "type": "type_identifier", "text": "CUtlString", "parent": 205, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 14}}, {"id": 207, "type": "identifier", "text": "m_OriginalText", "parent": 205, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 30}}, {"id": 208, "type": "declaration", "text": "bool m_bHasWildcard;", "parent": 162, "children": [209, 210], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 31}}, {"id": 209, "type": "primitive_type", "text": "bool", "parent": 208, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 210, "type": "identifier", "text": "m_bHasWildcard", "parent": 208, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 30}}, {"id": 211, "type": "declaration", "text": "int m_iSize;", "parent": 162, "children": [212, 213], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 24}}, {"id": 212, "type": "primitive_type", "text": "int", "parent": 211, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 7}}, {"id": 213, "type": "identifier", "text": "m_iSize", "parent": 211, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 23}}, {"id": 214, "type": "declaration", "text": "int m_iAlign;", "parent": 162, "children": [215, 216], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 25}}, {"id": 215, "type": "primitive_type", "text": "int", "parent": 214, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 7}}, {"id": 216, "type": "identifier", "text": "m_iAlign", "parent": 214, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 24}}, {"id": 217, "type": "function_definition", "text": "class CLCDItemIcon : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_IconName;\n void *m_icon;\n}", "parent": 0, "children": [218, 219], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 104, "column": 1}}, {"id": 218, "type": "identifier", "text": "CLCDItemIcon", "parent": 217, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 18}}, {"id": 219, "type": "ERROR", "text": ": public CLCDItem", "parent": 217, "children": [220], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 36}}, {"id": 220, "type": "identifier", "text": "CLCDItem", "parent": 219, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 36}}, {"id": 221, "type": "type_definition", "text": "typedef CLCDItem BaseClass;", "parent": 217, "children": [222, 223, 224], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 31}}, {"id": 222, "type": "typedef", "text": "typedef", "parent": 221, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 11}}, {"id": 223, "type": "type_identifier", "text": "CLCDItem", "parent": 221, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 20}}, {"id": 224, "type": "type_identifier", "text": "BaseClass", "parent": 221, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 30}}, {"id": 225, "type": "labeled_statement", "text": "public:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }", "parent": 217, "children": [226], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 98, "column": 5}}, {"id": 226, "type": "ERROR", "text": "CLCDItemIcon() :\n m_icon( NULL )", "parent": 225, "children": [227, 230], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 95, "column": 20}}, {"id": 227, "type": "call_expression", "text": "CLCDItemIcon()", "parent": 226, "children": [228, 229], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 18}}, {"id": 228, "type": "identifier", "text": "CLCDItemIcon", "parent": 227, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 16}}, {"id": 229, "type": "argument_list", "text": "()", "parent": 227, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 18}}, {"id": 230, "type": "macro_type_specifier", "text": "m_icon( NULL )", "parent": 226, "children": [231, 232], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 20}}, {"id": 231, "type": "identifier", "text": "m_icon", "parent": 230, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 12}}, {"id": 232, "type": "type_descriptor", "text": "NULL", "parent": 230, "children": [233], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 18}}, {"id": 233, "type": "type_identifier", "text": "NULL", "parent": 232, "children": [], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 18}}, {"id": 234, "type": "assignment_expression", "text": "m_Type = LCDITEM_ICON", "parent": 225, "children": [235, 236, 237], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 29}}, {"id": 235, "type": "identifier", "text": "m_Type", "parent": 234, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 14}}, {"id": 236, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 16}}, {"id": 237, "type": "identifier", "text": "LCDITEM_ICON", "parent": 234, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 29}}, {"id": 238, "type": "declaration", "text": "virtual void Create( IG15 *lcd );", "parent": 217, "children": [239, 240, 242], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 37}}, {"id": 239, "type": "type_identifier", "text": "virtual", "parent": 238, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 11}}, {"id": 240, "type": "ERROR", "text": "void", "parent": 238, "children": [241], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 16}}, {"id": 241, "type": "identifier", "text": "void", "parent": 240, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 16}}, {"id": 242, "type": "function_declarator", "text": "Create( IG15 *lcd )", "parent": 238, "children": [243, 244], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 36}}, {"id": 243, "type": "identifier", "text": "Create", "parent": 242, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 23}}, {"id": 244, "type": "parameter_list", "text": "( IG15 *lcd )", "parent": 242, "children": [245], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 36}}, {"id": 245, "type": "parameter_declaration", "text": "IG15 *lcd", "parent": 244, "children": [246, 247], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 34}}, {"id": 246, "type": "type_identifier", "text": "IG15", "parent": 245, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 29}}, {"id": 247, "type": "pointer_declarator", "text": "*lcd", "parent": 245, "children": [248, 249], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 34}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 31}}, {"id": 249, "type": "identifier", "text": "lcd", "parent": 247, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 34}}, {"id": 250, "type": "declaration", "text": "CUtlString m_IconName;", "parent": 217, "children": [251, 252], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 27}}, {"id": 251, "type": "type_identifier", "text": "CUtlString", "parent": 250, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 14}}, {"id": 252, "type": "identifier", "text": "m_IconName", "parent": 250, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 26}}, {"id": 253, "type": "declaration", "text": "void *m_icon;", "parent": 217, "children": [254, 255], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 24}}, {"id": 254, "type": "primitive_type", "text": "void", "parent": 253, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 8}}, {"id": 255, "type": "pointer_declarator", "text": "*m_icon", "parent": 253, "children": [256, 257], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 23}}, {"id": 256, "type": "*", "text": "*", "parent": 255, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 17}}, {"id": 257, "type": "identifier", "text": "m_icon", "parent": 255, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 23}}, {"id": 258, "type": "function_definition", "text": "class CLCDItemAggregate : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )\n {\n m_Type = LCDITEM_AGGREGATE;\n }\n\n virtual void Create( IG15 *lcd );\n virtual void Wipe( IG15 *lcd );\n\n void WipeChildrenOnly( IG15 *lcd );\n\n unsigned int m_dwNextUpdateTime;\n int m_AggType;\n\n int m_yincrement;\n\n // Representative row\n CUtlVector< CLCDItem * > m_Definition;\n}", "parent": 0, "children": [259, 260], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 131, "column": 1}}, {"id": 259, "type": "identifier", "text": "CLCDItemAggregate", "parent": 258, "children": [], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 23}}, {"id": 260, "type": "ERROR", "text": ": public CLCDItem", "parent": 258, "children": [261], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 41}}, {"id": 261, "type": "identifier", "text": "CLCDItem", "parent": 260, "children": [], "start_point": {"row": 106, "column": 33}, "end_point": {"row": 106, "column": 41}}, {"id": 262, "type": "type_definition", "text": "typedef CLCDItem BaseClass;", "parent": 258, "children": [263, 264, 265], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 31}}, {"id": 263, "type": "typedef", "text": "typedef", "parent": 262, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 11}}, {"id": 264, "type": "type_identifier", "text": "CLCDItem", "parent": 262, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 20}}, {"id": 265, "type": "type_identifier", "text": "BaseClass", "parent": 262, "children": [], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 30}}, {"id": 266, "type": "labeled_statement", "text": "public:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )", "parent": 258, "children": [267], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 114, "column": 25}}, {"id": 267, "type": "ERROR", "text": "CLCDItemAggregate() :", "parent": 266, "children": [268], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 25}}, {"id": 268, "type": "call_expression", "text": "CLCDItemAggregate()", "parent": 267, "children": [269, 270], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 23}}, {"id": 269, "type": "identifier", "text": "CLCDItemAggregate", "parent": 268, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 21}}, {"id": 270, "type": "argument_list", "text": "()", "parent": 268, "children": [], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 23}}, {"id": 271, "type": "comma_expression", "text": "m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )", "parent": 266, "children": [272, 276], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 114, "column": 25}}, {"id": 272, "type": "call_expression", "text": "m_AggType( AGGTYPE_UNKNOWN )", "parent": 271, "children": [273, 274], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 36}}, {"id": 273, "type": "identifier", "text": "m_AggType", "parent": 272, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 17}}, {"id": 274, "type": "argument_list", "text": "( AGGTYPE_UNKNOWN )", "parent": 272, "children": [275], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 36}}, {"id": 275, "type": "identifier", "text": "AGGTYPE_UNKNOWN", "parent": 274, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 34}}, {"id": 276, "type": "comma_expression", "text": "m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )", "parent": 271, "children": [277, 281], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 114, "column": 25}}, {"id": 277, "type": "call_expression", "text": "m_dwNextUpdateTime( 0 )", "parent": 276, "children": [278, 279], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 31}}, {"id": 278, "type": "identifier", "text": "m_dwNextUpdateTime", "parent": 277, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 26}}, {"id": 279, "type": "argument_list", "text": "( 0 )", "parent": 277, "children": [280], "start_point": {"row": 113, "column": 26}, "end_point": {"row": 113, "column": 31}}, {"id": 280, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 113, "column": 28}, "end_point": {"row": 113, "column": 29}}, {"id": 281, "type": "call_expression", "text": "m_yincrement( 0 )", "parent": 276, "children": [282, 283], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 25}}, {"id": 282, "type": "identifier", "text": "m_yincrement", "parent": 281, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 20}}, {"id": 283, "type": "argument_list", "text": "( 0 )", "parent": 281, "children": [284], "start_point": {"row": 114, "column": 20}, "end_point": {"row": 114, "column": 25}}, {"id": 284, "type": "number_literal", "text": "0", "parent": 283, "children": [], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 23}}, {"id": 285, "type": "assignment_expression", "text": "m_Type = LCDITEM_AGGREGATE", "parent": 258, "children": [286, 287, 288], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 34}}, {"id": 286, "type": "identifier", "text": "m_Type", "parent": 285, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 14}}, {"id": 287, "type": "=", "text": "=", "parent": 285, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 16}}, {"id": 288, "type": "identifier", "text": "LCDITEM_AGGREGATE", "parent": 285, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 34}}, {"id": 289, "type": "declaration", "text": "virtual void Create( IG15 *lcd );", "parent": 258, "children": [290, 291, 293], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 37}}, {"id": 290, "type": "type_identifier", "text": "virtual", "parent": 289, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 11}}, {"id": 291, "type": "ERROR", "text": "void", "parent": 289, "children": [292], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 16}}, {"id": 292, "type": "identifier", "text": "void", "parent": 291, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 16}}, {"id": 293, "type": "function_declarator", "text": "Create( IG15 *lcd )", "parent": 289, "children": [294, 295], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 36}}, {"id": 294, "type": "identifier", "text": "Create", "parent": 293, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 23}}, {"id": 295, "type": "parameter_list", "text": "( IG15 *lcd )", "parent": 293, "children": [296], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 36}}, {"id": 296, "type": "parameter_declaration", "text": "IG15 *lcd", "parent": 295, "children": [297, 298], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 34}}, {"id": 297, "type": "type_identifier", "text": "IG15", "parent": 296, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 29}}, {"id": 298, "type": "pointer_declarator", "text": "*lcd", "parent": 296, "children": [299, 300], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 34}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 31}}, {"id": 300, "type": "identifier", "text": "lcd", "parent": 298, "children": [], "start_point": {"row": 119, "column": 31}, "end_point": {"row": 119, "column": 34}}, {"id": 301, "type": "declaration", "text": "virtual void Wipe( IG15 *lcd );", "parent": 258, "children": [302, 303, 305], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 35}}, {"id": 302, "type": "type_identifier", "text": "virtual", "parent": 301, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 11}}, {"id": 303, "type": "ERROR", "text": "void", "parent": 301, "children": [304], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 16}}, {"id": 304, "type": "identifier", "text": "void", "parent": 303, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 16}}, {"id": 305, "type": "function_declarator", "text": "Wipe( IG15 *lcd )", "parent": 301, "children": [306, 307], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 34}}, {"id": 306, "type": "identifier", "text": "Wipe", "parent": 305, "children": [], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 21}}, {"id": 307, "type": "parameter_list", "text": "( IG15 *lcd )", "parent": 305, "children": [308], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 34}}, {"id": 308, "type": "parameter_declaration", "text": "IG15 *lcd", "parent": 307, "children": [309, 310], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 32}}, {"id": 309, "type": "type_identifier", "text": "IG15", "parent": 308, "children": [], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 27}}, {"id": 310, "type": "pointer_declarator", "text": "*lcd", "parent": 308, "children": [311, 312], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 32}}, {"id": 311, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 29}}, {"id": 312, "type": "identifier", "text": "lcd", "parent": 310, "children": [], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 32}}, {"id": 313, "type": "declaration", "text": "void WipeChildrenOnly( IG15 *lcd );", "parent": 258, "children": [314, 315], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 39}}, {"id": 314, "type": "primitive_type", "text": "void", "parent": 313, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 8}}, {"id": 315, "type": "function_declarator", "text": "WipeChildrenOnly( IG15 *lcd )", "parent": 313, "children": [316, 317], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 38}}, {"id": 316, "type": "identifier", "text": "WipeChildrenOnly", "parent": 315, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 25}}, {"id": 317, "type": "parameter_list", "text": "( IG15 *lcd )", "parent": 315, "children": [318], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 38}}, {"id": 318, "type": "parameter_declaration", "text": "IG15 *lcd", "parent": 317, "children": [319, 320], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 36}}, {"id": 319, "type": "type_identifier", "text": "IG15", "parent": 318, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 31}}, {"id": 320, "type": "pointer_declarator", "text": "*lcd", "parent": 318, "children": [321, 322], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 36}}, {"id": 321, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 33}}, {"id": 322, "type": "identifier", "text": "lcd", "parent": 320, "children": [], "start_point": {"row": 122, "column": 33}, "end_point": {"row": 122, "column": 36}}, {"id": 323, "type": "declaration", "text": "unsigned int m_dwNextUpdateTime;", "parent": 258, "children": [324, 327], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 51}}, {"id": 324, "type": "sized_type_specifier", "text": "unsigned int", "parent": 323, "children": [325, 326], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 16}}, {"id": 325, "type": "unsigned", "text": "unsigned", "parent": 324, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 12}}, {"id": 326, "type": "primitive_type", "text": "int", "parent": 324, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 16}}, {"id": 327, "type": "identifier", "text": "m_dwNextUpdateTime", "parent": 323, "children": [], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 50}}, {"id": 328, "type": "declaration", "text": "int m_AggType;", "parent": 258, "children": [329, 330], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 42}}, {"id": 329, "type": "primitive_type", "text": "int", "parent": 328, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 7}}, {"id": 330, "type": "identifier", "text": "m_AggType", "parent": 328, "children": [], "start_point": {"row": 125, "column": 32}, "end_point": {"row": 125, "column": 41}}, {"id": 331, "type": "declaration", "text": "int m_yincrement;", "parent": 258, "children": [332, 333], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 45}}, {"id": 332, "type": "primitive_type", "text": "int", "parent": 331, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 7}}, {"id": 333, "type": "identifier", "text": "m_yincrement", "parent": 331, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 44}}, {"id": 334, "type": "binary_expression", "text": "CUtlVector< CLCDItem * > m_Definition", "parent": 258, "children": [335, 339, 341, 342], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 44}}, {"id": 335, "type": "binary_expression", "text": "CUtlVector< CLCDItem", "parent": 334, "children": [336, 337, 338], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 24}}, {"id": 336, "type": "identifier", "text": "CUtlVector", "parent": 335, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 14}}, {"id": 337, "type": "<", "text": "<", "parent": 335, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 15}}, {"id": 338, "type": "identifier", "text": "CLCDItem", "parent": 335, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 24}}, {"id": 339, "type": "ERROR", "text": "*", "parent": 334, "children": [340], "start_point": {"row": 130, "column": 25}, "end_point": {"row": 130, "column": 26}}, {"id": 340, "type": "*", "text": "*", "parent": 339, "children": [], "start_point": {"row": 130, "column": 25}, "end_point": {"row": 130, "column": 26}}, {"id": 341, "type": ">", "text": ">", "parent": 334, "children": [], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 28}}, {"id": 342, "type": "identifier", "text": "m_Definition", "parent": 334, "children": [], "start_point": {"row": 130, "column": 32}, "end_point": {"row": 130, "column": 44}}, {"id": 343, "type": "function_definition", "text": "class CLCDPage : public CLCDItem\n{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )\n {\n m_Type = LCDITEM_PAGE;\n }\n\n ~CLCDPage()\n {\n }\n\n virtual void Create( IG15 *lcd )\n {\n }\n\n CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }\n\n void InitFromKeyValues( KeyValues *kv );\n\n bool m_bSubItem;\n bool m_bTitlePage;\n bool m_bRequiresPlayer;\n int m_nSubPageCount;\n}", "parent": 0, "children": [344, 345], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 190, "column": 1}}, {"id": 344, "type": "identifier", "text": "CLCDPage", "parent": 343, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 14}}, {"id": 345, "type": "ERROR", "text": ": public CLCDItem", "parent": 343, "children": [346], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 133, "column": 32}}, {"id": 346, "type": "identifier", "text": "CLCDItem", "parent": 345, "children": [], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 32}}, {"id": 347, "type": "labeled_statement", "text": "public:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )", "parent": 343, "children": [348], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 140, "column": 26}}, {"id": 348, "type": "ERROR", "text": "CLCDPage() :", "parent": 347, "children": [349], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 16}}, {"id": 349, "type": "call_expression", "text": "CLCDPage()", "parent": 348, "children": [350, 351], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 14}}, {"id": 350, "type": "identifier", "text": "CLCDPage", "parent": 349, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 12}}, {"id": 351, "type": "argument_list", "text": "()", "parent": 349, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 14}}, {"id": 352, "type": "comma_expression", "text": "m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )", "parent": 347, "children": [353, 357], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 140, "column": 26}}, {"id": 353, "type": "call_expression", "text": "m_bSubItem( false )", "parent": 352, "children": [354, 355], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 25}}, {"id": 354, "type": "identifier", "text": "m_bSubItem", "parent": 353, "children": [], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 16}}, {"id": 355, "type": "argument_list", "text": "( false )", "parent": 353, "children": [356], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 25}}, {"id": 356, "type": "false", "text": "false", "parent": 355, "children": [], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 23}}, {"id": 357, "type": "comma_expression", "text": "m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )", "parent": 352, "children": [358, 362], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 140, "column": 26}}, {"id": 358, "type": "call_expression", "text": "m_bTitlePage( false )", "parent": 357, "children": [359, 360], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 27}}, {"id": 359, "type": "identifier", "text": "m_bTitlePage", "parent": 358, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 18}}, {"id": 360, "type": "argument_list", "text": "( false )", "parent": 358, "children": [361], "start_point": {"row": 138, "column": 18}, "end_point": {"row": 138, "column": 27}}, {"id": 361, "type": "false", "text": "false", "parent": 360, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 25}}, {"id": 362, "type": "comma_expression", "text": "m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )", "parent": 357, "children": [363, 367], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 140, "column": 26}}, {"id": 363, "type": "call_expression", "text": "m_bRequiresPlayer( false )", "parent": 362, "children": [364, 365], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 32}}, {"id": 364, "type": "identifier", "text": "m_bRequiresPlayer", "parent": 363, "children": [], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 23}}, {"id": 365, "type": "argument_list", "text": "( false )", "parent": 363, "children": [366], "start_point": {"row": 139, "column": 23}, "end_point": {"row": 139, "column": 32}}, {"id": 366, "type": "false", "text": "false", "parent": 365, "children": [], "start_point": {"row": 139, "column": 25}, "end_point": {"row": 139, "column": 30}}, {"id": 367, "type": "call_expression", "text": "m_nSubPageCount( 1 )", "parent": 362, "children": [368, 369], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 26}}, {"id": 368, "type": "identifier", "text": "m_nSubPageCount", "parent": 367, "children": [], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 21}}, {"id": 369, "type": "argument_list", "text": "( 1 )", "parent": 367, "children": [370], "start_point": {"row": 140, "column": 21}, "end_point": {"row": 140, "column": 26}}, {"id": 370, "type": "number_literal", "text": "1", "parent": 369, "children": [], "start_point": {"row": 140, "column": 23}, "end_point": {"row": 140, "column": 24}}, {"id": 371, "type": "assignment_expression", "text": "m_Type = LCDITEM_PAGE", "parent": 343, "children": [372, 373, 374], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 29}}, {"id": 372, "type": "identifier", "text": "m_Type", "parent": 371, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 14}}, {"id": 373, "type": "=", "text": "=", "parent": 371, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 16}}, {"id": 374, "type": "identifier", "text": "LCDITEM_PAGE", "parent": 371, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 29}}, {"id": 375, "type": "unary_expression", "text": "~CLCDPage()", "parent": 343, "children": [376, 377], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 15}}, {"id": 376, "type": "~", "text": "~", "parent": 375, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 5}}, {"id": 377, "type": "call_expression", "text": "CLCDPage()", "parent": 375, "children": [378, 379], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 15}}, {"id": 378, "type": "identifier", "text": "CLCDPage", "parent": 377, "children": [], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 13}}, {"id": 379, "type": "argument_list", "text": "()", "parent": 377, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 15}}, {"id": 380, "type": "function_definition", "text": "virtual void Create( IG15 *lcd )\n {\n }", "parent": 343, "children": [381, 382, 384], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 151, "column": 5}}, {"id": 381, "type": "type_identifier", "text": "virtual", "parent": 380, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 11}}, {"id": 382, "type": "ERROR", "text": "void", "parent": 380, "children": [383], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 16}}, {"id": 383, "type": "identifier", "text": "void", "parent": 382, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 16}}, {"id": 384, "type": "function_declarator", "text": "Create( IG15 *lcd )", "parent": 380, "children": [385, 386], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 36}}, {"id": 385, "type": "identifier", "text": "Create", "parent": 384, "children": [], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 23}}, {"id": 386, "type": "parameter_list", "text": "( IG15 *lcd )", "parent": 384, "children": [387], "start_point": {"row": 149, "column": 23}, "end_point": {"row": 149, "column": 36}}, {"id": 387, "type": "parameter_declaration", "text": "IG15 *lcd", "parent": 386, "children": [388, 389], "start_point": {"row": 149, "column": 25}, "end_point": {"row": 149, "column": 34}}, {"id": 388, "type": "type_identifier", "text": "IG15", "parent": 387, "children": [], "start_point": {"row": 149, "column": 25}, "end_point": {"row": 149, "column": 29}}, {"id": 389, "type": "pointer_declarator", "text": "*lcd", "parent": 387, "children": [390, 391], "start_point": {"row": 149, "column": 30}, "end_point": {"row": 149, "column": 34}}, {"id": 390, "type": "*", "text": "*", "parent": 389, "children": [], "start_point": {"row": 149, "column": 30}, "end_point": {"row": 149, "column": 31}}, {"id": 391, "type": "identifier", "text": "lcd", "parent": 389, "children": [], "start_point": {"row": 149, "column": 31}, "end_point": {"row": 149, "column": 34}}, {"id": 392, "type": "function_definition", "text": "CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }", "parent": 343, "children": [393, 394], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 182, "column": 5}}, {"id": 393, "type": "type_identifier", "text": "CLCDItem", "parent": 392, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 12}}, {"id": 394, "type": "pointer_declarator", "text": "*Alloc( int type )", "parent": 392, "children": [395, 396], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 31}}, {"id": 395, "type": "*", "text": "*", "parent": 394, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 14}}, {"id": 396, "type": "function_declarator", "text": "Alloc( int type )", "parent": 394, "children": [397, 398], "start_point": {"row": 153, "column": 14}, "end_point": {"row": 153, "column": 31}}, {"id": 397, "type": "identifier", "text": "Alloc", "parent": 396, "children": [], "start_point": {"row": 153, "column": 14}, "end_point": {"row": 153, "column": 19}}, {"id": 398, "type": "parameter_list", "text": "( int type )", "parent": 396, "children": [399], "start_point": {"row": 153, "column": 19}, "end_point": {"row": 153, "column": 31}}, {"id": 399, "type": "parameter_declaration", "text": "int type", "parent": 398, "children": [400, 401], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 29}}, {"id": 400, "type": "primitive_type", "text": "int", "parent": 399, "children": [], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 24}}, {"id": 401, "type": "identifier", "text": "type", "parent": 399, "children": [], "start_point": {"row": 153, "column": 25}, "end_point": {"row": 153, "column": 29}}, {"id": 402, "type": "declaration", "text": "CLCDItem *item = NULL;", "parent": 392, "children": [403, 404], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 30}}, {"id": 403, "type": "type_identifier", "text": "CLCDItem", "parent": 402, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 16}}, {"id": 404, "type": "init_declarator", "text": "*item = NULL", "parent": 402, "children": [405, 408, 409], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 29}}, {"id": 405, "type": "pointer_declarator", "text": "*item", "parent": 404, "children": [406, 407], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 22}}, {"id": 406, "type": "*", "text": "*", "parent": 405, "children": [], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 18}}, {"id": 407, "type": "identifier", "text": "item", "parent": 405, "children": [], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 22}}, {"id": 408, "type": "=", "text": "=", "parent": 404, "children": [], "start_point": {"row": 155, "column": 23}, "end_point": {"row": 155, "column": 24}}, {"id": 409, "type": "null", "text": "NULL", "parent": 404, "children": [410], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 29}}, {"id": 410, "type": "NULL", "text": "NULL", "parent": 409, "children": [], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 29}}, {"id": 411, "type": "switch_statement", "text": "switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }", "parent": 392, "children": [412, 413], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 173, "column": 9}}, {"id": 412, "type": "switch", "text": "switch", "parent": 411, "children": [], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 14}}, {"id": 413, "type": "parenthesized_expression", "text": "( type )", "parent": 411, "children": [414], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 23}}, {"id": 414, "type": "identifier", "text": "type", "parent": 413, "children": [], "start_point": {"row": 157, "column": 17}, "end_point": {"row": 157, "column": 21}}, {"id": 415, "type": "case_statement", "text": "default:\n break;", "parent": 411, "children": [416, 417], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 160, "column": 18}}, {"id": 416, "type": "default", "text": "default", "parent": 415, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 15}}, {"id": 417, "type": "break_statement", "text": "break;", "parent": 415, "children": [418], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 18}}, {"id": 418, "type": "break", "text": "break", "parent": 417, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 17}}, {"id": 419, "type": "case_statement", "text": "case LCDITEM_PAGE:\n // This shouldn't occur\n break;", "parent": 411, "children": [420, 421, 422], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 163, "column": 18}}, {"id": 420, "type": "case", "text": "case", "parent": 419, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 12}}, {"id": 421, "type": "identifier", "text": "LCDITEM_PAGE", "parent": 419, "children": [], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 25}}, {"id": 422, "type": "break_statement", "text": "break;", "parent": 419, "children": [423], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 18}}, {"id": 423, "type": "break", "text": "break", "parent": 422, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 17}}, {"id": 424, "type": "case_statement", "text": "case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;", "parent": 411, "children": [425, 426, 433], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 166, "column": 18}}, {"id": 425, "type": "case", "text": "case", "parent": 424, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 12}}, {"id": 426, "type": "identifier", "text": "LCDITEM_TEXT", "parent": 424, "children": [], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 25}}, {"id": 427, "type": "assignment_expression", "text": "item = new CLCDItemText()", "parent": 424, "children": [428, 429, 430], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 37}}, {"id": 428, "type": "identifier", "text": "item", "parent": 427, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 16}}, {"id": 429, "type": "=", "text": "=", "parent": 427, "children": [], "start_point": {"row": 165, "column": 17}, "end_point": {"row": 165, "column": 18}}, {"id": 430, "type": "call_expression", "text": "CLCDItemText()", "parent": 427, "children": [431, 432], "start_point": {"row": 165, "column": 23}, "end_point": {"row": 165, "column": 37}}, {"id": 431, "type": "identifier", "text": "CLCDItemText", "parent": 430, "children": [], "start_point": {"row": 165, "column": 23}, "end_point": {"row": 165, "column": 35}}, {"id": 432, "type": "argument_list", "text": "()", "parent": 430, "children": [], "start_point": {"row": 165, "column": 35}, "end_point": {"row": 165, "column": 37}}, {"id": 433, "type": "break_statement", "text": "break;", "parent": 424, "children": [434], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 18}}, {"id": 434, "type": "break", "text": "break", "parent": 433, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 17}}, {"id": 435, "type": "case_statement", "text": "case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;", "parent": 411, "children": [436, 437, 444], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 169, "column": 18}}, {"id": 436, "type": "case", "text": "case", "parent": 435, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 12}}, {"id": 437, "type": "identifier", "text": "LCDITEM_ICON", "parent": 435, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 25}}, {"id": 438, "type": "assignment_expression", "text": "item = new CLCDItemIcon()", "parent": 435, "children": [439, 440, 441], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 37}}, {"id": 439, "type": "identifier", "text": "item", "parent": 438, "children": [], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 16}}, {"id": 440, "type": "=", "text": "=", "parent": 438, "children": [], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 18}}, {"id": 441, "type": "call_expression", "text": "CLCDItemIcon()", "parent": 438, "children": [442, 443], "start_point": {"row": 168, "column": 23}, "end_point": {"row": 168, "column": 37}}, {"id": 442, "type": "identifier", "text": "CLCDItemIcon", "parent": 441, "children": [], "start_point": {"row": 168, "column": 23}, "end_point": {"row": 168, "column": 35}}, {"id": 443, "type": "argument_list", "text": "()", "parent": 441, "children": [], "start_point": {"row": 168, "column": 35}, "end_point": {"row": 168, "column": 37}}, {"id": 444, "type": "break_statement", "text": "break;", "parent": 435, "children": [445], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 18}}, {"id": 445, "type": "break", "text": "break", "parent": 444, "children": [], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 17}}, {"id": 446, "type": "case_statement", "text": "case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;", "parent": 411, "children": [447, 448, 455], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 172, "column": 18}}, {"id": 447, "type": "case", "text": "case", "parent": 446, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 12}}, {"id": 448, "type": "identifier", "text": "LCDITEM_AGGREGATE", "parent": 446, "children": [], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 30}}, {"id": 449, "type": "assignment_expression", "text": "item = new CLCDItemAggregate()", "parent": 446, "children": [450, 451, 452], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 42}}, {"id": 450, "type": "identifier", "text": "item", "parent": 449, "children": [], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 16}}, {"id": 451, "type": "=", "text": "=", "parent": 449, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 18}}, {"id": 452, "type": "call_expression", "text": "CLCDItemAggregate()", "parent": 449, "children": [453, 454], "start_point": {"row": 171, "column": 23}, "end_point": {"row": 171, "column": 42}}, {"id": 453, "type": "identifier", "text": "CLCDItemAggregate", "parent": 452, "children": [], "start_point": {"row": 171, "column": 23}, "end_point": {"row": 171, "column": 40}}, {"id": 454, "type": "argument_list", "text": "()", "parent": 452, "children": [], "start_point": {"row": 171, "column": 40}, "end_point": {"row": 171, "column": 42}}, {"id": 455, "type": "break_statement", "text": "break;", "parent": 446, "children": [456], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 18}}, {"id": 456, "type": "break", "text": "break", "parent": 455, "children": [], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 17}}, {"id": 457, "type": "if_statement", "text": "if ( item )\n {\n return item;\n }", "parent": 392, "children": [458], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 178, "column": 9}}, {"id": 458, "type": "parenthesized_expression", "text": "( item )", "parent": 457, "children": [459], "start_point": {"row": 175, "column": 11}, "end_point": {"row": 175, "column": 19}}, {"id": 459, "type": "identifier", "text": "item", "parent": 458, "children": [], "start_point": {"row": 175, "column": 13}, "end_point": {"row": 175, "column": 17}}, {"id": 460, "type": "return_statement", "text": "return item;", "parent": 457, "children": [461], "start_point": {"row": 177, "column": 12}, "end_point": {"row": 177, "column": 24}}, {"id": 461, "type": "identifier", "text": "item", "parent": 460, "children": [], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 177, "column": 23}}, {"id": 462, "type": "call_expression", "text": "Assert( 0 )", "parent": 392, "children": [463, 464], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 19}}, {"id": 463, "type": "identifier", "text": "Assert", "parent": 462, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 14}}, {"id": 464, "type": "argument_list", "text": "( 0 )", "parent": 462, "children": [465], "start_point": {"row": 180, "column": 14}, "end_point": {"row": 180, "column": 19}}, {"id": 465, "type": "number_literal", "text": "0", "parent": 464, "children": [], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 17}}, {"id": 466, "type": "return_statement", "text": "return NULL;", "parent": 392, "children": [467], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 20}}, {"id": 467, "type": "null", "text": "NULL", "parent": 466, "children": [468], "start_point": {"row": 181, "column": 15}, "end_point": {"row": 181, "column": 19}}, {"id": 468, "type": "NULL", "text": "NULL", "parent": 467, "children": [], "start_point": {"row": 181, "column": 15}, "end_point": {"row": 181, "column": 19}}, {"id": 469, "type": "declaration", "text": "void InitFromKeyValues( KeyValues *kv );", "parent": 343, "children": [470, 471], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 44}}, {"id": 470, "type": "primitive_type", "text": "void", "parent": 469, "children": [], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 8}}, {"id": 471, "type": "function_declarator", "text": "InitFromKeyValues( KeyValues *kv )", "parent": 469, "children": [472, 473], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 43}}, {"id": 472, "type": "identifier", "text": "InitFromKeyValues", "parent": 471, "children": [], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 26}}, {"id": 473, "type": "parameter_list", "text": "( KeyValues *kv )", "parent": 471, "children": [474], "start_point": {"row": 184, "column": 26}, "end_point": {"row": 184, "column": 43}}, {"id": 474, "type": "parameter_declaration", "text": "KeyValues *kv", "parent": 473, "children": [475, 476], "start_point": {"row": 184, "column": 28}, "end_point": {"row": 184, "column": 41}}, {"id": 475, "type": "type_identifier", "text": "KeyValues", "parent": 474, "children": [], "start_point": {"row": 184, "column": 28}, "end_point": {"row": 184, "column": 37}}, {"id": 476, "type": "pointer_declarator", "text": "*kv", "parent": 474, "children": [477, 478], "start_point": {"row": 184, "column": 38}, "end_point": {"row": 184, "column": 41}}, {"id": 477, "type": "*", "text": "*", "parent": 476, "children": [], "start_point": {"row": 184, "column": 38}, "end_point": {"row": 184, "column": 39}}, {"id": 478, "type": "identifier", "text": "kv", "parent": 476, "children": [], "start_point": {"row": 184, "column": 39}, "end_point": {"row": 184, "column": 41}}, {"id": 479, "type": "declaration", "text": "bool m_bSubItem;", "parent": 343, "children": [480, 481], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 43}}, {"id": 480, "type": "primitive_type", "text": "bool", "parent": 479, "children": [], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 8}}, {"id": 481, "type": "identifier", "text": "m_bSubItem", "parent": 479, "children": [], "start_point": {"row": 186, "column": 32}, "end_point": {"row": 186, "column": 42}}, {"id": 482, "type": "declaration", "text": "bool m_bTitlePage;", "parent": 343, "children": [483, 484], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 45}}, {"id": 483, "type": "primitive_type", "text": "bool", "parent": 482, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 8}}, {"id": 484, "type": "identifier", "text": "m_bTitlePage", "parent": 482, "children": [], "start_point": {"row": 187, "column": 32}, "end_point": {"row": 187, "column": 44}}, {"id": 485, "type": "declaration", "text": "bool m_bRequiresPlayer;", "parent": 343, "children": [486, 487], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 50}}, {"id": 486, "type": "primitive_type", "text": "bool", "parent": 485, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 8}}, {"id": 487, "type": "identifier", "text": "m_bRequiresPlayer", "parent": 485, "children": [], "start_point": {"row": 188, "column": 32}, "end_point": {"row": 188, "column": 49}}, {"id": 488, "type": "declaration", "text": "int m_nSubPageCount;", "parent": 343, "children": [489, 490], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 48}}, {"id": 489, "type": "primitive_type", "text": "int", "parent": 488, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 7}}, {"id": 490, "type": "identifier", "text": "m_nSubPageCount", "parent": 488, "children": [], "start_point": {"row": 189, "column": 32}, "end_point": {"row": 189, "column": 47}}, {"id": 491, "type": "function_definition", "text": "class CLCD : public IHudLCD\n{\npublic:\n CLCD();\n ~CLCD();\n\n // Implement IHudLCD\n virtual void SetGlobalStat( char const *name, char const *value );\n virtual void AddChatLine( char const *txt );\n\n // Exposed as a ConCommand\n void Reload();\n void DumpPlayer();\n\npublic:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );\n void Shutdown();\n void Update( void );\n bool IsConnected() const;\n\nprivate:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );\n\n void ParsePage( KeyValues *kv );\n void ParseIconMappings( KeyValues *kv );\n void ParseReplacements( KeyValues *kv );\n void DisplayCurrentPage( unsigned int dwCurTime );\n\n void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );\n\n int FindTitlePage();\n void BuildUpdatedText( char const *in, CUtlString& out );\n void LookupToken( char const *token, CUtlString& value );\n bool ExtractArrayIndex( char *str, size_t bufsize, int *index );\n\n bool Replace( CUtlString& str, char const *search, char const *replace );\n void DoGlobalReplacements( CUtlString& str );\n void ReduceParentheses( CUtlString& str );\n\n bool IsPageValid( int currentPage, C_BasePlayer *player );\n void UpdateChat();\n\n IG15 *m_lcd ;\n\n CUtlString m_Title;\n int m_Size[ 2 ];\n CUtlVector< CLCDPage * > m_Pages;\n int m_nCurrentPage;\n int m_nSubPage;\n int m_nMaxChatHistory;\n\n CUtlDict< int, int > m_TextSizes;\n CUtlDict< int, int > m_TextAlignments;\n\n struct IconInfo_t\n {\n void *m_handle;\n };\n\n CUtlDict< IconInfo_t, int > m_Icons;\n bool m_bHadPlayer;\n\n CUtlDict< CUtlString, int > m_GlobalStats;\n CUtlVector< CUtlString > m_ChatHistory;\n\n unsigned int m_dwNextUpdateTime;\n CSysModule *m_pG15Module;\n CreateInterfaceFn m_G15Factory;\n}", "parent": 0, "children": [492, 494], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 268, "column": 1}}, {"id": 492, "type": "ERROR", "text": "CLCD : public", "parent": 491, "children": [493], "start_point": {"row": 195, "column": 6}, "end_point": {"row": 195, "column": 19}}, {"id": 493, "type": "identifier", "text": "CLCD", "parent": 492, "children": [], "start_point": {"row": 195, "column": 6}, "end_point": {"row": 195, "column": 10}}, {"id": 494, "type": "identifier", "text": "IHudLCD", "parent": 491, "children": [], "start_point": {"row": 195, "column": 20}, "end_point": {"row": 195, "column": 27}}, {"id": 495, "type": "labeled_statement", "text": "public:\n CLCD();", "parent": 491, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 198, "column": 31}}, {"id": 496, "type": "call_expression", "text": "CLCD()", "parent": 495, "children": [497, 498], "start_point": {"row": 198, "column": 24}, "end_point": {"row": 198, "column": 30}}, {"id": 497, "type": "identifier", "text": "CLCD", "parent": 496, "children": [], "start_point": {"row": 198, "column": 24}, "end_point": {"row": 198, "column": 28}}, {"id": 498, "type": "argument_list", "text": "()", "parent": 496, "children": [], "start_point": {"row": 198, "column": 28}, "end_point": {"row": 198, "column": 30}}, {"id": 499, "type": "unary_expression", "text": "~CLCD()", "parent": 491, "children": [500, 501], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 31}}, {"id": 500, "type": "~", "text": "~", "parent": 499, "children": [], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 25}}, {"id": 501, "type": "call_expression", "text": "CLCD()", "parent": 499, "children": [502, 503], "start_point": {"row": 199, "column": 25}, "end_point": {"row": 199, "column": 31}}, {"id": 502, "type": "identifier", "text": "CLCD", "parent": 501, "children": [], "start_point": {"row": 199, "column": 25}, "end_point": {"row": 199, "column": 29}}, {"id": 503, "type": "argument_list", "text": "()", "parent": 501, "children": [], "start_point": {"row": 199, "column": 29}, "end_point": {"row": 199, "column": 31}}, {"id": 504, "type": "declaration", "text": "virtual void SetGlobalStat( char const *name, char const *value );", "parent": 491, "children": [505, 506, 508], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 73}}, {"id": 505, "type": "type_identifier", "text": "virtual", "parent": 504, "children": [], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 11}}, {"id": 506, "type": "ERROR", "text": "void", "parent": 504, "children": [507], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 16}}, {"id": 507, "type": "identifier", "text": "void", "parent": 506, "children": [], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 16}}, {"id": 508, "type": "function_declarator", "text": "SetGlobalStat( char const *name, char const *value )", "parent": 504, "children": [509, 510], "start_point": {"row": 202, "column": 20}, "end_point": {"row": 202, "column": 72}}, {"id": 509, "type": "identifier", "text": "SetGlobalStat", "parent": 508, "children": [], "start_point": {"row": 202, "column": 20}, "end_point": {"row": 202, "column": 33}}, {"id": 510, "type": "parameter_list", "text": "( char const *name, char const *value )", "parent": 508, "children": [511, 516], "start_point": {"row": 202, "column": 33}, "end_point": {"row": 202, "column": 72}}, {"id": 511, "type": "parameter_declaration", "text": "char const *name", "parent": 510, "children": [512, 513], "start_point": {"row": 202, "column": 35}, "end_point": {"row": 202, "column": 51}}, {"id": 512, "type": "primitive_type", "text": "char", "parent": 511, "children": [], "start_point": {"row": 202, "column": 35}, "end_point": {"row": 202, "column": 39}}, {"id": 513, "type": "pointer_declarator", "text": "*name", "parent": 511, "children": [514, 515], "start_point": {"row": 202, "column": 46}, "end_point": {"row": 202, "column": 51}}, {"id": 514, "type": "*", "text": "*", "parent": 513, "children": [], "start_point": {"row": 202, "column": 46}, "end_point": {"row": 202, "column": 47}}, {"id": 515, "type": "identifier", "text": "name", "parent": 513, "children": [], "start_point": {"row": 202, "column": 47}, "end_point": {"row": 202, "column": 51}}, {"id": 516, "type": "parameter_declaration", "text": "char const *value", "parent": 510, "children": [517, 518], "start_point": {"row": 202, "column": 53}, "end_point": {"row": 202, "column": 70}}, {"id": 517, "type": "primitive_type", "text": "char", "parent": 516, "children": [], "start_point": {"row": 202, "column": 53}, "end_point": {"row": 202, "column": 57}}, {"id": 518, "type": "pointer_declarator", "text": "*value", "parent": 516, "children": [519, 520], "start_point": {"row": 202, "column": 64}, "end_point": {"row": 202, "column": 70}}, {"id": 519, "type": "*", "text": "*", "parent": 518, "children": [], "start_point": {"row": 202, "column": 64}, "end_point": {"row": 202, "column": 65}}, {"id": 520, "type": "identifier", "text": "value", "parent": 518, "children": [], "start_point": {"row": 202, "column": 65}, "end_point": {"row": 202, "column": 70}}, {"id": 521, "type": "declaration", "text": "virtual void AddChatLine( char const *txt );", "parent": 491, "children": [522, 523, 525], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 51}}, {"id": 522, "type": "type_identifier", "text": "virtual", "parent": 521, "children": [], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 11}}, {"id": 523, "type": "ERROR", "text": "void", "parent": 521, "children": [524], "start_point": {"row": 203, "column": 12}, "end_point": {"row": 203, "column": 16}}, {"id": 524, "type": "identifier", "text": "void", "parent": 523, "children": [], "start_point": {"row": 203, "column": 12}, "end_point": {"row": 203, "column": 16}}, {"id": 525, "type": "function_declarator", "text": "AddChatLine( char const *txt )", "parent": 521, "children": [526, 527], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 50}}, {"id": 526, "type": "identifier", "text": "AddChatLine", "parent": 525, "children": [], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 31}}, {"id": 527, "type": "parameter_list", "text": "( char const *txt )", "parent": 525, "children": [528], "start_point": {"row": 203, "column": 31}, "end_point": {"row": 203, "column": 50}}, {"id": 528, "type": "parameter_declaration", "text": "char const *txt", "parent": 527, "children": [529, 530], "start_point": {"row": 203, "column": 33}, "end_point": {"row": 203, "column": 48}}, {"id": 529, "type": "primitive_type", "text": "char", "parent": 528, "children": [], "start_point": {"row": 203, "column": 33}, "end_point": {"row": 203, "column": 37}}, {"id": 530, "type": "pointer_declarator", "text": "*txt", "parent": 528, "children": [531, 532], "start_point": {"row": 203, "column": 44}, "end_point": {"row": 203, "column": 48}}, {"id": 531, "type": "*", "text": "*", "parent": 530, "children": [], "start_point": {"row": 203, "column": 44}, "end_point": {"row": 203, "column": 45}}, {"id": 532, "type": "identifier", "text": "txt", "parent": 530, "children": [], "start_point": {"row": 203, "column": 45}, "end_point": {"row": 203, "column": 48}}, {"id": 533, "type": "declaration", "text": "void Reload();", "parent": 491, "children": [534, 535], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 33}}, {"id": 534, "type": "primitive_type", "text": "void", "parent": 533, "children": [], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 8}}, {"id": 535, "type": "function_declarator", "text": "Reload()", "parent": 533, "children": [536, 537], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 32}}, {"id": 536, "type": "identifier", "text": "Reload", "parent": 535, "children": [], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 30}}, {"id": 537, "type": "parameter_list", "text": "()", "parent": 535, "children": [], "start_point": {"row": 206, "column": 30}, "end_point": {"row": 206, "column": 32}}, {"id": 538, "type": "declaration", "text": "void DumpPlayer();", "parent": 491, "children": [539, 540], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 37}}, {"id": 539, "type": "primitive_type", "text": "void", "parent": 538, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 8}}, {"id": 540, "type": "function_declarator", "text": "DumpPlayer()", "parent": 538, "children": [541, 542], "start_point": {"row": 207, "column": 24}, "end_point": {"row": 207, "column": 36}}, {"id": 541, "type": "identifier", "text": "DumpPlayer", "parent": 540, "children": [], "start_point": {"row": 207, "column": 24}, "end_point": {"row": 207, "column": 34}}, {"id": 542, "type": "parameter_list", "text": "()", "parent": 540, "children": [], "start_point": {"row": 207, "column": 34}, "end_point": {"row": 207, "column": 36}}, {"id": 543, "type": "labeled_statement", "text": "public:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );", "parent": 491, "children": [544], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 212, "column": 37}}, {"id": 544, "type": "declaration", "text": "void Init( void );", "parent": 543, "children": [545, 546], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 37}}, {"id": 545, "type": "primitive_type", "text": "void", "parent": 544, "children": [], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 8}}, {"id": 546, "type": "function_declarator", "text": "Init( void )", "parent": 544, "children": [547, 548], "start_point": {"row": 212, "column": 24}, "end_point": {"row": 212, "column": 36}}, {"id": 547, "type": "identifier", "text": "Init", "parent": 546, "children": [], "start_point": {"row": 212, "column": 24}, "end_point": {"row": 212, "column": 28}}, {"id": 548, "type": "parameter_list", "text": "( void )", "parent": 546, "children": [549], "start_point": {"row": 212, "column": 28}, "end_point": {"row": 212, "column": 36}}, {"id": 549, "type": "parameter_declaration", "text": "void", "parent": 548, "children": [550], "start_point": {"row": 212, "column": 30}, "end_point": {"row": 212, "column": 34}}, {"id": 550, "type": "primitive_type", "text": "void", "parent": 549, "children": [], "start_point": {"row": 212, "column": 30}, "end_point": {"row": 212, "column": 34}}, {"id": 551, "type": "declaration", "text": "void Shutdown();", "parent": 491, "children": [552, 553], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 35}}, {"id": 552, "type": "primitive_type", "text": "void", "parent": 551, "children": [], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 8}}, {"id": 553, "type": "function_declarator", "text": "Shutdown()", "parent": 551, "children": [554, 555], "start_point": {"row": 213, "column": 24}, "end_point": {"row": 213, "column": 34}}, {"id": 554, "type": "identifier", "text": "Shutdown", "parent": 553, "children": [], "start_point": {"row": 213, "column": 24}, "end_point": {"row": 213, "column": 32}}, {"id": 555, "type": "parameter_list", "text": "()", "parent": 553, "children": [], "start_point": {"row": 213, "column": 32}, "end_point": {"row": 213, "column": 34}}, {"id": 556, "type": "declaration", "text": "void Update( void );", "parent": 491, "children": [557, 558], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 39}}, {"id": 557, "type": "primitive_type", "text": "void", "parent": 556, "children": [], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 8}}, {"id": 558, "type": "function_declarator", "text": "Update( void )", "parent": 556, "children": [559, 560], "start_point": {"row": 214, "column": 24}, "end_point": {"row": 214, "column": 38}}, {"id": 559, "type": "identifier", "text": "Update", "parent": 558, "children": [], "start_point": {"row": 214, "column": 24}, "end_point": {"row": 214, "column": 30}}, {"id": 560, "type": "parameter_list", "text": "( void )", "parent": 558, "children": [561], "start_point": {"row": 214, "column": 30}, "end_point": {"row": 214, "column": 38}}, {"id": 561, "type": "parameter_declaration", "text": "void", "parent": 560, "children": [562], "start_point": {"row": 214, "column": 32}, "end_point": {"row": 214, "column": 36}}, {"id": 562, "type": "primitive_type", "text": "void", "parent": 561, "children": [], "start_point": {"row": 214, "column": 32}, "end_point": {"row": 214, "column": 36}}, {"id": 563, "type": "ERROR", "text": "bool IsConnected() const", "parent": 491, "children": [564, 565], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 43}}, {"id": 564, "type": "primitive_type", "text": "bool", "parent": 563, "children": [], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 8}}, {"id": 565, "type": "function_declarator", "text": "IsConnected()", "parent": 563, "children": [566, 567], "start_point": {"row": 215, "column": 24}, "end_point": {"row": 215, "column": 37}}, {"id": 566, "type": "identifier", "text": "IsConnected", "parent": 565, "children": [], "start_point": {"row": 215, "column": 24}, "end_point": {"row": 215, "column": 35}}, {"id": 567, "type": "parameter_list", "text": "()", "parent": 565, "children": [], "start_point": {"row": 215, "column": 35}, "end_point": {"row": 215, "column": 37}}, {"id": 568, "type": "labeled_statement", "text": "private:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );", "parent": 491, "children": [569], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 219, "column": 94}}, {"id": 569, "type": "declaration", "text": "CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );", "parent": 568, "children": [570, 571], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 94}}, {"id": 570, "type": "type_identifier", "text": "CLCDItemIcon", "parent": 569, "children": [], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 16}}, {"id": 571, "type": "pointer_declarator", "text": "*ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub )", "parent": 569, "children": [572, 573], "start_point": {"row": 219, "column": 24}, "end_point": {"row": 219, "column": 93}}, {"id": 572, "type": "*", "text": "*", "parent": 571, "children": [], "start_point": {"row": 219, "column": 24}, "end_point": {"row": 219, "column": 25}}, {"id": 573, "type": "function_declarator", "text": "ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub )", "parent": 571, "children": [574, 575], "start_point": {"row": 219, "column": 25}, "end_point": {"row": 219, "column": 93}}, {"id": 574, "type": "identifier", "text": "ParseItemIcon", "parent": 573, "children": [], "start_point": {"row": 219, "column": 25}, "end_point": {"row": 219, "column": 38}}, {"id": 575, "type": "parameter_list", "text": "( CLCDPage *page, bool bCreateHandles, KeyValues *sub )", "parent": 573, "children": [576, 581, 584], "start_point": {"row": 219, "column": 38}, "end_point": {"row": 219, "column": 93}}, {"id": 576, "type": "parameter_declaration", "text": "CLCDPage *page", "parent": 575, "children": [577, 578], "start_point": {"row": 219, "column": 40}, "end_point": {"row": 219, "column": 54}}, {"id": 577, "type": "type_identifier", "text": "CLCDPage", "parent": 576, "children": [], "start_point": {"row": 219, "column": 40}, "end_point": {"row": 219, "column": 48}}, {"id": 578, "type": "pointer_declarator", "text": "*page", "parent": 576, "children": [579, 580], "start_point": {"row": 219, "column": 49}, "end_point": {"row": 219, "column": 54}}, {"id": 579, "type": "*", "text": "*", "parent": 578, "children": [], "start_point": {"row": 219, "column": 49}, "end_point": {"row": 219, "column": 50}}, {"id": 580, "type": "identifier", "text": "page", "parent": 578, "children": [], "start_point": {"row": 219, "column": 50}, "end_point": {"row": 219, "column": 54}}, {"id": 581, "type": "parameter_declaration", "text": "bool bCreateHandles", "parent": 575, "children": [582, 583], "start_point": {"row": 219, "column": 56}, "end_point": {"row": 219, "column": 75}}, {"id": 582, "type": "primitive_type", "text": "bool", "parent": 581, "children": [], "start_point": {"row": 219, "column": 56}, "end_point": {"row": 219, "column": 60}}, {"id": 583, "type": "identifier", "text": "bCreateHandles", "parent": 581, "children": [], "start_point": {"row": 219, "column": 61}, "end_point": {"row": 219, "column": 75}}, {"id": 584, "type": "parameter_declaration", "text": "KeyValues *sub", "parent": 575, "children": [585, 586], "start_point": {"row": 219, "column": 77}, "end_point": {"row": 219, "column": 91}}, {"id": 585, "type": "type_identifier", "text": "KeyValues", "parent": 584, "children": [], "start_point": {"row": 219, "column": 77}, "end_point": {"row": 219, "column": 86}}, {"id": 586, "type": "pointer_declarator", "text": "*sub", "parent": 584, "children": [587, 588], "start_point": {"row": 219, "column": 87}, "end_point": {"row": 219, "column": 91}}, {"id": 587, "type": "*", "text": "*", "parent": 586, "children": [], "start_point": {"row": 219, "column": 87}, "end_point": {"row": 219, "column": 88}}, {"id": 588, "type": "identifier", "text": "sub", "parent": 586, "children": [], "start_point": {"row": 219, "column": 88}, "end_point": {"row": 219, "column": 91}}, {"id": 589, "type": "declaration", "text": "CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );", "parent": 491, "children": [590, 591], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 94}}, {"id": 590, "type": "type_identifier", "text": "CLCDItemText", "parent": 589, "children": [], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 16}}, {"id": 591, "type": "pointer_declarator", "text": "*ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub )", "parent": 589, "children": [592, 593], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 93}}, {"id": 592, "type": "*", "text": "*", "parent": 591, "children": [], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 25}}, {"id": 593, "type": "function_declarator", "text": "ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub )", "parent": 591, "children": [594, 595], "start_point": {"row": 220, "column": 25}, "end_point": {"row": 220, "column": 93}}, {"id": 594, "type": "identifier", "text": "ParseItemText", "parent": 593, "children": [], "start_point": {"row": 220, "column": 25}, "end_point": {"row": 220, "column": 38}}, {"id": 595, "type": "parameter_list", "text": "( CLCDPage *page, bool bCreateHandles, KeyValues *sub )", "parent": 593, "children": [596, 601, 604], "start_point": {"row": 220, "column": 38}, "end_point": {"row": 220, "column": 93}}, {"id": 596, "type": "parameter_declaration", "text": "CLCDPage *page", "parent": 595, "children": [597, 598], "start_point": {"row": 220, "column": 40}, "end_point": {"row": 220, "column": 54}}, {"id": 597, "type": "type_identifier", "text": "CLCDPage", "parent": 596, "children": [], "start_point": {"row": 220, "column": 40}, "end_point": {"row": 220, "column": 48}}, {"id": 598, "type": "pointer_declarator", "text": "*page", "parent": 596, "children": [599, 600], "start_point": {"row": 220, "column": 49}, "end_point": {"row": 220, "column": 54}}, {"id": 599, "type": "*", "text": "*", "parent": 598, "children": [], "start_point": {"row": 220, "column": 49}, "end_point": {"row": 220, "column": 50}}, {"id": 600, "type": "identifier", "text": "page", "parent": 598, "children": [], "start_point": {"row": 220, "column": 50}, "end_point": {"row": 220, "column": 54}}, {"id": 601, "type": "parameter_declaration", "text": "bool bCreateHandles", "parent": 595, "children": [602, 603], "start_point": {"row": 220, "column": 56}, "end_point": {"row": 220, "column": 75}}, {"id": 602, "type": "primitive_type", "text": "bool", "parent": 601, "children": [], "start_point": {"row": 220, "column": 56}, "end_point": {"row": 220, "column": 60}}, {"id": 603, "type": "identifier", "text": "bCreateHandles", "parent": 601, "children": [], "start_point": {"row": 220, "column": 61}, "end_point": {"row": 220, "column": 75}}, {"id": 604, "type": "parameter_declaration", "text": "KeyValues *sub", "parent": 595, "children": [605, 606], "start_point": {"row": 220, "column": 77}, "end_point": {"row": 220, "column": 91}}, {"id": 605, "type": "type_identifier", "text": "KeyValues", "parent": 604, "children": [], "start_point": {"row": 220, "column": 77}, "end_point": {"row": 220, "column": 86}}, {"id": 606, "type": "pointer_declarator", "text": "*sub", "parent": 604, "children": [607, 608], "start_point": {"row": 220, "column": 87}, "end_point": {"row": 220, "column": 91}}, {"id": 607, "type": "*", "text": "*", "parent": 606, "children": [], "start_point": {"row": 220, "column": 87}, "end_point": {"row": 220, "column": 88}}, {"id": 608, "type": "identifier", "text": "sub", "parent": 606, "children": [], "start_point": {"row": 220, "column": 88}, "end_point": {"row": 220, "column": 91}}, {"id": 609, "type": "declaration", "text": "void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );", "parent": 491, "children": [610, 611], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 221, "column": 123}}, {"id": 610, "type": "primitive_type", "text": "void", "parent": 609, "children": [], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 221, "column": 8}}, {"id": 611, "type": "function_declarator", "text": "ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list )", "parent": 609, "children": [612, 613], "start_point": {"row": 221, "column": 24}, "end_point": {"row": 221, "column": 122}}, {"id": 612, "type": "identifier", "text": "ParseItems_R", "parent": 611, "children": [], "start_point": {"row": 221, "column": 24}, "end_point": {"row": 221, "column": 36}}, {"id": 613, "type": "parameter_list", "text": "( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list )", "parent": 611, "children": [614, 619, 622, 627], "start_point": {"row": 221, "column": 36}, "end_point": {"row": 221, "column": 122}}, {"id": 614, "type": "parameter_declaration", "text": "CLCDPage *page", "parent": 613, "children": [615, 616], "start_point": {"row": 221, "column": 38}, "end_point": {"row": 221, "column": 52}}, {"id": 615, "type": "type_identifier", "text": "CLCDPage", "parent": 614, "children": [], "start_point": {"row": 221, "column": 38}, "end_point": {"row": 221, "column": 46}}, {"id": 616, "type": "pointer_declarator", "text": "*page", "parent": 614, "children": [617, 618], "start_point": {"row": 221, "column": 47}, "end_point": {"row": 221, "column": 52}}, {"id": 617, "type": "*", "text": "*", "parent": 616, "children": [], "start_point": {"row": 221, "column": 47}, "end_point": {"row": 221, "column": 48}}, {"id": 618, "type": "identifier", "text": "page", "parent": 616, "children": [], "start_point": {"row": 221, "column": 48}, "end_point": {"row": 221, "column": 52}}, {"id": 619, "type": "parameter_declaration", "text": "bool bCreateHandles", "parent": 613, "children": [620, 621], "start_point": {"row": 221, "column": 54}, "end_point": {"row": 221, "column": 73}}, {"id": 620, "type": "primitive_type", "text": "bool", "parent": 619, "children": [], "start_point": {"row": 221, "column": 54}, "end_point": {"row": 221, "column": 58}}, {"id": 621, "type": "identifier", "text": "bCreateHandles", "parent": 619, "children": [], "start_point": {"row": 221, "column": 59}, "end_point": {"row": 221, "column": 73}}, {"id": 622, "type": "parameter_declaration", "text": "KeyValues *kv", "parent": 613, "children": [623, 624], "start_point": {"row": 221, "column": 75}, "end_point": {"row": 221, "column": 88}}, {"id": 623, "type": "type_identifier", "text": "KeyValues", "parent": 622, "children": [], "start_point": {"row": 221, "column": 75}, "end_point": {"row": 221, "column": 84}}, {"id": 624, "type": "pointer_declarator", "text": "*kv", "parent": 622, "children": [625, 626], "start_point": {"row": 221, "column": 85}, "end_point": {"row": 221, "column": 88}}, {"id": 625, "type": "*", "text": "*", "parent": 624, "children": [], "start_point": {"row": 221, "column": 85}, "end_point": {"row": 221, "column": 86}}, {"id": 626, "type": "identifier", "text": "kv", "parent": 624, "children": [], "start_point": {"row": 221, "column": 86}, "end_point": {"row": 221, "column": 88}}, {"id": 627, "type": "parameter_declaration", "text": "CUtlVector< CLCDItem * >& list", "parent": 613, "children": [628, 629, 634], "start_point": {"row": 221, "column": 90}, "end_point": {"row": 221, "column": 120}}, {"id": 628, "type": "type_identifier", "text": "CUtlVector", "parent": 627, "children": [], "start_point": {"row": 221, "column": 90}, "end_point": {"row": 221, "column": 100}}, {"id": 629, "type": "ERROR", "text": "< CLCDItem * >&", "parent": 627, "children": [630, 631, 632, 633], "start_point": {"row": 221, "column": 100}, "end_point": {"row": 221, "column": 115}}, {"id": 630, "type": "<", "text": "<", "parent": 629, "children": [], "start_point": {"row": 221, "column": 100}, "end_point": {"row": 221, "column": 101}}, {"id": 631, "type": "identifier", "text": "CLCDItem", "parent": 629, "children": [], "start_point": {"row": 221, "column": 102}, "end_point": {"row": 221, "column": 110}}, {"id": 632, "type": "*", "text": "*", "parent": 629, "children": [], "start_point": {"row": 221, "column": 111}, "end_point": {"row": 221, "column": 112}}, {"id": 633, "type": ">", "text": ">", "parent": 629, "children": [], "start_point": {"row": 221, "column": 113}, "end_point": {"row": 221, "column": 114}}, {"id": 634, "type": "identifier", "text": "list", "parent": 627, "children": [], "start_point": {"row": 221, "column": 116}, "end_point": {"row": 221, "column": 120}}, {"id": 635, "type": "declaration", "text": "void ParsePage( KeyValues *kv );", "parent": 491, "children": [636, 637], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 51}}, {"id": 636, "type": "primitive_type", "text": "void", "parent": 635, "children": [], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 8}}, {"id": 637, "type": "function_declarator", "text": "ParsePage( KeyValues *kv )", "parent": 635, "children": [638, 639], "start_point": {"row": 223, "column": 24}, "end_point": {"row": 223, "column": 50}}, {"id": 638, "type": "identifier", "text": "ParsePage", "parent": 637, "children": [], "start_point": {"row": 223, "column": 24}, "end_point": {"row": 223, "column": 33}}, {"id": 639, "type": "parameter_list", "text": "( KeyValues *kv )", "parent": 637, "children": [640], "start_point": {"row": 223, "column": 33}, "end_point": {"row": 223, "column": 50}}, {"id": 640, "type": "parameter_declaration", "text": "KeyValues *kv", "parent": 639, "children": [641, 642], "start_point": {"row": 223, "column": 35}, "end_point": {"row": 223, "column": 48}}, {"id": 641, "type": "type_identifier", "text": "KeyValues", "parent": 640, "children": [], "start_point": {"row": 223, "column": 35}, "end_point": {"row": 223, "column": 44}}, {"id": 642, "type": "pointer_declarator", "text": "*kv", "parent": 640, "children": [643, 644], "start_point": {"row": 223, "column": 45}, "end_point": {"row": 223, "column": 48}}, {"id": 643, "type": "*", "text": "*", "parent": 642, "children": [], "start_point": {"row": 223, "column": 45}, "end_point": {"row": 223, "column": 46}}, {"id": 644, "type": "identifier", "text": "kv", "parent": 642, "children": [], "start_point": {"row": 223, "column": 46}, "end_point": {"row": 223, "column": 48}}, {"id": 645, "type": "declaration", "text": "void ParseIconMappings( KeyValues *kv );", "parent": 491, "children": [646, 647], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 59}}, {"id": 646, "type": "primitive_type", "text": "void", "parent": 645, "children": [], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 8}}, {"id": 647, "type": "function_declarator", "text": "ParseIconMappings( KeyValues *kv )", "parent": 645, "children": [648, 649], "start_point": {"row": 224, "column": 24}, "end_point": {"row": 224, "column": 58}}, {"id": 648, "type": "identifier", "text": "ParseIconMappings", "parent": 647, "children": [], "start_point": {"row": 224, "column": 24}, "end_point": {"row": 224, "column": 41}}, {"id": 649, "type": "parameter_list", "text": "( KeyValues *kv )", "parent": 647, "children": [650], "start_point": {"row": 224, "column": 41}, "end_point": {"row": 224, "column": 58}}, {"id": 650, "type": "parameter_declaration", "text": "KeyValues *kv", "parent": 649, "children": [651, 652], "start_point": {"row": 224, "column": 43}, "end_point": {"row": 224, "column": 56}}, {"id": 651, "type": "type_identifier", "text": "KeyValues", "parent": 650, "children": [], "start_point": {"row": 224, "column": 43}, "end_point": {"row": 224, "column": 52}}, {"id": 652, "type": "pointer_declarator", "text": "*kv", "parent": 650, "children": [653, 654], "start_point": {"row": 224, "column": 53}, "end_point": {"row": 224, "column": 56}}, {"id": 653, "type": "*", "text": "*", "parent": 652, "children": [], "start_point": {"row": 224, "column": 53}, "end_point": {"row": 224, "column": 54}}, {"id": 654, "type": "identifier", "text": "kv", "parent": 652, "children": [], "start_point": {"row": 224, "column": 54}, "end_point": {"row": 224, "column": 56}}, {"id": 655, "type": "declaration", "text": "void ParseReplacements( KeyValues *kv );", "parent": 491, "children": [656, 657], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 225, "column": 59}}, {"id": 656, "type": "primitive_type", "text": "void", "parent": 655, "children": [], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 225, "column": 8}}, {"id": 657, "type": "function_declarator", "text": "ParseReplacements( KeyValues *kv )", "parent": 655, "children": [658, 659], "start_point": {"row": 225, "column": 24}, "end_point": {"row": 225, "column": 58}}, {"id": 658, "type": "identifier", "text": "ParseReplacements", "parent": 657, "children": [], "start_point": {"row": 225, "column": 24}, "end_point": {"row": 225, "column": 41}}, {"id": 659, "type": "parameter_list", "text": "( KeyValues *kv )", "parent": 657, "children": [660], "start_point": {"row": 225, "column": 41}, "end_point": {"row": 225, "column": 58}}, {"id": 660, "type": "parameter_declaration", "text": "KeyValues *kv", "parent": 659, "children": [661, 662], "start_point": {"row": 225, "column": 43}, "end_point": {"row": 225, "column": 56}}, {"id": 661, "type": "type_identifier", "text": "KeyValues", "parent": 660, "children": [], "start_point": {"row": 225, "column": 43}, "end_point": {"row": 225, "column": 52}}, {"id": 662, "type": "pointer_declarator", "text": "*kv", "parent": 660, "children": [663, 664], "start_point": {"row": 225, "column": 53}, "end_point": {"row": 225, "column": 56}}, {"id": 663, "type": "*", "text": "*", "parent": 662, "children": [], "start_point": {"row": 225, "column": 53}, "end_point": {"row": 225, "column": 54}}, {"id": 664, "type": "identifier", "text": "kv", "parent": 662, "children": [], "start_point": {"row": 225, "column": 54}, "end_point": {"row": 225, "column": 56}}, {"id": 665, "type": "declaration", "text": "void DisplayCurrentPage( unsigned int dwCurTime );", "parent": 491, "children": [666, 667], "start_point": {"row": 226, "column": 4}, "end_point": {"row": 226, "column": 69}}, {"id": 666, "type": "primitive_type", "text": "void", "parent": 665, "children": [], "start_point": {"row": 226, "column": 4}, "end_point": {"row": 226, "column": 8}}, {"id": 667, "type": "function_declarator", "text": "DisplayCurrentPage( unsigned int dwCurTime )", "parent": 665, "children": [668, 669], "start_point": {"row": 226, "column": 24}, "end_point": {"row": 226, "column": 68}}, {"id": 668, "type": "identifier", "text": "DisplayCurrentPage", "parent": 667, "children": [], "start_point": {"row": 226, "column": 24}, "end_point": {"row": 226, "column": 42}}, {"id": 669, "type": "parameter_list", "text": "( unsigned int dwCurTime )", "parent": 667, "children": [670], "start_point": {"row": 226, "column": 42}, "end_point": {"row": 226, "column": 68}}, {"id": 670, "type": "parameter_declaration", "text": "unsigned int dwCurTime", "parent": 669, "children": [671, 674], "start_point": {"row": 226, "column": 44}, "end_point": {"row": 226, "column": 66}}, {"id": 671, "type": "sized_type_specifier", "text": "unsigned int", "parent": 670, "children": [672, 673], "start_point": {"row": 226, "column": 44}, "end_point": {"row": 226, "column": 56}}, {"id": 672, "type": "unsigned", "text": "unsigned", "parent": 671, "children": [], "start_point": {"row": 226, "column": 44}, "end_point": {"row": 226, "column": 52}}, {"id": 673, "type": "primitive_type", "text": "int", "parent": 671, "children": [], "start_point": {"row": 226, "column": 53}, "end_point": {"row": 226, "column": 56}}, {"id": 674, "type": "identifier", "text": "dwCurTime", "parent": 670, "children": [], "start_point": {"row": 226, "column": 57}, "end_point": {"row": 226, "column": 66}}, {"id": 675, "type": "declaration", "text": "void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );", "parent": 491, "children": [676, 677], "start_point": {"row": 228, "column": 4}, "end_point": {"row": 228, "column": 121}}, {"id": 676, "type": "primitive_type", "text": "void", "parent": 675, "children": [], "start_point": {"row": 228, "column": 4}, "end_point": {"row": 228, "column": 8}}, {"id": 677, "type": "function_declarator", "text": "ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show )", "parent": 675, "children": [678, 679], "start_point": {"row": 228, "column": 24}, "end_point": {"row": 228, "column": 120}}, {"id": 678, "type": "identifier", "text": "ShowItems_R", "parent": 677, "children": [], "start_point": {"row": 228, "column": 24}, "end_point": {"row": 228, "column": 35}}, {"id": 679, "type": "parameter_list", "text": "( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show )", "parent": 677, "children": [680, 685, 690, 698], "start_point": {"row": 228, "column": 35}, "end_point": {"row": 228, "column": 120}}, {"id": 680, "type": "parameter_declaration", "text": "CLCDPage *page", "parent": 679, "children": [681, 682], "start_point": {"row": 228, "column": 37}, "end_point": {"row": 228, "column": 51}}, {"id": 681, "type": "type_identifier", "text": "CLCDPage", "parent": 680, "children": [], "start_point": {"row": 228, "column": 37}, "end_point": {"row": 228, "column": 45}}, {"id": 682, "type": "pointer_declarator", "text": "*page", "parent": 680, "children": [683, 684], "start_point": {"row": 228, "column": 46}, "end_point": {"row": 228, "column": 51}}, {"id": 683, "type": "*", "text": "*", "parent": 682, "children": [], "start_point": {"row": 228, "column": 46}, "end_point": {"row": 228, "column": 47}}, {"id": 684, "type": "identifier", "text": "page", "parent": 682, "children": [], "start_point": {"row": 228, "column": 47}, "end_point": {"row": 228, "column": 51}}, {"id": 685, "type": "parameter_declaration", "text": "unsigned int dwCurTime", "parent": 679, "children": [686, 689], "start_point": {"row": 228, "column": 53}, "end_point": {"row": 228, "column": 75}}, {"id": 686, "type": "sized_type_specifier", "text": "unsigned int", "parent": 685, "children": [687, 688], "start_point": {"row": 228, "column": 53}, "end_point": {"row": 228, "column": 65}}, {"id": 687, "type": "unsigned", "text": "unsigned", "parent": 686, "children": [], "start_point": {"row": 228, "column": 53}, "end_point": {"row": 228, "column": 61}}, {"id": 688, "type": "primitive_type", "text": "int", "parent": 686, "children": [], "start_point": {"row": 228, "column": 62}, "end_point": {"row": 228, "column": 65}}, {"id": 689, "type": "identifier", "text": "dwCurTime", "parent": 685, "children": [], "start_point": {"row": 228, "column": 66}, "end_point": {"row": 228, "column": 75}}, {"id": 690, "type": "parameter_declaration", "text": "CUtlVector< CLCDItem * >& list", "parent": 679, "children": [691, 692, 697], "start_point": {"row": 228, "column": 77}, "end_point": {"row": 228, "column": 107}}, {"id": 691, "type": "type_identifier", "text": "CUtlVector", "parent": 690, "children": [], "start_point": {"row": 228, "column": 77}, "end_point": {"row": 228, "column": 87}}, {"id": 692, "type": "ERROR", "text": "< CLCDItem * >&", "parent": 690, "children": [693, 694, 695, 696], "start_point": {"row": 228, "column": 87}, "end_point": {"row": 228, "column": 102}}, {"id": 693, "type": "<", "text": "<", "parent": 692, "children": [], "start_point": {"row": 228, "column": 87}, "end_point": {"row": 228, "column": 88}}, {"id": 694, "type": "identifier", "text": "CLCDItem", "parent": 692, "children": [], "start_point": {"row": 228, "column": 89}, "end_point": {"row": 228, "column": 97}}, {"id": 695, "type": "*", "text": "*", "parent": 692, "children": [], "start_point": {"row": 228, "column": 98}, "end_point": {"row": 228, "column": 99}}, {"id": 696, "type": ">", "text": ">", "parent": 692, "children": [], "start_point": {"row": 228, "column": 100}, "end_point": {"row": 228, "column": 101}}, {"id": 697, "type": "identifier", "text": "list", "parent": 690, "children": [], "start_point": {"row": 228, "column": 103}, "end_point": {"row": 228, "column": 107}}, {"id": 698, "type": "parameter_declaration", "text": "bool show", "parent": 679, "children": [699, 700], "start_point": {"row": 228, "column": 109}, "end_point": {"row": 228, "column": 118}}, {"id": 699, "type": "primitive_type", "text": "bool", "parent": 698, "children": [], "start_point": {"row": 228, "column": 109}, "end_point": {"row": 228, "column": 113}}, {"id": 700, "type": "identifier", "text": "show", "parent": 698, "children": [], "start_point": {"row": 228, "column": 114}, "end_point": {"row": 228, "column": 118}}, {"id": 701, "type": "declaration", "text": "int FindTitlePage();", "parent": 491, "children": [702, 703], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 40}}, {"id": 702, "type": "primitive_type", "text": "int", "parent": 701, "children": [], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 230, "column": 7}}, {"id": 703, "type": "function_declarator", "text": "FindTitlePage()", "parent": 701, "children": [704, 705], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 39}}, {"id": 704, "type": "identifier", "text": "FindTitlePage", "parent": 703, "children": [], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 37}}, {"id": 705, "type": "parameter_list", "text": "()", "parent": 703, "children": [], "start_point": {"row": 230, "column": 37}, "end_point": {"row": 230, "column": 39}}, {"id": 706, "type": "declaration", "text": "void BuildUpdatedText( char const *in, CUtlString& out );", "parent": 491, "children": [707, 708], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 76}}, {"id": 707, "type": "primitive_type", "text": "void", "parent": 706, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 8}}, {"id": 708, "type": "function_declarator", "text": "BuildUpdatedText( char const *in, CUtlString& out )", "parent": 706, "children": [709, 710], "start_point": {"row": 231, "column": 24}, "end_point": {"row": 231, "column": 75}}, {"id": 709, "type": "identifier", "text": "BuildUpdatedText", "parent": 708, "children": [], "start_point": {"row": 231, "column": 24}, "end_point": {"row": 231, "column": 40}}, {"id": 710, "type": "parameter_list", "text": "( char const *in, CUtlString& out )", "parent": 708, "children": [711, 716], "start_point": {"row": 231, "column": 40}, "end_point": {"row": 231, "column": 75}}, {"id": 711, "type": "parameter_declaration", "text": "char const *in", "parent": 710, "children": [712, 713], "start_point": {"row": 231, "column": 42}, "end_point": {"row": 231, "column": 56}}, {"id": 712, "type": "primitive_type", "text": "char", "parent": 711, "children": [], "start_point": {"row": 231, "column": 42}, "end_point": {"row": 231, "column": 46}}, {"id": 713, "type": "pointer_declarator", "text": "*in", "parent": 711, "children": [714, 715], "start_point": {"row": 231, "column": 53}, "end_point": {"row": 231, "column": 56}}, {"id": 714, "type": "*", "text": "*", "parent": 713, "children": [], "start_point": {"row": 231, "column": 53}, "end_point": {"row": 231, "column": 54}}, {"id": 715, "type": "identifier", "text": "in", "parent": 713, "children": [], "start_point": {"row": 231, "column": 54}, "end_point": {"row": 231, "column": 56}}, {"id": 716, "type": "parameter_declaration", "text": "CUtlString& out", "parent": 710, "children": [717, 718], "start_point": {"row": 231, "column": 58}, "end_point": {"row": 231, "column": 73}}, {"id": 717, "type": "type_identifier", "text": "CUtlString", "parent": 716, "children": [], "start_point": {"row": 231, "column": 58}, "end_point": {"row": 231, "column": 68}}, {"id": 718, "type": "identifier", "text": "out", "parent": 716, "children": [], "start_point": {"row": 231, "column": 70}, "end_point": {"row": 231, "column": 73}}, {"id": 719, "type": "declaration", "text": "void LookupToken( char const *token, CUtlString& value );", "parent": 491, "children": [720, 721], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 76}}, {"id": 720, "type": "primitive_type", "text": "void", "parent": 719, "children": [], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 8}}, {"id": 721, "type": "function_declarator", "text": "LookupToken( char const *token, CUtlString& value )", "parent": 719, "children": [722, 723], "start_point": {"row": 232, "column": 24}, "end_point": {"row": 232, "column": 75}}, {"id": 722, "type": "identifier", "text": "LookupToken", "parent": 721, "children": [], "start_point": {"row": 232, "column": 24}, "end_point": {"row": 232, "column": 35}}, {"id": 723, "type": "parameter_list", "text": "( char const *token, CUtlString& value )", "parent": 721, "children": [724, 729], "start_point": {"row": 232, "column": 35}, "end_point": {"row": 232, "column": 75}}, {"id": 724, "type": "parameter_declaration", "text": "char const *token", "parent": 723, "children": [725, 726], "start_point": {"row": 232, "column": 37}, "end_point": {"row": 232, "column": 54}}, {"id": 725, "type": "primitive_type", "text": "char", "parent": 724, "children": [], "start_point": {"row": 232, "column": 37}, "end_point": {"row": 232, "column": 41}}, {"id": 726, "type": "pointer_declarator", "text": "*token", "parent": 724, "children": [727, 728], "start_point": {"row": 232, "column": 48}, "end_point": {"row": 232, "column": 54}}, {"id": 727, "type": "*", "text": "*", "parent": 726, "children": [], "start_point": {"row": 232, "column": 48}, "end_point": {"row": 232, "column": 49}}, {"id": 728, "type": "identifier", "text": "token", "parent": 726, "children": [], "start_point": {"row": 232, "column": 49}, "end_point": {"row": 232, "column": 54}}, {"id": 729, "type": "parameter_declaration", "text": "CUtlString& value", "parent": 723, "children": [730, 731], "start_point": {"row": 232, "column": 56}, "end_point": {"row": 232, "column": 73}}, {"id": 730, "type": "type_identifier", "text": "CUtlString", "parent": 729, "children": [], "start_point": {"row": 232, "column": 56}, "end_point": {"row": 232, "column": 66}}, {"id": 731, "type": "identifier", "text": "value", "parent": 729, "children": [], "start_point": {"row": 232, "column": 68}, "end_point": {"row": 232, "column": 73}}, {"id": 732, "type": "declaration", "text": "bool ExtractArrayIndex( char *str, size_t bufsize, int *index );", "parent": 491, "children": [733, 734], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 83}}, {"id": 733, "type": "primitive_type", "text": "bool", "parent": 732, "children": [], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 8}}, {"id": 734, "type": "function_declarator", "text": "ExtractArrayIndex( char *str, size_t bufsize, int *index )", "parent": 732, "children": [735, 736], "start_point": {"row": 233, "column": 24}, "end_point": {"row": 233, "column": 82}}, {"id": 735, "type": "identifier", "text": "ExtractArrayIndex", "parent": 734, "children": [], "start_point": {"row": 233, "column": 24}, "end_point": {"row": 233, "column": 41}}, {"id": 736, "type": "parameter_list", "text": "( char *str, size_t bufsize, int *index )", "parent": 734, "children": [737, 742, 745], "start_point": {"row": 233, "column": 41}, "end_point": {"row": 233, "column": 82}}, {"id": 737, "type": "parameter_declaration", "text": "char *str", "parent": 736, "children": [738, 739], "start_point": {"row": 233, "column": 43}, "end_point": {"row": 233, "column": 52}}, {"id": 738, "type": "primitive_type", "text": "char", "parent": 737, "children": [], "start_point": {"row": 233, "column": 43}, "end_point": {"row": 233, "column": 47}}, {"id": 739, "type": "pointer_declarator", "text": "*str", "parent": 737, "children": [740, 741], "start_point": {"row": 233, "column": 48}, "end_point": {"row": 233, "column": 52}}, {"id": 740, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 233, "column": 48}, "end_point": {"row": 233, "column": 49}}, {"id": 741, "type": "identifier", "text": "str", "parent": 739, "children": [], "start_point": {"row": 233, "column": 49}, "end_point": {"row": 233, "column": 52}}, {"id": 742, "type": "parameter_declaration", "text": "size_t bufsize", "parent": 736, "children": [743, 744], "start_point": {"row": 233, "column": 54}, "end_point": {"row": 233, "column": 68}}, {"id": 743, "type": "primitive_type", "text": "size_t", "parent": 742, "children": [], "start_point": {"row": 233, "column": 54}, "end_point": {"row": 233, "column": 60}}, {"id": 744, "type": "identifier", "text": "bufsize", "parent": 742, "children": [], "start_point": {"row": 233, "column": 61}, "end_point": {"row": 233, "column": 68}}, {"id": 745, "type": "parameter_declaration", "text": "int *index", "parent": 736, "children": [746, 747], "start_point": {"row": 233, "column": 70}, "end_point": {"row": 233, "column": 80}}, {"id": 746, "type": "primitive_type", "text": "int", "parent": 745, "children": [], "start_point": {"row": 233, "column": 70}, "end_point": {"row": 233, "column": 73}}, {"id": 747, "type": "pointer_declarator", "text": "*index", "parent": 745, "children": [748, 749], "start_point": {"row": 233, "column": 74}, "end_point": {"row": 233, "column": 80}}, {"id": 748, "type": "*", "text": "*", "parent": 747, "children": [], "start_point": {"row": 233, "column": 74}, "end_point": {"row": 233, "column": 75}}, {"id": 749, "type": "identifier", "text": "index", "parent": 747, "children": [], "start_point": {"row": 233, "column": 75}, "end_point": {"row": 233, "column": 80}}, {"id": 750, "type": "declaration", "text": "bool Replace( CUtlString& str, char const *search, char const *replace );", "parent": 491, "children": [751, 752], "start_point": {"row": 235, "column": 4}, "end_point": {"row": 235, "column": 92}}, {"id": 751, "type": "primitive_type", "text": "bool", "parent": 750, "children": [], "start_point": {"row": 235, "column": 4}, "end_point": {"row": 235, "column": 8}}, {"id": 752, "type": "function_declarator", "text": "Replace( CUtlString& str, char const *search, char const *replace )", "parent": 750, "children": [753, 754], "start_point": {"row": 235, "column": 24}, "end_point": {"row": 235, "column": 91}}, {"id": 753, "type": "identifier", "text": "Replace", "parent": 752, "children": [], "start_point": {"row": 235, "column": 24}, "end_point": {"row": 235, "column": 31}}, {"id": 754, "type": "parameter_list", "text": "( CUtlString& str, char const *search, char const *replace )", "parent": 752, "children": [755, 758, 763], "start_point": {"row": 235, "column": 31}, "end_point": {"row": 235, "column": 91}}, {"id": 755, "type": "parameter_declaration", "text": "CUtlString& str", "parent": 754, "children": [756, 757], "start_point": {"row": 235, "column": 33}, "end_point": {"row": 235, "column": 48}}, {"id": 756, "type": "type_identifier", "text": "CUtlString", "parent": 755, "children": [], "start_point": {"row": 235, "column": 33}, "end_point": {"row": 235, "column": 43}}, {"id": 757, "type": "identifier", "text": "str", "parent": 755, "children": [], "start_point": {"row": 235, "column": 45}, "end_point": {"row": 235, "column": 48}}, {"id": 758, "type": "parameter_declaration", "text": "char const *search", "parent": 754, "children": [759, 760], "start_point": {"row": 235, "column": 50}, "end_point": {"row": 235, "column": 68}}, {"id": 759, "type": "primitive_type", "text": "char", "parent": 758, "children": [], "start_point": {"row": 235, "column": 50}, "end_point": {"row": 235, "column": 54}}, {"id": 760, "type": "pointer_declarator", "text": "*search", "parent": 758, "children": [761, 762], "start_point": {"row": 235, "column": 61}, "end_point": {"row": 235, "column": 68}}, {"id": 761, "type": "*", "text": "*", "parent": 760, "children": [], "start_point": {"row": 235, "column": 61}, "end_point": {"row": 235, "column": 62}}, {"id": 762, "type": "identifier", "text": "search", "parent": 760, "children": [], "start_point": {"row": 235, "column": 62}, "end_point": {"row": 235, "column": 68}}, {"id": 763, "type": "parameter_declaration", "text": "char const *replace", "parent": 754, "children": [764, 765], "start_point": {"row": 235, "column": 70}, "end_point": {"row": 235, "column": 89}}, {"id": 764, "type": "primitive_type", "text": "char", "parent": 763, "children": [], "start_point": {"row": 235, "column": 70}, "end_point": {"row": 235, "column": 74}}, {"id": 765, "type": "pointer_declarator", "text": "*replace", "parent": 763, "children": [766, 767], "start_point": {"row": 235, "column": 81}, "end_point": {"row": 235, "column": 89}}, {"id": 766, "type": "*", "text": "*", "parent": 765, "children": [], "start_point": {"row": 235, "column": 81}, "end_point": {"row": 235, "column": 82}}, {"id": 767, "type": "identifier", "text": "replace", "parent": 765, "children": [], "start_point": {"row": 235, "column": 82}, "end_point": {"row": 235, "column": 89}}, {"id": 768, "type": "declaration", "text": "void DoGlobalReplacements( CUtlString& str );", "parent": 491, "children": [769, 770], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 64}}, {"id": 769, "type": "primitive_type", "text": "void", "parent": 768, "children": [], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 8}}, {"id": 770, "type": "function_declarator", "text": "DoGlobalReplacements( CUtlString& str )", "parent": 768, "children": [771, 772], "start_point": {"row": 236, "column": 24}, "end_point": {"row": 236, "column": 63}}, {"id": 771, "type": "identifier", "text": "DoGlobalReplacements", "parent": 770, "children": [], "start_point": {"row": 236, "column": 24}, "end_point": {"row": 236, "column": 44}}, {"id": 772, "type": "parameter_list", "text": "( CUtlString& str )", "parent": 770, "children": [773], "start_point": {"row": 236, "column": 44}, "end_point": {"row": 236, "column": 63}}, {"id": 773, "type": "parameter_declaration", "text": "CUtlString& str", "parent": 772, "children": [774, 775], "start_point": {"row": 236, "column": 46}, "end_point": {"row": 236, "column": 61}}, {"id": 774, "type": "type_identifier", "text": "CUtlString", "parent": 773, "children": [], "start_point": {"row": 236, "column": 46}, "end_point": {"row": 236, "column": 56}}, {"id": 775, "type": "identifier", "text": "str", "parent": 773, "children": [], "start_point": {"row": 236, "column": 58}, "end_point": {"row": 236, "column": 61}}, {"id": 776, "type": "declaration", "text": "void ReduceParentheses( CUtlString& str );", "parent": 491, "children": [777, 778], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 61}}, {"id": 777, "type": "primitive_type", "text": "void", "parent": 776, "children": [], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 8}}, {"id": 778, "type": "function_declarator", "text": "ReduceParentheses( CUtlString& str )", "parent": 776, "children": [779, 780], "start_point": {"row": 237, "column": 24}, "end_point": {"row": 237, "column": 60}}, {"id": 779, "type": "identifier", "text": "ReduceParentheses", "parent": 778, "children": [], "start_point": {"row": 237, "column": 24}, "end_point": {"row": 237, "column": 41}}, {"id": 780, "type": "parameter_list", "text": "( CUtlString& str )", "parent": 778, "children": [781], "start_point": {"row": 237, "column": 41}, "end_point": {"row": 237, "column": 60}}, {"id": 781, "type": "parameter_declaration", "text": "CUtlString& str", "parent": 780, "children": [782, 783], "start_point": {"row": 237, "column": 43}, "end_point": {"row": 237, "column": 58}}, {"id": 782, "type": "type_identifier", "text": "CUtlString", "parent": 781, "children": [], "start_point": {"row": 237, "column": 43}, "end_point": {"row": 237, "column": 53}}, {"id": 783, "type": "identifier", "text": "str", "parent": 781, "children": [], "start_point": {"row": 237, "column": 55}, "end_point": {"row": 237, "column": 58}}, {"id": 784, "type": "declaration", "text": "bool IsPageValid( int currentPage, C_BasePlayer *player );", "parent": 491, "children": [785, 786], "start_point": {"row": 239, "column": 4}, "end_point": {"row": 239, "column": 77}}, {"id": 785, "type": "primitive_type", "text": "bool", "parent": 784, "children": [], "start_point": {"row": 239, "column": 4}, "end_point": {"row": 239, "column": 8}}, {"id": 786, "type": "function_declarator", "text": "IsPageValid( int currentPage, C_BasePlayer *player )", "parent": 784, "children": [787, 788], "start_point": {"row": 239, "column": 24}, "end_point": {"row": 239, "column": 76}}, {"id": 787, "type": "identifier", "text": "IsPageValid", "parent": 786, "children": [], "start_point": {"row": 239, "column": 24}, "end_point": {"row": 239, "column": 35}}, {"id": 788, "type": "parameter_list", "text": "( int currentPage, C_BasePlayer *player )", "parent": 786, "children": [789, 792], "start_point": {"row": 239, "column": 35}, "end_point": {"row": 239, "column": 76}}, {"id": 789, "type": "parameter_declaration", "text": "int currentPage", "parent": 788, "children": [790, 791], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 52}}, {"id": 790, "type": "primitive_type", "text": "int", "parent": 789, "children": [], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 40}}, {"id": 791, "type": "identifier", "text": "currentPage", "parent": 789, "children": [], "start_point": {"row": 239, "column": 41}, "end_point": {"row": 239, "column": 52}}, {"id": 792, "type": "parameter_declaration", "text": "C_BasePlayer *player", "parent": 788, "children": [793, 794], "start_point": {"row": 239, "column": 54}, "end_point": {"row": 239, "column": 74}}, {"id": 793, "type": "type_identifier", "text": "C_BasePlayer", "parent": 792, "children": [], "start_point": {"row": 239, "column": 54}, "end_point": {"row": 239, "column": 66}}, {"id": 794, "type": "pointer_declarator", "text": "*player", "parent": 792, "children": [795, 796], "start_point": {"row": 239, "column": 67}, "end_point": {"row": 239, "column": 74}}, {"id": 795, "type": "*", "text": "*", "parent": 794, "children": [], "start_point": {"row": 239, "column": 67}, "end_point": {"row": 239, "column": 68}}, {"id": 796, "type": "identifier", "text": "player", "parent": 794, "children": [], "start_point": {"row": 239, "column": 68}, "end_point": {"row": 239, "column": 74}}, {"id": 797, "type": "declaration", "text": "void UpdateChat();", "parent": 491, "children": [798, 799], "start_point": {"row": 240, "column": 4}, "end_point": {"row": 240, "column": 37}}, {"id": 798, "type": "primitive_type", "text": "void", "parent": 797, "children": [], "start_point": {"row": 240, "column": 4}, "end_point": {"row": 240, "column": 8}}, {"id": 799, "type": "function_declarator", "text": "UpdateChat()", "parent": 797, "children": [800, 801], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 36}}, {"id": 800, "type": "identifier", "text": "UpdateChat", "parent": 799, "children": [], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 34}}, {"id": 801, "type": "parameter_list", "text": "()", "parent": 799, "children": [], "start_point": {"row": 240, "column": 34}, "end_point": {"row": 240, "column": 36}}, {"id": 802, "type": "declaration", "text": "IG15 *m_lcd ;", "parent": 491, "children": [803, 804], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 36}}, {"id": 803, "type": "type_identifier", "text": "IG15", "parent": 802, "children": [], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 8}}, {"id": 804, "type": "pointer_declarator", "text": "*m_lcd", "parent": 802, "children": [805, 806], "start_point": {"row": 242, "column": 28}, "end_point": {"row": 242, "column": 34}}, {"id": 805, "type": "*", "text": "*", "parent": 804, "children": [], "start_point": {"row": 242, "column": 28}, "end_point": {"row": 242, "column": 29}}, {"id": 806, "type": "identifier", "text": "m_lcd", "parent": 804, "children": [], "start_point": {"row": 242, "column": 29}, "end_point": {"row": 242, "column": 34}}, {"id": 807, "type": "declaration", "text": "CUtlString m_Title;", "parent": 491, "children": [808, 809], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 36}}, {"id": 808, "type": "type_identifier", "text": "CUtlString", "parent": 807, "children": [], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 14}}, {"id": 809, "type": "identifier", "text": "m_Title", "parent": 807, "children": [], "start_point": {"row": 244, "column": 28}, "end_point": {"row": 244, "column": 35}}, {"id": 810, "type": "declaration", "text": "int m_Size[ 2 ];", "parent": 491, "children": [811, 812], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 40}}, {"id": 811, "type": "primitive_type", "text": "int", "parent": 810, "children": [], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 245, "column": 7}}, {"id": 812, "type": "array_declarator", "text": "m_Size[ 2 ]", "parent": 810, "children": [813, 814], "start_point": {"row": 245, "column": 28}, "end_point": {"row": 245, "column": 39}}, {"id": 813, "type": "identifier", "text": "m_Size", "parent": 812, "children": [], "start_point": {"row": 245, "column": 28}, "end_point": {"row": 245, "column": 34}}, {"id": 814, "type": "number_literal", "text": "2", "parent": 812, "children": [], "start_point": {"row": 245, "column": 36}, "end_point": {"row": 245, "column": 37}}, {"id": 815, "type": "binary_expression", "text": "CUtlVector< CLCDPage * > m_Pages", "parent": 491, "children": [816, 820, 822, 823], "start_point": {"row": 246, "column": 4}, "end_point": {"row": 246, "column": 39}}, {"id": 816, "type": "binary_expression", "text": "CUtlVector< CLCDPage", "parent": 815, "children": [817, 818, 819], "start_point": {"row": 246, "column": 4}, "end_point": {"row": 246, "column": 24}}, {"id": 817, "type": "identifier", "text": "CUtlVector", "parent": 816, "children": [], "start_point": {"row": 246, "column": 4}, "end_point": {"row": 246, "column": 14}}, {"id": 818, "type": "<", "text": "<", "parent": 816, "children": [], "start_point": {"row": 246, "column": 14}, "end_point": {"row": 246, "column": 15}}, {"id": 819, "type": "identifier", "text": "CLCDPage", "parent": 816, "children": [], "start_point": {"row": 246, "column": 16}, "end_point": {"row": 246, "column": 24}}, {"id": 820, "type": "ERROR", "text": "*", "parent": 815, "children": [821], "start_point": {"row": 246, "column": 25}, "end_point": {"row": 246, "column": 26}}, {"id": 821, "type": "*", "text": "*", "parent": 820, "children": [], "start_point": {"row": 246, "column": 25}, "end_point": {"row": 246, "column": 26}}, {"id": 822, "type": ">", "text": ">", "parent": 815, "children": [], "start_point": {"row": 246, "column": 27}, "end_point": {"row": 246, "column": 28}}, {"id": 823, "type": "identifier", "text": "m_Pages", "parent": 815, "children": [], "start_point": {"row": 246, "column": 32}, "end_point": {"row": 246, "column": 39}}, {"id": 824, "type": "declaration", "text": "int m_nCurrentPage;", "parent": 491, "children": [825, 826], "start_point": {"row": 247, "column": 4}, "end_point": {"row": 247, "column": 43}}, {"id": 825, "type": "primitive_type", "text": "int", "parent": 824, "children": [], "start_point": {"row": 247, "column": 4}, "end_point": {"row": 247, "column": 7}}, {"id": 826, "type": "identifier", "text": "m_nCurrentPage", "parent": 824, "children": [], "start_point": {"row": 247, "column": 28}, "end_point": {"row": 247, "column": 42}}, {"id": 827, "type": "declaration", "text": "int m_nSubPage;", "parent": 491, "children": [828, 829], "start_point": {"row": 248, "column": 4}, "end_point": {"row": 248, "column": 39}}, {"id": 828, "type": "primitive_type", "text": "int", "parent": 827, "children": [], "start_point": {"row": 248, "column": 4}, "end_point": {"row": 248, "column": 7}}, {"id": 829, "type": "identifier", "text": "m_nSubPage", "parent": 827, "children": [], "start_point": {"row": 248, "column": 28}, "end_point": {"row": 248, "column": 38}}, {"id": 830, "type": "declaration", "text": "int m_nMaxChatHistory;", "parent": 491, "children": [831, 832], "start_point": {"row": 249, "column": 4}, "end_point": {"row": 249, "column": 46}}, {"id": 831, "type": "primitive_type", "text": "int", "parent": 830, "children": [], "start_point": {"row": 249, "column": 4}, "end_point": {"row": 249, "column": 7}}, {"id": 832, "type": "identifier", "text": "m_nMaxChatHistory", "parent": 830, "children": [], "start_point": {"row": 249, "column": 28}, "end_point": {"row": 249, "column": 45}}, {"id": 833, "type": "comma_expression", "text": "CUtlDict< int, int > m_TextSizes", "parent": 491, "children": [834, 838], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 39}}, {"id": 834, "type": "binary_expression", "text": "CUtlDict< int", "parent": 833, "children": [835, 836, 837], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 17}}, {"id": 835, "type": "identifier", "text": "CUtlDict", "parent": 834, "children": [], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 12}}, {"id": 836, "type": "<", "text": "<", "parent": 834, "children": [], "start_point": {"row": 251, "column": 12}, "end_point": {"row": 251, "column": 13}}, {"id": 837, "type": "identifier", "text": "int", "parent": 834, "children": [], "start_point": {"row": 251, "column": 14}, "end_point": {"row": 251, "column": 17}}, {"id": 838, "type": "binary_expression", "text": "int > m_TextSizes", "parent": 833, "children": [839, 840, 841], "start_point": {"row": 251, "column": 19}, "end_point": {"row": 251, "column": 39}}, {"id": 839, "type": "identifier", "text": "int", "parent": 838, "children": [], "start_point": {"row": 251, "column": 19}, "end_point": {"row": 251, "column": 22}}, {"id": 840, "type": ">", "text": ">", "parent": 838, "children": [], "start_point": {"row": 251, "column": 23}, "end_point": {"row": 251, "column": 24}}, {"id": 841, "type": "identifier", "text": "m_TextSizes", "parent": 838, "children": [], "start_point": {"row": 251, "column": 28}, "end_point": {"row": 251, "column": 39}}, {"id": 842, "type": "comma_expression", "text": "CUtlDict< int, int > m_TextAlignments", "parent": 491, "children": [843, 847], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 44}}, {"id": 843, "type": "binary_expression", "text": "CUtlDict< int", "parent": 842, "children": [844, 845, 846], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 17}}, {"id": 844, "type": "identifier", "text": "CUtlDict", "parent": 843, "children": [], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 12}}, {"id": 845, "type": "<", "text": "<", "parent": 843, "children": [], "start_point": {"row": 252, "column": 12}, "end_point": {"row": 252, "column": 13}}, {"id": 846, "type": "identifier", "text": "int", "parent": 843, "children": [], "start_point": {"row": 252, "column": 14}, "end_point": {"row": 252, "column": 17}}, {"id": 847, "type": "binary_expression", "text": "int > m_TextAlignments", "parent": 842, "children": [848, 849, 850], "start_point": {"row": 252, "column": 19}, "end_point": {"row": 252, "column": 44}}, {"id": 848, "type": "identifier", "text": "int", "parent": 847, "children": [], "start_point": {"row": 252, "column": 19}, "end_point": {"row": 252, "column": 22}}, {"id": 849, "type": ">", "text": ">", "parent": 847, "children": [], "start_point": {"row": 252, "column": 23}, "end_point": {"row": 252, "column": 24}}, {"id": 850, "type": "identifier", "text": "m_TextAlignments", "parent": 847, "children": [], "start_point": {"row": 252, "column": 28}, "end_point": {"row": 252, "column": 44}}, {"id": 851, "type": "struct_specifier", "text": "struct IconInfo_t\n {\n void *m_handle;\n }", "parent": 491, "children": [852, 853], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 257, "column": 5}}, {"id": 852, "type": "struct", "text": "struct", "parent": 851, "children": [], "start_point": {"row": 254, "column": 4}, "end_point": {"row": 254, "column": 10}}, {"id": 853, "type": "type_identifier", "text": "IconInfo_t", "parent": 851, "children": [], "start_point": {"row": 254, "column": 11}, "end_point": {"row": 254, "column": 21}}, {"id": 854, "type": "field_declaration", "text": "void *m_handle;", "parent": 851, "children": [855, 856], "start_point": {"row": 256, "column": 8}, "end_point": {"row": 256, "column": 26}}, {"id": 855, "type": "primitive_type", "text": "void", "parent": 854, "children": [], "start_point": {"row": 256, "column": 8}, "end_point": {"row": 256, "column": 12}}, {"id": 856, "type": "pointer_declarator", "text": "*m_handle", "parent": 854, "children": [857, 858], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 25}}, {"id": 857, "type": "*", "text": "*", "parent": 856, "children": [], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 17}}, {"id": 858, "type": "field_identifier", "text": "m_handle", "parent": 856, "children": [], "start_point": {"row": 256, "column": 17}, "end_point": {"row": 256, "column": 25}}, {"id": 859, "type": "comma_expression", "text": "CUtlDict< IconInfo_t, int > m_Icons", "parent": 491, "children": [860, 864], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 39}}, {"id": 860, "type": "binary_expression", "text": "CUtlDict< IconInfo_t", "parent": 859, "children": [861, 862, 863], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 24}}, {"id": 861, "type": "identifier", "text": "CUtlDict", "parent": 860, "children": [], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 12}}, {"id": 862, "type": "<", "text": "<", "parent": 860, "children": [], "start_point": {"row": 259, "column": 12}, "end_point": {"row": 259, "column": 13}}, {"id": 863, "type": "identifier", "text": "IconInfo_t", "parent": 860, "children": [], "start_point": {"row": 259, "column": 14}, "end_point": {"row": 259, "column": 24}}, {"id": 864, "type": "binary_expression", "text": "int > m_Icons", "parent": 859, "children": [865, 866, 867], "start_point": {"row": 259, "column": 26}, "end_point": {"row": 259, "column": 39}}, {"id": 865, "type": "identifier", "text": "int", "parent": 864, "children": [], "start_point": {"row": 259, "column": 26}, "end_point": {"row": 259, "column": 29}}, {"id": 866, "type": ">", "text": ">", "parent": 864, "children": [], "start_point": {"row": 259, "column": 30}, "end_point": {"row": 259, "column": 31}}, {"id": 867, "type": "identifier", "text": "m_Icons", "parent": 864, "children": [], "start_point": {"row": 259, "column": 32}, "end_point": {"row": 259, "column": 39}}, {"id": 868, "type": "declaration", "text": "bool m_bHadPlayer;", "parent": 491, "children": [869, 870], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 41}}, {"id": 869, "type": "primitive_type", "text": "bool", "parent": 868, "children": [], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 8}}, {"id": 870, "type": "identifier", "text": "m_bHadPlayer", "parent": 868, "children": [], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 40}}, {"id": 871, "type": "comma_expression", "text": "CUtlDict< CUtlString, int > m_GlobalStats", "parent": 491, "children": [872, 876], "start_point": {"row": 262, "column": 4}, "end_point": {"row": 262, "column": 49}}, {"id": 872, "type": "binary_expression", "text": "CUtlDict< CUtlString", "parent": 871, "children": [873, 874, 875], "start_point": {"row": 262, "column": 4}, "end_point": {"row": 262, "column": 24}}, {"id": 873, "type": "identifier", "text": "CUtlDict", "parent": 872, "children": [], "start_point": {"row": 262, "column": 4}, "end_point": {"row": 262, "column": 12}}, {"id": 874, "type": "<", "text": "<", "parent": 872, "children": [], "start_point": {"row": 262, "column": 12}, "end_point": {"row": 262, "column": 13}}, {"id": 875, "type": "identifier", "text": "CUtlString", "parent": 872, "children": [], "start_point": {"row": 262, "column": 14}, "end_point": {"row": 262, "column": 24}}, {"id": 876, "type": "binary_expression", "text": "int > m_GlobalStats", "parent": 871, "children": [877, 878, 879], "start_point": {"row": 262, "column": 26}, "end_point": {"row": 262, "column": 49}}, {"id": 877, "type": "identifier", "text": "int", "parent": 876, "children": [], "start_point": {"row": 262, "column": 26}, "end_point": {"row": 262, "column": 29}}, {"id": 878, "type": ">", "text": ">", "parent": 876, "children": [], "start_point": {"row": 262, "column": 30}, "end_point": {"row": 262, "column": 31}}, {"id": 879, "type": "identifier", "text": "m_GlobalStats", "parent": 876, "children": [], "start_point": {"row": 262, "column": 36}, "end_point": {"row": 262, "column": 49}}, {"id": 880, "type": "binary_expression", "text": "CUtlVector< CUtlString > m_ChatHistory", "parent": 491, "children": [881, 885, 886], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 49}}, {"id": 881, "type": "binary_expression", "text": "CUtlVector< CUtlString", "parent": 880, "children": [882, 883, 884], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 26}}, {"id": 882, "type": "identifier", "text": "CUtlVector", "parent": 881, "children": [], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 14}}, {"id": 883, "type": "<", "text": "<", "parent": 881, "children": [], "start_point": {"row": 263, "column": 14}, "end_point": {"row": 263, "column": 15}}, {"id": 884, "type": "identifier", "text": "CUtlString", "parent": 881, "children": [], "start_point": {"row": 263, "column": 16}, "end_point": {"row": 263, "column": 26}}, {"id": 885, "type": ">", "text": ">", "parent": 880, "children": [], "start_point": {"row": 263, "column": 27}, "end_point": {"row": 263, "column": 28}}, {"id": 886, "type": "identifier", "text": "m_ChatHistory", "parent": 880, "children": [], "start_point": {"row": 263, "column": 36}, "end_point": {"row": 263, "column": 49}}, {"id": 887, "type": "declaration", "text": "unsigned int m_dwNextUpdateTime;", "parent": 491, "children": [888, 891], "start_point": {"row": 265, "column": 4}, "end_point": {"row": 265, "column": 47}}, {"id": 888, "type": "sized_type_specifier", "text": "unsigned int", "parent": 887, "children": [889, 890], "start_point": {"row": 265, "column": 4}, "end_point": {"row": 265, "column": 16}}, {"id": 889, "type": "unsigned", "text": "unsigned", "parent": 888, "children": [], "start_point": {"row": 265, "column": 4}, "end_point": {"row": 265, "column": 12}}, {"id": 890, "type": "primitive_type", "text": "int", "parent": 888, "children": [], "start_point": {"row": 265, "column": 13}, "end_point": {"row": 265, "column": 16}}, {"id": 891, "type": "identifier", "text": "m_dwNextUpdateTime", "parent": 887, "children": [], "start_point": {"row": 265, "column": 28}, "end_point": {"row": 265, "column": 46}}, {"id": 892, "type": "declaration", "text": "CSysModule *m_pG15Module;", "parent": 491, "children": [893, 894], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 42}}, {"id": 893, "type": "type_identifier", "text": "CSysModule", "parent": 892, "children": [], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 14}}, {"id": 894, "type": "pointer_declarator", "text": "*m_pG15Module", "parent": 892, "children": [895, 896], "start_point": {"row": 266, "column": 28}, "end_point": {"row": 266, "column": 41}}, {"id": 895, "type": "*", "text": "*", "parent": 894, "children": [], "start_point": {"row": 266, "column": 28}, "end_point": {"row": 266, "column": 29}}, {"id": 896, "type": "identifier", "text": "m_pG15Module", "parent": 894, "children": [], "start_point": {"row": 266, "column": 29}, "end_point": {"row": 266, "column": 41}}, {"id": 897, "type": "declaration", "text": "CreateInterfaceFn m_G15Factory;", "parent": 491, "children": [898, 899], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 41}}, {"id": 898, "type": "type_identifier", "text": "CreateInterfaceFn", "parent": 897, "children": [], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 21}}, {"id": 899, "type": "identifier", "text": "m_G15Factory", "parent": 897, "children": [], "start_point": {"row": 267, "column": 28}, "end_point": {"row": 267, "column": 40}}, {"id": 900, "type": "declaration", "text": "extern CLCD gLCD;", "parent": 0, "children": [901, 903, 904], "start_point": {"row": 270, "column": 0}, "end_point": {"row": 270, "column": 17}}, {"id": 901, "type": "storage_class_specifier", "text": "extern", "parent": 900, "children": [902], "start_point": {"row": 270, "column": 0}, "end_point": {"row": 270, "column": 6}}, {"id": 902, "type": "extern", "text": "extern", "parent": 901, "children": [], "start_point": {"row": 270, "column": 0}, "end_point": {"row": 270, "column": 6}}, {"id": 903, "type": "type_identifier", "text": "CLCD", "parent": 900, "children": [], "start_point": {"row": 270, "column": 7}, "end_point": {"row": 270, "column": 11}}, {"id": 904, "type": "identifier", "text": "gLCD", "parent": 900, "children": [], "start_point": {"row": 270, "column": 12}, "end_point": {"row": 270, "column": 16}}, {"id": 905, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 272, "column": 0}, "end_point": {"row": 272, "column": 6}}]}, "node_categories": {"declarations": {"functions": [57, 125, 162, 197, 217, 242, 258, 293, 305, 315, 343, 380, 384, 392, 396, 471, 491, 508, 525, 535, 540, 546, 553, 558, 565, 573, 593, 611, 637, 647, 657, 667, 677, 703, 708, 721, 734, 752, 770, 778, 786, 799], "variables": [25, 27, 29, 121, 128, 133, 136, 139, 144, 150, 166, 193, 200, 205, 208, 211, 214, 221, 238, 245, 250, 253, 262, 289, 296, 301, 308, 313, 318, 323, 328, 331, 387, 399, 402, 469, 474, 479, 482, 485, 488, 504, 511, 516, 521, 528, 533, 538, 544, 549, 551, 556, 561, 569, 576, 581, 584, 589, 596, 601, 604, 609, 614, 619, 622, 627, 635, 640, 645, 650, 655, 660, 665, 670, 675, 680, 685, 690, 698, 701, 706, 711, 716, 719, 724, 729, 732, 737, 742, 745, 750, 755, 758, 763, 768, 773, 776, 781, 784, 789, 792, 797, 802, 807, 810, 824, 827, 830, 854, 868, 887, 892, 897, 900], "classes": [851, 852, 901], "imports": [13, 14, 16, 17, 19, 20, 22, 23], "modules": [], "enums": [31, 32, 33, 34, 38, 40, 42, 44, 46, 47, 48, 49, 53, 55]}, "statements": {"expressions": [61, 64, 65, 69, 70, 74, 75, 79, 80, 84, 85, 89, 90, 94, 95, 100, 105, 106, 108, 153, 154, 172, 175, 176, 180, 181, 185, 227, 268, 271, 272, 276, 277, 281, 334, 335, 349, 352, 353, 357, 358, 362, 363, 367, 375, 377, 413, 430, 441, 452, 458, 462, 496, 499, 501, 815, 816, 833, 834, 838, 842, 843, 847, 859, 860, 864, 871, 872, 876, 880, 881], "assignments": [189, 234, 285, 371, 427, 438, 449], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 12, 26, 28, 30, 35, 39, 41, 43, 45, 50, 54, 56, 58, 62, 66, 71, 76, 78, 81, 86, 91, 96, 101, 104, 109, 112, 114, 115, 117, 122, 124, 126, 129, 132, 135, 138, 143, 146, 147, 148, 149, 152, 155, 157, 161, 163, 165, 168, 169, 173, 177, 182, 186, 190, 192, 194, 196, 198, 201, 204, 206, 207, 210, 213, 216, 218, 220, 223, 224, 228, 230, 231, 233, 235, 237, 239, 241, 243, 246, 249, 251, 252, 257, 259, 261, 264, 265, 269, 273, 275, 278, 282, 286, 288, 290, 292, 294, 297, 300, 302, 304, 306, 309, 312, 316, 319, 322, 324, 327, 330, 333, 336, 338, 342, 344, 346, 350, 354, 359, 364, 368, 372, 374, 378, 381, 383, 385, 388, 391, 393, 397, 401, 403, 407, 411, 412, 414, 415, 419, 420, 421, 424, 425, 426, 428, 431, 435, 436, 437, 439, 442, 446, 447, 448, 450, 453, 457, 459, 461, 463, 472, 475, 478, 481, 484, 487, 490, 493, 494, 497, 502, 505, 507, 509, 515, 520, 522, 524, 526, 532, 536, 541, 547, 554, 559, 566, 570, 574, 577, 580, 583, 585, 588, 590, 594, 597, 600, 603, 605, 608, 612, 615, 618, 621, 623, 626, 628, 631, 634, 638, 641, 644, 648, 651, 654, 658, 661, 664, 668, 671, 674, 678, 681, 684, 686, 689, 691, 694, 697, 700, 704, 709, 715, 717, 718, 722, 728, 730, 731, 735, 741, 744, 749, 753, 756, 757, 762, 767, 771, 774, 775, 779, 782, 783, 787, 791, 793, 796, 800, 803, 806, 808, 809, 813, 817, 819, 823, 826, 829, 832, 835, 837, 839, 841, 844, 846, 848, 850, 853, 858, 861, 863, 865, 867, 870, 873, 875, 877, 879, 882, 884, 886, 888, 891, 893, 896, 898, 899, 903, 904, 905], "returns": [460, 466], "exceptions": []}, "expressions": {"calls": [9], "literals": [15, 18, 21, 24, 37, 52, 73, 83, 88, 93, 98, 103, 120, 184, 188, 280, 284, 370, 465, 814], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 57, "universal_type": "function", "name": "CLCDItem", "text_snippet": "class CLCDItem\n{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n "}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "Wipe( IG15 *lcd )"}, {"node_id": 162, "universal_type": "function", "name": "CLCDItemText", "text_snippet": "class CLCDItemText : public CLCDItem\n{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n"}, {"node_id": 197, "universal_type": "function", "name": "unknown", "text_snippet": "Create( IG15 *lcd )"}, {"node_id": 217, "universal_type": "function", "name": "CLCDItemIcon", "text_snippet": "class CLCDItemIcon : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :"}, {"node_id": 242, "universal_type": "function", "name": "unknown", "text_snippet": "Create( IG15 *lcd )"}, {"node_id": 258, "universal_type": "function", "name": "CLCDItemAggregate", "text_snippet": "class CLCDItemAggregate : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAgg"}, {"node_id": 293, "universal_type": "function", "name": "unknown", "text_snippet": "Create( IG15 *lcd )"}, {"node_id": 305, "universal_type": "function", "name": "unknown", "text_snippet": "Wipe( IG15 *lcd )"}, {"node_id": 315, "universal_type": "function", "name": "unknown", "text_snippet": "WipeChildrenOnly( IG15 *lcd )"}, {"node_id": 343, "universal_type": "function", "name": "CLCDPage", "text_snippet": "class CLCDPage : public CLCDItem\n{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitl"}, {"node_id": 380, "universal_type": "function", "name": "Create", "text_snippet": "virtual void Create( IG15 *lcd )\n {\n }"}, {"node_id": 384, "universal_type": "function", "name": "unknown", "text_snippet": "Create( IG15 *lcd )"}, {"node_id": 392, "universal_type": "function", "name": "type", "text_snippet": "CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n"}, {"node_id": 396, "universal_type": "function", "name": "type", "text_snippet": "Alloc( int type )"}, {"node_id": 471, "universal_type": "function", "name": "unknown", "text_snippet": "InitFromKeyValues( KeyValues *kv )"}, {"node_id": 491, "universal_type": "function", "name": "CLCD", "text_snippet": "class CLCD : public IHudLCD\n{\npublic:\n CLCD();\n ~CLCD("}, {"node_id": 508, "universal_type": "function", "name": "unknown", "text_snippet": "SetGlobalStat( char const *name, char const *value )"}, {"node_id": 525, "universal_type": "function", "name": "unknown", "text_snippet": "AddChatLine( char const *txt )"}, {"node_id": 535, "universal_type": "function", "name": "unknown", "text_snippet": "Reload()"}, {"node_id": 540, "universal_type": "function", "name": "unknown", "text_snippet": "DumpPlayer()"}, {"node_id": 546, "universal_type": "function", "name": ")", "text_snippet": "Init( void )"}, {"node_id": 553, "universal_type": "function", "name": "unknown", "text_snippet": "Shutdown()"}, {"node_id": 558, "universal_type": "function", "name": ")", "text_snippet": "Update( void )"}, {"node_id": 565, "universal_type": "function", "name": "unknown", "text_snippet": "IsConnected()"}, {"node_id": 573, "universal_type": "function", "name": "bCreateHandles,", "text_snippet": "ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub )"}, {"node_id": 593, "universal_type": "function", "name": "bCreateHandles,", "text_snippet": "ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub )"}, {"node_id": 611, "universal_type": "function", "name": "bCreateHandles,", "text_snippet": "ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list )"}, {"node_id": 637, "universal_type": "function", "name": "unknown", "text_snippet": "ParsePage( KeyValues *kv )"}, {"node_id": 647, "universal_type": "function", "name": "unknown", "text_snippet": "ParseIconMappings( KeyValues *kv )"}, {"node_id": 657, "universal_type": "function", "name": "unknown", "text_snippet": "ParseReplacements( KeyValues *kv )"}, {"node_id": 667, "universal_type": "function", "name": "dwCurTime", "text_snippet": "DisplayCurrentPage( unsigned int dwCurTime )"}, {"node_id": 677, "universal_type": "function", "name": "dwCurTime,", "text_snippet": "ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show )"}, {"node_id": 703, "universal_type": "function", "name": "unknown", "text_snippet": "FindTitlePage()"}, {"node_id": 708, "universal_type": "function", "name": "unknown", "text_snippet": "BuildUpdatedText( char const *in, CUtlString& out )"}, {"node_id": 721, "universal_type": "function", "name": "unknown", "text_snippet": "LookupToken( char const *token, CUtlString& value )"}, {"node_id": 734, "universal_type": "function", "name": "*index", "text_snippet": "ExtractArrayIndex( char *str, size_t bufsize, int *index )"}, {"node_id": 752, "universal_type": "function", "name": "unknown", "text_snippet": "Replace( CUtlString& str, char const *search, char const *replace )"}, {"node_id": 770, "universal_type": "function", "name": "unknown", "text_snippet": "DoGlobalReplacements( CUtlString& str )"}, {"node_id": 778, "universal_type": "function", "name": "unknown", "text_snippet": "ReduceParentheses( CUtlString& str )"}, {"node_id": 786, "universal_type": "function", "name": "currentPage,", "text_snippet": "IsPageValid( int currentPage, C_BasePlayer *player )"}, {"node_id": 799, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateChat()"}], "class_declarations": [{"node_id": 851, "universal_type": "class", "name": "IconInfo_t", "text_snippet": "struct IconInfo_t\n {\n void *m_handle;\n }"}, {"node_id": 852, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 901, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 13, "text": "#include \"tier1/utlvector.h\"\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 16, "text": "#include \"tier1/utlstring.h\"\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 19, "text": "#include \"tier1/utldict.h\"\n"}, {"node_id": 20, "text": "#include"}, {"node_id": 22, "text": "#include \"ihudlcd.h\"\n"}, {"node_id": 23, "text": "#include"}]}, "original_source_code": "//========= Copyright Valve Corporation, All rights reserved. ============//\n//\n// Purpose: CLCD Manages the Logitech G-Series Gaming Keyboard LCD\n//\n// $NoKeywords: $\n//=============================================================================//\n#ifndef HUD_LCD_H\n#define HUD_LCD_H\n#ifdef _WIN32\n#pragma once\n#endif\n\n#include \"tier1/utlvector.h\"\n#include \"tier1/utlstring.h\"\n#include \"tier1/utldict.h\"\n\n#include \"ihudlcd.h\"\n\nclass KeyValues;\nclass IG15;\nclass C_BasePlayer;\n\nenum\n{\n LCDITEM_UNKNOWN = 0,\n LCDITEM_PAGE,\n LCDITEM_TEXT,\n LCDITEM_ICON,\n LCDITEM_AGGREGATE, // Made up of subitems\n};\n\n// Aggregate item types\nenum\n{\n AGGTYPE_UNKNOWN = 0,\n AGGTYPE_PERPLAYER,\n AGGTYPE_PERTEAM,\n};\n\nclass CLCDItem\n{\npublic:\n CLCDItem() :\n m_bActive( true ),\n m_nSubPage( 0 ),\n m_Type( LCDITEM_UNKNOWN ),\n m_Handle( 0 ),\n x( 0 ),\n y( 0 ),\n w( 0 ),\n h( 0 )\n {\n }\n\n virtual ~CLCDItem() {}\n\n virtual void Create( IG15 *lcd ) = 0;\n virtual void Wipe( IG15 *lcd );\n\n bool m_bActive;\n int m_Type;\n void *m_Handle;\n int x, y, w, h;\n\n int m_nSubPage;\n\n CUtlVector< CLCDItem * > m_Children;\n};\n\nclass CLCDItemText : public CLCDItem\n{\n typedef CLCDItem BaseClass;\npublic:\n CLCDItemText() :\n m_bHasWildcard( false ),\n m_iSize( 0 ),\n m_iAlign( 0 )\n {\n m_Type = LCDITEM_TEXT;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_OriginalText;\n bool m_bHasWildcard;\n int m_iSize;\n int m_iAlign;\n};\n\nclass CLCDItemIcon : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemIcon() :\n m_icon( NULL )\n {\n m_Type = LCDITEM_ICON;\n }\n\n virtual void Create( IG15 *lcd );\n\n CUtlString m_IconName;\n void *m_icon;\n};\n\nclass CLCDItemAggregate : public CLCDItem\n{\n typedef CLCDItem BaseClass;\n\npublic:\n CLCDItemAggregate() :\n m_AggType( AGGTYPE_UNKNOWN ),\n m_dwNextUpdateTime( 0 ),\n m_yincrement( 0 )\n {\n m_Type = LCDITEM_AGGREGATE;\n }\n\n virtual void Create( IG15 *lcd );\n virtual void Wipe( IG15 *lcd );\n\n void WipeChildrenOnly( IG15 *lcd );\n\n unsigned int m_dwNextUpdateTime;\n int m_AggType;\n\n int m_yincrement;\n\n // Representative row\n CUtlVector< CLCDItem * > m_Definition;\n};\n\nclass CLCDPage : public CLCDItem\n{\npublic:\n CLCDPage() :\n m_bSubItem( false ),\n m_bTitlePage( false ),\n m_bRequiresPlayer( false ),\n m_nSubPageCount( 1 )\n {\n m_Type = LCDITEM_PAGE;\n }\n\n ~CLCDPage()\n {\n }\n\n virtual void Create( IG15 *lcd )\n {\n }\n\n CLCDItem *Alloc( int type )\n {\n CLCDItem *item = NULL;\n\n switch ( type )\n {\n default:\n break;\n case LCDITEM_PAGE:\n // This shouldn't occur\n break;\n case LCDITEM_TEXT:\n item = new CLCDItemText();\n break;\n case LCDITEM_ICON:\n item = new CLCDItemIcon();\n break;\n case LCDITEM_AGGREGATE:\n item = new CLCDItemAggregate();\n break;\n }\n\n if ( item )\n {\n return item;\n }\n\n Assert( 0 );\n return NULL;\n }\n\n void InitFromKeyValues( KeyValues *kv );\n\n bool m_bSubItem;\n bool m_bTitlePage;\n bool m_bRequiresPlayer;\n int m_nSubPageCount;\n};\n\n//-----------------------------------------------------------------------------\n// Purpose: Manages the Logitech G-Series Gaming Keyboard LCD\n//-----------------------------------------------------------------------------\nclass CLCD : public IHudLCD\n{\npublic:\n CLCD();\n ~CLCD();\n\n // Implement IHudLCD\n virtual void SetGlobalStat( char const *name, char const *value );\n virtual void AddChatLine( char const *txt );\n\n // Exposed as a ConCommand\n void Reload();\n void DumpPlayer();\n\npublic:\n\n // Init's called when the HUD's created at DLL load\n void Init( void );\n void Shutdown();\n void Update( void );\n bool IsConnected() const;\n\nprivate:\n\n CLCDItemIcon *ParseItemIcon( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n CLCDItemText *ParseItemText( CLCDPage *page, bool bCreateHandles, KeyValues *sub );\n void ParseItems_R( CLCDPage *page, bool bCreateHandles, KeyValues *kv, CUtlVector< CLCDItem * >& list );\n\n void ParsePage( KeyValues *kv );\n void ParseIconMappings( KeyValues *kv );\n void ParseReplacements( KeyValues *kv );\n void DisplayCurrentPage( unsigned int dwCurTime );\n\n void ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCDItem * >& list, bool show );\n\n int FindTitlePage();\n void BuildUpdatedText( char const *in, CUtlString& out );\n void LookupToken( char const *token, CUtlString& value );\n bool ExtractArrayIndex( char *str, size_t bufsize, int *index );\n\n bool Replace( CUtlString& str, char const *search, char const *replace );\n void DoGlobalReplacements( CUtlString& str );\n void ReduceParentheses( CUtlString& str );\n\n bool IsPageValid( int currentPage, C_BasePlayer *player );\n void UpdateChat();\n\n IG15 *m_lcd ;\n\n CUtlString m_Title;\n int m_Size[ 2 ];\n CUtlVector< CLCDPage * > m_Pages;\n int m_nCurrentPage;\n int m_nSubPage;\n int m_nMaxChatHistory;\n\n CUtlDict< int, int > m_TextSizes;\n CUtlDict< int, int > m_TextAlignments;\n\n struct IconInfo_t\n {\n void *m_handle;\n };\n\n CUtlDict< IconInfo_t, int > m_Icons;\n bool m_bHadPlayer;\n\n CUtlDict< CUtlString, int > m_GlobalStats;\n CUtlVector< CUtlString > m_ChatHistory;\n\n unsigned int m_dwNextUpdateTime;\n CSysModule *m_pG15Module;\n CreateInterfaceFn m_G15Factory;\n};\n\nextern CLCD gLCD;\n\n#endif // HUD_LCD_H\n"}
80,455
c
#ifndef MiniAppManager_h #define MiniAppManager_h #include <mitkCommon.h> struct MiniAppManager { public: typedef int (*MiniAppFunction)(int argc, char* argv[]); public: static MiniAppManager* GetInstance(); // Attention: Name of the miniApp must be the last argument!!! // it will be cut off from the rest of the arguments and then // the app will be run int RunMiniApp(int argc, char* argv[]); // // Add miniApp // MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func); protected: std::map< std::string, MiniAppFunction > m_Functions; }; // // Register miniApps // #define RegisterDiffusionMiniApp(functionName) \ static MiniAppManager::MiniAppFunction MiniApp##functionName = \ MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName) #endif
32.81
26
(translation_unit) "#ifndef MiniAppManager_h\n#define MiniAppManager_h\n\n#include <mitkCommon.h>\n\nstruct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argument!!!\n // it will be cut off from the rest of the arguments and then\n // the app will be run\n int RunMiniApp(int argc, char* argv[]);\n\n //\n // Add miniApp\n //\n MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);\n\nprotected:\n\n std::map< std::string, MiniAppFunction > m_Functions;\n};\n\n//\n// Register miniApps\n//\n#define RegisterDiffusionMiniApp(functionName) \\n static MiniAppManager::MiniAppFunction MiniApp##functionName = \\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)\n#endif\n" (preproc_ifdef) "#ifndef MiniAppManager_h\n#define MiniAppManager_h\n\n#include <mitkCommon.h>\n\nstruct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argument!!!\n // it will be cut off from the rest of the arguments and then\n // the app will be run\n int RunMiniApp(int argc, char* argv[]);\n\n //\n // Add miniApp\n //\n MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);\n\nprotected:\n\n std::map< std::string, MiniAppFunction > m_Functions;\n};\n\n//\n// Register miniApps\n//\n#define RegisterDiffusionMiniApp(functionName) \\n static MiniAppManager::MiniAppFunction MiniApp##functionName = \\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)\n#endif" (#ifndef) "#ifndef" (identifier) "MiniAppManager_h" (preproc_def) "#define MiniAppManager_h\n" (#define) "#define" (identifier) "MiniAppManager_h" (preproc_include) "#include <mitkCommon.h>\n" (#include) "#include" (system_lib_string) "<mitkCommon.h>" (struct_specifier) "struct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argument!!!\n // it will be cut off from the rest of the arguments and then\n // the app will be run\n int RunMiniApp(int argc, char* argv[]);\n\n //\n // Add miniApp\n //\n MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);\n\nprotected:\n\n std::map< std::string, MiniAppFunction > m_Functions;\n}" (struct) "struct" (type_identifier) "MiniAppManager" (field_declaration_list) "{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argument!!!\n // it will be cut off from the rest of the arguments and then\n // the app will be run\n int RunMiniApp(int argc, char* argv[]);\n\n //\n // Add miniApp\n //\n MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);\n\nprotected:\n\n std::map< std::string, MiniAppFunction > m_Functions;\n}" ({) "{" (field_declaration) "public:\n\n typedef" (type_identifier) "public" (field_identifier) "" (bitfield_clause) ":\n\n typedef" (:) ":" (identifier) "typedef" (;) "" (field_declaration) "int (*MiniAppFunction)(int argc, char* argv[]);" (primitive_type) "int" (function_declarator) "(*MiniAppFunction)(int argc, char* argv[])" (parenthesized_declarator) "(*MiniAppFunction)" (() "(" (pointer_declarator) "*MiniAppFunction" (*) "*" (field_identifier) "MiniAppFunction" ()) ")" (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" ([) "[" (]) "]" ()) ")" (;) ";" (field_declaration) "public:\n\n static MiniAppManager* GetInstance();" (type_identifier) "public" (ERROR) ":" (:) ":" (storage_class_specifier) "static" (static) "static" (ERROR) "MiniAppManager" (field_identifier) "MiniAppManager" (pointer_declarator) "* GetInstance()" (*) "*" (function_declarator) "GetInstance()" (field_identifier) "GetInstance" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Attention: Name of the miniApp must be the last argument!!!" (comment) "// it will be cut off from the rest of the arguments and then" (comment) "// the app will be run" (field_declaration) "int RunMiniApp(int argc, char* argv[]);" (primitive_type) "int" (function_declarator) "RunMiniApp(int argc, char* argv[])" (field_identifier) "RunMiniApp" (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" ([) "[" (]) "]" ()) ")" (;) ";" (comment) "//" (comment) "// Add miniApp" (comment) "//" (field_declaration) "MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);" (type_identifier) "MiniAppFunction" (field_identifier) "AddFunction" (ERROR) "(const std:" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (bitfield_clause) ":string& name" (:) ":" (binary_expression) "string& name" (identifier) "string" (&) "&" (identifier) "name" (,) "," (field_identifier) "MiniAppFunction" (ERROR) "func)" (identifier) "func" ()) ")" (;) ";" (field_declaration) "protected:\n\n std::map< std::string, MiniAppFunction > m_Functions;" (type_identifier) "protected" (ERROR) ":" (:) ":" (field_identifier) "std" (ERROR) "::map< std:" (:) ":" (bitfield_clause) ":map< std" (:) ":" (binary_expression) "map< std" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (bitfield_clause) ":string" (:) ":" (identifier) "string" (,) "," (field_identifier) "MiniAppFunction" (ERROR) "> m_Functions" (>) ">" (identifier) "m_Functions" (;) ";" (}) "}" (;) ";" (comment) "//" (comment) "// Register miniApps" (comment) "//" (preproc_function_def) "#define RegisterDiffusionMiniApp(functionName) \\n static MiniAppManager::MiniAppFunction MiniApp##functionName = \\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)\n" (#define) "#define" (identifier) "RegisterDiffusionMiniApp" (preproc_params) "(functionName)" (() "(" (identifier) "functionName" ()) ")" (preproc_arg) "static MiniAppManager::MiniAppFunction MiniApp##functionName = \\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)" (#endif) "#endif"
147
7
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 32.81, "nodes": 88, "errors": 0, "source_hash": "cb6a6a566700a85473ca07a5465b62e022eaba0bfa6ee6fcd7d9d30d1768f515", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MiniAppManager_h\n#define MiniAppManager_h\n\n#include <mitkCommon.h>\n\nstruct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argument!!!\n // it will be cut off from the rest of the arguments and then\n // the app will be run\n int RunMiniApp(int argc, char* argv[]);\n\n //\n // Add miniApp\n //\n MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);\n\nprotected:\n\n std::map< std::string, MiniAppFunction > m_Functions;\n};\n\n//\n// Register miniApps\n//\n#define RegisterDiffusionMiniApp(functionName) \\\n static MiniAppManager::MiniAppFunction MiniApp##functionName = \\\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 81, 87], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "MiniAppManager_h", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define MiniAppManager_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": "MiniAppManager_h", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <mitkCommon.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<mitkCommon.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 23}}, {"id": 9, "type": "struct_specifier", "text": "struct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argument!!!\n // it will be cut off from the rest of the arguments and then\n // the app will be run\n int RunMiniApp(int argc, char* argv[]);\n\n //\n // Add miniApp\n //\n MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);\n\nprotected:\n\n std::map< std::string, MiniAppFunction > m_Functions;\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "MiniAppManager", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 21}}, {"id": 12, "type": "field_declaration", "text": "public:\n\n typedef", "parent": 9, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 10, "column": 11}}, {"id": 13, "type": "field_identifier", "text": "", "parent": 12, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 6}}, {"id": 14, "type": "bitfield_clause", "text": ":\n\n typedef", "parent": 12, "children": [15], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 10, "column": 11}}, {"id": 15, "type": "identifier", "text": "typedef", "parent": 14, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 11}}, {"id": 16, "type": "field_declaration", "text": "int (*MiniAppFunction)(int argc, char* argv[]);", "parent": 9, "children": [17, 18], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 59}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 15}}, {"id": 18, "type": "function_declarator", "text": "(*MiniAppFunction)(int argc, char* argv[])", "parent": 16, "children": [19, 23], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 58}}, {"id": 19, "type": "parenthesized_declarator", "text": "(*MiniAppFunction)", "parent": 18, "children": [20], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 34}}, {"id": 20, "type": "pointer_declarator", "text": "*MiniAppFunction", "parent": 19, "children": [21, 22], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 33}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 18}}, {"id": 22, "type": "field_identifier", "text": "MiniAppFunction", "parent": 20, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 33}}, {"id": 23, "type": "parameter_list", "text": "(int argc, char* argv[])", "parent": 18, "children": [24, 27], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 58}}, {"id": 24, "type": "parameter_declaration", "text": "int argc", "parent": 23, "children": [25, 26], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 43}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 38}}, {"id": 26, "type": "identifier", "text": "argc", "parent": 24, "children": [], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 43}}, {"id": 27, "type": "parameter_declaration", "text": "char* argv[]", "parent": 23, "children": [28, 29], "start_point": {"row": 10, "column": 45}, "end_point": {"row": 10, "column": 57}}, {"id": 28, "type": "primitive_type", "text": "char", "parent": 27, "children": [], "start_point": {"row": 10, "column": 45}, "end_point": {"row": 10, "column": 49}}, {"id": 29, "type": "pointer_declarator", "text": "* argv[]", "parent": 27, "children": [30, 31], "start_point": {"row": 10, "column": 49}, "end_point": {"row": 10, "column": 57}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 10, "column": 49}, "end_point": {"row": 10, "column": 50}}, {"id": 31, "type": "array_declarator", "text": "argv[]", "parent": 29, "children": [32], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 57}}, {"id": 32, "type": "identifier", "text": "argv", "parent": 31, "children": [], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 55}}, {"id": 33, "type": "field_declaration", "text": "public:\n\n static MiniAppManager* GetInstance();", "parent": 9, "children": [34, 36], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 14, "column": 41}}, {"id": 34, "type": "ERROR", "text": "MiniAppManager", "parent": 33, "children": [35], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 25}}, {"id": 35, "type": "field_identifier", "text": "MiniAppManager", "parent": 34, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 25}}, {"id": 36, "type": "pointer_declarator", "text": "* GetInstance()", "parent": 33, "children": [37, 38], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 40}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 26}}, {"id": 38, "type": "function_declarator", "text": "GetInstance()", "parent": 36, "children": [39, 40], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 40}}, {"id": 39, "type": "field_identifier", "text": "GetInstance", "parent": 38, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 38}}, {"id": 40, "type": "parameter_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 40}}, {"id": 41, "type": "field_declaration", "text": "int RunMiniApp(int argc, char* argv[]);", "parent": 9, "children": [42, 43], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 43}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 7}}, {"id": 43, "type": "function_declarator", "text": "RunMiniApp(int argc, char* argv[])", "parent": 41, "children": [44, 45], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 42}}, {"id": 44, "type": "field_identifier", "text": "RunMiniApp", "parent": 43, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 18}}, {"id": 45, "type": "parameter_list", "text": "(int argc, char* argv[])", "parent": 43, "children": [46, 49], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 42}}, {"id": 46, "type": "parameter_declaration", "text": "int argc", "parent": 45, "children": [47, 48], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 27}}, {"id": 47, "type": "primitive_type", "text": "int", "parent": 46, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 22}}, {"id": 48, "type": "identifier", "text": "argc", "parent": 46, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 27}}, {"id": 49, "type": "parameter_declaration", "text": "char* argv[]", "parent": 45, "children": [50, 51], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 41}}, {"id": 50, "type": "primitive_type", "text": "char", "parent": 49, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 33}}, {"id": 51, "type": "pointer_declarator", "text": "* argv[]", "parent": 49, "children": [52, 53], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 41}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 34}}, {"id": 53, "type": "array_declarator", "text": "argv[]", "parent": 51, "children": [54], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 41}}, {"id": 54, "type": "identifier", "text": "argv", "parent": 53, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 39}}, {"id": 55, "type": "field_declaration", "text": "MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);", "parent": 9, "children": [56, 57, 58, 60, 64, 65], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 79}}, {"id": 56, "type": "type_identifier", "text": "MiniAppFunction", "parent": 55, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 19}}, {"id": 57, "type": "field_identifier", "text": "AddFunction", "parent": 55, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 31}}, {"id": 58, "type": "ERROR", "text": "(const std:", "parent": 55, "children": [59], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 42}}, {"id": 59, "type": "type_identifier", "text": "std", "parent": 58, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 41}}, {"id": 60, "type": "bitfield_clause", "text": ":string& name", "parent": 55, "children": [61], "start_point": {"row": 24, "column": 42}, "end_point": {"row": 24, "column": 55}}, {"id": 61, "type": "binary_expression", "text": "string& name", "parent": 60, "children": [62, 63], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 55}}, {"id": 62, "type": "identifier", "text": "string", "parent": 61, "children": [], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 49}}, {"id": 63, "type": "identifier", "text": "name", "parent": 61, "children": [], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 55}}, {"id": 64, "type": "field_identifier", "text": "MiniAppFunction", "parent": 55, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 72}}, {"id": 65, "type": "ERROR", "text": "func)", "parent": 55, "children": [66], "start_point": {"row": 24, "column": 73}, "end_point": {"row": 24, "column": 78}}, {"id": 66, "type": "identifier", "text": "func", "parent": 65, "children": [], "start_point": {"row": 24, "column": 73}, "end_point": {"row": 24, "column": 77}}, {"id": 67, "type": "field_declaration", "text": "protected:\n\n std::map< std::string, MiniAppFunction > m_Functions;", "parent": 9, "children": [68, 69, 75, 77, 78], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 28, "column": 58}}, {"id": 68, "type": "field_identifier", "text": "std", "parent": 67, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 69, "type": "ERROR", "text": "::map< std:", "parent": 67, "children": [70], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 18}}, {"id": 70, "type": "bitfield_clause", "text": ":map< std", "parent": 69, "children": [71], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 17}}, {"id": 71, "type": "binary_expression", "text": "map< std", "parent": 70, "children": [72, 73, 74], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 17}}, {"id": 72, "type": "identifier", "text": "map", "parent": 71, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 12}}, {"id": 73, "type": "<", "text": "<", "parent": 71, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 74, "type": "identifier", "text": "std", "parent": 71, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 17}}, {"id": 75, "type": "bitfield_clause", "text": ":string", "parent": 67, "children": [76], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 25}}, {"id": 76, "type": "identifier", "text": "string", "parent": 75, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 25}}, {"id": 77, "type": "field_identifier", "text": "MiniAppFunction", "parent": 67, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 42}}, {"id": 78, "type": "ERROR", "text": "> m_Functions", "parent": 67, "children": [79, 80], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 57}}, {"id": 79, "type": ">", "text": ">", "parent": 78, "children": [], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 44}}, {"id": 80, "type": "identifier", "text": "m_Functions", "parent": 78, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 57}}, {"id": 81, "type": "preproc_function_def", "text": "#define RegisterDiffusionMiniApp(functionName) \\\n static MiniAppManager::MiniAppFunction MiniApp##functionName = \\\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)\n", "parent": 0, "children": [82, 83, 84, 86], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 82, "type": "#define", "text": "#define", "parent": 81, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 83, "type": "identifier", "text": "RegisterDiffusionMiniApp", "parent": 81, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 32}}, {"id": 84, "type": "preproc_params", "text": "(functionName)", "parent": 81, "children": [85], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 46}}, {"id": 85, "type": "identifier", "text": "functionName", "parent": 84, "children": [], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 45}}, {"id": 86, "type": "preproc_arg", "text": "static MiniAppManager::MiniAppFunction MiniApp##functionName = \\\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)", "parent": 81, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 36, "column": 76}}, {"id": 87, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 38, 43, 81], "variables": [12, 16, 24, 27, 33, 41, 46, 49, 55, 67], "classes": [9, 10], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [61, 71], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 13, 15, 22, 26, 32, 35, 39, 44, 48, 54, 56, 57, 59, 62, 63, 64, 66, 68, 72, 74, 76, 77, 80, 83, 85, 87], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [14, 60, 70, 75]}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "(*MiniAppFunction)(int argc, char* argv[])"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "GetInstance()"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "RunMiniApp(int argc, char* argv[])"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "#define RegisterDiffusionMiniApp(functionName) \\\n static MiniAppManager::MiniAppFunction MiniApp#"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "MiniAppManager", "text_snippet": "struct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npubli"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <mitkCommon.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef MiniAppManager_h\n#define MiniAppManager_h\n\n#include <mitkCommon.h>\n\nstruct MiniAppManager\n{\n\npublic:\n\n typedef int (*MiniAppFunction)(int argc, char* argv[]);\n\npublic:\n\n static MiniAppManager* GetInstance();\n\n // Attention: Name of the miniApp must be the last argument!!!\n // it will be cut off from the rest of the arguments and then\n // the app will be run\n int RunMiniApp(int argc, char* argv[]);\n\n //\n // Add miniApp\n //\n MiniAppFunction AddFunction(const std::string& name, MiniAppFunction func);\n\nprotected:\n\n std::map< std::string, MiniAppFunction > m_Functions;\n};\n\n//\n// Register miniApps\n//\n#define RegisterDiffusionMiniApp(functionName) \\\n static MiniAppManager::MiniAppFunction MiniApp##functionName = \\\n MiniAppManager::GetInstance()->AddFunction(#functionName, &functionName)\n#endif\n"}
80,456
c
/* * kalmanFilter.h * * Created on: Feb 8, 2018 * Author: <NAME> */ #ifndef INC_FLIGHT_KALMANFILTER_H_ #define INC_FLIGHT_KALMANFILTER_H_ #endif /* INC_FLIGHT_KALMANFILTER_H_ */
14.77
13
(translation_unit) "/* \n * kalmanFilter.h \n * \n * Created on: Feb 8, 2018 \n * Author: <NAME> \n */ \n \n#ifndef INC_FLIGHT_KALMANFILTER_H_ \n#define INC_FLIGHT_KALMANFILTER_H_ \n \n \n \n#endif /* INC_FLIGHT_KALMANFILTER_H_ */ \n" (comment) "/* \n * kalmanFilter.h \n * \n * Created on: Feb 8, 2018 \n * Author: <NAME> \n */" (preproc_ifdef) "#ifndef INC_FLIGHT_KALMANFILTER_H_ \n#define INC_FLIGHT_KALMANFILTER_H_ \n \n \n \n#endif" (#ifndef) "#ifndef" (identifier) "INC_FLIGHT_KALMANFILTER_H_" (preproc_def) "#define INC_FLIGHT_KALMANFILTER_H_ \n" (#define) "#define" (identifier) "INC_FLIGHT_KALMANFILTER_H_" (#endif) "#endif" (comment) "/* INC_FLIGHT_KALMANFILTER_H_ */"
10
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 14.77, "nodes": 7, "errors": 0, "source_hash": "f900a0ebb0bdfad9f1577f0db039a506232dc3b8b989499fdee027fa4e309413", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef INC_FLIGHT_KALMANFILTER_H_\r\n#define INC_FLIGHT_KALMANFILTER_H_\r\n\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 12, "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": "INC_FLIGHT_KALMANFILTER_H_", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 34}}, {"id": 3, "type": "preproc_def", "text": "#define INC_FLIGHT_KALMANFILTER_H_\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "INC_FLIGHT_KALMANFILTER_H_", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 34}}, {"id": 6, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\r\n * kalmanFilter.h\r\n *\r\n * Created on: Feb 8, 2018\r\n * Author: <NAME>\r\n */\r\n\r\n#ifndef INC_FLIGHT_KALMANFILTER_H_\r\n#define INC_FLIGHT_KALMANFILTER_H_\r\n\r\n\r\n\r\n#endif /* INC_FLIGHT_KALMANFILTER_H_ */\r\n"}
80,457
c
/* * hardware.h - Rutines hardware per manegar els accesos a baix nivell */ #ifndef __HARDWARE_H__ #define __HARDWARE_H__ #include <types.h> DWord get_eflags(void); void set_eflags(void); void set_idt_reg(Register * idt); void set_gdt_reg(Register * gdt); void set_ldt_reg(Selector ldt); void set_task_reg(Selector tr); void return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip); /* * enable_int: Assigna la mascara d'interrupcions * * registro 0x21: * 7 6 5 4 3 2 1 0 * x x x x x x x x * * bit 0 : Timer * bit 1 : Keyboard * bit 2 : PIC cascading * bit 3 : 2nd Serial Port * bit 4 : 1st Serial Port * bit 5 : Reserved * bit 6 : Floppy disk * bit 7 : Reserved * * * x = 0 -> activada * x = 1 -> no activada */ void enable_int(void); void delay(void); #endif /* __HARDWARE_H__ */
22.61
36
(translation_unit) "/*\n * hardware.h - Rutines hardware per manegar els accesos a baix nivell\n */\n\n#ifndef __HARDWARE_H__\n#define __HARDWARE_H__\n\n#include <types.h>\n\nDWord get_eflags(void);\nvoid set_eflags(void);\nvoid set_idt_reg(Register * idt);\nvoid set_gdt_reg(Register * gdt);\nvoid set_ldt_reg(Selector ldt);\nvoid set_task_reg(Selector tr);\nvoid return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip);\n\n/*\n * enable_int: Assigna la mascara d'interrupcions\n *\n * registro 0x21:\n * 7 6 5 4 3 2 1 0\n * x x x x x x x x\n * \n * bit 0 : Timer\n * bit 1 : Keyboard\n * bit 2 : PIC cascading\n * bit 3 : 2nd Serial Port\n * bit 4 : 1st Serial Port\n * bit 5 : Reserved\n * bit 6 : Floppy disk\n * bit 7 : Reserved\n * \n *\n * x = 0 -> activada\n * x = 1 -> no activada\n */\n\nvoid enable_int(void);\nvoid delay(void);\n#endif /* __HARDWARE_H__ */\n" (comment) "/*\n * hardware.h - Rutines hardware per manegar els accesos a baix nivell\n */" (preproc_ifdef) "#ifndef __HARDWARE_H__\n#define __HARDWARE_H__\n\n#include <types.h>\n\nDWord get_eflags(void);\nvoid set_eflags(void);\nvoid set_idt_reg(Register * idt);\nvoid set_gdt_reg(Register * gdt);\nvoid set_ldt_reg(Selector ldt);\nvoid set_task_reg(Selector tr);\nvoid return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip);\n\n/*\n * enable_int: Assigna la mascara d'interrupcions\n *\n * registro 0x21:\n * 7 6 5 4 3 2 1 0\n * x x x x x x x x\n * \n * bit 0 : Timer\n * bit 1 : Keyboard\n * bit 2 : PIC cascading\n * bit 3 : 2nd Serial Port\n * bit 4 : 1st Serial Port\n * bit 5 : Reserved\n * bit 6 : Floppy disk\n * bit 7 : Reserved\n * \n *\n * x = 0 -> activada\n * x = 1 -> no activada\n */\n\nvoid enable_int(void);\nvoid delay(void);\n#endif" (#ifndef) "#ifndef" (identifier) "__HARDWARE_H__" (preproc_def) "#define __HARDWARE_H__\n" (#define) "#define" (identifier) "__HARDWARE_H__" (preproc_include) "#include <types.h>\n" (#include) "#include" (system_lib_string) "<types.h>" (declaration) "DWord get_eflags(void);" (type_identifier) "DWord" (function_declarator) "get_eflags(void)" (identifier) "get_eflags" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void set_eflags(void);" (primitive_type) "void" (function_declarator) "set_eflags(void)" (identifier) "set_eflags" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void set_idt_reg(Register * idt);" (primitive_type) "void" (function_declarator) "set_idt_reg(Register * idt)" (identifier) "set_idt_reg" (parameter_list) "(Register * idt)" (() "(" (parameter_declaration) "Register * idt" (type_identifier) "Register" (pointer_declarator) "* idt" (*) "*" (identifier) "idt" ()) ")" (;) ";" (declaration) "void set_gdt_reg(Register * gdt);" (primitive_type) "void" (function_declarator) "set_gdt_reg(Register * gdt)" (identifier) "set_gdt_reg" (parameter_list) "(Register * gdt)" (() "(" (parameter_declaration) "Register * gdt" (type_identifier) "Register" (pointer_declarator) "* gdt" (*) "*" (identifier) "gdt" ()) ")" (;) ";" (declaration) "void set_ldt_reg(Selector ldt);" (primitive_type) "void" (function_declarator) "set_ldt_reg(Selector ldt)" (identifier) "set_ldt_reg" (parameter_list) "(Selector ldt)" (() "(" (parameter_declaration) "Selector ldt" (type_identifier) "Selector" (identifier) "ldt" ()) ")" (;) ";" (declaration) "void set_task_reg(Selector tr);" (primitive_type) "void" (function_declarator) "set_task_reg(Selector tr)" (identifier) "set_task_reg" (parameter_list) "(Selector tr)" (() "(" (parameter_declaration) "Selector tr" (type_identifier) "Selector" (identifier) "tr" ()) ")" (;) ";" (declaration) "void return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip);" (primitive_type) "void" (function_declarator) "return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip)" (identifier) "return_gate" (parameter_list) "(Word ds, Word ss, DWord esp, Word cs, DWord eip)" (() "(" (parameter_declaration) "Word ds" (type_identifier) "Word" (identifier) "ds" (,) "," (parameter_declaration) "Word ss" (type_identifier) "Word" (identifier) "ss" (,) "," (parameter_declaration) "DWord esp" (type_identifier) "DWord" (identifier) "esp" (,) "," (parameter_declaration) "Word cs" (type_identifier) "Word" (identifier) "cs" (,) "," (parameter_declaration) "DWord eip" (type_identifier) "DWord" (identifier) "eip" ()) ")" (;) ";" (comment) "/*\n * enable_int: Assigna la mascara d'interrupcions\n *\n * registro 0x21:\n * 7 6 5 4 3 2 1 0\n * x x x x x x x x\n * \n * bit 0 : Timer\n * bit 1 : Keyboard\n * bit 2 : PIC cascading\n * bit 3 : 2nd Serial Port\n * bit 4 : 1st Serial Port\n * bit 5 : Reserved\n * bit 6 : Floppy disk\n * bit 7 : Reserved\n * \n *\n * x = 0 -> activada\n * x = 1 -> no activada\n */" (declaration) "void enable_int(void);" (primitive_type) "void" (function_declarator) "enable_int(void)" (identifier) "enable_int" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void delay(void);" (primitive_type) "void" (function_declarator) "delay(void)" (identifier) "delay" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* __HARDWARE_H__ */"
129
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 22.61, "nodes": 94, "errors": 0, "source_hash": "811ea0d886019a563c7cc19c40a4ef8788f8735b1b0cdbee4ceddf81b9a4ed6f", "categorized_nodes": 67}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __HARDWARE_H__\n#define __HARDWARE_H__\n\n#include <types.h>\n\nDWord get_eflags(void);\nvoid set_eflags(void);\nvoid set_idt_reg(Register * idt);\nvoid set_gdt_reg(Register * gdt);\nvoid set_ldt_reg(Selector ldt);\nvoid set_task_reg(Selector tr);\nvoid return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip);\n\n/*\n * enable_int: Assigna la mascara d'interrupcions\n *\n * registro 0x21:\n * 7 6 5 4 3 2 1 0\n * x x x x x x x x\n * \n * bit 0 : Timer\n * bit 1 : Keyboard\n * bit 2 : PIC cascading\n * bit 3 : 2nd Serial Port\n * bit 4 : 1st Serial Port\n * bit 5 : Reserved\n * bit 6 : Floppy disk\n * bit 7 : Reserved\n * \n *\n * x = 0 -> activada\n * x = 1 -> no activada\n */\n\nvoid enable_int(void);\nvoid delay(void);\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 16, 23, 33, 43, 51, 59, 79, 86, 93], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 40, "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": "__HARDWARE_H__", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define __HARDWARE_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": "__HARDWARE_H__", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <types.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<types.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 9, "type": "declaration", "text": "DWord get_eflags(void);", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 23}}, {"id": 10, "type": "type_identifier", "text": "DWord", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 11, "type": "function_declarator", "text": "get_eflags(void)", "parent": 9, "children": [12, 13], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 22}}, {"id": 12, "type": "identifier", "text": "get_eflags", "parent": 11, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 16}}, {"id": 13, "type": "parameter_list", "text": "(void)", "parent": 11, "children": [14], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 22}}, {"id": 14, "type": "parameter_declaration", "text": "void", "parent": 13, "children": [15], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 21}}, {"id": 16, "type": "declaration", "text": "void set_eflags(void);", "parent": 0, "children": [17, 18], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 22}}, {"id": 17, "type": "primitive_type", "text": "void", "parent": 16, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 18, "type": "function_declarator", "text": "set_eflags(void)", "parent": 16, "children": [19, 20], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 21}}, {"id": 19, "type": "identifier", "text": "set_eflags", "parent": 18, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 15}}, {"id": 20, "type": "parameter_list", "text": "(void)", "parent": 18, "children": [21], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 21}}, {"id": 21, "type": "parameter_declaration", "text": "void", "parent": 20, "children": [22], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 20}}, {"id": 22, "type": "primitive_type", "text": "void", "parent": 21, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 20}}, {"id": 23, "type": "declaration", "text": "void set_idt_reg(Register * idt);", "parent": 0, "children": [24, 25], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 33}}, {"id": 24, "type": "primitive_type", "text": "void", "parent": 23, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 25, "type": "function_declarator", "text": "set_idt_reg(Register * idt)", "parent": 23, "children": [26, 27], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 32}}, {"id": 26, "type": "identifier", "text": "set_idt_reg", "parent": 25, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 16}}, {"id": 27, "type": "parameter_list", "text": "(Register * idt)", "parent": 25, "children": [28], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 32}}, {"id": 28, "type": "parameter_declaration", "text": "Register * idt", "parent": 27, "children": [29, 30], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 31}}, {"id": 29, "type": "type_identifier", "text": "Register", "parent": 28, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 25}}, {"id": 30, "type": "pointer_declarator", "text": "* idt", "parent": 28, "children": [31, 32], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 31}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 27}}, {"id": 32, "type": "identifier", "text": "idt", "parent": 30, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 31}}, {"id": 33, "type": "declaration", "text": "void set_gdt_reg(Register * gdt);", "parent": 0, "children": [34, 35], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 33}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 35, "type": "function_declarator", "text": "set_gdt_reg(Register * gdt)", "parent": 33, "children": [36, 37], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 32}}, {"id": 36, "type": "identifier", "text": "set_gdt_reg", "parent": 35, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 16}}, {"id": 37, "type": "parameter_list", "text": "(Register * gdt)", "parent": 35, "children": [38], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 32}}, {"id": 38, "type": "parameter_declaration", "text": "Register * gdt", "parent": 37, "children": [39, 40], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 31}}, {"id": 39, "type": "type_identifier", "text": "Register", "parent": 38, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 25}}, {"id": 40, "type": "pointer_declarator", "text": "* gdt", "parent": 38, "children": [41, 42], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 31}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 27}}, {"id": 42, "type": "identifier", "text": "gdt", "parent": 40, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 31}}, {"id": 43, "type": "declaration", "text": "void set_ldt_reg(Selector ldt);", "parent": 0, "children": [44, 45], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 31}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 45, "type": "function_declarator", "text": "set_ldt_reg(Selector ldt)", "parent": 43, "children": [46, 47], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 30}}, {"id": 46, "type": "identifier", "text": "set_ldt_reg", "parent": 45, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 16}}, {"id": 47, "type": "parameter_list", "text": "(Selector ldt)", "parent": 45, "children": [48], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 30}}, {"id": 48, "type": "parameter_declaration", "text": "Selector ldt", "parent": 47, "children": [49, 50], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 29}}, {"id": 49, "type": "type_identifier", "text": "Selector", "parent": 48, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 25}}, {"id": 50, "type": "identifier", "text": "ldt", "parent": 48, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 29}}, {"id": 51, "type": "declaration", "text": "void set_task_reg(Selector tr);", "parent": 0, "children": [52, 53], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 31}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 53, "type": "function_declarator", "text": "set_task_reg(Selector tr)", "parent": 51, "children": [54, 55], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 30}}, {"id": 54, "type": "identifier", "text": "set_task_reg", "parent": 53, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 17}}, {"id": 55, "type": "parameter_list", "text": "(Selector tr)", "parent": 53, "children": [56], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 30}}, {"id": 56, "type": "parameter_declaration", "text": "Selector tr", "parent": 55, "children": [57, 58], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 29}}, {"id": 57, "type": "type_identifier", "text": "Selector", "parent": 56, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 26}}, {"id": 58, "type": "identifier", "text": "tr", "parent": 56, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 29}}, {"id": 59, "type": "declaration", "text": "void return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip);", "parent": 0, "children": [60, 61], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 66}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 61, "type": "function_declarator", "text": "return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip)", "parent": 59, "children": [62, 63], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 65}}, {"id": 62, "type": "identifier", "text": "return_gate", "parent": 61, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 16}}, {"id": 63, "type": "parameter_list", "text": "(Word ds, Word ss, DWord esp, Word cs, DWord eip)", "parent": 61, "children": [64, 67, 70, 73, 76], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 65}}, {"id": 64, "type": "parameter_declaration", "text": "Word ds", "parent": 63, "children": [65, 66], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 24}}, {"id": 65, "type": "type_identifier", "text": "Word", "parent": 64, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 21}}, {"id": 66, "type": "identifier", "text": "ds", "parent": 64, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 24}}, {"id": 67, "type": "parameter_declaration", "text": "Word ss", "parent": 63, "children": [68, 69], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 33}}, {"id": 68, "type": "type_identifier", "text": "Word", "parent": 67, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 30}}, {"id": 69, "type": "identifier", "text": "ss", "parent": 67, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 33}}, {"id": 70, "type": "parameter_declaration", "text": "DWord esp", "parent": 63, "children": [71, 72], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 44}}, {"id": 71, "type": "type_identifier", "text": "DWord", "parent": 70, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 40}}, {"id": 72, "type": "identifier", "text": "esp", "parent": 70, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 44}}, {"id": 73, "type": "parameter_declaration", "text": "Word cs", "parent": 63, "children": [74, 75], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 53}}, {"id": 74, "type": "type_identifier", "text": "Word", "parent": 73, "children": [], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 50}}, {"id": 75, "type": "identifier", "text": "cs", "parent": 73, "children": [], "start_point": {"row": 15, "column": 51}, "end_point": {"row": 15, "column": 53}}, {"id": 76, "type": "parameter_declaration", "text": "DWord eip", "parent": 63, "children": [77, 78], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 64}}, {"id": 77, "type": "type_identifier", "text": "DWord", "parent": 76, "children": [], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 60}}, {"id": 78, "type": "identifier", "text": "eip", "parent": 76, "children": [], "start_point": {"row": 15, "column": 61}, "end_point": {"row": 15, "column": 64}}, {"id": 79, "type": "declaration", "text": "void enable_int(void);", "parent": 0, "children": [80, 81], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 22}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 4}}, {"id": 81, "type": "function_declarator", "text": "enable_int(void)", "parent": 79, "children": [82, 83], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 21}}, {"id": 82, "type": "identifier", "text": "enable_int", "parent": 81, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 15}}, {"id": 83, "type": "parameter_list", "text": "(void)", "parent": 81, "children": [84], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 21}}, {"id": 84, "type": "parameter_declaration", "text": "void", "parent": 83, "children": [85], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 20}}, {"id": 85, "type": "primitive_type", "text": "void", "parent": 84, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 20}}, {"id": 86, "type": "declaration", "text": "void delay(void);", "parent": 0, "children": [87, 88], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 17}}, {"id": 87, "type": "primitive_type", "text": "void", "parent": 86, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 4}}, {"id": 88, "type": "function_declarator", "text": "delay(void)", "parent": 86, "children": [89, 90], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 16}}, {"id": 89, "type": "identifier", "text": "delay", "parent": 88, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 10}}, {"id": 90, "type": "parameter_list", "text": "(void)", "parent": 88, "children": [91], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 16}}, {"id": 91, "type": "parameter_declaration", "text": "void", "parent": 90, "children": [92], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 15}}, {"id": 92, "type": "primitive_type", "text": "void", "parent": 91, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 15}}, {"id": 93, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11, 18, 25, 35, 45, 53, 61, 81, 88], "variables": [9, 14, 16, 21, 23, 28, 33, 38, 43, 48, 51, 56, 59, 64, 67, 70, 73, 76, 79, 84, 86, 91], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 19, 26, 29, 32, 36, 39, 42, 46, 49, 50, 54, 57, 58, 62, 65, 66, 68, 69, 71, 72, 74, 75, 77, 78, 82, 89, 93], "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": "get_eflags(void)"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "set_eflags(void)"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "set_idt_reg(Register * idt)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "set_gdt_reg(Register * gdt)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "set_ldt_reg(Selector ldt)"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "set_task_reg(Selector tr)"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "enable_int(void)"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "delay(void)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <types.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * hardware.h - Rutines hardware per manegar els accesos a baix nivell\n */\n\n#ifndef __HARDWARE_H__\n#define __HARDWARE_H__\n\n#include <types.h>\n\nDWord get_eflags(void);\nvoid set_eflags(void);\nvoid set_idt_reg(Register * idt);\nvoid set_gdt_reg(Register * gdt);\nvoid set_ldt_reg(Selector ldt);\nvoid set_task_reg(Selector tr);\nvoid return_gate(Word ds, Word ss, DWord esp, Word cs, DWord eip);\n\n/*\n * enable_int: Assigna la mascara d'interrupcions\n *\n * registro 0x21:\n * 7 6 5 4 3 2 1 0\n * x x x x x x x x\n * \n * bit 0 : Timer\n * bit 1 : Keyboard\n * bit 2 : PIC cascading\n * bit 3 : 2nd Serial Port\n * bit 4 : 1st Serial Port\n * bit 5 : Reserved\n * bit 6 : Floppy disk\n * bit 7 : Reserved\n * \n *\n * x = 0 -> activada\n * x = 1 -> no activada\n */\n\nvoid enable_int(void);\nvoid delay(void);\n#endif /* __HARDWARE_H__ */\n"}
80,458
c
#ifndef __LIBSGM_CONFIG_H__ #define __LIBSGM_CONFIG_H__ /* #undef LIBSGM_SHARED */ #define LIBSGM_VERSION #define LIBSGM_VERSION_MAJOR #define LIBSGM_VERSION_MINOR #define LIBSGM_VERSION_PATCH /* #undef BUILD_OPENCV_WRAPPER */ #endif // __LIBSGM_CONFIG_H__
28
9
(translation_unit) "#ifndef __LIBSGM_CONFIG_H__\n#define __LIBSGM_CONFIG_H__\n\n/* #undef LIBSGM_SHARED */\n\n#define LIBSGM_VERSION \n#define LIBSGM_VERSION_MAJOR \n#define LIBSGM_VERSION_MINOR \n#define LIBSGM_VERSION_PATCH \n\n/* #undef BUILD_OPENCV_WRAPPER */\n\n#endif // __LIBSGM_CONFIG_H__\n" (preproc_ifdef) "#ifndef __LIBSGM_CONFIG_H__\n#define __LIBSGM_CONFIG_H__\n\n/* #undef LIBSGM_SHARED */\n\n#define LIBSGM_VERSION \n#define LIBSGM_VERSION_MAJOR \n#define LIBSGM_VERSION_MINOR \n#define LIBSGM_VERSION_PATCH \n\n/* #undef BUILD_OPENCV_WRAPPER */\n\n#endif" (#ifndef) "#ifndef" (identifier) "__LIBSGM_CONFIG_H__" (preproc_def) "#define __LIBSGM_CONFIG_H__\n" (#define) "#define" (identifier) "__LIBSGM_CONFIG_H__" (comment) "/* #undef LIBSGM_SHARED */" (preproc_def) "#define LIBSGM_VERSION \n#define LIBSGM_VERSION_MAJOR \n" (#define) "#define" (identifier) "LIBSGM_VERSION" (preproc_arg) "#define LIBSGM_VERSION_MAJOR " (preproc_def) "#define LIBSGM_VERSION_MINOR \n#define LIBSGM_VERSION_PATCH \n" (#define) "#define" (identifier) "LIBSGM_VERSION_MINOR" (preproc_arg) "#define LIBSGM_VERSION_PATCH " (comment) "/* #undef BUILD_OPENCV_WRAPPER */" (#endif) "#endif" (comment) "// __LIBSGM_CONFIG_H__"
19
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.0, "nodes": 15, "errors": 0, "source_hash": "b9be80c19341f757a0222073bef167bbef3714d4cb05f091e8468e9add483e2d", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __LIBSGM_CONFIG_H__\n#define __LIBSGM_CONFIG_H__\n\n/* #undef LIBSGM_SHARED */\n\n#define LIBSGM_VERSION \n#define LIBSGM_VERSION_MAJOR \n#define LIBSGM_VERSION_MINOR \n#define LIBSGM_VERSION_PATCH \n\n/* #undef BUILD_OPENCV_WRAPPER */\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "__LIBSGM_CONFIG_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define __LIBSGM_CONFIG_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": "__LIBSGM_CONFIG_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 27}}, {"id": 6, "type": "preproc_def", "text": "#define LIBSGM_VERSION \n#define LIBSGM_VERSION_MAJOR \n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 8, "type": "identifier", "text": "LIBSGM_VERSION", "parent": 6, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 22}}, {"id": 9, "type": "preproc_arg", "text": "#define LIBSGM_VERSION_MAJOR ", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 29}}, {"id": 10, "type": "preproc_def", "text": "#define LIBSGM_VERSION_MINOR \n#define LIBSGM_VERSION_PATCH \n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 12, "type": "identifier", "text": "LIBSGM_VERSION_MINOR", "parent": 10, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 28}}, {"id": 13, "type": "preproc_arg", "text": "#define LIBSGM_VERSION_PATCH ", "parent": 10, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 29}}, {"id": 14, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef __LIBSGM_CONFIG_H__\n#define __LIBSGM_CONFIG_H__\n\n/* #undef LIBSGM_SHARED */\n\n#define LIBSGM_VERSION \n#define LIBSGM_VERSION_MAJOR \n#define LIBSGM_VERSION_MINOR \n#define LIBSGM_VERSION_PATCH \n\n/* #undef BUILD_OPENCV_WRAPPER */\n\n#endif // __LIBSGM_CONFIG_H__\n"}
80,459
c
#include <stdio.h> #include <stdlib.h> #include <string.h> void stringup(char destino[],char origem []) { destino=strupr(origem); printf("%s", destino); } int main() { char s1[200],s2[200]; puts("Digite um texto:"); gets(s1); stringup(s2,s1); return 0; }
16.69
16
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nvoid stringup(char destino[],char origem [])\n{\n destino=strupr(origem);\n printf("%s", destino);\n}\nint main()\n{\n char s1[200],s2[200];\n puts("Digite um texto:");\n gets(s1);\n\n stringup(s2,s1);\n\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (function_definition) "void stringup(char destino[],char origem [])\n{\n destino=strupr(origem);\n printf("%s", destino);\n}" (primitive_type) "void" (function_declarator) "stringup(char destino[],char origem [])" (identifier) "stringup" (parameter_list) "(char destino[],char origem [])" (() "(" (parameter_declaration) "char destino[]" (primitive_type) "char" (array_declarator) "destino[]" (identifier) "destino" ([) "[" (]) "]" (,) "," (parameter_declaration) "char origem []" (primitive_type) "char" (array_declarator) "origem []" (identifier) "origem" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n destino=strupr(origem);\n printf("%s", destino);\n}" ({) "{" (expression_statement) "destino=strupr(origem);" (assignment_expression) "destino=strupr(origem)" (identifier) "destino" (=) "=" (call_expression) "strupr(origem)" (identifier) "strupr" (argument_list) "(origem)" (() "(" (identifier) "origem" ()) ")" (;) ";" (expression_statement) "printf("%s", destino);" (call_expression) "printf("%s", destino)" (identifier) "printf" (argument_list) "("%s", destino)" (() "(" (string_literal) ""%s"" (") """ (string_content) "%s" (") """ (,) "," (identifier) "destino" ()) ")" (;) ";" (}) "}" (function_definition) "int main()\n{\n char s1[200],s2[200];\n puts("Digite um texto:");\n gets(s1);\n\n stringup(s2,s1);\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n char s1[200],s2[200];\n puts("Digite um texto:");\n gets(s1);\n\n stringup(s2,s1);\n\n return 0;\n}" ({) "{" (declaration) "char s1[200],s2[200];" (primitive_type) "char" (array_declarator) "s1[200]" (identifier) "s1" ([) "[" (number_literal) "200" (]) "]" (,) "," (array_declarator) "s2[200]" (identifier) "s2" ([) "[" (number_literal) "200" (]) "]" (;) ";" (expression_statement) "puts("Digite um texto:");" (call_expression) "puts("Digite um texto:")" (identifier) "puts" (argument_list) "("Digite um texto:")" (() "(" (string_literal) ""Digite um texto:"" (") """ (string_content) "Digite um texto:" (") """ ()) ")" (;) ";" (expression_statement) "gets(s1);" (call_expression) "gets(s1)" (identifier) "gets" (argument_list) "(s1)" (() "(" (identifier) "s1" ()) ")" (;) ";" (expression_statement) "stringup(s2,s1);" (call_expression) "stringup(s2,s1)" (identifier) "stringup" (argument_list) "(s2,s1)" (() "(" (identifier) "s2" (,) "," (identifier) "s1" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
114
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.69, "nodes": 62, "errors": 0, "source_hash": "98a2490563cb9e1e4aadf0aaef3a1b57cbf9c73b727318579873aa3a9495f680", "categorized_nodes": 45}, "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": "function_definition", "text": "void stringup(char destino[],char origem [])\n{\n destino=strupr(origem);\n printf(\"%s\", destino);\n}", "parent": null, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 7, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "stringup(char destino[],char origem [])", "parent": 9, "children": [12, 13], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 44}}, {"id": 12, "type": "identifier", "text": "stringup", "parent": 11, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 13}}, {"id": 13, "type": "parameter_list", "text": "(char destino[],char origem [])", "parent": 11, "children": [14, 18], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 44}}, {"id": 14, "type": "parameter_declaration", "text": "char destino[]", "parent": 13, "children": [15, 16], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 28}}, {"id": 15, "type": "primitive_type", "text": "char", "parent": 14, "children": [], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 18}}, {"id": 16, "type": "array_declarator", "text": "destino[]", "parent": 14, "children": [17], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 28}}, {"id": 17, "type": "identifier", "text": "destino", "parent": 16, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 26}}, {"id": 18, "type": "parameter_declaration", "text": "char origem []", "parent": 13, "children": [19, 20], "start_point": {"row": 3, "column": 29}, "end_point": {"row": 3, "column": 43}}, {"id": 19, "type": "primitive_type", "text": "char", "parent": 18, "children": [], "start_point": {"row": 3, "column": 29}, "end_point": {"row": 3, "column": 33}}, {"id": 20, "type": "array_declarator", "text": "origem []", "parent": 18, "children": [21], "start_point": {"row": 3, "column": 34}, "end_point": {"row": 3, "column": 43}}, {"id": 21, "type": "identifier", "text": "origem", "parent": 20, "children": [], "start_point": {"row": 3, "column": 34}, "end_point": {"row": 3, "column": 40}}, {"id": 22, "type": "assignment_expression", "text": "destino=strupr(origem)", "parent": 9, "children": [23, 24, 25], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 26}}, {"id": 23, "type": "identifier", "text": "destino", "parent": 22, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 11}}, {"id": 24, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 12}}, {"id": 25, "type": "call_expression", "text": "strupr(origem)", "parent": 22, "children": [26, 27], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 26}}, {"id": 26, "type": "identifier", "text": "strupr", "parent": 25, "children": [], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 18}}, {"id": 27, "type": "argument_list", "text": "(origem)", "parent": 25, "children": [28], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 26}}, {"id": 28, "type": "identifier", "text": "origem", "parent": 27, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 25}}, {"id": 29, "type": "call_expression", "text": "printf(\"%s\", destino)", "parent": 9, "children": [30, 31], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 25}}, {"id": 30, "type": "identifier", "text": "printf", "parent": 29, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 10}}, {"id": 31, "type": "argument_list", "text": "(\"%s\", destino)", "parent": 29, "children": [32, 33], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 25}}, {"id": 32, "type": "string_literal", "text": "\"%s\"", "parent": 31, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 15}}, {"id": 33, "type": "identifier", "text": "destino", "parent": 31, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 24}}, {"id": 34, "type": "function_definition", "text": "int main()\n{\n char s1[200],s2[200];\n puts(\"Digite um texto:\");\n gets(s1);\n\n stringup(s2,s1);\n\n return 0;\n}", "parent": null, "children": [35, 36], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 36, "type": "function_declarator", "text": "main()", "parent": 34, "children": [37, 38], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 10}}, {"id": 37, "type": "identifier", "text": "main", "parent": 36, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 8}}, {"id": 38, "type": "parameter_list", "text": "()", "parent": 36, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 10}}, {"id": 39, "type": "declaration", "text": "char s1[200],s2[200];", "parent": 34, "children": [40, 41, 44], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 25}}, {"id": 40, "type": "primitive_type", "text": "char", "parent": 39, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 8}}, {"id": 41, "type": "array_declarator", "text": "s1[200]", "parent": 39, "children": [42, 43], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 16}}, {"id": 42, "type": "identifier", "text": "s1", "parent": 41, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 11}}, {"id": 43, "type": "number_literal", "text": "200", "parent": 41, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 15}}, {"id": 44, "type": "array_declarator", "text": "s2[200]", "parent": 39, "children": [45, 46], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 24}}, {"id": 45, "type": "identifier", "text": "s2", "parent": 44, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 19}}, {"id": 46, "type": "number_literal", "text": "200", "parent": 44, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 23}}, {"id": 47, "type": "call_expression", "text": "puts(\"Digite um texto:\")", "parent": 34, "children": [48, 49], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 28}}, {"id": 48, "type": "identifier", "text": "puts", "parent": 47, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 8}}, {"id": 49, "type": "argument_list", "text": "(\"Digite um texto:\")", "parent": 47, "children": [50], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 28}}, {"id": 50, "type": "string_literal", "text": "\"Digite um texto:\"", "parent": 49, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 27}}, {"id": 51, "type": "call_expression", "text": "gets(s1)", "parent": 34, "children": [52, 53], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 52, "type": "identifier", "text": "gets", "parent": 51, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 8}}, {"id": 53, "type": "argument_list", "text": "(s1)", "parent": 51, "children": [54], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 12}}, {"id": 54, "type": "identifier", "text": "s1", "parent": 53, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 11}}, {"id": 55, "type": "call_expression", "text": "stringup(s2,s1)", "parent": 34, "children": [56, 57], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 19}}, {"id": 56, "type": "identifier", "text": "stringup", "parent": 55, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 57, "type": "argument_list", "text": "(s2,s1)", "parent": 55, "children": [58, 59], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 19}}, {"id": 58, "type": "identifier", "text": "s2", "parent": 57, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 15}}, {"id": 59, "type": "identifier", "text": "s1", "parent": 57, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 18}}, {"id": 60, "type": "return_statement", "text": "return 0;", "parent": 34, "children": [61], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 13}}, {"id": 61, "type": "number_literal", "text": "0", "parent": 60, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 12}}]}, "node_categories": {"declarations": {"functions": [9, 11, 34, 36], "variables": [14, 18, 39], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [25, 29, 47, 51, 55], "assignments": [22], "loops": [], "conditionals": [12, 17, 21, 23, 26, 28, 30, 33, 37, 42, 45, 48, 52, 54, 56, 58, 59], "returns": [60], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 32, 43, 46, 50, 61], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "stringup", "text_snippet": "void stringup(char destino[],char origem [])\n{\n destino=strupr(origem);\n printf(\"%s\", destino)"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "stringup(char destino[],char origem [])"}, {"node_id": 34, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n char s1[200],s2[200];\n puts(\"Digite um texto:\");\n gets(s1);\n\n stringup(s2,"}, {"node_id": 36, "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 <string.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nvoid stringup(char destino[],char origem [])\n{\n destino=strupr(origem);\n printf(\"%s\", destino);\n}\nint main()\n{\n char s1[200],s2[200];\n puts(\"Digite um texto:\");\n gets(s1);\n\n stringup(s2,s1);\n\n return 0;\n}\n"}
80,460
c
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_ #include "third_party/blink/renderer/bindings/core/v8/v8_object_builder.h" #include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/frame/report_body.h" namespace blink { class CORE_EXPORT TestReportBody : public ReportBody { DEFINE_WRAPPERTYPEINFO(); public: TestReportBody(const String& message) : message_(message) {} ~TestReportBody() override = default; String message() const { return message_; } void BuildJSONValue(V8ObjectBuilder& builder) const override; private: const String message_; }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_
43.95
21
(translation_unit) "// Copyright 2018 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n\n#include "third_party/blink/renderer/bindings/core/v8/v8_object_builder.h"\n#include "third_party/blink/renderer/core/core_export.h"\n#include "third_party/blink/renderer/core/frame/report_body.h"\n\nnamespace blink {\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();\n\n public:\n TestReportBody(const String& message) : message_(message) {}\n\n ~TestReportBody() override = default;\n\n String message() const { return message_; }\n\n void BuildJSONValue(V8ObjectBuilder& builder) const override;\n\n private:\n const String message_;\n};\n\n} // namespace blink\n\n#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n" (comment) "// Copyright 2018 The Chromium Authors. All rights reserved." (comment) "// Use of this source code is governed by a BSD-style license that can be" (comment) "// found in the LICENSE file." (preproc_ifdef) "#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n\n#include "third_party/blink/renderer/bindings/core/v8/v8_object_builder.h"\n#include "third_party/blink/renderer/core/core_export.h"\n#include "third_party/blink/renderer/core/frame/report_body.h"\n\nnamespace blink {\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();\n\n public:\n TestReportBody(const String& message) : message_(message) {}\n\n ~TestReportBody() override = default;\n\n String message() const { return message_; }\n\n void BuildJSONValue(V8ObjectBuilder& builder) const override;\n\n private:\n const String message_;\n};\n\n} // namespace blink\n\n#endif" (#ifndef) "#ifndef" (identifier) "THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_" (preproc_def) "#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n" (#define) "#define" (identifier) "THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_" (preproc_include) "#include "third_party/blink/renderer/bindings/core/v8/v8_object_builder.h"\n" (#include) "#include" (string_literal) ""third_party/blink/renderer/bindings/core/v8/v8_object_builder.h"" (") """ (string_content) "third_party/blink/renderer/bindings/core/v8/v8_object_builder.h" (") """ (preproc_include) "#include "third_party/blink/renderer/core/core_export.h"\n" (#include) "#include" (string_literal) ""third_party/blink/renderer/core/core_export.h"" (") """ (string_content) "third_party/blink/renderer/core/core_export.h" (") """ (preproc_include) "#include "third_party/blink/renderer/core/frame/report_body.h"\n" (#include) "#include" (string_literal) ""third_party/blink/renderer/core/frame/report_body.h"" (") """ (string_content) "third_party/blink/renderer/core/frame/report_body.h" (") """ (function_definition) "namespace blink {\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();\n\n public:\n TestReportBody(const String& message) : message_(message) {}\n\n ~TestReportBody() override = default;\n\n String message() const { return message_; }\n\n void BuildJSONValue(V8ObjectBuilder& builder) const override;\n\n private:\n const String message_;\n}" (type_identifier) "namespace" (identifier) "blink" (compound_statement) "{\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();\n\n public:\n TestReportBody(const String& message) : message_(message) {}\n\n ~TestReportBody() override = default;\n\n String message() const { return message_; }\n\n void BuildJSONValue(V8ObjectBuilder& builder) const override;\n\n private:\n const String message_;\n}" ({) "{" (declaration) "class CORE_EXPORT" (type_identifier) "class" (identifier) "CORE_EXPORT" (;) "" (labeled_statement) "TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();" (statement_identifier) "TestReportBody" (:) ":" (declaration) "public ReportBody {\n DEFINE_WRAPPERTYPEINFO();" (type_identifier) "public" (ERROR) "ReportBody {" (identifier) "ReportBody" ({) "{" (function_declarator) "DEFINE_WRAPPERTYPEINFO()" (identifier) "DEFINE_WRAPPERTYPEINFO" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n TestReportBody(const String& message) : message_(message) {}" (statement_identifier) "public" (:) ":" (ERROR) "TestReportBody(const String& message) : message_(message)" (macro_type_specifier) "TestReportBody(const String& message)" (identifier) "TestReportBody" (() "(" (type_descriptor) "const String" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "& message" (&) "&" (identifier) "message" ()) ")" (ERROR) ":" (:) ":" (function_declarator) "message_(message)" (identifier) "message_" (parameter_list) "(message)" (() "(" (parameter_declaration) "message" (type_identifier) "message" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) "~TestReportBody() override = default;" (unary_expression) "~TestReportBody() override = default" (~) "~" (assignment_expression) "TestReportBody() override = default" (call_expression) "TestReportBody()" (identifier) "TestReportBody" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (=) "=" (identifier) "default" (;) ";" (ERROR) "String message() const" (type_identifier) "String" (function_declarator) "message()" (identifier) "message" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return message_; }" ({) "{" (return_statement) "return message_;" (return) "return" (identifier) "message_" (;) ";" (}) "}" (ERROR) "void BuildJSONValue(V8ObjectBuilder& builder) const override" (primitive_type) "void" (function_declarator) "BuildJSONValue(V8ObjectBuilder& builder) const override" (identifier) "BuildJSONValue" (parameter_list) "(V8ObjectBuilder& builder)" (() "(" (parameter_declaration) "V8ObjectBuilder& builder" (type_identifier) "V8ObjectBuilder" (ERROR) "&" (&) "&" (identifier) "builder" ()) ")" (identifier) "const" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n const String message_;" (statement_identifier) "private" (:) ":" (declaration) "const String message_;" (type_qualifier) "const" (const) "const" (type_identifier) "String" (identifier) "message_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}" (comment) "// namespace blink" (#endif) "#endif" (comment) "// THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_"
141
9
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 43.95, "nodes": 72, "errors": 0, "source_hash": "5d50cfb6cdea75a1820b20bf046eae3eac9f84a4c762fe3b4ff119edbdd3129f", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n\n#include \"third_party/blink/renderer/bindings/core/v8/v8_object_builder.h\"\n#include \"third_party/blink/renderer/core/core_export.h\"\n#include \"third_party/blink/renderer/core/frame/report_body.h\"\n\nnamespace blink {\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();\n\n public:\n TestReportBody(const String& message) : message_(message) {}\n\n ~TestReportBody() override = default;\n\n String message() const { return message_; }\n\n void BuildJSONValue(V8ObjectBuilder& builder) const override;\n\n private:\n const String message_;\n};\n\n} // namespace blink\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 71], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 31, "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": "THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 65}}, {"id": 3, "type": "preproc_def", "text": "#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_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": "THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 65}}, {"id": 6, "type": "preproc_include", "text": "#include \"third_party/blink/renderer/bindings/core/v8/v8_object_builder.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": "\"third_party/blink/renderer/bindings/core/v8/v8_object_builder.h\"", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 74}}, {"id": 9, "type": "preproc_include", "text": "#include \"third_party/blink/renderer/core/core_export.h\"\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": "string_literal", "text": "\"third_party/blink/renderer/core/core_export.h\"", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 56}}, {"id": 12, "type": "preproc_include", "text": "#include \"third_party/blink/renderer/core/frame/report_body.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": "string_literal", "text": "\"third_party/blink/renderer/core/frame/report_body.h\"", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 62}}, {"id": 15, "type": "function_definition", "text": "namespace blink {\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();\n\n public:\n TestReportBody(const String& message) : message_(message) {}\n\n ~TestReportBody() override = default;\n\n String message() const { return message_; }\n\n void BuildJSONValue(V8ObjectBuilder& builder) const override;\n\n private:\n const String message_;\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 17, "type": "identifier", "text": "blink", "parent": 15, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 15}}, {"id": 18, "type": "declaration", "text": "class CORE_EXPORT", "parent": 15, "children": [19], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 17}}, {"id": 19, "type": "identifier", "text": "CORE_EXPORT", "parent": 18, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 17}}, {"id": 20, "type": "labeled_statement", "text": "TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();", "parent": 15, "children": [21, 22], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 14, "column": 27}}, {"id": 21, "type": "statement_identifier", "text": "TestReportBody", "parent": 20, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 32}}, {"id": 22, "type": "declaration", "text": "public ReportBody {\n DEFINE_WRAPPERTYPEINFO();", "parent": 20, "children": [23, 25], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 14, "column": 27}}, {"id": 23, "type": "ERROR", "text": "ReportBody {", "parent": 22, "children": [24], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 54}}, {"id": 24, "type": "identifier", "text": "ReportBody", "parent": 23, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 52}}, {"id": 25, "type": "function_declarator", "text": "DEFINE_WRAPPERTYPEINFO()", "parent": 22, "children": [26, 27], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 26}}, {"id": 26, "type": "identifier", "text": "DEFINE_WRAPPERTYPEINFO", "parent": 25, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 24}}, {"id": 27, "type": "parameter_list", "text": "()", "parent": 25, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 26}}, {"id": 28, "type": "labeled_statement", "text": "public:\n TestReportBody(const String& message) : message_(message) {}", "parent": 15, "children": [29], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 17, "column": 62}}, {"id": 29, "type": "ERROR", "text": "TestReportBody(const String& message) : message_(message)", "parent": 28, "children": [30, 36], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 59}}, {"id": 30, "type": "macro_type_specifier", "text": "TestReportBody(const String& message)", "parent": 29, "children": [31, 32, 34], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 39}}, {"id": 31, "type": "identifier", "text": "TestReportBody", "parent": 30, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 16}}, {"id": 32, "type": "type_descriptor", "text": "const String", "parent": 30, "children": [33], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 29}}, {"id": 33, "type": "type_identifier", "text": "String", "parent": 32, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 29}}, {"id": 34, "type": "ERROR", "text": "& message", "parent": 30, "children": [35], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 38}}, {"id": 35, "type": "identifier", "text": "message", "parent": 34, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 38}}, {"id": 36, "type": "function_declarator", "text": "message_(message)", "parent": 29, "children": [37, 38], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 59}}, {"id": 37, "type": "identifier", "text": "message_", "parent": 36, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 50}}, {"id": 38, "type": "parameter_list", "text": "(message)", "parent": 36, "children": [39], "start_point": {"row": 17, "column": 50}, "end_point": {"row": 17, "column": 59}}, {"id": 39, "type": "parameter_declaration", "text": "message", "parent": 38, "children": [40], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 58}}, {"id": 40, "type": "type_identifier", "text": "message", "parent": 39, "children": [], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 58}}, {"id": 41, "type": "unary_expression", "text": "~TestReportBody() override = default", "parent": 15, "children": [42, 43], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 38}}, {"id": 42, "type": "~", "text": "~", "parent": 41, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 3}}, {"id": 43, "type": "assignment_expression", "text": "TestReportBody() override = default", "parent": 41, "children": [44, 47, 49, 50], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 38}}, {"id": 44, "type": "call_expression", "text": "TestReportBody()", "parent": 43, "children": [45, 46], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 19}}, {"id": 45, "type": "identifier", "text": "TestReportBody", "parent": 44, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 17}}, {"id": 46, "type": "argument_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 19}}, {"id": 47, "type": "ERROR", "text": "override", "parent": 43, "children": [48], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 28}}, {"id": 48, "type": "identifier", "text": "override", "parent": 47, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 28}}, {"id": 49, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 30}}, {"id": 50, "type": "identifier", "text": "default", "parent": 43, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 38}}, {"id": 51, "type": "ERROR", "text": "String message() const", "parent": 15, "children": [52, 53], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 24}}, {"id": 52, "type": "type_identifier", "text": "String", "parent": 51, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 53, "type": "function_declarator", "text": "message()", "parent": 51, "children": [54, 55], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 18}}, {"id": 54, "type": "identifier", "text": "message", "parent": 53, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 16}}, {"id": 55, "type": "parameter_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 18}}, {"id": 56, "type": "return_statement", "text": "return message_;", "parent": 15, "children": [57], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 43}}, {"id": 57, "type": "identifier", "text": "message_", "parent": 56, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 42}}, {"id": 58, "type": "ERROR", "text": "void BuildJSONValue(V8ObjectBuilder& builder) const override", "parent": 15, "children": [59, 60], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 62}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 60, "type": "function_declarator", "text": "BuildJSONValue(V8ObjectBuilder& builder) const override", "parent": 58, "children": [61, 62, 66], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 62}}, {"id": 61, "type": "identifier", "text": "BuildJSONValue", "parent": 60, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 21}}, {"id": 62, "type": "parameter_list", "text": "(V8ObjectBuilder& builder)", "parent": 60, "children": [63], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 47}}, {"id": 63, "type": "parameter_declaration", "text": "V8ObjectBuilder& builder", "parent": 62, "children": [64, 65], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 46}}, {"id": 64, "type": "type_identifier", "text": "V8ObjectBuilder", "parent": 63, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 37}}, {"id": 65, "type": "identifier", "text": "builder", "parent": 63, "children": [], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 46}}, {"id": 66, "type": "identifier", "text": "override", "parent": 60, "children": [], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 62}}, {"id": 67, "type": "labeled_statement", "text": "private:\n const String message_;", "parent": 15, "children": [68], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 26, "column": 24}}, {"id": 68, "type": "declaration", "text": "const String message_;", "parent": 67, "children": [69, 70], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 24}}, {"id": 69, "type": "type_identifier", "text": "String", "parent": 68, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 14}}, {"id": 70, "type": "identifier", "text": "message_", "parent": 68, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 23}}, {"id": 71, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 25, 36, 53, 60], "variables": [18, 22, 39, 63, 68], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [41, 44], "assignments": [43], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 21, 24, 26, 30, 31, 33, 35, 37, 40, 45, 48, 50, 52, 54, 57, 61, 64, 65, 66, 69, 70, 71], "returns": [56], "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": "CORE_EXPORT", "text_snippet": "namespace blink {\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO()"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "DEFINE_WRAPPERTYPEINFO()"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "message_(message)"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "message()"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "BuildJSONValue(V8ObjectBuilder& builder) const override"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"third_party/blink/renderer/bindings/core/v8/v8_object_builder.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"third_party/blink/renderer/core/core_export.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"third_party/blink/renderer/core/frame/report_body.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "// Copyright 2018 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n\n#include \"third_party/blink/renderer/bindings/core/v8/v8_object_builder.h\"\n#include \"third_party/blink/renderer/core/core_export.h\"\n#include \"third_party/blink/renderer/core/frame/report_body.h\"\n\nnamespace blink {\n\nclass CORE_EXPORT TestReportBody : public ReportBody {\n DEFINE_WRAPPERTYPEINFO();\n\n public:\n TestReportBody(const String& message) : message_(message) {}\n\n ~TestReportBody() override = default;\n\n String message() const { return message_; }\n\n void BuildJSONValue(V8ObjectBuilder& builder) const override;\n\n private:\n const String message_;\n};\n\n} // namespace blink\n\n#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_TEST_REPORT_BODY_H_\n"}
80,461
c
#ifndef COLORS_H_INCLUDED #define COLORS_H_INCLUDED #define TRICOLOR_VOLUME_BAR extern int attr_mixer_frame; extern int attr_mixer_text; extern int attr_mixer_active; extern int attr_ctl_frame; extern int attr_ctl_mute; extern int attr_ctl_nomute; extern int attr_ctl_capture; extern int attr_ctl_nocapture; extern int attr_ctl_label; extern int attr_ctl_label_focus; extern int attr_ctl_mark_focus; extern int attr_ctl_bar_lo; #ifdef TRICOLOR_VOLUME_BAR extern int attr_ctl_bar_mi; extern int attr_ctl_bar_hi; #endif extern int attr_ctl_inactive; extern int attr_ctl_label_inactive; extern int attr_errormsg; extern int attr_infomsg; extern int attr_textbox; extern int attr_textfield; extern int attr_menu; extern int attr_menu_selected; void init_colors(int use_color); #endif
25.9
29
(translation_unit) "#ifndef COLORS_H_INCLUDED\n#define COLORS_H_INCLUDED\n\n#define TRICOLOR_VOLUME_BAR\n\nextern int attr_mixer_frame;\nextern int attr_mixer_text;\nextern int attr_mixer_active;\nextern int attr_ctl_frame;\nextern int attr_ctl_mute;\nextern int attr_ctl_nomute;\nextern int attr_ctl_capture;\nextern int attr_ctl_nocapture;\nextern int attr_ctl_label;\nextern int attr_ctl_label_focus;\nextern int attr_ctl_mark_focus;\nextern int attr_ctl_bar_lo;\n#ifdef TRICOLOR_VOLUME_BAR\nextern int attr_ctl_bar_mi;\nextern int attr_ctl_bar_hi;\n#endif\nextern int attr_ctl_inactive;\nextern int attr_ctl_label_inactive;\nextern int attr_errormsg;\nextern int attr_infomsg;\nextern int attr_textbox;\nextern int attr_textfield;\nextern int attr_menu;\nextern int attr_menu_selected;\n\nvoid init_colors(int use_color);\n\n#endif\n" (preproc_ifdef) "#ifndef COLORS_H_INCLUDED\n#define COLORS_H_INCLUDED\n\n#define TRICOLOR_VOLUME_BAR\n\nextern int attr_mixer_frame;\nextern int attr_mixer_text;\nextern int attr_mixer_active;\nextern int attr_ctl_frame;\nextern int attr_ctl_mute;\nextern int attr_ctl_nomute;\nextern int attr_ctl_capture;\nextern int attr_ctl_nocapture;\nextern int attr_ctl_label;\nextern int attr_ctl_label_focus;\nextern int attr_ctl_mark_focus;\nextern int attr_ctl_bar_lo;\n#ifdef TRICOLOR_VOLUME_BAR\nextern int attr_ctl_bar_mi;\nextern int attr_ctl_bar_hi;\n#endif\nextern int attr_ctl_inactive;\nextern int attr_ctl_label_inactive;\nextern int attr_errormsg;\nextern int attr_infomsg;\nextern int attr_textbox;\nextern int attr_textfield;\nextern int attr_menu;\nextern int attr_menu_selected;\n\nvoid init_colors(int use_color);\n\n#endif" (#ifndef) "#ifndef" (identifier) "COLORS_H_INCLUDED" (preproc_def) "#define COLORS_H_INCLUDED\n" (#define) "#define" (identifier) "COLORS_H_INCLUDED" (preproc_def) "#define TRICOLOR_VOLUME_BAR\n" (#define) "#define" (identifier) "TRICOLOR_VOLUME_BAR" (declaration) "extern int attr_mixer_frame;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_mixer_frame" (;) ";" (declaration) "extern int attr_mixer_text;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_mixer_text" (;) ";" (declaration) "extern int attr_mixer_active;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_mixer_active" (;) ";" (declaration) "extern int attr_ctl_frame;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_frame" (;) ";" (declaration) "extern int attr_ctl_mute;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_mute" (;) ";" (declaration) "extern int attr_ctl_nomute;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_nomute" (;) ";" (declaration) "extern int attr_ctl_capture;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_capture" (;) ";" (declaration) "extern int attr_ctl_nocapture;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_nocapture" (;) ";" (declaration) "extern int attr_ctl_label;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_label" (;) ";" (declaration) "extern int attr_ctl_label_focus;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_label_focus" (;) ";" (declaration) "extern int attr_ctl_mark_focus;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_mark_focus" (;) ";" (declaration) "extern int attr_ctl_bar_lo;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_bar_lo" (;) ";" (preproc_ifdef) "#ifdef TRICOLOR_VOLUME_BAR\nextern int attr_ctl_bar_mi;\nextern int attr_ctl_bar_hi;\n#endif" (#ifdef) "#ifdef" (identifier) "TRICOLOR_VOLUME_BAR" (declaration) "extern int attr_ctl_bar_mi;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_bar_mi" (;) ";" (declaration) "extern int attr_ctl_bar_hi;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_bar_hi" (;) ";" (#endif) "#endif" (declaration) "extern int attr_ctl_inactive;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_inactive" (;) ";" (declaration) "extern int attr_ctl_label_inactive;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_ctl_label_inactive" (;) ";" (declaration) "extern int attr_errormsg;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_errormsg" (;) ";" (declaration) "extern int attr_infomsg;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_infomsg" (;) ";" (declaration) "extern int attr_textbox;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_textbox" (;) ";" (declaration) "extern int attr_textfield;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_textfield" (;) ";" (declaration) "extern int attr_menu;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_menu" (;) ";" (declaration) "extern int attr_menu_selected;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "attr_menu_selected" (;) ";" (declaration) "void init_colors(int use_color);" (primitive_type) "void" (function_declarator) "init_colors(int use_color)" (identifier) "init_colors" (parameter_list) "(int use_color)" (() "(" (parameter_declaration) "int use_color" (primitive_type) "int" (identifier) "use_color" ()) ")" (;) ";" (#endif) "#endif"
158
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.9, "nodes": 132, "errors": 0, "source_hash": "2a2077ffe11757de98d0a3f844e3d75f078a68040a70de14b0a0218a19b9c820", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef COLORS_H_INCLUDED\n#define COLORS_H_INCLUDED\n\n#define TRICOLOR_VOLUME_BAR\n\nextern int attr_mixer_frame;\nextern int attr_mixer_text;\nextern int attr_mixer_active;\nextern int attr_ctl_frame;\nextern int attr_ctl_mute;\nextern int attr_ctl_nomute;\nextern int attr_ctl_capture;\nextern int attr_ctl_nocapture;\nextern int attr_ctl_label;\nextern int attr_ctl_label_focus;\nextern int attr_ctl_mark_focus;\nextern int attr_ctl_bar_lo;\n#ifdef TRICOLOR_VOLUME_BAR\nextern int attr_ctl_bar_mi;\nextern int attr_ctl_bar_hi;\n#endif\nextern int attr_ctl_inactive;\nextern int attr_ctl_label_inactive;\nextern int attr_errormsg;\nextern int attr_infomsg;\nextern int attr_textbox;\nextern int attr_textfield;\nextern int attr_menu;\nextern int attr_menu_selected;\n\nvoid init_colors(int use_color);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 14, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64, 69, 83, 88, 93, 98, 103, 108, 113, 118, 123, 131], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 32, "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": "COLORS_H_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define COLORS_H_INCLUDED\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "COLORS_H_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "preproc_def", "text": "#define TRICOLOR_VOLUME_BAR\n", "parent": 0, "children": [7, 8], "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": "TRICOLOR_VOLUME_BAR", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 27}}, {"id": 9, "type": "declaration", "text": "extern int attr_mixer_frame;", "parent": 0, "children": [10, 12, 13], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 28}}, {"id": 10, "type": "storage_class_specifier", "text": "extern", "parent": 9, "children": [11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 11, "type": "extern", "text": "extern", "parent": 10, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 10}}, {"id": 13, "type": "identifier", "text": "attr_mixer_frame", "parent": 9, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 27}}, {"id": 14, "type": "declaration", "text": "extern int attr_mixer_text;", "parent": 0, "children": [15, 17, 18], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 27}}, {"id": 15, "type": "storage_class_specifier", "text": "extern", "parent": 14, "children": [16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 16, "type": "extern", "text": "extern", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 10}}, {"id": 18, "type": "identifier", "text": "attr_mixer_text", "parent": 14, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 26}}, {"id": 19, "type": "declaration", "text": "extern int attr_mixer_active;", "parent": 0, "children": [20, 22, 23], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 29}}, {"id": 20, "type": "storage_class_specifier", "text": "extern", "parent": 19, "children": [21], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 21, "type": "extern", "text": "extern", "parent": 20, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 10}}, {"id": 23, "type": "identifier", "text": "attr_mixer_active", "parent": 19, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 28}}, {"id": 24, "type": "declaration", "text": "extern int attr_ctl_frame;", "parent": 0, "children": [25, 27, 28], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 26}}, {"id": 25, "type": "storage_class_specifier", "text": "extern", "parent": 24, "children": [26], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 26, "type": "extern", "text": "extern", "parent": 25, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 10}}, {"id": 28, "type": "identifier", "text": "attr_ctl_frame", "parent": 24, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 25}}, {"id": 29, "type": "declaration", "text": "extern int attr_ctl_mute;", "parent": 0, "children": [30, 32, 33], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 25}}, {"id": 30, "type": "storage_class_specifier", "text": "extern", "parent": 29, "children": [31], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 31, "type": "extern", "text": "extern", "parent": 30, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 10}}, {"id": 33, "type": "identifier", "text": "attr_ctl_mute", "parent": 29, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 24}}, {"id": 34, "type": "declaration", "text": "extern int attr_ctl_nomute;", "parent": 0, "children": [35, 37, 38], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 27}}, {"id": 35, "type": "storage_class_specifier", "text": "extern", "parent": 34, "children": [36], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 36, "type": "extern", "text": "extern", "parent": 35, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 10}}, {"id": 38, "type": "identifier", "text": "attr_ctl_nomute", "parent": 34, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 26}}, {"id": 39, "type": "declaration", "text": "extern int attr_ctl_capture;", "parent": 0, "children": [40, 42, 43], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 28}}, {"id": 40, "type": "storage_class_specifier", "text": "extern", "parent": 39, "children": [41], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 41, "type": "extern", "text": "extern", "parent": 40, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 10}}, {"id": 43, "type": "identifier", "text": "attr_ctl_capture", "parent": 39, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 27}}, {"id": 44, "type": "declaration", "text": "extern int attr_ctl_nocapture;", "parent": 0, "children": [45, 47, 48], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 30}}, {"id": 45, "type": "storage_class_specifier", "text": "extern", "parent": 44, "children": [46], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 46, "type": "extern", "text": "extern", "parent": 45, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 47, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 10}}, {"id": 48, "type": "identifier", "text": "attr_ctl_nocapture", "parent": 44, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 29}}, {"id": 49, "type": "declaration", "text": "extern int attr_ctl_label;", "parent": 0, "children": [50, 52, 53], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 26}}, {"id": 50, "type": "storage_class_specifier", "text": "extern", "parent": 49, "children": [51], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 51, "type": "extern", "text": "extern", "parent": 50, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 49, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 10}}, {"id": 53, "type": "identifier", "text": "attr_ctl_label", "parent": 49, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 25}}, {"id": 54, "type": "declaration", "text": "extern int attr_ctl_label_focus;", "parent": 0, "children": [55, 57, 58], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 55, "type": "storage_class_specifier", "text": "extern", "parent": 54, "children": [56], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 56, "type": "extern", "text": "extern", "parent": 55, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 57, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 10}}, {"id": 58, "type": "identifier", "text": "attr_ctl_label_focus", "parent": 54, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 31}}, {"id": 59, "type": "declaration", "text": "extern int attr_ctl_mark_focus;", "parent": 0, "children": [60, 62, 63], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 31}}, {"id": 60, "type": "storage_class_specifier", "text": "extern", "parent": 59, "children": [61], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 61, "type": "extern", "text": "extern", "parent": 60, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 59, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 10}}, {"id": 63, "type": "identifier", "text": "attr_ctl_mark_focus", "parent": 59, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 30}}, {"id": 64, "type": "declaration", "text": "extern int attr_ctl_bar_lo;", "parent": 0, "children": [65, 67, 68], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 27}}, {"id": 65, "type": "storage_class_specifier", "text": "extern", "parent": 64, "children": [66], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 66, "type": "extern", "text": "extern", "parent": 65, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 64, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 68, "type": "identifier", "text": "attr_ctl_bar_lo", "parent": 64, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 26}}, {"id": 69, "type": "preproc_ifdef", "text": "#ifdef TRICOLOR_VOLUME_BAR\nextern int attr_ctl_bar_mi;\nextern int attr_ctl_bar_hi;\n#endif", "parent": 0, "children": [70, 71, 72, 77, 82], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 70, "type": "#ifdef", "text": "#ifdef", "parent": 69, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 71, "type": "identifier", "text": "TRICOLOR_VOLUME_BAR", "parent": 69, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 26}}, {"id": 72, "type": "declaration", "text": "extern int attr_ctl_bar_mi;", "parent": 69, "children": [73, 75, 76], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 27}}, {"id": 73, "type": "storage_class_specifier", "text": "extern", "parent": 72, "children": [74], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 74, "type": "extern", "text": "extern", "parent": 73, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 10}}, {"id": 76, "type": "identifier", "text": "attr_ctl_bar_mi", "parent": 72, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 26}}, {"id": 77, "type": "declaration", "text": "extern int attr_ctl_bar_hi;", "parent": 69, "children": [78, 80, 81], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 27}}, {"id": 78, "type": "storage_class_specifier", "text": "extern", "parent": 77, "children": [79], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 79, "type": "extern", "text": "extern", "parent": 78, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 80, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 10}}, {"id": 81, "type": "identifier", "text": "attr_ctl_bar_hi", "parent": 77, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 26}}, {"id": 82, "type": "#endif", "text": "#endif", "parent": 69, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 83, "type": "declaration", "text": "extern int attr_ctl_inactive;", "parent": 0, "children": [84, 86, 87], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 29}}, {"id": 84, "type": "storage_class_specifier", "text": "extern", "parent": 83, "children": [85], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 85, "type": "extern", "text": "extern", "parent": 84, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 10}}, {"id": 87, "type": "identifier", "text": "attr_ctl_inactive", "parent": 83, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 28}}, {"id": 88, "type": "declaration", "text": "extern int attr_ctl_label_inactive;", "parent": 0, "children": [89, 91, 92], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 35}}, {"id": 89, "type": "storage_class_specifier", "text": "extern", "parent": 88, "children": [90], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 90, "type": "extern", "text": "extern", "parent": 89, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 91, "type": "primitive_type", "text": "int", "parent": 88, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 10}}, {"id": 92, "type": "identifier", "text": "attr_ctl_label_inactive", "parent": 88, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 34}}, {"id": 93, "type": "declaration", "text": "extern int attr_errormsg;", "parent": 0, "children": [94, 96, 97], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 25}}, {"id": 94, "type": "storage_class_specifier", "text": "extern", "parent": 93, "children": [95], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 95, "type": "extern", "text": "extern", "parent": 94, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 93, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 10}}, {"id": 97, "type": "identifier", "text": "attr_errormsg", "parent": 93, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 24}}, {"id": 98, "type": "declaration", "text": "extern int attr_infomsg;", "parent": 0, "children": [99, 101, 102], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 24}}, {"id": 99, "type": "storage_class_specifier", "text": "extern", "parent": 98, "children": [100], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 100, "type": "extern", "text": "extern", "parent": 99, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 98, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 10}}, {"id": 102, "type": "identifier", "text": "attr_infomsg", "parent": 98, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 23}}, {"id": 103, "type": "declaration", "text": "extern int attr_textbox;", "parent": 0, "children": [104, 106, 107], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 24}}, {"id": 104, "type": "storage_class_specifier", "text": "extern", "parent": 103, "children": [105], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 105, "type": "extern", "text": "extern", "parent": 104, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 106, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 10}}, {"id": 107, "type": "identifier", "text": "attr_textbox", "parent": 103, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 23}}, {"id": 108, "type": "declaration", "text": "extern int attr_textfield;", "parent": 0, "children": [109, 111, 112], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 26}}, {"id": 109, "type": "storage_class_specifier", "text": "extern", "parent": 108, "children": [110], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 110, "type": "extern", "text": "extern", "parent": 109, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 111, "type": "primitive_type", "text": "int", "parent": 108, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 10}}, {"id": 112, "type": "identifier", "text": "attr_textfield", "parent": 108, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 25}}, {"id": 113, "type": "declaration", "text": "extern int attr_menu;", "parent": 0, "children": [114, 116, 117], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 21}}, {"id": 114, "type": "storage_class_specifier", "text": "extern", "parent": 113, "children": [115], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 115, "type": "extern", "text": "extern", "parent": 114, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 116, "type": "primitive_type", "text": "int", "parent": 113, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 10}}, {"id": 117, "type": "identifier", "text": "attr_menu", "parent": 113, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 20}}, {"id": 118, "type": "declaration", "text": "extern int attr_menu_selected;", "parent": 0, "children": [119, 121, 122], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 30}}, {"id": 119, "type": "storage_class_specifier", "text": "extern", "parent": 118, "children": [120], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 120, "type": "extern", "text": "extern", "parent": 119, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 121, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 10}}, {"id": 122, "type": "identifier", "text": "attr_menu_selected", "parent": 118, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 29}}, {"id": 123, "type": "declaration", "text": "void init_colors(int use_color);", "parent": 0, "children": [124, 125], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 32}}, {"id": 124, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 4}}, {"id": 125, "type": "function_declarator", "text": "init_colors(int use_color)", "parent": 123, "children": [126, 127], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 31}}, {"id": 126, "type": "identifier", "text": "init_colors", "parent": 125, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 16}}, {"id": 127, "type": "parameter_list", "text": "(int use_color)", "parent": 125, "children": [128], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 31}}, {"id": 128, "type": "parameter_declaration", "text": "int use_color", "parent": 127, "children": [129, 130], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 30}}, {"id": 129, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 20}}, {"id": 130, "type": "identifier", "text": "use_color", "parent": 128, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 30}}, {"id": 131, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}]}, "node_categories": {"declarations": {"functions": [125], "variables": [9, 14, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64, 72, 77, 83, 88, 93, 98, 103, 108, 113, 118, 123, 128], "classes": [10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 73, 78, 84, 89, 94, 99, 104, 109, 114, 119], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 13, 18, 23, 28, 33, 38, 43, 48, 53, 58, 63, 68, 69, 70, 71, 76, 81, 82, 87, 92, 97, 102, 107, 112, 117, 122, 126, 130, 131], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "init_colors(int use_color)"}], "class_declarations": [{"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 20, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 30, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 35, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 45, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 55, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 60, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 65, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 73, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 78, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 84, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 89, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 94, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 109, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 114, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 119, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "#ifndef COLORS_H_INCLUDED\n#define COLORS_H_INCLUDED\n\n#define TRICOLOR_VOLUME_BAR\n\nextern int attr_mixer_frame;\nextern int attr_mixer_text;\nextern int attr_mixer_active;\nextern int attr_ctl_frame;\nextern int attr_ctl_mute;\nextern int attr_ctl_nomute;\nextern int attr_ctl_capture;\nextern int attr_ctl_nocapture;\nextern int attr_ctl_label;\nextern int attr_ctl_label_focus;\nextern int attr_ctl_mark_focus;\nextern int attr_ctl_bar_lo;\n#ifdef TRICOLOR_VOLUME_BAR\nextern int attr_ctl_bar_mi;\nextern int attr_ctl_bar_hi;\n#endif\nextern int attr_ctl_inactive;\nextern int attr_ctl_label_inactive;\nextern int attr_errormsg;\nextern int attr_infomsg;\nextern int attr_textbox;\nextern int attr_textfield;\nextern int attr_menu;\nextern int attr_menu_selected;\n\nvoid init_colors(int use_color);\n\n#endif\n"}
80,462
c
#pragma once #include <cstdlib> #include <cstdint> #include <cstring> #include <utility> template <typename Type> class StaticSizedAlloc { public: StaticSizedAlloc(std::size_t max_allocs) : m_MaxAllocs(max_allocs) { if (max_allocs == 0) { throw false; } m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs)); std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8; m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size)); memset(m_AllocMask, 0, alloc_mask_size); for (std::size_t index = 0; index < m_MaxAllocs - 1; index++) { *GetPtrAt(index) = GetAllocAt(index + 1); } *GetPtrAt(m_MaxAllocs - 1) = nullptr; m_Head = GetPtrAt(0); } StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy) : { if (max_allocs == 0) { throw false; } m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs)); std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8; m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size)); m_AllocMask[0] = to_copy.m_AllocMask[0]; for (std::size_t index = 0, byte = 0, bit = 0; index < to_copy.m_MaxAllocs; ++index, ++bit) { if (bit == 8) { bit = 0; byte++; m_AllocMask[byte] = to_copy.m_AllocMask[byte]; } if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0) { new (GetAllocAt(index)) Type(*to_copy.GetAllocAt()); } } int my_bytes = (m_MaxAllocs + 7) / 8; int to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8; if (my_bytes > to_copy_bytes) { memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes); } m_Head = nullptr; for (int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8; index >= 0; --index, --bit) { if (bit < 0) { bit = 7; byte--; } if ((m_AllocMask[byte] & (1 << bit)) == 0) { auto ptr = GetPtrAt(index); *ptr = m_Head; m_Head = ptr; } } } ~StaticSizedAlloc() { for (std::size_t index = 0; index < m_MaxAllocs; index++) { if (GetAllocMask(index)) { GetAllocAt(index)->~Type(); } } free(m_Memory); free(m_AllocMask); } StaticSizedAlloc(const StaticSizedAlloc & rhs) = delete; StaticSizedAlloc(StaticSizedAlloc && rhs) = delete; StaticSizedAlloc & operator = (const StaticSizedAlloc & rhs) = delete; StaticSizedAlloc & operator = (StaticSizedAlloc && rhs) = delete; void Swap(StaticSizedAlloc<Type> & rhs) { std::swap(m_MaxAllocs, rhs.m_MaxAllocs); std::swap(m_Head, rhs.m_Head); std::swap(m_Memory, rhs.m_Memory); std::swap(m_AllocMask, rhs.m_AllocMask); } template <typename ... InitArgs> Type * Allocate(InitArgs && ... args) { void * ptr = AllocateRaw(); try { Type * t = new (ptr) Type(std::forward<InitArgs>(args)...); return t; } catch (...) { FreeRaw(ptr); throw; } } void * AllocateRaw() { static_assert(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer"); if (m_Head == nullptr) { throw false; } std::size_t index = GetIndexAt(m_Head); if (GetAllocMask(index)) { throw false; } void * t = m_Head; void ** head_ptr = reinterpret_cast<void **>(m_Head); void * new_head = *head_ptr; SetAllocMask(index); m_Head = new_head; return t; } void Free(Type * type) { type->~Type(); FreeRaw(type); } void FreeRaw(void * ptr) { std::size_t index = GetIndexAt(ptr); if (GetAllocMask(index) == false) { throw false; } UnsetAllocMask(index); void ** head_ptr = reinterpret_cast<void **>(ptr); *head_ptr = m_Head; m_Head = ptr; } std::size_t GetAllocationId(Type * ptr) { return GetIndexAt(ptr); } Type * GetElementForId(std::size_t id) { if (id >= m_MaxAllocs) { return nullptr; } if (GetAllocMask(id) == false) { return nullptr; } return GetAllocAt(id); } std::size_t GetMaxAllocs() { return m_MaxAllocs; } private: Type * GetAllocAt(std::size_t index) { if (index >= m_MaxAllocs) { throw false; } return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]); } const Type * GetAllocAt(std::size_t index) const { if (index >= m_MaxAllocs) { throw false; } return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]); } void ** GetPtrAt(std::size_t index) { if (index >= m_MaxAllocs) { throw false; } return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]); } std::size_t GetIndexAt(void * ptr) { Type * t = reinterpret_cast<Type *>(ptr); std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0)); if (index >= m_MaxAllocs) { throw false; } return index; } bool GetAllocMask(std::size_t index) { std::size_t bit = index & 0x7; std::size_t byte = index >> 3; return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0; } void SetAllocMask(std::size_t index) { std::size_t bit = index & 0x7; std::size_t byte = index >> 3; m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit); } void UnsetAllocMask(std::size_t index) { std::size_t bit = index & 0x7; std::size_t byte = index >> 3; m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit); } private: std::size_t m_MaxAllocs; void * m_Head; uint8_t * m_Memory; uint8_t * m_AllocMask; };
24.07
225
(translation_unit) "#pragma once\n\n#include <cstdlib>\n#include <cstdint>\n#include <cstring>\n#include <utility>\n\ntemplate <typename Type>\nclass StaticSizedAlloc\n{\npublic:\n StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }\n\n StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy) :\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n m_AllocMask[0] = to_copy.m_AllocMask[0];\n\n for (std::size_t index = 0, byte = 0, bit = 0; index < to_copy.m_MaxAllocs; ++index, ++bit)\n {\n if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }\n\n if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }\n }\n\n int my_bytes = (m_MaxAllocs + 7) / 8;\n int to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8;\n if (my_bytes > to_copy_bytes)\n {\n memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);\n }\n\n m_Head = nullptr;\n for (int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8; index >= 0; --index, --bit)\n {\n if (bit < 0)\n {\n bit = 7;\n byte--;\n }\n\n if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }\n }\n }\n\n ~StaticSizedAlloc()\n {\n for (std::size_t index = 0; index < m_MaxAllocs; index++)\n {\n if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }\n }\n\n free(m_Memory);\n free(m_AllocMask);\n }\n\n StaticSizedAlloc(const StaticSizedAlloc & rhs) = delete;\n StaticSizedAlloc(StaticSizedAlloc && rhs) = delete;\n\n StaticSizedAlloc & operator = (const StaticSizedAlloc & rhs) = delete;\n StaticSizedAlloc & operator = (StaticSizedAlloc && rhs) = delete;\n\n void Swap(StaticSizedAlloc<Type> & rhs)\n {\n std::swap(m_MaxAllocs, rhs.m_MaxAllocs);\n std::swap(m_Head, rhs.m_Head);\n std::swap(m_Memory, rhs.m_Memory);\n std::swap(m_AllocMask, rhs.m_AllocMask);\n }\n\n template <typename ... InitArgs>\n Type * Allocate(InitArgs && ... args)\n {\n void * ptr = AllocateRaw();\n\n try\n {\n Type * t = new (ptr) Type(std::forward<InitArgs>(args)...);\n return t;\n }\n catch (...)\n {\n FreeRaw(ptr);\n throw;\n }\n }\n\n void * AllocateRaw()\n {\n static_assert(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer");\n\n if (m_Head == nullptr)\n {\n throw false;\n }\n\n std::size_t index = GetIndexAt(m_Head);\n\n if (GetAllocMask(index))\n {\n throw false;\n }\n\n void * t = m_Head;\n\n void ** head_ptr = reinterpret_cast<void **>(m_Head);\n void * new_head = *head_ptr;\n\n SetAllocMask(index);\n m_Head = new_head;\n\n return t;\n }\n\n void Free(Type * type)\n {\n type->~Type();\n FreeRaw(type);\n }\n\n void FreeRaw(void * ptr)\n {\n std::size_t index = GetIndexAt(ptr);\n if (GetAllocMask(index) == false)\n {\n throw false;\n }\n\n UnsetAllocMask(index);\n\n void ** head_ptr = reinterpret_cast<void **>(ptr);\n *head_ptr = m_Head;\n\n m_Head = ptr;\n }\n\n std::size_t GetAllocationId(Type * ptr)\n {\n return GetIndexAt(ptr);\n }\n\n Type * GetElementForId(std::size_t id)\n {\n if (id >= m_MaxAllocs)\n {\n return nullptr;\n }\n\n if (GetAllocMask(id) == false)\n {\n return nullptr;\n }\n\n return GetAllocAt(id);\n }\n\n std::size_t GetMaxAllocs()\n {\n return m_MaxAllocs;\n }\n\nprivate:\n Type * GetAllocAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }\n\n const Type * GetAllocAt(std::size_t index) const\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }\n\n void ** GetPtrAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);\n }\n\n std::size_t GetIndexAt(void * ptr)\n {\n Type * t = reinterpret_cast<Type *>(ptr);\n\n std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0));\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return index;\n }\n\n bool GetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;\n }\n\n void SetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit);\n }\n\n void UnsetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit);\n }\n\nprivate:\n std::size_t m_MaxAllocs;\n void * m_Head;\n uint8_t * m_Memory;\n uint8_t * m_AllocMask;\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <cstdlib>\n" (#include) "#include" (system_lib_string) "<cstdlib>" (preproc_include) "#include <cstdint>\n" (#include) "#include" (system_lib_string) "<cstdint>" (preproc_include) "#include <cstring>\n" (#include) "#include" (system_lib_string) "<cstring>" (preproc_include) "#include <utility>\n" (#include) "#include" (system_lib_string) "<utility>" (ERROR) "template <typename Type>\nclass StaticSizedAlloc" (binary_expression) "template <typename Type>\nclass" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (identifier) "class" (identifier) "StaticSizedAlloc" (compound_statement) "{\npublic:\n StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }\n\n StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy) :\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n m_AllocMask[0] = to_copy.m_AllocMask[0];\n\n for (std::size_t index = 0, byte = 0, bit = 0; index < to_copy.m_MaxAllocs; ++index, ++bit)\n {\n if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }\n\n if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }\n }\n\n int my_bytes = (m_MaxAllocs + 7) / 8;\n int to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8;\n if (my_bytes > to_copy_bytes)\n {\n memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);\n }\n\n m_Head = nullptr;\n for (int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8; index >= 0; --index, --bit)\n {\n if (bit < 0)\n {\n bit = 7;\n byte--;\n }\n\n if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }\n }\n }\n\n ~StaticSizedAlloc()\n {\n for (std::size_t index = 0; index < m_MaxAllocs; index++)\n {\n if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }\n }\n\n free(m_Memory);\n free(m_AllocMask);\n }\n\n StaticSizedAlloc(const StaticSizedAlloc & rhs) = delete;\n StaticSizedAlloc(StaticSizedAlloc && rhs) = delete;\n\n StaticSizedAlloc & operator = (const StaticSizedAlloc & rhs) = delete;\n StaticSizedAlloc & operator = (StaticSizedAlloc && rhs) = delete;\n\n void Swap(StaticSizedAlloc<Type> & rhs)\n {\n std::swap(m_MaxAllocs, rhs.m_MaxAllocs);\n std::swap(m_Head, rhs.m_Head);\n std::swap(m_Memory, rhs.m_Memory);\n std::swap(m_AllocMask, rhs.m_AllocMask);\n }\n\n template <typename ... InitArgs>\n Type * Allocate(InitArgs && ... args)\n {\n void * ptr = AllocateRaw();\n\n try\n {\n Type * t = new (ptr) Type(std::forward<InitArgs>(args)...);\n return t;\n }\n catch (...)\n {\n FreeRaw(ptr);\n throw;\n }\n }\n\n void * AllocateRaw()\n {\n static_assert(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer");\n\n if (m_Head == nullptr)\n {\n throw false;\n }\n\n std::size_t index = GetIndexAt(m_Head);\n\n if (GetAllocMask(index))\n {\n throw false;\n }\n\n void * t = m_Head;\n\n void ** head_ptr = reinterpret_cast<void **>(m_Head);\n void * new_head = *head_ptr;\n\n SetAllocMask(index);\n m_Head = new_head;\n\n return t;\n }\n\n void Free(Type * type)\n {\n type->~Type();\n FreeRaw(type);\n }\n\n void FreeRaw(void * ptr)\n {\n std::size_t index = GetIndexAt(ptr);\n if (GetAllocMask(index) == false)\n {\n throw false;\n }\n\n UnsetAllocMask(index);\n\n void ** head_ptr = reinterpret_cast<void **>(ptr);\n *head_ptr = m_Head;\n\n m_Head = ptr;\n }\n\n std::size_t GetAllocationId(Type * ptr)\n {\n return GetIndexAt(ptr);\n }\n\n Type * GetElementForId(std::size_t id)\n {\n if (id >= m_MaxAllocs)\n {\n return nullptr;\n }\n\n if (GetAllocMask(id) == false)\n {\n return nullptr;\n }\n\n return GetAllocAt(id);\n }\n\n std::size_t GetMaxAllocs()\n {\n return m_MaxAllocs;\n }\n\nprivate:\n Type * GetAllocAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }\n\n const Type * GetAllocAt(std::size_t index) const\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }\n\n void ** GetPtrAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);\n }\n\n std::size_t GetIndexAt(void * ptr)\n {\n Type * t = reinterpret_cast<Type *>(ptr);\n\n std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0));\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return index;\n }\n\n bool GetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;\n }\n\n void SetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit);\n }\n\n void UnsetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit);\n }\n\nprivate:\n std::size_t m_MaxAllocs;\n void * m_Head;\n uint8_t * m_Memory;\n uint8_t * m_AllocMask;\n}" ({) "{" (labeled_statement) "public:\n StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }" (statement_identifier) "public" (:) ":" (labeled_statement) "StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }" (statement_identifier) "StaticSizedAlloc" (ERROR) "(std::size_t max_allocs)" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "max_allocs" ()) ")" (:) ":" (ERROR) "m_MaxAllocs(max_allocs)" (macro_type_specifier) "m_MaxAllocs(max_allocs)" (identifier) "m_MaxAllocs" (() "(" (type_descriptor) "max_allocs" (type_identifier) "max_allocs" ()) ")" (compound_statement) "{\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }" ({) "{" (if_statement) "if (max_allocs == 0)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(max_allocs == 0)" (() "(" (binary_expression) "max_allocs == 0" (identifier) "max_allocs" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (expression_statement) "m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));" (assignment_expression) "m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))" (identifier) "m_Memory" (=) "=" (binary_expression) "static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(malloc(sizeof(Type) * m_MaxAllocs))" (() "(" (call_expression) "malloc(sizeof(Type) * m_MaxAllocs)" (identifier) "malloc" (argument_list) "(sizeof(Type) * m_MaxAllocs)" (() "(" (binary_expression) "sizeof(Type) * m_MaxAllocs" (sizeof_expression) "sizeof(Type)" (sizeof) "sizeof" (parenthesized_expression) "(Type)" (() "(" (identifier) "Type" ()) ")" (*) "*" (identifier) "m_MaxAllocs" ()) ")" ()) ")" (;) ";" (labeled_statement) "std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;" (primitive_type) "size_t" (init_declarator) "alloc_mask_size = (m_MaxAllocs + 7) / 8" (identifier) "alloc_mask_size" (=) "=" (binary_expression) "(m_MaxAllocs + 7) / 8" (parenthesized_expression) "(m_MaxAllocs + 7)" (() "(" (binary_expression) "m_MaxAllocs + 7" (identifier) "m_MaxAllocs" (+) "+" (number_literal) "7" ()) ")" (/) "/" (number_literal) "8" (;) ";" (expression_statement) "m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));" (assignment_expression) "m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size))" (identifier) "m_AllocMask" (=) "=" (binary_expression) "static_cast<uint8_t *>(malloc(alloc_mask_size))" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(malloc(alloc_mask_size))" (() "(" (call_expression) "malloc(alloc_mask_size)" (identifier) "malloc" (argument_list) "(alloc_mask_size)" (() "(" (identifier) "alloc_mask_size" ()) ")" ()) ")" (;) ";" (expression_statement) "memset(m_AllocMask, 0, alloc_mask_size);" (call_expression) "memset(m_AllocMask, 0, alloc_mask_size)" (identifier) "memset" (argument_list) "(m_AllocMask, 0, alloc_mask_size)" (() "(" (identifier) "m_AllocMask" (,) "," (number_literal) "0" (,) "," (identifier) "alloc_mask_size" ()) ")" (;) ";" (for_statement) "for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }" (for) "for" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (declaration) "size_t index = 0;" (primitive_type) "size_t" (init_declarator) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "index < m_MaxAllocs - 1" (identifier) "index" (<) "<" (binary_expression) "m_MaxAllocs - 1" (identifier) "m_MaxAllocs" (-) "-" (number_literal) "1" (;) ";" (update_expression) "index++" (identifier) "index" (++) "++" ()) ")" (compound_statement) "{\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }" ({) "{" (expression_statement) "*GetPtrAt(index) = GetAllocAt(index + 1);" (assignment_expression) "*GetPtrAt(index) = GetAllocAt(index + 1)" (pointer_expression) "*GetPtrAt(index)" (*) "*" (call_expression) "GetPtrAt(index)" (identifier) "GetPtrAt" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (=) "=" (call_expression) "GetAllocAt(index + 1)" (identifier) "GetAllocAt" (argument_list) "(index + 1)" (() "(" (binary_expression) "index + 1" (identifier) "index" (+) "+" (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "*GetPtrAt(m_MaxAllocs - 1) = nullptr;" (assignment_expression) "*GetPtrAt(m_MaxAllocs - 1) = nullptr" (pointer_expression) "*GetPtrAt(m_MaxAllocs - 1)" (*) "*" (call_expression) "GetPtrAt(m_MaxAllocs - 1)" (identifier) "GetPtrAt" (argument_list) "(m_MaxAllocs - 1)" (() "(" (binary_expression) "m_MaxAllocs - 1" (identifier) "m_MaxAllocs" (-) "-" (number_literal) "1" ()) ")" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (expression_statement) "m_Head = GetPtrAt(0);" (assignment_expression) "m_Head = GetPtrAt(0)" (identifier) "m_Head" (=) "=" (call_expression) "GetPtrAt(0)" (identifier) "GetPtrAt" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (ERROR) "StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy) :" (binary_expression) "StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy" (binary_expression) "StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type" (identifier) "StaticSizedAlloc" (ERROR) "(std::size_t max_allocs, const StaticSizedAlloc" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "max_allocs" (,) "," (identifier) "const" (identifier) "StaticSizedAlloc" (<) "<" (identifier) "Type" (>) ">" (pointer_expression) "& to_copy" (&) "&" (identifier) "to_copy" ()) ")" (:) ":" (compound_statement) "{\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n m_AllocMask[0] = to_copy.m_AllocMask[0];\n\n for (std::size_t index = 0, byte = 0, bit = 0; index < to_copy.m_MaxAllocs; ++index, ++bit)\n {\n if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }\n\n if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }\n }\n\n int my_bytes = (m_MaxAllocs + 7) / 8;\n int to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8;\n if (my_bytes > to_copy_bytes)\n {\n memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);\n }\n\n m_Head = nullptr;\n for (int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8; index >= 0; --index, --bit)\n {\n if (bit < 0)\n {\n bit = 7;\n byte--;\n }\n\n if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }\n }\n }" ({) "{" (if_statement) "if (max_allocs == 0)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(max_allocs == 0)" (() "(" (binary_expression) "max_allocs == 0" (identifier) "max_allocs" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (expression_statement) "m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));" (assignment_expression) "m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))" (identifier) "m_Memory" (=) "=" (binary_expression) "static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(malloc(sizeof(Type) * m_MaxAllocs))" (() "(" (call_expression) "malloc(sizeof(Type) * m_MaxAllocs)" (identifier) "malloc" (argument_list) "(sizeof(Type) * m_MaxAllocs)" (() "(" (binary_expression) "sizeof(Type) * m_MaxAllocs" (sizeof_expression) "sizeof(Type)" (sizeof) "sizeof" (parenthesized_expression) "(Type)" (() "(" (identifier) "Type" ()) ")" (*) "*" (identifier) "m_MaxAllocs" ()) ")" ()) ")" (;) ";" (labeled_statement) "std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;" (primitive_type) "size_t" (init_declarator) "alloc_mask_size = (m_MaxAllocs + 7) / 8" (identifier) "alloc_mask_size" (=) "=" (binary_expression) "(m_MaxAllocs + 7) / 8" (parenthesized_expression) "(m_MaxAllocs + 7)" (() "(" (binary_expression) "m_MaxAllocs + 7" (identifier) "m_MaxAllocs" (+) "+" (number_literal) "7" ()) ")" (/) "/" (number_literal) "8" (;) ";" (expression_statement) "m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));" (assignment_expression) "m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size))" (identifier) "m_AllocMask" (=) "=" (binary_expression) "static_cast<uint8_t *>(malloc(alloc_mask_size))" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(malloc(alloc_mask_size))" (() "(" (call_expression) "malloc(alloc_mask_size)" (identifier) "malloc" (argument_list) "(alloc_mask_size)" (() "(" (identifier) "alloc_mask_size" ()) ")" ()) ")" (;) ";" (expression_statement) "m_AllocMask[0] = to_copy.m_AllocMask[0];" (assignment_expression) "m_AllocMask[0] = to_copy.m_AllocMask[0]" (subscript_expression) "m_AllocMask[0]" (identifier) "m_AllocMask" ([) "[" (number_literal) "0" (]) "]" (=) "=" (subscript_expression) "to_copy.m_AllocMask[0]" (field_expression) "to_copy.m_AllocMask" (identifier) "to_copy" (.) "." (field_identifier) "m_AllocMask" ([) "[" (number_literal) "0" (]) "]" (;) ";" (for_statement) "for (std::size_t index = 0, byte = 0, bit = 0; index < to_copy.m_MaxAllocs; ++index, ++bit)\n {\n if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }\n\n if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }\n }" (for) "for" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (declaration) "size_t index = 0, byte = 0, bit = 0;" (primitive_type) "size_t" (init_declarator) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (,) "," (init_declarator) "byte = 0" (identifier) "byte" (=) "=" (number_literal) "0" (,) "," (init_declarator) "bit = 0" (identifier) "bit" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "index < to_copy.m_MaxAllocs" (identifier) "index" (<) "<" (field_expression) "to_copy.m_MaxAllocs" (identifier) "to_copy" (.) "." (field_identifier) "m_MaxAllocs" (;) ";" (comma_expression) "++index, ++bit" (update_expression) "++index" (++) "++" (identifier) "index" (,) "," (update_expression) "++bit" (++) "++" (identifier) "bit" ()) ")" (compound_statement) "{\n if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }\n\n if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }\n }" ({) "{" (if_statement) "if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }" (if) "if" (parenthesized_expression) "(bit == 8)" (() "(" (binary_expression) "bit == 8" (identifier) "bit" (==) "==" (number_literal) "8" ()) ")" (compound_statement) "{\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }" ({) "{" (expression_statement) "bit = 0;" (assignment_expression) "bit = 0" (identifier) "bit" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "byte++;" (update_expression) "byte++" (identifier) "byte" (++) "++" (;) ";" (expression_statement) "m_AllocMask[byte] = to_copy.m_AllocMask[byte];" (assignment_expression) "m_AllocMask[byte] = to_copy.m_AllocMask[byte]" (subscript_expression) "m_AllocMask[byte]" (identifier) "m_AllocMask" ([) "[" (identifier) "byte" (]) "]" (=) "=" (subscript_expression) "to_copy.m_AllocMask[byte]" (field_expression) "to_copy.m_AllocMask" (identifier) "to_copy" (.) "." (field_identifier) "m_AllocMask" ([) "[" (identifier) "byte" (]) "]" (;) ";" (}) "}" (if_statement) "if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }" (if) "if" (parenthesized_expression) "((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)" (() "(" (binary_expression) "(to_copy.m_AllocMask[byte] & (1 << bit)) != 0" (parenthesized_expression) "(to_copy.m_AllocMask[byte] & (1 << bit))" (() "(" (binary_expression) "to_copy.m_AllocMask[byte] & (1 << bit)" (subscript_expression) "to_copy.m_AllocMask[byte]" (field_expression) "to_copy.m_AllocMask" (identifier) "to_copy" (.) "." (field_identifier) "m_AllocMask" ([) "[" (identifier) "byte" (]) "]" (&) "&" (parenthesized_expression) "(1 << bit)" (() "(" (binary_expression) "1 << bit" (number_literal) "1" (<<) "<<" (identifier) "bit" ()) ")" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }" ({) "{" (declaration) "new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());" (macro_type_specifier) "new (GetAllocAt(index))" (identifier) "new" (() "(" (type_descriptor) "GetAllocAt(index)" (type_identifier) "GetAllocAt" (abstract_function_declarator) "(index)" (parameter_list) "(index)" (() "(" (parameter_declaration) "index" (type_identifier) "index" ()) ")" ()) ")" (function_declarator) "Type(*to_copy.GetAllocAt())" (identifier) "Type" (parameter_list) "(*to_copy.GetAllocAt())" (() "(" (ERROR) "*" (*) "*" (parameter_declaration) "to_copy.GetAllocAt()" (type_identifier) "to_copy" (ERROR) "." (.) "." (function_declarator) "GetAllocAt()" (identifier) "GetAllocAt" (parameter_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (declaration) "int my_bytes = (m_MaxAllocs + 7) / 8;" (primitive_type) "int" (init_declarator) "my_bytes = (m_MaxAllocs + 7) / 8" (identifier) "my_bytes" (=) "=" (binary_expression) "(m_MaxAllocs + 7) / 8" (parenthesized_expression) "(m_MaxAllocs + 7)" (() "(" (binary_expression) "m_MaxAllocs + 7" (identifier) "m_MaxAllocs" (+) "+" (number_literal) "7" ()) ")" (/) "/" (number_literal) "8" (;) ";" (declaration) "int to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8;" (primitive_type) "int" (init_declarator) "to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8" (identifier) "to_copy_bytes" (=) "=" (binary_expression) "(to_copy.m_MaxAllocs + 7) / 8" (parenthesized_expression) "(to_copy.m_MaxAllocs + 7)" (() "(" (binary_expression) "to_copy.m_MaxAllocs + 7" (field_expression) "to_copy.m_MaxAllocs" (identifier) "to_copy" (.) "." (field_identifier) "m_MaxAllocs" (+) "+" (number_literal) "7" ()) ")" (/) "/" (number_literal) "8" (;) ";" (if_statement) "if (my_bytes > to_copy_bytes)\n {\n memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);\n }" (if) "if" (parenthesized_expression) "(my_bytes > to_copy_bytes)" (() "(" (binary_expression) "my_bytes > to_copy_bytes" (identifier) "my_bytes" (>) ">" (identifier) "to_copy_bytes" ()) ")" (compound_statement) "{\n memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);\n }" ({) "{" (expression_statement) "memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);" (call_expression) "memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes)" (identifier) "memset" (argument_list) "(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes)" (() "(" (pointer_expression) "&m_AllocMask[to_copy_bytes]" (&) "&" (subscript_expression) "m_AllocMask[to_copy_bytes]" (identifier) "m_AllocMask" ([) "[" (identifier) "to_copy_bytes" (]) "]" (,) "," (number_literal) "0" (,) "," (binary_expression) "my_bytes - to_copy_bytes" (identifier) "my_bytes" (-) "-" (identifier) "to_copy_bytes" ()) ")" (;) ";" (}) "}" (expression_statement) "m_Head = nullptr;" (assignment_expression) "m_Head = nullptr" (identifier) "m_Head" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (for_statement) "for (int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8; index >= 0; --index, --bit)\n {\n if (bit < 0)\n {\n bit = 7;\n byte--;\n }\n\n if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }\n }" (for) "for" (() "(" (declaration) "int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8;" (primitive_type) "int" (init_declarator) "index = m_MaxAllocs - 1" (identifier) "index" (=) "=" (binary_expression) "m_MaxAllocs - 1" (identifier) "m_MaxAllocs" (-) "-" (number_literal) "1" (,) "," (init_declarator) "byte = (m_MaxAllocs - 1) / 8" (identifier) "byte" (=) "=" (binary_expression) "(m_MaxAllocs - 1) / 8" (parenthesized_expression) "(m_MaxAllocs - 1)" (() "(" (binary_expression) "m_MaxAllocs - 1" (identifier) "m_MaxAllocs" (-) "-" (number_literal) "1" ()) ")" (/) "/" (number_literal) "8" (,) "," (init_declarator) "bit = (m_MaxAllocs - 1) % 8" (identifier) "bit" (=) "=" (binary_expression) "(m_MaxAllocs - 1) % 8" (parenthesized_expression) "(m_MaxAllocs - 1)" (() "(" (binary_expression) "m_MaxAllocs - 1" (identifier) "m_MaxAllocs" (-) "-" (number_literal) "1" ()) ")" (%) "%" (number_literal) "8" (;) ";" (binary_expression) "index >= 0" (identifier) "index" (>=) ">=" (number_literal) "0" (;) ";" (comma_expression) "--index, --bit" (update_expression) "--index" (--) "--" (identifier) "index" (,) "," (update_expression) "--bit" (--) "--" (identifier) "bit" ()) ")" (compound_statement) "{\n if (bit < 0)\n {\n bit = 7;\n byte--;\n }\n\n if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }\n }" ({) "{" (if_statement) "if (bit < 0)\n {\n bit = 7;\n byte--;\n }" (if) "if" (parenthesized_expression) "(bit < 0)" (() "(" (binary_expression) "bit < 0" (identifier) "bit" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n bit = 7;\n byte--;\n }" ({) "{" (expression_statement) "bit = 7;" (assignment_expression) "bit = 7" (identifier) "bit" (=) "=" (number_literal) "7" (;) ";" (expression_statement) "byte--;" (update_expression) "byte--" (identifier) "byte" (--) "--" (;) ";" (}) "}" (if_statement) "if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }" (if) "if" (parenthesized_expression) "((m_AllocMask[byte] & (1 << bit)) == 0)" (() "(" (binary_expression) "(m_AllocMask[byte] & (1 << bit)) == 0" (parenthesized_expression) "(m_AllocMask[byte] & (1 << bit))" (() "(" (binary_expression) "m_AllocMask[byte] & (1 << bit)" (subscript_expression) "m_AllocMask[byte]" (identifier) "m_AllocMask" ([) "[" (identifier) "byte" (]) "]" (&) "&" (parenthesized_expression) "(1 << bit)" (() "(" (binary_expression) "1 << bit" (number_literal) "1" (<<) "<<" (identifier) "bit" ()) ")" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }" ({) "{" (declaration) "auto ptr = GetPtrAt(index);" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "ptr" (ERROR) "=" (=) "=" (function_declarator) "GetPtrAt(index)" (identifier) "GetPtrAt" (parameter_list) "(index)" (() "(" (parameter_declaration) "index" (type_identifier) "index" ()) ")" (;) ";" (expression_statement) "*ptr = m_Head;" (assignment_expression) "*ptr = m_Head" (pointer_expression) "*ptr" (*) "*" (identifier) "ptr" (=) "=" (identifier) "m_Head" (;) ";" (expression_statement) "m_Head = ptr;" (assignment_expression) "m_Head = ptr" (identifier) "m_Head" (=) "=" (identifier) "ptr" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) "~StaticSizedAlloc()" (unary_expression) "~StaticSizedAlloc()" (~) "~" (call_expression) "StaticSizedAlloc()" (identifier) "StaticSizedAlloc" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n for (std::size_t index = 0; index < m_MaxAllocs; index++)\n {\n if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }\n }\n\n free(m_Memory);\n free(m_AllocMask);\n }" ({) "{" (for_statement) "for (std::size_t index = 0; index < m_MaxAllocs; index++)\n {\n if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }\n }" (for) "for" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (declaration) "size_t index = 0;" (primitive_type) "size_t" (init_declarator) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "index < m_MaxAllocs" (identifier) "index" (<) "<" (identifier) "m_MaxAllocs" (;) ";" (update_expression) "index++" (identifier) "index" (++) "++" ()) ")" (compound_statement) "{\n if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }\n }" ({) "{" (if_statement) "if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }" (if) "if" (parenthesized_expression) "(GetAllocMask(index))" (() "(" (call_expression) "GetAllocMask(index)" (identifier) "GetAllocMask" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" ()) ")" (compound_statement) "{\n GetAllocAt(index)->~Type();\n }" ({) "{" (expression_statement) "GetAllocAt(index)->~Type();" (call_expression) "GetAllocAt(index)->~Type()" (field_expression) "GetAllocAt(index)->~Type" (call_expression) "GetAllocAt(index)" (identifier) "GetAllocAt" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (->) "->" (ERROR) "~" (~) "~" (field_identifier) "Type" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "free(m_Memory);" (call_expression) "free(m_Memory)" (identifier) "free" (argument_list) "(m_Memory)" (() "(" (identifier) "m_Memory" ()) ")" (;) ";" (expression_statement) "free(m_AllocMask);" (call_expression) "free(m_AllocMask)" (identifier) "free" (argument_list) "(m_AllocMask)" (() "(" (identifier) "m_AllocMask" ()) ")" (;) ";" (}) "}" (declaration) "StaticSizedAlloc(const StaticSizedAlloc & rhs) = delete;" (macro_type_specifier) "StaticSizedAlloc(const StaticSizedAlloc & rhs)" (identifier) "StaticSizedAlloc" (() "(" (type_descriptor) "const StaticSizedAlloc" (type_qualifier) "const" (const) "const" (type_identifier) "StaticSizedAlloc" (ERROR) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (ERROR) "=" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "StaticSizedAlloc(StaticSizedAlloc && rhs) = delete;" (assignment_expression) "StaticSizedAlloc(StaticSizedAlloc && rhs) = delete" (call_expression) "StaticSizedAlloc(StaticSizedAlloc && rhs)" (identifier) "StaticSizedAlloc" (argument_list) "(StaticSizedAlloc && rhs)" (() "(" (binary_expression) "StaticSizedAlloc && rhs" (identifier) "StaticSizedAlloc" (&&) "&&" (identifier) "rhs" ()) ")" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "StaticSizedAlloc & operator = (const StaticSizedAlloc & rhs) = delete;" (binary_expression) "StaticSizedAlloc & operator = (const StaticSizedAlloc & rhs) = delete" (identifier) "StaticSizedAlloc" (&) "&" (assignment_expression) "operator = (const StaticSizedAlloc & rhs) = delete" (identifier) "operator" (=) "=" (assignment_expression) "(const StaticSizedAlloc & rhs) = delete" (parenthesized_expression) "(const StaticSizedAlloc & rhs)" (() "(" (ERROR) "const StaticSizedAlloc" (type_descriptor) "const StaticSizedAlloc" (type_qualifier) "const" (const) "const" (type_identifier) "StaticSizedAlloc" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "StaticSizedAlloc & operator = (StaticSizedAlloc && rhs) = delete;" (binary_expression) "StaticSizedAlloc & operator = (StaticSizedAlloc && rhs) = delete" (identifier) "StaticSizedAlloc" (&) "&" (assignment_expression) "operator = (StaticSizedAlloc && rhs) = delete" (identifier) "operator" (=) "=" (assignment_expression) "(StaticSizedAlloc && rhs) = delete" (parenthesized_expression) "(StaticSizedAlloc && rhs)" (() "(" (binary_expression) "StaticSizedAlloc && rhs" (identifier) "StaticSizedAlloc" (&&) "&&" (identifier) "rhs" ()) ")" (=) "=" (identifier) "delete" (;) ";" (function_definition) "void Swap(StaticSizedAlloc<Type> & rhs)\n {\n std::swap(m_MaxAllocs, rhs.m_MaxAllocs);\n std::swap(m_Head, rhs.m_Head);\n std::swap(m_Memory, rhs.m_Memory);\n std::swap(m_AllocMask, rhs.m_AllocMask);\n }" (primitive_type) "void" (function_declarator) "Swap(StaticSizedAlloc<Type> & rhs)" (identifier) "Swap" (parameter_list) "(StaticSizedAlloc<Type> & rhs)" (() "(" (parameter_declaration) "StaticSizedAlloc<Type> & rhs" (type_identifier) "StaticSizedAlloc" (ERROR) "<Type> &" (<) "<" (identifier) "Type" (>) ">" (&) "&" (identifier) "rhs" ()) ")" (compound_statement) "{\n std::swap(m_MaxAllocs, rhs.m_MaxAllocs);\n std::swap(m_Head, rhs.m_Head);\n std::swap(m_Memory, rhs.m_Memory);\n std::swap(m_AllocMask, rhs.m_AllocMask);\n }" ({) "{" (labeled_statement) "std::swap(m_MaxAllocs, rhs.m_MaxAllocs);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "swap(m_MaxAllocs, rhs.m_MaxAllocs);" (call_expression) "swap(m_MaxAllocs, rhs.m_MaxAllocs)" (identifier) "swap" (argument_list) "(m_MaxAllocs, rhs.m_MaxAllocs)" (() "(" (identifier) "m_MaxAllocs" (,) "," (field_expression) "rhs.m_MaxAllocs" (identifier) "rhs" (.) "." (field_identifier) "m_MaxAllocs" ()) ")" (;) ";" (labeled_statement) "std::swap(m_Head, rhs.m_Head);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "swap(m_Head, rhs.m_Head);" (call_expression) "swap(m_Head, rhs.m_Head)" (identifier) "swap" (argument_list) "(m_Head, rhs.m_Head)" (() "(" (identifier) "m_Head" (,) "," (field_expression) "rhs.m_Head" (identifier) "rhs" (.) "." (field_identifier) "m_Head" ()) ")" (;) ";" (labeled_statement) "std::swap(m_Memory, rhs.m_Memory);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "swap(m_Memory, rhs.m_Memory);" (call_expression) "swap(m_Memory, rhs.m_Memory)" (identifier) "swap" (argument_list) "(m_Memory, rhs.m_Memory)" (() "(" (identifier) "m_Memory" (,) "," (field_expression) "rhs.m_Memory" (identifier) "rhs" (.) "." (field_identifier) "m_Memory" ()) ")" (;) ";" (labeled_statement) "std::swap(m_AllocMask, rhs.m_AllocMask);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "swap(m_AllocMask, rhs.m_AllocMask);" (call_expression) "swap(m_AllocMask, rhs.m_AllocMask)" (identifier) "swap" (argument_list) "(m_AllocMask, rhs.m_AllocMask)" (() "(" (identifier) "m_AllocMask" (,) "," (field_expression) "rhs.m_AllocMask" (identifier) "rhs" (.) "." (field_identifier) "m_AllocMask" ()) ")" (;) ";" (}) "}" (expression_statement) "template <typename ... InitArgs>\n Type * Allocate(InitArgs && ... args)" (binary_expression) "template <typename ... InitArgs>\n Type * Allocate(InitArgs && ... args)" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "... InitArgs" (...) "..." (identifier) "InitArgs" (>) ">" (binary_expression) "Type * Allocate(InitArgs && ... args)" (identifier) "Type" (*) "*" (call_expression) "Allocate(InitArgs && ... args)" (identifier) "Allocate" (argument_list) "(InitArgs && ... args)" (() "(" (binary_expression) "InitArgs && ... args" (identifier) "InitArgs" (&&) "&&" (ERROR) "..." (.) "." (.) "." (.) "." (identifier) "args" ()) ")" (;) "" (compound_statement) "{\n void * ptr = AllocateRaw();\n\n try\n {\n Type * t = new (ptr) Type(std::forward<InitArgs>(args)...);\n return t;\n }\n catch (...)\n {\n FreeRaw(ptr);\n throw;\n }\n }" ({) "{" (declaration) "void * ptr = AllocateRaw();" (primitive_type) "void" (init_declarator) "* ptr = AllocateRaw()" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" (=) "=" (call_expression) "AllocateRaw()" (identifier) "AllocateRaw" (argument_list) "()" (() "(" ()) ")" (;) ";" (type_identifier) "try" (;) "" (compound_statement) "{\n Type * t = new (ptr) Type(std::forward<InitArgs>(args)...);\n return t;\n }" ({) "{" (declaration) "Type * t = new (ptr) Type(std::forward<InitArgs>(args)...);" (type_identifier) "Type" (init_declarator) "* t = new (ptr) Type(std::forward<InitArgs>(args)...)" (pointer_declarator) "* t" (*) "*" (identifier) "t" (=) "=" (ERROR) "new (ptr)" (call_expression) "new (ptr)" (identifier) "new" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (call_expression) "Type(std::forward<InitArgs>(args)...)" (identifier) "Type" (argument_list) "(std::forward<InitArgs>(args)...)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "forward<InitArgs>(args)" (binary_expression) "forward<InitArgs" (identifier) "forward" (<) "<" (identifier) "InitArgs" (>) ">" (parenthesized_expression) "(args)" (() "(" (identifier) "args" ()) ")" (ERROR) "..." (...) "..." ()) ")" (;) ";" (return_statement) "return t;" (return) "return" (identifier) "t" (;) ";" (}) "}" (ERROR) "catch (...)" (identifier) "catch" (() "(" (...) "..." ()) ")" (compound_statement) "{\n FreeRaw(ptr);\n throw;\n }" ({) "{" (expression_statement) "FreeRaw(ptr);" (call_expression) "FreeRaw(ptr)" (identifier) "FreeRaw" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (expression_statement) "throw;" (identifier) "throw" (;) ";" (}) "}" (}) "}" (function_definition) "void * AllocateRaw()\n {\n static_assert(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer");\n\n if (m_Head == nullptr)\n {\n throw false;\n }\n\n std::size_t index = GetIndexAt(m_Head);\n\n if (GetAllocMask(index))\n {\n throw false;\n }\n\n void * t = m_Head;\n\n void ** head_ptr = reinterpret_cast<void **>(m_Head);\n void * new_head = *head_ptr;\n\n SetAllocMask(index);\n m_Head = new_head;\n\n return t;\n }" (primitive_type) "void" (pointer_declarator) "* AllocateRaw()" (*) "*" (function_declarator) "AllocateRaw()" (identifier) "AllocateRaw" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n static_assert(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer");\n\n if (m_Head == nullptr)\n {\n throw false;\n }\n\n std::size_t index = GetIndexAt(m_Head);\n\n if (GetAllocMask(index))\n {\n throw false;\n }\n\n void * t = m_Head;\n\n void ** head_ptr = reinterpret_cast<void **>(m_Head);\n void * new_head = *head_ptr;\n\n SetAllocMask(index);\n m_Head = new_head;\n\n return t;\n }" ({) "{" (expression_statement) "static_assert(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer");" (call_expression) "static_assert(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer")" (identifier) "static_assert" (argument_list) "(sizeof(Type) >= sizeof(void *), "Allocation type is too small to alias with a pointer")" (() "(" (binary_expression) "sizeof(Type) >= sizeof(void *)" (sizeof_expression) "sizeof(Type)" (sizeof) "sizeof" (parenthesized_expression) "(Type)" (() "(" (identifier) "Type" ()) ")" (>=) ">=" (sizeof_expression) "sizeof(void *)" (sizeof) "sizeof" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (,) "," (string_literal) ""Allocation type is too small to alias with a pointer"" (") """ (string_content) "Allocation type is too small to alias with a pointer" (") """ ()) ")" (;) ";" (if_statement) "if (m_Head == nullptr)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(m_Head == nullptr)" (() "(" (binary_expression) "m_Head == nullptr" (identifier) "m_Head" (==) "==" (null) "nullptr" (nullptr) "nullptr" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (labeled_statement) "std::size_t index = GetIndexAt(m_Head);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t index = GetIndexAt(m_Head);" (primitive_type) "size_t" (init_declarator) "index = GetIndexAt(m_Head)" (identifier) "index" (=) "=" (call_expression) "GetIndexAt(m_Head)" (identifier) "GetIndexAt" (argument_list) "(m_Head)" (() "(" (identifier) "m_Head" ()) ")" (;) ";" (if_statement) "if (GetAllocMask(index))\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(GetAllocMask(index))" (() "(" (call_expression) "GetAllocMask(index)" (identifier) "GetAllocMask" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (declaration) "void * t = m_Head;" (primitive_type) "void" (init_declarator) "* t = m_Head" (pointer_declarator) "* t" (*) "*" (identifier) "t" (=) "=" (identifier) "m_Head" (;) ";" (declaration) "void ** head_ptr = reinterpret_cast<void **>(m_Head);" (primitive_type) "void" (init_declarator) "** head_ptr = reinterpret_cast<void **>(m_Head)" (pointer_declarator) "** head_ptr" (*) "*" (pointer_declarator) "* head_ptr" (*) "*" (identifier) "head_ptr" (=) "=" (binary_expression) "reinterpret_cast<void **>(m_Head)" (binary_expression) "reinterpret_cast<void **" (identifier) "reinterpret_cast" (<) "<" (binary_expression) "void **" (identifier) "void" (*) "*" (pointer_expression) "*" (*) "*" (identifier) "" (>) ">" (parenthesized_expression) "(m_Head)" (() "(" (identifier) "m_Head" ()) ")" (;) ";" (declaration) "void * new_head = *head_ptr;" (primitive_type) "void" (init_declarator) "* new_head = *head_ptr" (pointer_declarator) "* new_head" (*) "*" (identifier) "new_head" (=) "=" (pointer_expression) "*head_ptr" (*) "*" (identifier) "head_ptr" (;) ";" (expression_statement) "SetAllocMask(index);" (call_expression) "SetAllocMask(index)" (identifier) "SetAllocMask" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (;) ";" (expression_statement) "m_Head = new_head;" (assignment_expression) "m_Head = new_head" (identifier) "m_Head" (=) "=" (identifier) "new_head" (;) ";" (return_statement) "return t;" (return) "return" (identifier) "t" (;) ";" (}) "}" (function_definition) "void Free(Type * type)\n {\n type->~Type();\n FreeRaw(type);\n }" (primitive_type) "void" (function_declarator) "Free(Type * type)" (identifier) "Free" (parameter_list) "(Type * type)" (() "(" (parameter_declaration) "Type * type" (type_identifier) "Type" (pointer_declarator) "* type" (*) "*" (identifier) "type" ()) ")" (compound_statement) "{\n type->~Type();\n FreeRaw(type);\n }" ({) "{" (expression_statement) "type->~Type();" (call_expression) "type->~Type()" (field_expression) "type->~Type" (identifier) "type" (->) "->" (ERROR) "~" (~) "~" (field_identifier) "Type" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "FreeRaw(type);" (call_expression) "FreeRaw(type)" (identifier) "FreeRaw" (argument_list) "(type)" (() "(" (identifier) "type" ()) ")" (;) ";" (}) "}" (function_definition) "void FreeRaw(void * ptr)\n {\n std::size_t index = GetIndexAt(ptr);\n if (GetAllocMask(index) == false)\n {\n throw false;\n }\n\n UnsetAllocMask(index);\n\n void ** head_ptr = reinterpret_cast<void **>(ptr);\n *head_ptr = m_Head;\n\n m_Head = ptr;\n }" (primitive_type) "void" (function_declarator) "FreeRaw(void * ptr)" (identifier) "FreeRaw" (parameter_list) "(void * ptr)" (() "(" (parameter_declaration) "void * ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{\n std::size_t index = GetIndexAt(ptr);\n if (GetAllocMask(index) == false)\n {\n throw false;\n }\n\n UnsetAllocMask(index);\n\n void ** head_ptr = reinterpret_cast<void **>(ptr);\n *head_ptr = m_Head;\n\n m_Head = ptr;\n }" ({) "{" (labeled_statement) "std::size_t index = GetIndexAt(ptr);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t index = GetIndexAt(ptr);" (primitive_type) "size_t" (init_declarator) "index = GetIndexAt(ptr)" (identifier) "index" (=) "=" (call_expression) "GetIndexAt(ptr)" (identifier) "GetIndexAt" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (if_statement) "if (GetAllocMask(index) == false)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(GetAllocMask(index) == false)" (() "(" (binary_expression) "GetAllocMask(index) == false" (call_expression) "GetAllocMask(index)" (identifier) "GetAllocMask" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (==) "==" (false) "false" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (expression_statement) "UnsetAllocMask(index);" (call_expression) "UnsetAllocMask(index)" (identifier) "UnsetAllocMask" (argument_list) "(index)" (() "(" (identifier) "index" ()) ")" (;) ";" (declaration) "void ** head_ptr = reinterpret_cast<void **>(ptr);" (primitive_type) "void" (init_declarator) "** head_ptr = reinterpret_cast<void **>(ptr)" (pointer_declarator) "** head_ptr" (*) "*" (pointer_declarator) "* head_ptr" (*) "*" (identifier) "head_ptr" (=) "=" (binary_expression) "reinterpret_cast<void **>(ptr)" (binary_expression) "reinterpret_cast<void **" (identifier) "reinterpret_cast" (<) "<" (binary_expression) "void **" (identifier) "void" (*) "*" (pointer_expression) "*" (*) "*" (identifier) "" (>) ">" (parenthesized_expression) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (expression_statement) "*head_ptr = m_Head;" (assignment_expression) "*head_ptr = m_Head" (pointer_expression) "*head_ptr" (*) "*" (identifier) "head_ptr" (=) "=" (identifier) "m_Head" (;) ";" (expression_statement) "m_Head = ptr;" (assignment_expression) "m_Head = ptr" (identifier) "m_Head" (=) "=" (identifier) "ptr" (;) ";" (}) "}" (labeled_statement) "std::size_t GetAllocationId(Type * ptr)\n {\n return GetIndexAt(ptr);\n }" (statement_identifier) "std" (:) ":" (ERROR) ":size_t GetAllocationId(Type * ptr)" (:) ":" (primitive_type) "size_t" (function_declarator) "GetAllocationId(Type * ptr)" (identifier) "GetAllocationId" (parameter_list) "(Type * ptr)" (() "(" (parameter_declaration) "Type * ptr" (type_identifier) "Type" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{\n return GetIndexAt(ptr);\n }" ({) "{" (return_statement) "return GetIndexAt(ptr);" (return) "return" (call_expression) "GetIndexAt(ptr)" (identifier) "GetIndexAt" (argument_list) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (}) "}" (expression_statement) "Type * GetElementForId(std::size_t id)" (binary_expression) "Type * GetElementForId(std::size_t id)" (identifier) "Type" (*) "*" (call_expression) "GetElementForId(std::size_t id)" (identifier) "GetElementForId" (argument_list) "(std::size_t id)" (() "(" (identifier) "std" (ERROR) "::size_t id" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "id" ()) ")" (;) "" (compound_statement) "{\n if (id >= m_MaxAllocs)\n {\n return nullptr;\n }\n\n if (GetAllocMask(id) == false)\n {\n return nullptr;\n }\n\n return GetAllocAt(id);\n }" ({) "{" (if_statement) "if (id >= m_MaxAllocs)\n {\n return nullptr;\n }" (if) "if" (parenthesized_expression) "(id >= m_MaxAllocs)" (() "(" (binary_expression) "id >= m_MaxAllocs" (identifier) "id" (>=) ">=" (identifier) "m_MaxAllocs" ()) ")" (compound_statement) "{\n return nullptr;\n }" ({) "{" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (if_statement) "if (GetAllocMask(id) == false)\n {\n return nullptr;\n }" (if) "if" (parenthesized_expression) "(GetAllocMask(id) == false)" (() "(" (binary_expression) "GetAllocMask(id) == false" (call_expression) "GetAllocMask(id)" (identifier) "GetAllocMask" (argument_list) "(id)" (() "(" (identifier) "id" ()) ")" (==) "==" (false) "false" ()) ")" (compound_statement) "{\n return nullptr;\n }" ({) "{" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (return_statement) "return GetAllocAt(id);" (return) "return" (call_expression) "GetAllocAt(id)" (identifier) "GetAllocAt" (argument_list) "(id)" (() "(" (identifier) "id" ()) ")" (;) ";" (}) "}" (labeled_statement) "std::size_t GetMaxAllocs()\n {\n return m_MaxAllocs;\n }" (statement_identifier) "std" (:) ":" (ERROR) ":size_t GetMaxAllocs()" (:) ":" (primitive_type) "size_t" (function_declarator) "GetMaxAllocs()" (identifier) "GetMaxAllocs" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return m_MaxAllocs;\n }" ({) "{" (return_statement) "return m_MaxAllocs;" (return) "return" (identifier) "m_MaxAllocs" (;) ";" (}) "}" (labeled_statement) "private:\n Type * GetAllocAt(std::size_t index)" (statement_identifier) "private" (:) ":" (expression_statement) "Type * GetAllocAt(std::size_t index)" (binary_expression) "Type * GetAllocAt(std::size_t index)" (identifier) "Type" (*) "*" (call_expression) "GetAllocAt(std::size_t index)" (identifier) "GetAllocAt" (argument_list) "(std::size_t index)" (() "(" (ERROR) "std::size_t" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (identifier) "index" ()) ")" (;) "" (compound_statement) "{\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }" ({) "{" (if_statement) "if (index >= m_MaxAllocs)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(index >= m_MaxAllocs)" (() "(" (binary_expression) "index >= m_MaxAllocs" (identifier) "index" (>=) ">=" (identifier) "m_MaxAllocs" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (return_statement) "return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);" (return) "return" (binary_expression) "reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index])" (binary_expression) "reinterpret_cast<Type" (identifier) "reinterpret_cast" (<) "<" (identifier) "Type" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(&m_Memory[sizeof(Type) * index])" (() "(" (pointer_expression) "&m_Memory[sizeof(Type) * index]" (&) "&" (subscript_expression) "m_Memory[sizeof(Type) * index]" (identifier) "m_Memory" ([) "[" (binary_expression) "sizeof(Type) * index" (sizeof_expression) "sizeof(Type)" (sizeof) "sizeof" (parenthesized_expression) "(Type)" (() "(" (identifier) "Type" ()) ")" (*) "*" (identifier) "index" (]) "]" ()) ")" (;) ";" (}) "}" (function_definition) "const Type * GetAllocAt(std::size_t index) const\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }" (type_qualifier) "const" (const) "const" (type_identifier) "Type" (pointer_declarator) "* GetAllocAt(std::size_t index) const" (*) "*" (function_declarator) "GetAllocAt(std::size_t index) const" (identifier) "GetAllocAt" (parameter_list) "(std::size_t index)" (() "(" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t index" (primitive_type) "size_t" (identifier) "index" ()) ")" (identifier) "const" (compound_statement) "{\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }" ({) "{" (if_statement) "if (index >= m_MaxAllocs)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(index >= m_MaxAllocs)" (() "(" (binary_expression) "index >= m_MaxAllocs" (identifier) "index" (>=) ">=" (identifier) "m_MaxAllocs" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (return_statement) "return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);" (return) "return" (binary_expression) "reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index])" (binary_expression) "reinterpret_cast<Type" (identifier) "reinterpret_cast" (<) "<" (identifier) "Type" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(&m_Memory[sizeof(Type) * index])" (() "(" (pointer_expression) "&m_Memory[sizeof(Type) * index]" (&) "&" (subscript_expression) "m_Memory[sizeof(Type) * index]" (identifier) "m_Memory" ([) "[" (binary_expression) "sizeof(Type) * index" (sizeof_expression) "sizeof(Type)" (sizeof) "sizeof" (parenthesized_expression) "(Type)" (() "(" (identifier) "Type" ()) ")" (*) "*" (identifier) "index" (]) "]" ()) ")" (;) ";" (}) "}" (function_definition) "void ** GetPtrAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);\n }" (primitive_type) "void" (pointer_declarator) "** GetPtrAt(std::size_t index)" (*) "*" (pointer_declarator) "* GetPtrAt(std::size_t index)" (*) "*" (function_declarator) "GetPtrAt(std::size_t index)" (identifier) "GetPtrAt" (parameter_list) "(std::size_t index)" (() "(" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t index" (primitive_type) "size_t" (identifier) "index" ()) ")" (compound_statement) "{\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);\n }" ({) "{" (if_statement) "if (index >= m_MaxAllocs)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(index >= m_MaxAllocs)" (() "(" (binary_expression) "index >= m_MaxAllocs" (identifier) "index" (>=) ">=" (identifier) "m_MaxAllocs" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (return_statement) "return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);" (return) "return" (binary_expression) "reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index])" (binary_expression) "reinterpret_cast<void **" (identifier) "reinterpret_cast" (<) "<" (binary_expression) "void **" (identifier) "void" (*) "*" (pointer_expression) "*" (*) "*" (identifier) "" (>) ">" (parenthesized_expression) "(&m_Memory[sizeof(Type) * index])" (() "(" (pointer_expression) "&m_Memory[sizeof(Type) * index]" (&) "&" (subscript_expression) "m_Memory[sizeof(Type) * index]" (identifier) "m_Memory" ([) "[" (binary_expression) "sizeof(Type) * index" (sizeof_expression) "sizeof(Type)" (sizeof) "sizeof" (parenthesized_expression) "(Type)" (() "(" (identifier) "Type" ()) ")" (*) "*" (identifier) "index" (]) "]" ()) ")" (;) ";" (}) "}" (labeled_statement) "std::size_t GetIndexAt(void * ptr)\n {\n Type * t = reinterpret_cast<Type *>(ptr);\n\n std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0));\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return index;\n }" (statement_identifier) "std" (:) ":" (ERROR) ":size_t GetIndexAt(void * ptr)" (:) ":" (primitive_type) "size_t" (function_declarator) "GetIndexAt(void * ptr)" (identifier) "GetIndexAt" (parameter_list) "(void * ptr)" (() "(" (parameter_declaration) "void * ptr" (primitive_type) "void" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{\n Type * t = reinterpret_cast<Type *>(ptr);\n\n std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0));\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return index;\n }" ({) "{" (declaration) "Type * t = reinterpret_cast<Type *>(ptr);" (type_identifier) "Type" (init_declarator) "* t = reinterpret_cast<Type *>(ptr)" (pointer_declarator) "* t" (*) "*" (identifier) "t" (=) "=" (binary_expression) "reinterpret_cast<Type *>(ptr)" (binary_expression) "reinterpret_cast<Type" (identifier) "reinterpret_cast" (<) "<" (identifier) "Type" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (expression_statement) "std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0));" (binary_expression) "std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0))" (identifier) "std" (ERROR) "::size_t index = static_cast<std::size_t" (:) ":" (:) ":" (primitive_type) "size_t" (init_declarator) "index = static_cast<std" (identifier) "index" (=) "=" (binary_expression) "static_cast<std" (identifier) "static_cast" (<) "<" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (>) ">" (parenthesized_expression) "(t - GetAllocAt(0))" (() "(" (binary_expression) "t - GetAllocAt(0)" (identifier) "t" (-) "-" (call_expression) "GetAllocAt(0)" (identifier) "GetAllocAt" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" ()) ")" (;) ";" (if_statement) "if (index >= m_MaxAllocs)\n {\n throw false;\n }" (if) "if" (parenthesized_expression) "(index >= m_MaxAllocs)" (() "(" (binary_expression) "index >= m_MaxAllocs" (identifier) "index" (>=) ">=" (identifier) "m_MaxAllocs" ()) ")" (compound_statement) "{\n throw false;\n }" ({) "{" (declaration) "throw false;" (type_identifier) "throw" (identifier) "false" (;) ";" (}) "}" (return_statement) "return index;" (return) "return" (identifier) "index" (;) ";" (}) "}" (function_definition) "bool GetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;\n }" (primitive_type) "bool" (function_declarator) "GetAllocMask(std::size_t index)" (identifier) "GetAllocMask" (parameter_list) "(std::size_t index)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t index" (primitive_type) "size_t" (identifier) "index" ()) ")" (compound_statement) "{\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;\n }" ({) "{" (labeled_statement) "std::size_t bit = index & 0x7;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t bit = index & 0x7;" (primitive_type) "size_t" (init_declarator) "bit = index & 0x7" (identifier) "bit" (=) "=" (binary_expression) "index & 0x7" (identifier) "index" (&) "&" (number_literal) "0x7" (;) ";" (labeled_statement) "std::size_t byte = index >> 3;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t byte = index >> 3;" (primitive_type) "size_t" (init_declarator) "byte = index >> 3" (identifier) "byte" (=) "=" (binary_expression) "index >> 3" (identifier) "index" (>>) ">>" (number_literal) "3" (;) ";" (return_statement) "return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;" (return) "return" (binary_expression) "(m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0" (parenthesized_expression) "(m_AllocMask[byte] & static_cast<uint8_t>(1 << bit))" (() "(" (binary_expression) "m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)" (subscript_expression) "m_AllocMask[byte]" (identifier) "m_AllocMask" ([) "[" (identifier) "byte" (]) "]" (&) "&" (binary_expression) "static_cast<uint8_t>(1 << bit)" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (>) ">" (parenthesized_expression) "(1 << bit)" (() "(" (binary_expression) "1 << bit" (number_literal) "1" (<<) "<<" (identifier) "bit" ()) ")" ()) ")" (!=) "!=" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void SetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit);\n }" (primitive_type) "void" (function_declarator) "SetAllocMask(std::size_t index)" (identifier) "SetAllocMask" (parameter_list) "(std::size_t index)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t index" (primitive_type) "size_t" (identifier) "index" ()) ")" (compound_statement) "{\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit);\n }" ({) "{" (labeled_statement) "std::size_t bit = index & 0x7;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t bit = index & 0x7;" (primitive_type) "size_t" (init_declarator) "bit = index & 0x7" (identifier) "bit" (=) "=" (binary_expression) "index & 0x7" (identifier) "index" (&) "&" (number_literal) "0x7" (;) ";" (labeled_statement) "std::size_t byte = index >> 3;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t byte = index >> 3;" (primitive_type) "size_t" (init_declarator) "byte = index >> 3" (identifier) "byte" (=) "=" (binary_expression) "index >> 3" (identifier) "index" (>>) ">>" (number_literal) "3" (;) ";" (expression_statement) "m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit);" (assignment_expression) "m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit)" (subscript_expression) "m_AllocMask[byte]" (identifier) "m_AllocMask" ([) "[" (identifier) "byte" (]) "]" (|=) "|=" (binary_expression) "static_cast<uint8_t>(1 << bit)" (binary_expression) "static_cast<uint8_t" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (>) ">" (parenthesized_expression) "(1 << bit)" (() "(" (binary_expression) "1 << bit" (number_literal) "1" (<<) "<<" (identifier) "bit" ()) ")" (;) ";" (}) "}" (function_definition) "void UnsetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit);\n }" (primitive_type) "void" (function_declarator) "UnsetAllocMask(std::size_t index)" (identifier) "UnsetAllocMask" (parameter_list) "(std::size_t index)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (parameter_declaration) "size_t index" (primitive_type) "size_t" (identifier) "index" ()) ")" (compound_statement) "{\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit);\n }" ({) "{" (labeled_statement) "std::size_t bit = index & 0x7;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t bit = index & 0x7;" (primitive_type) "size_t" (init_declarator) "bit = index & 0x7" (identifier) "bit" (=) "=" (binary_expression) "index & 0x7" (identifier) "index" (&) "&" (number_literal) "0x7" (;) ";" (labeled_statement) "std::size_t byte = index >> 3;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t byte = index >> 3;" (primitive_type) "size_t" (init_declarator) "byte = index >> 3" (identifier) "byte" (=) "=" (binary_expression) "index >> 3" (identifier) "index" (>>) ">>" (number_literal) "3" (;) ";" (expression_statement) "m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit);" (assignment_expression) "m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit)" (subscript_expression) "m_AllocMask[byte]" (identifier) "m_AllocMask" ([) "[" (identifier) "byte" (]) "]" (&=) "&=" (binary_expression) "~static_cast<uint8_t>(1 << bit)" (binary_expression) "~static_cast<uint8_t" (unary_expression) "~static_cast" (~) "~" (identifier) "static_cast" (<) "<" (identifier) "uint8_t" (>) ">" (parenthesized_expression) "(1 << bit)" (() "(" (binary_expression) "1 << bit" (number_literal) "1" (<<) "<<" (identifier) "bit" ()) ")" (;) ";" (}) "}" (labeled_statement) "private:\n std::size_t m_MaxAllocs;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::size_t m_MaxAllocs;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t m_MaxAllocs;" (primitive_type) "size_t" (identifier) "m_MaxAllocs" (;) ";" (declaration) "void * m_Head;" (primitive_type) "void" (pointer_declarator) "* m_Head" (*) "*" (identifier) "m_Head" (;) ";" (declaration) "uint8_t * m_Memory;" (primitive_type) "uint8_t" (pointer_declarator) "* m_Memory" (*) "*" (identifier) "m_Memory" (;) ";" (declaration) "uint8_t * m_AllocMask;" (primitive_type) "uint8_t" (pointer_declarator) "* m_AllocMask" (*) "*" (identifier) "m_AllocMask" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
2,019
57
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 24.07, "nodes": 1268, "errors": 0, "source_hash": "739a4d2caaa839c4dc071788a6576de0025c9cb31c506f5bb9dc340cd29a585f", "categorized_nodes": 827}, "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 <cstdlib>\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": "<cstdlib>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <cstdint>\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": "<cstdint>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <cstring>\n", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<cstring>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <utility>\n", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<utility>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 15, "type": "ERROR", "text": "template <typename Type>\nclass StaticSizedAlloc", "parent": null, "children": [16, 24], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 22}}, {"id": 16, "type": "binary_expression", "text": "template <typename Type>\nclass", "parent": 15, "children": [17, 21, 23], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 5}}, {"id": 17, "type": "binary_expression", "text": "template <typename", "parent": 16, "children": [18, 19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 18}}, {"id": 18, "type": "identifier", "text": "template", "parent": 17, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 19, "type": "<", "text": "<", "parent": 17, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 10}}, {"id": 20, "type": "identifier", "text": "typename", "parent": 17, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 18}}, {"id": 21, "type": "ERROR", "text": "Type", "parent": 16, "children": [22], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 23}}, {"id": 22, "type": "identifier", "text": "Type", "parent": 21, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 23}}, {"id": 23, "type": ">", "text": ">", "parent": 16, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 24}}, {"id": 24, "type": "identifier", "text": "StaticSizedAlloc", "parent": 15, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 22}}, {"id": 25, "type": "labeled_statement", "text": "public:\n StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }", "parent": null, "children": [26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 26, "type": "labeled_statement", "text": "StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }", "parent": 25, "children": [27, 28, 33], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 33, "column": 3}}, {"id": 27, "type": "statement_identifier", "text": "StaticSizedAlloc", "parent": 26, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 18}}, {"id": 28, "type": "ERROR", "text": "(std::size_t max_allocs)", "parent": 26, "children": [29, 31, 32], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 42}}, {"id": 29, "type": "type_descriptor", "text": "std", "parent": 28, "children": [30], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 22}}, {"id": 30, "type": "type_identifier", "text": "std", "parent": 29, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 22}}, {"id": 31, "type": "primitive_type", "text": "size_t", "parent": 28, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 30}}, {"id": 32, "type": "identifier", "text": "max_allocs", "parent": 28, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 41}}, {"id": 33, "type": "ERROR", "text": "m_MaxAllocs(max_allocs)", "parent": 26, "children": [34], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 27}}, {"id": 34, "type": "macro_type_specifier", "text": "m_MaxAllocs(max_allocs)", "parent": 33, "children": [35, 36], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 27}}, {"id": 35, "type": "identifier", "text": "m_MaxAllocs", "parent": 34, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 15}}, {"id": 36, "type": "type_descriptor", "text": "max_allocs", "parent": 34, "children": [37], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 26}}, {"id": 37, "type": "type_identifier", "text": "max_allocs", "parent": 36, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 26}}, {"id": 38, "type": "if_statement", "text": "if (max_allocs == 0)\n {\n throw false;\n }", "parent": 26, "children": [39], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 17, "column": 5}}, {"id": 39, "type": "parenthesized_expression", "text": "(max_allocs == 0)", "parent": 38, "children": [40], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 24}}, {"id": 40, "type": "binary_expression", "text": "max_allocs == 0", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 23}}, {"id": 41, "type": "identifier", "text": "max_allocs", "parent": 40, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 18}}, {"id": 42, "type": "==", "text": "==", "parent": 40, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 21}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 40, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 23}}, {"id": 44, "type": "declaration", "text": "throw false;", "parent": 38, "children": [45], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 18}}, {"id": 45, "type": "identifier", "text": "false", "parent": 44, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 17}}, {"id": 46, "type": "assignment_expression", "text": "m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))", "parent": 26, "children": [47, 48, 49], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 73}}, {"id": 47, "type": "identifier", "text": "m_Memory", "parent": 46, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 12}}, {"id": 48, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 49, "type": "binary_expression", "text": "static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))", "parent": 46, "children": [50, 54, 56, 57], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 73}}, {"id": 50, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 49, "children": [51, 52, 53], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 34}}, {"id": 51, "type": "identifier", "text": "static_cast", "parent": 50, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 26}}, {"id": 52, "type": "<", "text": "<", "parent": 50, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 53, "type": "identifier", "text": "uint8_t", "parent": 50, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 34}}, {"id": 54, "type": "ERROR", "text": "*", "parent": 49, "children": [55], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 36}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 36}}, {"id": 56, "type": ">", "text": ">", "parent": 49, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 37}}, {"id": 57, "type": "parenthesized_expression", "text": "(malloc(sizeof(Type) * m_MaxAllocs))", "parent": 49, "children": [58], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 73}}, {"id": 58, "type": "call_expression", "text": "malloc(sizeof(Type) * m_MaxAllocs)", "parent": 57, "children": [59, 60], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 72}}, {"id": 59, "type": "identifier", "text": "malloc", "parent": 58, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 44}}, {"id": 60, "type": "argument_list", "text": "(sizeof(Type) * m_MaxAllocs)", "parent": 58, "children": [61], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 72}}, {"id": 61, "type": "binary_expression", "text": "sizeof(Type) * m_MaxAllocs", "parent": 60, "children": [62, 65, 66], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 71}}, {"id": 62, "type": "sizeof_expression", "text": "sizeof(Type)", "parent": 61, "children": [63], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 57}}, {"id": 63, "type": "parenthesized_expression", "text": "(Type)", "parent": 62, "children": [64], "start_point": {"row": 19, "column": 51}, "end_point": {"row": 19, "column": 57}}, {"id": 64, "type": "identifier", "text": "Type", "parent": 63, "children": [], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 56}}, {"id": 65, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 19, "column": 58}, "end_point": {"row": 19, "column": 59}}, {"id": 66, "type": "identifier", "text": "m_MaxAllocs", "parent": 61, "children": [], "start_point": {"row": 19, "column": 60}, "end_point": {"row": 19, "column": 71}}, {"id": 67, "type": "labeled_statement", "text": "std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;", "parent": 26, "children": [68, 69], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 56}}, {"id": 68, "type": "statement_identifier", "text": "std", "parent": 67, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 69, "type": "declaration", "text": "size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;", "parent": 67, "children": [70, 71], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 56}}, {"id": 70, "type": "primitive_type", "text": "size_t", "parent": 69, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 15}}, {"id": 71, "type": "init_declarator", "text": "alloc_mask_size = (m_MaxAllocs + 7) / 8", "parent": 69, "children": [72, 73, 74], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 55}}, {"id": 72, "type": "identifier", "text": "alloc_mask_size", "parent": 71, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 31}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 33}}, {"id": 74, "type": "binary_expression", "text": "(m_MaxAllocs + 7) / 8", "parent": 71, "children": [75, 80, 81], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 55}}, {"id": 75, "type": "parenthesized_expression", "text": "(m_MaxAllocs + 7)", "parent": 74, "children": [76], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 51}}, {"id": 76, "type": "binary_expression", "text": "m_MaxAllocs + 7", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 50}}, {"id": 77, "type": "identifier", "text": "m_MaxAllocs", "parent": 76, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 46}}, {"id": 78, "type": "+", "text": "+", "parent": 76, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 48}}, {"id": 79, "type": "number_literal", "text": "7", "parent": 76, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 50}}, {"id": 80, "type": "/", "text": "/", "parent": 74, "children": [], "start_point": {"row": 21, "column": 52}, "end_point": {"row": 21, "column": 53}}, {"id": 81, "type": "number_literal", "text": "8", "parent": 74, "children": [], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 55}}, {"id": 82, "type": "assignment_expression", "text": "m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size))", "parent": 26, "children": [83, 84, 85], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 65}}, {"id": 83, "type": "identifier", "text": "m_AllocMask", "parent": 82, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 15}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 17}}, {"id": 85, "type": "binary_expression", "text": "static_cast<uint8_t *>(malloc(alloc_mask_size))", "parent": 82, "children": [86, 90, 92, 93], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 65}}, {"id": 86, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 37}}, {"id": 87, "type": "identifier", "text": "static_cast", "parent": 86, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 29}}, {"id": 88, "type": "<", "text": "<", "parent": 86, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 89, "type": "identifier", "text": "uint8_t", "parent": 86, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 37}}, {"id": 90, "type": "ERROR", "text": "*", "parent": 85, "children": [91], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 92, "type": ">", "text": ">", "parent": 85, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 40}}, {"id": 93, "type": "parenthesized_expression", "text": "(malloc(alloc_mask_size))", "parent": 85, "children": [94], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 65}}, {"id": 94, "type": "call_expression", "text": "malloc(alloc_mask_size)", "parent": 93, "children": [95, 96], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 64}}, {"id": 95, "type": "identifier", "text": "malloc", "parent": 94, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 47}}, {"id": 96, "type": "argument_list", "text": "(alloc_mask_size)", "parent": 94, "children": [97], "start_point": {"row": 22, "column": 47}, "end_point": {"row": 22, "column": 64}}, {"id": 97, "type": "identifier", "text": "alloc_mask_size", "parent": 96, "children": [], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 63}}, {"id": 98, "type": "call_expression", "text": "memset(m_AllocMask, 0, alloc_mask_size)", "parent": 26, "children": [99, 100], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 43}}, {"id": 99, "type": "identifier", "text": "memset", "parent": 98, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 100, "type": "argument_list", "text": "(m_AllocMask, 0, alloc_mask_size)", "parent": 98, "children": [101, 102, 103], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 43}}, {"id": 101, "type": "identifier", "text": "m_AllocMask", "parent": 100, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 22}}, {"id": 102, "type": "number_literal", "text": "0", "parent": 100, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 25}}, {"id": 103, "type": "identifier", "text": "alloc_mask_size", "parent": 100, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 42}}, {"id": 104, "type": "for_statement", "text": "for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }", "parent": 26, "children": [105, 107, 113, 120], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 29, "column": 5}}, {"id": 105, "type": "ERROR", "text": "std::", "parent": 104, "children": [106], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 14}}, {"id": 106, "type": "identifier", "text": "std", "parent": 105, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 12}}, {"id": 107, "type": "declaration", "text": "size_t index = 0;", "parent": 104, "children": [108, 109], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 31}}, {"id": 108, "type": "primitive_type", "text": "size_t", "parent": 107, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 20}}, {"id": 109, "type": "init_declarator", "text": "index = 0", "parent": 107, "children": [110, 111, 112], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 30}}, {"id": 110, "type": "identifier", "text": "index", "parent": 109, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 26}}, {"id": 111, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 28}}, {"id": 112, "type": "number_literal", "text": "0", "parent": 109, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 30}}, {"id": 113, "type": "binary_expression", "text": "index < m_MaxAllocs - 1", "parent": 104, "children": [114, 115, 116], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 55}}, {"id": 114, "type": "identifier", "text": "index", "parent": 113, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 37}}, {"id": 115, "type": "<", "text": "<", "parent": 113, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 39}}, {"id": 116, "type": "binary_expression", "text": "m_MaxAllocs - 1", "parent": 113, "children": [117, 118, 119], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 55}}, {"id": 117, "type": "identifier", "text": "m_MaxAllocs", "parent": 116, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 51}}, {"id": 118, "type": "-", "text": "-", "parent": 116, "children": [], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 53}}, {"id": 119, "type": "number_literal", "text": "1", "parent": 116, "children": [], "start_point": {"row": 26, "column": 54}, "end_point": {"row": 26, "column": 55}}, {"id": 120, "type": "update_expression", "text": "index++", "parent": 104, "children": [121, 122], "start_point": {"row": 26, "column": 57}, "end_point": {"row": 26, "column": 64}}, {"id": 121, "type": "identifier", "text": "index", "parent": 120, "children": [], "start_point": {"row": 26, "column": 57}, "end_point": {"row": 26, "column": 62}}, {"id": 122, "type": "++", "text": "++", "parent": 120, "children": [], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 64}}, {"id": 123, "type": "assignment_expression", "text": "*GetPtrAt(index) = GetAllocAt(index + 1)", "parent": 104, "children": [124, 130, 131], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 46}}, {"id": 124, "type": "pointer_expression", "text": "*GetPtrAt(index)", "parent": 123, "children": [125, 126], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 22}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 7}}, {"id": 126, "type": "call_expression", "text": "GetPtrAt(index)", "parent": 124, "children": [127, 128], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 22}}, {"id": 127, "type": "identifier", "text": "GetPtrAt", "parent": 126, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 15}}, {"id": 128, "type": "argument_list", "text": "(index)", "parent": 126, "children": [129], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 22}}, {"id": 129, "type": "identifier", "text": "index", "parent": 128, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 21}}, {"id": 130, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 131, "type": "call_expression", "text": "GetAllocAt(index + 1)", "parent": 123, "children": [132, 133], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 46}}, {"id": 132, "type": "identifier", "text": "GetAllocAt", "parent": 131, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 35}}, {"id": 133, "type": "argument_list", "text": "(index + 1)", "parent": 131, "children": [134], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 46}}, {"id": 134, "type": "binary_expression", "text": "index + 1", "parent": 133, "children": [135, 136, 137], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 45}}, {"id": 135, "type": "identifier", "text": "index", "parent": 134, "children": [], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 41}}, {"id": 136, "type": "+", "text": "+", "parent": 134, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 43}}, {"id": 137, "type": "number_literal", "text": "1", "parent": 134, "children": [], "start_point": {"row": 28, "column": 44}, "end_point": {"row": 28, "column": 45}}, {"id": 138, "type": "assignment_expression", "text": "*GetPtrAt(m_MaxAllocs - 1) = nullptr", "parent": 26, "children": [139, 148, 149], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 40}}, {"id": 139, "type": "pointer_expression", "text": "*GetPtrAt(m_MaxAllocs - 1)", "parent": 138, "children": [140, 141], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 30}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 141, "type": "call_expression", "text": "GetPtrAt(m_MaxAllocs - 1)", "parent": 139, "children": [142, 143], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 30}}, {"id": 142, "type": "identifier", "text": "GetPtrAt", "parent": 141, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 13}}, {"id": 143, "type": "argument_list", "text": "(m_MaxAllocs - 1)", "parent": 141, "children": [144], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 30}}, {"id": 144, "type": "binary_expression", "text": "m_MaxAllocs - 1", "parent": 143, "children": [145, 146, 147], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 29}}, {"id": 145, "type": "identifier", "text": "m_MaxAllocs", "parent": 144, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 25}}, {"id": 146, "type": "-", "text": "-", "parent": 144, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 27}}, {"id": 147, "type": "number_literal", "text": "1", "parent": 144, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 29}}, {"id": 148, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 32}}, {"id": 149, "type": "null", "text": "nullptr", "parent": 138, "children": [150], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 40}}, {"id": 150, "type": "nullptr", "text": "nullptr", "parent": 149, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 40}}, {"id": 151, "type": "assignment_expression", "text": "m_Head = GetPtrAt(0)", "parent": 26, "children": [152, 153, 154], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 24}}, {"id": 152, "type": "identifier", "text": "m_Head", "parent": 151, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 153, "type": "=", "text": "=", "parent": 151, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 12}}, {"id": 154, "type": "call_expression", "text": "GetPtrAt(0)", "parent": 151, "children": [155, 156], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 24}}, {"id": 155, "type": "identifier", "text": "GetPtrAt", "parent": 154, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 21}}, {"id": 156, "type": "argument_list", "text": "(0)", "parent": 154, "children": [157], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 24}}, {"id": 157, "type": "number_literal", "text": "0", "parent": 156, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 23}}, {"id": 158, "type": "ERROR", "text": "StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy) :", "parent": null, "children": [159], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 84}}, {"id": 159, "type": "binary_expression", "text": "StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy", "parent": 158, "children": [160, 170, 171], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 81}}, {"id": 160, "type": "binary_expression", "text": "StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type", "parent": 159, "children": [161, 162, 168, 169], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 70}}, {"id": 161, "type": "identifier", "text": "StaticSizedAlloc", "parent": 160, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 18}}, {"id": 162, "type": "ERROR", "text": "(std::size_t max_allocs, const StaticSizedAlloc", "parent": 160, "children": [163, 165, 166, 167], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 65}}, {"id": 163, "type": "type_descriptor", "text": "std", "parent": 162, "children": [164], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 22}}, {"id": 164, "type": "type_identifier", "text": "std", "parent": 163, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 22}}, {"id": 165, "type": "primitive_type", "text": "size_t", "parent": 162, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 30}}, {"id": 166, "type": "identifier", "text": "max_allocs", "parent": 162, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 41}}, {"id": 167, "type": "identifier", "text": "StaticSizedAlloc", "parent": 162, "children": [], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 65}}, {"id": 168, "type": "<", "text": "<", "parent": 160, "children": [], "start_point": {"row": 35, "column": 65}, "end_point": {"row": 35, "column": 66}}, {"id": 169, "type": "identifier", "text": "Type", "parent": 160, "children": [], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 70}}, {"id": 170, "type": ">", "text": ">", "parent": 159, "children": [], "start_point": {"row": 35, "column": 70}, "end_point": {"row": 35, "column": 71}}, {"id": 171, "type": "pointer_expression", "text": "& to_copy", "parent": 159, "children": [172], "start_point": {"row": 35, "column": 72}, "end_point": {"row": 35, "column": 81}}, {"id": 172, "type": "identifier", "text": "to_copy", "parent": 171, "children": [], "start_point": {"row": 35, "column": 74}, "end_point": {"row": 35, "column": 81}}, {"id": 173, "type": "if_statement", "text": "if (max_allocs == 0)\n {\n throw false;\n }", "parent": null, "children": [174], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 40, "column": 5}}, {"id": 174, "type": "parenthesized_expression", "text": "(max_allocs == 0)", "parent": 173, "children": [175], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 24}}, {"id": 175, "type": "binary_expression", "text": "max_allocs == 0", "parent": 174, "children": [176, 177, 178], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 23}}, {"id": 176, "type": "identifier", "text": "max_allocs", "parent": 175, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 18}}, {"id": 177, "type": "==", "text": "==", "parent": 175, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 21}}, {"id": 178, "type": "number_literal", "text": "0", "parent": 175, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 23}}, {"id": 179, "type": "declaration", "text": "throw false;", "parent": 173, "children": [180], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 18}}, {"id": 180, "type": "identifier", "text": "false", "parent": 179, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 17}}, {"id": 181, "type": "assignment_expression", "text": "m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))", "parent": null, "children": [182, 183, 184], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 73}}, {"id": 182, "type": "identifier", "text": "m_Memory", "parent": 181, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 12}}, {"id": 183, "type": "=", "text": "=", "parent": 181, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 14}}, {"id": 184, "type": "binary_expression", "text": "static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs))", "parent": 181, "children": [185, 189, 191, 192], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 73}}, {"id": 185, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 184, "children": [186, 187, 188], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 34}}, {"id": 186, "type": "identifier", "text": "static_cast", "parent": 185, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 26}}, {"id": 187, "type": "<", "text": "<", "parent": 185, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 27}}, {"id": 188, "type": "identifier", "text": "uint8_t", "parent": 185, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 34}}, {"id": 189, "type": "ERROR", "text": "*", "parent": 184, "children": [190], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 36}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 36}}, {"id": 191, "type": ">", "text": ">", "parent": 184, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 37}}, {"id": 192, "type": "parenthesized_expression", "text": "(malloc(sizeof(Type) * m_MaxAllocs))", "parent": 184, "children": [193], "start_point": {"row": 42, "column": 37}, "end_point": {"row": 42, "column": 73}}, {"id": 193, "type": "call_expression", "text": "malloc(sizeof(Type) * m_MaxAllocs)", "parent": 192, "children": [194, 195], "start_point": {"row": 42, "column": 38}, "end_point": {"row": 42, "column": 72}}, {"id": 194, "type": "identifier", "text": "malloc", "parent": 193, "children": [], "start_point": {"row": 42, "column": 38}, "end_point": {"row": 42, "column": 44}}, {"id": 195, "type": "argument_list", "text": "(sizeof(Type) * m_MaxAllocs)", "parent": 193, "children": [196], "start_point": {"row": 42, "column": 44}, "end_point": {"row": 42, "column": 72}}, {"id": 196, "type": "binary_expression", "text": "sizeof(Type) * m_MaxAllocs", "parent": 195, "children": [197, 200, 201], "start_point": {"row": 42, "column": 45}, "end_point": {"row": 42, "column": 71}}, {"id": 197, "type": "sizeof_expression", "text": "sizeof(Type)", "parent": 196, "children": [198], "start_point": {"row": 42, "column": 45}, "end_point": {"row": 42, "column": 57}}, {"id": 198, "type": "parenthesized_expression", "text": "(Type)", "parent": 197, "children": [199], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 57}}, {"id": 199, "type": "identifier", "text": "Type", "parent": 198, "children": [], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 56}}, {"id": 200, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 42, "column": 58}, "end_point": {"row": 42, "column": 59}}, {"id": 201, "type": "identifier", "text": "m_MaxAllocs", "parent": 196, "children": [], "start_point": {"row": 42, "column": 60}, "end_point": {"row": 42, "column": 71}}, {"id": 202, "type": "labeled_statement", "text": "std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;", "parent": null, "children": [203, 204], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 56}}, {"id": 203, "type": "statement_identifier", "text": "std", "parent": 202, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 7}}, {"id": 204, "type": "declaration", "text": "size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;", "parent": 202, "children": [205, 206], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 56}}, {"id": 205, "type": "primitive_type", "text": "size_t", "parent": 204, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 15}}, {"id": 206, "type": "init_declarator", "text": "alloc_mask_size = (m_MaxAllocs + 7) / 8", "parent": 204, "children": [207, 208, 209], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 55}}, {"id": 207, "type": "identifier", "text": "alloc_mask_size", "parent": 206, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 31}}, {"id": 208, "type": "=", "text": "=", "parent": 206, "children": [], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 33}}, {"id": 209, "type": "binary_expression", "text": "(m_MaxAllocs + 7) / 8", "parent": 206, "children": [210, 215, 216], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 55}}, {"id": 210, "type": "parenthesized_expression", "text": "(m_MaxAllocs + 7)", "parent": 209, "children": [211], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 51}}, {"id": 211, "type": "binary_expression", "text": "m_MaxAllocs + 7", "parent": 210, "children": [212, 213, 214], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 50}}, {"id": 212, "type": "identifier", "text": "m_MaxAllocs", "parent": 211, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 46}}, {"id": 213, "type": "+", "text": "+", "parent": 211, "children": [], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 48}}, {"id": 214, "type": "number_literal", "text": "7", "parent": 211, "children": [], "start_point": {"row": 44, "column": 49}, "end_point": {"row": 44, "column": 50}}, {"id": 215, "type": "/", "text": "/", "parent": 209, "children": [], "start_point": {"row": 44, "column": 52}, "end_point": {"row": 44, "column": 53}}, {"id": 216, "type": "number_literal", "text": "8", "parent": 209, "children": [], "start_point": {"row": 44, "column": 54}, "end_point": {"row": 44, "column": 55}}, {"id": 217, "type": "assignment_expression", "text": "m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size))", "parent": null, "children": [218, 219, 220], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 65}}, {"id": 218, "type": "identifier", "text": "m_AllocMask", "parent": 217, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 15}}, {"id": 219, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 17}}, {"id": 220, "type": "binary_expression", "text": "static_cast<uint8_t *>(malloc(alloc_mask_size))", "parent": 217, "children": [221, 225, 227, 228], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 65}}, {"id": 221, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 220, "children": [222, 223, 224], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 37}}, {"id": 222, "type": "identifier", "text": "static_cast", "parent": 221, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 29}}, {"id": 223, "type": "<", "text": "<", "parent": 221, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 30}}, {"id": 224, "type": "identifier", "text": "uint8_t", "parent": 221, "children": [], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 37}}, {"id": 225, "type": "ERROR", "text": "*", "parent": 220, "children": [226], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 39}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 39}}, {"id": 227, "type": ">", "text": ">", "parent": 220, "children": [], "start_point": {"row": 45, "column": 39}, "end_point": {"row": 45, "column": 40}}, {"id": 228, "type": "parenthesized_expression", "text": "(malloc(alloc_mask_size))", "parent": 220, "children": [229], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 65}}, {"id": 229, "type": "call_expression", "text": "malloc(alloc_mask_size)", "parent": 228, "children": [230, 231], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 64}}, {"id": 230, "type": "identifier", "text": "malloc", "parent": 229, "children": [], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 47}}, {"id": 231, "type": "argument_list", "text": "(alloc_mask_size)", "parent": 229, "children": [232], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 64}}, {"id": 232, "type": "identifier", "text": "alloc_mask_size", "parent": 231, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 63}}, {"id": 233, "type": "assignment_expression", "text": "m_AllocMask[0] = to_copy.m_AllocMask[0]", "parent": null, "children": [234, 237, 238], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 43}}, {"id": 234, "type": "subscript_expression", "text": "m_AllocMask[0]", "parent": 233, "children": [235, 236], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 18}}, {"id": 235, "type": "identifier", "text": "m_AllocMask", "parent": 234, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 15}}, {"id": 236, "type": "number_literal", "text": "0", "parent": 234, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 17}}, {"id": 237, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 238, "type": "subscript_expression", "text": "to_copy.m_AllocMask[0]", "parent": 233, "children": [239, 242], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 43}}, {"id": 239, "type": "field_expression", "text": "to_copy.m_AllocMask", "parent": 238, "children": [240, 241], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 40}}, {"id": 240, "type": "identifier", "text": "to_copy", "parent": 239, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 28}}, {"id": 241, "type": "field_identifier", "text": "m_AllocMask", "parent": 239, "children": [], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 40}}, {"id": 242, "type": "number_literal", "text": "0", "parent": 238, "children": [], "start_point": {"row": 47, "column": 41}, "end_point": {"row": 47, "column": 42}}, {"id": 243, "type": "for_statement", "text": "for (std::size_t index = 0, byte = 0, bit = 0; index < to_copy.m_MaxAllocs; ++index, ++bit)\n {\n if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }\n\n if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }\n }", "parent": null, "children": [244, 246, 260, 266], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 63, "column": 5}}, {"id": 244, "type": "ERROR", "text": "std::", "parent": 243, "children": [245], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 14}}, {"id": 245, "type": "identifier", "text": "std", "parent": 244, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 12}}, {"id": 246, "type": "declaration", "text": "size_t index = 0, byte = 0, bit = 0;", "parent": 243, "children": [247, 248, 252, 256], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 50}}, {"id": 247, "type": "primitive_type", "text": "size_t", "parent": 246, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 20}}, {"id": 248, "type": "init_declarator", "text": "index = 0", "parent": 246, "children": [249, 250, 251], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 30}}, {"id": 249, "type": "identifier", "text": "index", "parent": 248, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 26}}, {"id": 250, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 28}}, {"id": 251, "type": "number_literal", "text": "0", "parent": 248, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 30}}, {"id": 252, "type": "init_declarator", "text": "byte = 0", "parent": 246, "children": [253, 254, 255], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 40}}, {"id": 253, "type": "identifier", "text": "byte", "parent": 252, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 36}}, {"id": 254, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 49, "column": 37}, "end_point": {"row": 49, "column": 38}}, {"id": 255, "type": "number_literal", "text": "0", "parent": 252, "children": [], "start_point": {"row": 49, "column": 39}, "end_point": {"row": 49, "column": 40}}, {"id": 256, "type": "init_declarator", "text": "bit = 0", "parent": 246, "children": [257, 258, 259], "start_point": {"row": 49, "column": 42}, "end_point": {"row": 49, "column": 49}}, {"id": 257, "type": "identifier", "text": "bit", "parent": 256, "children": [], "start_point": {"row": 49, "column": 42}, "end_point": {"row": 49, "column": 45}}, {"id": 258, "type": "=", "text": "=", "parent": 256, "children": [], "start_point": {"row": 49, "column": 46}, "end_point": {"row": 49, "column": 47}}, {"id": 259, "type": "number_literal", "text": "0", "parent": 256, "children": [], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 49, "column": 49}}, {"id": 260, "type": "binary_expression", "text": "index < to_copy.m_MaxAllocs", "parent": 243, "children": [261, 262, 263], "start_point": {"row": 49, "column": 51}, "end_point": {"row": 49, "column": 78}}, {"id": 261, "type": "identifier", "text": "index", "parent": 260, "children": [], "start_point": {"row": 49, "column": 51}, "end_point": {"row": 49, "column": 56}}, {"id": 262, "type": "<", "text": "<", "parent": 260, "children": [], "start_point": {"row": 49, "column": 57}, "end_point": {"row": 49, "column": 58}}, {"id": 263, "type": "field_expression", "text": "to_copy.m_MaxAllocs", "parent": 260, "children": [264, 265], "start_point": {"row": 49, "column": 59}, "end_point": {"row": 49, "column": 78}}, {"id": 264, "type": "identifier", "text": "to_copy", "parent": 263, "children": [], "start_point": {"row": 49, "column": 59}, "end_point": {"row": 49, "column": 66}}, {"id": 265, "type": "field_identifier", "text": "m_MaxAllocs", "parent": 263, "children": [], "start_point": {"row": 49, "column": 67}, "end_point": {"row": 49, "column": 78}}, {"id": 266, "type": "comma_expression", "text": "++index, ++bit", "parent": 243, "children": [267, 270], "start_point": {"row": 49, "column": 80}, "end_point": {"row": 49, "column": 94}}, {"id": 267, "type": "update_expression", "text": "++index", "parent": 266, "children": [268, 269], "start_point": {"row": 49, "column": 80}, "end_point": {"row": 49, "column": 87}}, {"id": 268, "type": "++", "text": "++", "parent": 267, "children": [], "start_point": {"row": 49, "column": 80}, "end_point": {"row": 49, "column": 82}}, {"id": 269, "type": "identifier", "text": "index", "parent": 267, "children": [], "start_point": {"row": 49, "column": 82}, "end_point": {"row": 49, "column": 87}}, {"id": 270, "type": "update_expression", "text": "++bit", "parent": 266, "children": [271, 272], "start_point": {"row": 49, "column": 89}, "end_point": {"row": 49, "column": 94}}, {"id": 271, "type": "++", "text": "++", "parent": 270, "children": [], "start_point": {"row": 49, "column": 89}, "end_point": {"row": 49, "column": 91}}, {"id": 272, "type": "identifier", "text": "bit", "parent": 270, "children": [], "start_point": {"row": 49, "column": 91}, "end_point": {"row": 49, "column": 94}}, {"id": 273, "type": "if_statement", "text": "if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }", "parent": 243, "children": [274], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 57, "column": 7}}, {"id": 274, "type": "parenthesized_expression", "text": "(bit == 8)", "parent": 273, "children": [275], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 19}}, {"id": 275, "type": "binary_expression", "text": "bit == 8", "parent": 274, "children": [276, 277, 278], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 18}}, {"id": 276, "type": "identifier", "text": "bit", "parent": 275, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 13}}, {"id": 277, "type": "==", "text": "==", "parent": 275, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 16}}, {"id": 278, "type": "number_literal", "text": "8", "parent": 275, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 279, "type": "assignment_expression", "text": "bit = 0", "parent": 273, "children": [280, 281, 282], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 15}}, {"id": 280, "type": "identifier", "text": "bit", "parent": 279, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 11}}, {"id": 281, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 282, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 283, "type": "update_expression", "text": "byte++", "parent": 273, "children": [284, 285], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 14}}, {"id": 284, "type": "identifier", "text": "byte", "parent": 283, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 12}}, {"id": 285, "type": "++", "text": "++", "parent": 283, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 14}}, {"id": 286, "type": "assignment_expression", "text": "m_AllocMask[byte] = to_copy.m_AllocMask[byte]", "parent": 273, "children": [287, 290, 291], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 53}}, {"id": 287, "type": "subscript_expression", "text": "m_AllocMask[byte]", "parent": 286, "children": [288, 289], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 25}}, {"id": 288, "type": "identifier", "text": "m_AllocMask", "parent": 287, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 19}}, {"id": 289, "type": "identifier", "text": "byte", "parent": 287, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 24}}, {"id": 290, "type": "=", "text": "=", "parent": 286, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 27}}, {"id": 291, "type": "subscript_expression", "text": "to_copy.m_AllocMask[byte]", "parent": 286, "children": [292, 295], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 53}}, {"id": 292, "type": "field_expression", "text": "to_copy.m_AllocMask", "parent": 291, "children": [293, 294], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 47}}, {"id": 293, "type": "identifier", "text": "to_copy", "parent": 292, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 35}}, {"id": 294, "type": "field_identifier", "text": "m_AllocMask", "parent": 292, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 47}}, {"id": 295, "type": "identifier", "text": "byte", "parent": 291, "children": [], "start_point": {"row": 56, "column": 48}, "end_point": {"row": 56, "column": 52}}, {"id": 296, "type": "if_statement", "text": "if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }", "parent": 243, "children": [297], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 62, "column": 7}}, {"id": 297, "type": "parenthesized_expression", "text": "((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)", "parent": 296, "children": [298], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 56}}, {"id": 298, "type": "binary_expression", "text": "(to_copy.m_AllocMask[byte] & (1 << bit)) != 0", "parent": 297, "children": [299, 311, 312], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 55}}, {"id": 299, "type": "parenthesized_expression", "text": "(to_copy.m_AllocMask[byte] & (1 << bit))", "parent": 298, "children": [300], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 50}}, {"id": 300, "type": "binary_expression", "text": "to_copy.m_AllocMask[byte] & (1 << bit)", "parent": 299, "children": [301, 306], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 49}}, {"id": 301, "type": "subscript_expression", "text": "to_copy.m_AllocMask[byte]", "parent": 300, "children": [302, 305], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 36}}, {"id": 302, "type": "field_expression", "text": "to_copy.m_AllocMask", "parent": 301, "children": [303, 304], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 30}}, {"id": 303, "type": "identifier", "text": "to_copy", "parent": 302, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 18}}, {"id": 304, "type": "field_identifier", "text": "m_AllocMask", "parent": 302, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 30}}, {"id": 305, "type": "identifier", "text": "byte", "parent": 301, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 35}}, {"id": 306, "type": "parenthesized_expression", "text": "(1 << bit)", "parent": 300, "children": [307], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 49}}, {"id": 307, "type": "binary_expression", "text": "1 << bit", "parent": 306, "children": [308, 309, 310], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 59, "column": 48}}, {"id": 308, "type": "number_literal", "text": "1", "parent": 307, "children": [], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 59, "column": 41}}, {"id": 309, "type": "<<", "text": "<<", "parent": 307, "children": [], "start_point": {"row": 59, "column": 42}, "end_point": {"row": 59, "column": 44}}, {"id": 310, "type": "identifier", "text": "bit", "parent": 307, "children": [], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 48}}, {"id": 311, "type": "!=", "text": "!=", "parent": 298, "children": [], "start_point": {"row": 59, "column": 51}, "end_point": {"row": 59, "column": 53}}, {"id": 312, "type": "number_literal", "text": "0", "parent": 298, "children": [], "start_point": {"row": 59, "column": 54}, "end_point": {"row": 59, "column": 55}}, {"id": 313, "type": "declaration", "text": "new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());", "parent": 296, "children": [314, 321], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 60}}, {"id": 314, "type": "macro_type_specifier", "text": "new (GetAllocAt(index))", "parent": 313, "children": [315], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 31}}, {"id": 315, "type": "type_descriptor", "text": "GetAllocAt(index)", "parent": 314, "children": [316, 317], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 30}}, {"id": 316, "type": "type_identifier", "text": "GetAllocAt", "parent": 315, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 23}}, {"id": 317, "type": "abstract_function_declarator", "text": "(index)", "parent": 315, "children": [318], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 30}}, {"id": 318, "type": "parameter_list", "text": "(index)", "parent": 317, "children": [319], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 30}}, {"id": 319, "type": "parameter_declaration", "text": "index", "parent": 318, "children": [320], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 29}}, {"id": 320, "type": "type_identifier", "text": "index", "parent": 319, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 29}}, {"id": 321, "type": "function_declarator", "text": "Type(*to_copy.GetAllocAt())", "parent": 313, "children": [322, 323], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 59}}, {"id": 322, "type": "identifier", "text": "Type", "parent": 321, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 36}}, {"id": 323, "type": "parameter_list", "text": "(*to_copy.GetAllocAt())", "parent": 321, "children": [324, 326], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 59}}, {"id": 324, "type": "ERROR", "text": "*", "parent": 323, "children": [325], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 38}}, {"id": 325, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 38}}, {"id": 326, "type": "parameter_declaration", "text": "to_copy.GetAllocAt()", "parent": 323, "children": [327, 328], "start_point": {"row": 61, "column": 38}, "end_point": {"row": 61, "column": 58}}, {"id": 327, "type": "type_identifier", "text": "to_copy", "parent": 326, "children": [], "start_point": {"row": 61, "column": 38}, "end_point": {"row": 61, "column": 45}}, {"id": 328, "type": "function_declarator", "text": "GetAllocAt()", "parent": 326, "children": [329, 330], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 58}}, {"id": 329, "type": "identifier", "text": "GetAllocAt", "parent": 328, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 56}}, {"id": 330, "type": "parameter_list", "text": "()", "parent": 328, "children": [], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 58}}, {"id": 331, "type": "declaration", "text": "int my_bytes = (m_MaxAllocs + 7) / 8;", "parent": null, "children": [332, 333], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 41}}, {"id": 332, "type": "primitive_type", "text": "int", "parent": 331, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 7}}, {"id": 333, "type": "init_declarator", "text": "my_bytes = (m_MaxAllocs + 7) / 8", "parent": 331, "children": [334, 335, 336], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 40}}, {"id": 334, "type": "identifier", "text": "my_bytes", "parent": 333, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 16}}, {"id": 335, "type": "=", "text": "=", "parent": 333, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 18}}, {"id": 336, "type": "binary_expression", "text": "(m_MaxAllocs + 7) / 8", "parent": 333, "children": [337, 342, 343], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 40}}, {"id": 337, "type": "parenthesized_expression", "text": "(m_MaxAllocs + 7)", "parent": 336, "children": [338], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 36}}, {"id": 338, "type": "binary_expression", "text": "m_MaxAllocs + 7", "parent": 337, "children": [339, 340, 341], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 35}}, {"id": 339, "type": "identifier", "text": "m_MaxAllocs", "parent": 338, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 31}}, {"id": 340, "type": "+", "text": "+", "parent": 338, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 33}}, {"id": 341, "type": "number_literal", "text": "7", "parent": 338, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 35}}, {"id": 342, "type": "/", "text": "/", "parent": 336, "children": [], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 38}}, {"id": 343, "type": "number_literal", "text": "8", "parent": 336, "children": [], "start_point": {"row": 65, "column": 39}, "end_point": {"row": 65, "column": 40}}, {"id": 344, "type": "declaration", "text": "int to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8;", "parent": null, "children": [345, 346], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 54}}, {"id": 345, "type": "primitive_type", "text": "int", "parent": 344, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 7}}, {"id": 346, "type": "init_declarator", "text": "to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8", "parent": 344, "children": [347, 348, 349], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 53}}, {"id": 347, "type": "identifier", "text": "to_copy_bytes", "parent": 346, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 21}}, {"id": 348, "type": "=", "text": "=", "parent": 346, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 23}}, {"id": 349, "type": "binary_expression", "text": "(to_copy.m_MaxAllocs + 7) / 8", "parent": 346, "children": [350, 357, 358], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 53}}, {"id": 350, "type": "parenthesized_expression", "text": "(to_copy.m_MaxAllocs + 7)", "parent": 349, "children": [351], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 49}}, {"id": 351, "type": "binary_expression", "text": "to_copy.m_MaxAllocs + 7", "parent": 350, "children": [352, 355, 356], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 48}}, {"id": 352, "type": "field_expression", "text": "to_copy.m_MaxAllocs", "parent": 351, "children": [353, 354], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 44}}, {"id": 353, "type": "identifier", "text": "to_copy", "parent": 352, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 32}}, {"id": 354, "type": "field_identifier", "text": "m_MaxAllocs", "parent": 352, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 44}}, {"id": 355, "type": "+", "text": "+", "parent": 351, "children": [], "start_point": {"row": 66, "column": 45}, "end_point": {"row": 66, "column": 46}}, {"id": 356, "type": "number_literal", "text": "7", "parent": 351, "children": [], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 48}}, {"id": 357, "type": "/", "text": "/", "parent": 349, "children": [], "start_point": {"row": 66, "column": 50}, "end_point": {"row": 66, "column": 51}}, {"id": 358, "type": "number_literal", "text": "8", "parent": 349, "children": [], "start_point": {"row": 66, "column": 52}, "end_point": {"row": 66, "column": 53}}, {"id": 359, "type": "if_statement", "text": "if (my_bytes > to_copy_bytes)\n {\n memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);\n }", "parent": null, "children": [360], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 360, "type": "parenthesized_expression", "text": "(my_bytes > to_copy_bytes)", "parent": 359, "children": [361], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 33}}, {"id": 361, "type": "binary_expression", "text": "my_bytes > to_copy_bytes", "parent": 360, "children": [362, 363, 364], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 32}}, {"id": 362, "type": "identifier", "text": "my_bytes", "parent": 361, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 16}}, {"id": 363, "type": ">", "text": ">", "parent": 361, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 18}}, {"id": 364, "type": "identifier", "text": "to_copy_bytes", "parent": 361, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 32}}, {"id": 365, "type": "call_expression", "text": "memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes)", "parent": 359, "children": [366, 367], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 70}}, {"id": 366, "type": "identifier", "text": "memset", "parent": 365, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 12}}, {"id": 367, "type": "argument_list", "text": "(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes)", "parent": 365, "children": [368, 372, 373], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 70}}, {"id": 368, "type": "pointer_expression", "text": "&m_AllocMask[to_copy_bytes]", "parent": 367, "children": [369], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 40}}, {"id": 369, "type": "subscript_expression", "text": "m_AllocMask[to_copy_bytes]", "parent": 368, "children": [370, 371], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 40}}, {"id": 370, "type": "identifier", "text": "m_AllocMask", "parent": 369, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 25}}, {"id": 371, "type": "identifier", "text": "to_copy_bytes", "parent": 369, "children": [], "start_point": {"row": 69, "column": 26}, "end_point": {"row": 69, "column": 39}}, {"id": 372, "type": "number_literal", "text": "0", "parent": 367, "children": [], "start_point": {"row": 69, "column": 42}, "end_point": {"row": 69, "column": 43}}, {"id": 373, "type": "binary_expression", "text": "my_bytes - to_copy_bytes", "parent": 367, "children": [374, 375, 376], "start_point": {"row": 69, "column": 45}, "end_point": {"row": 69, "column": 69}}, {"id": 374, "type": "identifier", "text": "my_bytes", "parent": 373, "children": [], "start_point": {"row": 69, "column": 45}, "end_point": {"row": 69, "column": 53}}, {"id": 375, "type": "-", "text": "-", "parent": 373, "children": [], "start_point": {"row": 69, "column": 54}, "end_point": {"row": 69, "column": 55}}, {"id": 376, "type": "identifier", "text": "to_copy_bytes", "parent": 373, "children": [], "start_point": {"row": 69, "column": 56}, "end_point": {"row": 69, "column": 69}}, {"id": 377, "type": "assignment_expression", "text": "m_Head = nullptr", "parent": null, "children": [378, 379, 380], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 20}}, {"id": 378, "type": "identifier", "text": "m_Head", "parent": 377, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 10}}, {"id": 379, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 12}}, {"id": 380, "type": "null", "text": "nullptr", "parent": 377, "children": [381], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 20}}, {"id": 381, "type": "nullptr", "text": "nullptr", "parent": 380, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 20}}, {"id": 382, "type": "for_statement", "text": "for (int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8; index >= 0; --index, --bit)\n {\n if (bit < 0)\n {\n bit = 7;\n byte--;\n }\n\n if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }\n }", "parent": null, "children": [383, 414, 418], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 87, "column": 5}}, {"id": 383, "type": "declaration", "text": "int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8;", "parent": 382, "children": [384, 385, 392, 403], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 96}}, {"id": 384, "type": "primitive_type", "text": "int", "parent": 383, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 12}}, {"id": 385, "type": "init_declarator", "text": "index = m_MaxAllocs - 1", "parent": 383, "children": [386, 387, 388], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 36}}, {"id": 386, "type": "identifier", "text": "index", "parent": 385, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 18}}, {"id": 387, "type": "=", "text": "=", "parent": 385, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 20}}, {"id": 388, "type": "binary_expression", "text": "m_MaxAllocs - 1", "parent": 385, "children": [389, 390, 391], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 36}}, {"id": 389, "type": "identifier", "text": "m_MaxAllocs", "parent": 388, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 32}}, {"id": 390, "type": "-", "text": "-", "parent": 388, "children": [], "start_point": {"row": 73, "column": 33}, "end_point": {"row": 73, "column": 34}}, {"id": 391, "type": "number_literal", "text": "1", "parent": 388, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 36}}, {"id": 392, "type": "init_declarator", "text": "byte = (m_MaxAllocs - 1) / 8", "parent": 383, "children": [393, 394, 395], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 66}}, {"id": 393, "type": "identifier", "text": "byte", "parent": 392, "children": [], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 42}}, {"id": 394, "type": "=", "text": "=", "parent": 392, "children": [], "start_point": {"row": 73, "column": 43}, "end_point": {"row": 73, "column": 44}}, {"id": 395, "type": "binary_expression", "text": "(m_MaxAllocs - 1) / 8", "parent": 392, "children": [396, 401, 402], "start_point": {"row": 73, "column": 45}, "end_point": {"row": 73, "column": 66}}, {"id": 396, "type": "parenthesized_expression", "text": "(m_MaxAllocs - 1)", "parent": 395, "children": [397], "start_point": {"row": 73, "column": 45}, "end_point": {"row": 73, "column": 62}}, {"id": 397, "type": "binary_expression", "text": "m_MaxAllocs - 1", "parent": 396, "children": [398, 399, 400], "start_point": {"row": 73, "column": 46}, "end_point": {"row": 73, "column": 61}}, {"id": 398, "type": "identifier", "text": "m_MaxAllocs", "parent": 397, "children": [], "start_point": {"row": 73, "column": 46}, "end_point": {"row": 73, "column": 57}}, {"id": 399, "type": "-", "text": "-", "parent": 397, "children": [], "start_point": {"row": 73, "column": 58}, "end_point": {"row": 73, "column": 59}}, {"id": 400, "type": "number_literal", "text": "1", "parent": 397, "children": [], "start_point": {"row": 73, "column": 60}, "end_point": {"row": 73, "column": 61}}, {"id": 401, "type": "/", "text": "/", "parent": 395, "children": [], "start_point": {"row": 73, "column": 63}, "end_point": {"row": 73, "column": 64}}, {"id": 402, "type": "number_literal", "text": "8", "parent": 395, "children": [], "start_point": {"row": 73, "column": 65}, "end_point": {"row": 73, "column": 66}}, {"id": 403, "type": "init_declarator", "text": "bit = (m_MaxAllocs - 1) % 8", "parent": 383, "children": [404, 405, 406], "start_point": {"row": 73, "column": 68}, "end_point": {"row": 73, "column": 95}}, {"id": 404, "type": "identifier", "text": "bit", "parent": 403, "children": [], "start_point": {"row": 73, "column": 68}, "end_point": {"row": 73, "column": 71}}, {"id": 405, "type": "=", "text": "=", "parent": 403, "children": [], "start_point": {"row": 73, "column": 72}, "end_point": {"row": 73, "column": 73}}, {"id": 406, "type": "binary_expression", "text": "(m_MaxAllocs - 1) % 8", "parent": 403, "children": [407, 412, 413], "start_point": {"row": 73, "column": 74}, "end_point": {"row": 73, "column": 95}}, {"id": 407, "type": "parenthesized_expression", "text": "(m_MaxAllocs - 1)", "parent": 406, "children": [408], "start_point": {"row": 73, "column": 74}, "end_point": {"row": 73, "column": 91}}, {"id": 408, "type": "binary_expression", "text": "m_MaxAllocs - 1", "parent": 407, "children": [409, 410, 411], "start_point": {"row": 73, "column": 75}, "end_point": {"row": 73, "column": 90}}, {"id": 409, "type": "identifier", "text": "m_MaxAllocs", "parent": 408, "children": [], "start_point": {"row": 73, "column": 75}, "end_point": {"row": 73, "column": 86}}, {"id": 410, "type": "-", "text": "-", "parent": 408, "children": [], "start_point": {"row": 73, "column": 87}, "end_point": {"row": 73, "column": 88}}, {"id": 411, "type": "number_literal", "text": "1", "parent": 408, "children": [], "start_point": {"row": 73, "column": 89}, "end_point": {"row": 73, "column": 90}}, {"id": 412, "type": "%", "text": "%", "parent": 406, "children": [], "start_point": {"row": 73, "column": 92}, "end_point": {"row": 73, "column": 93}}, {"id": 413, "type": "number_literal", "text": "8", "parent": 406, "children": [], "start_point": {"row": 73, "column": 94}, "end_point": {"row": 73, "column": 95}}, {"id": 414, "type": "binary_expression", "text": "index >= 0", "parent": 382, "children": [415, 416, 417], "start_point": {"row": 73, "column": 97}, "end_point": {"row": 73, "column": 107}}, {"id": 415, "type": "identifier", "text": "index", "parent": 414, "children": [], "start_point": {"row": 73, "column": 97}, "end_point": {"row": 73, "column": 102}}, {"id": 416, "type": ">=", "text": ">=", "parent": 414, "children": [], "start_point": {"row": 73, "column": 103}, "end_point": {"row": 73, "column": 105}}, {"id": 417, "type": "number_literal", "text": "0", "parent": 414, "children": [], "start_point": {"row": 73, "column": 106}, "end_point": {"row": 73, "column": 107}}, {"id": 418, "type": "comma_expression", "text": "--index, --bit", "parent": 382, "children": [419, 422], "start_point": {"row": 73, "column": 109}, "end_point": {"row": 73, "column": 123}}, {"id": 419, "type": "update_expression", "text": "--index", "parent": 418, "children": [420, 421], "start_point": {"row": 73, "column": 109}, "end_point": {"row": 73, "column": 116}}, {"id": 420, "type": "--", "text": "--", "parent": 419, "children": [], "start_point": {"row": 73, "column": 109}, "end_point": {"row": 73, "column": 111}}, {"id": 421, "type": "identifier", "text": "index", "parent": 419, "children": [], "start_point": {"row": 73, "column": 111}, "end_point": {"row": 73, "column": 116}}, {"id": 422, "type": "update_expression", "text": "--bit", "parent": 418, "children": [423, 424], "start_point": {"row": 73, "column": 118}, "end_point": {"row": 73, "column": 123}}, {"id": 423, "type": "--", "text": "--", "parent": 422, "children": [], "start_point": {"row": 73, "column": 118}, "end_point": {"row": 73, "column": 120}}, {"id": 424, "type": "identifier", "text": "bit", "parent": 422, "children": [], "start_point": {"row": 73, "column": 120}, "end_point": {"row": 73, "column": 123}}, {"id": 425, "type": "if_statement", "text": "if (bit < 0)\n {\n bit = 7;\n byte--;\n }", "parent": 382, "children": [426], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 79, "column": 7}}, {"id": 426, "type": "parenthesized_expression", "text": "(bit < 0)", "parent": 425, "children": [427], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 18}}, {"id": 427, "type": "binary_expression", "text": "bit < 0", "parent": 426, "children": [428, 429, 430], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 17}}, {"id": 428, "type": "identifier", "text": "bit", "parent": 427, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 13}}, {"id": 429, "type": "<", "text": "<", "parent": 427, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 15}}, {"id": 430, "type": "number_literal", "text": "0", "parent": 427, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 17}}, {"id": 431, "type": "assignment_expression", "text": "bit = 7", "parent": 425, "children": [432, 433, 434], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 15}}, {"id": 432, "type": "identifier", "text": "bit", "parent": 431, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 11}}, {"id": 433, "type": "=", "text": "=", "parent": 431, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 434, "type": "number_literal", "text": "7", "parent": 431, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 15}}, {"id": 435, "type": "update_expression", "text": "byte--", "parent": 425, "children": [436, 437], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 14}}, {"id": 436, "type": "identifier", "text": "byte", "parent": 435, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 12}}, {"id": 437, "type": "--", "text": "--", "parent": 435, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 14}}, {"id": 438, "type": "if_statement", "text": "if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }", "parent": 382, "children": [439], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 86, "column": 7}}, {"id": 439, "type": "parenthesized_expression", "text": "((m_AllocMask[byte] & (1 << bit)) == 0)", "parent": 438, "children": [440], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 48}}, {"id": 440, "type": "binary_expression", "text": "(m_AllocMask[byte] & (1 << bit)) == 0", "parent": 439, "children": [441, 451, 452], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 47}}, {"id": 441, "type": "parenthesized_expression", "text": "(m_AllocMask[byte] & (1 << bit))", "parent": 440, "children": [442], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 42}}, {"id": 442, "type": "binary_expression", "text": "m_AllocMask[byte] & (1 << bit)", "parent": 441, "children": [443, 446], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 41}}, {"id": 443, "type": "subscript_expression", "text": "m_AllocMask[byte]", "parent": 442, "children": [444, 445], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 28}}, {"id": 444, "type": "identifier", "text": "m_AllocMask", "parent": 443, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 22}}, {"id": 445, "type": "identifier", "text": "byte", "parent": 443, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 27}}, {"id": 446, "type": "parenthesized_expression", "text": "(1 << bit)", "parent": 442, "children": [447], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 41}}, {"id": 447, "type": "binary_expression", "text": "1 << bit", "parent": 446, "children": [448, 449, 450], "start_point": {"row": 81, "column": 32}, "end_point": {"row": 81, "column": 40}}, {"id": 448, "type": "number_literal", "text": "1", "parent": 447, "children": [], "start_point": {"row": 81, "column": 32}, "end_point": {"row": 81, "column": 33}}, {"id": 449, "type": "<<", "text": "<<", "parent": 447, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 36}}, {"id": 450, "type": "identifier", "text": "bit", "parent": 447, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 40}}, {"id": 451, "type": "==", "text": "==", "parent": 440, "children": [], "start_point": {"row": 81, "column": 43}, "end_point": {"row": 81, "column": 45}}, {"id": 452, "type": "number_literal", "text": "0", "parent": 440, "children": [], "start_point": {"row": 81, "column": 46}, "end_point": {"row": 81, "column": 47}}, {"id": 453, "type": "declaration", "text": "auto ptr = GetPtrAt(index);", "parent": 438, "children": [454, 456, 457, 459], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 35}}, {"id": 454, "type": "storage_class_specifier", "text": "auto", "parent": 453, "children": [455], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 12}}, {"id": 455, "type": "auto", "text": "auto", "parent": 454, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 12}}, {"id": 456, "type": "type_identifier", "text": "ptr", "parent": 453, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 16}}, {"id": 457, "type": "ERROR", "text": "=", "parent": 453, "children": [458], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 18}}, {"id": 458, "type": "=", "text": "=", "parent": 457, "children": [], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 18}}, {"id": 459, "type": "function_declarator", "text": "GetPtrAt(index)", "parent": 453, "children": [460, 461], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 34}}, {"id": 460, "type": "identifier", "text": "GetPtrAt", "parent": 459, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 27}}, {"id": 461, "type": "parameter_list", "text": "(index)", "parent": 459, "children": [462], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 34}}, {"id": 462, "type": "parameter_declaration", "text": "index", "parent": 461, "children": [463], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 33}}, {"id": 463, "type": "type_identifier", "text": "index", "parent": 462, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 33}}, {"id": 464, "type": "assignment_expression", "text": "*ptr = m_Head", "parent": 438, "children": [465, 468, 469], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 21}}, {"id": 465, "type": "pointer_expression", "text": "*ptr", "parent": 464, "children": [466, 467], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 12}}, {"id": 466, "type": "*", "text": "*", "parent": 465, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 9}}, {"id": 467, "type": "identifier", "text": "ptr", "parent": 465, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 12}}, {"id": 468, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 14}}, {"id": 469, "type": "identifier", "text": "m_Head", "parent": 464, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 21}}, {"id": 470, "type": "assignment_expression", "text": "m_Head = ptr", "parent": 438, "children": [471, 472, 473], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 20}}, {"id": 471, "type": "identifier", "text": "m_Head", "parent": 470, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 14}}, {"id": 472, "type": "=", "text": "=", "parent": 470, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 16}}, {"id": 473, "type": "identifier", "text": "ptr", "parent": 470, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 20}}, {"id": 474, "type": "unary_expression", "text": "~StaticSizedAlloc()", "parent": null, "children": [475, 476], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 21}}, {"id": 475, "type": "~", "text": "~", "parent": 474, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 3}}, {"id": 476, "type": "call_expression", "text": "StaticSizedAlloc()", "parent": 474, "children": [477, 478], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 21}}, {"id": 477, "type": "identifier", "text": "StaticSizedAlloc", "parent": 476, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 19}}, {"id": 478, "type": "argument_list", "text": "()", "parent": 476, "children": [], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 21}}, {"id": 479, "type": "for_statement", "text": "for (std::size_t index = 0; index < m_MaxAllocs; index++)\n {\n if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }\n }", "parent": null, "children": [480, 482, 488, 492], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 98, "column": 5}}, {"id": 480, "type": "ERROR", "text": "std::", "parent": 479, "children": [481], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 14}}, {"id": 481, "type": "identifier", "text": "std", "parent": 480, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 12}}, {"id": 482, "type": "declaration", "text": "size_t index = 0;", "parent": 479, "children": [483, 484], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 31}}, {"id": 483, "type": "primitive_type", "text": "size_t", "parent": 482, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 20}}, {"id": 484, "type": "init_declarator", "text": "index = 0", "parent": 482, "children": [485, 486, 487], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 30}}, {"id": 485, "type": "identifier", "text": "index", "parent": 484, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 26}}, {"id": 486, "type": "=", "text": "=", "parent": 484, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 28}}, {"id": 487, "type": "number_literal", "text": "0", "parent": 484, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 30}}, {"id": 488, "type": "binary_expression", "text": "index < m_MaxAllocs", "parent": 479, "children": [489, 490, 491], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 51}}, {"id": 489, "type": "identifier", "text": "index", "parent": 488, "children": [], "start_point": {"row": 92, "column": 32}, "end_point": {"row": 92, "column": 37}}, {"id": 490, "type": "<", "text": "<", "parent": 488, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 39}}, {"id": 491, "type": "identifier", "text": "m_MaxAllocs", "parent": 488, "children": [], "start_point": {"row": 92, "column": 40}, "end_point": {"row": 92, "column": 51}}, {"id": 492, "type": "update_expression", "text": "index++", "parent": 479, "children": [493, 494], "start_point": {"row": 92, "column": 53}, "end_point": {"row": 92, "column": 60}}, {"id": 493, "type": "identifier", "text": "index", "parent": 492, "children": [], "start_point": {"row": 92, "column": 53}, "end_point": {"row": 92, "column": 58}}, {"id": 494, "type": "++", "text": "++", "parent": 492, "children": [], "start_point": {"row": 92, "column": 58}, "end_point": {"row": 92, "column": 60}}, {"id": 495, "type": "if_statement", "text": "if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }", "parent": 479, "children": [496], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 97, "column": 7}}, {"id": 496, "type": "parenthesized_expression", "text": "(GetAllocMask(index))", "parent": 495, "children": [497], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 30}}, {"id": 497, "type": "call_expression", "text": "GetAllocMask(index)", "parent": 496, "children": [498, 499], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 29}}, {"id": 498, "type": "identifier", "text": "GetAllocMask", "parent": 497, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 22}}, {"id": 499, "type": "argument_list", "text": "(index)", "parent": 497, "children": [500], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 29}}, {"id": 500, "type": "identifier", "text": "index", "parent": 499, "children": [], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 28}}, {"id": 501, "type": "call_expression", "text": "GetAllocAt(index)->~Type()", "parent": 495, "children": [502, 510], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 34}}, {"id": 502, "type": "field_expression", "text": "GetAllocAt(index)->~Type", "parent": 501, "children": [503, 507, 509], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 32}}, {"id": 503, "type": "call_expression", "text": "GetAllocAt(index)", "parent": 502, "children": [504, 505], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 25}}, {"id": 504, "type": "identifier", "text": "GetAllocAt", "parent": 503, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 18}}, {"id": 505, "type": "argument_list", "text": "(index)", "parent": 503, "children": [506], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 25}}, {"id": 506, "type": "identifier", "text": "index", "parent": 505, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 24}}, {"id": 507, "type": "ERROR", "text": "~", "parent": 502, "children": [508], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 28}}, {"id": 508, "type": "~", "text": "~", "parent": 507, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 28}}, {"id": 509, "type": "field_identifier", "text": "Type", "parent": 502, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 32}}, {"id": 510, "type": "argument_list", "text": "()", "parent": 501, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 34}}, {"id": 511, "type": "call_expression", "text": "free(m_Memory)", "parent": null, "children": [512, 513], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 18}}, {"id": 512, "type": "identifier", "text": "free", "parent": 511, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 8}}, {"id": 513, "type": "argument_list", "text": "(m_Memory)", "parent": 511, "children": [514], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 18}}, {"id": 514, "type": "identifier", "text": "m_Memory", "parent": 513, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 17}}, {"id": 515, "type": "call_expression", "text": "free(m_AllocMask)", "parent": null, "children": [516, 517], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 21}}, {"id": 516, "type": "identifier", "text": "free", "parent": 515, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 8}}, {"id": 517, "type": "argument_list", "text": "(m_AllocMask)", "parent": 515, "children": [518], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 21}}, {"id": 518, "type": "identifier", "text": "m_AllocMask", "parent": 517, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 20}}, {"id": 519, "type": "declaration", "text": "StaticSizedAlloc(const StaticSizedAlloc & rhs) = delete;", "parent": null, "children": [520, 526], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 58}}, {"id": 520, "type": "macro_type_specifier", "text": "StaticSizedAlloc(const StaticSizedAlloc & rhs)", "parent": 519, "children": [521, 522, 524], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 48}}, {"id": 521, "type": "identifier", "text": "StaticSizedAlloc", "parent": 520, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 18}}, {"id": 522, "type": "type_descriptor", "text": "const StaticSizedAlloc", "parent": 520, "children": [523], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 41}}, {"id": 523, "type": "type_identifier", "text": "StaticSizedAlloc", "parent": 522, "children": [], "start_point": {"row": 104, "column": 25}, "end_point": {"row": 104, "column": 41}}, {"id": 524, "type": "ERROR", "text": "& rhs", "parent": 520, "children": [525], "start_point": {"row": 104, "column": 42}, "end_point": {"row": 104, "column": 47}}, {"id": 525, "type": "identifier", "text": "rhs", "parent": 524, "children": [], "start_point": {"row": 104, "column": 44}, "end_point": {"row": 104, "column": 47}}, {"id": 526, "type": "ERROR", "text": "=", "parent": 519, "children": [527], "start_point": {"row": 104, "column": 49}, "end_point": {"row": 104, "column": 50}}, {"id": 527, "type": "=", "text": "=", "parent": 526, "children": [], "start_point": {"row": 104, "column": 49}, "end_point": {"row": 104, "column": 50}}, {"id": 528, "type": "assignment_expression", "text": "StaticSizedAlloc(StaticSizedAlloc && rhs) = delete", "parent": null, "children": [529, 536], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 52}}, {"id": 529, "type": "call_expression", "text": "StaticSizedAlloc(StaticSizedAlloc && rhs)", "parent": 528, "children": [530, 531], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 43}}, {"id": 530, "type": "identifier", "text": "StaticSizedAlloc", "parent": 529, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 18}}, {"id": 531, "type": "argument_list", "text": "(StaticSizedAlloc && rhs)", "parent": 529, "children": [532], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 43}}, {"id": 532, "type": "binary_expression", "text": "StaticSizedAlloc && rhs", "parent": 531, "children": [533, 534, 535], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 42}}, {"id": 533, "type": "identifier", "text": "StaticSizedAlloc", "parent": 532, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 35}}, {"id": 534, "type": "&&", "text": "&&", "parent": 532, "children": [], "start_point": {"row": 105, "column": 36}, "end_point": {"row": 105, "column": 38}}, {"id": 535, "type": "identifier", "text": "rhs", "parent": 532, "children": [], "start_point": {"row": 105, "column": 39}, "end_point": {"row": 105, "column": 42}}, {"id": 536, "type": "=", "text": "=", "parent": 528, "children": [], "start_point": {"row": 105, "column": 44}, "end_point": {"row": 105, "column": 45}}, {"id": 537, "type": "binary_expression", "text": "StaticSizedAlloc & operator = (const StaticSizedAlloc & rhs) = delete", "parent": null, "children": [538, 539], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 71}}, {"id": 538, "type": "identifier", "text": "StaticSizedAlloc", "parent": 537, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 18}}, {"id": 539, "type": "assignment_expression", "text": "operator = (const StaticSizedAlloc & rhs) = delete", "parent": 537, "children": [540, 541, 542], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 71}}, {"id": 540, "type": "identifier", "text": "operator", "parent": 539, "children": [], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 29}}, {"id": 541, "type": "=", "text": "=", "parent": 539, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 31}}, {"id": 542, "type": "assignment_expression", "text": "(const StaticSizedAlloc & rhs) = delete", "parent": 539, "children": [543, 549], "start_point": {"row": 107, "column": 32}, "end_point": {"row": 107, "column": 71}}, {"id": 543, "type": "parenthesized_expression", "text": "(const StaticSizedAlloc & rhs)", "parent": 542, "children": [544, 547], "start_point": {"row": 107, "column": 32}, "end_point": {"row": 107, "column": 62}}, {"id": 544, "type": "ERROR", "text": "const StaticSizedAlloc", "parent": 543, "children": [545], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 55}}, {"id": 545, "type": "type_descriptor", "text": "const StaticSizedAlloc", "parent": 544, "children": [546], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 55}}, {"id": 546, "type": "type_identifier", "text": "StaticSizedAlloc", "parent": 545, "children": [], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 55}}, {"id": 547, "type": "pointer_expression", "text": "& rhs", "parent": 543, "children": [548], "start_point": {"row": 107, "column": 56}, "end_point": {"row": 107, "column": 61}}, {"id": 548, "type": "identifier", "text": "rhs", "parent": 547, "children": [], "start_point": {"row": 107, "column": 58}, "end_point": {"row": 107, "column": 61}}, {"id": 549, "type": "=", "text": "=", "parent": 542, "children": [], "start_point": {"row": 107, "column": 63}, "end_point": {"row": 107, "column": 64}}, {"id": 550, "type": "binary_expression", "text": "StaticSizedAlloc & operator = (StaticSizedAlloc && rhs) = delete", "parent": null, "children": [551, 552], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 66}}, {"id": 551, "type": "identifier", "text": "StaticSizedAlloc", "parent": 550, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 18}}, {"id": 552, "type": "assignment_expression", "text": "operator = (StaticSizedAlloc && rhs) = delete", "parent": 550, "children": [553, 554, 555], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 66}}, {"id": 553, "type": "identifier", "text": "operator", "parent": 552, "children": [], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 29}}, {"id": 554, "type": "=", "text": "=", "parent": 552, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 31}}, {"id": 555, "type": "assignment_expression", "text": "(StaticSizedAlloc && rhs) = delete", "parent": 552, "children": [556, 561], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 66}}, {"id": 556, "type": "parenthesized_expression", "text": "(StaticSizedAlloc && rhs)", "parent": 555, "children": [557], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 57}}, {"id": 557, "type": "binary_expression", "text": "StaticSizedAlloc && rhs", "parent": 556, "children": [558, 559, 560], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 56}}, {"id": 558, "type": "identifier", "text": "StaticSizedAlloc", "parent": 557, "children": [], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 49}}, {"id": 559, "type": "&&", "text": "&&", "parent": 557, "children": [], "start_point": {"row": 108, "column": 50}, "end_point": {"row": 108, "column": 52}}, {"id": 560, "type": "identifier", "text": "rhs", "parent": 557, "children": [], "start_point": {"row": 108, "column": 53}, "end_point": {"row": 108, "column": 56}}, {"id": 561, "type": "=", "text": "=", "parent": 555, "children": [], "start_point": {"row": 108, "column": 58}, "end_point": {"row": 108, "column": 59}}, {"id": 562, "type": "function_definition", "text": "void Swap(StaticSizedAlloc<Type> & rhs)\n {\n std::swap(m_MaxAllocs, rhs.m_MaxAllocs);\n std::swap(m_Head, rhs.m_Head);\n std::swap(m_Memory, rhs.m_Memory);\n std::swap(m_AllocMask, rhs.m_AllocMask);\n }", "parent": null, "children": [563, 564], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 116, "column": 3}}, {"id": 563, "type": "primitive_type", "text": "void", "parent": 562, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 6}}, {"id": 564, "type": "function_declarator", "text": "Swap(StaticSizedAlloc<Type> & rhs)", "parent": 562, "children": [565, 566], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 41}}, {"id": 565, "type": "identifier", "text": "Swap", "parent": 564, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 11}}, {"id": 566, "type": "parameter_list", "text": "(StaticSizedAlloc<Type> & rhs)", "parent": 564, "children": [567], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 41}}, {"id": 567, "type": "parameter_declaration", "text": "StaticSizedAlloc<Type> & rhs", "parent": 566, "children": [568, 569, 573], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 40}}, {"id": 568, "type": "type_identifier", "text": "StaticSizedAlloc", "parent": 567, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 28}}, {"id": 569, "type": "ERROR", "text": "<Type> &", "parent": 567, "children": [570, 571, 572], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 36}}, {"id": 570, "type": "<", "text": "<", "parent": 569, "children": [], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 29}}, {"id": 571, "type": "identifier", "text": "Type", "parent": 569, "children": [], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 33}}, {"id": 572, "type": ">", "text": ">", "parent": 569, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 34}}, {"id": 573, "type": "identifier", "text": "rhs", "parent": 567, "children": [], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 40}}, {"id": 574, "type": "labeled_statement", "text": "std::swap(m_MaxAllocs, rhs.m_MaxAllocs);", "parent": 562, "children": [575], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 44}}, {"id": 575, "type": "statement_identifier", "text": "std", "parent": 574, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 7}}, {"id": 576, "type": "call_expression", "text": "swap(m_MaxAllocs, rhs.m_MaxAllocs)", "parent": 574, "children": [577, 578], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 43}}, {"id": 577, "type": "identifier", "text": "swap", "parent": 576, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 13}}, {"id": 578, "type": "argument_list", "text": "(m_MaxAllocs, rhs.m_MaxAllocs)", "parent": 576, "children": [579, 580], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 43}}, {"id": 579, "type": "identifier", "text": "m_MaxAllocs", "parent": 578, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 25}}, {"id": 580, "type": "field_expression", "text": "rhs.m_MaxAllocs", "parent": 578, "children": [581, 582], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 42}}, {"id": 581, "type": "identifier", "text": "rhs", "parent": 580, "children": [], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 30}}, {"id": 582, "type": "field_identifier", "text": "m_MaxAllocs", "parent": 580, "children": [], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 42}}, {"id": 583, "type": "labeled_statement", "text": "std::swap(m_Head, rhs.m_Head);", "parent": 562, "children": [584], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 34}}, {"id": 584, "type": "statement_identifier", "text": "std", "parent": 583, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 7}}, {"id": 585, "type": "call_expression", "text": "swap(m_Head, rhs.m_Head)", "parent": 583, "children": [586, 587], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 33}}, {"id": 586, "type": "identifier", "text": "swap", "parent": 585, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 13}}, {"id": 587, "type": "argument_list", "text": "(m_Head, rhs.m_Head)", "parent": 585, "children": [588, 589], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 33}}, {"id": 588, "type": "identifier", "text": "m_Head", "parent": 587, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 20}}, {"id": 589, "type": "field_expression", "text": "rhs.m_Head", "parent": 587, "children": [590, 591], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 32}}, {"id": 590, "type": "identifier", "text": "rhs", "parent": 589, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 25}}, {"id": 591, "type": "field_identifier", "text": "m_Head", "parent": 589, "children": [], "start_point": {"row": 113, "column": 26}, "end_point": {"row": 113, "column": 32}}, {"id": 592, "type": "labeled_statement", "text": "std::swap(m_Memory, rhs.m_Memory);", "parent": 562, "children": [593], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 38}}, {"id": 593, "type": "statement_identifier", "text": "std", "parent": 592, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 7}}, {"id": 594, "type": "call_expression", "text": "swap(m_Memory, rhs.m_Memory)", "parent": 592, "children": [595, 596], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 37}}, {"id": 595, "type": "identifier", "text": "swap", "parent": 594, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 13}}, {"id": 596, "type": "argument_list", "text": "(m_Memory, rhs.m_Memory)", "parent": 594, "children": [597, 598], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 37}}, {"id": 597, "type": "identifier", "text": "m_Memory", "parent": 596, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 22}}, {"id": 598, "type": "field_expression", "text": "rhs.m_Memory", "parent": 596, "children": [599, 600], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 36}}, {"id": 599, "type": "identifier", "text": "rhs", "parent": 598, "children": [], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 27}}, {"id": 600, "type": "field_identifier", "text": "m_Memory", "parent": 598, "children": [], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 36}}, {"id": 601, "type": "labeled_statement", "text": "std::swap(m_AllocMask, rhs.m_AllocMask);", "parent": 562, "children": [602], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 44}}, {"id": 602, "type": "statement_identifier", "text": "std", "parent": 601, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 7}}, {"id": 603, "type": "call_expression", "text": "swap(m_AllocMask, rhs.m_AllocMask)", "parent": 601, "children": [604, 605], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 43}}, {"id": 604, "type": "identifier", "text": "swap", "parent": 603, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 13}}, {"id": 605, "type": "argument_list", "text": "(m_AllocMask, rhs.m_AllocMask)", "parent": 603, "children": [606, 607], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 43}}, {"id": 606, "type": "identifier", "text": "m_AllocMask", "parent": 605, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 25}}, {"id": 607, "type": "field_expression", "text": "rhs.m_AllocMask", "parent": 605, "children": [608, 609], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 42}}, {"id": 608, "type": "identifier", "text": "rhs", "parent": 607, "children": [], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 30}}, {"id": 609, "type": "field_identifier", "text": "m_AllocMask", "parent": 607, "children": [], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 42}}, {"id": 610, "type": "binary_expression", "text": "template <typename ... InitArgs>\n Type * Allocate(InitArgs && ... args)", "parent": null, "children": [611, 615, 617, 618], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 119, "column": 39}}, {"id": 611, "type": "binary_expression", "text": "template <typename", "parent": 610, "children": [612, 613, 614], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 20}}, {"id": 612, "type": "identifier", "text": "template", "parent": 611, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 10}}, {"id": 613, "type": "<", "text": "<", "parent": 611, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 12}}, {"id": 614, "type": "identifier", "text": "typename", "parent": 611, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 20}}, {"id": 615, "type": "ERROR", "text": "... InitArgs", "parent": 610, "children": [616], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 33}}, {"id": 616, "type": "identifier", "text": "InitArgs", "parent": 615, "children": [], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 33}}, {"id": 617, "type": ">", "text": ">", "parent": 610, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 34}}, {"id": 618, "type": "binary_expression", "text": "Type * Allocate(InitArgs && ... args)", "parent": 610, "children": [619, 620, 621], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 39}}, {"id": 619, "type": "identifier", "text": "Type", "parent": 618, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 6}}, {"id": 620, "type": "*", "text": "*", "parent": 618, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 8}}, {"id": 621, "type": "call_expression", "text": "Allocate(InitArgs && ... args)", "parent": 618, "children": [622, 623], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 39}}, {"id": 622, "type": "identifier", "text": "Allocate", "parent": 621, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 17}}, {"id": 623, "type": "argument_list", "text": "(InitArgs && ... args)", "parent": 621, "children": [624], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 39}}, {"id": 624, "type": "binary_expression", "text": "InitArgs && ... args", "parent": 623, "children": [625, 626, 627], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 38}}, {"id": 625, "type": "identifier", "text": "InitArgs", "parent": 624, "children": [], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 26}}, {"id": 626, "type": "&&", "text": "&&", "parent": 624, "children": [], "start_point": {"row": 119, "column": 27}, "end_point": {"row": 119, "column": 29}}, {"id": 627, "type": "identifier", "text": "args", "parent": 624, "children": [], "start_point": {"row": 119, "column": 34}, "end_point": {"row": 119, "column": 38}}, {"id": 628, "type": "declaration", "text": "void * ptr = AllocateRaw();", "parent": null, "children": [629, 630], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 31}}, {"id": 629, "type": "primitive_type", "text": "void", "parent": 628, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 8}}, {"id": 630, "type": "init_declarator", "text": "* ptr = AllocateRaw()", "parent": 628, "children": [631, 634, 635], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 30}}, {"id": 631, "type": "pointer_declarator", "text": "* ptr", "parent": 630, "children": [632, 633], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 14}}, {"id": 632, "type": "*", "text": "*", "parent": 631, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 10}}, {"id": 633, "type": "identifier", "text": "ptr", "parent": 631, "children": [], "start_point": {"row": 121, "column": 11}, "end_point": {"row": 121, "column": 14}}, {"id": 634, "type": "=", "text": "=", "parent": 630, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 16}}, {"id": 635, "type": "call_expression", "text": "AllocateRaw()", "parent": 630, "children": [636, 637], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 30}}, {"id": 636, "type": "identifier", "text": "AllocateRaw", "parent": 635, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 28}}, {"id": 637, "type": "argument_list", "text": "()", "parent": 635, "children": [], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 30}}, {"id": 638, "type": "declaration", "text": "Type * t = new (ptr) Type(std::forward<InitArgs>(args)...);", "parent": null, "children": [639, 640], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 65}}, {"id": 639, "type": "type_identifier", "text": "Type", "parent": 638, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 10}}, {"id": 640, "type": "init_declarator", "text": "* t = new (ptr) Type(std::forward<InitArgs>(args)...)", "parent": 638, "children": [641, 644, 645, 649], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 64}}, {"id": 641, "type": "pointer_declarator", "text": "* t", "parent": 640, "children": [642, 643], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 14}}, {"id": 642, "type": "*", "text": "*", "parent": 641, "children": [], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 12}}, {"id": 643, "type": "identifier", "text": "t", "parent": 641, "children": [], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 14}}, {"id": 644, "type": "=", "text": "=", "parent": 640, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 16}}, {"id": 645, "type": "ERROR", "text": "new (ptr)", "parent": 640, "children": [646], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 26}}, {"id": 646, "type": "call_expression", "text": "new (ptr)", "parent": 645, "children": [647], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 26}}, {"id": 647, "type": "argument_list", "text": "(ptr)", "parent": 646, "children": [648], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 26}}, {"id": 648, "type": "identifier", "text": "ptr", "parent": 647, "children": [], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 25}}, {"id": 649, "type": "call_expression", "text": "Type(std::forward<InitArgs>(args)...)", "parent": 640, "children": [650, 651], "start_point": {"row": 125, "column": 27}, "end_point": {"row": 125, "column": 64}}, {"id": 650, "type": "identifier", "text": "Type", "parent": 649, "children": [], "start_point": {"row": 125, "column": 27}, "end_point": {"row": 125, "column": 31}}, {"id": 651, "type": "argument_list", "text": "(std::forward<InitArgs>(args)...)", "parent": 649, "children": [652, 654], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 64}}, {"id": 652, "type": "ERROR", "text": "std::", "parent": 651, "children": [653], "start_point": {"row": 125, "column": 32}, "end_point": {"row": 125, "column": 37}}, {"id": 653, "type": "identifier", "text": "std", "parent": 652, "children": [], "start_point": {"row": 125, "column": 32}, "end_point": {"row": 125, "column": 35}}, {"id": 654, "type": "binary_expression", "text": "forward<InitArgs>(args)", "parent": 651, "children": [655, 659, 660], "start_point": {"row": 125, "column": 37}, "end_point": {"row": 125, "column": 60}}, {"id": 655, "type": "binary_expression", "text": "forward<InitArgs", "parent": 654, "children": [656, 657, 658], "start_point": {"row": 125, "column": 37}, "end_point": {"row": 125, "column": 53}}, {"id": 656, "type": "identifier", "text": "forward", "parent": 655, "children": [], "start_point": {"row": 125, "column": 37}, "end_point": {"row": 125, "column": 44}}, {"id": 657, "type": "<", "text": "<", "parent": 655, "children": [], "start_point": {"row": 125, "column": 44}, "end_point": {"row": 125, "column": 45}}, {"id": 658, "type": "identifier", "text": "InitArgs", "parent": 655, "children": [], "start_point": {"row": 125, "column": 45}, "end_point": {"row": 125, "column": 53}}, {"id": 659, "type": ">", "text": ">", "parent": 654, "children": [], "start_point": {"row": 125, "column": 53}, "end_point": {"row": 125, "column": 54}}, {"id": 660, "type": "parenthesized_expression", "text": "(args)", "parent": 654, "children": [661], "start_point": {"row": 125, "column": 54}, "end_point": {"row": 125, "column": 60}}, {"id": 661, "type": "identifier", "text": "args", "parent": 660, "children": [], "start_point": {"row": 125, "column": 55}, "end_point": {"row": 125, "column": 59}}, {"id": 662, "type": "return_statement", "text": "return t;", "parent": null, "children": [663], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 15}}, {"id": 663, "type": "identifier", "text": "t", "parent": 662, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 14}}, {"id": 664, "type": "ERROR", "text": "catch (...)", "parent": null, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 15}}, {"id": 665, "type": "call_expression", "text": "FreeRaw(ptr)", "parent": null, "children": [666, 667], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 18}}, {"id": 666, "type": "identifier", "text": "FreeRaw", "parent": 665, "children": [], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 13}}, {"id": 667, "type": "argument_list", "text": "(ptr)", "parent": 665, "children": [668], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 18}}, {"id": 668, "type": "identifier", "text": "ptr", "parent": 667, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 17}}, {"id": 669, "type": "function_definition", "text": "void * AllocateRaw()\n {\n static_assert(sizeof(Type) >= sizeof(void *), \"Allocation type is too small to alias with a pointer\");\n\n if (m_Head == nullptr)\n {\n throw false;\n }\n\n std::size_t index = GetIndexAt(m_Head);\n\n if (GetAllocMask(index))\n {\n throw false;\n }\n\n void * t = m_Head;\n\n void ** head_ptr = reinterpret_cast<void **>(m_Head);\n void * new_head = *head_ptr;\n\n SetAllocMask(index);\n m_Head = new_head;\n\n return t;\n }", "parent": null, "children": [670, 671], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 160, "column": 3}}, {"id": 670, "type": "primitive_type", "text": "void", "parent": 669, "children": [], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 6}}, {"id": 671, "type": "pointer_declarator", "text": "* AllocateRaw()", "parent": 669, "children": [672, 673], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 22}}, {"id": 672, "type": "*", "text": "*", "parent": 671, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 8}}, {"id": 673, "type": "function_declarator", "text": "AllocateRaw()", "parent": 671, "children": [674, 675], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 22}}, {"id": 674, "type": "identifier", "text": "AllocateRaw", "parent": 673, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 20}}, {"id": 675, "type": "parameter_list", "text": "()", "parent": 673, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 22}}, {"id": 676, "type": "call_expression", "text": "static_assert(sizeof(Type) >= sizeof(void *), \"Allocation type is too small to alias with a pointer\")", "parent": 669, "children": [677, 678], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 105}}, {"id": 677, "type": "identifier", "text": "static_assert", "parent": 676, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 17}}, {"id": 678, "type": "argument_list", "text": "(sizeof(Type) >= sizeof(void *), \"Allocation type is too small to alias with a pointer\")", "parent": 676, "children": [679, 689], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 105}}, {"id": 679, "type": "binary_expression", "text": "sizeof(Type) >= sizeof(void *)", "parent": 678, "children": [680, 683, 684], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 48}}, {"id": 680, "type": "sizeof_expression", "text": "sizeof(Type)", "parent": 679, "children": [681], "start_point": {"row": 137, "column": 18}, "end_point": {"row": 137, "column": 30}}, {"id": 681, "type": "parenthesized_expression", "text": "(Type)", "parent": 680, "children": [682], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 30}}, {"id": 682, "type": "identifier", "text": "Type", "parent": 681, "children": [], "start_point": {"row": 137, "column": 25}, "end_point": {"row": 137, "column": 29}}, {"id": 683, "type": ">=", "text": ">=", "parent": 679, "children": [], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 33}}, {"id": 684, "type": "sizeof_expression", "text": "sizeof(void *)", "parent": 679, "children": [685], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 48}}, {"id": 685, "type": "type_descriptor", "text": "void *", "parent": 684, "children": [686, 687], "start_point": {"row": 137, "column": 41}, "end_point": {"row": 137, "column": 47}}, {"id": 686, "type": "primitive_type", "text": "void", "parent": 685, "children": [], "start_point": {"row": 137, "column": 41}, "end_point": {"row": 137, "column": 45}}, {"id": 687, "type": "abstract_pointer_declarator", "text": "*", "parent": 685, "children": [688], "start_point": {"row": 137, "column": 46}, "end_point": {"row": 137, "column": 47}}, {"id": 688, "type": "*", "text": "*", "parent": 687, "children": [], "start_point": {"row": 137, "column": 46}, "end_point": {"row": 137, "column": 47}}, {"id": 689, "type": "string_literal", "text": "\"Allocation type is too small to alias with a pointer\"", "parent": 678, "children": [], "start_point": {"row": 137, "column": 50}, "end_point": {"row": 137, "column": 104}}, {"id": 690, "type": "if_statement", "text": "if (m_Head == nullptr)\n {\n throw false;\n }", "parent": 669, "children": [691], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 142, "column": 5}}, {"id": 691, "type": "parenthesized_expression", "text": "(m_Head == nullptr)", "parent": 690, "children": [692], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 26}}, {"id": 692, "type": "binary_expression", "text": "m_Head == nullptr", "parent": 691, "children": [693, 694, 695], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 25}}, {"id": 693, "type": "identifier", "text": "m_Head", "parent": 692, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 14}}, {"id": 694, "type": "==", "text": "==", "parent": 692, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 17}}, {"id": 695, "type": "null", "text": "nullptr", "parent": 692, "children": [696], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 25}}, {"id": 696, "type": "nullptr", "text": "nullptr", "parent": 695, "children": [], "start_point": {"row": 139, "column": 18}, "end_point": {"row": 139, "column": 25}}, {"id": 697, "type": "declaration", "text": "throw false;", "parent": 690, "children": [698], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 18}}, {"id": 698, "type": "identifier", "text": "false", "parent": 697, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 17}}, {"id": 699, "type": "labeled_statement", "text": "std::size_t index = GetIndexAt(m_Head);", "parent": 669, "children": [700, 701], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 43}}, {"id": 700, "type": "statement_identifier", "text": "std", "parent": 699, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 7}}, {"id": 701, "type": "declaration", "text": "size_t index = GetIndexAt(m_Head);", "parent": 699, "children": [702, 703], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 43}}, {"id": 702, "type": "primitive_type", "text": "size_t", "parent": 701, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 15}}, {"id": 703, "type": "init_declarator", "text": "index = GetIndexAt(m_Head)", "parent": 701, "children": [704, 705, 706], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 42}}, {"id": 704, "type": "identifier", "text": "index", "parent": 703, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 21}}, {"id": 705, "type": "=", "text": "=", "parent": 703, "children": [], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 23}}, {"id": 706, "type": "call_expression", "text": "GetIndexAt(m_Head)", "parent": 703, "children": [707, 708], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 42}}, {"id": 707, "type": "identifier", "text": "GetIndexAt", "parent": 706, "children": [], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 34}}, {"id": 708, "type": "argument_list", "text": "(m_Head)", "parent": 706, "children": [709], "start_point": {"row": 144, "column": 34}, "end_point": {"row": 144, "column": 42}}, {"id": 709, "type": "identifier", "text": "m_Head", "parent": 708, "children": [], "start_point": {"row": 144, "column": 35}, "end_point": {"row": 144, "column": 41}}, {"id": 710, "type": "if_statement", "text": "if (GetAllocMask(index))\n {\n throw false;\n }", "parent": 669, "children": [711], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 149, "column": 5}}, {"id": 711, "type": "parenthesized_expression", "text": "(GetAllocMask(index))", "parent": 710, "children": [712], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 28}}, {"id": 712, "type": "call_expression", "text": "GetAllocMask(index)", "parent": 711, "children": [713, 714], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 27}}, {"id": 713, "type": "identifier", "text": "GetAllocMask", "parent": 712, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 20}}, {"id": 714, "type": "argument_list", "text": "(index)", "parent": 712, "children": [715], "start_point": {"row": 146, "column": 20}, "end_point": {"row": 146, "column": 27}}, {"id": 715, "type": "identifier", "text": "index", "parent": 714, "children": [], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 26}}, {"id": 716, "type": "declaration", "text": "throw false;", "parent": 710, "children": [717], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 18}}, {"id": 717, "type": "identifier", "text": "false", "parent": 716, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 17}}, {"id": 718, "type": "declaration", "text": "void * t = m_Head;", "parent": 669, "children": [719, 720], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 22}}, {"id": 719, "type": "primitive_type", "text": "void", "parent": 718, "children": [], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 8}}, {"id": 720, "type": "init_declarator", "text": "* t = m_Head", "parent": 718, "children": [721, 724, 725], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 21}}, {"id": 721, "type": "pointer_declarator", "text": "* t", "parent": 720, "children": [722, 723], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 12}}, {"id": 722, "type": "*", "text": "*", "parent": 721, "children": [], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 10}}, {"id": 723, "type": "identifier", "text": "t", "parent": 721, "children": [], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 12}}, {"id": 724, "type": "=", "text": "=", "parent": 720, "children": [], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 14}}, {"id": 725, "type": "identifier", "text": "m_Head", "parent": 720, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 21}}, {"id": 726, "type": "declaration", "text": "void ** head_ptr = reinterpret_cast<void **>(m_Head);", "parent": 669, "children": [727, 728], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 57}}, {"id": 727, "type": "primitive_type", "text": "void", "parent": 726, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 8}}, {"id": 728, "type": "init_declarator", "text": "** head_ptr = reinterpret_cast<void **>(m_Head)", "parent": 726, "children": [729, 734, 735], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 56}}, {"id": 729, "type": "pointer_declarator", "text": "** head_ptr", "parent": 728, "children": [730, 731], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 20}}, {"id": 730, "type": "*", "text": "*", "parent": 729, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 10}}, {"id": 731, "type": "pointer_declarator", "text": "* head_ptr", "parent": 729, "children": [732, 733], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 20}}, {"id": 732, "type": "*", "text": "*", "parent": 731, "children": [], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 11}}, {"id": 733, "type": "identifier", "text": "head_ptr", "parent": 731, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 20}}, {"id": 734, "type": "=", "text": "=", "parent": 728, "children": [], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 22}}, {"id": 735, "type": "binary_expression", "text": "reinterpret_cast<void **>(m_Head)", "parent": 728, "children": [736, 745, 746], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 56}}, {"id": 736, "type": "binary_expression", "text": "reinterpret_cast<void **", "parent": 735, "children": [737, 738, 739], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 47}}, {"id": 737, "type": "identifier", "text": "reinterpret_cast", "parent": 736, "children": [], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 39}}, {"id": 738, "type": "<", "text": "<", "parent": 736, "children": [], "start_point": {"row": 153, "column": 39}, "end_point": {"row": 153, "column": 40}}, {"id": 739, "type": "binary_expression", "text": "void **", "parent": 736, "children": [740, 741, 742], "start_point": {"row": 153, "column": 40}, "end_point": {"row": 153, "column": 47}}, {"id": 740, "type": "identifier", "text": "void", "parent": 739, "children": [], "start_point": {"row": 153, "column": 40}, "end_point": {"row": 153, "column": 44}}, {"id": 741, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 153, "column": 45}, "end_point": {"row": 153, "column": 46}}, {"id": 742, "type": "pointer_expression", "text": "*", "parent": 739, "children": [743, 744], "start_point": {"row": 153, "column": 46}, "end_point": {"row": 153, "column": 47}}, {"id": 743, "type": "*", "text": "*", "parent": 742, "children": [], "start_point": {"row": 153, "column": 46}, "end_point": {"row": 153, "column": 47}}, {"id": 744, "type": "identifier", "text": "", "parent": 742, "children": [], "start_point": {"row": 153, "column": 47}, "end_point": {"row": 153, "column": 47}}, {"id": 745, "type": ">", "text": ">", "parent": 735, "children": [], "start_point": {"row": 153, "column": 47}, "end_point": {"row": 153, "column": 48}}, {"id": 746, "type": "parenthesized_expression", "text": "(m_Head)", "parent": 735, "children": [747], "start_point": {"row": 153, "column": 48}, "end_point": {"row": 153, "column": 56}}, {"id": 747, "type": "identifier", "text": "m_Head", "parent": 746, "children": [], "start_point": {"row": 153, "column": 49}, "end_point": {"row": 153, "column": 55}}, {"id": 748, "type": "declaration", "text": "void * new_head = *head_ptr;", "parent": 669, "children": [749, 750], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 32}}, {"id": 749, "type": "primitive_type", "text": "void", "parent": 748, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 8}}, {"id": 750, "type": "init_declarator", "text": "* new_head = *head_ptr", "parent": 748, "children": [751, 754, 755], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 31}}, {"id": 751, "type": "pointer_declarator", "text": "* new_head", "parent": 750, "children": [752, 753], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 19}}, {"id": 752, "type": "*", "text": "*", "parent": 751, "children": [], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 10}}, {"id": 753, "type": "identifier", "text": "new_head", "parent": 751, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 19}}, {"id": 754, "type": "=", "text": "=", "parent": 750, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 21}}, {"id": 755, "type": "pointer_expression", "text": "*head_ptr", "parent": 750, "children": [756, 757], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 31}}, {"id": 756, "type": "*", "text": "*", "parent": 755, "children": [], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 23}}, {"id": 757, "type": "identifier", "text": "head_ptr", "parent": 755, "children": [], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 31}}, {"id": 758, "type": "call_expression", "text": "SetAllocMask(index)", "parent": 669, "children": [759, 760], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 23}}, {"id": 759, "type": "identifier", "text": "SetAllocMask", "parent": 758, "children": [], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 16}}, {"id": 760, "type": "argument_list", "text": "(index)", "parent": 758, "children": [761], "start_point": {"row": 156, "column": 16}, "end_point": {"row": 156, "column": 23}}, {"id": 761, "type": "identifier", "text": "index", "parent": 760, "children": [], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 22}}, {"id": 762, "type": "assignment_expression", "text": "m_Head = new_head", "parent": 669, "children": [763, 764, 765], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 21}}, {"id": 763, "type": "identifier", "text": "m_Head", "parent": 762, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 10}}, {"id": 764, "type": "=", "text": "=", "parent": 762, "children": [], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 12}}, {"id": 765, "type": "identifier", "text": "new_head", "parent": 762, "children": [], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 21}}, {"id": 766, "type": "return_statement", "text": "return t;", "parent": 669, "children": [767], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 13}}, {"id": 767, "type": "identifier", "text": "t", "parent": 766, "children": [], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 12}}, {"id": 768, "type": "function_definition", "text": "void Free(Type * type)\n {\n type->~Type();\n FreeRaw(type);\n }", "parent": null, "children": [769, 770], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 166, "column": 3}}, {"id": 769, "type": "primitive_type", "text": "void", "parent": 768, "children": [], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 6}}, {"id": 770, "type": "function_declarator", "text": "Free(Type * type)", "parent": 768, "children": [771, 772], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 24}}, {"id": 771, "type": "identifier", "text": "Free", "parent": 770, "children": [], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 11}}, {"id": 772, "type": "parameter_list", "text": "(Type * type)", "parent": 770, "children": [773], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 24}}, {"id": 773, "type": "parameter_declaration", "text": "Type * type", "parent": 772, "children": [774, 775], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 23}}, {"id": 774, "type": "type_identifier", "text": "Type", "parent": 773, "children": [], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 16}}, {"id": 775, "type": "pointer_declarator", "text": "* type", "parent": 773, "children": [776, 777], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 23}}, {"id": 776, "type": "*", "text": "*", "parent": 775, "children": [], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 18}}, {"id": 777, "type": "identifier", "text": "type", "parent": 775, "children": [], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 23}}, {"id": 778, "type": "call_expression", "text": "type->~Type()", "parent": 768, "children": [779, 784], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 17}}, {"id": 779, "type": "field_expression", "text": "type->~Type", "parent": 778, "children": [780, 781, 783], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 15}}, {"id": 780, "type": "identifier", "text": "type", "parent": 779, "children": [], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 8}}, {"id": 781, "type": "ERROR", "text": "~", "parent": 779, "children": [782], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 11}}, {"id": 782, "type": "~", "text": "~", "parent": 781, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 11}}, {"id": 783, "type": "field_identifier", "text": "Type", "parent": 779, "children": [], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 15}}, {"id": 784, "type": "argument_list", "text": "()", "parent": 778, "children": [], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 17}}, {"id": 785, "type": "call_expression", "text": "FreeRaw(type)", "parent": 768, "children": [786, 787], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 17}}, {"id": 786, "type": "identifier", "text": "FreeRaw", "parent": 785, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 11}}, {"id": 787, "type": "argument_list", "text": "(type)", "parent": 785, "children": [788], "start_point": {"row": 165, "column": 11}, "end_point": {"row": 165, "column": 17}}, {"id": 788, "type": "identifier", "text": "type", "parent": 787, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 16}}, {"id": 789, "type": "function_definition", "text": "void FreeRaw(void * ptr)\n {\n std::size_t index = GetIndexAt(ptr);\n if (GetAllocMask(index) == false)\n {\n throw false;\n }\n\n UnsetAllocMask(index);\n\n void ** head_ptr = reinterpret_cast<void **>(ptr);\n *head_ptr = m_Head;\n\n m_Head = ptr;\n }", "parent": null, "children": [790, 791], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 182, "column": 3}}, {"id": 790, "type": "primitive_type", "text": "void", "parent": 789, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 6}}, {"id": 791, "type": "function_declarator", "text": "FreeRaw(void * ptr)", "parent": 789, "children": [792, 793], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 26}}, {"id": 792, "type": "identifier", "text": "FreeRaw", "parent": 791, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 14}}, {"id": 793, "type": "parameter_list", "text": "(void * ptr)", "parent": 791, "children": [794], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 26}}, {"id": 794, "type": "parameter_declaration", "text": "void * ptr", "parent": 793, "children": [795, 796], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 25}}, {"id": 795, "type": "primitive_type", "text": "void", "parent": 794, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 19}}, {"id": 796, "type": "pointer_declarator", "text": "* ptr", "parent": 794, "children": [797, 798], "start_point": {"row": 168, "column": 20}, "end_point": {"row": 168, "column": 25}}, {"id": 797, "type": "*", "text": "*", "parent": 796, "children": [], "start_point": {"row": 168, "column": 20}, "end_point": {"row": 168, "column": 21}}, {"id": 798, "type": "identifier", "text": "ptr", "parent": 796, "children": [], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 25}}, {"id": 799, "type": "labeled_statement", "text": "std::size_t index = GetIndexAt(ptr);", "parent": 789, "children": [800, 801], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 40}}, {"id": 800, "type": "statement_identifier", "text": "std", "parent": 799, "children": [], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 7}}, {"id": 801, "type": "declaration", "text": "size_t index = GetIndexAt(ptr);", "parent": 799, "children": [802, 803], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 40}}, {"id": 802, "type": "primitive_type", "text": "size_t", "parent": 801, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 15}}, {"id": 803, "type": "init_declarator", "text": "index = GetIndexAt(ptr)", "parent": 801, "children": [804, 805, 806], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 39}}, {"id": 804, "type": "identifier", "text": "index", "parent": 803, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 21}}, {"id": 805, "type": "=", "text": "=", "parent": 803, "children": [], "start_point": {"row": 170, "column": 22}, "end_point": {"row": 170, "column": 23}}, {"id": 806, "type": "call_expression", "text": "GetIndexAt(ptr)", "parent": 803, "children": [807, 808], "start_point": {"row": 170, "column": 24}, "end_point": {"row": 170, "column": 39}}, {"id": 807, "type": "identifier", "text": "GetIndexAt", "parent": 806, "children": [], "start_point": {"row": 170, "column": 24}, "end_point": {"row": 170, "column": 34}}, {"id": 808, "type": "argument_list", "text": "(ptr)", "parent": 806, "children": [809], "start_point": {"row": 170, "column": 34}, "end_point": {"row": 170, "column": 39}}, {"id": 809, "type": "identifier", "text": "ptr", "parent": 808, "children": [], "start_point": {"row": 170, "column": 35}, "end_point": {"row": 170, "column": 38}}, {"id": 810, "type": "if_statement", "text": "if (GetAllocMask(index) == false)\n {\n throw false;\n }", "parent": 789, "children": [811], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 174, "column": 5}}, {"id": 811, "type": "parenthesized_expression", "text": "(GetAllocMask(index) == false)", "parent": 810, "children": [812], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 171, "column": 37}}, {"id": 812, "type": "binary_expression", "text": "GetAllocMask(index) == false", "parent": 811, "children": [813, 817, 818], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 36}}, {"id": 813, "type": "call_expression", "text": "GetAllocMask(index)", "parent": 812, "children": [814, 815], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 27}}, {"id": 814, "type": "identifier", "text": "GetAllocMask", "parent": 813, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 20}}, {"id": 815, "type": "argument_list", "text": "(index)", "parent": 813, "children": [816], "start_point": {"row": 171, "column": 20}, "end_point": {"row": 171, "column": 27}}, {"id": 816, "type": "identifier", "text": "index", "parent": 815, "children": [], "start_point": {"row": 171, "column": 21}, "end_point": {"row": 171, "column": 26}}, {"id": 817, "type": "==", "text": "==", "parent": 812, "children": [], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 30}}, {"id": 818, "type": "false", "text": "false", "parent": 812, "children": [], "start_point": {"row": 171, "column": 31}, "end_point": {"row": 171, "column": 36}}, {"id": 819, "type": "declaration", "text": "throw false;", "parent": 810, "children": [820], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 18}}, {"id": 820, "type": "identifier", "text": "false", "parent": 819, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 17}}, {"id": 821, "type": "call_expression", "text": "UnsetAllocMask(index)", "parent": 789, "children": [822, 823], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 25}}, {"id": 822, "type": "identifier", "text": "UnsetAllocMask", "parent": 821, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 18}}, {"id": 823, "type": "argument_list", "text": "(index)", "parent": 821, "children": [824], "start_point": {"row": 176, "column": 18}, "end_point": {"row": 176, "column": 25}}, {"id": 824, "type": "identifier", "text": "index", "parent": 823, "children": [], "start_point": {"row": 176, "column": 19}, "end_point": {"row": 176, "column": 24}}, {"id": 825, "type": "declaration", "text": "void ** head_ptr = reinterpret_cast<void **>(ptr);", "parent": 789, "children": [826, 827], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 54}}, {"id": 826, "type": "primitive_type", "text": "void", "parent": 825, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 8}}, {"id": 827, "type": "init_declarator", "text": "** head_ptr = reinterpret_cast<void **>(ptr)", "parent": 825, "children": [828, 833, 834], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 53}}, {"id": 828, "type": "pointer_declarator", "text": "** head_ptr", "parent": 827, "children": [829, 830], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 20}}, {"id": 829, "type": "*", "text": "*", "parent": 828, "children": [], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 10}}, {"id": 830, "type": "pointer_declarator", "text": "* head_ptr", "parent": 828, "children": [831, 832], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 20}}, {"id": 831, "type": "*", "text": "*", "parent": 830, "children": [], "start_point": {"row": 178, "column": 10}, "end_point": {"row": 178, "column": 11}}, {"id": 832, "type": "identifier", "text": "head_ptr", "parent": 830, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 20}}, {"id": 833, "type": "=", "text": "=", "parent": 827, "children": [], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 22}}, {"id": 834, "type": "binary_expression", "text": "reinterpret_cast<void **>(ptr)", "parent": 827, "children": [835, 844, 845], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 53}}, {"id": 835, "type": "binary_expression", "text": "reinterpret_cast<void **", "parent": 834, "children": [836, 837, 838], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 47}}, {"id": 836, "type": "identifier", "text": "reinterpret_cast", "parent": 835, "children": [], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 39}}, {"id": 837, "type": "<", "text": "<", "parent": 835, "children": [], "start_point": {"row": 178, "column": 39}, "end_point": {"row": 178, "column": 40}}, {"id": 838, "type": "binary_expression", "text": "void **", "parent": 835, "children": [839, 840, 841], "start_point": {"row": 178, "column": 40}, "end_point": {"row": 178, "column": 47}}, {"id": 839, "type": "identifier", "text": "void", "parent": 838, "children": [], "start_point": {"row": 178, "column": 40}, "end_point": {"row": 178, "column": 44}}, {"id": 840, "type": "*", "text": "*", "parent": 838, "children": [], "start_point": {"row": 178, "column": 45}, "end_point": {"row": 178, "column": 46}}, {"id": 841, "type": "pointer_expression", "text": "*", "parent": 838, "children": [842, 843], "start_point": {"row": 178, "column": 46}, "end_point": {"row": 178, "column": 47}}, {"id": 842, "type": "*", "text": "*", "parent": 841, "children": [], "start_point": {"row": 178, "column": 46}, "end_point": {"row": 178, "column": 47}}, {"id": 843, "type": "identifier", "text": "", "parent": 841, "children": [], "start_point": {"row": 178, "column": 47}, "end_point": {"row": 178, "column": 47}}, {"id": 844, "type": ">", "text": ">", "parent": 834, "children": [], "start_point": {"row": 178, "column": 47}, "end_point": {"row": 178, "column": 48}}, {"id": 845, "type": "parenthesized_expression", "text": "(ptr)", "parent": 834, "children": [846], "start_point": {"row": 178, "column": 48}, "end_point": {"row": 178, "column": 53}}, {"id": 846, "type": "identifier", "text": "ptr", "parent": 845, "children": [], "start_point": {"row": 178, "column": 49}, "end_point": {"row": 178, "column": 52}}, {"id": 847, "type": "assignment_expression", "text": "*head_ptr = m_Head", "parent": 789, "children": [848, 851, 852], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 22}}, {"id": 848, "type": "pointer_expression", "text": "*head_ptr", "parent": 847, "children": [849, 850], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 13}}, {"id": 849, "type": "*", "text": "*", "parent": 848, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 5}}, {"id": 850, "type": "identifier", "text": "head_ptr", "parent": 848, "children": [], "start_point": {"row": 179, "column": 5}, "end_point": {"row": 179, "column": 13}}, {"id": 851, "type": "=", "text": "=", "parent": 847, "children": [], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 15}}, {"id": 852, "type": "identifier", "text": "m_Head", "parent": 847, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 22}}, {"id": 853, "type": "assignment_expression", "text": "m_Head = ptr", "parent": 789, "children": [854, 855, 856], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 16}}, {"id": 854, "type": "identifier", "text": "m_Head", "parent": 853, "children": [], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 10}}, {"id": 855, "type": "=", "text": "=", "parent": 853, "children": [], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 12}}, {"id": 856, "type": "identifier", "text": "ptr", "parent": 853, "children": [], "start_point": {"row": 181, "column": 13}, "end_point": {"row": 181, "column": 16}}, {"id": 857, "type": "labeled_statement", "text": "std::size_t GetAllocationId(Type * ptr)\n {\n return GetIndexAt(ptr);\n }", "parent": null, "children": [858, 859], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 187, "column": 3}}, {"id": 858, "type": "statement_identifier", "text": "std", "parent": 857, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 5}}, {"id": 859, "type": "ERROR", "text": ":size_t GetAllocationId(Type * ptr)", "parent": 857, "children": [860, 861], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 41}}, {"id": 860, "type": "primitive_type", "text": "size_t", "parent": 859, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 13}}, {"id": 861, "type": "function_declarator", "text": "GetAllocationId(Type * ptr)", "parent": 859, "children": [862, 863], "start_point": {"row": 184, "column": 14}, "end_point": {"row": 184, "column": 41}}, {"id": 862, "type": "identifier", "text": "GetAllocationId", "parent": 861, "children": [], "start_point": {"row": 184, "column": 14}, "end_point": {"row": 184, "column": 29}}, {"id": 863, "type": "parameter_list", "text": "(Type * ptr)", "parent": 861, "children": [864], "start_point": {"row": 184, "column": 29}, "end_point": {"row": 184, "column": 41}}, {"id": 864, "type": "parameter_declaration", "text": "Type * ptr", "parent": 863, "children": [865, 866], "start_point": {"row": 184, "column": 30}, "end_point": {"row": 184, "column": 40}}, {"id": 865, "type": "type_identifier", "text": "Type", "parent": 864, "children": [], "start_point": {"row": 184, "column": 30}, "end_point": {"row": 184, "column": 34}}, {"id": 866, "type": "pointer_declarator", "text": "* ptr", "parent": 864, "children": [867, 868], "start_point": {"row": 184, "column": 35}, "end_point": {"row": 184, "column": 40}}, {"id": 867, "type": "*", "text": "*", "parent": 866, "children": [], "start_point": {"row": 184, "column": 35}, "end_point": {"row": 184, "column": 36}}, {"id": 868, "type": "identifier", "text": "ptr", "parent": 866, "children": [], "start_point": {"row": 184, "column": 37}, "end_point": {"row": 184, "column": 40}}, {"id": 869, "type": "return_statement", "text": "return GetIndexAt(ptr);", "parent": 857, "children": [870], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 27}}, {"id": 870, "type": "call_expression", "text": "GetIndexAt(ptr)", "parent": 869, "children": [871, 872], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 26}}, {"id": 871, "type": "identifier", "text": "GetIndexAt", "parent": 870, "children": [], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 21}}, {"id": 872, "type": "argument_list", "text": "(ptr)", "parent": 870, "children": [873], "start_point": {"row": 186, "column": 21}, "end_point": {"row": 186, "column": 26}}, {"id": 873, "type": "identifier", "text": "ptr", "parent": 872, "children": [], "start_point": {"row": 186, "column": 22}, "end_point": {"row": 186, "column": 25}}, {"id": 874, "type": "binary_expression", "text": "Type * GetElementForId(std::size_t id)", "parent": null, "children": [875, 876, 877], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 40}}, {"id": 875, "type": "identifier", "text": "Type", "parent": 874, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 6}}, {"id": 876, "type": "*", "text": "*", "parent": 874, "children": [], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 8}}, {"id": 877, "type": "call_expression", "text": "GetElementForId(std::size_t id)", "parent": 874, "children": [878, 879], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 40}}, {"id": 878, "type": "identifier", "text": "GetElementForId", "parent": 877, "children": [], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 24}}, {"id": 879, "type": "argument_list", "text": "(std::size_t id)", "parent": 877, "children": [880, 881], "start_point": {"row": 189, "column": 24}, "end_point": {"row": 189, "column": 40}}, {"id": 880, "type": "identifier", "text": "std", "parent": 879, "children": [], "start_point": {"row": 189, "column": 25}, "end_point": {"row": 189, "column": 28}}, {"id": 881, "type": "ERROR", "text": "::size_t id", "parent": 879, "children": [882, 883], "start_point": {"row": 189, "column": 28}, "end_point": {"row": 189, "column": 39}}, {"id": 882, "type": "primitive_type", "text": "size_t", "parent": 881, "children": [], "start_point": {"row": 189, "column": 30}, "end_point": {"row": 189, "column": 36}}, {"id": 883, "type": "identifier", "text": "id", "parent": 881, "children": [], "start_point": {"row": 189, "column": 37}, "end_point": {"row": 189, "column": 39}}, {"id": 884, "type": "if_statement", "text": "if (id >= m_MaxAllocs)\n {\n return nullptr;\n }", "parent": null, "children": [885], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 194, "column": 5}}, {"id": 885, "type": "parenthesized_expression", "text": "(id >= m_MaxAllocs)", "parent": 884, "children": [886], "start_point": {"row": 191, "column": 7}, "end_point": {"row": 191, "column": 26}}, {"id": 886, "type": "binary_expression", "text": "id >= m_MaxAllocs", "parent": 885, "children": [887, 888, 889], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 25}}, {"id": 887, "type": "identifier", "text": "id", "parent": 886, "children": [], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 10}}, {"id": 888, "type": ">=", "text": ">=", "parent": 886, "children": [], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 13}}, {"id": 889, "type": "identifier", "text": "m_MaxAllocs", "parent": 886, "children": [], "start_point": {"row": 191, "column": 14}, "end_point": {"row": 191, "column": 25}}, {"id": 890, "type": "return_statement", "text": "return nullptr;", "parent": 884, "children": [891], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 21}}, {"id": 891, "type": "null", "text": "nullptr", "parent": 890, "children": [892], "start_point": {"row": 193, "column": 13}, "end_point": {"row": 193, "column": 20}}, {"id": 892, "type": "nullptr", "text": "nullptr", "parent": 891, "children": [], "start_point": {"row": 193, "column": 13}, "end_point": {"row": 193, "column": 20}}, {"id": 893, "type": "if_statement", "text": "if (GetAllocMask(id) == false)\n {\n return nullptr;\n }", "parent": null, "children": [894], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 199, "column": 5}}, {"id": 894, "type": "parenthesized_expression", "text": "(GetAllocMask(id) == false)", "parent": 893, "children": [895], "start_point": {"row": 196, "column": 7}, "end_point": {"row": 196, "column": 34}}, {"id": 895, "type": "binary_expression", "text": "GetAllocMask(id) == false", "parent": 894, "children": [896, 900, 901], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 33}}, {"id": 896, "type": "call_expression", "text": "GetAllocMask(id)", "parent": 895, "children": [897, 898], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 24}}, {"id": 897, "type": "identifier", "text": "GetAllocMask", "parent": 896, "children": [], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 20}}, {"id": 898, "type": "argument_list", "text": "(id)", "parent": 896, "children": [899], "start_point": {"row": 196, "column": 20}, "end_point": {"row": 196, "column": 24}}, {"id": 899, "type": "identifier", "text": "id", "parent": 898, "children": [], "start_point": {"row": 196, "column": 21}, "end_point": {"row": 196, "column": 23}}, {"id": 900, "type": "==", "text": "==", "parent": 895, "children": [], "start_point": {"row": 196, "column": 25}, "end_point": {"row": 196, "column": 27}}, {"id": 901, "type": "false", "text": "false", "parent": 895, "children": [], "start_point": {"row": 196, "column": 28}, "end_point": {"row": 196, "column": 33}}, {"id": 902, "type": "return_statement", "text": "return nullptr;", "parent": 893, "children": [903], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 21}}, {"id": 903, "type": "null", "text": "nullptr", "parent": 902, "children": [904], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 20}}, {"id": 904, "type": "nullptr", "text": "nullptr", "parent": 903, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 20}}, {"id": 905, "type": "return_statement", "text": "return GetAllocAt(id);", "parent": null, "children": [906], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 26}}, {"id": 906, "type": "call_expression", "text": "GetAllocAt(id)", "parent": 905, "children": [907, 908], "start_point": {"row": 201, "column": 11}, "end_point": {"row": 201, "column": 25}}, {"id": 907, "type": "identifier", "text": "GetAllocAt", "parent": 906, "children": [], "start_point": {"row": 201, "column": 11}, "end_point": {"row": 201, "column": 21}}, {"id": 908, "type": "argument_list", "text": "(id)", "parent": 906, "children": [909], "start_point": {"row": 201, "column": 21}, "end_point": {"row": 201, "column": 25}}, {"id": 909, "type": "identifier", "text": "id", "parent": 908, "children": [], "start_point": {"row": 201, "column": 22}, "end_point": {"row": 201, "column": 24}}, {"id": 910, "type": "labeled_statement", "text": "std::size_t GetMaxAllocs()\n {\n return m_MaxAllocs;\n }", "parent": null, "children": [911, 912], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 207, "column": 3}}, {"id": 911, "type": "statement_identifier", "text": "std", "parent": 910, "children": [], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 5}}, {"id": 912, "type": "ERROR", "text": ":size_t GetMaxAllocs()", "parent": 910, "children": [913, 914], "start_point": {"row": 204, "column": 6}, "end_point": {"row": 204, "column": 28}}, {"id": 913, "type": "primitive_type", "text": "size_t", "parent": 912, "children": [], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 13}}, {"id": 914, "type": "function_declarator", "text": "GetMaxAllocs()", "parent": 912, "children": [915, 916], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 28}}, {"id": 915, "type": "identifier", "text": "GetMaxAllocs", "parent": 914, "children": [], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 26}}, {"id": 916, "type": "parameter_list", "text": "()", "parent": 914, "children": [], "start_point": {"row": 204, "column": 26}, "end_point": {"row": 204, "column": 28}}, {"id": 917, "type": "return_statement", "text": "return m_MaxAllocs;", "parent": 910, "children": [918], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 23}}, {"id": 918, "type": "identifier", "text": "m_MaxAllocs", "parent": 917, "children": [], "start_point": {"row": 206, "column": 11}, "end_point": {"row": 206, "column": 22}}, {"id": 919, "type": "labeled_statement", "text": "private:\n Type * GetAllocAt(std::size_t index)", "parent": null, "children": [], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 210, "column": 38}}, {"id": 920, "type": "binary_expression", "text": "Type * GetAllocAt(std::size_t index)", "parent": 919, "children": [921, 922, 923], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 38}}, {"id": 921, "type": "identifier", "text": "Type", "parent": 920, "children": [], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 6}}, {"id": 922, "type": "*", "text": "*", "parent": 920, "children": [], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 8}}, {"id": 923, "type": "call_expression", "text": "GetAllocAt(std::size_t index)", "parent": 920, "children": [924, 925], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 38}}, {"id": 924, "type": "identifier", "text": "GetAllocAt", "parent": 923, "children": [], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 19}}, {"id": 925, "type": "argument_list", "text": "(std::size_t index)", "parent": 923, "children": [926, 929], "start_point": {"row": 210, "column": 19}, "end_point": {"row": 210, "column": 38}}, {"id": 926, "type": "ERROR", "text": "std::size_t", "parent": 925, "children": [927, 928], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 31}}, {"id": 927, "type": "identifier", "text": "std", "parent": 926, "children": [], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 23}}, {"id": 928, "type": "primitive_type", "text": "size_t", "parent": 926, "children": [], "start_point": {"row": 210, "column": 25}, "end_point": {"row": 210, "column": 31}}, {"id": 929, "type": "identifier", "text": "index", "parent": 925, "children": [], "start_point": {"row": 210, "column": 32}, "end_point": {"row": 210, "column": 37}}, {"id": 930, "type": "if_statement", "text": "if (index >= m_MaxAllocs)\n {\n throw false;\n }", "parent": null, "children": [931], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 215, "column": 5}}, {"id": 931, "type": "parenthesized_expression", "text": "(index >= m_MaxAllocs)", "parent": 930, "children": [932], "start_point": {"row": 212, "column": 7}, "end_point": {"row": 212, "column": 29}}, {"id": 932, "type": "binary_expression", "text": "index >= m_MaxAllocs", "parent": 931, "children": [933, 934, 935], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 28}}, {"id": 933, "type": "identifier", "text": "index", "parent": 932, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 13}}, {"id": 934, "type": ">=", "text": ">=", "parent": 932, "children": [], "start_point": {"row": 212, "column": 14}, "end_point": {"row": 212, "column": 16}}, {"id": 935, "type": "identifier", "text": "m_MaxAllocs", "parent": 932, "children": [], "start_point": {"row": 212, "column": 17}, "end_point": {"row": 212, "column": 28}}, {"id": 936, "type": "declaration", "text": "throw false;", "parent": 930, "children": [937], "start_point": {"row": 214, "column": 6}, "end_point": {"row": 214, "column": 18}}, {"id": 937, "type": "identifier", "text": "false", "parent": 936, "children": [], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 17}}, {"id": 938, "type": "return_statement", "text": "return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);", "parent": null, "children": [939], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 69}}, {"id": 939, "type": "binary_expression", "text": "reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index])", "parent": 938, "children": [940, 944, 946, 947], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 68}}, {"id": 940, "type": "binary_expression", "text": "reinterpret_cast<Type", "parent": 939, "children": [941, 942, 943], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 32}}, {"id": 941, "type": "identifier", "text": "reinterpret_cast", "parent": 940, "children": [], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 27}}, {"id": 942, "type": "<", "text": "<", "parent": 940, "children": [], "start_point": {"row": 217, "column": 27}, "end_point": {"row": 217, "column": 28}}, {"id": 943, "type": "identifier", "text": "Type", "parent": 940, "children": [], "start_point": {"row": 217, "column": 28}, "end_point": {"row": 217, "column": 32}}, {"id": 944, "type": "ERROR", "text": "*", "parent": 939, "children": [945], "start_point": {"row": 217, "column": 33}, "end_point": {"row": 217, "column": 34}}, {"id": 945, "type": "*", "text": "*", "parent": 944, "children": [], "start_point": {"row": 217, "column": 33}, "end_point": {"row": 217, "column": 34}}, {"id": 946, "type": ">", "text": ">", "parent": 939, "children": [], "start_point": {"row": 217, "column": 34}, "end_point": {"row": 217, "column": 35}}, {"id": 947, "type": "parenthesized_expression", "text": "(&m_Memory[sizeof(Type) * index])", "parent": 939, "children": [948], "start_point": {"row": 217, "column": 35}, "end_point": {"row": 217, "column": 68}}, {"id": 948, "type": "pointer_expression", "text": "&m_Memory[sizeof(Type) * index]", "parent": 947, "children": [949], "start_point": {"row": 217, "column": 36}, "end_point": {"row": 217, "column": 67}}, {"id": 949, "type": "subscript_expression", "text": "m_Memory[sizeof(Type) * index]", "parent": 948, "children": [950, 951], "start_point": {"row": 217, "column": 37}, "end_point": {"row": 217, "column": 67}}, {"id": 950, "type": "identifier", "text": "m_Memory", "parent": 949, "children": [], "start_point": {"row": 217, "column": 37}, "end_point": {"row": 217, "column": 45}}, {"id": 951, "type": "binary_expression", "text": "sizeof(Type) * index", "parent": 949, "children": [952, 955, 956], "start_point": {"row": 217, "column": 46}, "end_point": {"row": 217, "column": 66}}, {"id": 952, "type": "sizeof_expression", "text": "sizeof(Type)", "parent": 951, "children": [953], "start_point": {"row": 217, "column": 46}, "end_point": {"row": 217, "column": 58}}, {"id": 953, "type": "parenthesized_expression", "text": "(Type)", "parent": 952, "children": [954], "start_point": {"row": 217, "column": 52}, "end_point": {"row": 217, "column": 58}}, {"id": 954, "type": "identifier", "text": "Type", "parent": 953, "children": [], "start_point": {"row": 217, "column": 53}, "end_point": {"row": 217, "column": 57}}, {"id": 955, "type": "*", "text": "*", "parent": 951, "children": [], "start_point": {"row": 217, "column": 59}, "end_point": {"row": 217, "column": 60}}, {"id": 956, "type": "identifier", "text": "index", "parent": 951, "children": [], "start_point": {"row": 217, "column": 61}, "end_point": {"row": 217, "column": 66}}, {"id": 957, "type": "function_definition", "text": "const Type * GetAllocAt(std::size_t index) const\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }", "parent": null, "children": [958, 959], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 228, "column": 3}}, {"id": 958, "type": "type_identifier", "text": "Type", "parent": 957, "children": [], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 12}}, {"id": 959, "type": "pointer_declarator", "text": "* GetAllocAt(std::size_t index) const", "parent": 957, "children": [960, 961], "start_point": {"row": 220, "column": 13}, "end_point": {"row": 220, "column": 50}}, {"id": 960, "type": "*", "text": "*", "parent": 959, "children": [], "start_point": {"row": 220, "column": 13}, "end_point": {"row": 220, "column": 14}}, {"id": 961, "type": "function_declarator", "text": "GetAllocAt(std::size_t index) const", "parent": 959, "children": [962, 963], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 50}}, {"id": 962, "type": "identifier", "text": "GetAllocAt", "parent": 961, "children": [], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 25}}, {"id": 963, "type": "parameter_list", "text": "(std::size_t index)", "parent": 961, "children": [964, 966], "start_point": {"row": 220, "column": 25}, "end_point": {"row": 220, "column": 44}}, {"id": 964, "type": "ERROR", "text": "std::", "parent": 963, "children": [965], "start_point": {"row": 220, "column": 26}, "end_point": {"row": 220, "column": 31}}, {"id": 965, "type": "type_identifier", "text": "std", "parent": 964, "children": [], "start_point": {"row": 220, "column": 26}, "end_point": {"row": 220, "column": 29}}, {"id": 966, "type": "parameter_declaration", "text": "size_t index", "parent": 963, "children": [967, 968], "start_point": {"row": 220, "column": 31}, "end_point": {"row": 220, "column": 43}}, {"id": 967, "type": "primitive_type", "text": "size_t", "parent": 966, "children": [], "start_point": {"row": 220, "column": 31}, "end_point": {"row": 220, "column": 37}}, {"id": 968, "type": "identifier", "text": "index", "parent": 966, "children": [], "start_point": {"row": 220, "column": 38}, "end_point": {"row": 220, "column": 43}}, {"id": 969, "type": "if_statement", "text": "if (index >= m_MaxAllocs)\n {\n throw false;\n }", "parent": 957, "children": [970], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 225, "column": 5}}, {"id": 970, "type": "parenthesized_expression", "text": "(index >= m_MaxAllocs)", "parent": 969, "children": [971], "start_point": {"row": 222, "column": 7}, "end_point": {"row": 222, "column": 29}}, {"id": 971, "type": "binary_expression", "text": "index >= m_MaxAllocs", "parent": 970, "children": [972, 973, 974], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 28}}, {"id": 972, "type": "identifier", "text": "index", "parent": 971, "children": [], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 13}}, {"id": 973, "type": ">=", "text": ">=", "parent": 971, "children": [], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 16}}, {"id": 974, "type": "identifier", "text": "m_MaxAllocs", "parent": 971, "children": [], "start_point": {"row": 222, "column": 17}, "end_point": {"row": 222, "column": 28}}, {"id": 975, "type": "declaration", "text": "throw false;", "parent": 969, "children": [976], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 18}}, {"id": 976, "type": "identifier", "text": "false", "parent": 975, "children": [], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 17}}, {"id": 977, "type": "return_statement", "text": "return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);", "parent": 957, "children": [978], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 69}}, {"id": 978, "type": "binary_expression", "text": "reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index])", "parent": 977, "children": [979, 983, 985, 986], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 68}}, {"id": 979, "type": "binary_expression", "text": "reinterpret_cast<Type", "parent": 978, "children": [980, 981, 982], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 32}}, {"id": 980, "type": "identifier", "text": "reinterpret_cast", "parent": 979, "children": [], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 27}}, {"id": 981, "type": "<", "text": "<", "parent": 979, "children": [], "start_point": {"row": 227, "column": 27}, "end_point": {"row": 227, "column": 28}}, {"id": 982, "type": "identifier", "text": "Type", "parent": 979, "children": [], "start_point": {"row": 227, "column": 28}, "end_point": {"row": 227, "column": 32}}, {"id": 983, "type": "ERROR", "text": "*", "parent": 978, "children": [984], "start_point": {"row": 227, "column": 33}, "end_point": {"row": 227, "column": 34}}, {"id": 984, "type": "*", "text": "*", "parent": 983, "children": [], "start_point": {"row": 227, "column": 33}, "end_point": {"row": 227, "column": 34}}, {"id": 985, "type": ">", "text": ">", "parent": 978, "children": [], "start_point": {"row": 227, "column": 34}, "end_point": {"row": 227, "column": 35}}, {"id": 986, "type": "parenthesized_expression", "text": "(&m_Memory[sizeof(Type) * index])", "parent": 978, "children": [987], "start_point": {"row": 227, "column": 35}, "end_point": {"row": 227, "column": 68}}, {"id": 987, "type": "pointer_expression", "text": "&m_Memory[sizeof(Type) * index]", "parent": 986, "children": [988], "start_point": {"row": 227, "column": 36}, "end_point": {"row": 227, "column": 67}}, {"id": 988, "type": "subscript_expression", "text": "m_Memory[sizeof(Type) * index]", "parent": 987, "children": [989, 990], "start_point": {"row": 227, "column": 37}, "end_point": {"row": 227, "column": 67}}, {"id": 989, "type": "identifier", "text": "m_Memory", "parent": 988, "children": [], "start_point": {"row": 227, "column": 37}, "end_point": {"row": 227, "column": 45}}, {"id": 990, "type": "binary_expression", "text": "sizeof(Type) * index", "parent": 988, "children": [991, 994, 995], "start_point": {"row": 227, "column": 46}, "end_point": {"row": 227, "column": 66}}, {"id": 991, "type": "sizeof_expression", "text": "sizeof(Type)", "parent": 990, "children": [992], "start_point": {"row": 227, "column": 46}, "end_point": {"row": 227, "column": 58}}, {"id": 992, "type": "parenthesized_expression", "text": "(Type)", "parent": 991, "children": [993], "start_point": {"row": 227, "column": 52}, "end_point": {"row": 227, "column": 58}}, {"id": 993, "type": "identifier", "text": "Type", "parent": 992, "children": [], "start_point": {"row": 227, "column": 53}, "end_point": {"row": 227, "column": 57}}, {"id": 994, "type": "*", "text": "*", "parent": 990, "children": [], "start_point": {"row": 227, "column": 59}, "end_point": {"row": 227, "column": 60}}, {"id": 995, "type": "identifier", "text": "index", "parent": 990, "children": [], "start_point": {"row": 227, "column": 61}, "end_point": {"row": 227, "column": 66}}, {"id": 996, "type": "function_definition", "text": "void ** GetPtrAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);\n }", "parent": null, "children": [997, 998], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 238, "column": 3}}, {"id": 997, "type": "primitive_type", "text": "void", "parent": 996, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 6}}, {"id": 998, "type": "pointer_declarator", "text": "** GetPtrAt(std::size_t index)", "parent": 996, "children": [999, 1000], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 37}}, {"id": 999, "type": "*", "text": "*", "parent": 998, "children": [], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 8}}, {"id": 1000, "type": "pointer_declarator", "text": "* GetPtrAt(std::size_t index)", "parent": 998, "children": [1001, 1002], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 37}}, {"id": 1001, "type": "*", "text": "*", "parent": 1000, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 9}}, {"id": 1002, "type": "function_declarator", "text": "GetPtrAt(std::size_t index)", "parent": 1000, "children": [1003, 1004], "start_point": {"row": 230, "column": 10}, "end_point": {"row": 230, "column": 37}}, {"id": 1003, "type": "identifier", "text": "GetPtrAt", "parent": 1002, "children": [], "start_point": {"row": 230, "column": 10}, "end_point": {"row": 230, "column": 18}}, {"id": 1004, "type": "parameter_list", "text": "(std::size_t index)", "parent": 1002, "children": [1005, 1007], "start_point": {"row": 230, "column": 18}, "end_point": {"row": 230, "column": 37}}, {"id": 1005, "type": "ERROR", "text": "std::", "parent": 1004, "children": [1006], "start_point": {"row": 230, "column": 19}, "end_point": {"row": 230, "column": 24}}, {"id": 1006, "type": "type_identifier", "text": "std", "parent": 1005, "children": [], "start_point": {"row": 230, "column": 19}, "end_point": {"row": 230, "column": 22}}, {"id": 1007, "type": "parameter_declaration", "text": "size_t index", "parent": 1004, "children": [1008, 1009], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 36}}, {"id": 1008, "type": "primitive_type", "text": "size_t", "parent": 1007, "children": [], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 30}}, {"id": 1009, "type": "identifier", "text": "index", "parent": 1007, "children": [], "start_point": {"row": 230, "column": 31}, "end_point": {"row": 230, "column": 36}}, {"id": 1010, "type": "if_statement", "text": "if (index >= m_MaxAllocs)\n {\n throw false;\n }", "parent": 996, "children": [1011], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 235, "column": 5}}, {"id": 1011, "type": "parenthesized_expression", "text": "(index >= m_MaxAllocs)", "parent": 1010, "children": [1012], "start_point": {"row": 232, "column": 7}, "end_point": {"row": 232, "column": 29}}, {"id": 1012, "type": "binary_expression", "text": "index >= m_MaxAllocs", "parent": 1011, "children": [1013, 1014, 1015], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 28}}, {"id": 1013, "type": "identifier", "text": "index", "parent": 1012, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 13}}, {"id": 1014, "type": ">=", "text": ">=", "parent": 1012, "children": [], "start_point": {"row": 232, "column": 14}, "end_point": {"row": 232, "column": 16}}, {"id": 1015, "type": "identifier", "text": "m_MaxAllocs", "parent": 1012, "children": [], "start_point": {"row": 232, "column": 17}, "end_point": {"row": 232, "column": 28}}, {"id": 1016, "type": "declaration", "text": "throw false;", "parent": 1010, "children": [1017], "start_point": {"row": 234, "column": 6}, "end_point": {"row": 234, "column": 18}}, {"id": 1017, "type": "identifier", "text": "false", "parent": 1016, "children": [], "start_point": {"row": 234, "column": 12}, "end_point": {"row": 234, "column": 17}}, {"id": 1018, "type": "return_statement", "text": "return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);", "parent": 996, "children": [1019], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 70}}, {"id": 1019, "type": "binary_expression", "text": "reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index])", "parent": 1018, "children": [1020, 1029, 1030], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 69}}, {"id": 1020, "type": "binary_expression", "text": "reinterpret_cast<void **", "parent": 1019, "children": [1021, 1022, 1023], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 35}}, {"id": 1021, "type": "identifier", "text": "reinterpret_cast", "parent": 1020, "children": [], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 27}}, {"id": 1022, "type": "<", "text": "<", "parent": 1020, "children": [], "start_point": {"row": 237, "column": 27}, "end_point": {"row": 237, "column": 28}}, {"id": 1023, "type": "binary_expression", "text": "void **", "parent": 1020, "children": [1024, 1025, 1026], "start_point": {"row": 237, "column": 28}, "end_point": {"row": 237, "column": 35}}, {"id": 1024, "type": "identifier", "text": "void", "parent": 1023, "children": [], "start_point": {"row": 237, "column": 28}, "end_point": {"row": 237, "column": 32}}, {"id": 1025, "type": "*", "text": "*", "parent": 1023, "children": [], "start_point": {"row": 237, "column": 33}, "end_point": {"row": 237, "column": 34}}, {"id": 1026, "type": "pointer_expression", "text": "*", "parent": 1023, "children": [1027, 1028], "start_point": {"row": 237, "column": 34}, "end_point": {"row": 237, "column": 35}}, {"id": 1027, "type": "*", "text": "*", "parent": 1026, "children": [], "start_point": {"row": 237, "column": 34}, "end_point": {"row": 237, "column": 35}}, {"id": 1028, "type": "identifier", "text": "", "parent": 1026, "children": [], "start_point": {"row": 237, "column": 35}, "end_point": {"row": 237, "column": 35}}, {"id": 1029, "type": ">", "text": ">", "parent": 1019, "children": [], "start_point": {"row": 237, "column": 35}, "end_point": {"row": 237, "column": 36}}, {"id": 1030, "type": "parenthesized_expression", "text": "(&m_Memory[sizeof(Type) * index])", "parent": 1019, "children": [1031], "start_point": {"row": 237, "column": 36}, "end_point": {"row": 237, "column": 69}}, {"id": 1031, "type": "pointer_expression", "text": "&m_Memory[sizeof(Type) * index]", "parent": 1030, "children": [1032], "start_point": {"row": 237, "column": 37}, "end_point": {"row": 237, "column": 68}}, {"id": 1032, "type": "subscript_expression", "text": "m_Memory[sizeof(Type) * index]", "parent": 1031, "children": [1033, 1034], "start_point": {"row": 237, "column": 38}, "end_point": {"row": 237, "column": 68}}, {"id": 1033, "type": "identifier", "text": "m_Memory", "parent": 1032, "children": [], "start_point": {"row": 237, "column": 38}, "end_point": {"row": 237, "column": 46}}, {"id": 1034, "type": "binary_expression", "text": "sizeof(Type) * index", "parent": 1032, "children": [1035, 1038, 1039], "start_point": {"row": 237, "column": 47}, "end_point": {"row": 237, "column": 67}}, {"id": 1035, "type": "sizeof_expression", "text": "sizeof(Type)", "parent": 1034, "children": [1036], "start_point": {"row": 237, "column": 47}, "end_point": {"row": 237, "column": 59}}, {"id": 1036, "type": "parenthesized_expression", "text": "(Type)", "parent": 1035, "children": [1037], "start_point": {"row": 237, "column": 53}, "end_point": {"row": 237, "column": 59}}, {"id": 1037, "type": "identifier", "text": "Type", "parent": 1036, "children": [], "start_point": {"row": 237, "column": 54}, "end_point": {"row": 237, "column": 58}}, {"id": 1038, "type": "*", "text": "*", "parent": 1034, "children": [], "start_point": {"row": 237, "column": 60}, "end_point": {"row": 237, "column": 61}}, {"id": 1039, "type": "identifier", "text": "index", "parent": 1034, "children": [], "start_point": {"row": 237, "column": 62}, "end_point": {"row": 237, "column": 67}}, {"id": 1040, "type": "labeled_statement", "text": "std::size_t GetIndexAt(void * ptr)\n {\n Type * t = reinterpret_cast<Type *>(ptr);\n\n std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0));\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return index;\n }", "parent": null, "children": [1041, 1042], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 251, "column": 3}}, {"id": 1041, "type": "statement_identifier", "text": "std", "parent": 1040, "children": [], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 5}}, {"id": 1042, "type": "ERROR", "text": ":size_t GetIndexAt(void * ptr)", "parent": 1040, "children": [1043, 1044], "start_point": {"row": 240, "column": 6}, "end_point": {"row": 240, "column": 36}}, {"id": 1043, "type": "primitive_type", "text": "size_t", "parent": 1042, "children": [], "start_point": {"row": 240, "column": 7}, "end_point": {"row": 240, "column": 13}}, {"id": 1044, "type": "function_declarator", "text": "GetIndexAt(void * ptr)", "parent": 1042, "children": [1045, 1046], "start_point": {"row": 240, "column": 14}, "end_point": {"row": 240, "column": 36}}, {"id": 1045, "type": "identifier", "text": "GetIndexAt", "parent": 1044, "children": [], "start_point": {"row": 240, "column": 14}, "end_point": {"row": 240, "column": 24}}, {"id": 1046, "type": "parameter_list", "text": "(void * ptr)", "parent": 1044, "children": [1047], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 36}}, {"id": 1047, "type": "parameter_declaration", "text": "void * ptr", "parent": 1046, "children": [1048, 1049], "start_point": {"row": 240, "column": 25}, "end_point": {"row": 240, "column": 35}}, {"id": 1048, "type": "primitive_type", "text": "void", "parent": 1047, "children": [], "start_point": {"row": 240, "column": 25}, "end_point": {"row": 240, "column": 29}}, {"id": 1049, "type": "pointer_declarator", "text": "* ptr", "parent": 1047, "children": [1050, 1051], "start_point": {"row": 240, "column": 30}, "end_point": {"row": 240, "column": 35}}, {"id": 1050, "type": "*", "text": "*", "parent": 1049, "children": [], "start_point": {"row": 240, "column": 30}, "end_point": {"row": 240, "column": 31}}, {"id": 1051, "type": "identifier", "text": "ptr", "parent": 1049, "children": [], "start_point": {"row": 240, "column": 32}, "end_point": {"row": 240, "column": 35}}, {"id": 1052, "type": "declaration", "text": "Type * t = reinterpret_cast<Type *>(ptr);", "parent": 1040, "children": [1053, 1054], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 45}}, {"id": 1053, "type": "type_identifier", "text": "Type", "parent": 1052, "children": [], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 8}}, {"id": 1054, "type": "init_declarator", "text": "* t = reinterpret_cast<Type *>(ptr)", "parent": 1052, "children": [1055, 1058, 1059], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 44}}, {"id": 1055, "type": "pointer_declarator", "text": "* t", "parent": 1054, "children": [1056, 1057], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 12}}, {"id": 1056, "type": "*", "text": "*", "parent": 1055, "children": [], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 10}}, {"id": 1057, "type": "identifier", "text": "t", "parent": 1055, "children": [], "start_point": {"row": 242, "column": 11}, "end_point": {"row": 242, "column": 12}}, {"id": 1058, "type": "=", "text": "=", "parent": 1054, "children": [], "start_point": {"row": 242, "column": 13}, "end_point": {"row": 242, "column": 14}}, {"id": 1059, "type": "binary_expression", "text": "reinterpret_cast<Type *>(ptr)", "parent": 1054, "children": [1060, 1064, 1066, 1067], "start_point": {"row": 242, "column": 15}, "end_point": {"row": 242, "column": 44}}, {"id": 1060, "type": "binary_expression", "text": "reinterpret_cast<Type", "parent": 1059, "children": [1061, 1062, 1063], "start_point": {"row": 242, "column": 15}, "end_point": {"row": 242, "column": 36}}, {"id": 1061, "type": "identifier", "text": "reinterpret_cast", "parent": 1060, "children": [], "start_point": {"row": 242, "column": 15}, "end_point": {"row": 242, "column": 31}}, {"id": 1062, "type": "<", "text": "<", "parent": 1060, "children": [], "start_point": {"row": 242, "column": 31}, "end_point": {"row": 242, "column": 32}}, {"id": 1063, "type": "identifier", "text": "Type", "parent": 1060, "children": [], "start_point": {"row": 242, "column": 32}, "end_point": {"row": 242, "column": 36}}, {"id": 1064, "type": "ERROR", "text": "*", "parent": 1059, "children": [1065], "start_point": {"row": 242, "column": 37}, "end_point": {"row": 242, "column": 38}}, {"id": 1065, "type": "*", "text": "*", "parent": 1064, "children": [], "start_point": {"row": 242, "column": 37}, "end_point": {"row": 242, "column": 38}}, {"id": 1066, "type": ">", "text": ">", "parent": 1059, "children": [], "start_point": {"row": 242, "column": 38}, "end_point": {"row": 242, "column": 39}}, {"id": 1067, "type": "parenthesized_expression", "text": "(ptr)", "parent": 1059, "children": [1068], "start_point": {"row": 242, "column": 39}, "end_point": {"row": 242, "column": 44}}, {"id": 1068, "type": "identifier", "text": "ptr", "parent": 1067, "children": [], "start_point": {"row": 242, "column": 40}, "end_point": {"row": 242, "column": 43}}, {"id": 1069, "type": "binary_expression", "text": "std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0))", "parent": 1040, "children": [1070, 1071, 1081, 1082], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 67}}, {"id": 1070, "type": "identifier", "text": "std", "parent": 1069, "children": [], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 7}}, {"id": 1071, "type": "ERROR", "text": "::size_t index = static_cast<std::size_t", "parent": 1069, "children": [1072, 1073, 1080], "start_point": {"row": 244, "column": 7}, "end_point": {"row": 244, "column": 47}}, {"id": 1072, "type": "primitive_type", "text": "size_t", "parent": 1071, "children": [], "start_point": {"row": 244, "column": 9}, "end_point": {"row": 244, "column": 15}}, {"id": 1073, "type": "init_declarator", "text": "index = static_cast<std", "parent": 1071, "children": [1074, 1075, 1076], "start_point": {"row": 244, "column": 16}, "end_point": {"row": 244, "column": 39}}, {"id": 1074, "type": "identifier", "text": "index", "parent": 1073, "children": [], "start_point": {"row": 244, "column": 16}, "end_point": {"row": 244, "column": 21}}, {"id": 1075, "type": "=", "text": "=", "parent": 1073, "children": [], "start_point": {"row": 244, "column": 22}, "end_point": {"row": 244, "column": 23}}, {"id": 1076, "type": "binary_expression", "text": "static_cast<std", "parent": 1073, "children": [1077, 1078, 1079], "start_point": {"row": 244, "column": 24}, "end_point": {"row": 244, "column": 39}}, {"id": 1077, "type": "identifier", "text": "static_cast", "parent": 1076, "children": [], "start_point": {"row": 244, "column": 24}, "end_point": {"row": 244, "column": 35}}, {"id": 1078, "type": "<", "text": "<", "parent": 1076, "children": [], "start_point": {"row": 244, "column": 35}, "end_point": {"row": 244, "column": 36}}, {"id": 1079, "type": "identifier", "text": "std", "parent": 1076, "children": [], "start_point": {"row": 244, "column": 36}, "end_point": {"row": 244, "column": 39}}, {"id": 1080, "type": "primitive_type", "text": "size_t", "parent": 1071, "children": [], "start_point": {"row": 244, "column": 41}, "end_point": {"row": 244, "column": 47}}, {"id": 1081, "type": ">", "text": ">", "parent": 1069, "children": [], "start_point": {"row": 244, "column": 47}, "end_point": {"row": 244, "column": 48}}, {"id": 1082, "type": "parenthesized_expression", "text": "(t - GetAllocAt(0))", "parent": 1069, "children": [1083], "start_point": {"row": 244, "column": 48}, "end_point": {"row": 244, "column": 67}}, {"id": 1083, "type": "binary_expression", "text": "t - GetAllocAt(0)", "parent": 1082, "children": [1084, 1085, 1086], "start_point": {"row": 244, "column": 49}, "end_point": {"row": 244, "column": 66}}, {"id": 1084, "type": "identifier", "text": "t", "parent": 1083, "children": [], "start_point": {"row": 244, "column": 49}, "end_point": {"row": 244, "column": 50}}, {"id": 1085, "type": "-", "text": "-", "parent": 1083, "children": [], "start_point": {"row": 244, "column": 51}, "end_point": {"row": 244, "column": 52}}, {"id": 1086, "type": "call_expression", "text": "GetAllocAt(0)", "parent": 1083, "children": [1087, 1088], "start_point": {"row": 244, "column": 53}, "end_point": {"row": 244, "column": 66}}, {"id": 1087, "type": "identifier", "text": "GetAllocAt", "parent": 1086, "children": [], "start_point": {"row": 244, "column": 53}, "end_point": {"row": 244, "column": 63}}, {"id": 1088, "type": "argument_list", "text": "(0)", "parent": 1086, "children": [1089], "start_point": {"row": 244, "column": 63}, "end_point": {"row": 244, "column": 66}}, {"id": 1089, "type": "number_literal", "text": "0", "parent": 1088, "children": [], "start_point": {"row": 244, "column": 64}, "end_point": {"row": 244, "column": 65}}, {"id": 1090, "type": "if_statement", "text": "if (index >= m_MaxAllocs)\n {\n throw false;\n }", "parent": 1040, "children": [1091], "start_point": {"row": 245, "column": 4}, "end_point": {"row": 248, "column": 5}}, {"id": 1091, "type": "parenthesized_expression", "text": "(index >= m_MaxAllocs)", "parent": 1090, "children": [1092], "start_point": {"row": 245, "column": 7}, "end_point": {"row": 245, "column": 29}}, {"id": 1092, "type": "binary_expression", "text": "index >= m_MaxAllocs", "parent": 1091, "children": [1093, 1094, 1095], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 28}}, {"id": 1093, "type": "identifier", "text": "index", "parent": 1092, "children": [], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 13}}, {"id": 1094, "type": ">=", "text": ">=", "parent": 1092, "children": [], "start_point": {"row": 245, "column": 14}, "end_point": {"row": 245, "column": 16}}, {"id": 1095, "type": "identifier", "text": "m_MaxAllocs", "parent": 1092, "children": [], "start_point": {"row": 245, "column": 17}, "end_point": {"row": 245, "column": 28}}, {"id": 1096, "type": "declaration", "text": "throw false;", "parent": 1090, "children": [1097], "start_point": {"row": 247, "column": 6}, "end_point": {"row": 247, "column": 18}}, {"id": 1097, "type": "identifier", "text": "false", "parent": 1096, "children": [], "start_point": {"row": 247, "column": 12}, "end_point": {"row": 247, "column": 17}}, {"id": 1098, "type": "return_statement", "text": "return index;", "parent": 1040, "children": [1099], "start_point": {"row": 250, "column": 4}, "end_point": {"row": 250, "column": 17}}, {"id": 1099, "type": "identifier", "text": "index", "parent": 1098, "children": [], "start_point": {"row": 250, "column": 11}, "end_point": {"row": 250, "column": 16}}, {"id": 1100, "type": "function_definition", "text": "bool GetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;\n }", "parent": null, "children": [1101, 1102], "start_point": {"row": 253, "column": 2}, "end_point": {"row": 259, "column": 3}}, {"id": 1101, "type": "primitive_type", "text": "bool", "parent": 1100, "children": [], "start_point": {"row": 253, "column": 2}, "end_point": {"row": 253, "column": 6}}, {"id": 1102, "type": "function_declarator", "text": "GetAllocMask(std::size_t index)", "parent": 1100, "children": [1103, 1104], "start_point": {"row": 253, "column": 7}, "end_point": {"row": 253, "column": 38}}, {"id": 1103, "type": "identifier", "text": "GetAllocMask", "parent": 1102, "children": [], "start_point": {"row": 253, "column": 7}, "end_point": {"row": 253, "column": 19}}, {"id": 1104, "type": "parameter_list", "text": "(std::size_t index)", "parent": 1102, "children": [1105, 1107], "start_point": {"row": 253, "column": 19}, "end_point": {"row": 253, "column": 38}}, {"id": 1105, "type": "ERROR", "text": "std::", "parent": 1104, "children": [1106], "start_point": {"row": 253, "column": 20}, "end_point": {"row": 253, "column": 25}}, {"id": 1106, "type": "identifier", "text": "std", "parent": 1105, "children": [], "start_point": {"row": 253, "column": 20}, "end_point": {"row": 253, "column": 23}}, {"id": 1107, "type": "parameter_declaration", "text": "size_t index", "parent": 1104, "children": [1108, 1109], "start_point": {"row": 253, "column": 25}, "end_point": {"row": 253, "column": 37}}, {"id": 1108, "type": "primitive_type", "text": "size_t", "parent": 1107, "children": [], "start_point": {"row": 253, "column": 25}, "end_point": {"row": 253, "column": 31}}, {"id": 1109, "type": "identifier", "text": "index", "parent": 1107, "children": [], "start_point": {"row": 253, "column": 32}, "end_point": {"row": 253, "column": 37}}, {"id": 1110, "type": "labeled_statement", "text": "std::size_t bit = index & 0x7;", "parent": 1100, "children": [1111, 1112], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 34}}, {"id": 1111, "type": "statement_identifier", "text": "std", "parent": 1110, "children": [], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 7}}, {"id": 1112, "type": "declaration", "text": "size_t bit = index & 0x7;", "parent": 1110, "children": [1113, 1114], "start_point": {"row": 255, "column": 9}, "end_point": {"row": 255, "column": 34}}, {"id": 1113, "type": "primitive_type", "text": "size_t", "parent": 1112, "children": [], "start_point": {"row": 255, "column": 9}, "end_point": {"row": 255, "column": 15}}, {"id": 1114, "type": "init_declarator", "text": "bit = index & 0x7", "parent": 1112, "children": [1115, 1116, 1117], "start_point": {"row": 255, "column": 16}, "end_point": {"row": 255, "column": 33}}, {"id": 1115, "type": "identifier", "text": "bit", "parent": 1114, "children": [], "start_point": {"row": 255, "column": 16}, "end_point": {"row": 255, "column": 19}}, {"id": 1116, "type": "=", "text": "=", "parent": 1114, "children": [], "start_point": {"row": 255, "column": 20}, "end_point": {"row": 255, "column": 21}}, {"id": 1117, "type": "binary_expression", "text": "index & 0x7", "parent": 1114, "children": [1118, 1119], "start_point": {"row": 255, "column": 22}, "end_point": {"row": 255, "column": 33}}, {"id": 1118, "type": "identifier", "text": "index", "parent": 1117, "children": [], "start_point": {"row": 255, "column": 22}, "end_point": {"row": 255, "column": 27}}, {"id": 1119, "type": "number_literal", "text": "0x7", "parent": 1117, "children": [], "start_point": {"row": 255, "column": 30}, "end_point": {"row": 255, "column": 33}}, {"id": 1120, "type": "labeled_statement", "text": "std::size_t byte = index >> 3;", "parent": 1100, "children": [1121, 1122], "start_point": {"row": 256, "column": 4}, "end_point": {"row": 256, "column": 34}}, {"id": 1121, "type": "statement_identifier", "text": "std", "parent": 1120, "children": [], "start_point": {"row": 256, "column": 4}, "end_point": {"row": 256, "column": 7}}, {"id": 1122, "type": "declaration", "text": "size_t byte = index >> 3;", "parent": 1120, "children": [1123, 1124], "start_point": {"row": 256, "column": 9}, "end_point": {"row": 256, "column": 34}}, {"id": 1123, "type": "primitive_type", "text": "size_t", "parent": 1122, "children": [], "start_point": {"row": 256, "column": 9}, "end_point": {"row": 256, "column": 15}}, {"id": 1124, "type": "init_declarator", "text": "byte = index >> 3", "parent": 1122, "children": [1125, 1126, 1127], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 33}}, {"id": 1125, "type": "identifier", "text": "byte", "parent": 1124, "children": [], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 20}}, {"id": 1126, "type": "=", "text": "=", "parent": 1124, "children": [], "start_point": {"row": 256, "column": 21}, "end_point": {"row": 256, "column": 22}}, {"id": 1127, "type": "binary_expression", "text": "index >> 3", "parent": 1124, "children": [1128, 1129, 1130], "start_point": {"row": 256, "column": 23}, "end_point": {"row": 256, "column": 33}}, {"id": 1128, "type": "identifier", "text": "index", "parent": 1127, "children": [], "start_point": {"row": 256, "column": 23}, "end_point": {"row": 256, "column": 28}}, {"id": 1129, "type": ">>", "text": ">>", "parent": 1127, "children": [], "start_point": {"row": 256, "column": 29}, "end_point": {"row": 256, "column": 31}}, {"id": 1130, "type": "number_literal", "text": "3", "parent": 1127, "children": [], "start_point": {"row": 256, "column": 32}, "end_point": {"row": 256, "column": 33}}, {"id": 1131, "type": "return_statement", "text": "return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;", "parent": 1100, "children": [1132], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 69}}, {"id": 1132, "type": "binary_expression", "text": "(m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0", "parent": 1131, "children": [1133, 1149, 1150], "start_point": {"row": 258, "column": 11}, "end_point": {"row": 258, "column": 68}}, {"id": 1133, "type": "parenthesized_expression", "text": "(m_AllocMask[byte] & static_cast<uint8_t>(1 << bit))", "parent": 1132, "children": [1134], "start_point": {"row": 258, "column": 11}, "end_point": {"row": 258, "column": 63}}, {"id": 1134, "type": "binary_expression", "text": "m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)", "parent": 1133, "children": [1135, 1138], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 62}}, {"id": 1135, "type": "subscript_expression", "text": "m_AllocMask[byte]", "parent": 1134, "children": [1136, 1137], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 29}}, {"id": 1136, "type": "identifier", "text": "m_AllocMask", "parent": 1135, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 23}}, {"id": 1137, "type": "identifier", "text": "byte", "parent": 1135, "children": [], "start_point": {"row": 258, "column": 24}, "end_point": {"row": 258, "column": 28}}, {"id": 1138, "type": "binary_expression", "text": "static_cast<uint8_t>(1 << bit)", "parent": 1134, "children": [1139, 1143, 1144], "start_point": {"row": 258, "column": 32}, "end_point": {"row": 258, "column": 62}}, {"id": 1139, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 1138, "children": [1140, 1141, 1142], "start_point": {"row": 258, "column": 32}, "end_point": {"row": 258, "column": 51}}, {"id": 1140, "type": "identifier", "text": "static_cast", "parent": 1139, "children": [], "start_point": {"row": 258, "column": 32}, "end_point": {"row": 258, "column": 43}}, {"id": 1141, "type": "<", "text": "<", "parent": 1139, "children": [], "start_point": {"row": 258, "column": 43}, "end_point": {"row": 258, "column": 44}}, {"id": 1142, "type": "identifier", "text": "uint8_t", "parent": 1139, "children": [], "start_point": {"row": 258, "column": 44}, "end_point": {"row": 258, "column": 51}}, {"id": 1143, "type": ">", "text": ">", "parent": 1138, "children": [], "start_point": {"row": 258, "column": 51}, "end_point": {"row": 258, "column": 52}}, {"id": 1144, "type": "parenthesized_expression", "text": "(1 << bit)", "parent": 1138, "children": [1145], "start_point": {"row": 258, "column": 52}, "end_point": {"row": 258, "column": 62}}, {"id": 1145, "type": "binary_expression", "text": "1 << bit", "parent": 1144, "children": [1146, 1147, 1148], "start_point": {"row": 258, "column": 53}, "end_point": {"row": 258, "column": 61}}, {"id": 1146, "type": "number_literal", "text": "1", "parent": 1145, "children": [], "start_point": {"row": 258, "column": 53}, "end_point": {"row": 258, "column": 54}}, {"id": 1147, "type": "<<", "text": "<<", "parent": 1145, "children": [], "start_point": {"row": 258, "column": 55}, "end_point": {"row": 258, "column": 57}}, {"id": 1148, "type": "identifier", "text": "bit", "parent": 1145, "children": [], "start_point": {"row": 258, "column": 58}, "end_point": {"row": 258, "column": 61}}, {"id": 1149, "type": "!=", "text": "!=", "parent": 1132, "children": [], "start_point": {"row": 258, "column": 64}, "end_point": {"row": 258, "column": 66}}, {"id": 1150, "type": "number_literal", "text": "0", "parent": 1132, "children": [], "start_point": {"row": 258, "column": 67}, "end_point": {"row": 258, "column": 68}}, {"id": 1151, "type": "function_definition", "text": "void SetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit);\n }", "parent": null, "children": [1152, 1153], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 267, "column": 3}}, {"id": 1152, "type": "primitive_type", "text": "void", "parent": 1151, "children": [], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 6}}, {"id": 1153, "type": "function_declarator", "text": "SetAllocMask(std::size_t index)", "parent": 1151, "children": [1154, 1155], "start_point": {"row": 261, "column": 7}, "end_point": {"row": 261, "column": 38}}, {"id": 1154, "type": "identifier", "text": "SetAllocMask", "parent": 1153, "children": [], "start_point": {"row": 261, "column": 7}, "end_point": {"row": 261, "column": 19}}, {"id": 1155, "type": "parameter_list", "text": "(std::size_t index)", "parent": 1153, "children": [1156, 1158], "start_point": {"row": 261, "column": 19}, "end_point": {"row": 261, "column": 38}}, {"id": 1156, "type": "ERROR", "text": "std::", "parent": 1155, "children": [1157], "start_point": {"row": 261, "column": 20}, "end_point": {"row": 261, "column": 25}}, {"id": 1157, "type": "identifier", "text": "std", "parent": 1156, "children": [], "start_point": {"row": 261, "column": 20}, "end_point": {"row": 261, "column": 23}}, {"id": 1158, "type": "parameter_declaration", "text": "size_t index", "parent": 1155, "children": [1159, 1160], "start_point": {"row": 261, "column": 25}, "end_point": {"row": 261, "column": 37}}, {"id": 1159, "type": "primitive_type", "text": "size_t", "parent": 1158, "children": [], "start_point": {"row": 261, "column": 25}, "end_point": {"row": 261, "column": 31}}, {"id": 1160, "type": "identifier", "text": "index", "parent": 1158, "children": [], "start_point": {"row": 261, "column": 32}, "end_point": {"row": 261, "column": 37}}, {"id": 1161, "type": "labeled_statement", "text": "std::size_t bit = index & 0x7;", "parent": 1151, "children": [1162, 1163], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 34}}, {"id": 1162, "type": "statement_identifier", "text": "std", "parent": 1161, "children": [], "start_point": {"row": 263, "column": 4}, "end_point": {"row": 263, "column": 7}}, {"id": 1163, "type": "declaration", "text": "size_t bit = index & 0x7;", "parent": 1161, "children": [1164, 1165], "start_point": {"row": 263, "column": 9}, "end_point": {"row": 263, "column": 34}}, {"id": 1164, "type": "primitive_type", "text": "size_t", "parent": 1163, "children": [], "start_point": {"row": 263, "column": 9}, "end_point": {"row": 263, "column": 15}}, {"id": 1165, "type": "init_declarator", "text": "bit = index & 0x7", "parent": 1163, "children": [1166, 1167, 1168], "start_point": {"row": 263, "column": 16}, "end_point": {"row": 263, "column": 33}}, {"id": 1166, "type": "identifier", "text": "bit", "parent": 1165, "children": [], "start_point": {"row": 263, "column": 16}, "end_point": {"row": 263, "column": 19}}, {"id": 1167, "type": "=", "text": "=", "parent": 1165, "children": [], "start_point": {"row": 263, "column": 20}, "end_point": {"row": 263, "column": 21}}, {"id": 1168, "type": "binary_expression", "text": "index & 0x7", "parent": 1165, "children": [1169, 1170], "start_point": {"row": 263, "column": 22}, "end_point": {"row": 263, "column": 33}}, {"id": 1169, "type": "identifier", "text": "index", "parent": 1168, "children": [], "start_point": {"row": 263, "column": 22}, "end_point": {"row": 263, "column": 27}}, {"id": 1170, "type": "number_literal", "text": "0x7", "parent": 1168, "children": [], "start_point": {"row": 263, "column": 30}, "end_point": {"row": 263, "column": 33}}, {"id": 1171, "type": "labeled_statement", "text": "std::size_t byte = index >> 3;", "parent": 1151, "children": [1172, 1173], "start_point": {"row": 264, "column": 4}, "end_point": {"row": 264, "column": 34}}, {"id": 1172, "type": "statement_identifier", "text": "std", "parent": 1171, "children": [], "start_point": {"row": 264, "column": 4}, "end_point": {"row": 264, "column": 7}}, {"id": 1173, "type": "declaration", "text": "size_t byte = index >> 3;", "parent": 1171, "children": [1174, 1175], "start_point": {"row": 264, "column": 9}, "end_point": {"row": 264, "column": 34}}, {"id": 1174, "type": "primitive_type", "text": "size_t", "parent": 1173, "children": [], "start_point": {"row": 264, "column": 9}, "end_point": {"row": 264, "column": 15}}, {"id": 1175, "type": "init_declarator", "text": "byte = index >> 3", "parent": 1173, "children": [1176, 1177, 1178], "start_point": {"row": 264, "column": 16}, "end_point": {"row": 264, "column": 33}}, {"id": 1176, "type": "identifier", "text": "byte", "parent": 1175, "children": [], "start_point": {"row": 264, "column": 16}, "end_point": {"row": 264, "column": 20}}, {"id": 1177, "type": "=", "text": "=", "parent": 1175, "children": [], "start_point": {"row": 264, "column": 21}, "end_point": {"row": 264, "column": 22}}, {"id": 1178, "type": "binary_expression", "text": "index >> 3", "parent": 1175, "children": [1179, 1180, 1181], "start_point": {"row": 264, "column": 23}, "end_point": {"row": 264, "column": 33}}, {"id": 1179, "type": "identifier", "text": "index", "parent": 1178, "children": [], "start_point": {"row": 264, "column": 23}, "end_point": {"row": 264, "column": 28}}, {"id": 1180, "type": ">>", "text": ">>", "parent": 1178, "children": [], "start_point": {"row": 264, "column": 29}, "end_point": {"row": 264, "column": 31}}, {"id": 1181, "type": "number_literal", "text": "3", "parent": 1178, "children": [], "start_point": {"row": 264, "column": 32}, "end_point": {"row": 264, "column": 33}}, {"id": 1182, "type": "assignment_expression", "text": "m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit)", "parent": 1151, "children": [1183, 1186, 1187], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 55}}, {"id": 1183, "type": "subscript_expression", "text": "m_AllocMask[byte]", "parent": 1182, "children": [1184, 1185], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 21}}, {"id": 1184, "type": "identifier", "text": "m_AllocMask", "parent": 1183, "children": [], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 15}}, {"id": 1185, "type": "identifier", "text": "byte", "parent": 1183, "children": [], "start_point": {"row": 266, "column": 16}, "end_point": {"row": 266, "column": 20}}, {"id": 1186, "type": "|=", "text": "|=", "parent": 1182, "children": [], "start_point": {"row": 266, "column": 22}, "end_point": {"row": 266, "column": 24}}, {"id": 1187, "type": "binary_expression", "text": "static_cast<uint8_t>(1 << bit)", "parent": 1182, "children": [1188, 1192, 1193], "start_point": {"row": 266, "column": 25}, "end_point": {"row": 266, "column": 55}}, {"id": 1188, "type": "binary_expression", "text": "static_cast<uint8_t", "parent": 1187, "children": [1189, 1190, 1191], "start_point": {"row": 266, "column": 25}, "end_point": {"row": 266, "column": 44}}, {"id": 1189, "type": "identifier", "text": "static_cast", "parent": 1188, "children": [], "start_point": {"row": 266, "column": 25}, "end_point": {"row": 266, "column": 36}}, {"id": 1190, "type": "<", "text": "<", "parent": 1188, "children": [], "start_point": {"row": 266, "column": 36}, "end_point": {"row": 266, "column": 37}}, {"id": 1191, "type": "identifier", "text": "uint8_t", "parent": 1188, "children": [], "start_point": {"row": 266, "column": 37}, "end_point": {"row": 266, "column": 44}}, {"id": 1192, "type": ">", "text": ">", "parent": 1187, "children": [], "start_point": {"row": 266, "column": 44}, "end_point": {"row": 266, "column": 45}}, {"id": 1193, "type": "parenthesized_expression", "text": "(1 << bit)", "parent": 1187, "children": [1194], "start_point": {"row": 266, "column": 45}, "end_point": {"row": 266, "column": 55}}, {"id": 1194, "type": "binary_expression", "text": "1 << bit", "parent": 1193, "children": [1195, 1196, 1197], "start_point": {"row": 266, "column": 46}, "end_point": {"row": 266, "column": 54}}, {"id": 1195, "type": "number_literal", "text": "1", "parent": 1194, "children": [], "start_point": {"row": 266, "column": 46}, "end_point": {"row": 266, "column": 47}}, {"id": 1196, "type": "<<", "text": "<<", "parent": 1194, "children": [], "start_point": {"row": 266, "column": 48}, "end_point": {"row": 266, "column": 50}}, {"id": 1197, "type": "identifier", "text": "bit", "parent": 1194, "children": [], "start_point": {"row": 266, "column": 51}, "end_point": {"row": 266, "column": 54}}, {"id": 1198, "type": "function_definition", "text": "void UnsetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit);\n }", "parent": null, "children": [1199, 1200], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 275, "column": 3}}, {"id": 1199, "type": "primitive_type", "text": "void", "parent": 1198, "children": [], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 6}}, {"id": 1200, "type": "function_declarator", "text": "UnsetAllocMask(std::size_t index)", "parent": 1198, "children": [1201, 1202], "start_point": {"row": 269, "column": 7}, "end_point": {"row": 269, "column": 40}}, {"id": 1201, "type": "identifier", "text": "UnsetAllocMask", "parent": 1200, "children": [], "start_point": {"row": 269, "column": 7}, "end_point": {"row": 269, "column": 21}}, {"id": 1202, "type": "parameter_list", "text": "(std::size_t index)", "parent": 1200, "children": [1203, 1205], "start_point": {"row": 269, "column": 21}, "end_point": {"row": 269, "column": 40}}, {"id": 1203, "type": "ERROR", "text": "std::", "parent": 1202, "children": [1204], "start_point": {"row": 269, "column": 22}, "end_point": {"row": 269, "column": 27}}, {"id": 1204, "type": "identifier", "text": "std", "parent": 1203, "children": [], "start_point": {"row": 269, "column": 22}, "end_point": {"row": 269, "column": 25}}, {"id": 1205, "type": "parameter_declaration", "text": "size_t index", "parent": 1202, "children": [1206, 1207], "start_point": {"row": 269, "column": 27}, "end_point": {"row": 269, "column": 39}}, {"id": 1206, "type": "primitive_type", "text": "size_t", "parent": 1205, "children": [], "start_point": {"row": 269, "column": 27}, "end_point": {"row": 269, "column": 33}}, {"id": 1207, "type": "identifier", "text": "index", "parent": 1205, "children": [], "start_point": {"row": 269, "column": 34}, "end_point": {"row": 269, "column": 39}}, {"id": 1208, "type": "labeled_statement", "text": "std::size_t bit = index & 0x7;", "parent": 1198, "children": [1209, 1210], "start_point": {"row": 271, "column": 4}, "end_point": {"row": 271, "column": 34}}, {"id": 1209, "type": "statement_identifier", "text": "std", "parent": 1208, "children": [], "start_point": {"row": 271, "column": 4}, "end_point": {"row": 271, "column": 7}}, {"id": 1210, "type": "declaration", "text": "size_t bit = index & 0x7;", "parent": 1208, "children": [1211, 1212], "start_point": {"row": 271, "column": 9}, "end_point": {"row": 271, "column": 34}}, {"id": 1211, "type": "primitive_type", "text": "size_t", "parent": 1210, "children": [], "start_point": {"row": 271, "column": 9}, "end_point": {"row": 271, "column": 15}}, {"id": 1212, "type": "init_declarator", "text": "bit = index & 0x7", "parent": 1210, "children": [1213, 1214, 1215], "start_point": {"row": 271, "column": 16}, "end_point": {"row": 271, "column": 33}}, {"id": 1213, "type": "identifier", "text": "bit", "parent": 1212, "children": [], "start_point": {"row": 271, "column": 16}, "end_point": {"row": 271, "column": 19}}, {"id": 1214, "type": "=", "text": "=", "parent": 1212, "children": [], "start_point": {"row": 271, "column": 20}, "end_point": {"row": 271, "column": 21}}, {"id": 1215, "type": "binary_expression", "text": "index & 0x7", "parent": 1212, "children": [1216, 1217], "start_point": {"row": 271, "column": 22}, "end_point": {"row": 271, "column": 33}}, {"id": 1216, "type": "identifier", "text": "index", "parent": 1215, "children": [], "start_point": {"row": 271, "column": 22}, "end_point": {"row": 271, "column": 27}}, {"id": 1217, "type": "number_literal", "text": "0x7", "parent": 1215, "children": [], "start_point": {"row": 271, "column": 30}, "end_point": {"row": 271, "column": 33}}, {"id": 1218, "type": "labeled_statement", "text": "std::size_t byte = index >> 3;", "parent": 1198, "children": [1219, 1220], "start_point": {"row": 272, "column": 4}, "end_point": {"row": 272, "column": 34}}, {"id": 1219, "type": "statement_identifier", "text": "std", "parent": 1218, "children": [], "start_point": {"row": 272, "column": 4}, "end_point": {"row": 272, "column": 7}}, {"id": 1220, "type": "declaration", "text": "size_t byte = index >> 3;", "parent": 1218, "children": [1221, 1222], "start_point": {"row": 272, "column": 9}, "end_point": {"row": 272, "column": 34}}, {"id": 1221, "type": "primitive_type", "text": "size_t", "parent": 1220, "children": [], "start_point": {"row": 272, "column": 9}, "end_point": {"row": 272, "column": 15}}, {"id": 1222, "type": "init_declarator", "text": "byte = index >> 3", "parent": 1220, "children": [1223, 1224, 1225], "start_point": {"row": 272, "column": 16}, "end_point": {"row": 272, "column": 33}}, {"id": 1223, "type": "identifier", "text": "byte", "parent": 1222, "children": [], "start_point": {"row": 272, "column": 16}, "end_point": {"row": 272, "column": 20}}, {"id": 1224, "type": "=", "text": "=", "parent": 1222, "children": [], "start_point": {"row": 272, "column": 21}, "end_point": {"row": 272, "column": 22}}, {"id": 1225, "type": "binary_expression", "text": "index >> 3", "parent": 1222, "children": [1226, 1227, 1228], "start_point": {"row": 272, "column": 23}, "end_point": {"row": 272, "column": 33}}, {"id": 1226, "type": "identifier", "text": "index", "parent": 1225, "children": [], "start_point": {"row": 272, "column": 23}, "end_point": {"row": 272, "column": 28}}, {"id": 1227, "type": ">>", "text": ">>", "parent": 1225, "children": [], "start_point": {"row": 272, "column": 29}, "end_point": {"row": 272, "column": 31}}, {"id": 1228, "type": "number_literal", "text": "3", "parent": 1225, "children": [], "start_point": {"row": 272, "column": 32}, "end_point": {"row": 272, "column": 33}}, {"id": 1229, "type": "assignment_expression", "text": "m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit)", "parent": 1198, "children": [1230, 1233, 1234], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 274, "column": 56}}, {"id": 1230, "type": "subscript_expression", "text": "m_AllocMask[byte]", "parent": 1229, "children": [1231, 1232], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 274, "column": 21}}, {"id": 1231, "type": "identifier", "text": "m_AllocMask", "parent": 1230, "children": [], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 274, "column": 15}}, {"id": 1232, "type": "identifier", "text": "byte", "parent": 1230, "children": [], "start_point": {"row": 274, "column": 16}, "end_point": {"row": 274, "column": 20}}, {"id": 1233, "type": "&=", "text": "&=", "parent": 1229, "children": [], "start_point": {"row": 274, "column": 22}, "end_point": {"row": 274, "column": 24}}, {"id": 1234, "type": "binary_expression", "text": "~static_cast<uint8_t>(1 << bit)", "parent": 1229, "children": [1235, 1241, 1242], "start_point": {"row": 274, "column": 25}, "end_point": {"row": 274, "column": 56}}, {"id": 1235, "type": "binary_expression", "text": "~static_cast<uint8_t", "parent": 1234, "children": [1236, 1239, 1240], "start_point": {"row": 274, "column": 25}, "end_point": {"row": 274, "column": 45}}, {"id": 1236, "type": "unary_expression", "text": "~static_cast", "parent": 1235, "children": [1237, 1238], "start_point": {"row": 274, "column": 25}, "end_point": {"row": 274, "column": 37}}, {"id": 1237, "type": "~", "text": "~", "parent": 1236, "children": [], "start_point": {"row": 274, "column": 25}, "end_point": {"row": 274, "column": 26}}, {"id": 1238, "type": "identifier", "text": "static_cast", "parent": 1236, "children": [], "start_point": {"row": 274, "column": 26}, "end_point": {"row": 274, "column": 37}}, {"id": 1239, "type": "<", "text": "<", "parent": 1235, "children": [], "start_point": {"row": 274, "column": 37}, "end_point": {"row": 274, "column": 38}}, {"id": 1240, "type": "identifier", "text": "uint8_t", "parent": 1235, "children": [], "start_point": {"row": 274, "column": 38}, "end_point": {"row": 274, "column": 45}}, {"id": 1241, "type": ">", "text": ">", "parent": 1234, "children": [], "start_point": {"row": 274, "column": 45}, "end_point": {"row": 274, "column": 46}}, {"id": 1242, "type": "parenthesized_expression", "text": "(1 << bit)", "parent": 1234, "children": [1243], "start_point": {"row": 274, "column": 46}, "end_point": {"row": 274, "column": 56}}, {"id": 1243, "type": "binary_expression", "text": "1 << bit", "parent": 1242, "children": [1244, 1245, 1246], "start_point": {"row": 274, "column": 47}, "end_point": {"row": 274, "column": 55}}, {"id": 1244, "type": "number_literal", "text": "1", "parent": 1243, "children": [], "start_point": {"row": 274, "column": 47}, "end_point": {"row": 274, "column": 48}}, {"id": 1245, "type": "<<", "text": "<<", "parent": 1243, "children": [], "start_point": {"row": 274, "column": 49}, "end_point": {"row": 274, "column": 51}}, {"id": 1246, "type": "identifier", "text": "bit", "parent": 1243, "children": [], "start_point": {"row": 274, "column": 52}, "end_point": {"row": 274, "column": 55}}, {"id": 1247, "type": "labeled_statement", "text": "private:\n std::size_t m_MaxAllocs;", "parent": null, "children": [1248], "start_point": {"row": 277, "column": 0}, "end_point": {"row": 278, "column": 26}}, {"id": 1248, "type": "labeled_statement", "text": "std::size_t m_MaxAllocs;", "parent": 1247, "children": [1249, 1250], "start_point": {"row": 278, "column": 2}, "end_point": {"row": 278, "column": 26}}, {"id": 1249, "type": "statement_identifier", "text": "std", "parent": 1248, "children": [], "start_point": {"row": 278, "column": 2}, "end_point": {"row": 278, "column": 5}}, {"id": 1250, "type": "declaration", "text": "size_t m_MaxAllocs;", "parent": 1248, "children": [1251, 1252], "start_point": {"row": 278, "column": 7}, "end_point": {"row": 278, "column": 26}}, {"id": 1251, "type": "primitive_type", "text": "size_t", "parent": 1250, "children": [], "start_point": {"row": 278, "column": 7}, "end_point": {"row": 278, "column": 13}}, {"id": 1252, "type": "identifier", "text": "m_MaxAllocs", "parent": 1250, "children": [], "start_point": {"row": 278, "column": 14}, "end_point": {"row": 278, "column": 25}}, {"id": 1253, "type": "declaration", "text": "void * m_Head;", "parent": null, "children": [1254, 1255], "start_point": {"row": 279, "column": 2}, "end_point": {"row": 279, "column": 16}}, {"id": 1254, "type": "primitive_type", "text": "void", "parent": 1253, "children": [], "start_point": {"row": 279, "column": 2}, "end_point": {"row": 279, "column": 6}}, {"id": 1255, "type": "pointer_declarator", "text": "* m_Head", "parent": 1253, "children": [1256, 1257], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 15}}, {"id": 1256, "type": "*", "text": "*", "parent": 1255, "children": [], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 8}}, {"id": 1257, "type": "identifier", "text": "m_Head", "parent": 1255, "children": [], "start_point": {"row": 279, "column": 9}, "end_point": {"row": 279, "column": 15}}, {"id": 1258, "type": "declaration", "text": "uint8_t * m_Memory;", "parent": null, "children": [1259, 1260], "start_point": {"row": 280, "column": 2}, "end_point": {"row": 280, "column": 21}}, {"id": 1259, "type": "primitive_type", "text": "uint8_t", "parent": 1258, "children": [], "start_point": {"row": 280, "column": 2}, "end_point": {"row": 280, "column": 9}}, {"id": 1260, "type": "pointer_declarator", "text": "* m_Memory", "parent": 1258, "children": [1261, 1262], "start_point": {"row": 280, "column": 10}, "end_point": {"row": 280, "column": 20}}, {"id": 1261, "type": "*", "text": "*", "parent": 1260, "children": [], "start_point": {"row": 280, "column": 10}, "end_point": {"row": 280, "column": 11}}, {"id": 1262, "type": "identifier", "text": "m_Memory", "parent": 1260, "children": [], "start_point": {"row": 280, "column": 12}, "end_point": {"row": 280, "column": 20}}, {"id": 1263, "type": "declaration", "text": "uint8_t * m_AllocMask;", "parent": null, "children": [1264, 1265], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 24}}, {"id": 1264, "type": "primitive_type", "text": "uint8_t", "parent": 1263, "children": [], "start_point": {"row": 281, "column": 2}, "end_point": {"row": 281, "column": 9}}, {"id": 1265, "type": "pointer_declarator", "text": "* m_AllocMask", "parent": 1263, "children": [1266, 1267], "start_point": {"row": 281, "column": 10}, "end_point": {"row": 281, "column": 23}}, {"id": 1266, "type": "*", "text": "*", "parent": 1265, "children": [], "start_point": {"row": 281, "column": 10}, "end_point": {"row": 281, "column": 11}}, {"id": 1267, "type": "identifier", "text": "m_AllocMask", "parent": 1265, "children": [], "start_point": {"row": 281, "column": 12}, "end_point": {"row": 281, "column": 23}}]}, "node_categories": {"declarations": {"functions": [317, 321, 328, 459, 562, 564, 669, 673, 768, 770, 789, 791, 861, 914, 957, 961, 996, 1002, 1044, 1100, 1102, 1151, 1153, 1198, 1200], "variables": [44, 69, 107, 179, 204, 246, 313, 319, 326, 331, 344, 383, 453, 462, 482, 519, 567, 628, 638, 697, 701, 716, 718, 726, 748, 773, 794, 801, 819, 825, 864, 936, 966, 975, 1007, 1016, 1047, 1052, 1096, 1107, 1112, 1122, 1158, 1163, 1173, 1205, 1210, 1220, 1250, 1253, 1258, 1263], "classes": [454], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [16, 17, 39, 40, 49, 50, 57, 58, 61, 62, 63, 74, 75, 76, 85, 86, 93, 94, 98, 113, 116, 120, 124, 126, 131, 134, 139, 141, 144, 154, 159, 160, 171, 174, 175, 184, 185, 192, 193, 196, 197, 198, 209, 210, 211, 220, 221, 228, 229, 234, 238, 239, 260, 263, 266, 267, 270, 274, 275, 283, 287, 291, 292, 297, 298, 299, 300, 301, 302, 306, 307, 336, 337, 338, 349, 350, 351, 352, 360, 361, 365, 368, 369, 373, 388, 395, 396, 397, 406, 407, 408, 414, 418, 419, 422, 426, 427, 435, 439, 440, 441, 442, 443, 446, 447, 465, 474, 476, 488, 492, 496, 497, 501, 502, 503, 511, 515, 529, 532, 537, 543, 547, 550, 556, 557, 576, 580, 585, 589, 594, 598, 603, 607, 610, 611, 618, 621, 624, 635, 646, 649, 654, 655, 660, 665, 676, 679, 680, 681, 684, 691, 692, 706, 711, 712, 735, 736, 739, 742, 746, 755, 758, 778, 779, 785, 806, 811, 812, 813, 821, 834, 835, 838, 841, 845, 848, 870, 874, 877, 885, 886, 894, 895, 896, 906, 920, 923, 931, 932, 939, 940, 947, 948, 949, 951, 952, 953, 970, 971, 978, 979, 986, 987, 988, 990, 991, 992, 1011, 1012, 1019, 1020, 1023, 1026, 1030, 1031, 1032, 1034, 1035, 1036, 1059, 1060, 1067, 1069, 1076, 1082, 1083, 1086, 1091, 1092, 1117, 1127, 1132, 1133, 1134, 1135, 1138, 1139, 1144, 1145, 1168, 1178, 1183, 1187, 1188, 1193, 1194, 1215, 1225, 1230, 1234, 1235, 1236, 1242, 1243], "assignments": [46, 82, 123, 138, 151, 181, 217, 233, 279, 286, 377, 431, 464, 470, 528, 539, 542, 552, 555, 762, 847, 853, 1182, 1229], "loops": [104, 243, 382, 479], "conditionals": [18, 20, 22, 24, 27, 30, 32, 34, 35, 37, 38, 41, 45, 47, 51, 53, 59, 64, 66, 68, 72, 77, 83, 87, 89, 95, 97, 99, 101, 103, 106, 110, 114, 117, 121, 127, 129, 132, 135, 142, 145, 152, 155, 161, 164, 166, 167, 169, 172, 173, 176, 180, 182, 186, 188, 194, 199, 201, 203, 207, 212, 218, 222, 224, 230, 232, 235, 240, 241, 245, 249, 253, 257, 261, 264, 265, 269, 272, 273, 276, 280, 284, 288, 289, 293, 294, 295, 296, 303, 304, 305, 310, 314, 316, 320, 322, 327, 329, 334, 339, 347, 353, 354, 359, 362, 364, 366, 370, 371, 374, 376, 378, 386, 389, 393, 398, 404, 409, 415, 421, 424, 425, 428, 432, 436, 438, 444, 445, 450, 456, 460, 463, 467, 469, 471, 473, 477, 481, 485, 489, 491, 493, 495, 498, 500, 504, 506, 509, 512, 514, 516, 518, 520, 521, 523, 525, 530, 533, 535, 538, 540, 546, 548, 551, 553, 558, 560, 565, 568, 571, 573, 575, 577, 579, 581, 582, 584, 586, 588, 590, 591, 593, 595, 597, 599, 600, 602, 604, 606, 608, 609, 612, 614, 616, 619, 622, 625, 627, 633, 636, 639, 643, 648, 650, 653, 656, 658, 661, 663, 666, 668, 674, 677, 682, 690, 693, 698, 700, 704, 707, 709, 710, 713, 715, 717, 723, 725, 733, 737, 740, 744, 747, 753, 757, 759, 761, 763, 765, 767, 771, 774, 777, 780, 783, 786, 788, 792, 798, 800, 804, 807, 809, 810, 814, 816, 820, 822, 824, 832, 836, 839, 843, 846, 850, 852, 854, 856, 858, 862, 865, 868, 871, 873, 875, 878, 880, 883, 884, 887, 889, 893, 897, 899, 907, 909, 911, 915, 918, 921, 924, 927, 929, 930, 933, 935, 937, 941, 943, 950, 954, 956, 958, 962, 965, 968, 969, 972, 974, 976, 980, 982, 989, 993, 995, 1003, 1006, 1009, 1010, 1013, 1015, 1017, 1021, 1024, 1028, 1033, 1037, 1039, 1041, 1045, 1051, 1053, 1057, 1061, 1063, 1068, 1070, 1074, 1077, 1079, 1084, 1087, 1090, 1093, 1095, 1097, 1099, 1103, 1106, 1109, 1111, 1115, 1118, 1121, 1125, 1128, 1136, 1137, 1140, 1142, 1148, 1154, 1157, 1160, 1162, 1166, 1169, 1172, 1176, 1179, 1184, 1185, 1189, 1191, 1197, 1201, 1204, 1207, 1209, 1213, 1216, 1219, 1223, 1226, 1231, 1232, 1238, 1240, 1246, 1249, 1252, 1257, 1262, 1267], "returns": [662, 766, 869, 890, 902, 905, 917, 938, 977, 1018, 1098, 1131], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 43, 79, 81, 102, 112, 119, 137, 147, 157, 178, 214, 216, 236, 242, 251, 255, 259, 278, 282, 308, 312, 341, 343, 356, 358, 372, 391, 400, 402, 411, 413, 417, 430, 434, 448, 452, 487, 689, 1089, 1119, 1130, 1146, 1150, 1170, 1181, 1195, 1217, 1228, 1244], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 317, "universal_type": "function", "name": "unknown", "text_snippet": "(index)"}, {"node_id": 321, "universal_type": "function", "name": "unknown", "text_snippet": "Type(*to_copy.GetAllocAt())"}, {"node_id": 328, "universal_type": "function", "name": "unknown", "text_snippet": "GetAllocAt()"}, {"node_id": 459, "universal_type": "function", "name": "unknown", "text_snippet": "GetPtrAt(index)"}, {"node_id": 562, "universal_type": "function", "name": "Swap", "text_snippet": "void Swap(StaticSizedAlloc<Type> & rhs)\n {\n std::swap(m_MaxAllocs, rhs.m_MaxAllocs);\n std::sw"}, {"node_id": 564, "universal_type": "function", "name": "unknown", "text_snippet": "Swap(StaticSizedAlloc<Type> & rhs)"}, {"node_id": 669, "universal_type": "function", "name": "*", "text_snippet": "void * AllocateRaw()\n {\n static_assert(sizeof(Type) >= sizeof(void *), \"Allocation type is too s"}, {"node_id": 673, "universal_type": "function", "name": "unknown", "text_snippet": "AllocateRaw()"}, {"node_id": 768, "universal_type": "function", "name": "Free", "text_snippet": "void Free(Type * type)\n {\n type->~Type();\n FreeRaw(type);\n }"}, {"node_id": 770, "universal_type": "function", "name": "unknown", "text_snippet": "Free(Type * type)"}, {"node_id": 789, "universal_type": "function", "name": "FreeRaw", "text_snippet": "void FreeRaw(void * ptr)\n {\n std::size_t index = GetIndexAt(ptr);\n if (GetAllocMask(index) =="}, {"node_id": 791, "universal_type": "function", "name": "unknown", "text_snippet": "FreeRaw(void * ptr)"}, {"node_id": 861, "universal_type": "function", "name": "unknown", "text_snippet": "GetAllocationId(Type * ptr)"}, {"node_id": 914, "universal_type": "function", "name": "unknown", "text_snippet": "GetMaxAllocs()"}, {"node_id": 957, "universal_type": "function", "name": "unknown", "text_snippet": "const Type * GetAllocAt(std::size_t index) const\n {\n if (index >= m_MaxAllocs)\n {\n throw"}, {"node_id": 961, "universal_type": "function", "name": "unknown", "text_snippet": "GetAllocAt(std::size_t index) const"}, {"node_id": 996, "universal_type": "function", "name": "**", "text_snippet": "void ** GetPtrAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }"}, {"node_id": 1002, "universal_type": "function", "name": "unknown", "text_snippet": "GetPtrAt(std::size_t index)"}, {"node_id": 1044, "universal_type": "function", "name": "unknown", "text_snippet": "GetIndexAt(void * ptr)"}, {"node_id": 1100, "universal_type": "function", "name": "GetAllocMask", "text_snippet": "bool GetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = i"}, {"node_id": 1102, "universal_type": "function", "name": "unknown", "text_snippet": "GetAllocMask(std::size_t index)"}, {"node_id": 1151, "universal_type": "function", "name": "SetAllocMask", "text_snippet": "void SetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = i"}, {"node_id": 1153, "universal_type": "function", "name": "unknown", "text_snippet": "SetAllocMask(std::size_t index)"}, {"node_id": 1198, "universal_type": "function", "name": "UnsetAllocMask", "text_snippet": "void UnsetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte ="}, {"node_id": 1200, "universal_type": "function", "name": "unknown", "text_snippet": "UnsetAllocMask(std::size_t index)"}], "class_declarations": [{"node_id": 454, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 3, "text": "#include <cstdlib>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <cstdint>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <cstring>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <utility>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <cstdlib>\n#include <cstdint>\n#include <cstring>\n#include <utility>\n\ntemplate <typename Type>\nclass StaticSizedAlloc\n{\npublic:\n StaticSizedAlloc(std::size_t max_allocs) :\n m_MaxAllocs(max_allocs)\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n memset(m_AllocMask, 0, alloc_mask_size);\n\n for (std::size_t index = 0; index < m_MaxAllocs - 1; index++)\n {\n *GetPtrAt(index) = GetAllocAt(index + 1);\n }\n\n *GetPtrAt(m_MaxAllocs - 1) = nullptr;\n m_Head = GetPtrAt(0);\n }\n\n StaticSizedAlloc(std::size_t max_allocs, const StaticSizedAlloc<Type> & to_copy) :\n {\n if (max_allocs == 0)\n {\n throw false;\n }\n\n m_Memory = static_cast<uint8_t *>(malloc(sizeof(Type) * m_MaxAllocs));\n\n std::size_t alloc_mask_size = (m_MaxAllocs + 7) / 8;\n m_AllocMask = static_cast<uint8_t *>(malloc(alloc_mask_size));\n\n m_AllocMask[0] = to_copy.m_AllocMask[0];\n\n for (std::size_t index = 0, byte = 0, bit = 0; index < to_copy.m_MaxAllocs; ++index, ++bit)\n {\n if (bit == 8)\n {\n bit = 0;\n byte++;\n\n m_AllocMask[byte] = to_copy.m_AllocMask[byte];\n }\n\n if ((to_copy.m_AllocMask[byte] & (1 << bit)) != 0)\n {\n new (GetAllocAt(index)) Type(*to_copy.GetAllocAt());\n }\n }\n\n int my_bytes = (m_MaxAllocs + 7) / 8;\n int to_copy_bytes = (to_copy.m_MaxAllocs + 7) / 8;\n if (my_bytes > to_copy_bytes)\n {\n memset(&m_AllocMask[to_copy_bytes], 0, my_bytes - to_copy_bytes);\n }\n\n m_Head = nullptr;\n for (int index = m_MaxAllocs - 1, byte = (m_MaxAllocs - 1) / 8, bit = (m_MaxAllocs - 1) % 8; index >= 0; --index, --bit)\n {\n if (bit < 0)\n {\n bit = 7;\n byte--;\n }\n\n if ((m_AllocMask[byte] & (1 << bit)) == 0)\n {\n auto ptr = GetPtrAt(index);\n *ptr = m_Head;\n m_Head = ptr;\n }\n }\n }\n\n ~StaticSizedAlloc()\n {\n for (std::size_t index = 0; index < m_MaxAllocs; index++)\n {\n if (GetAllocMask(index))\n {\n GetAllocAt(index)->~Type();\n }\n }\n\n free(m_Memory);\n free(m_AllocMask);\n }\n\n StaticSizedAlloc(const StaticSizedAlloc & rhs) = delete;\n StaticSizedAlloc(StaticSizedAlloc && rhs) = delete;\n\n StaticSizedAlloc & operator = (const StaticSizedAlloc & rhs) = delete;\n StaticSizedAlloc & operator = (StaticSizedAlloc && rhs) = delete;\n\n void Swap(StaticSizedAlloc<Type> & rhs)\n {\n std::swap(m_MaxAllocs, rhs.m_MaxAllocs);\n std::swap(m_Head, rhs.m_Head);\n std::swap(m_Memory, rhs.m_Memory);\n std::swap(m_AllocMask, rhs.m_AllocMask);\n }\n\n template <typename ... InitArgs>\n Type * Allocate(InitArgs && ... args)\n {\n void * ptr = AllocateRaw();\n\n try\n {\n Type * t = new (ptr) Type(std::forward<InitArgs>(args)...);\n return t;\n }\n catch (...)\n {\n FreeRaw(ptr);\n throw;\n }\n }\n\n void * AllocateRaw()\n {\n static_assert(sizeof(Type) >= sizeof(void *), \"Allocation type is too small to alias with a pointer\");\n\n if (m_Head == nullptr)\n {\n throw false;\n }\n\n std::size_t index = GetIndexAt(m_Head);\n\n if (GetAllocMask(index))\n {\n throw false;\n }\n\n void * t = m_Head;\n\n void ** head_ptr = reinterpret_cast<void **>(m_Head);\n void * new_head = *head_ptr;\n\n SetAllocMask(index);\n m_Head = new_head;\n\n return t;\n }\n\n void Free(Type * type)\n {\n type->~Type();\n FreeRaw(type);\n }\n\n void FreeRaw(void * ptr)\n {\n std::size_t index = GetIndexAt(ptr);\n if (GetAllocMask(index) == false)\n {\n throw false;\n }\n\n UnsetAllocMask(index);\n\n void ** head_ptr = reinterpret_cast<void **>(ptr);\n *head_ptr = m_Head;\n\n m_Head = ptr;\n }\n\n std::size_t GetAllocationId(Type * ptr)\n {\n return GetIndexAt(ptr);\n }\n\n Type * GetElementForId(std::size_t id)\n {\n if (id >= m_MaxAllocs)\n {\n return nullptr;\n }\n\n if (GetAllocMask(id) == false)\n {\n return nullptr;\n }\n\n return GetAllocAt(id);\n }\n\n std::size_t GetMaxAllocs()\n {\n return m_MaxAllocs;\n }\n\nprivate:\n Type * GetAllocAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }\n\n const Type * GetAllocAt(std::size_t index) const\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<Type *>(&m_Memory[sizeof(Type) * index]);\n }\n\n void ** GetPtrAt(std::size_t index)\n {\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return reinterpret_cast<void **>(&m_Memory[sizeof(Type) * index]);\n }\n\n std::size_t GetIndexAt(void * ptr)\n {\n Type * t = reinterpret_cast<Type *>(ptr);\n\n std::size_t index = static_cast<std::size_t>(t - GetAllocAt(0));\n if (index >= m_MaxAllocs)\n {\n throw false;\n }\n\n return index;\n }\n\n bool GetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n return (m_AllocMask[byte] & static_cast<uint8_t>(1 << bit)) != 0;\n }\n\n void SetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] |= static_cast<uint8_t>(1 << bit);\n }\n\n void UnsetAllocMask(std::size_t index)\n {\n std::size_t bit = index & 0x7;\n std::size_t byte = index >> 3;\n\n m_AllocMask[byte] &= ~static_cast<uint8_t>(1 << bit);\n }\n\nprivate:\n std::size_t m_MaxAllocs;\n void * m_Head;\n uint8_t * m_Memory;\n uint8_t * m_AllocMask;\n};\n"}
80,463
c
/*s: portfns_concurrency.h */ // taslock.c int lock(Lock*); void unlock(Lock*); void ilock(Lock*); void iunlock(Lock*); int canlock(Lock*); // ref.c long incref(Ref*); long decref(Ref*); // qlock.c void qlock(QLock*); void qunlock(QLock*); int canqlock(QLock*); void rlock(RWlock*); void runlock(RWlock*); int canrlock(RWlock*); void wlock(RWlock*); void wunlock(RWlock*); // in <arch>/concurrency.s (but used in port) //@Scheck: Assembly int arch_splhi(void); //@Scheck: Assembly int arch_spllo(void); //@Scheck: Assembly void arch_splx(int); //@Scheck: Assembly bool arch_islo(void); //test-and-set //@Scheck: Assembly int arch_tas(void*); //@Scheck: Assembly void arch_xinc(long*); //@Scheck: Assembly long arch_xdec(long*); // <arch>/??? (called from port but signature not portable across <arch>) //int arch_cmpswap(long*, long, long); //void arch_coherence(void); // now in core/ for backward deps /*e: portfns_concurrency.h */
23.23
39
(translation_unit) "/*s: portfns_concurrency.h */\n// taslock.c\nint lock(Lock*);\nvoid unlock(Lock*);\nvoid ilock(Lock*);\nvoid iunlock(Lock*);\nint canlock(Lock*);\n\n// ref.c\nlong incref(Ref*);\nlong decref(Ref*);\n\n// qlock.c\nvoid qlock(QLock*);\nvoid qunlock(QLock*);\nint canqlock(QLock*);\n\nvoid rlock(RWlock*);\nvoid runlock(RWlock*);\nint canrlock(RWlock*);\nvoid wlock(RWlock*);\nvoid wunlock(RWlock*);\n\n// in <arch>/concurrency.s (but used in port)\n//@Scheck: Assembly\nint arch_splhi(void);\n//@Scheck: Assembly\nint arch_spllo(void);\n//@Scheck: Assembly\nvoid arch_splx(int);\n//@Scheck: Assembly\nbool arch_islo(void);\n\n//test-and-set\n//@Scheck: Assembly\nint arch_tas(void*);\n//@Scheck: Assembly\nvoid arch_xinc(long*);\n//@Scheck: Assembly\nlong arch_xdec(long*);\n// <arch>/??? (called from port but signature not portable across <arch>)\n//int arch_cmpswap(long*, long, long); \n\n//void arch_coherence(void); // now in core/ for backward deps\n\n/*e: portfns_concurrency.h */\n" (comment) "/*s: portfns_concurrency.h */" (comment) "// taslock.c" (declaration) "int lock(Lock*);" (primitive_type) "int" (function_declarator) "lock(Lock*)" (identifier) "lock" (parameter_list) "(Lock*)" (() "(" (parameter_declaration) "Lock*" (type_identifier) "Lock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void unlock(Lock*);" (primitive_type) "void" (function_declarator) "unlock(Lock*)" (identifier) "unlock" (parameter_list) "(Lock*)" (() "(" (parameter_declaration) "Lock*" (type_identifier) "Lock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void ilock(Lock*);" (primitive_type) "void" (function_declarator) "ilock(Lock*)" (identifier) "ilock" (parameter_list) "(Lock*)" (() "(" (parameter_declaration) "Lock*" (type_identifier) "Lock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void iunlock(Lock*);" (primitive_type) "void" (function_declarator) "iunlock(Lock*)" (identifier) "iunlock" (parameter_list) "(Lock*)" (() "(" (parameter_declaration) "Lock*" (type_identifier) "Lock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "int canlock(Lock*);" (primitive_type) "int" (function_declarator) "canlock(Lock*)" (identifier) "canlock" (parameter_list) "(Lock*)" (() "(" (parameter_declaration) "Lock*" (type_identifier) "Lock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "// ref.c" (declaration) "long incref(Ref*);" (sized_type_specifier) "long" (long) "long" (function_declarator) "incref(Ref*)" (identifier) "incref" (parameter_list) "(Ref*)" (() "(" (parameter_declaration) "Ref*" (type_identifier) "Ref" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "long decref(Ref*);" (sized_type_specifier) "long" (long) "long" (function_declarator) "decref(Ref*)" (identifier) "decref" (parameter_list) "(Ref*)" (() "(" (parameter_declaration) "Ref*" (type_identifier) "Ref" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "// qlock.c" (declaration) "void qlock(QLock*);" (primitive_type) "void" (function_declarator) "qlock(QLock*)" (identifier) "qlock" (parameter_list) "(QLock*)" (() "(" (parameter_declaration) "QLock*" (type_identifier) "QLock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void qunlock(QLock*);" (primitive_type) "void" (function_declarator) "qunlock(QLock*)" (identifier) "qunlock" (parameter_list) "(QLock*)" (() "(" (parameter_declaration) "QLock*" (type_identifier) "QLock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "int canqlock(QLock*);" (primitive_type) "int" (function_declarator) "canqlock(QLock*)" (identifier) "canqlock" (parameter_list) "(QLock*)" (() "(" (parameter_declaration) "QLock*" (type_identifier) "QLock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void rlock(RWlock*);" (primitive_type) "void" (function_declarator) "rlock(RWlock*)" (identifier) "rlock" (parameter_list) "(RWlock*)" (() "(" (parameter_declaration) "RWlock*" (type_identifier) "RWlock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void runlock(RWlock*);" (primitive_type) "void" (function_declarator) "runlock(RWlock*)" (identifier) "runlock" (parameter_list) "(RWlock*)" (() "(" (parameter_declaration) "RWlock*" (type_identifier) "RWlock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "int canrlock(RWlock*);" (primitive_type) "int" (function_declarator) "canrlock(RWlock*)" (identifier) "canrlock" (parameter_list) "(RWlock*)" (() "(" (parameter_declaration) "RWlock*" (type_identifier) "RWlock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void wlock(RWlock*);" (primitive_type) "void" (function_declarator) "wlock(RWlock*)" (identifier) "wlock" (parameter_list) "(RWlock*)" (() "(" (parameter_declaration) "RWlock*" (type_identifier) "RWlock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void wunlock(RWlock*);" (primitive_type) "void" (function_declarator) "wunlock(RWlock*)" (identifier) "wunlock" (parameter_list) "(RWlock*)" (() "(" (parameter_declaration) "RWlock*" (type_identifier) "RWlock" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "// in <arch>/concurrency.s (but used in port)" (comment) "//@Scheck: Assembly" (declaration) "int arch_splhi(void);" (primitive_type) "int" (function_declarator) "arch_splhi(void)" (identifier) "arch_splhi" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "//@Scheck: Assembly" (declaration) "int arch_spllo(void);" (primitive_type) "int" (function_declarator) "arch_spllo(void)" (identifier) "arch_spllo" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "//@Scheck: Assembly" (declaration) "void arch_splx(int);" (primitive_type) "void" (function_declarator) "arch_splx(int)" (identifier) "arch_splx" (parameter_list) "(int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (comment) "//@Scheck: Assembly" (declaration) "bool arch_islo(void);" (primitive_type) "bool" (function_declarator) "arch_islo(void)" (identifier) "arch_islo" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "//test-and-set" (comment) "//@Scheck: Assembly" (declaration) "int arch_tas(void*);" (primitive_type) "int" (function_declarator) "arch_tas(void*)" (identifier) "arch_tas" (parameter_list) "(void*)" (() "(" (parameter_declaration) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "//@Scheck: Assembly" (declaration) "void arch_xinc(long*);" (primitive_type) "void" (function_declarator) "arch_xinc(long*)" (identifier) "arch_xinc" (parameter_list) "(long*)" (() "(" (parameter_declaration) "long*" (sized_type_specifier) "long" (long) "long" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "//@Scheck: Assembly" (declaration) "long arch_xdec(long*);" (sized_type_specifier) "long" (long) "long" (function_declarator) "arch_xdec(long*)" (identifier) "arch_xdec" (parameter_list) "(long*)" (() "(" (parameter_declaration) "long*" (sized_type_specifier) "long" (long) "long" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "// <arch>/??? (called from port but signature not portable across <arch>)" (comment) "//int arch_cmpswap(long*, long, long); " (comment) "//void arch_coherence(void); // now in core/ for backward deps" (comment) "/*e: portfns_concurrency.h */"
279
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 23.23, "nodes": 195, "errors": 0, "source_hash": "6c7b2f41044f78714908c8204f12b8a9bedbacf1b5be0e3501c4e70eff54b4c3", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "int lock(Lock*);", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 17}}, {"id": 1, "type": "primitive_type", "text": "int", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 2, "type": "function_declarator", "text": "lock(Lock*)", "parent": 0, "children": [3, 4], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 16}}, {"id": 3, "type": "identifier", "text": "lock", "parent": 2, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 9}}, {"id": 4, "type": "parameter_list", "text": "(Lock*)", "parent": 2, "children": [5], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 16}}, {"id": 5, "type": "parameter_declaration", "text": "Lock*", "parent": 4, "children": [6, 7], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 15}}, {"id": 6, "type": "type_identifier", "text": "Lock", "parent": 5, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 14}}, {"id": 7, "type": "abstract_pointer_declarator", "text": "*", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 15}}, {"id": 8, "type": "*", "text": "*", "parent": 7, "children": [], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 15}}, {"id": 9, "type": "declaration", "text": "void unlock(Lock*);", "parent": null, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 19}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "unlock(Lock*)", "parent": 9, "children": [12, 13], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 18}}, {"id": 12, "type": "identifier", "text": "unlock", "parent": 11, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 11}}, {"id": 13, "type": "parameter_list", "text": "(Lock*)", "parent": 11, "children": [14], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 18}}, {"id": 14, "type": "parameter_declaration", "text": "Lock*", "parent": 13, "children": [15, 16], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 17}}, {"id": 15, "type": "type_identifier", "text": "Lock", "parent": 14, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 16}}, {"id": 16, "type": "abstract_pointer_declarator", "text": "*", "parent": 14, "children": [17], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 17}}, {"id": 17, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 17}}, {"id": 18, "type": "declaration", "text": "void ilock(Lock*);", "parent": null, "children": [19, 20], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 18}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 20, "type": "function_declarator", "text": "ilock(Lock*)", "parent": 18, "children": [21, 22], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 17}}, {"id": 21, "type": "identifier", "text": "ilock", "parent": 20, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 10}}, {"id": 22, "type": "parameter_list", "text": "(Lock*)", "parent": 20, "children": [23], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 17}}, {"id": 23, "type": "parameter_declaration", "text": "Lock*", "parent": 22, "children": [24, 25], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 16}}, {"id": 24, "type": "type_identifier", "text": "Lock", "parent": 23, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 15}}, {"id": 25, "type": "abstract_pointer_declarator", "text": "*", "parent": 23, "children": [26], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 16}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 16}}, {"id": 27, "type": "declaration", "text": "void iunlock(Lock*);", "parent": null, "children": [28, 29], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 20}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 29, "type": "function_declarator", "text": "iunlock(Lock*)", "parent": 27, "children": [30, 31], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 19}}, {"id": 30, "type": "identifier", "text": "iunlock", "parent": 29, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 12}}, {"id": 31, "type": "parameter_list", "text": "(Lock*)", "parent": 29, "children": [32], "start_point": {"row": 5, "column": 12}, "end_point": {"row": 5, "column": 19}}, {"id": 32, "type": "parameter_declaration", "text": "Lock*", "parent": 31, "children": [33, 34], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 18}}, {"id": 33, "type": "type_identifier", "text": "Lock", "parent": 32, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 17}}, {"id": 34, "type": "abstract_pointer_declarator", "text": "*", "parent": 32, "children": [35], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 18}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 18}}, {"id": 36, "type": "declaration", "text": "int canlock(Lock*);", "parent": null, "children": [37, 38], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 20}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 38, "type": "function_declarator", "text": "canlock(Lock*)", "parent": 36, "children": [39, 40], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 19}}, {"id": 39, "type": "identifier", "text": "canlock", "parent": 38, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 12}}, {"id": 40, "type": "parameter_list", "text": "(Lock*)", "parent": 38, "children": [41], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 19}}, {"id": 41, "type": "parameter_declaration", "text": "Lock*", "parent": 40, "children": [42, 43], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 18}}, {"id": 42, "type": "type_identifier", "text": "Lock", "parent": 41, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 17}}, {"id": 43, "type": "abstract_pointer_declarator", "text": "*", "parent": 41, "children": [44], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 18}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 18}}, {"id": 45, "type": "declaration", "text": "long incref(Ref*);", "parent": null, "children": [46, 48], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 18}}, {"id": 46, "type": "sized_type_specifier", "text": "long", "parent": 45, "children": [47], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 47, "type": "long", "text": "long", "parent": 46, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 48, "type": "function_declarator", "text": "incref(Ref*)", "parent": 45, "children": [49, 50], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 17}}, {"id": 49, "type": "identifier", "text": "incref", "parent": 48, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 11}}, {"id": 50, "type": "parameter_list", "text": "(Ref*)", "parent": 48, "children": [51], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 17}}, {"id": 51, "type": "parameter_declaration", "text": "Ref*", "parent": 50, "children": [52, 53], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 16}}, {"id": 52, "type": "type_identifier", "text": "Ref", "parent": 51, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 15}}, {"id": 53, "type": "abstract_pointer_declarator", "text": "*", "parent": 51, "children": [54], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 16}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 16}}, {"id": 55, "type": "declaration", "text": "long decref(Ref*);", "parent": null, "children": [56, 58], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 18}}, {"id": 56, "type": "sized_type_specifier", "text": "long", "parent": 55, "children": [57], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 57, "type": "long", "text": "long", "parent": 56, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 58, "type": "function_declarator", "text": "decref(Ref*)", "parent": 55, "children": [59, 60], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 17}}, {"id": 59, "type": "identifier", "text": "decref", "parent": 58, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 11}}, {"id": 60, "type": "parameter_list", "text": "(Ref*)", "parent": 58, "children": [61], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 17}}, {"id": 61, "type": "parameter_declaration", "text": "Ref*", "parent": 60, "children": [62, 63], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 16}}, {"id": 62, "type": "type_identifier", "text": "Ref", "parent": 61, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 15}}, {"id": 63, "type": "abstract_pointer_declarator", "text": "*", "parent": 61, "children": [64], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 65, "type": "declaration", "text": "void qlock(QLock*);", "parent": null, "children": [66, 67], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 19}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 67, "type": "function_declarator", "text": "qlock(QLock*)", "parent": 65, "children": [68, 69], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 18}}, {"id": 68, "type": "identifier", "text": "qlock", "parent": 67, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 10}}, {"id": 69, "type": "parameter_list", "text": "(QLock*)", "parent": 67, "children": [70], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 18}}, {"id": 70, "type": "parameter_declaration", "text": "QLock*", "parent": 69, "children": [71, 72], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 17}}, {"id": 71, "type": "type_identifier", "text": "QLock", "parent": 70, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 16}}, {"id": 72, "type": "abstract_pointer_declarator", "text": "*", "parent": 70, "children": [73], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 17}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 17}}, {"id": 74, "type": "declaration", "text": "void qunlock(QLock*);", "parent": null, "children": [75, 76], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 21}}, {"id": 75, "type": "primitive_type", "text": "void", "parent": 74, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 76, "type": "function_declarator", "text": "qunlock(QLock*)", "parent": 74, "children": [77, 78], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 20}}, {"id": 77, "type": "identifier", "text": "qunlock", "parent": 76, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 12}}, {"id": 78, "type": "parameter_list", "text": "(QLock*)", "parent": 76, "children": [79], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 20}}, {"id": 79, "type": "parameter_declaration", "text": "QLock*", "parent": 78, "children": [80, 81], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 19}}, {"id": 80, "type": "type_identifier", "text": "QLock", "parent": 79, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 18}}, {"id": 81, "type": "abstract_pointer_declarator", "text": "*", "parent": 79, "children": [82], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 83, "type": "declaration", "text": "int canqlock(QLock*);", "parent": null, "children": [84, 85], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 22}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 3}}, {"id": 85, "type": "function_declarator", "text": "canqlock(QLock*)", "parent": 83, "children": [86, 87], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 21}}, {"id": 86, "type": "identifier", "text": "canqlock", "parent": 85, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 13}}, {"id": 87, "type": "parameter_list", "text": "(QLock*)", "parent": 85, "children": [88], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 21}}, {"id": 88, "type": "parameter_declaration", "text": "QLock*", "parent": 87, "children": [89, 90], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 20}}, {"id": 89, "type": "type_identifier", "text": "QLock", "parent": 88, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 19}}, {"id": 90, "type": "abstract_pointer_declarator", "text": "*", "parent": 88, "children": [91], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 92, "type": "declaration", "text": "void rlock(RWlock*);", "parent": null, "children": [93, 94], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 20}}, {"id": 93, "type": "primitive_type", "text": "void", "parent": 92, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 94, "type": "function_declarator", "text": "rlock(RWlock*)", "parent": 92, "children": [95, 96], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 19}}, {"id": 95, "type": "identifier", "text": "rlock", "parent": 94, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 10}}, {"id": 96, "type": "parameter_list", "text": "(RWlock*)", "parent": 94, "children": [97], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 19}}, {"id": 97, "type": "parameter_declaration", "text": "RWlock*", "parent": 96, "children": [98, 99], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 18}}, {"id": 98, "type": "type_identifier", "text": "RWlock", "parent": 97, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 17}}, {"id": 99, "type": "abstract_pointer_declarator", "text": "*", "parent": 97, "children": [100], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 18}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 18}}, {"id": 101, "type": "declaration", "text": "void runlock(RWlock*);", "parent": null, "children": [102, 103], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 22}}, {"id": 102, "type": "primitive_type", "text": "void", "parent": 101, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 103, "type": "function_declarator", "text": "runlock(RWlock*)", "parent": 101, "children": [104, 105], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 21}}, {"id": 104, "type": "identifier", "text": "runlock", "parent": 103, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 12}}, {"id": 105, "type": "parameter_list", "text": "(RWlock*)", "parent": 103, "children": [106], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 21}}, {"id": 106, "type": "parameter_declaration", "text": "RWlock*", "parent": 105, "children": [107, 108], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 20}}, {"id": 107, "type": "type_identifier", "text": "RWlock", "parent": 106, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 19}}, {"id": 108, "type": "abstract_pointer_declarator", "text": "*", "parent": 106, "children": [109], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 110, "type": "declaration", "text": "int canrlock(RWlock*);", "parent": null, "children": [111, 112], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 23}}, {"id": 111, "type": "primitive_type", "text": "int", "parent": 110, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 112, "type": "function_declarator", "text": "canrlock(RWlock*)", "parent": 110, "children": [113, 114], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 22}}, {"id": 113, "type": "identifier", "text": "canrlock", "parent": 112, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 13}}, {"id": 114, "type": "parameter_list", "text": "(RWlock*)", "parent": 112, "children": [115], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 22}}, {"id": 115, "type": "parameter_declaration", "text": "RWlock*", "parent": 114, "children": [116, 117], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 21}}, {"id": 116, "type": "type_identifier", "text": "RWlock", "parent": 115, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 20}}, {"id": 117, "type": "abstract_pointer_declarator", "text": "*", "parent": 115, "children": [118], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 119, "type": "declaration", "text": "void wlock(RWlock*);", "parent": null, "children": [120, 121], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 20}}, {"id": 120, "type": "primitive_type", "text": "void", "parent": 119, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 121, "type": "function_declarator", "text": "wlock(RWlock*)", "parent": 119, "children": [122, 123], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 19}}, {"id": 122, "type": "identifier", "text": "wlock", "parent": 121, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 10}}, {"id": 123, "type": "parameter_list", "text": "(RWlock*)", "parent": 121, "children": [124], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 19}}, {"id": 124, "type": "parameter_declaration", "text": "RWlock*", "parent": 123, "children": [125, 126], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 18}}, {"id": 125, "type": "type_identifier", "text": "RWlock", "parent": 124, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 17}}, {"id": 126, "type": "abstract_pointer_declarator", "text": "*", "parent": 124, "children": [127], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 128, "type": "declaration", "text": "void wunlock(RWlock*);", "parent": null, "children": [129, 130], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 22}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 130, "type": "function_declarator", "text": "wunlock(RWlock*)", "parent": 128, "children": [131, 132], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 21}}, {"id": 131, "type": "identifier", "text": "wunlock", "parent": 130, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 12}}, {"id": 132, "type": "parameter_list", "text": "(RWlock*)", "parent": 130, "children": [133], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 21}}, {"id": 133, "type": "parameter_declaration", "text": "RWlock*", "parent": 132, "children": [134, 135], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 20}}, {"id": 134, "type": "type_identifier", "text": "RWlock", "parent": 133, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 19}}, {"id": 135, "type": "abstract_pointer_declarator", "text": "*", "parent": 133, "children": [136], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 137, "type": "declaration", "text": "int arch_splhi(void);", "parent": null, "children": [138, 139], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 22}}, {"id": 138, "type": "primitive_type", "text": "int", "parent": 137, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 3}}, {"id": 139, "type": "function_declarator", "text": "arch_splhi(void)", "parent": 137, "children": [140, 141], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 21}}, {"id": 140, "type": "identifier", "text": "arch_splhi", "parent": 139, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 15}}, {"id": 141, "type": "parameter_list", "text": "(void)", "parent": 139, "children": [142], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 21}}, {"id": 142, "type": "parameter_declaration", "text": "void", "parent": 141, "children": [143], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 20}}, {"id": 143, "type": "primitive_type", "text": "void", "parent": 142, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 20}}, {"id": 144, "type": "declaration", "text": "int arch_spllo(void);", "parent": null, "children": [145, 146], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 22}}, {"id": 145, "type": "primitive_type", "text": "int", "parent": 144, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 146, "type": "function_declarator", "text": "arch_spllo(void)", "parent": 144, "children": [147, 148], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 21}}, {"id": 147, "type": "identifier", "text": "arch_spllo", "parent": 146, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 15}}, {"id": 148, "type": "parameter_list", "text": "(void)", "parent": 146, "children": [149], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 21}}, {"id": 149, "type": "parameter_declaration", "text": "void", "parent": 148, "children": [150], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 20}}, {"id": 150, "type": "primitive_type", "text": "void", "parent": 149, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 20}}, {"id": 151, "type": "declaration", "text": "void arch_splx(int);", "parent": null, "children": [152, 153], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 20}}, {"id": 152, "type": "primitive_type", "text": "void", "parent": 151, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 153, "type": "function_declarator", "text": "arch_splx(int)", "parent": 151, "children": [154, 155], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 19}}, {"id": 154, "type": "identifier", "text": "arch_splx", "parent": 153, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 14}}, {"id": 155, "type": "parameter_list", "text": "(int)", "parent": 153, "children": [156], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 19}}, {"id": 156, "type": "parameter_declaration", "text": "int", "parent": 155, "children": [157], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 18}}, {"id": 157, "type": "primitive_type", "text": "int", "parent": 156, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 18}}, {"id": 158, "type": "declaration", "text": "bool arch_islo(void);", "parent": null, "children": [159, 160], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 21}}, {"id": 159, "type": "primitive_type", "text": "bool", "parent": 158, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 4}}, {"id": 160, "type": "function_declarator", "text": "arch_islo(void)", "parent": 158, "children": [161, 162], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 20}}, {"id": 161, "type": "identifier", "text": "arch_islo", "parent": 160, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 14}}, {"id": 162, "type": "parameter_list", "text": "(void)", "parent": 160, "children": [163], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 20}}, {"id": 163, "type": "parameter_declaration", "text": "void", "parent": 162, "children": [164], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 19}}, {"id": 164, "type": "primitive_type", "text": "void", "parent": 163, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 19}}, {"id": 165, "type": "declaration", "text": "int arch_tas(void*);", "parent": null, "children": [166, 167], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 21}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 165, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 3}}, {"id": 167, "type": "function_declarator", "text": "arch_tas(void*)", "parent": 165, "children": [168, 169], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 20}}, {"id": 168, "type": "identifier", "text": "arch_tas", "parent": 167, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 13}}, {"id": 169, "type": "parameter_list", "text": "(void*)", "parent": 167, "children": [170], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 20}}, {"id": 170, "type": "parameter_declaration", "text": "void*", "parent": 169, "children": [171, 172], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 19}}, {"id": 171, "type": "primitive_type", "text": "void", "parent": 170, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 18}}, {"id": 172, "type": "abstract_pointer_declarator", "text": "*", "parent": 170, "children": [173], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 19}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 19}}, {"id": 174, "type": "declaration", "text": "void arch_xinc(long*);", "parent": null, "children": [175, 176], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 22}}, {"id": 175, "type": "primitive_type", "text": "void", "parent": 174, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 4}}, {"id": 176, "type": "function_declarator", "text": "arch_xinc(long*)", "parent": 174, "children": [177, 178], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 21}}, {"id": 177, "type": "identifier", "text": "arch_xinc", "parent": 176, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 14}}, {"id": 178, "type": "parameter_list", "text": "(long*)", "parent": 176, "children": [179], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 21}}, {"id": 179, "type": "parameter_declaration", "text": "long*", "parent": 178, "children": [180, 182], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 20}}, {"id": 180, "type": "sized_type_specifier", "text": "long", "parent": 179, "children": [181], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 19}}, {"id": 181, "type": "long", "text": "long", "parent": 180, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 19}}, {"id": 182, "type": "abstract_pointer_declarator", "text": "*", "parent": 179, "children": [183], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 183, "type": "*", "text": "*", "parent": 182, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 184, "type": "declaration", "text": "long arch_xdec(long*);", "parent": null, "children": [185, 187], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 22}}, {"id": 185, "type": "sized_type_specifier", "text": "long", "parent": 184, "children": [186], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 4}}, {"id": 186, "type": "long", "text": "long", "parent": 185, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 4}}, {"id": 187, "type": "function_declarator", "text": "arch_xdec(long*)", "parent": 184, "children": [188, 189], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 21}}, {"id": 188, "type": "identifier", "text": "arch_xdec", "parent": 187, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 14}}, {"id": 189, "type": "parameter_list", "text": "(long*)", "parent": 187, "children": [190], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 21}}, {"id": 190, "type": "parameter_declaration", "text": "long*", "parent": 189, "children": [191, 193], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 20}}, {"id": 191, "type": "sized_type_specifier", "text": "long", "parent": 190, "children": [192], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 19}}, {"id": 192, "type": "long", "text": "long", "parent": 191, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 19}}, {"id": 193, "type": "abstract_pointer_declarator", "text": "*", "parent": 190, "children": [194], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}]}, "node_categories": {"declarations": {"functions": [2, 11, 20, 29, 38, 48, 58, 67, 76, 85, 94, 103, 112, 121, 130, 139, 146, 153, 160, 167, 176, 187], "variables": [0, 5, 9, 14, 18, 23, 27, 32, 36, 41, 45, 51, 55, 61, 65, 70, 74, 79, 83, 88, 92, 97, 101, 106, 110, 115, 119, 124, 128, 133, 137, 142, 144, 149, 151, 156, 158, 163, 165, 170, 174, 179, 184, 190], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 6, 12, 15, 21, 24, 30, 33, 39, 42, 46, 49, 52, 56, 59, 62, 68, 71, 77, 80, 86, 89, 95, 98, 104, 107, 113, 116, 122, 125, 131, 134, 140, 147, 154, 161, 168, 177, 180, 185, 188, 191], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "unknown", "text_snippet": "lock(Lock*)"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "unlock(Lock*)"}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "ilock(Lock*)"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "iunlock(Lock*)"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "canlock(Lock*)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "incref(Ref*)"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "decref(Ref*)"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "qlock(QLock*)"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "qunlock(QLock*)"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "canqlock(QLock*)"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "rlock(RWlock*)"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "runlock(RWlock*)"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "canrlock(RWlock*)"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "wlock(RWlock*)"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "wunlock(RWlock*)"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "arch_splhi(void)"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "arch_spllo(void)"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "arch_splx(int)"}, {"node_id": 160, "universal_type": "function", "name": "unknown", "text_snippet": "arch_islo(void)"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "arch_tas(void*)"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "arch_xinc(long*)"}, {"node_id": 187, "universal_type": "function", "name": "unknown", "text_snippet": "arch_xdec(long*)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*s: portfns_concurrency.h */\n// taslock.c\nint lock(Lock*);\nvoid unlock(Lock*);\nvoid ilock(Lock*);\nvoid iunlock(Lock*);\nint canlock(Lock*);\n\n// ref.c\nlong incref(Ref*);\nlong decref(Ref*);\n\n// qlock.c\nvoid qlock(QLock*);\nvoid qunlock(QLock*);\nint canqlock(QLock*);\n\nvoid rlock(RWlock*);\nvoid runlock(RWlock*);\nint canrlock(RWlock*);\nvoid wlock(RWlock*);\nvoid wunlock(RWlock*);\n\n// in <arch>/concurrency.s (but used in port)\n//@Scheck: Assembly\nint arch_splhi(void);\n//@Scheck: Assembly\nint arch_spllo(void);\n//@Scheck: Assembly\nvoid arch_splx(int);\n//@Scheck: Assembly\nbool arch_islo(void);\n\n//test-and-set\n//@Scheck: Assembly\nint arch_tas(void*);\n//@Scheck: Assembly\nvoid arch_xinc(long*);\n//@Scheck: Assembly\nlong arch_xdec(long*);\n// <arch>/??? (called from port but signature not portable across <arch>)\n//int arch_cmpswap(long*, long, long); \n\n//void arch_coherence(void); // now in core/ for backward deps\n\n/*e: portfns_concurrency.h */\n"}
80,464
c
#include <libpcc_limits.h>
26
1
(translation_unit) "#include <libpcc_limits.h>\n" (preproc_include) "#include <libpcc_limits.h>\n" (#include) "#include" (system_lib_string) "<libpcc_limits.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 26.0, "nodes": 3, "errors": 0, "source_hash": "2acf6f71a6d6987ba601cfe19169d8b6e54971f8ff2effb6a570a35a3d567e21", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <libpcc_limits.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": "<libpcc_limits.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 26}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <libpcc_limits.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <libpcc_limits.h>\n"}
80,465
c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright 2020, Intel Corporation */ /* * client.c -- a client of the messages-ping-pong example * * Please see README.md for a detailed description of this example. */ #include <librpma.h> #include <limits.h> #include <inttypes.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include "common-conn.h" #include "messages-ping-pong-common.h" #define USAGE_STR "usage: %s <server_address> <port> <seed> <rounds> " \ "[<sleep>]\n" static uint64_t strtoul_noerror(const char *in) { uint64_t out = strtoul(in, NULL, 10); if (out == ULONG_MAX && errno == ERANGE) { (void) fprintf(stderr, "strtoul(%s) overflowed\n", in); exit(-1); } return out; } int main(int argc, char *argv[]) { /* validate parameters */ if (argc < 5) { fprintf(stderr, USAGE_STR, argv[0]); exit(-1); } /* configure logging thresholds to see more details */ rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO); rpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO); /* read common parameters */ char *addr = argv[1]; char *port = argv[2]; uint64_t cntr = strtoul_noerror(argv[3]); uint64_t rounds = strtoul_noerror(argv[4]); uint64_t sleep_usec = 0; if (argc == 6) sleep_usec = strtoul_noerror(argv[5]); int ret; /* RPMA resources - general */ struct rpma_peer *peer = NULL; struct rpma_conn *conn = NULL; struct rpma_completion cmpl; /* prepare memory */ struct rpma_mr_local *recv_mr, *send_mr; uint64_t *recv = malloc_aligned(MSG_SIZE); if (recv == NULL) return -1; uint64_t *send = malloc_aligned(MSG_SIZE); if (send == NULL) { free(recv); return -1; } /* * lookup an ibv_context via the address and create a new peer using it */ if ((ret = client_peer_via_address(addr, &peer))) goto err_mr_free; /* register the memory */ if ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV, &recv_mr))) goto err_peer_delete; if ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND, &send_mr))) { (void) rpma_mr_dereg(&recv_mr); goto err_peer_delete; } /* establish a new connection to a server listening at addr:port */ if ((ret = client_connect(peer, addr, port, NULL, &conn))) goto err_mr_dereg; while (--rounds) { /* prepare a receive for the server's response */ if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv))) break; /* send a message to the server */ (void) printf("Value sent: %" PRIu64 "\n", cntr); *send = cntr; if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE, /* * XXX when using RPMA_F_COMPLETION_ON_ERROR * after few rounds rpma_send() returns ENOMEM. */ RPMA_F_COMPLETION_ALWAYS, NULL))) break; int send_cmpl = 0; int recv_cmpl = 0; do { /* prepare completions, get one and validate it */ if ((ret = rpma_conn_completion_wait(conn))) { break; } else if ((ret = rpma_conn_completion_get(conn, &cmpl))) { break; } else if (cmpl.op_status != IBV_WC_SUCCESS) { (void) fprintf(stderr, "Shutting down the client due to the unsuccessful completion of an operation.\n"); ret = -1; break; } if (cmpl.op == RPMA_OP_SEND) { send_cmpl = 1; } else if (cmpl.op == RPMA_OP_RECV) { if (cmpl.op_context != recv || cmpl.byte_len != MSG_SIZE) { (void) fprintf(stderr, "received completion is not as expected (%p != %p [cmpl.op_context] || %" PRIu32 " != %ld [cmpl.byte_len] )\n", cmpl.op_context, (void *)recv, cmpl.byte_len, MSG_SIZE); ret = -1; break; } recv_cmpl = 1; } } while (!send_cmpl || !recv_cmpl); if (ret) break; /* copy the new value of the counter and print it out */ cntr = *recv; printf("Value received: %" PRIu64 "\n", cntr); /* sleep if required */ if (sleep_usec > 0) (void) usleep(sleep_usec); } /* send the I_M_DONE message */ *send = I_M_DONE; ret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR, NULL); ret |= common_disconnect_and_wait_for_conn_close(&conn); err_mr_dereg: /* deregister the memory regions */ ret |= rpma_mr_dereg(&send_mr); ret |= rpma_mr_dereg(&recv_mr); err_peer_delete: /* delete the peer object */ ret |= rpma_peer_delete(&peer); err_mr_free: /* free the memory */ free(send); free(recv); return ret ? -1 : 0; }
27.61
152
(translation_unit) "// SPDX-License-Identifier: BSD-3-Clause\n/* Copyright 2020, Intel Corporation */\n\n/*\n * client.c -- a client of the messages-ping-pong example\n *\n * Please see README.md for a detailed description of this example.\n */\n\n#include <librpma.h>\n#include <limits.h>\n#include <inttypes.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <sys/types.h>\n#include <unistd.h>\n\n#include "common-conn.h"\n#include "messages-ping-pong-common.h"\n\n#define USAGE_STR "usage: %s <server_address> <port> <seed> <rounds> " \\n "[<sleep>]\n"\n\nstatic uint64_t\nstrtoul_noerror(const char *in)\n{\n uint64_t out = strtoul(in, NULL, 10);\n if (out == ULONG_MAX && errno == ERANGE) {\n (void) fprintf(stderr, "strtoul(%s) overflowed\n", in);\n exit(-1);\n }\n return out;\n}\n\nint\nmain(int argc, char *argv[])\n{\n /* validate parameters */\n if (argc < 5) {\n fprintf(stderr, USAGE_STR, argv[0]);\n exit(-1);\n }\n\n /* configure logging thresholds to see more details */\n rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO);\n rpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO);\n\n /* read common parameters */\n char *addr = argv[1];\n char *port = argv[2];\n uint64_t cntr = strtoul_noerror(argv[3]);\n uint64_t rounds = strtoul_noerror(argv[4]);\n uint64_t sleep_usec = 0;\n\n if (argc == 6)\n sleep_usec = strtoul_noerror(argv[5]);\n\n int ret;\n\n /* RPMA resources - general */\n struct rpma_peer *peer = NULL;\n struct rpma_conn *conn = NULL;\n struct rpma_completion cmpl;\n\n /* prepare memory */\n struct rpma_mr_local *recv_mr, *send_mr;\n uint64_t *recv = malloc_aligned(MSG_SIZE);\n if (recv == NULL)\n return -1;\n uint64_t *send = malloc_aligned(MSG_SIZE);\n if (send == NULL) {\n free(recv);\n return -1;\n }\n\n /*\n * lookup an ibv_context via the address and create a new peer using it\n */\n if ((ret = client_peer_via_address(addr, &peer)))\n goto err_mr_free;\n\n /* register the memory */\n if ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)))\n goto err_peer_delete;\n if ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr))) {\n (void) rpma_mr_dereg(&recv_mr);\n goto err_peer_delete;\n }\n\n /* establish a new connection to a server listening at addr:port */\n if ((ret = client_connect(peer, addr, port, NULL, &conn)))\n goto err_mr_dereg;\n\n while (--rounds) {\n /* prepare a receive for the server's response */\n if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n break;\n\n /* send a message to the server */\n (void) printf("Value sent: %" PRIu64 "\n", cntr);\n *send = cntr;\n if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)))\n break;\n\n int send_cmpl = 0;\n int recv_cmpl = 0;\n\n do {\n /* prepare completions, get one and validate it */\n if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }\n\n if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }\n } while (!send_cmpl || !recv_cmpl);\n\n if (ret)\n break;\n\n /* copy the new value of the counter and print it out */\n cntr = *recv;\n printf("Value received: %" PRIu64 "\n", cntr);\n\n /* sleep if required */\n if (sleep_usec > 0)\n (void) usleep(sleep_usec);\n }\n\n /* send the I_M_DONE message */\n *send = I_M_DONE;\n ret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n NULL);\n\n ret |= common_disconnect_and_wait_for_conn_close(&conn);\n\nerr_mr_dereg:\n /* deregister the memory regions */\n ret |= rpma_mr_dereg(&send_mr);\n ret |= rpma_mr_dereg(&recv_mr);\n\nerr_peer_delete:\n /* delete the peer object */\n ret |= rpma_peer_delete(&peer);\n\nerr_mr_free:\n /* free the memory */\n free(send);\n free(recv);\n\n return ret ? -1 : 0;\n}\n" (comment) "// SPDX-License-Identifier: BSD-3-Clause" (comment) "/* Copyright 2020, Intel Corporation */" (comment) "/*\n * client.c -- a client of the messages-ping-pong example\n *\n * Please see README.md for a detailed description of this example.\n */" (preproc_include) "#include <librpma.h>\n" (#include) "#include" (system_lib_string) "<librpma.h>" (preproc_include) "#include <limits.h>\n" (#include) "#include" (system_lib_string) "<limits.h>" (preproc_include) "#include <inttypes.h>\n" (#include) "#include" (system_lib_string) "<inttypes.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include "common-conn.h"\n" (#include) "#include" (string_literal) ""common-conn.h"" (") """ (string_content) "common-conn.h" (") """ (preproc_include) "#include "messages-ping-pong-common.h"\n" (#include) "#include" (string_literal) ""messages-ping-pong-common.h"" (") """ (string_content) "messages-ping-pong-common.h" (") """ (preproc_def) "#define USAGE_STR "usage: %s <server_address> <port> <seed> <rounds> " \\n "[<sleep>]\n"\n" (#define) "#define" (identifier) "USAGE_STR" (preproc_arg) ""usage: %s <server_address> <port> <seed> <rounds> " \\n "[<sleep>]\n"" (function_definition) "static uint64_t\nstrtoul_noerror(const char *in)\n{\n uint64_t out = strtoul(in, NULL, 10);\n if (out == ULONG_MAX && errno == ERANGE) {\n (void) fprintf(stderr, "strtoul(%s) overflowed\n", in);\n exit(-1);\n }\n return out;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint64_t" (function_declarator) "strtoul_noerror(const char *in)" (identifier) "strtoul_noerror" (parameter_list) "(const char *in)" (() "(" (parameter_declaration) "const char *in" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*in" (*) "*" (identifier) "in" ()) ")" (compound_statement) "{\n uint64_t out = strtoul(in, NULL, 10);\n if (out == ULONG_MAX && errno == ERANGE) {\n (void) fprintf(stderr, "strtoul(%s) overflowed\n", in);\n exit(-1);\n }\n return out;\n}" ({) "{" (declaration) "uint64_t out = strtoul(in, NULL, 10);" (primitive_type) "uint64_t" (init_declarator) "out = strtoul(in, NULL, 10)" (identifier) "out" (=) "=" (call_expression) "strtoul(in, NULL, 10)" (identifier) "strtoul" (argument_list) "(in, NULL, 10)" (() "(" (identifier) "in" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "10" ()) ")" (;) ";" (if_statement) "if (out == ULONG_MAX && errno == ERANGE) {\n (void) fprintf(stderr, "strtoul(%s) overflowed\n", in);\n exit(-1);\n }" (if) "if" (parenthesized_expression) "(out == ULONG_MAX && errno == ERANGE)" (() "(" (binary_expression) "out == ULONG_MAX && errno == ERANGE" (binary_expression) "out == ULONG_MAX" (identifier) "out" (==) "==" (identifier) "ULONG_MAX" (&&) "&&" (binary_expression) "errno == ERANGE" (identifier) "errno" (==) "==" (identifier) "ERANGE" ()) ")" (compound_statement) "{\n (void) fprintf(stderr, "strtoul(%s) overflowed\n", in);\n exit(-1);\n }" ({) "{" (expression_statement) "(void) fprintf(stderr, "strtoul(%s) overflowed\n", in);" (cast_expression) "(void) fprintf(stderr, "strtoul(%s) overflowed\n", in)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "fprintf(stderr, "strtoul(%s) overflowed\n", in)" (identifier) "fprintf" (argument_list) "(stderr, "strtoul(%s) overflowed\n", in)" (() "(" (identifier) "stderr" (,) "," (string_literal) ""strtoul(%s) overflowed\n"" (") """ (string_content) "strtoul(%s) overflowed" (escape_sequence) "\n" (") """ (,) "," (identifier) "in" ()) ")" (;) ";" (expression_statement) "exit(-1);" (call_expression) "exit(-1)" (identifier) "exit" (argument_list) "(-1)" (() "(" (number_literal) "-1" ()) ")" (;) ";" (}) "}" (return_statement) "return out;" (return) "return" (identifier) "out" (;) ";" (}) "}" (function_definition) "int\nmain(int argc, char *argv[])\n{\n /* validate parameters */\n if (argc < 5) {\n fprintf(stderr, USAGE_STR, argv[0]);\n exit(-1);\n }\n\n /* configure logging thresholds to see more details */\n rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO);\n rpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO);\n\n /* read common parameters */\n char *addr = argv[1];\n char *port = argv[2];\n uint64_t cntr = strtoul_noerror(argv[3]);\n uint64_t rounds = strtoul_noerror(argv[4]);\n uint64_t sleep_usec = 0;\n\n if (argc == 6)\n sleep_usec = strtoul_noerror(argv[5]);\n\n int ret;\n\n /* RPMA resources - general */\n struct rpma_peer *peer = NULL;\n struct rpma_conn *conn = NULL;\n struct rpma_completion cmpl;\n\n /* prepare memory */\n struct rpma_mr_local *recv_mr, *send_mr;\n uint64_t *recv = malloc_aligned(MSG_SIZE);\n if (recv == NULL)\n return -1;\n uint64_t *send = malloc_aligned(MSG_SIZE);\n if (send == NULL) {\n free(recv);\n return -1;\n }\n\n /*\n * lookup an ibv_context via the address and create a new peer using it\n */\n if ((ret = client_peer_via_address(addr, &peer)))\n goto err_mr_free;\n\n /* register the memory */\n if ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)))\n goto err_peer_delete;\n if ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr))) {\n (void) rpma_mr_dereg(&recv_mr);\n goto err_peer_delete;\n }\n\n /* establish a new connection to a server listening at addr:port */\n if ((ret = client_connect(peer, addr, port, NULL, &conn)))\n goto err_mr_dereg;\n\n while (--rounds) {\n /* prepare a receive for the server's response */\n if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n break;\n\n /* send a message to the server */\n (void) printf("Value sent: %" PRIu64 "\n", cntr);\n *send = cntr;\n if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)))\n break;\n\n int send_cmpl = 0;\n int recv_cmpl = 0;\n\n do {\n /* prepare completions, get one and validate it */\n if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }\n\n if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }\n } while (!send_cmpl || !recv_cmpl);\n\n if (ret)\n break;\n\n /* copy the new value of the counter and print it out */\n cntr = *recv;\n printf("Value received: %" PRIu64 "\n", cntr);\n\n /* sleep if required */\n if (sleep_usec > 0)\n (void) usleep(sleep_usec);\n }\n\n /* send the I_M_DONE message */\n *send = I_M_DONE;\n ret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n NULL);\n\n ret |= common_disconnect_and_wait_for_conn_close(&conn);\n\nerr_mr_dereg:\n /* deregister the memory regions */\n ret |= rpma_mr_dereg(&send_mr);\n ret |= rpma_mr_dereg(&recv_mr);\n\nerr_peer_delete:\n /* delete the peer object */\n ret |= rpma_peer_delete(&peer);\n\nerr_mr_free:\n /* free the memory */\n free(send);\n free(recv);\n\n return ret ? -1 : 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 /* validate parameters */\n if (argc < 5) {\n fprintf(stderr, USAGE_STR, argv[0]);\n exit(-1);\n }\n\n /* configure logging thresholds to see more details */\n rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO);\n rpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO);\n\n /* read common parameters */\n char *addr = argv[1];\n char *port = argv[2];\n uint64_t cntr = strtoul_noerror(argv[3]);\n uint64_t rounds = strtoul_noerror(argv[4]);\n uint64_t sleep_usec = 0;\n\n if (argc == 6)\n sleep_usec = strtoul_noerror(argv[5]);\n\n int ret;\n\n /* RPMA resources - general */\n struct rpma_peer *peer = NULL;\n struct rpma_conn *conn = NULL;\n struct rpma_completion cmpl;\n\n /* prepare memory */\n struct rpma_mr_local *recv_mr, *send_mr;\n uint64_t *recv = malloc_aligned(MSG_SIZE);\n if (recv == NULL)\n return -1;\n uint64_t *send = malloc_aligned(MSG_SIZE);\n if (send == NULL) {\n free(recv);\n return -1;\n }\n\n /*\n * lookup an ibv_context via the address and create a new peer using it\n */\n if ((ret = client_peer_via_address(addr, &peer)))\n goto err_mr_free;\n\n /* register the memory */\n if ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)))\n goto err_peer_delete;\n if ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr))) {\n (void) rpma_mr_dereg(&recv_mr);\n goto err_peer_delete;\n }\n\n /* establish a new connection to a server listening at addr:port */\n if ((ret = client_connect(peer, addr, port, NULL, &conn)))\n goto err_mr_dereg;\n\n while (--rounds) {\n /* prepare a receive for the server's response */\n if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n break;\n\n /* send a message to the server */\n (void) printf("Value sent: %" PRIu64 "\n", cntr);\n *send = cntr;\n if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)))\n break;\n\n int send_cmpl = 0;\n int recv_cmpl = 0;\n\n do {\n /* prepare completions, get one and validate it */\n if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }\n\n if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }\n } while (!send_cmpl || !recv_cmpl);\n\n if (ret)\n break;\n\n /* copy the new value of the counter and print it out */\n cntr = *recv;\n printf("Value received: %" PRIu64 "\n", cntr);\n\n /* sleep if required */\n if (sleep_usec > 0)\n (void) usleep(sleep_usec);\n }\n\n /* send the I_M_DONE message */\n *send = I_M_DONE;\n ret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n NULL);\n\n ret |= common_disconnect_and_wait_for_conn_close(&conn);\n\nerr_mr_dereg:\n /* deregister the memory regions */\n ret |= rpma_mr_dereg(&send_mr);\n ret |= rpma_mr_dereg(&recv_mr);\n\nerr_peer_delete:\n /* delete the peer object */\n ret |= rpma_peer_delete(&peer);\n\nerr_mr_free:\n /* free the memory */\n free(send);\n free(recv);\n\n return ret ? -1 : 0;\n}" ({) "{" (comment) "/* validate parameters */" (if_statement) "if (argc < 5) {\n fprintf(stderr, USAGE_STR, argv[0]);\n exit(-1);\n }" (if) "if" (parenthesized_expression) "(argc < 5)" (() "(" (binary_expression) "argc < 5" (identifier) "argc" (<) "<" (number_literal) "5" ()) ")" (compound_statement) "{\n fprintf(stderr, USAGE_STR, argv[0]);\n exit(-1);\n }" ({) "{" (expression_statement) "fprintf(stderr, USAGE_STR, argv[0]);" (call_expression) "fprintf(stderr, USAGE_STR, argv[0])" (identifier) "fprintf" (argument_list) "(stderr, USAGE_STR, argv[0])" (() "(" (identifier) "stderr" (,) "," (identifier) "USAGE_STR" (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "exit(-1);" (call_expression) "exit(-1)" (identifier) "exit" (argument_list) "(-1)" (() "(" (number_literal) "-1" ()) ")" (;) ";" (}) "}" (comment) "/* configure logging thresholds to see more details */" (expression_statement) "rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO);" (call_expression) "rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO)" (identifier) "rpma_log_set_threshold" (argument_list) "(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO)" (() "(" (identifier) "RPMA_LOG_THRESHOLD" (,) "," (identifier) "RPMA_LOG_LEVEL_INFO" ()) ")" (;) ";" (expression_statement) "rpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO);" (call_expression) "rpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO)" (identifier) "rpma_log_set_threshold" (argument_list) "(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO)" (() "(" (identifier) "RPMA_LOG_THRESHOLD_AUX" (,) "," (identifier) "RPMA_LOG_LEVEL_INFO" ()) ")" (;) ";" (comment) "/* read common parameters */" (declaration) "char *addr = argv[1];" (primitive_type) "char" (init_declarator) "*addr = argv[1]" (pointer_declarator) "*addr" (*) "*" (identifier) "addr" (=) "=" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (;) ";" (declaration) "char *port = argv[2];" (primitive_type) "char" (init_declarator) "*port = argv[2]" (pointer_declarator) "*port" (*) "*" (identifier) "port" (=) "=" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" (;) ";" (declaration) "uint64_t cntr = strtoul_noerror(argv[3]);" (primitive_type) "uint64_t" (init_declarator) "cntr = strtoul_noerror(argv[3])" (identifier) "cntr" (=) "=" (call_expression) "strtoul_noerror(argv[3])" (identifier) "strtoul_noerror" (argument_list) "(argv[3])" (() "(" (subscript_expression) "argv[3]" (identifier) "argv" ([) "[" (number_literal) "3" (]) "]" ()) ")" (;) ";" (declaration) "uint64_t rounds = strtoul_noerror(argv[4]);" (primitive_type) "uint64_t" (init_declarator) "rounds = strtoul_noerror(argv[4])" (identifier) "rounds" (=) "=" (call_expression) "strtoul_noerror(argv[4])" (identifier) "strtoul_noerror" (argument_list) "(argv[4])" (() "(" (subscript_expression) "argv[4]" (identifier) "argv" ([) "[" (number_literal) "4" (]) "]" ()) ")" (;) ";" (declaration) "uint64_t sleep_usec = 0;" (primitive_type) "uint64_t" (init_declarator) "sleep_usec = 0" (identifier) "sleep_usec" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (argc == 6)\n sleep_usec = strtoul_noerror(argv[5]);" (if) "if" (parenthesized_expression) "(argc == 6)" (() "(" (binary_expression) "argc == 6" (identifier) "argc" (==) "==" (number_literal) "6" ()) ")" (expression_statement) "sleep_usec = strtoul_noerror(argv[5]);" (assignment_expression) "sleep_usec = strtoul_noerror(argv[5])" (identifier) "sleep_usec" (=) "=" (call_expression) "strtoul_noerror(argv[5])" (identifier) "strtoul_noerror" (argument_list) "(argv[5])" (() "(" (subscript_expression) "argv[5]" (identifier) "argv" ([) "[" (number_literal) "5" (]) "]" ()) ")" (;) ";" (declaration) "int ret;" (primitive_type) "int" (identifier) "ret" (;) ";" (comment) "/* RPMA resources - general */" (declaration) "struct rpma_peer *peer = NULL;" (struct_specifier) "struct rpma_peer" (struct) "struct" (type_identifier) "rpma_peer" (init_declarator) "*peer = NULL" (pointer_declarator) "*peer" (*) "*" (identifier) "peer" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "struct rpma_conn *conn = NULL;" (struct_specifier) "struct rpma_conn" (struct) "struct" (type_identifier) "rpma_conn" (init_declarator) "*conn = NULL" (pointer_declarator) "*conn" (*) "*" (identifier) "conn" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "struct rpma_completion cmpl;" (struct_specifier) "struct rpma_completion" (struct) "struct" (type_identifier) "rpma_completion" (identifier) "cmpl" (;) ";" (comment) "/* prepare memory */" (declaration) "struct rpma_mr_local *recv_mr, *send_mr;" (struct_specifier) "struct rpma_mr_local" (struct) "struct" (type_identifier) "rpma_mr_local" (pointer_declarator) "*recv_mr" (*) "*" (identifier) "recv_mr" (,) "," (pointer_declarator) "*send_mr" (*) "*" (identifier) "send_mr" (;) ";" (declaration) "uint64_t *recv = malloc_aligned(MSG_SIZE);" (primitive_type) "uint64_t" (init_declarator) "*recv = malloc_aligned(MSG_SIZE)" (pointer_declarator) "*recv" (*) "*" (identifier) "recv" (=) "=" (call_expression) "malloc_aligned(MSG_SIZE)" (identifier) "malloc_aligned" (argument_list) "(MSG_SIZE)" (() "(" (identifier) "MSG_SIZE" ()) ")" (;) ";" (if_statement) "if (recv == NULL)\n return -1;" (if) "if" (parenthesized_expression) "(recv == NULL)" (() "(" (binary_expression) "recv == NULL" (identifier) "recv" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (declaration) "uint64_t *send = malloc_aligned(MSG_SIZE);" (primitive_type) "uint64_t" (init_declarator) "*send = malloc_aligned(MSG_SIZE)" (pointer_declarator) "*send" (*) "*" (identifier) "send" (=) "=" (call_expression) "malloc_aligned(MSG_SIZE)" (identifier) "malloc_aligned" (argument_list) "(MSG_SIZE)" (() "(" (identifier) "MSG_SIZE" ()) ")" (;) ";" (if_statement) "if (send == NULL) {\n free(recv);\n return -1;\n }" (if) "if" (parenthesized_expression) "(send == NULL)" (() "(" (binary_expression) "send == NULL" (identifier) "send" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n free(recv);\n return -1;\n }" ({) "{" (expression_statement) "free(recv);" (call_expression) "free(recv)" (identifier) "free" (argument_list) "(recv)" (() "(" (identifier) "recv" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (comment) "/*\n * lookup an ibv_context via the address and create a new peer using it\n */" (if_statement) "if ((ret = client_peer_via_address(addr, &peer)))\n goto err_mr_free;" (if) "if" (parenthesized_expression) "((ret = client_peer_via_address(addr, &peer)))" (() "(" (parenthesized_expression) "(ret = client_peer_via_address(addr, &peer))" (() "(" (assignment_expression) "ret = client_peer_via_address(addr, &peer)" (identifier) "ret" (=) "=" (call_expression) "client_peer_via_address(addr, &peer)" (identifier) "client_peer_via_address" (argument_list) "(addr, &peer)" (() "(" (identifier) "addr" (,) "," (pointer_expression) "&peer" (&) "&" (identifier) "peer" ()) ")" ()) ")" ()) ")" (goto_statement) "goto err_mr_free;" (goto) "goto" (statement_identifier) "err_mr_free" (;) ";" (comment) "/* register the memory */" (if_statement) "if ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)))\n goto err_peer_delete;" (if) "if" (parenthesized_expression) "((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)))" (() "(" (parenthesized_expression) "(ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr))" (() "(" (assignment_expression) "ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)" (identifier) "ret" (=) "=" (call_expression) "rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)" (identifier) "rpma_mr_reg" (argument_list) "(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n &recv_mr)" (() "(" (identifier) "peer" (,) "," (identifier) "recv" (,) "," (identifier) "MSG_SIZE" (,) "," (identifier) "RPMA_MR_USAGE_RECV" (,) "," (pointer_expression) "&recv_mr" (&) "&" (identifier) "recv_mr" ()) ")" ()) ")" ()) ")" (goto_statement) "goto err_peer_delete;" (goto) "goto" (statement_identifier) "err_peer_delete" (;) ";" (if_statement) "if ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr))) {\n (void) rpma_mr_dereg(&recv_mr);\n goto err_peer_delete;\n }" (if) "if" (parenthesized_expression) "((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr)))" (() "(" (parenthesized_expression) "(ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr))" (() "(" (assignment_expression) "ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr)" (identifier) "ret" (=) "=" (call_expression) "rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr)" (identifier) "rpma_mr_reg" (argument_list) "(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n &send_mr)" (() "(" (identifier) "peer" (,) "," (identifier) "send" (,) "," (identifier) "MSG_SIZE" (,) "," (identifier) "RPMA_MR_USAGE_SEND" (,) "," (pointer_expression) "&send_mr" (&) "&" (identifier) "send_mr" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n (void) rpma_mr_dereg(&recv_mr);\n goto err_peer_delete;\n }" ({) "{" (expression_statement) "(void) rpma_mr_dereg(&recv_mr);" (cast_expression) "(void) rpma_mr_dereg(&recv_mr)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "rpma_mr_dereg(&recv_mr)" (identifier) "rpma_mr_dereg" (argument_list) "(&recv_mr)" (() "(" (pointer_expression) "&recv_mr" (&) "&" (identifier) "recv_mr" ()) ")" (;) ";" (goto_statement) "goto err_peer_delete;" (goto) "goto" (statement_identifier) "err_peer_delete" (;) ";" (}) "}" (comment) "/* establish a new connection to a server listening at addr:port */" (if_statement) "if ((ret = client_connect(peer, addr, port, NULL, &conn)))\n goto err_mr_dereg;" (if) "if" (parenthesized_expression) "((ret = client_connect(peer, addr, port, NULL, &conn)))" (() "(" (parenthesized_expression) "(ret = client_connect(peer, addr, port, NULL, &conn))" (() "(" (assignment_expression) "ret = client_connect(peer, addr, port, NULL, &conn)" (identifier) "ret" (=) "=" (call_expression) "client_connect(peer, addr, port, NULL, &conn)" (identifier) "client_connect" (argument_list) "(peer, addr, port, NULL, &conn)" (() "(" (identifier) "peer" (,) "," (identifier) "addr" (,) "," (identifier) "port" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&conn" (&) "&" (identifier) "conn" ()) ")" ()) ")" ()) ")" (goto_statement) "goto err_mr_dereg;" (goto) "goto" (statement_identifier) "err_mr_dereg" (;) ";" (while_statement) "while (--rounds) {\n /* prepare a receive for the server's response */\n if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n break;\n\n /* send a message to the server */\n (void) printf("Value sent: %" PRIu64 "\n", cntr);\n *send = cntr;\n if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)))\n break;\n\n int send_cmpl = 0;\n int recv_cmpl = 0;\n\n do {\n /* prepare completions, get one and validate it */\n if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }\n\n if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }\n } while (!send_cmpl || !recv_cmpl);\n\n if (ret)\n break;\n\n /* copy the new value of the counter and print it out */\n cntr = *recv;\n printf("Value received: %" PRIu64 "\n", cntr);\n\n /* sleep if required */\n if (sleep_usec > 0)\n (void) usleep(sleep_usec);\n }" (while) "while" (parenthesized_expression) "(--rounds)" (() "(" (update_expression) "--rounds" (--) "--" (identifier) "rounds" ()) ")" (compound_statement) "{\n /* prepare a receive for the server's response */\n if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n break;\n\n /* send a message to the server */\n (void) printf("Value sent: %" PRIu64 "\n", cntr);\n *send = cntr;\n if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)))\n break;\n\n int send_cmpl = 0;\n int recv_cmpl = 0;\n\n do {\n /* prepare completions, get one and validate it */\n if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }\n\n if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }\n } while (!send_cmpl || !recv_cmpl);\n\n if (ret)\n break;\n\n /* copy the new value of the counter and print it out */\n cntr = *recv;\n printf("Value received: %" PRIu64 "\n", cntr);\n\n /* sleep if required */\n if (sleep_usec > 0)\n (void) usleep(sleep_usec);\n }" ({) "{" (comment) "/* prepare a receive for the server's response */" (if_statement) "if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n break;" (if) "if" (parenthesized_expression) "((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))" (() "(" (parenthesized_expression) "(ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv))" (() "(" (assignment_expression) "ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)" (identifier) "ret" (=) "=" (call_expression) "rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)" (identifier) "rpma_recv" (argument_list) "(conn, recv_mr, 0, MSG_SIZE, recv)" (() "(" (identifier) "conn" (,) "," (identifier) "recv_mr" (,) "," (number_literal) "0" (,) "," (identifier) "MSG_SIZE" (,) "," (identifier) "recv" ()) ")" ()) ")" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (comment) "/* send a message to the server */" (expression_statement) "(void) printf("Value sent: %" PRIu64 "\n", cntr);" (cast_expression) "(void) printf("Value sent: %" PRIu64 "\n", cntr)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "printf("Value sent: %" PRIu64 "\n", cntr)" (identifier) "printf" (argument_list) "("Value sent: %" PRIu64 "\n", cntr)" (() "(" (concatenated_string) ""Value sent: %" PRIu64 "\n"" (string_literal) ""Value sent: %"" (") """ (string_content) "Value sent: %" (") """ (identifier) "PRIu64" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ (,) "," (identifier) "cntr" ()) ")" (;) ";" (expression_statement) "*send = cntr;" (assignment_expression) "*send = cntr" (pointer_expression) "*send" (*) "*" (identifier) "send" (=) "=" (identifier) "cntr" (;) ";" (if_statement) "if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)))\n break;" (if) "if" (parenthesized_expression) "((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)))" (() "(" (parenthesized_expression) "(ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL))" (() "(" (assignment_expression) "ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)" (identifier) "ret" (=) "=" (call_expression) "rpma_send(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)" (identifier) "rpma_send" (argument_list) "(conn, send_mr, 0, MSG_SIZE,\n /*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */\n RPMA_F_COMPLETION_ALWAYS, NULL)" (() "(" (identifier) "conn" (,) "," (identifier) "send_mr" (,) "," (number_literal) "0" (,) "," (identifier) "MSG_SIZE" (,) "," (comment) "/*\n * XXX when using RPMA_F_COMPLETION_ON_ERROR\n * after few rounds rpma_send() returns ENOMEM.\n */" (identifier) "RPMA_F_COMPLETION_ALWAYS" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" ()) ")" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (declaration) "int send_cmpl = 0;" (primitive_type) "int" (init_declarator) "send_cmpl = 0" (identifier) "send_cmpl" (=) "=" (number_literal) "0" (;) ";" (declaration) "int recv_cmpl = 0;" (primitive_type) "int" (init_declarator) "recv_cmpl = 0" (identifier) "recv_cmpl" (=) "=" (number_literal) "0" (;) ";" (do_statement) "do {\n /* prepare completions, get one and validate it */\n if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }\n\n if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }\n } while (!send_cmpl || !recv_cmpl);" (do) "do" (compound_statement) "{\n /* prepare completions, get one and validate it */\n if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }\n\n if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }\n }" ({) "{" (comment) "/* prepare completions, get one and validate it */" (if_statement) "if ((ret = rpma_conn_completion_wait(conn))) {\n break;\n } else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }" (if) "if" (parenthesized_expression) "((ret = rpma_conn_completion_wait(conn)))" (() "(" (parenthesized_expression) "(ret = rpma_conn_completion_wait(conn))" (() "(" (assignment_expression) "ret = rpma_conn_completion_wait(conn)" (identifier) "ret" (=) "=" (call_expression) "rpma_conn_completion_wait(conn)" (identifier) "rpma_conn_completion_wait" (argument_list) "(conn)" (() "(" (identifier) "conn" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n break;\n }" ({) "{" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (else_clause) "else if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }" (else) "else" (if_statement) "if ((ret = rpma_conn_completion_get(conn,\n &cmpl))) {\n break;\n } else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }" (if) "if" (parenthesized_expression) "((ret = rpma_conn_completion_get(conn,\n &cmpl)))" (() "(" (parenthesized_expression) "(ret = rpma_conn_completion_get(conn,\n &cmpl))" (() "(" (assignment_expression) "ret = rpma_conn_completion_get(conn,\n &cmpl)" (identifier) "ret" (=) "=" (call_expression) "rpma_conn_completion_get(conn,\n &cmpl)" (identifier) "rpma_conn_completion_get" (argument_list) "(conn,\n &cmpl)" (() "(" (identifier) "conn" (,) "," (pointer_expression) "&cmpl" (&) "&" (identifier) "cmpl" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n break;\n }" ({) "{" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (else_clause) "else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }" (else) "else" (if_statement) "if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }" (if) "if" (parenthesized_expression) "(cmpl.op_status != IBV_WC_SUCCESS)" (() "(" (binary_expression) "cmpl.op_status != IBV_WC_SUCCESS" (field_expression) "cmpl.op_status" (identifier) "cmpl" (.) "." (field_identifier) "op_status" (!=) "!=" (identifier) "IBV_WC_SUCCESS" ()) ")" (compound_statement) "{\n\n (void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");\n ret = -1;\n break;\n }" ({) "{" (expression_statement) "(void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n");" (cast_expression) "(void) fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n")" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "fprintf(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n")" (identifier) "fprintf" (argument_list) "(stderr,\n "Shutting down the client due to the unsuccessful completion of an operation.\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""Shutting down the client due to the unsuccessful completion of an operation.\n"" (") """ (string_content) "Shutting down the client due to the unsuccessful completion of an operation." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "ret = -1;" (assignment_expression) "ret = -1" (identifier) "ret" (=) "=" (number_literal) "-1" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (if_statement) "if (cmpl.op == RPMA_OP_SEND) {\n send_cmpl = 1;\n } else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }" (if) "if" (parenthesized_expression) "(cmpl.op == RPMA_OP_SEND)" (() "(" (binary_expression) "cmpl.op == RPMA_OP_SEND" (field_expression) "cmpl.op" (identifier) "cmpl" (.) "." (field_identifier) "op" (==) "==" (identifier) "RPMA_OP_SEND" ()) ")" (compound_statement) "{\n send_cmpl = 1;\n }" ({) "{" (expression_statement) "send_cmpl = 1;" (assignment_expression) "send_cmpl = 1" (identifier) "send_cmpl" (=) "=" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }" (else) "else" (if_statement) "if (cmpl.op == RPMA_OP_RECV) {\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }" (if) "if" (parenthesized_expression) "(cmpl.op == RPMA_OP_RECV)" (() "(" (binary_expression) "cmpl.op == RPMA_OP_RECV" (field_expression) "cmpl.op" (identifier) "cmpl" (.) "." (field_identifier) "op" (==) "==" (identifier) "RPMA_OP_RECV" ()) ")" (compound_statement) "{\n if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }\n\n recv_cmpl = 1;\n }" ({) "{" (if_statement) "if (cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE) {\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }" (if) "if" (parenthesized_expression) "(cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE)" (() "(" (binary_expression) "cmpl.op_context != recv ||\n cmpl.byte_len != MSG_SIZE" (binary_expression) "cmpl.op_context != recv" (field_expression) "cmpl.op_context" (identifier) "cmpl" (.) "." (field_identifier) "op_context" (!=) "!=" (identifier) "recv" (||) "||" (binary_expression) "cmpl.byte_len != MSG_SIZE" (field_expression) "cmpl.byte_len" (identifier) "cmpl" (.) "." (field_identifier) "byte_len" (!=) "!=" (identifier) "MSG_SIZE" ()) ")" (compound_statement) "{\n (void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);\n ret = -1;\n break;\n }" ({) "{" (expression_statement) "(void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE);" (cast_expression) "(void) fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "fprintf(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE)" (identifier) "fprintf" (argument_list) "(stderr,\n "received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n",\n cmpl.op_context, (void *)recv,\n cmpl.byte_len, MSG_SIZE)" (() "(" (identifier) "stderr" (,) "," (concatenated_string) ""received completion is not as expected (%p != %p [cmpl.op_context] || %"\n PRIu32\n " != %ld [cmpl.byte_len] )\n"" (string_literal) ""received completion is not as expected (%p != %p [cmpl.op_context] || %"" (") """ (string_content) "received completion is not as expected (%p != %p [cmpl.op_context] || %" (") """ (identifier) "PRIu32" (string_literal) "" != %ld [cmpl.byte_len] )\n"" (") """ (string_content) " != %ld [cmpl.byte_len] )" (escape_sequence) "\n" (") """ (,) "," (field_expression) "cmpl.op_context" (identifier) "cmpl" (.) "." (field_identifier) "op_context" (,) "," (cast_expression) "(void *)recv" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "recv" (,) "," (field_expression) "cmpl.byte_len" (identifier) "cmpl" (.) "." (field_identifier) "byte_len" (,) "," (identifier) "MSG_SIZE" ()) ")" (;) ";" (expression_statement) "ret = -1;" (assignment_expression) "ret = -1" (identifier) "ret" (=) "=" (number_literal) "-1" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "recv_cmpl = 1;" (assignment_expression) "recv_cmpl = 1" (identifier) "recv_cmpl" (=) "=" (number_literal) "1" (;) ";" (}) "}" (}) "}" (while) "while" (parenthesized_expression) "(!send_cmpl || !recv_cmpl)" (() "(" (binary_expression) "!send_cmpl || !recv_cmpl" (unary_expression) "!send_cmpl" (!) "!" (identifier) "send_cmpl" (||) "||" (unary_expression) "!recv_cmpl" (!) "!" (identifier) "recv_cmpl" ()) ")" (;) ";" (if_statement) "if (ret)\n break;" (if) "if" (parenthesized_expression) "(ret)" (() "(" (identifier) "ret" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (comment) "/* copy the new value of the counter and print it out */" (expression_statement) "cntr = *recv;" (assignment_expression) "cntr = *recv" (identifier) "cntr" (=) "=" (pointer_expression) "*recv" (*) "*" (identifier) "recv" (;) ";" (expression_statement) "printf("Value received: %" PRIu64 "\n", cntr);" (call_expression) "printf("Value received: %" PRIu64 "\n", cntr)" (identifier) "printf" (argument_list) "("Value received: %" PRIu64 "\n", cntr)" (() "(" (concatenated_string) ""Value received: %" PRIu64 "\n"" (string_literal) ""Value received: %"" (") """ (string_content) "Value received: %" (") """ (identifier) "PRIu64" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ (,) "," (identifier) "cntr" ()) ")" (;) ";" (comment) "/* sleep if required */" (if_statement) "if (sleep_usec > 0)\n (void) usleep(sleep_usec);" (if) "if" (parenthesized_expression) "(sleep_usec > 0)" (() "(" (binary_expression) "sleep_usec > 0" (identifier) "sleep_usec" (>) ">" (number_literal) "0" ()) ")" (expression_statement) "(void) usleep(sleep_usec);" (cast_expression) "(void) usleep(sleep_usec)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "usleep(sleep_usec)" (identifier) "usleep" (argument_list) "(sleep_usec)" (() "(" (identifier) "sleep_usec" ()) ")" (;) ";" (}) "}" (comment) "/* send the I_M_DONE message */" (expression_statement) "*send = I_M_DONE;" (assignment_expression) "*send = I_M_DONE" (pointer_expression) "*send" (*) "*" (identifier) "send" (=) "=" (identifier) "I_M_DONE" (;) ";" (expression_statement) "ret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n NULL);" (assignment_expression) "ret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n NULL)" (identifier) "ret" (|=) "|=" (call_expression) "rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n NULL)" (identifier) "rpma_send" (argument_list) "(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n NULL)" (() "(" (identifier) "conn" (,) "," (identifier) "send_mr" (,) "," (number_literal) "0" (,) "," (identifier) "MSG_SIZE" (,) "," (identifier) "RPMA_F_COMPLETION_ON_ERROR" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "ret |= common_disconnect_and_wait_for_conn_close(&conn);" (assignment_expression) "ret |= common_disconnect_and_wait_for_conn_close(&conn)" (identifier) "ret" (|=) "|=" (call_expression) "common_disconnect_and_wait_for_conn_close(&conn)" (identifier) "common_disconnect_and_wait_for_conn_close" (argument_list) "(&conn)" (() "(" (pointer_expression) "&conn" (&) "&" (identifier) "conn" ()) ")" (;) ";" (labeled_statement) "err_mr_dereg:\n /* deregister the memory regions */\n ret |= rpma_mr_dereg(&send_mr);" (statement_identifier) "err_mr_dereg" (:) ":" (comment) "/* deregister the memory regions */" (expression_statement) "ret |= rpma_mr_dereg(&send_mr);" (assignment_expression) "ret |= rpma_mr_dereg(&send_mr)" (identifier) "ret" (|=) "|=" (call_expression) "rpma_mr_dereg(&send_mr)" (identifier) "rpma_mr_dereg" (argument_list) "(&send_mr)" (() "(" (pointer_expression) "&send_mr" (&) "&" (identifier) "send_mr" ()) ")" (;) ";" (expression_statement) "ret |= rpma_mr_dereg(&recv_mr);" (assignment_expression) "ret |= rpma_mr_dereg(&recv_mr)" (identifier) "ret" (|=) "|=" (call_expression) "rpma_mr_dereg(&recv_mr)" (identifier) "rpma_mr_dereg" (argument_list) "(&recv_mr)" (() "(" (pointer_expression) "&recv_mr" (&) "&" (identifier) "recv_mr" ()) ")" (;) ";" (labeled_statement) "err_peer_delete:\n /* delete the peer object */\n ret |= rpma_peer_delete(&peer);" (statement_identifier) "err_peer_delete" (:) ":" (comment) "/* delete the peer object */" (expression_statement) "ret |= rpma_peer_delete(&peer);" (assignment_expression) "ret |= rpma_peer_delete(&peer)" (identifier) "ret" (|=) "|=" (call_expression) "rpma_peer_delete(&peer)" (identifier) "rpma_peer_delete" (argument_list) "(&peer)" (() "(" (pointer_expression) "&peer" (&) "&" (identifier) "peer" ()) ")" (;) ";" (labeled_statement) "err_mr_free:\n /* free the memory */\n free(send);" (statement_identifier) "err_mr_free" (:) ":" (comment) "/* free the memory */" (expression_statement) "free(send);" (call_expression) "free(send)" (identifier) "free" (argument_list) "(send)" (() "(" (identifier) "send" ()) ")" (;) ";" (expression_statement) "free(recv);" (call_expression) "free(recv)" (identifier) "free" (argument_list) "(recv)" (() "(" (identifier) "recv" ()) ")" (;) ";" (return_statement) "return ret ? -1 : 0;" (return) "return" (conditional_expression) "ret ? -1 : 0" (identifier) "ret" (?) "?" (number_literal) "-1" (:) ":" (number_literal) "0" (;) ";" (}) "}"
1,091
0
{"language": "c", "success": true, "metadata": {"lines": 152, "avg_line_length": 27.61, "nodes": 654, "errors": 0, "source_hash": "58fcb170264b7ca9b8fca0e09530ee86bdaed4800164ce489ba78ff654e0a745", "categorized_nodes": 445}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <librpma.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<librpma.h>", "parent": 0, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include <limits.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<limits.h>", "parent": 3, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <inttypes.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<inttypes.h>", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 9, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<stdio.h>", "parent": 12, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <sys/types.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": "system_lib_string", "text": "<sys/types.h>", "parent": 15, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<unistd.h>", "parent": 18, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include \"common-conn.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"common-conn.h\"", "parent": 21, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 24}}, {"id": 24, "type": "preproc_include", "text": "#include \"messages-ping-pong-common.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"messages-ping-pong-common.h\"", "parent": 24, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 38}}, {"id": 27, "type": "preproc_def", "text": "#define USAGE_STR \"usage: %s <server_address> <port> <seed> <rounds> \" \\\n\t\t\"[<sleep>]\\n\"\n", "parent": null, "children": [28, 29, 30], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 29, "type": "identifier", "text": "USAGE_STR", "parent": 27, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 17}}, {"id": 30, "type": "preproc_arg", "text": "\"usage: %s <server_address> <port> <seed> <rounds> \" \\\n\t\t\"[<sleep>]\\n\"", "parent": 27, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 21, "column": 15}}, {"id": 31, "type": "function_definition", "text": "static uint64_t\nstrtoul_noerror(const char *in)\n{\n\tuint64_t out = strtoul(in, NULL, 10);\n\tif (out == ULONG_MAX && errno == ERANGE) {\n\t\t(void) fprintf(stderr, \"strtoul(%s) overflowed\\n\", in);\n\t\texit(-1);\n\t}\n\treturn out;\n}", "parent": null, "children": [32, 33], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 32, "type": "primitive_type", "text": "uint64_t", "parent": 31, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 15}}, {"id": 33, "type": "function_declarator", "text": "strtoul_noerror(const char *in)", "parent": 31, "children": [34, 35], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 31}}, {"id": 34, "type": "identifier", "text": "strtoul_noerror", "parent": 33, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 15}}, {"id": 35, "type": "parameter_list", "text": "(const char *in)", "parent": 33, "children": [36], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 31}}, {"id": 36, "type": "parameter_declaration", "text": "const char *in", "parent": 35, "children": [37, 38], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 30}}, {"id": 37, "type": "primitive_type", "text": "char", "parent": 36, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 26}}, {"id": 38, "type": "pointer_declarator", "text": "*in", "parent": 36, "children": [39, 40], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 30}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}, {"id": 40, "type": "identifier", "text": "in", "parent": 38, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 30}}, {"id": 41, "type": "declaration", "text": "uint64_t out = strtoul(in, NULL, 10);", "parent": 31, "children": [42, 43], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 38}}, {"id": 42, "type": "primitive_type", "text": "uint64_t", "parent": 41, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 9}}, {"id": 43, "type": "init_declarator", "text": "out = strtoul(in, NULL, 10)", "parent": 41, "children": [44, 45, 46], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 37}}, {"id": 44, "type": "identifier", "text": "out", "parent": 43, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 13}}, {"id": 45, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 15}}, {"id": 46, "type": "call_expression", "text": "strtoul(in, NULL, 10)", "parent": 43, "children": [47, 48], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 37}}, {"id": 47, "type": "identifier", "text": "strtoul", "parent": 46, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 23}}, {"id": 48, "type": "argument_list", "text": "(in, NULL, 10)", "parent": 46, "children": [49, 50, 52], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 37}}, {"id": 49, "type": "identifier", "text": "in", "parent": 48, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 26}}, {"id": 50, "type": "null", "text": "NULL", "parent": 48, "children": [51], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 32}}, {"id": 51, "type": "NULL", "text": "NULL", "parent": 50, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 32}}, {"id": 52, "type": "number_literal", "text": "10", "parent": 48, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 36}}, {"id": 53, "type": "if_statement", "text": "if (out == ULONG_MAX && errno == ERANGE) {\n\t\t(void) fprintf(stderr, \"strtoul(%s) overflowed\\n\", in);\n\t\texit(-1);\n\t}", "parent": 31, "children": [54], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 54, "type": "parenthesized_expression", "text": "(out == ULONG_MAX && errno == ERANGE)", "parent": 53, "children": [55], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 41}}, {"id": 55, "type": "binary_expression", "text": "out == ULONG_MAX && errno == ERANGE", "parent": 54, "children": [56, 60, 61], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 40}}, {"id": 56, "type": "binary_expression", "text": "out == ULONG_MAX", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 21}}, {"id": 57, "type": "identifier", "text": "out", "parent": 56, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 8}}, {"id": 58, "type": "==", "text": "==", "parent": 56, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 11}}, {"id": 59, "type": "identifier", "text": "ULONG_MAX", "parent": 56, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 21}}, {"id": 60, "type": "&&", "text": "&&", "parent": 55, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 24}}, {"id": 61, "type": "binary_expression", "text": "errno == ERANGE", "parent": 55, "children": [62, 63, 64], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 40}}, {"id": 62, "type": "identifier", "text": "errno", "parent": 61, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 30}}, {"id": 63, "type": "==", "text": "==", "parent": 61, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 33}}, {"id": 64, "type": "identifier", "text": "ERANGE", "parent": 61, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 40}}, {"id": 65, "type": "cast_expression", "text": "(void) fprintf(stderr, \"strtoul(%s) overflowed\\n\", in)", "parent": 53, "children": [66, 68], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 56}}, {"id": 66, "type": "type_descriptor", "text": "void", "parent": 65, "children": [67], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 67, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 68, "type": "call_expression", "text": "fprintf(stderr, \"strtoul(%s) overflowed\\n\", in)", "parent": 65, "children": [69, 70], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 56}}, {"id": 69, "type": "identifier", "text": "fprintf", "parent": 68, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 16}}, {"id": 70, "type": "argument_list", "text": "(stderr, \"strtoul(%s) overflowed\\n\", in)", "parent": 68, "children": [71, 72, 74], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 56}}, {"id": 71, "type": "identifier", "text": "stderr", "parent": 70, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 23}}, {"id": 72, "type": "string_literal", "text": "\"strtoul(%s) overflowed\\n\"", "parent": 70, "children": [73], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 51}}, {"id": 73, "type": "escape_sequence", "text": "\\n", "parent": 72, "children": [], "start_point": {"row": 28, "column": 48}, "end_point": {"row": 28, "column": 50}}, {"id": 74, "type": "identifier", "text": "in", "parent": 70, "children": [], "start_point": {"row": 28, "column": 53}, "end_point": {"row": 28, "column": 55}}, {"id": 75, "type": "call_expression", "text": "exit(-1)", "parent": 53, "children": [76, 77], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 10}}, {"id": 76, "type": "identifier", "text": "exit", "parent": 75, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 77, "type": "argument_list", "text": "(-1)", "parent": 75, "children": [78], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 10}}, {"id": 78, "type": "number_literal", "text": "-1", "parent": 77, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 9}}, {"id": 79, "type": "return_statement", "text": "return out;", "parent": 31, "children": [80], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 12}}, {"id": 80, "type": "identifier", "text": "out", "parent": 79, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 11}}, {"id": 81, "type": "function_definition", "text": "int\nmain(int argc, char *argv[])\n{\n\t/* validate parameters */\n\tif (argc < 5) {\n\t\tfprintf(stderr, USAGE_STR, argv[0]);\n\t\texit(-1);\n\t}\n\n\t/* configure logging thresholds to see more details */\n\trpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO);\n\trpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO);\n\n\t/* read common parameters */\n\tchar *addr = argv[1];\n\tchar *port = argv[2];\n\tuint64_t cntr = strtoul_noerror(argv[3]);\n\tuint64_t rounds = strtoul_noerror(argv[4]);\n\tuint64_t sleep_usec = 0;\n\n\tif (argc == 6)\n\t\tsleep_usec = strtoul_noerror(argv[5]);\n\n\tint ret;\n\n\t/* RPMA resources - general */\n\tstruct rpma_peer *peer = NULL;\n\tstruct rpma_conn *conn = NULL;\n\tstruct rpma_completion cmpl;\n\n\t/* prepare memory */\n\tstruct rpma_mr_local *recv_mr, *send_mr;\n\tuint64_t *recv = malloc_aligned(MSG_SIZE);\n\tif (recv == NULL)\n\t\treturn -1;\n\tuint64_t *send = malloc_aligned(MSG_SIZE);\n\tif (send == NULL) {\n\t\tfree(recv);\n\t\treturn -1;\n\t}\n\n\t/*\n\t * lookup an ibv_context via the address and create a new peer using it\n\t */\n\tif ((ret = client_peer_via_address(addr, &peer)))\n\t\tgoto err_mr_free;\n\n\t/* register the memory */\n\tif ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr)))\n\t\tgoto err_peer_delete;\n\tif ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr))) {\n\t\t(void) rpma_mr_dereg(&recv_mr);\n\t\tgoto err_peer_delete;\n\t}\n\n\t/* establish a new connection to a server listening at addr:port */\n\tif ((ret = client_connect(peer, addr, port, NULL, &conn)))\n\t\tgoto err_mr_dereg;\n\n\twhile (--rounds) {\n\t\t/* prepare a receive for the server's response */\n\t\tif ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n\t\t\tbreak;\n\n\t\t/* send a message to the server */\n\t\t(void) printf(\"Value sent: %\" PRIu64 \"\\n\", cntr);\n\t\t*send = cntr;\n\t\tif ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)))\n\t\t\tbreak;\n\n\t\tint send_cmpl = 0;\n\t\tint recv_cmpl = 0;\n\n\t\tdo {\n\t\t\t/* prepare completions, get one and validate it */\n\t\t\tif ((ret = rpma_conn_completion_wait(conn))) {\n\t\t\t\tbreak;\n\t\t\t} else if ((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))) {\n\t\t\t\tbreak;\n\t\t\t} else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (cmpl.op == RPMA_OP_SEND) {\n\t\t\t\tsend_cmpl = 1;\n\t\t\t} else if (cmpl.op == RPMA_OP_RECV) {\n\t\t\t\tif (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\trecv_cmpl = 1;\n\t\t\t}\n\t\t} while (!send_cmpl || !recv_cmpl);\n\n\t\tif (ret)\n\t\t\tbreak;\n\n\t\t/* copy the new value of the counter and print it out */\n\t\tcntr = *recv;\n\t\tprintf(\"Value received: %\" PRIu64 \"\\n\", cntr);\n\n\t\t/* sleep if required */\n\t\tif (sleep_usec > 0)\n\t\t\t(void) usleep(sleep_usec);\n\t}\n\n\t/* send the I_M_DONE message */\n\t*send = I_M_DONE;\n\tret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n\t\t\tNULL);\n\n\tret |= common_disconnect_and_wait_for_conn_close(&conn);\n\nerr_mr_dereg:\n\t/* deregister the memory regions */\n\tret |= rpma_mr_dereg(&send_mr);\n\tret |= rpma_mr_dereg(&recv_mr);\n\nerr_peer_delete:\n\t/* delete the peer object */\n\tret |= rpma_peer_delete(&peer);\n\nerr_mr_free:\n\t/* free the memory */\n\tfree(send);\n\tfree(recv);\n\n\treturn ret ? -1 : 0;\n}", "parent": null, "children": [82, 83], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 182, "column": 1}}, {"id": 82, "type": "primitive_type", "text": "int", "parent": 81, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 3}}, {"id": 83, "type": "function_declarator", "text": "main(int argc, char *argv[])", "parent": 81, "children": [84, 85], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 28}}, {"id": 84, "type": "identifier", "text": "main", "parent": 83, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 4}}, {"id": 85, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 83, "children": [86, 89], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 28}}, {"id": 86, "type": "parameter_declaration", "text": "int argc", "parent": 85, "children": [87, 88], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 13}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 8}}, {"id": 88, "type": "identifier", "text": "argc", "parent": 86, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 13}}, {"id": 89, "type": "parameter_declaration", "text": "char *argv[]", "parent": 85, "children": [90, 91], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 27}}, {"id": 90, "type": "primitive_type", "text": "char", "parent": 89, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 19}}, {"id": 91, "type": "pointer_declarator", "text": "*argv[]", "parent": 89, "children": [92, 93], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 27}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 93, "type": "array_declarator", "text": "argv[]", "parent": 91, "children": [94], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 27}}, {"id": 94, "type": "identifier", "text": "argv", "parent": 93, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 25}}, {"id": 95, "type": "if_statement", "text": "if (argc < 5) {\n\t\tfprintf(stderr, USAGE_STR, argv[0]);\n\t\texit(-1);\n\t}", "parent": 81, "children": [96], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 41, "column": 2}}, {"id": 96, "type": "parenthesized_expression", "text": "(argc < 5)", "parent": 95, "children": [97], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 14}}, {"id": 97, "type": "binary_expression", "text": "argc < 5", "parent": 96, "children": [98, 99, 100], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 13}}, {"id": 98, "type": "identifier", "text": "argc", "parent": 97, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 9}}, {"id": 99, "type": "<", "text": "<", "parent": 97, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 11}}, {"id": 100, "type": "number_literal", "text": "5", "parent": 97, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 101, "type": "call_expression", "text": "fprintf(stderr, USAGE_STR, argv[0])", "parent": 95, "children": [102, 103], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 37}}, {"id": 102, "type": "identifier", "text": "fprintf", "parent": 101, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 9}}, {"id": 103, "type": "argument_list", "text": "(stderr, USAGE_STR, argv[0])", "parent": 101, "children": [104, 105, 106], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 37}}, {"id": 104, "type": "identifier", "text": "stderr", "parent": 103, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 16}}, {"id": 105, "type": "identifier", "text": "USAGE_STR", "parent": 103, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 27}}, {"id": 106, "type": "subscript_expression", "text": "argv[0]", "parent": 103, "children": [107, 108], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 36}}, {"id": 107, "type": "identifier", "text": "argv", "parent": 106, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 33}}, {"id": 108, "type": "number_literal", "text": "0", "parent": 106, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 35}}, {"id": 109, "type": "call_expression", "text": "exit(-1)", "parent": 95, "children": [110, 111], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 10}}, {"id": 110, "type": "identifier", "text": "exit", "parent": 109, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 111, "type": "argument_list", "text": "(-1)", "parent": 109, "children": [112], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 10}}, {"id": 112, "type": "number_literal", "text": "-1", "parent": 111, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 9}}, {"id": 113, "type": "call_expression", "text": "rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO)", "parent": 81, "children": [114, 115], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 64}}, {"id": 114, "type": "identifier", "text": "rpma_log_set_threshold", "parent": 113, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 23}}, {"id": 115, "type": "argument_list", "text": "(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO)", "parent": 113, "children": [116, 117], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 64}}, {"id": 116, "type": "identifier", "text": "RPMA_LOG_THRESHOLD", "parent": 115, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 42}}, {"id": 117, "type": "identifier", "text": "RPMA_LOG_LEVEL_INFO", "parent": 115, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 63}}, {"id": 118, "type": "call_expression", "text": "rpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO)", "parent": 81, "children": [119, 120], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 68}}, {"id": 119, "type": "identifier", "text": "rpma_log_set_threshold", "parent": 118, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 23}}, {"id": 120, "type": "argument_list", "text": "(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO)", "parent": 118, "children": [121, 122], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 68}}, {"id": 121, "type": "identifier", "text": "RPMA_LOG_THRESHOLD_AUX", "parent": 120, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 46}}, {"id": 122, "type": "identifier", "text": "RPMA_LOG_LEVEL_INFO", "parent": 120, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 67}}, {"id": 123, "type": "declaration", "text": "char *addr = argv[1];", "parent": 81, "children": [124, 125], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 22}}, {"id": 124, "type": "primitive_type", "text": "char", "parent": 123, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 5}}, {"id": 125, "type": "init_declarator", "text": "*addr = argv[1]", "parent": 123, "children": [126, 129, 130], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 21}}, {"id": 126, "type": "pointer_declarator", "text": "*addr", "parent": 125, "children": [127, 128], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 11}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 7}}, {"id": 128, "type": "identifier", "text": "addr", "parent": 126, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 11}}, {"id": 129, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 130, "type": "subscript_expression", "text": "argv[1]", "parent": 125, "children": [131, 132], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 21}}, {"id": 131, "type": "identifier", "text": "argv", "parent": 130, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 18}}, {"id": 132, "type": "number_literal", "text": "1", "parent": 130, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 20}}, {"id": 133, "type": "declaration", "text": "char *port = argv[2];", "parent": 81, "children": [134, 135], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 22}}, {"id": 134, "type": "primitive_type", "text": "char", "parent": 133, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 5}}, {"id": 135, "type": "init_declarator", "text": "*port = argv[2]", "parent": 133, "children": [136, 139, 140], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 21}}, {"id": 136, "type": "pointer_declarator", "text": "*port", "parent": 135, "children": [137, 138], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 11}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 7}}, {"id": 138, "type": "identifier", "text": "port", "parent": 136, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 11}}, {"id": 139, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 13}}, {"id": 140, "type": "subscript_expression", "text": "argv[2]", "parent": 135, "children": [141, 142], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 21}}, {"id": 141, "type": "identifier", "text": "argv", "parent": 140, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 18}}, {"id": 142, "type": "number_literal", "text": "2", "parent": 140, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 143, "type": "declaration", "text": "uint64_t cntr = strtoul_noerror(argv[3]);", "parent": 81, "children": [144, 145], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 42}}, {"id": 144, "type": "primitive_type", "text": "uint64_t", "parent": 143, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 9}}, {"id": 145, "type": "init_declarator", "text": "cntr = strtoul_noerror(argv[3])", "parent": 143, "children": [146, 147, 148], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 41}}, {"id": 146, "type": "identifier", "text": "cntr", "parent": 145, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 14}}, {"id": 147, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 16}}, {"id": 148, "type": "call_expression", "text": "strtoul_noerror(argv[3])", "parent": 145, "children": [149, 150], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 41}}, {"id": 149, "type": "identifier", "text": "strtoul_noerror", "parent": 148, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 32}}, {"id": 150, "type": "argument_list", "text": "(argv[3])", "parent": 148, "children": [151], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 41}}, {"id": 151, "type": "subscript_expression", "text": "argv[3]", "parent": 150, "children": [152, 153], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 40}}, {"id": 152, "type": "identifier", "text": "argv", "parent": 151, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 37}}, {"id": 153, "type": "number_literal", "text": "3", "parent": 151, "children": [], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 39}}, {"id": 154, "type": "declaration", "text": "uint64_t rounds = strtoul_noerror(argv[4]);", "parent": 81, "children": [155, 156], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 44}}, {"id": 155, "type": "primitive_type", "text": "uint64_t", "parent": 154, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 9}}, {"id": 156, "type": "init_declarator", "text": "rounds = strtoul_noerror(argv[4])", "parent": 154, "children": [157, 158, 159], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 43}}, {"id": 157, "type": "identifier", "text": "rounds", "parent": 156, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 16}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 159, "type": "call_expression", "text": "strtoul_noerror(argv[4])", "parent": 156, "children": [160, 161], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 43}}, {"id": 160, "type": "identifier", "text": "strtoul_noerror", "parent": 159, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 34}}, {"id": 161, "type": "argument_list", "text": "(argv[4])", "parent": 159, "children": [162], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 43}}, {"id": 162, "type": "subscript_expression", "text": "argv[4]", "parent": 161, "children": [163, 164], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 51, "column": 42}}, {"id": 163, "type": "identifier", "text": "argv", "parent": 162, "children": [], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 51, "column": 39}}, {"id": 164, "type": "number_literal", "text": "4", "parent": 162, "children": [], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 41}}, {"id": 165, "type": "declaration", "text": "uint64_t sleep_usec = 0;", "parent": 81, "children": [166, 167], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 25}}, {"id": 166, "type": "primitive_type", "text": "uint64_t", "parent": 165, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 9}}, {"id": 167, "type": "init_declarator", "text": "sleep_usec = 0", "parent": 165, "children": [168, 169, 170], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 24}}, {"id": 168, "type": "identifier", "text": "sleep_usec", "parent": 167, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 20}}, {"id": 169, "type": "=", "text": "=", "parent": 167, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 22}}, {"id": 170, "type": "number_literal", "text": "0", "parent": 167, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 24}}, {"id": 171, "type": "if_statement", "text": "if (argc == 6)\n\t\tsleep_usec = strtoul_noerror(argv[5]);", "parent": 81, "children": [172], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 55, "column": 40}}, {"id": 172, "type": "parenthesized_expression", "text": "(argc == 6)", "parent": 171, "children": [173], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 15}}, {"id": 173, "type": "binary_expression", "text": "argc == 6", "parent": 172, "children": [174, 175, 176], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 14}}, {"id": 174, "type": "identifier", "text": "argc", "parent": 173, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 9}}, {"id": 175, "type": "==", "text": "==", "parent": 173, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 12}}, {"id": 176, "type": "number_literal", "text": "6", "parent": 173, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 14}}, {"id": 177, "type": "assignment_expression", "text": "sleep_usec = strtoul_noerror(argv[5])", "parent": 171, "children": [178, 179, 180], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 39}}, {"id": 178, "type": "identifier", "text": "sleep_usec", "parent": 177, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 12}}, {"id": 179, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 14}}, {"id": 180, "type": "call_expression", "text": "strtoul_noerror(argv[5])", "parent": 177, "children": [181, 182], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 39}}, {"id": 181, "type": "identifier", "text": "strtoul_noerror", "parent": 180, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 30}}, {"id": 182, "type": "argument_list", "text": "(argv[5])", "parent": 180, "children": [183], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 39}}, {"id": 183, "type": "subscript_expression", "text": "argv[5]", "parent": 182, "children": [184, 185], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 38}}, {"id": 184, "type": "identifier", "text": "argv", "parent": 183, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 35}}, {"id": 185, "type": "number_literal", "text": "5", "parent": 183, "children": [], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 37}}, {"id": 186, "type": "declaration", "text": "int ret;", "parent": 81, "children": [187, 188], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 9}}, {"id": 187, "type": "primitive_type", "text": "int", "parent": 186, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 188, "type": "identifier", "text": "ret", "parent": 186, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 8}}, {"id": 189, "type": "declaration", "text": "struct rpma_peer *peer = NULL;", "parent": 81, "children": [190, 193], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 31}}, {"id": 190, "type": "struct_specifier", "text": "struct rpma_peer", "parent": 189, "children": [191, 192], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 17}}, {"id": 191, "type": "struct", "text": "struct", "parent": 190, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 7}}, {"id": 192, "type": "type_identifier", "text": "rpma_peer", "parent": 190, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 17}}, {"id": 193, "type": "init_declarator", "text": "*peer = NULL", "parent": 189, "children": [194, 197, 198], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 30}}, {"id": 194, "type": "pointer_declarator", "text": "*peer", "parent": 193, "children": [195, 196], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 23}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 19}}, {"id": 196, "type": "identifier", "text": "peer", "parent": 194, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 23}}, {"id": 197, "type": "=", "text": "=", "parent": 193, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 25}}, {"id": 198, "type": "null", "text": "NULL", "parent": 193, "children": [199], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 30}}, {"id": 199, "type": "NULL", "text": "NULL", "parent": 198, "children": [], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 30}}, {"id": 200, "type": "declaration", "text": "struct rpma_conn *conn = NULL;", "parent": 81, "children": [201, 204], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 31}}, {"id": 201, "type": "struct_specifier", "text": "struct rpma_conn", "parent": 200, "children": [202, 203], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 17}}, {"id": 202, "type": "struct", "text": "struct", "parent": 201, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 7}}, {"id": 203, "type": "type_identifier", "text": "rpma_conn", "parent": 201, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 17}}, {"id": 204, "type": "init_declarator", "text": "*conn = NULL", "parent": 200, "children": [205, 208, 209], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 30}}, {"id": 205, "type": "pointer_declarator", "text": "*conn", "parent": 204, "children": [206, 207], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 23}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 19}}, {"id": 207, "type": "identifier", "text": "conn", "parent": 205, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 23}}, {"id": 208, "type": "=", "text": "=", "parent": 204, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 25}}, {"id": 209, "type": "null", "text": "NULL", "parent": 204, "children": [210], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 30}}, {"id": 210, "type": "NULL", "text": "NULL", "parent": 209, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 30}}, {"id": 211, "type": "declaration", "text": "struct rpma_completion cmpl;", "parent": 81, "children": [212, 215], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 29}}, {"id": 212, "type": "struct_specifier", "text": "struct rpma_completion", "parent": 211, "children": [213, 214], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 23}}, {"id": 213, "type": "struct", "text": "struct", "parent": 212, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 7}}, {"id": 214, "type": "type_identifier", "text": "rpma_completion", "parent": 212, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 23}}, {"id": 215, "type": "identifier", "text": "cmpl", "parent": 211, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 28}}, {"id": 216, "type": "declaration", "text": "struct rpma_mr_local *recv_mr, *send_mr;", "parent": 81, "children": [217, 220, 223], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 41}}, {"id": 217, "type": "struct_specifier", "text": "struct rpma_mr_local", "parent": 216, "children": [218, 219], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 21}}, {"id": 218, "type": "struct", "text": "struct", "parent": 217, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 7}}, {"id": 219, "type": "type_identifier", "text": "rpma_mr_local", "parent": 217, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 21}}, {"id": 220, "type": "pointer_declarator", "text": "*recv_mr", "parent": 216, "children": [221, 222], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 30}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 222, "type": "identifier", "text": "recv_mr", "parent": 220, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 30}}, {"id": 223, "type": "pointer_declarator", "text": "*send_mr", "parent": 216, "children": [224, 225], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 40}}, {"id": 224, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 33}}, {"id": 225, "type": "identifier", "text": "send_mr", "parent": 223, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 40}}, {"id": 226, "type": "declaration", "text": "uint64_t *recv = malloc_aligned(MSG_SIZE);", "parent": 81, "children": [227, 228], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 43}}, {"id": 227, "type": "primitive_type", "text": "uint64_t", "parent": 226, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 9}}, {"id": 228, "type": "init_declarator", "text": "*recv = malloc_aligned(MSG_SIZE)", "parent": 226, "children": [229, 232, 233], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 42}}, {"id": 229, "type": "pointer_declarator", "text": "*recv", "parent": 228, "children": [230, 231], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 15}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 231, "type": "identifier", "text": "recv", "parent": 229, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 15}}, {"id": 232, "type": "=", "text": "=", "parent": 228, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 17}}, {"id": 233, "type": "call_expression", "text": "malloc_aligned(MSG_SIZE)", "parent": 228, "children": [234, 235], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 42}}, {"id": 234, "type": "identifier", "text": "malloc_aligned", "parent": 233, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 32}}, {"id": 235, "type": "argument_list", "text": "(MSG_SIZE)", "parent": 233, "children": [236], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 42}}, {"id": 236, "type": "identifier", "text": "MSG_SIZE", "parent": 235, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 41}}, {"id": 237, "type": "if_statement", "text": "if (recv == NULL)\n\t\treturn -1;", "parent": 81, "children": [238, 244], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 68, "column": 12}}, {"id": 238, "type": "parenthesized_expression", "text": "(recv == NULL)", "parent": 237, "children": [239], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 18}}, {"id": 239, "type": "binary_expression", "text": "recv == NULL", "parent": 238, "children": [240, 241, 242], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 17}}, {"id": 240, "type": "identifier", "text": "recv", "parent": 239, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 9}}, {"id": 241, "type": "==", "text": "==", "parent": 239, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 12}}, {"id": 242, "type": "null", "text": "NULL", "parent": 239, "children": [243], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 17}}, {"id": 243, "type": "NULL", "text": "NULL", "parent": 242, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 17}}, {"id": 244, "type": "return_statement", "text": "return -1;", "parent": 237, "children": [245], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 12}}, {"id": 245, "type": "number_literal", "text": "-1", "parent": 244, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 11}}, {"id": 246, "type": "declaration", "text": "uint64_t *send = malloc_aligned(MSG_SIZE);", "parent": 81, "children": [247, 248], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 43}}, {"id": 247, "type": "primitive_type", "text": "uint64_t", "parent": 246, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 9}}, {"id": 248, "type": "init_declarator", "text": "*send = malloc_aligned(MSG_SIZE)", "parent": 246, "children": [249, 252, 253], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 42}}, {"id": 249, "type": "pointer_declarator", "text": "*send", "parent": 248, "children": [250, 251], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 15}}, {"id": 250, "type": "*", "text": "*", "parent": 249, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 11}}, {"id": 251, "type": "identifier", "text": "send", "parent": 249, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 15}}, {"id": 252, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 17}}, {"id": 253, "type": "call_expression", "text": "malloc_aligned(MSG_SIZE)", "parent": 248, "children": [254, 255], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 42}}, {"id": 254, "type": "identifier", "text": "malloc_aligned", "parent": 253, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 32}}, {"id": 255, "type": "argument_list", "text": "(MSG_SIZE)", "parent": 253, "children": [256], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 42}}, {"id": 256, "type": "identifier", "text": "MSG_SIZE", "parent": 255, "children": [], "start_point": {"row": 69, "column": 33}, "end_point": {"row": 69, "column": 41}}, {"id": 257, "type": "if_statement", "text": "if (send == NULL) {\n\t\tfree(recv);\n\t\treturn -1;\n\t}", "parent": 81, "children": [258], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 73, "column": 2}}, {"id": 258, "type": "parenthesized_expression", "text": "(send == NULL)", "parent": 257, "children": [259], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 18}}, {"id": 259, "type": "binary_expression", "text": "send == NULL", "parent": 258, "children": [260, 261, 262], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 17}}, {"id": 260, "type": "identifier", "text": "send", "parent": 259, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 9}}, {"id": 261, "type": "==", "text": "==", "parent": 259, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 12}}, {"id": 262, "type": "null", "text": "NULL", "parent": 259, "children": [263], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 17}}, {"id": 263, "type": "NULL", "text": "NULL", "parent": 262, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 17}}, {"id": 264, "type": "call_expression", "text": "free(recv)", "parent": 257, "children": [265, 266], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 12}}, {"id": 265, "type": "identifier", "text": "free", "parent": 264, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 6}}, {"id": 266, "type": "argument_list", "text": "(recv)", "parent": 264, "children": [267], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 12}}, {"id": 267, "type": "identifier", "text": "recv", "parent": 266, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 11}}, {"id": 268, "type": "return_statement", "text": "return -1;", "parent": 257, "children": [269], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 12}}, {"id": 269, "type": "number_literal", "text": "-1", "parent": 268, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 11}}, {"id": 270, "type": "if_statement", "text": "if ((ret = client_peer_via_address(addr, &peer)))\n\t\tgoto err_mr_free;", "parent": 81, "children": [271, 282], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 79, "column": 19}}, {"id": 271, "type": "parenthesized_expression", "text": "((ret = client_peer_via_address(addr, &peer)))", "parent": 270, "children": [272], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 50}}, {"id": 272, "type": "parenthesized_expression", "text": "(ret = client_peer_via_address(addr, &peer))", "parent": 271, "children": [273], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 49}}, {"id": 273, "type": "assignment_expression", "text": "ret = client_peer_via_address(addr, &peer)", "parent": 272, "children": [274, 275, 276], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 48}}, {"id": 274, "type": "identifier", "text": "ret", "parent": 273, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 9}}, {"id": 275, "type": "=", "text": "=", "parent": 273, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 11}}, {"id": 276, "type": "call_expression", "text": "client_peer_via_address(addr, &peer)", "parent": 273, "children": [277, 278], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 48}}, {"id": 277, "type": "identifier", "text": "client_peer_via_address", "parent": 276, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 35}}, {"id": 278, "type": "argument_list", "text": "(addr, &peer)", "parent": 276, "children": [279, 280], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 48}}, {"id": 279, "type": "identifier", "text": "addr", "parent": 278, "children": [], "start_point": {"row": 78, "column": 36}, "end_point": {"row": 78, "column": 40}}, {"id": 280, "type": "pointer_expression", "text": "&peer", "parent": 278, "children": [281], "start_point": {"row": 78, "column": 42}, "end_point": {"row": 78, "column": 47}}, {"id": 281, "type": "identifier", "text": "peer", "parent": 280, "children": [], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 47}}, {"id": 282, "type": "goto_statement", "text": "goto err_mr_free;", "parent": 270, "children": [283, 284], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 19}}, {"id": 283, "type": "goto", "text": "goto", "parent": 282, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 6}}, {"id": 284, "type": "statement_identifier", "text": "err_mr_free", "parent": 282, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 18}}, {"id": 285, "type": "if_statement", "text": "if ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr)))\n\t\tgoto err_peer_delete;", "parent": 81, "children": [286, 300], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 84, "column": 23}}, {"id": 286, "type": "parenthesized_expression", "text": "((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr)))", "parent": 285, "children": [287], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 83, "column": 15}}, {"id": 287, "type": "parenthesized_expression", "text": "(ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr))", "parent": 286, "children": [288], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 83, "column": 14}}, {"id": 288, "type": "assignment_expression", "text": "ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr)", "parent": 287, "children": [289, 290, 291], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 83, "column": 13}}, {"id": 289, "type": "identifier", "text": "ret", "parent": 288, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 9}}, {"id": 290, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 11}}, {"id": 291, "type": "call_expression", "text": "rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr)", "parent": 288, "children": [292, 293], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 292, "type": "identifier", "text": "rpma_mr_reg", "parent": 291, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 23}}, {"id": 293, "type": "argument_list", "text": "(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr)", "parent": 291, "children": [294, 295, 296, 297, 298], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 83, "column": 13}}, {"id": 294, "type": "identifier", "text": "peer", "parent": 293, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 28}}, {"id": 295, "type": "identifier", "text": "recv", "parent": 293, "children": [], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 34}}, {"id": 296, "type": "identifier", "text": "MSG_SIZE", "parent": 293, "children": [], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 44}}, {"id": 297, "type": "identifier", "text": "RPMA_MR_USAGE_RECV", "parent": 293, "children": [], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 64}}, {"id": 298, "type": "pointer_expression", "text": "&recv_mr", "parent": 293, "children": [299], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 12}}, {"id": 299, "type": "identifier", "text": "recv_mr", "parent": 298, "children": [], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 12}}, {"id": 300, "type": "goto_statement", "text": "goto err_peer_delete;", "parent": 285, "children": [301, 302], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 23}}, {"id": 301, "type": "goto", "text": "goto", "parent": 300, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 6}}, {"id": 302, "type": "statement_identifier", "text": "err_peer_delete", "parent": 300, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 22}}, {"id": 303, "type": "if_statement", "text": "if ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr))) {\n\t\t(void) rpma_mr_dereg(&recv_mr);\n\t\tgoto err_peer_delete;\n\t}", "parent": 81, "children": [304], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 89, "column": 2}}, {"id": 304, "type": "parenthesized_expression", "text": "((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr)))", "parent": 303, "children": [305], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 86, "column": 15}}, {"id": 305, "type": "parenthesized_expression", "text": "(ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr))", "parent": 304, "children": [306], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 86, "column": 14}}, {"id": 306, "type": "assignment_expression", "text": "ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr)", "parent": 305, "children": [307, 308, 309], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 86, "column": 13}}, {"id": 307, "type": "identifier", "text": "ret", "parent": 306, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 9}}, {"id": 308, "type": "=", "text": "=", "parent": 306, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 11}}, {"id": 309, "type": "call_expression", "text": "rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr)", "parent": 306, "children": [310, 311], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 86, "column": 13}}, {"id": 310, "type": "identifier", "text": "rpma_mr_reg", "parent": 309, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 23}}, {"id": 311, "type": "argument_list", "text": "(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr)", "parent": 309, "children": [312, 313, 314, 315, 316], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 86, "column": 13}}, {"id": 312, "type": "identifier", "text": "peer", "parent": 311, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 28}}, {"id": 313, "type": "identifier", "text": "send", "parent": 311, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 34}}, {"id": 314, "type": "identifier", "text": "MSG_SIZE", "parent": 311, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 44}}, {"id": 315, "type": "identifier", "text": "RPMA_MR_USAGE_SEND", "parent": 311, "children": [], "start_point": {"row": 85, "column": 46}, "end_point": {"row": 85, "column": 64}}, {"id": 316, "type": "pointer_expression", "text": "&send_mr", "parent": 311, "children": [317], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 12}}, {"id": 317, "type": "identifier", "text": "send_mr", "parent": 316, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 12}}, {"id": 318, "type": "cast_expression", "text": "(void) rpma_mr_dereg(&recv_mr)", "parent": 303, "children": [319, 321], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 32}}, {"id": 319, "type": "type_descriptor", "text": "void", "parent": 318, "children": [320], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 7}}, {"id": 320, "type": "primitive_type", "text": "void", "parent": 319, "children": [], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 7}}, {"id": 321, "type": "call_expression", "text": "rpma_mr_dereg(&recv_mr)", "parent": 318, "children": [322, 323], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 32}}, {"id": 322, "type": "identifier", "text": "rpma_mr_dereg", "parent": 321, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 22}}, {"id": 323, "type": "argument_list", "text": "(&recv_mr)", "parent": 321, "children": [324], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 32}}, {"id": 324, "type": "pointer_expression", "text": "&recv_mr", "parent": 323, "children": [325], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 31}}, {"id": 325, "type": "identifier", "text": "recv_mr", "parent": 324, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 31}}, {"id": 326, "type": "goto_statement", "text": "goto err_peer_delete;", "parent": 303, "children": [327, 328], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 23}}, {"id": 327, "type": "goto", "text": "goto", "parent": 326, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 6}}, {"id": 328, "type": "statement_identifier", "text": "err_peer_delete", "parent": 326, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 22}}, {"id": 329, "type": "if_statement", "text": "if ((ret = client_connect(peer, addr, port, NULL, &conn)))\n\t\tgoto err_mr_dereg;", "parent": 81, "children": [330, 345], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 93, "column": 20}}, {"id": 330, "type": "parenthesized_expression", "text": "((ret = client_connect(peer, addr, port, NULL, &conn)))", "parent": 329, "children": [331], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 59}}, {"id": 331, "type": "parenthesized_expression", "text": "(ret = client_connect(peer, addr, port, NULL, &conn))", "parent": 330, "children": [332], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 58}}, {"id": 332, "type": "assignment_expression", "text": "ret = client_connect(peer, addr, port, NULL, &conn)", "parent": 331, "children": [333, 334, 335], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 57}}, {"id": 333, "type": "identifier", "text": "ret", "parent": 332, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 9}}, {"id": 334, "type": "=", "text": "=", "parent": 332, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 11}}, {"id": 335, "type": "call_expression", "text": "client_connect(peer, addr, port, NULL, &conn)", "parent": 332, "children": [336, 337], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 57}}, {"id": 336, "type": "identifier", "text": "client_connect", "parent": 335, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 26}}, {"id": 337, "type": "argument_list", "text": "(peer, addr, port, NULL, &conn)", "parent": 335, "children": [338, 339, 340, 341, 343], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 57}}, {"id": 338, "type": "identifier", "text": "peer", "parent": 337, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 31}}, {"id": 339, "type": "identifier", "text": "addr", "parent": 337, "children": [], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 37}}, {"id": 340, "type": "identifier", "text": "port", "parent": 337, "children": [], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 43}}, {"id": 341, "type": "null", "text": "NULL", "parent": 337, "children": [342], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 49}}, {"id": 342, "type": "NULL", "text": "NULL", "parent": 341, "children": [], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 49}}, {"id": 343, "type": "pointer_expression", "text": "&conn", "parent": 337, "children": [344], "start_point": {"row": 92, "column": 51}, "end_point": {"row": 92, "column": 56}}, {"id": 344, "type": "identifier", "text": "conn", "parent": 343, "children": [], "start_point": {"row": 92, "column": 52}, "end_point": {"row": 92, "column": 56}}, {"id": 345, "type": "goto_statement", "text": "goto err_mr_dereg;", "parent": 329, "children": [346, 347], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 20}}, {"id": 346, "type": "goto", "text": "goto", "parent": 345, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 6}}, {"id": 347, "type": "statement_identifier", "text": "err_mr_dereg", "parent": 345, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 19}}, {"id": 348, "type": "while_statement", "text": "while (--rounds) {\n\t\t/* prepare a receive for the server's response */\n\t\tif ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n\t\t\tbreak;\n\n\t\t/* send a message to the server */\n\t\t(void) printf(\"Value sent: %\" PRIu64 \"\\n\", cntr);\n\t\t*send = cntr;\n\t\tif ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)))\n\t\t\tbreak;\n\n\t\tint send_cmpl = 0;\n\t\tint recv_cmpl = 0;\n\n\t\tdo {\n\t\t\t/* prepare completions, get one and validate it */\n\t\t\tif ((ret = rpma_conn_completion_wait(conn))) {\n\t\t\t\tbreak;\n\t\t\t} else if ((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))) {\n\t\t\t\tbreak;\n\t\t\t} else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (cmpl.op == RPMA_OP_SEND) {\n\t\t\t\tsend_cmpl = 1;\n\t\t\t} else if (cmpl.op == RPMA_OP_RECV) {\n\t\t\t\tif (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\trecv_cmpl = 1;\n\t\t\t}\n\t\t} while (!send_cmpl || !recv_cmpl);\n\n\t\tif (ret)\n\t\t\tbreak;\n\n\t\t/* copy the new value of the counter and print it out */\n\t\tcntr = *recv;\n\t\tprintf(\"Value received: %\" PRIu64 \"\\n\", cntr);\n\n\t\t/* sleep if required */\n\t\tif (sleep_usec > 0)\n\t\t\t(void) usleep(sleep_usec);\n\t}", "parent": 81, "children": [349], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 158, "column": 2}}, {"id": 349, "type": "parenthesized_expression", "text": "(--rounds)", "parent": 348, "children": [350], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 17}}, {"id": 350, "type": "update_expression", "text": "--rounds", "parent": 349, "children": [351, 352], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 16}}, {"id": 351, "type": "--", "text": "--", "parent": 350, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 10}}, {"id": 352, "type": "identifier", "text": "rounds", "parent": 350, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 16}}, {"id": 353, "type": "if_statement", "text": "if ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n\t\t\tbreak;", "parent": 348, "children": [354, 367], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 98, "column": 9}}, {"id": 354, "type": "parenthesized_expression", "text": "((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))", "parent": 353, "children": [355], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 58}}, {"id": 355, "type": "parenthesized_expression", "text": "(ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv))", "parent": 354, "children": [356], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 57}}, {"id": 356, "type": "assignment_expression", "text": "ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)", "parent": 355, "children": [357, 358, 359], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 56}}, {"id": 357, "type": "identifier", "text": "ret", "parent": 356, "children": [], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 10}}, {"id": 358, "type": "=", "text": "=", "parent": 356, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 12}}, {"id": 359, "type": "call_expression", "text": "rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)", "parent": 356, "children": [360, 361], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 56}}, {"id": 360, "type": "identifier", "text": "rpma_recv", "parent": 359, "children": [], "start_point": {"row": 97, "column": 13}, "end_point": {"row": 97, "column": 22}}, {"id": 361, "type": "argument_list", "text": "(conn, recv_mr, 0, MSG_SIZE, recv)", "parent": 359, "children": [362, 363, 364, 365, 366], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 56}}, {"id": 362, "type": "identifier", "text": "conn", "parent": 361, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 27}}, {"id": 363, "type": "identifier", "text": "recv_mr", "parent": 361, "children": [], "start_point": {"row": 97, "column": 29}, "end_point": {"row": 97, "column": 36}}, {"id": 364, "type": "number_literal", "text": "0", "parent": 361, "children": [], "start_point": {"row": 97, "column": 38}, "end_point": {"row": 97, "column": 39}}, {"id": 365, "type": "identifier", "text": "MSG_SIZE", "parent": 361, "children": [], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 49}}, {"id": 366, "type": "identifier", "text": "recv", "parent": 361, "children": [], "start_point": {"row": 97, "column": 51}, "end_point": {"row": 97, "column": 55}}, {"id": 367, "type": "break_statement", "text": "break;", "parent": 353, "children": [368], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 9}}, {"id": 368, "type": "break", "text": "break", "parent": 367, "children": [], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 8}}, {"id": 369, "type": "cast_expression", "text": "(void) printf(\"Value sent: %\" PRIu64 \"\\n\", cntr)", "parent": 348, "children": [370, 372], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 50}}, {"id": 370, "type": "type_descriptor", "text": "void", "parent": 369, "children": [371], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 7}}, {"id": 371, "type": "primitive_type", "text": "void", "parent": 370, "children": [], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 7}}, {"id": 372, "type": "call_expression", "text": "printf(\"Value sent: %\" PRIu64 \"\\n\", cntr)", "parent": 369, "children": [373, 374], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 50}}, {"id": 373, "type": "identifier", "text": "printf", "parent": 372, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 15}}, {"id": 374, "type": "argument_list", "text": "(\"Value sent: %\" PRIu64 \"\\n\", cntr)", "parent": 372, "children": [375, 380], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 50}}, {"id": 375, "type": "concatenated_string", "text": "\"Value sent: %\" PRIu64 \"\\n\"", "parent": 374, "children": [376, 377, 378], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 43}}, {"id": 376, "type": "string_literal", "text": "\"Value sent: %\"", "parent": 375, "children": [], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 31}}, {"id": 377, "type": "identifier", "text": "PRIu64", "parent": 375, "children": [], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 38}}, {"id": 378, "type": "string_literal", "text": "\"\\n\"", "parent": 375, "children": [379], "start_point": {"row": 101, "column": 39}, "end_point": {"row": 101, "column": 43}}, {"id": 379, "type": "escape_sequence", "text": "\\n", "parent": 378, "children": [], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 42}}, {"id": 380, "type": "identifier", "text": "cntr", "parent": 374, "children": [], "start_point": {"row": 101, "column": 45}, "end_point": {"row": 101, "column": 49}}, {"id": 381, "type": "assignment_expression", "text": "*send = cntr", "parent": 348, "children": [382, 385, 386], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 14}}, {"id": 382, "type": "pointer_expression", "text": "*send", "parent": 381, "children": [383, 384], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 7}}, {"id": 383, "type": "*", "text": "*", "parent": 382, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 3}}, {"id": 384, "type": "identifier", "text": "send", "parent": 382, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 7}}, {"id": 385, "type": "=", "text": "=", "parent": 381, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 9}}, {"id": 386, "type": "identifier", "text": "cntr", "parent": 381, "children": [], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 14}}, {"id": 387, "type": "if_statement", "text": "if ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)))\n\t\t\tbreak;", "parent": 348, "children": [388, 403], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 109, "column": 9}}, {"id": 388, "type": "parenthesized_expression", "text": "((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)))", "parent": 387, "children": [389], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 108, "column": 37}}, {"id": 389, "type": "parenthesized_expression", "text": "(ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL))", "parent": 388, "children": [390], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 108, "column": 36}}, {"id": 390, "type": "assignment_expression", "text": "ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)", "parent": 389, "children": [391, 392, 393], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 108, "column": 35}}, {"id": 391, "type": "identifier", "text": "ret", "parent": 390, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 10}}, {"id": 392, "type": "=", "text": "=", "parent": 390, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 12}}, {"id": 393, "type": "call_expression", "text": "rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)", "parent": 390, "children": [394, 395], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 108, "column": 35}}, {"id": 394, "type": "identifier", "text": "rpma_send", "parent": 393, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 22}}, {"id": 395, "type": "argument_list", "text": "(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)", "parent": 393, "children": [396, 397, 398, 399, 400, 401], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 108, "column": 35}}, {"id": 396, "type": "identifier", "text": "conn", "parent": 395, "children": [], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 27}}, {"id": 397, "type": "identifier", "text": "send_mr", "parent": 395, "children": [], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 36}}, {"id": 398, "type": "number_literal", "text": "0", "parent": 395, "children": [], "start_point": {"row": 103, "column": 38}, "end_point": {"row": 103, "column": 39}}, {"id": 399, "type": "identifier", "text": "MSG_SIZE", "parent": 395, "children": [], "start_point": {"row": 103, "column": 41}, "end_point": {"row": 103, "column": 49}}, {"id": 400, "type": "identifier", "text": "RPMA_F_COMPLETION_ALWAYS", "parent": 395, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 28}}, {"id": 401, "type": "null", "text": "NULL", "parent": 395, "children": [402], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 34}}, {"id": 402, "type": "NULL", "text": "NULL", "parent": 401, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 34}}, {"id": 403, "type": "break_statement", "text": "break;", "parent": 387, "children": [404], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 9}}, {"id": 404, "type": "break", "text": "break", "parent": 403, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 8}}, {"id": 405, "type": "declaration", "text": "int send_cmpl = 0;", "parent": 348, "children": [406, 407], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 20}}, {"id": 406, "type": "primitive_type", "text": "int", "parent": 405, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 5}}, {"id": 407, "type": "init_declarator", "text": "send_cmpl = 0", "parent": 405, "children": [408, 409, 410], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 19}}, {"id": 408, "type": "identifier", "text": "send_cmpl", "parent": 407, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 15}}, {"id": 409, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 17}}, {"id": 410, "type": "number_literal", "text": "0", "parent": 407, "children": [], "start_point": {"row": 111, "column": 18}, "end_point": {"row": 111, "column": 19}}, {"id": 411, "type": "declaration", "text": "int recv_cmpl = 0;", "parent": 348, "children": [412, 413], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 20}}, {"id": 412, "type": "primitive_type", "text": "int", "parent": 411, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 5}}, {"id": 413, "type": "init_declarator", "text": "recv_cmpl = 0", "parent": 411, "children": [414, 415, 416], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 19}}, {"id": 414, "type": "identifier", "text": "recv_cmpl", "parent": 413, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 15}}, {"id": 415, "type": "=", "text": "=", "parent": 413, "children": [], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 17}}, {"id": 416, "type": "number_literal", "text": "0", "parent": 413, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 19}}, {"id": 417, "type": "do_statement", "text": "do {\n\t\t\t/* prepare completions, get one and validate it */\n\t\t\tif ((ret = rpma_conn_completion_wait(conn))) {\n\t\t\t\tbreak;\n\t\t\t} else if ((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))) {\n\t\t\t\tbreak;\n\t\t\t} else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (cmpl.op == RPMA_OP_SEND) {\n\t\t\t\tsend_cmpl = 1;\n\t\t\t} else if (cmpl.op == RPMA_OP_RECV) {\n\t\t\t\tif (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\trecv_cmpl = 1;\n\t\t\t}\n\t\t} while (!send_cmpl || !recv_cmpl);", "parent": 348, "children": [541], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 146, "column": 37}}, {"id": 418, "type": "if_statement", "text": "if ((ret = rpma_conn_completion_wait(conn))) {\n\t\t\t\tbreak;\n\t\t\t} else if ((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))) {\n\t\t\t\tbreak;\n\t\t\t} else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}", "parent": 417, "children": [419, 430], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 127, "column": 4}}, {"id": 419, "type": "parenthesized_expression", "text": "((ret = rpma_conn_completion_wait(conn)))", "parent": 418, "children": [420], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 47}}, {"id": 420, "type": "parenthesized_expression", "text": "(ret = rpma_conn_completion_wait(conn))", "parent": 419, "children": [421], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 46}}, {"id": 421, "type": "assignment_expression", "text": "ret = rpma_conn_completion_wait(conn)", "parent": 420, "children": [422, 423, 424], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 45}}, {"id": 422, "type": "identifier", "text": "ret", "parent": 421, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 11}}, {"id": 423, "type": "=", "text": "=", "parent": 421, "children": [], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 13}}, {"id": 424, "type": "call_expression", "text": "rpma_conn_completion_wait(conn)", "parent": 421, "children": [425, 426], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 45}}, {"id": 425, "type": "identifier", "text": "rpma_conn_completion_wait", "parent": 424, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 39}}, {"id": 426, "type": "argument_list", "text": "(conn)", "parent": 424, "children": [427], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 45}}, {"id": 427, "type": "identifier", "text": "conn", "parent": 426, "children": [], "start_point": {"row": 116, "column": 40}, "end_point": {"row": 116, "column": 44}}, {"id": 428, "type": "break_statement", "text": "break;", "parent": 418, "children": [429], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 10}}, {"id": 429, "type": "break", "text": "break", "parent": 428, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 9}}, {"id": 430, "type": "else_clause", "text": "else if ((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))) {\n\t\t\t\tbreak;\n\t\t\t} else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}", "parent": 418, "children": [431], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 127, "column": 4}}, {"id": 431, "type": "if_statement", "text": "if ((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))) {\n\t\t\t\tbreak;\n\t\t\t} else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}", "parent": 430, "children": [432, 445], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 127, "column": 4}}, {"id": 432, "type": "parenthesized_expression", "text": "((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl)))", "parent": 431, "children": [433], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 119, "column": 13}}, {"id": 433, "type": "parenthesized_expression", "text": "(ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))", "parent": 432, "children": [434], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 119, "column": 12}}, {"id": 434, "type": "assignment_expression", "text": "ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl)", "parent": 433, "children": [435, 436, 437], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 119, "column": 11}}, {"id": 435, "type": "identifier", "text": "ret", "parent": 434, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 18}}, {"id": 436, "type": "=", "text": "=", "parent": 434, "children": [], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 20}}, {"id": 437, "type": "call_expression", "text": "rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl)", "parent": 434, "children": [438, 439], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 119, "column": 11}}, {"id": 438, "type": "identifier", "text": "rpma_conn_completion_get", "parent": 437, "children": [], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 45}}, {"id": 439, "type": "argument_list", "text": "(conn,\n\t\t\t\t\t&cmpl)", "parent": 437, "children": [440, 441], "start_point": {"row": 118, "column": 45}, "end_point": {"row": 119, "column": 11}}, {"id": 440, "type": "identifier", "text": "conn", "parent": 439, "children": [], "start_point": {"row": 118, "column": 46}, "end_point": {"row": 118, "column": 50}}, {"id": 441, "type": "pointer_expression", "text": "&cmpl", "parent": 439, "children": [442], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 10}}, {"id": 442, "type": "identifier", "text": "cmpl", "parent": 441, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 10}}, {"id": 443, "type": "break_statement", "text": "break;", "parent": 431, "children": [444], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 10}}, {"id": 444, "type": "break", "text": "break", "parent": 443, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 9}}, {"id": 445, "type": "else_clause", "text": "else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}", "parent": 431, "children": [446], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 127, "column": 4}}, {"id": 446, "type": "if_statement", "text": "if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}", "parent": 445, "children": [447], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 127, "column": 4}}, {"id": 447, "type": "parenthesized_expression", "text": "(cmpl.op_status != IBV_WC_SUCCESS)", "parent": 446, "children": [448], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 47}}, {"id": 448, "type": "binary_expression", "text": "cmpl.op_status != IBV_WC_SUCCESS", "parent": 447, "children": [449, 452, 453], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 46}}, {"id": 449, "type": "field_expression", "text": "cmpl.op_status", "parent": 448, "children": [450, 451], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 28}}, {"id": 450, "type": "identifier", "text": "cmpl", "parent": 449, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 18}}, {"id": 451, "type": "field_identifier", "text": "op_status", "parent": 449, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 28}}, {"id": 452, "type": "!=", "text": "!=", "parent": 448, "children": [], "start_point": {"row": 121, "column": 29}, "end_point": {"row": 121, "column": 31}}, {"id": 453, "type": "identifier", "text": "IBV_WC_SUCCESS", "parent": 448, "children": [], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 46}}, {"id": 454, "type": "cast_expression", "text": "(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\")", "parent": 446, "children": [455, 457], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 124, "column": 86}}, {"id": 455, "type": "type_descriptor", "text": "void", "parent": 454, "children": [456], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 9}}, {"id": 456, "type": "primitive_type", "text": "void", "parent": 455, "children": [], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 9}}, {"id": 457, "type": "call_expression", "text": "fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\")", "parent": 454, "children": [458, 459], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 124, "column": 86}}, {"id": 458, "type": "identifier", "text": "fprintf", "parent": 457, "children": [], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 18}}, {"id": 459, "type": "argument_list", "text": "(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\")", "parent": 457, "children": [460, 461], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 124, "column": 86}}, {"id": 460, "type": "identifier", "text": "stderr", "parent": 459, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 25}}, {"id": 461, "type": "string_literal", "text": "\"Shutting down the client due to the unsuccessful completion of an operation.\\n\"", "parent": 459, "children": [462], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 85}}, {"id": 462, "type": "escape_sequence", "text": "\\n", "parent": 461, "children": [], "start_point": {"row": 124, "column": 82}, "end_point": {"row": 124, "column": 84}}, {"id": 463, "type": "assignment_expression", "text": "ret = -1", "parent": 446, "children": [464, 465, 466], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 12}}, {"id": 464, "type": "identifier", "text": "ret", "parent": 463, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 7}}, {"id": 465, "type": "=", "text": "=", "parent": 463, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 9}}, {"id": 466, "type": "number_literal", "text": "-1", "parent": 463, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 12}}, {"id": 467, "type": "break_statement", "text": "break;", "parent": 446, "children": [468], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 10}}, {"id": 468, "type": "break", "text": "break", "parent": 467, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 9}}, {"id": 469, "type": "if_statement", "text": "if (cmpl.op == RPMA_OP_SEND) {\n\t\t\t\tsend_cmpl = 1;\n\t\t\t} else if (cmpl.op == RPMA_OP_RECV) {\n\t\t\t\tif (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\trecv_cmpl = 1;\n\t\t\t}", "parent": 417, "children": [470, 481], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 145, "column": 4}}, {"id": 470, "type": "parenthesized_expression", "text": "(cmpl.op == RPMA_OP_SEND)", "parent": 469, "children": [471], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 31}}, {"id": 471, "type": "binary_expression", "text": "cmpl.op == RPMA_OP_SEND", "parent": 470, "children": [472, 475, 476], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 30}}, {"id": 472, "type": "field_expression", "text": "cmpl.op", "parent": 471, "children": [473, 474], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 14}}, {"id": 473, "type": "identifier", "text": "cmpl", "parent": 472, "children": [], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 11}}, {"id": 474, "type": "field_identifier", "text": "op", "parent": 472, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 14}}, {"id": 475, "type": "==", "text": "==", "parent": 471, "children": [], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 17}}, {"id": 476, "type": "identifier", "text": "RPMA_OP_SEND", "parent": 471, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 30}}, {"id": 477, "type": "assignment_expression", "text": "send_cmpl = 1", "parent": 469, "children": [478, 479, 480], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 17}}, {"id": 478, "type": "identifier", "text": "send_cmpl", "parent": 477, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 13}}, {"id": 479, "type": "=", "text": "=", "parent": 477, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 15}}, {"id": 480, "type": "number_literal", "text": "1", "parent": 477, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 17}}, {"id": 481, "type": "else_clause", "text": "else if (cmpl.op == RPMA_OP_RECV) {\n\t\t\t\tif (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\trecv_cmpl = 1;\n\t\t\t}", "parent": 469, "children": [482], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 145, "column": 4}}, {"id": 482, "type": "if_statement", "text": "if (cmpl.op == RPMA_OP_RECV) {\n\t\t\t\tif (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\trecv_cmpl = 1;\n\t\t\t}", "parent": 481, "children": [483], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 145, "column": 4}}, {"id": 483, "type": "parenthesized_expression", "text": "(cmpl.op == RPMA_OP_RECV)", "parent": 482, "children": [484], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 38}}, {"id": 484, "type": "binary_expression", "text": "cmpl.op == RPMA_OP_RECV", "parent": 483, "children": [485, 488, 489], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 37}}, {"id": 485, "type": "field_expression", "text": "cmpl.op", "parent": 484, "children": [486, 487], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 21}}, {"id": 486, "type": "identifier", "text": "cmpl", "parent": 485, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 18}}, {"id": 487, "type": "field_identifier", "text": "op", "parent": 485, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 21}}, {"id": 488, "type": "==", "text": "==", "parent": 484, "children": [], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 24}}, {"id": 489, "type": "identifier", "text": "RPMA_OP_RECV", "parent": 484, "children": [], "start_point": {"row": 131, "column": 25}, "end_point": {"row": 131, "column": 37}}, {"id": 490, "type": "if_statement", "text": "if (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "parent": 482, "children": [491], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 142, "column": 5}}, {"id": 491, "type": "parenthesized_expression", "text": "(cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE)", "parent": 490, "children": [492], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 133, "column": 32}}, {"id": 492, "type": "binary_expression", "text": "cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE", "parent": 491, "children": [493, 499, 500], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 133, "column": 31}}, {"id": 493, "type": "binary_expression", "text": "cmpl.op_context != recv", "parent": 492, "children": [494, 497, 498], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 31}}, {"id": 494, "type": "field_expression", "text": "cmpl.op_context", "parent": 493, "children": [495, 496], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 23}}, {"id": 495, "type": "identifier", "text": "cmpl", "parent": 494, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 12}}, {"id": 496, "type": "field_identifier", "text": "op_context", "parent": 494, "children": [], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 23}}, {"id": 497, "type": "!=", "text": "!=", "parent": 493, "children": [], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 26}}, {"id": 498, "type": "identifier", "text": "recv", "parent": 493, "children": [], "start_point": {"row": 132, "column": 27}, "end_point": {"row": 132, "column": 31}}, {"id": 499, "type": "||", "text": "||", "parent": 492, "children": [], "start_point": {"row": 132, "column": 32}, "end_point": {"row": 132, "column": 34}}, {"id": 500, "type": "binary_expression", "text": "cmpl.byte_len != MSG_SIZE", "parent": 492, "children": [501, 504, 505], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 31}}, {"id": 501, "type": "field_expression", "text": "cmpl.byte_len", "parent": 500, "children": [502, 503], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 19}}, {"id": 502, "type": "identifier", "text": "cmpl", "parent": 501, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 10}}, {"id": 503, "type": "field_identifier", "text": "byte_len", "parent": 501, "children": [], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 133, "column": 19}}, {"id": 504, "type": "!=", "text": "!=", "parent": 500, "children": [], "start_point": {"row": 133, "column": 20}, "end_point": {"row": 133, "column": 22}}, {"id": 505, "type": "identifier", "text": "MSG_SIZE", "parent": 500, "children": [], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 31}}, {"id": 506, "type": "cast_expression", "text": "(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE)", "parent": 490, "children": [507, 509], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 139, "column": 30}}, {"id": 507, "type": "type_descriptor", "text": "void", "parent": 506, "children": [508], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 10}}, {"id": 508, "type": "primitive_type", "text": "void", "parent": 507, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 10}}, {"id": 509, "type": "call_expression", "text": "fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE)", "parent": 506, "children": [510, 511], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 139, "column": 30}}, {"id": 510, "type": "identifier", "text": "fprintf", "parent": 509, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 19}}, {"id": 511, "type": "argument_list", "text": "(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE)", "parent": 509, "children": [512, 513, 518, 521, 527, 530], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 139, "column": 30}}, {"id": 512, "type": "identifier", "text": "stderr", "parent": 511, "children": [], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 26}}, {"id": 513, "type": "concatenated_string", "text": "\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\"", "parent": 511, "children": [514, 515, 516], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 137, "column": 35}}, {"id": 514, "type": "string_literal", "text": "\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"", "parent": 513, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 79}}, {"id": 515, "type": "identifier", "text": "PRIu32", "parent": 513, "children": [], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 12}}, {"id": 516, "type": "string_literal", "text": "\" != %ld [cmpl.byte_len] )\\n\"", "parent": 513, "children": [517], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 35}}, {"id": 517, "type": "escape_sequence", "text": "\\n", "parent": 516, "children": [], "start_point": {"row": 137, "column": 32}, "end_point": {"row": 137, "column": 34}}, {"id": 518, "type": "field_expression", "text": "cmpl.op_context", "parent": 511, "children": [519, 520], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 21}}, {"id": 519, "type": "identifier", "text": "cmpl", "parent": 518, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 10}}, {"id": 520, "type": "field_identifier", "text": "op_context", "parent": 518, "children": [], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 21}}, {"id": 521, "type": "cast_expression", "text": "(void *)recv", "parent": 511, "children": [522, 526], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 35}}, {"id": 522, "type": "type_descriptor", "text": "void *", "parent": 521, "children": [523, 524], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 30}}, {"id": 523, "type": "primitive_type", "text": "void", "parent": 522, "children": [], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 28}}, {"id": 524, "type": "abstract_pointer_declarator", "text": "*", "parent": 522, "children": [525], "start_point": {"row": 138, "column": 29}, "end_point": {"row": 138, "column": 30}}, {"id": 525, "type": "*", "text": "*", "parent": 524, "children": [], "start_point": {"row": 138, "column": 29}, "end_point": {"row": 138, "column": 30}}, {"id": 526, "type": "identifier", "text": "recv", "parent": 521, "children": [], "start_point": {"row": 138, "column": 31}, "end_point": {"row": 138, "column": 35}}, {"id": 527, "type": "field_expression", "text": "cmpl.byte_len", "parent": 511, "children": [528, 529], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 19}}, {"id": 528, "type": "identifier", "text": "cmpl", "parent": 527, "children": [], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 10}}, {"id": 529, "type": "field_identifier", "text": "byte_len", "parent": 527, "children": [], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 19}}, {"id": 530, "type": "identifier", "text": "MSG_SIZE", "parent": 511, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 29}}, {"id": 531, "type": "assignment_expression", "text": "ret = -1", "parent": 490, "children": [532, 533, 534], "start_point": {"row": 140, "column": 5}, "end_point": {"row": 140, "column": 13}}, {"id": 532, "type": "identifier", "text": "ret", "parent": 531, "children": [], "start_point": {"row": 140, "column": 5}, "end_point": {"row": 140, "column": 8}}, {"id": 533, "type": "=", "text": "=", "parent": 531, "children": [], "start_point": {"row": 140, "column": 9}, "end_point": {"row": 140, "column": 10}}, {"id": 534, "type": "number_literal", "text": "-1", "parent": 531, "children": [], "start_point": {"row": 140, "column": 11}, "end_point": {"row": 140, "column": 13}}, {"id": 535, "type": "break_statement", "text": "break;", "parent": 490, "children": [536], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 11}}, {"id": 536, "type": "break", "text": "break", "parent": 535, "children": [], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 10}}, {"id": 537, "type": "assignment_expression", "text": "recv_cmpl = 1", "parent": 482, "children": [538, 539, 540], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 17}}, {"id": 538, "type": "identifier", "text": "recv_cmpl", "parent": 537, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 13}}, {"id": 539, "type": "=", "text": "=", "parent": 537, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 15}}, {"id": 540, "type": "number_literal", "text": "1", "parent": 537, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 17}}, {"id": 541, "type": "parenthesized_expression", "text": "(!send_cmpl || !recv_cmpl)", "parent": 417, "children": [542], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 36}}, {"id": 542, "type": "binary_expression", "text": "!send_cmpl || !recv_cmpl", "parent": 541, "children": [543, 546, 547], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 35}}, {"id": 543, "type": "unary_expression", "text": "!send_cmpl", "parent": 542, "children": [544, 545], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 21}}, {"id": 544, "type": "!", "text": "!", "parent": 543, "children": [], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 12}}, {"id": 545, "type": "identifier", "text": "send_cmpl", "parent": 543, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 21}}, {"id": 546, "type": "||", "text": "||", "parent": 542, "children": [], "start_point": {"row": 146, "column": 22}, "end_point": {"row": 146, "column": 24}}, {"id": 547, "type": "unary_expression", "text": "!recv_cmpl", "parent": 542, "children": [548, 549], "start_point": {"row": 146, "column": 25}, "end_point": {"row": 146, "column": 35}}, {"id": 548, "type": "!", "text": "!", "parent": 547, "children": [], "start_point": {"row": 146, "column": 25}, "end_point": {"row": 146, "column": 26}}, {"id": 549, "type": "identifier", "text": "recv_cmpl", "parent": 547, "children": [], "start_point": {"row": 146, "column": 26}, "end_point": {"row": 146, "column": 35}}, {"id": 550, "type": "if_statement", "text": "if (ret)\n\t\t\tbreak;", "parent": 348, "children": [551, 553], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 149, "column": 9}}, {"id": 551, "type": "parenthesized_expression", "text": "(ret)", "parent": 550, "children": [552], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 10}}, {"id": 552, "type": "identifier", "text": "ret", "parent": 551, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 9}}, {"id": 553, "type": "break_statement", "text": "break;", "parent": 550, "children": [554], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 9}}, {"id": 554, "type": "break", "text": "break", "parent": 553, "children": [], "start_point": {"row": 149, "column": 3}, "end_point": {"row": 149, "column": 8}}, {"id": 555, "type": "assignment_expression", "text": "cntr = *recv", "parent": 348, "children": [556, 557, 558], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 14}}, {"id": 556, "type": "identifier", "text": "cntr", "parent": 555, "children": [], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 6}}, {"id": 557, "type": "=", "text": "=", "parent": 555, "children": [], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 8}}, {"id": 558, "type": "pointer_expression", "text": "*recv", "parent": 555, "children": [559, 560], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 14}}, {"id": 559, "type": "*", "text": "*", "parent": 558, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 10}}, {"id": 560, "type": "identifier", "text": "recv", "parent": 558, "children": [], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 14}}, {"id": 561, "type": "call_expression", "text": "printf(\"Value received: %\" PRIu64 \"\\n\", cntr)", "parent": 348, "children": [562, 563], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 47}}, {"id": 562, "type": "identifier", "text": "printf", "parent": 561, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 8}}, {"id": 563, "type": "argument_list", "text": "(\"Value received: %\" PRIu64 \"\\n\", cntr)", "parent": 561, "children": [564, 569], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 47}}, {"id": 564, "type": "concatenated_string", "text": "\"Value received: %\" PRIu64 \"\\n\"", "parent": 563, "children": [565, 566, 567], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 40}}, {"id": 565, "type": "string_literal", "text": "\"Value received: %\"", "parent": 564, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 28}}, {"id": 566, "type": "identifier", "text": "PRIu64", "parent": 564, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 35}}, {"id": 567, "type": "string_literal", "text": "\"\\n\"", "parent": 564, "children": [568], "start_point": {"row": 153, "column": 36}, "end_point": {"row": 153, "column": 40}}, {"id": 568, "type": "escape_sequence", "text": "\\n", "parent": 567, "children": [], "start_point": {"row": 153, "column": 37}, "end_point": {"row": 153, "column": 39}}, {"id": 569, "type": "identifier", "text": "cntr", "parent": 563, "children": [], "start_point": {"row": 153, "column": 42}, "end_point": {"row": 153, "column": 46}}, {"id": 570, "type": "if_statement", "text": "if (sleep_usec > 0)\n\t\t\t(void) usleep(sleep_usec);", "parent": 348, "children": [571], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 157, "column": 29}}, {"id": 571, "type": "parenthesized_expression", "text": "(sleep_usec > 0)", "parent": 570, "children": [572], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 21}}, {"id": 572, "type": "binary_expression", "text": "sleep_usec > 0", "parent": 571, "children": [573, 574, 575], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 20}}, {"id": 573, "type": "identifier", "text": "sleep_usec", "parent": 572, "children": [], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 16}}, {"id": 574, "type": ">", "text": ">", "parent": 572, "children": [], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 18}}, {"id": 575, "type": "number_literal", "text": "0", "parent": 572, "children": [], "start_point": {"row": 156, "column": 19}, "end_point": {"row": 156, "column": 20}}, {"id": 576, "type": "cast_expression", "text": "(void) usleep(sleep_usec)", "parent": 570, "children": [577, 579], "start_point": {"row": 157, "column": 3}, "end_point": {"row": 157, "column": 28}}, {"id": 577, "type": "type_descriptor", "text": "void", "parent": 576, "children": [578], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 8}}, {"id": 578, "type": "primitive_type", "text": "void", "parent": 577, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 8}}, {"id": 579, "type": "call_expression", "text": "usleep(sleep_usec)", "parent": 576, "children": [580, 581], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 28}}, {"id": 580, "type": "identifier", "text": "usleep", "parent": 579, "children": [], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 16}}, {"id": 581, "type": "argument_list", "text": "(sleep_usec)", "parent": 579, "children": [582], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 28}}, {"id": 582, "type": "identifier", "text": "sleep_usec", "parent": 581, "children": [], "start_point": {"row": 157, "column": 17}, "end_point": {"row": 157, "column": 27}}, {"id": 583, "type": "assignment_expression", "text": "*send = I_M_DONE", "parent": 81, "children": [584, 587, 588], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 17}}, {"id": 584, "type": "pointer_expression", "text": "*send", "parent": 583, "children": [585, 586], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 6}}, {"id": 585, "type": "*", "text": "*", "parent": 584, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 2}}, {"id": 586, "type": "identifier", "text": "send", "parent": 584, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 6}}, {"id": 587, "type": "=", "text": "=", "parent": 583, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 8}}, {"id": 588, "type": "identifier", "text": "I_M_DONE", "parent": 583, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 17}}, {"id": 589, "type": "assignment_expression", "text": "ret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n\t\t\tNULL)", "parent": 81, "children": [590, 591, 592], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 163, "column": 8}}, {"id": 590, "type": "identifier", "text": "ret", "parent": 589, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 4}}, {"id": 591, "type": "|=", "text": "|=", "parent": 589, "children": [], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 7}}, {"id": 592, "type": "call_expression", "text": "rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n\t\t\tNULL)", "parent": 589, "children": [593, 594], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 163, "column": 8}}, {"id": 593, "type": "identifier", "text": "rpma_send", "parent": 592, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 17}}, {"id": 594, "type": "argument_list", "text": "(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n\t\t\tNULL)", "parent": 592, "children": [595, 596, 597, 598, 599, 600], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 163, "column": 8}}, {"id": 595, "type": "identifier", "text": "conn", "parent": 594, "children": [], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 22}}, {"id": 596, "type": "identifier", "text": "send_mr", "parent": 594, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 31}}, {"id": 597, "type": "number_literal", "text": "0", "parent": 594, "children": [], "start_point": {"row": 162, "column": 33}, "end_point": {"row": 162, "column": 34}}, {"id": 598, "type": "identifier", "text": "MSG_SIZE", "parent": 594, "children": [], "start_point": {"row": 162, "column": 36}, "end_point": {"row": 162, "column": 44}}, {"id": 599, "type": "identifier", "text": "RPMA_F_COMPLETION_ON_ERROR", "parent": 594, "children": [], "start_point": {"row": 162, "column": 46}, "end_point": {"row": 162, "column": 72}}, {"id": 600, "type": "null", "text": "NULL", "parent": 594, "children": [601], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 7}}, {"id": 601, "type": "NULL", "text": "NULL", "parent": 600, "children": [], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 7}}, {"id": 602, "type": "assignment_expression", "text": "ret |= common_disconnect_and_wait_for_conn_close(&conn)", "parent": 81, "children": [603, 604, 605], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 56}}, {"id": 603, "type": "identifier", "text": "ret", "parent": 602, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 4}}, {"id": 604, "type": "|=", "text": "|=", "parent": 602, "children": [], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 7}}, {"id": 605, "type": "call_expression", "text": "common_disconnect_and_wait_for_conn_close(&conn)", "parent": 602, "children": [606, 607], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 56}}, {"id": 606, "type": "identifier", "text": "common_disconnect_and_wait_for_conn_close", "parent": 605, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 49}}, {"id": 607, "type": "argument_list", "text": "(&conn)", "parent": 605, "children": [608], "start_point": {"row": 165, "column": 49}, "end_point": {"row": 165, "column": 56}}, {"id": 608, "type": "pointer_expression", "text": "&conn", "parent": 607, "children": [609], "start_point": {"row": 165, "column": 50}, "end_point": {"row": 165, "column": 55}}, {"id": 609, "type": "identifier", "text": "conn", "parent": 608, "children": [], "start_point": {"row": 165, "column": 51}, "end_point": {"row": 165, "column": 55}}, {"id": 610, "type": "labeled_statement", "text": "err_mr_dereg:\n\t/* deregister the memory regions */\n\tret |= rpma_mr_dereg(&send_mr);", "parent": 81, "children": [611], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 169, "column": 32}}, {"id": 611, "type": "statement_identifier", "text": "err_mr_dereg", "parent": 610, "children": [], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 167, "column": 12}}, {"id": 612, "type": "assignment_expression", "text": "ret |= rpma_mr_dereg(&send_mr)", "parent": 610, "children": [613, 614, 615], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 31}}, {"id": 613, "type": "identifier", "text": "ret", "parent": 612, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 4}}, {"id": 614, "type": "|=", "text": "|=", "parent": 612, "children": [], "start_point": {"row": 169, "column": 5}, "end_point": {"row": 169, "column": 7}}, {"id": 615, "type": "call_expression", "text": "rpma_mr_dereg(&send_mr)", "parent": 612, "children": [616, 617], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 31}}, {"id": 616, "type": "identifier", "text": "rpma_mr_dereg", "parent": 615, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 21}}, {"id": 617, "type": "argument_list", "text": "(&send_mr)", "parent": 615, "children": [618], "start_point": {"row": 169, "column": 21}, "end_point": {"row": 169, "column": 31}}, {"id": 618, "type": "pointer_expression", "text": "&send_mr", "parent": 617, "children": [619], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 30}}, {"id": 619, "type": "identifier", "text": "send_mr", "parent": 618, "children": [], "start_point": {"row": 169, "column": 23}, "end_point": {"row": 169, "column": 30}}, {"id": 620, "type": "assignment_expression", "text": "ret |= rpma_mr_dereg(&recv_mr)", "parent": 81, "children": [621, 622, 623], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 31}}, {"id": 621, "type": "identifier", "text": "ret", "parent": 620, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 4}}, {"id": 622, "type": "|=", "text": "|=", "parent": 620, "children": [], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 7}}, {"id": 623, "type": "call_expression", "text": "rpma_mr_dereg(&recv_mr)", "parent": 620, "children": [624, 625], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 31}}, {"id": 624, "type": "identifier", "text": "rpma_mr_dereg", "parent": 623, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 21}}, {"id": 625, "type": "argument_list", "text": "(&recv_mr)", "parent": 623, "children": [626], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 31}}, {"id": 626, "type": "pointer_expression", "text": "&recv_mr", "parent": 625, "children": [627], "start_point": {"row": 170, "column": 22}, "end_point": {"row": 170, "column": 30}}, {"id": 627, "type": "identifier", "text": "recv_mr", "parent": 626, "children": [], "start_point": {"row": 170, "column": 23}, "end_point": {"row": 170, "column": 30}}, {"id": 628, "type": "labeled_statement", "text": "err_peer_delete:\n\t/* delete the peer object */\n\tret |= rpma_peer_delete(&peer);", "parent": 81, "children": [629], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 174, "column": 32}}, {"id": 629, "type": "statement_identifier", "text": "err_peer_delete", "parent": 628, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 15}}, {"id": 630, "type": "assignment_expression", "text": "ret |= rpma_peer_delete(&peer)", "parent": 628, "children": [631, 632, 633], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 31}}, {"id": 631, "type": "identifier", "text": "ret", "parent": 630, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 4}}, {"id": 632, "type": "|=", "text": "|=", "parent": 630, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 7}}, {"id": 633, "type": "call_expression", "text": "rpma_peer_delete(&peer)", "parent": 630, "children": [634, 635], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 31}}, {"id": 634, "type": "identifier", "text": "rpma_peer_delete", "parent": 633, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 24}}, {"id": 635, "type": "argument_list", "text": "(&peer)", "parent": 633, "children": [636], "start_point": {"row": 174, "column": 24}, "end_point": {"row": 174, "column": 31}}, {"id": 636, "type": "pointer_expression", "text": "&peer", "parent": 635, "children": [637], "start_point": {"row": 174, "column": 25}, "end_point": {"row": 174, "column": 30}}, {"id": 637, "type": "identifier", "text": "peer", "parent": 636, "children": [], "start_point": {"row": 174, "column": 26}, "end_point": {"row": 174, "column": 30}}, {"id": 638, "type": "labeled_statement", "text": "err_mr_free:\n\t/* free the memory */\n\tfree(send);", "parent": 81, "children": [639], "start_point": {"row": 176, "column": 0}, "end_point": {"row": 178, "column": 12}}, {"id": 639, "type": "statement_identifier", "text": "err_mr_free", "parent": 638, "children": [], "start_point": {"row": 176, "column": 0}, "end_point": {"row": 176, "column": 11}}, {"id": 640, "type": "call_expression", "text": "free(send)", "parent": 638, "children": [641, 642], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 11}}, {"id": 641, "type": "identifier", "text": "free", "parent": 640, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 5}}, {"id": 642, "type": "argument_list", "text": "(send)", "parent": 640, "children": [643], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 11}}, {"id": 643, "type": "identifier", "text": "send", "parent": 642, "children": [], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 10}}, {"id": 644, "type": "call_expression", "text": "free(recv)", "parent": 81, "children": [645, 646], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 11}}, {"id": 645, "type": "identifier", "text": "free", "parent": 644, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 5}}, {"id": 646, "type": "argument_list", "text": "(recv)", "parent": 644, "children": [647], "start_point": {"row": 179, "column": 5}, "end_point": {"row": 179, "column": 11}}, {"id": 647, "type": "identifier", "text": "recv", "parent": 646, "children": [], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 10}}, {"id": 648, "type": "return_statement", "text": "return ret ? -1 : 0;", "parent": 81, "children": [649], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 21}}, {"id": 649, "type": "conditional_expression", "text": "ret ? -1 : 0", "parent": 648, "children": [650, 651, 652, 653], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 20}}, {"id": 650, "type": "identifier", "text": "ret", "parent": 649, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 11}}, {"id": 651, "type": "?", "text": "?", "parent": 649, "children": [], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 13}}, {"id": 652, "type": "number_literal", "text": "-1", "parent": 649, "children": [], "start_point": {"row": 181, "column": 14}, "end_point": {"row": 181, "column": 16}}, {"id": 653, "type": "number_literal", "text": "0", "parent": 649, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 20}}]}, "node_categories": {"declarations": {"functions": [31, 33, 81, 83], "variables": [36, 41, 86, 89, 123, 133, 143, 154, 165, 186, 189, 200, 211, 216, 226, 246, 405, 411], "classes": [190, 191, 201, 202, 212, 213, 217, 218], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [46, 54, 55, 56, 61, 65, 68, 75, 96, 97, 101, 106, 109, 113, 118, 130, 140, 148, 151, 159, 162, 172, 173, 180, 183, 233, 238, 239, 253, 258, 259, 264, 271, 272, 276, 280, 286, 287, 291, 298, 304, 305, 309, 316, 318, 321, 324, 330, 331, 335, 343, 349, 350, 354, 355, 359, 369, 372, 382, 388, 389, 393, 419, 420, 424, 432, 433, 437, 441, 447, 448, 449, 454, 457, 470, 471, 472, 483, 484, 485, 491, 492, 493, 494, 500, 501, 506, 509, 518, 521, 527, 541, 542, 543, 547, 551, 558, 561, 571, 572, 576, 579, 584, 592, 605, 608, 615, 618, 623, 626, 633, 636, 640, 644], "assignments": [177, 273, 288, 306, 332, 356, 381, 390, 421, 434, 463, 477, 531, 537, 555, 583, 589, 602, 612, 620, 630], "loops": [348], "conditionals": [29, 34, 40, 44, 47, 49, 53, 57, 59, 62, 64, 69, 71, 74, 76, 80, 84, 88, 94, 95, 98, 102, 104, 105, 107, 110, 114, 116, 117, 119, 121, 122, 128, 131, 138, 141, 146, 149, 152, 157, 160, 163, 168, 171, 174, 178, 181, 184, 188, 192, 196, 203, 207, 214, 215, 219, 222, 225, 231, 234, 236, 237, 240, 251, 254, 256, 257, 260, 265, 267, 270, 274, 277, 279, 281, 284, 285, 289, 292, 294, 295, 296, 297, 299, 302, 303, 307, 310, 312, 313, 314, 315, 317, 322, 325, 328, 329, 333, 336, 338, 339, 340, 344, 347, 352, 353, 357, 360, 362, 363, 365, 366, 373, 377, 380, 384, 386, 387, 391, 394, 396, 397, 399, 400, 408, 414, 418, 422, 425, 427, 431, 435, 438, 440, 442, 446, 450, 451, 453, 458, 460, 464, 469, 473, 474, 476, 478, 482, 486, 487, 489, 490, 495, 496, 498, 502, 503, 505, 510, 512, 515, 519, 520, 526, 528, 529, 530, 532, 538, 545, 549, 550, 552, 556, 560, 562, 566, 569, 570, 573, 580, 582, 586, 588, 590, 593, 595, 596, 598, 599, 603, 606, 609, 611, 613, 616, 619, 621, 624, 627, 629, 631, 634, 637, 639, 641, 643, 645, 647, 649, 650], "returns": [79, 244, 268, 648], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 52, 72, 78, 100, 108, 112, 132, 142, 153, 164, 170, 176, 185, 245, 269, 364, 375, 376, 378, 398, 410, 416, 461, 466, 480, 513, 514, 516, 534, 540, 564, 565, 567, 575, 597, 652, 653], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "static uint64_t\nstrtoul_noerror(const char *in)\n{\n\tuint64_t out = strtoul(in, NULL, 10);\n\tif (out =="}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "strtoul_noerror(const char *in)"}, {"node_id": 81, "universal_type": "function", "name": "main", "text_snippet": "int\nmain(int argc, char *argv[])\n{\n\t/* validate parameters */\n\tif (argc < 5) {\n\t\tfprintf(stderr, USA"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char *argv[])"}], "class_declarations": [{"node_id": 190, "universal_type": "class", "name": "rpma_peer", "text_snippet": "struct rpma_peer"}, {"node_id": 191, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 201, "universal_type": "class", "name": "rpma_conn", "text_snippet": "struct rpma_conn"}, {"node_id": 202, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 212, "universal_type": "class", "name": "rpma_completion", "text_snippet": "struct rpma_completion"}, {"node_id": 213, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 217, "universal_type": "class", "name": "rpma_mr_local", "text_snippet": "struct rpma_mr_local"}, {"node_id": 218, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <librpma.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <limits.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <inttypes.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 <stdio.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <sys/types.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <unistd.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"common-conn.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"messages-ping-pong-common.h\"\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "// SPDX-License-Identifier: BSD-3-Clause\n/* Copyright 2020, Intel Corporation */\n\n/*\n * client.c -- a client of the messages-ping-pong example\n *\n * Please see README.md for a detailed description of this example.\n */\n\n#include <librpma.h>\n#include <limits.h>\n#include <inttypes.h>\n#include <stdlib.h>\n#include <stdio.h>\n#include <sys/types.h>\n#include <unistd.h>\n\n#include \"common-conn.h\"\n#include \"messages-ping-pong-common.h\"\n\n#define USAGE_STR \"usage: %s <server_address> <port> <seed> <rounds> \" \\\n\t\t\"[<sleep>]\\n\"\n\nstatic uint64_t\nstrtoul_noerror(const char *in)\n{\n\tuint64_t out = strtoul(in, NULL, 10);\n\tif (out == ULONG_MAX && errno == ERANGE) {\n\t\t(void) fprintf(stderr, \"strtoul(%s) overflowed\\n\", in);\n\t\texit(-1);\n\t}\n\treturn out;\n}\n\nint\nmain(int argc, char *argv[])\n{\n\t/* validate parameters */\n\tif (argc < 5) {\n\t\tfprintf(stderr, USAGE_STR, argv[0]);\n\t\texit(-1);\n\t}\n\n\t/* configure logging thresholds to see more details */\n\trpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO);\n\trpma_log_set_threshold(RPMA_LOG_THRESHOLD_AUX, RPMA_LOG_LEVEL_INFO);\n\n\t/* read common parameters */\n\tchar *addr = argv[1];\n\tchar *port = argv[2];\n\tuint64_t cntr = strtoul_noerror(argv[3]);\n\tuint64_t rounds = strtoul_noerror(argv[4]);\n\tuint64_t sleep_usec = 0;\n\n\tif (argc == 6)\n\t\tsleep_usec = strtoul_noerror(argv[5]);\n\n\tint ret;\n\n\t/* RPMA resources - general */\n\tstruct rpma_peer *peer = NULL;\n\tstruct rpma_conn *conn = NULL;\n\tstruct rpma_completion cmpl;\n\n\t/* prepare memory */\n\tstruct rpma_mr_local *recv_mr, *send_mr;\n\tuint64_t *recv = malloc_aligned(MSG_SIZE);\n\tif (recv == NULL)\n\t\treturn -1;\n\tuint64_t *send = malloc_aligned(MSG_SIZE);\n\tif (send == NULL) {\n\t\tfree(recv);\n\t\treturn -1;\n\t}\n\n\t/*\n\t * lookup an ibv_context via the address and create a new peer using it\n\t */\n\tif ((ret = client_peer_via_address(addr, &peer)))\n\t\tgoto err_mr_free;\n\n\t/* register the memory */\n\tif ((ret = rpma_mr_reg(peer, recv, MSG_SIZE, RPMA_MR_USAGE_RECV,\n\t\t\t\t&recv_mr)))\n\t\tgoto err_peer_delete;\n\tif ((ret = rpma_mr_reg(peer, send, MSG_SIZE, RPMA_MR_USAGE_SEND,\n\t\t\t\t&send_mr))) {\n\t\t(void) rpma_mr_dereg(&recv_mr);\n\t\tgoto err_peer_delete;\n\t}\n\n\t/* establish a new connection to a server listening at addr:port */\n\tif ((ret = client_connect(peer, addr, port, NULL, &conn)))\n\t\tgoto err_mr_dereg;\n\n\twhile (--rounds) {\n\t\t/* prepare a receive for the server's response */\n\t\tif ((ret = rpma_recv(conn, recv_mr, 0, MSG_SIZE, recv)))\n\t\t\tbreak;\n\n\t\t/* send a message to the server */\n\t\t(void) printf(\"Value sent: %\" PRIu64 \"\\n\", cntr);\n\t\t*send = cntr;\n\t\tif ((ret = rpma_send(conn, send_mr, 0, MSG_SIZE,\n\t\t\t\t/*\n\t\t\t\t * XXX when using RPMA_F_COMPLETION_ON_ERROR\n\t\t\t\t * after few rounds rpma_send() returns ENOMEM.\n\t\t\t\t */\n\t\t\t\tRPMA_F_COMPLETION_ALWAYS, NULL)))\n\t\t\tbreak;\n\n\t\tint send_cmpl = 0;\n\t\tint recv_cmpl = 0;\n\n\t\tdo {\n\t\t\t/* prepare completions, get one and validate it */\n\t\t\tif ((ret = rpma_conn_completion_wait(conn))) {\n\t\t\t\tbreak;\n\t\t\t} else if ((ret = rpma_conn_completion_get(conn,\n\t\t\t\t\t&cmpl))) {\n\t\t\t\tbreak;\n\t\t\t} else if (cmpl.op_status != IBV_WC_SUCCESS) {\n\n\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\"Shutting down the client due to the unsuccessful completion of an operation.\\n\");\n\t\t\t\tret = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (cmpl.op == RPMA_OP_SEND) {\n\t\t\t\tsend_cmpl = 1;\n\t\t\t} else if (cmpl.op == RPMA_OP_RECV) {\n\t\t\t\tif (cmpl.op_context != recv ||\n\t\t\t\t\t\tcmpl.byte_len != MSG_SIZE) {\n\t\t\t\t\t(void) fprintf(stderr,\n\t\t\t\t\t\t\"received completion is not as expected (%p != %p [cmpl.op_context] || %\"\n\t\t\t\t\t\tPRIu32\n\t\t\t\t\t\t\" != %ld [cmpl.byte_len] )\\n\",\n\t\t\t\t\t\tcmpl.op_context, (void *)recv,\n\t\t\t\t\t\tcmpl.byte_len, MSG_SIZE);\n\t\t\t\t\tret = -1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\trecv_cmpl = 1;\n\t\t\t}\n\t\t} while (!send_cmpl || !recv_cmpl);\n\n\t\tif (ret)\n\t\t\tbreak;\n\n\t\t/* copy the new value of the counter and print it out */\n\t\tcntr = *recv;\n\t\tprintf(\"Value received: %\" PRIu64 \"\\n\", cntr);\n\n\t\t/* sleep if required */\n\t\tif (sleep_usec > 0)\n\t\t\t(void) usleep(sleep_usec);\n\t}\n\n\t/* send the I_M_DONE message */\n\t*send = I_M_DONE;\n\tret |= rpma_send(conn, send_mr, 0, MSG_SIZE, RPMA_F_COMPLETION_ON_ERROR,\n\t\t\tNULL);\n\n\tret |= common_disconnect_and_wait_for_conn_close(&conn);\n\nerr_mr_dereg:\n\t/* deregister the memory regions */\n\tret |= rpma_mr_dereg(&send_mr);\n\tret |= rpma_mr_dereg(&recv_mr);\n\nerr_peer_delete:\n\t/* delete the peer object */\n\tret |= rpma_peer_delete(&peer);\n\nerr_mr_free:\n\t/* free the memory */\n\tfree(send);\n\tfree(recv);\n\n\treturn ret ? -1 : 0;\n}\n"}
80,466
c
#pragma once namespace visNET{ class DLLEXPORT Packet { const uint32_t PacketSizeLength = sizeof(uint32_t); std::vector<uint8_t> m_Data; uint32_t m_Cursor; enum PSTATES { PS_INVALID, PS_CLEAR, PS_WRITABLE, PS_INRECEIVE, PS_READABLE, } m_PacketState; void setState(PSTATES packetState) { m_PacketState = packetState; } bool isState(PSTATES packetState) { return m_PacketState == packetState; } public: Packet(); virtual ~Packet(); private: void _write(const uint8_t* data, uint32_t dataSize); public: // If possible, use the predefined functions instead of directly writing to the buffer template<typename T> void write(const T* data, uint32_t dataSize) { _write(reinterpret_cast<const uint8_t*>(data), dataSize); } void writeInt8(int8_t n) { write(&n, sizeof(int8_t)); } void writeInt16(int16_t n) { write(&n, sizeof(int16_t)); } void writeInt32(int32_t n) { write(&n, sizeof(int32_t)); } void writeInt64(int64_t n) { write(&n, sizeof(int64_t)); } void writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); } void writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); } void writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); } void writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); } void writeFloat(float f) { write(&f, sizeof(float)); } void writeDouble(double d) { write(&d, sizeof(double)); } void writeBool(bool b) { write(&b, sizeof(bool)); } void writeString(const char* string); void writeString(std::string& string) { writeString(string.c_str()); } template <typename T> void writeBlobArray(BlobArray<T>& blob) { if (!isState(PS_WRITABLE) && !isState(PS_CLEAR)) return; writeUInt32(blob.size()); if (blob.size() > 0) write(blob.getPtr(0), blob.dataSize()); } // If possible, use the predefined readtypes instead of directly reading from the buffer private: bool _read(uint8_t* buffer, uint32_t bufferSize); public: template<typename T> bool read(T* buffer, uint32_t bufferSize) { return _read(reinterpret_cast<uint8_t*>(buffer), bufferSize); } // Skip an amount of bytes in the received packet bool readSkip(uint32_t skipSize); int8_t readInt8() { int8_t n = 0; read(&n, sizeof(int8_t)); return n; } int16_t readInt16() { int16_t n = 0; read(&n, sizeof(int16_t)); return n; } int32_t readInt32() { int32_t n = 0; read(&n, sizeof(int32_t)); return n; } int64_t readInt64() { int64_t n = 0; read(&n, sizeof(int64_t)); return n; } uint8_t readUInt8() { uint8_t n = 0; read(&n, sizeof(uint8_t)); return n; } uint16_t readUInt16() { uint16_t n = 0; read(&n, sizeof(int16_t)); return n; } uint32_t readUInt32() { uint32_t n = 0; read(&n, sizeof(uint32_t)); return n; } uint64_t readUInt64() { uint64_t n = 0; read(&n, sizeof(uint64_t)); return n; } float readFloat() { float f = 0.f; read(&f, sizeof(float)); return f; } double readDouble() { double d = 0.f; read(&d, sizeof(double)); return d; } bool readBool() { bool b = false; read(&b, sizeof(bool)); return b; } std::string readString(); template <typename T> std::shared_ptr<BlobArray<T>> readBlobArray(){ auto blob = std::make_shared<BlobArray<T>>(); if (!isState(PS_READABLE)) return nullptr; uint32_t itemCount = readUInt32(); if (!isState(PS_READABLE)) return nullptr; // Prevent reading out of bounds if (m_Cursor + (itemCount * sizeof(T)) > m_Data.size()) { setState(PS_INVALID); return nullptr; } if (itemCount > 0) blob->add((T*)(&m_Data[m_Cursor]), itemCount); m_Cursor += itemCount * sizeof(T); return blob; } bool isReadable() { return isState(PS_READABLE); } bool isValid() { return !isState(PS_INVALID); } bool isWritable() { return isState(PS_WRITABLE); } bool isTransfering() { return isState(PS_INRECEIVE); } // Put these near the bottom in intellisense // These _* functions shouldn't get called from any extern program except if declaring a custom packet type const uint8_t* _getRawData() { return &m_Data[0]; } const uint32_t _getRawSize() { return m_Data.size(); } // Return value of onReceive indicates if there is unread data remaining in the given buffer uint32_t _onReceive(uint8_t* data, uint32_t dataSize); bool _onSend(); //Gets called before being send std::shared_ptr<Packet> _copy(); }; }
29.18
147
(translation_unit) "#pragma once\n\nnamespace visNET{\n class DLLEXPORT Packet {\n const uint32_t PacketSizeLength = sizeof(uint32_t);\n\n std::vector<uint8_t> m_Data;\n uint32_t m_Cursor;\n\n enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n } m_PacketState;\n\n void setState(PSTATES packetState) { m_PacketState = packetState; }\n bool isState(PSTATES packetState) { return m_PacketState == packetState; }\n public:\n Packet();\n virtual ~Packet();\n\n private:\n void _write(const uint8_t* data, uint32_t dataSize);\n public:\n // If possible, use the predefined functions instead of directly writing to the buffer\n template<typename T>\n void write(const T* data, uint32_t dataSize) {\n _write(reinterpret_cast<const uint8_t*>(data), dataSize);\n }\n\n void writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }\n void writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }\n void writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }\n void writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }\n void writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }\n void writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }\n void writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }\n void writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }\n void writeFloat(float f) { write(&f, sizeof(float)); }\n void writeDouble(double d) { write(&d, sizeof(double)); }\n void writeBool(bool b) { write(&b, sizeof(bool)); }\n\n void writeString(const char* string);\n void writeString(std::string& string) { writeString(string.c_str()); }\n\n template <typename T>\n void writeBlobArray(BlobArray<T>& blob)\n {\n if (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n return;\n\n writeUInt32(blob.size());\n\n if (blob.size() > 0)\n write(blob.getPtr(0), blob.dataSize());\n }\n\n // If possible, use the predefined readtypes instead of directly reading from the buffer\n private:\n bool _read(uint8_t* buffer, uint32_t bufferSize);\n public:\n template<typename T>\n bool read(T* buffer, uint32_t bufferSize) {\n return _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);\n }\n\n // Skip an amount of bytes in the received packet\n bool readSkip(uint32_t skipSize);\n\n int8_t readInt8() {\n int8_t n = 0;\n read(&n, sizeof(int8_t));\n return n;\n }\n\n int16_t readInt16() {\n int16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }\n\n int32_t readInt32() {\n int32_t n = 0;\n read(&n, sizeof(int32_t));\n return n;\n }\n\n int64_t readInt64() {\n int64_t n = 0;\n read(&n, sizeof(int64_t));\n return n;\n }\n\n uint8_t readUInt8() {\n uint8_t n = 0;\n read(&n, sizeof(uint8_t));\n return n;\n }\n\n uint16_t readUInt16() {\n uint16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }\n\n uint32_t readUInt32() {\n uint32_t n = 0;\n read(&n, sizeof(uint32_t));\n return n;\n }\n\n uint64_t readUInt64() {\n uint64_t n = 0;\n read(&n, sizeof(uint64_t));\n return n;\n }\n\n float readFloat() {\n float f = 0.f;\n read(&f, sizeof(float));\n return f;\n }\n\n double readDouble() {\n double d = 0.f;\n read(&d, sizeof(double));\n return d;\n }\n\n bool readBool() {\n bool b = false;\n read(&b, sizeof(bool));\n return b;\n }\n\n std::string readString();\n\n template <typename T>\n std::shared_ptr<BlobArray<T>> readBlobArray(){\n auto blob = std::make_shared<BlobArray<T>>();\n if (!isState(PS_READABLE))\n return nullptr;\n\n uint32_t itemCount = readUInt32();\n if (!isState(PS_READABLE))\n return nullptr;\n\n // Prevent reading out of bounds\n if (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n {\n setState(PS_INVALID);\n return nullptr;\n }\n\n if (itemCount > 0)\n blob->add((T*)(&m_Data[m_Cursor]), itemCount);\n\n m_Cursor += itemCount * sizeof(T);\n\n return blob;\n }\n\n bool isReadable() { return isState(PS_READABLE); }\n bool isValid() { return !isState(PS_INVALID); }\n bool isWritable() { return isState(PS_WRITABLE); }\n bool isTransfering() { return isState(PS_INRECEIVE); }\n\n // Put these near the bottom in intellisense\n // These _* functions shouldn't get called from any extern program except if declaring a custom packet type\n const uint8_t* _getRawData() { return &m_Data[0]; }\n const uint32_t _getRawSize() { return m_Data.size(); }\n\n // Return value of onReceive indicates if there is unread data remaining in the given buffer\n uint32_t _onReceive(uint8_t* data, uint32_t dataSize);\n bool _onSend(); //Gets called before being send\n std::shared_ptr<Packet> _copy();\n };\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace visNET{\n class DLLEXPORT Packet {\n const uint32_t PacketSizeLength = sizeof(uint32_t);\n\n std::vector<uint8_t> m_Data;\n uint32_t m_Cursor;\n\n enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n } m_PacketState;\n\n void setState(PSTATES packetState) { m_PacketState = packetState; }\n bool isState(PSTATES packetState) { return m_PacketState == packetState; }\n public:\n Packet();\n virtual ~Packet();\n\n private:\n void _write(const uint8_t* data, uint32_t dataSize);\n public:\n // If possible, use the predefined functions instead of directly writing to the buffer\n template<typename T>\n void write(const T* data, uint32_t dataSize) {\n _write(reinterpret_cast<const uint8_t*>(data), dataSize);\n }\n\n void writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }\n void writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }\n void writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }\n void writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }\n void writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }\n void writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }\n void writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }\n void writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }\n void writeFloat(float f) { write(&f, sizeof(float)); }\n void writeDouble(double d) { write(&d, sizeof(double)); }\n void writeBool(bool b) { write(&b, sizeof(bool)); }\n\n void writeString(const char* string);\n void writeString(std::string& string) { writeString(string.c_str()); }\n\n template <typename T>\n void writeBlobArray(BlobArray<T>& blob)\n {\n if (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n return;\n\n writeUInt32(blob.size());\n\n if (blob.size() > 0)\n write(blob.getPtr(0), blob.dataSize());\n }\n\n // If possible, use the predefined readtypes instead of directly reading from the buffer\n private:\n bool _read(uint8_t* buffer, uint32_t bufferSize);\n public:\n template<typename T>\n bool read(T* buffer, uint32_t bufferSize) {\n return _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);\n }\n\n // Skip an amount of bytes in the received packet\n bool readSkip(uint32_t skipSize);\n\n int8_t readInt8() {\n int8_t n = 0;\n read(&n, sizeof(int8_t));\n return n;\n }\n\n int16_t readInt16() {\n int16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }\n\n int32_t readInt32() {\n int32_t n = 0;\n read(&n, sizeof(int32_t));\n return n;\n }\n\n int64_t readInt64() {\n int64_t n = 0;\n read(&n, sizeof(int64_t));\n return n;\n }\n\n uint8_t readUInt8() {\n uint8_t n = 0;\n read(&n, sizeof(uint8_t));\n return n;\n }\n\n uint16_t readUInt16() {\n uint16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }\n\n uint32_t readUInt32() {\n uint32_t n = 0;\n read(&n, sizeof(uint32_t));\n return n;\n }\n\n uint64_t readUInt64() {\n uint64_t n = 0;\n read(&n, sizeof(uint64_t));\n return n;\n }\n\n float readFloat() {\n float f = 0.f;\n read(&f, sizeof(float));\n return f;\n }\n\n double readDouble() {\n double d = 0.f;\n read(&d, sizeof(double));\n return d;\n }\n\n bool readBool() {\n bool b = false;\n read(&b, sizeof(bool));\n return b;\n }\n\n std::string readString();\n\n template <typename T>\n std::shared_ptr<BlobArray<T>> readBlobArray(){\n auto blob = std::make_shared<BlobArray<T>>();\n if (!isState(PS_READABLE))\n return nullptr;\n\n uint32_t itemCount = readUInt32();\n if (!isState(PS_READABLE))\n return nullptr;\n\n // Prevent reading out of bounds\n if (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n {\n setState(PS_INVALID);\n return nullptr;\n }\n\n if (itemCount > 0)\n blob->add((T*)(&m_Data[m_Cursor]), itemCount);\n\n m_Cursor += itemCount * sizeof(T);\n\n return blob;\n }\n\n bool isReadable() { return isState(PS_READABLE); }\n bool isValid() { return !isState(PS_INVALID); }\n bool isWritable() { return isState(PS_WRITABLE); }\n bool isTransfering() { return isState(PS_INRECEIVE); }\n\n // Put these near the bottom in intellisense\n // These _* functions shouldn't get called from any extern program except if declaring a custom packet type\n const uint8_t* _getRawData() { return &m_Data[0]; }\n const uint32_t _getRawSize() { return m_Data.size(); }\n\n // Return value of onReceive indicates if there is unread data remaining in the given buffer\n uint32_t _onReceive(uint8_t* data, uint32_t dataSize);\n bool _onSend(); //Gets called before being send\n std::shared_ptr<Packet> _copy();\n }" (type_identifier) "namespace" (identifier) "visNET" (compound_statement) "{\n class DLLEXPORT Packet {\n const uint32_t PacketSizeLength = sizeof(uint32_t);\n\n std::vector<uint8_t> m_Data;\n uint32_t m_Cursor;\n\n enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n } m_PacketState;\n\n void setState(PSTATES packetState) { m_PacketState = packetState; }\n bool isState(PSTATES packetState) { return m_PacketState == packetState; }\n public:\n Packet();\n virtual ~Packet();\n\n private:\n void _write(const uint8_t* data, uint32_t dataSize);\n public:\n // If possible, use the predefined functions instead of directly writing to the buffer\n template<typename T>\n void write(const T* data, uint32_t dataSize) {\n _write(reinterpret_cast<const uint8_t*>(data), dataSize);\n }\n\n void writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }\n void writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }\n void writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }\n void writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }\n void writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }\n void writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }\n void writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }\n void writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }\n void writeFloat(float f) { write(&f, sizeof(float)); }\n void writeDouble(double d) { write(&d, sizeof(double)); }\n void writeBool(bool b) { write(&b, sizeof(bool)); }\n\n void writeString(const char* string);\n void writeString(std::string& string) { writeString(string.c_str()); }\n\n template <typename T>\n void writeBlobArray(BlobArray<T>& blob)\n {\n if (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n return;\n\n writeUInt32(blob.size());\n\n if (blob.size() > 0)\n write(blob.getPtr(0), blob.dataSize());\n }\n\n // If possible, use the predefined readtypes instead of directly reading from the buffer\n private:\n bool _read(uint8_t* buffer, uint32_t bufferSize);\n public:\n template<typename T>\n bool read(T* buffer, uint32_t bufferSize) {\n return _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);\n }\n\n // Skip an amount of bytes in the received packet\n bool readSkip(uint32_t skipSize);\n\n int8_t readInt8() {\n int8_t n = 0;\n read(&n, sizeof(int8_t));\n return n;\n }\n\n int16_t readInt16() {\n int16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }\n\n int32_t readInt32() {\n int32_t n = 0;\n read(&n, sizeof(int32_t));\n return n;\n }\n\n int64_t readInt64() {\n int64_t n = 0;\n read(&n, sizeof(int64_t));\n return n;\n }\n\n uint8_t readUInt8() {\n uint8_t n = 0;\n read(&n, sizeof(uint8_t));\n return n;\n }\n\n uint16_t readUInt16() {\n uint16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }\n\n uint32_t readUInt32() {\n uint32_t n = 0;\n read(&n, sizeof(uint32_t));\n return n;\n }\n\n uint64_t readUInt64() {\n uint64_t n = 0;\n read(&n, sizeof(uint64_t));\n return n;\n }\n\n float readFloat() {\n float f = 0.f;\n read(&f, sizeof(float));\n return f;\n }\n\n double readDouble() {\n double d = 0.f;\n read(&d, sizeof(double));\n return d;\n }\n\n bool readBool() {\n bool b = false;\n read(&b, sizeof(bool));\n return b;\n }\n\n std::string readString();\n\n template <typename T>\n std::shared_ptr<BlobArray<T>> readBlobArray(){\n auto blob = std::make_shared<BlobArray<T>>();\n if (!isState(PS_READABLE))\n return nullptr;\n\n uint32_t itemCount = readUInt32();\n if (!isState(PS_READABLE))\n return nullptr;\n\n // Prevent reading out of bounds\n if (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n {\n setState(PS_INVALID);\n return nullptr;\n }\n\n if (itemCount > 0)\n blob->add((T*)(&m_Data[m_Cursor]), itemCount);\n\n m_Cursor += itemCount * sizeof(T);\n\n return blob;\n }\n\n bool isReadable() { return isState(PS_READABLE); }\n bool isValid() { return !isState(PS_INVALID); }\n bool isWritable() { return isState(PS_WRITABLE); }\n bool isTransfering() { return isState(PS_INRECEIVE); }\n\n // Put these near the bottom in intellisense\n // These _* functions shouldn't get called from any extern program except if declaring a custom packet type\n const uint8_t* _getRawData() { return &m_Data[0]; }\n const uint32_t _getRawSize() { return m_Data.size(); }\n\n // Return value of onReceive indicates if there is unread data remaining in the given buffer\n uint32_t _onReceive(uint8_t* data, uint32_t dataSize);\n bool _onSend(); //Gets called before being send\n std::shared_ptr<Packet> _copy();\n }" ({) "{" (function_definition) "class DLLEXPORT Packet {\n const uint32_t PacketSizeLength = sizeof(uint32_t);\n\n std::vector<uint8_t> m_Data;\n uint32_t m_Cursor;\n\n enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n } m_PacketState;\n\n void setState(PSTATES packetState) { m_PacketState = packetState; }\n bool isState(PSTATES packetState) { return m_PacketState == packetState; }\n public:\n Packet();\n virtual ~Packet();\n\n private:\n void _write(const uint8_t* data, uint32_t dataSize);\n public:\n // If possible, use the predefined functions instead of directly writing to the buffer\n template<typename T>\n void write(const T* data, uint32_t dataSize) {\n _write(reinterpret_cast<const uint8_t*>(data), dataSize);\n }" (type_identifier) "class" (identifier) "DLLEXPORT" (ERROR) "Packet" (identifier) "Packet" (compound_statement) "{\n const uint32_t PacketSizeLength = sizeof(uint32_t);\n\n std::vector<uint8_t> m_Data;\n uint32_t m_Cursor;\n\n enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n } m_PacketState;\n\n void setState(PSTATES packetState) { m_PacketState = packetState; }\n bool isState(PSTATES packetState) { return m_PacketState == packetState; }\n public:\n Packet();\n virtual ~Packet();\n\n private:\n void _write(const uint8_t* data, uint32_t dataSize);\n public:\n // If possible, use the predefined functions instead of directly writing to the buffer\n template<typename T>\n void write(const T* data, uint32_t dataSize) {\n _write(reinterpret_cast<const uint8_t*>(data), dataSize);\n }" ({) "{" (declaration) "const uint32_t PacketSizeLength = sizeof(uint32_t);" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "PacketSizeLength = sizeof(uint32_t)" (identifier) "PacketSizeLength" (=) "=" (sizeof_expression) "sizeof(uint32_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (;) ";" (labeled_statement) "std::vector<uint8_t> m_Data;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<uint8_t> m_Data;" (binary_expression) "vector<uint8_t> m_Data" (binary_expression) "vector<uint8_t" (identifier) "vector" (<) "<" (identifier) "uint8_t" (>) ">" (identifier) "m_Data" (;) ";" (declaration) "uint32_t m_Cursor;" (primitive_type) "uint32_t" (identifier) "m_Cursor" (;) ";" (declaration) "enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n } m_PacketState;" (enum_specifier) "enum PSTATES {\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n }" (enum) "enum" (type_identifier) "PSTATES" (enumerator_list) "{\n PS_INVALID,\n PS_CLEAR,\n PS_WRITABLE,\n PS_INRECEIVE,\n PS_READABLE,\n }" ({) "{" (enumerator) "PS_INVALID" (identifier) "PS_INVALID" (,) "," (enumerator) "PS_CLEAR" (identifier) "PS_CLEAR" (,) "," (enumerator) "PS_WRITABLE" (identifier) "PS_WRITABLE" (,) "," (enumerator) "PS_INRECEIVE" (identifier) "PS_INRECEIVE" (,) "," (enumerator) "PS_READABLE" (identifier) "PS_READABLE" (,) "," (}) "}" (identifier) "m_PacketState" (;) ";" (function_definition) "void setState(PSTATES packetState) { m_PacketState = packetState; }" (primitive_type) "void" (function_declarator) "setState(PSTATES packetState)" (identifier) "setState" (parameter_list) "(PSTATES packetState)" (() "(" (parameter_declaration) "PSTATES packetState" (type_identifier) "PSTATES" (identifier) "packetState" ()) ")" (compound_statement) "{ m_PacketState = packetState; }" ({) "{" (expression_statement) "m_PacketState = packetState;" (assignment_expression) "m_PacketState = packetState" (identifier) "m_PacketState" (=) "=" (identifier) "packetState" (;) ";" (}) "}" (function_definition) "bool isState(PSTATES packetState) { return m_PacketState == packetState; }" (primitive_type) "bool" (function_declarator) "isState(PSTATES packetState)" (identifier) "isState" (parameter_list) "(PSTATES packetState)" (() "(" (parameter_declaration) "PSTATES packetState" (type_identifier) "PSTATES" (identifier) "packetState" ()) ")" (compound_statement) "{ return m_PacketState == packetState; }" ({) "{" (return_statement) "return m_PacketState == packetState;" (return) "return" (binary_expression) "m_PacketState == packetState" (identifier) "m_PacketState" (==) "==" (identifier) "packetState" (;) ";" (}) "}" (labeled_statement) "public:\n Packet();" (statement_identifier) "public" (:) ":" (expression_statement) "Packet();" (call_expression) "Packet()" (identifier) "Packet" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~Packet();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Packet()" (identifier) "Packet" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n void _write(const uint8_t* data, uint32_t dataSize);" (statement_identifier) "private" (:) ":" (declaration) "void _write(const uint8_t* data, uint32_t dataSize);" (primitive_type) "void" (function_declarator) "_write(const uint8_t* data, uint32_t dataSize)" (identifier) "_write" (parameter_list) "(const uint8_t* data, uint32_t dataSize)" (() "(" (parameter_declaration) "const uint8_t* data" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (pointer_declarator) "* data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "uint32_t dataSize" (primitive_type) "uint32_t" (identifier) "dataSize" ()) ")" (;) ";" (labeled_statement) "public:\n // If possible, use the predefined functions instead of directly writing to the buffer\n template<typename T>\n void" (statement_identifier) "public" (:) ":" (comment) "// If possible, use the predefined functions instead of directly writing to the buffer" (expression_statement) "template<typename T>\n void" (binary_expression) "template<typename T>\n void" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "void" (;) "" (declaration) "write(const T* data, uint32_t dataSize) {\n _write(reinterpret_cast<const uint8_t*>(data), dataSize);" (macro_type_specifier) "write(const T*" (identifier) "write" (() "(" (type_descriptor) "const T*" (type_qualifier) "const" (const) "const" (type_identifier) "T" (abstract_pointer_declarator) "*" (*) "*" ()) "" (identifier) "data" (,) "," (ERROR) "uint32_t dataSize) {" (identifier) "uint32_t" (identifier) "dataSize" ()) ")" ({) "{" (function_declarator) "_write(reinterpret_cast<const uint8_t*>(data)" (identifier) "_write" (parameter_list) "(reinterpret_cast<const uint8_t*>(data)" (() "(" (parameter_declaration) "reinterpret_cast<const uint8_t" (type_identifier) "reinterpret_cast" (ERROR) "<" (<) "<" (type_qualifier) "const" (const) "const" (identifier) "uint8_t" (ERROR) "*>(data" (*) "*" (>) ">" (() "(" (identifier) "data" ()) ")" (,) "," (identifier) "dataSize" (ERROR) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }" (primitive_type) "void" (function_declarator) "writeInt8(int8_t n)" (identifier) "writeInt8" (parameter_list) "(int8_t n)" (() "(" (parameter_declaration) "int8_t n" (primitive_type) "int8_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(int8_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(int8_t));" (call_expression) "write(&n, sizeof(int8_t))" (identifier) "write" (argument_list) "(&n, sizeof(int8_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int8_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int8_t" (primitive_type) "int8_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }" (primitive_type) "void" (function_declarator) "writeInt16(int16_t n)" (identifier) "writeInt16" (parameter_list) "(int16_t n)" (() "(" (parameter_declaration) "int16_t n" (primitive_type) "int16_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(int16_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(int16_t));" (call_expression) "write(&n, sizeof(int16_t))" (identifier) "write" (argument_list) "(&n, sizeof(int16_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int16_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int16_t" (primitive_type) "int16_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }" (primitive_type) "void" (function_declarator) "writeInt32(int32_t n)" (identifier) "writeInt32" (parameter_list) "(int32_t n)" (() "(" (parameter_declaration) "int32_t n" (primitive_type) "int32_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(int32_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(int32_t));" (call_expression) "write(&n, sizeof(int32_t))" (identifier) "write" (argument_list) "(&n, sizeof(int32_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int32_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int32_t" (primitive_type) "int32_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }" (primitive_type) "void" (function_declarator) "writeInt64(int64_t n)" (identifier) "writeInt64" (parameter_list) "(int64_t n)" (() "(" (parameter_declaration) "int64_t n" (primitive_type) "int64_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(int64_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(int64_t));" (call_expression) "write(&n, sizeof(int64_t))" (identifier) "write" (argument_list) "(&n, sizeof(int64_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int64_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int64_t" (primitive_type) "int64_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }" (primitive_type) "void" (function_declarator) "writeUInt8(uint8_t n)" (identifier) "writeUInt8" (parameter_list) "(uint8_t n)" (() "(" (parameter_declaration) "uint8_t n" (primitive_type) "uint8_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(uint8_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(uint8_t));" (call_expression) "write(&n, sizeof(uint8_t))" (identifier) "write" (argument_list) "(&n, sizeof(uint8_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(uint8_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint8_t" (primitive_type) "uint8_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }" (primitive_type) "void" (function_declarator) "writeUInt16(uint16_t n)" (identifier) "writeUInt16" (parameter_list) "(uint16_t n)" (() "(" (parameter_declaration) "uint16_t n" (primitive_type) "uint16_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(uint16_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(uint16_t));" (call_expression) "write(&n, sizeof(uint16_t))" (identifier) "write" (argument_list) "(&n, sizeof(uint16_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(uint16_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint16_t" (primitive_type) "uint16_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }" (primitive_type) "void" (function_declarator) "writeUInt32(uint32_t n)" (identifier) "writeUInt32" (parameter_list) "(uint32_t n)" (() "(" (parameter_declaration) "uint32_t n" (primitive_type) "uint32_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(uint32_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(uint32_t));" (call_expression) "write(&n, sizeof(uint32_t))" (identifier) "write" (argument_list) "(&n, sizeof(uint32_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(uint32_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }" (primitive_type) "void" (function_declarator) "writeUInt64(uint64_t n)" (identifier) "writeUInt64" (parameter_list) "(uint64_t n)" (() "(" (parameter_declaration) "uint64_t n" (primitive_type) "uint64_t" (identifier) "n" ()) ")" (compound_statement) "{ write(&n, sizeof(uint64_t)); }" ({) "{" (expression_statement) "write(&n, sizeof(uint64_t));" (call_expression) "write(&n, sizeof(uint64_t))" (identifier) "write" (argument_list) "(&n, sizeof(uint64_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(uint64_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint64_t" (primitive_type) "uint64_t" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeFloat(float f) { write(&f, sizeof(float)); }" (primitive_type) "void" (function_declarator) "writeFloat(float f)" (identifier) "writeFloat" (parameter_list) "(float f)" (() "(" (parameter_declaration) "float f" (primitive_type) "float" (identifier) "f" ()) ")" (compound_statement) "{ write(&f, sizeof(float)); }" ({) "{" (expression_statement) "write(&f, sizeof(float));" (call_expression) "write(&f, sizeof(float))" (identifier) "write" (argument_list) "(&f, sizeof(float))" (() "(" (pointer_expression) "&f" (&) "&" (identifier) "f" (,) "," (sizeof_expression) "sizeof(float)" (sizeof) "sizeof" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeDouble(double d) { write(&d, sizeof(double)); }" (primitive_type) "void" (function_declarator) "writeDouble(double d)" (identifier) "writeDouble" (parameter_list) "(double d)" (() "(" (parameter_declaration) "double d" (primitive_type) "double" (identifier) "d" ()) ")" (compound_statement) "{ write(&d, sizeof(double)); }" ({) "{" (expression_statement) "write(&d, sizeof(double));" (call_expression) "write(&d, sizeof(double))" (identifier) "write" (argument_list) "(&d, sizeof(double))" (() "(" (pointer_expression) "&d" (&) "&" (identifier) "d" (,) "," (sizeof_expression) "sizeof(double)" (sizeof) "sizeof" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void writeBool(bool b) { write(&b, sizeof(bool)); }" (primitive_type) "void" (function_declarator) "writeBool(bool b)" (identifier) "writeBool" (parameter_list) "(bool b)" (() "(" (parameter_declaration) "bool b" (primitive_type) "bool" (identifier) "b" ()) ")" (compound_statement) "{ write(&b, sizeof(bool)); }" ({) "{" (expression_statement) "write(&b, sizeof(bool));" (call_expression) "write(&b, sizeof(bool))" (identifier) "write" (argument_list) "(&b, sizeof(bool))" (() "(" (pointer_expression) "&b" (&) "&" (identifier) "b" (,) "," (sizeof_expression) "sizeof(bool)" (sizeof) "sizeof" (() "(" (type_descriptor) "bool" (primitive_type) "bool" ()) ")" ()) ")" (;) ";" (}) "}" (declaration) "void writeString(const char* string);" (primitive_type) "void" (function_declarator) "writeString(const char* string)" (identifier) "writeString" (parameter_list) "(const char* string)" (() "(" (parameter_declaration) "const char* string" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* string" (*) "*" (identifier) "string" ()) ")" (;) ";" (function_definition) "void writeString(std::string& string) { writeString(string.c_str()); }" (primitive_type) "void" (function_declarator) "writeString(std::string& string)" (identifier) "writeString" (parameter_list) "(std::string& string)" (() "(" (parameter_declaration) "std::string& string" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "string" ()) ")" (compound_statement) "{ writeString(string.c_str()); }" ({) "{" (expression_statement) "writeString(string.c_str());" (call_expression) "writeString(string.c_str())" (identifier) "writeString" (argument_list) "(string.c_str())" (() "(" (call_expression) "string.c_str()" (field_expression) "string.c_str" (identifier) "string" (.) "." (field_identifier) "c_str" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "template <typename T>\n void writeBlobArray(BlobArray<T>& blob)" (binary_expression) "template <typename T>\n void writeBlobArray(BlobArray<T>& blob)" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "void" (identifier) "void" (call_expression) "writeBlobArray(BlobArray<T>& blob)" (identifier) "writeBlobArray" (argument_list) "(BlobArray<T>& blob)" (() "(" (binary_expression) "BlobArray<T>& blob" (binary_expression) "BlobArray<T" (identifier) "BlobArray" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "& blob" (&) "&" (identifier) "blob" ()) ")" (;) "" (compound_statement) "{\n if (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n return;\n\n writeUInt32(blob.size());\n\n if (blob.size() > 0)\n write(blob.getPtr(0), blob.dataSize());\n }" ({) "{" (if_statement) "if (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n return;" (if) "if" (parenthesized_expression) "(!isState(PS_WRITABLE) && !isState(PS_CLEAR))" (() "(" (binary_expression) "!isState(PS_WRITABLE) && !isState(PS_CLEAR)" (unary_expression) "!isState(PS_WRITABLE)" (!) "!" (call_expression) "isState(PS_WRITABLE)" (identifier) "isState" (argument_list) "(PS_WRITABLE)" (() "(" (identifier) "PS_WRITABLE" ()) ")" (&&) "&&" (unary_expression) "!isState(PS_CLEAR)" (!) "!" (call_expression) "isState(PS_CLEAR)" (identifier) "isState" (argument_list) "(PS_CLEAR)" (() "(" (identifier) "PS_CLEAR" ()) ")" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (expression_statement) "writeUInt32(blob.size());" (call_expression) "writeUInt32(blob.size())" (identifier) "writeUInt32" (argument_list) "(blob.size())" (() "(" (call_expression) "blob.size()" (field_expression) "blob.size" (identifier) "blob" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (if_statement) "if (blob.size() > 0)\n write(blob.getPtr(0), blob.dataSize());" (if) "if" (parenthesized_expression) "(blob.size() > 0)" (() "(" (binary_expression) "blob.size() > 0" (call_expression) "blob.size()" (field_expression) "blob.size" (identifier) "blob" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (>) ">" (number_literal) "0" ()) ")" (expression_statement) "write(blob.getPtr(0), blob.dataSize());" (call_expression) "write(blob.getPtr(0), blob.dataSize())" (identifier) "write" (argument_list) "(blob.getPtr(0), blob.dataSize())" (() "(" (call_expression) "blob.getPtr(0)" (field_expression) "blob.getPtr" (identifier) "blob" (.) "." (field_identifier) "getPtr" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "blob.dataSize()" (field_expression) "blob.dataSize" (identifier) "blob" (.) "." (field_identifier) "dataSize" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "// If possible, use the predefined readtypes instead of directly reading from the buffer" (labeled_statement) "private:\n bool _read(uint8_t* buffer, uint32_t bufferSize);" (statement_identifier) "private" (:) ":" (declaration) "bool _read(uint8_t* buffer, uint32_t bufferSize);" (primitive_type) "bool" (function_declarator) "_read(uint8_t* buffer, uint32_t bufferSize)" (identifier) "_read" (parameter_list) "(uint8_t* buffer, uint32_t bufferSize)" (() "(" (parameter_declaration) "uint8_t* buffer" (primitive_type) "uint8_t" (pointer_declarator) "* buffer" (*) "*" (identifier) "buffer" (,) "," (parameter_declaration) "uint32_t bufferSize" (primitive_type) "uint32_t" (identifier) "bufferSize" ()) ")" (;) ";" (labeled_statement) "public:\n template<typename T>\n bool read(T* buffer, uint32_t bufferSize)" (statement_identifier) "public" (:) ":" (expression_statement) "template<typename T>\n bool read(T* buffer, uint32_t bufferSize)" (binary_expression) "template<typename T>\n bool read(T* buffer, uint32_t bufferSize)" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "bool" (identifier) "bool" (call_expression) "read(T* buffer, uint32_t bufferSize)" (identifier) "read" (argument_list) "(T* buffer, uint32_t bufferSize)" (() "(" (binary_expression) "T* buffer" (identifier) "T" (*) "*" (identifier) "buffer" (,) "," (ERROR) "uint32_t" (identifier) "uint32_t" (identifier) "bufferSize" ()) ")" (;) "" (compound_statement) "{\n return _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);\n }" ({) "{" (return_statement) "return _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);" (return) "return" (call_expression) "_read(reinterpret_cast<uint8_t*>(buffer), bufferSize)" (identifier) "_read" (argument_list) "(reinterpret_cast<uint8_t*>(buffer), bufferSize)" (() "(" (binary_expression) "reinterpret_cast<uint8_t*>(buffer)" (binary_expression) "reinterpret_cast<uint8_t" (identifier) "reinterpret_cast" (<) "<" (identifier) "uint8_t" (ERROR) "*" (*) "*" (>) ">" (parenthesized_expression) "(buffer)" (() "(" (identifier) "buffer" ()) ")" (,) "," (identifier) "bufferSize" ()) ")" (;) ";" (}) "}" (comment) "// Skip an amount of bytes in the received packet" (declaration) "bool readSkip(uint32_t skipSize);" (primitive_type) "bool" (function_declarator) "readSkip(uint32_t skipSize)" (identifier) "readSkip" (parameter_list) "(uint32_t skipSize)" (() "(" (parameter_declaration) "uint32_t skipSize" (primitive_type) "uint32_t" (identifier) "skipSize" ()) ")" (;) ";" (function_definition) "int8_t readInt8() {\n int8_t n = 0;\n read(&n, sizeof(int8_t));\n return n;\n }" (primitive_type) "int8_t" (function_declarator) "readInt8()" (identifier) "readInt8" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int8_t n = 0;\n read(&n, sizeof(int8_t));\n return n;\n }" ({) "{" (declaration) "int8_t n = 0;" (primitive_type) "int8_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(int8_t));" (call_expression) "read(&n, sizeof(int8_t))" (identifier) "read" (argument_list) "(&n, sizeof(int8_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int8_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int8_t" (primitive_type) "int8_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "int16_t readInt16() {\n int16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }" (primitive_type) "int16_t" (function_declarator) "readInt16()" (identifier) "readInt16" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }" ({) "{" (declaration) "int16_t n = 0;" (primitive_type) "int16_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(int16_t));" (call_expression) "read(&n, sizeof(int16_t))" (identifier) "read" (argument_list) "(&n, sizeof(int16_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int16_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int16_t" (primitive_type) "int16_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "int32_t readInt32() {\n int32_t n = 0;\n read(&n, sizeof(int32_t));\n return n;\n }" (primitive_type) "int32_t" (function_declarator) "readInt32()" (identifier) "readInt32" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int32_t n = 0;\n read(&n, sizeof(int32_t));\n return n;\n }" ({) "{" (declaration) "int32_t n = 0;" (primitive_type) "int32_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(int32_t));" (call_expression) "read(&n, sizeof(int32_t))" (identifier) "read" (argument_list) "(&n, sizeof(int32_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int32_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int32_t" (primitive_type) "int32_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "int64_t readInt64() {\n int64_t n = 0;\n read(&n, sizeof(int64_t));\n return n;\n }" (primitive_type) "int64_t" (function_declarator) "readInt64()" (identifier) "readInt64" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int64_t n = 0;\n read(&n, sizeof(int64_t));\n return n;\n }" ({) "{" (declaration) "int64_t n = 0;" (primitive_type) "int64_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(int64_t));" (call_expression) "read(&n, sizeof(int64_t))" (identifier) "read" (argument_list) "(&n, sizeof(int64_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int64_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int64_t" (primitive_type) "int64_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "uint8_t readUInt8() {\n uint8_t n = 0;\n read(&n, sizeof(uint8_t));\n return n;\n }" (primitive_type) "uint8_t" (function_declarator) "readUInt8()" (identifier) "readUInt8" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n uint8_t n = 0;\n read(&n, sizeof(uint8_t));\n return n;\n }" ({) "{" (declaration) "uint8_t n = 0;" (primitive_type) "uint8_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(uint8_t));" (call_expression) "read(&n, sizeof(uint8_t))" (identifier) "read" (argument_list) "(&n, sizeof(uint8_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(uint8_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint8_t" (primitive_type) "uint8_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "uint16_t readUInt16() {\n uint16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }" (primitive_type) "uint16_t" (function_declarator) "readUInt16()" (identifier) "readUInt16" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n uint16_t n = 0;\n read(&n, sizeof(int16_t));\n return n;\n }" ({) "{" (declaration) "uint16_t n = 0;" (primitive_type) "uint16_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(int16_t));" (call_expression) "read(&n, sizeof(int16_t))" (identifier) "read" (argument_list) "(&n, sizeof(int16_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(int16_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "int16_t" (primitive_type) "int16_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "uint32_t readUInt32() {\n uint32_t n = 0;\n read(&n, sizeof(uint32_t));\n return n;\n }" (primitive_type) "uint32_t" (function_declarator) "readUInt32()" (identifier) "readUInt32" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n uint32_t n = 0;\n read(&n, sizeof(uint32_t));\n return n;\n }" ({) "{" (declaration) "uint32_t n = 0;" (primitive_type) "uint32_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(uint32_t));" (call_expression) "read(&n, sizeof(uint32_t))" (identifier) "read" (argument_list) "(&n, sizeof(uint32_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(uint32_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "uint64_t readUInt64() {\n uint64_t n = 0;\n read(&n, sizeof(uint64_t));\n return n;\n }" (primitive_type) "uint64_t" (function_declarator) "readUInt64()" (identifier) "readUInt64" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n uint64_t n = 0;\n read(&n, sizeof(uint64_t));\n return n;\n }" ({) "{" (declaration) "uint64_t n = 0;" (primitive_type) "uint64_t" (init_declarator) "n = 0" (identifier) "n" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "read(&n, sizeof(uint64_t));" (call_expression) "read(&n, sizeof(uint64_t))" (identifier) "read" (argument_list) "(&n, sizeof(uint64_t))" (() "(" (pointer_expression) "&n" (&) "&" (identifier) "n" (,) "," (sizeof_expression) "sizeof(uint64_t)" (sizeof) "sizeof" (() "(" (type_descriptor) "uint64_t" (primitive_type) "uint64_t" ()) ")" ()) ")" (;) ";" (return_statement) "return n;" (return) "return" (identifier) "n" (;) ";" (}) "}" (function_definition) "float readFloat() {\n float f = 0.f;\n read(&f, sizeof(float));\n return f;\n }" (primitive_type) "float" (function_declarator) "readFloat()" (identifier) "readFloat" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n float f = 0.f;\n read(&f, sizeof(float));\n return f;\n }" ({) "{" (declaration) "float f = 0.f;" (primitive_type) "float" (init_declarator) "f = 0.f" (identifier) "f" (=) "=" (number_literal) "0.f" (;) ";" (expression_statement) "read(&f, sizeof(float));" (call_expression) "read(&f, sizeof(float))" (identifier) "read" (argument_list) "(&f, sizeof(float))" (() "(" (pointer_expression) "&f" (&) "&" (identifier) "f" (,) "," (sizeof_expression) "sizeof(float)" (sizeof) "sizeof" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" ()) ")" (;) ";" (return_statement) "return f;" (return) "return" (identifier) "f" (;) ";" (}) "}" (function_definition) "double readDouble() {\n double d = 0.f;\n read(&d, sizeof(double));\n return d;\n }" (primitive_type) "double" (function_declarator) "readDouble()" (identifier) "readDouble" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n double d = 0.f;\n read(&d, sizeof(double));\n return d;\n }" ({) "{" (declaration) "double d = 0.f;" (primitive_type) "double" (init_declarator) "d = 0.f" (identifier) "d" (=) "=" (number_literal) "0.f" (;) ";" (expression_statement) "read(&d, sizeof(double));" (call_expression) "read(&d, sizeof(double))" (identifier) "read" (argument_list) "(&d, sizeof(double))" (() "(" (pointer_expression) "&d" (&) "&" (identifier) "d" (,) "," (sizeof_expression) "sizeof(double)" (sizeof) "sizeof" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" ()) ")" (;) ";" (return_statement) "return d;" (return) "return" (identifier) "d" (;) ";" (}) "}" (function_definition) "bool readBool() {\n bool b = false;\n read(&b, sizeof(bool));\n return b;\n }" (primitive_type) "bool" (function_declarator) "readBool()" (identifier) "readBool" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n bool b = false;\n read(&b, sizeof(bool));\n return b;\n }" ({) "{" (declaration) "bool b = false;" (primitive_type) "bool" (init_declarator) "b = false" (identifier) "b" (=) "=" (false) "false" (;) ";" (expression_statement) "read(&b, sizeof(bool));" (call_expression) "read(&b, sizeof(bool))" (identifier) "read" (argument_list) "(&b, sizeof(bool))" (() "(" (pointer_expression) "&b" (&) "&" (identifier) "b" (,) "," (sizeof_expression) "sizeof(bool)" (sizeof) "sizeof" (() "(" (type_descriptor) "bool" (primitive_type) "bool" ()) ")" ()) ")" (;) ";" (return_statement) "return b;" (return) "return" (identifier) "b" (;) ";" (}) "}" (labeled_statement) "std::string readString();" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string readString();" (type_identifier) "string" (function_declarator) "readString()" (identifier) "readString" (parameter_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "template <typename T>\n std::shared_ptr<BlobArray<T>> readBlobArray()" (binary_expression) "template <typename T>\n std::shared_ptr<BlobArray<T>> readBlobArray()" (binary_expression) "template <typename T>\n std::shared_ptr<BlobArray" (binary_expression) "template <typename T>\n std" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "std" (ERROR) "::shared_ptr" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "BlobArray" (<) "<" (binary_expression) "T>> readBlobArray()" (identifier) "T" (>>) ">>" (call_expression) "readBlobArray()" (identifier) "readBlobArray" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n auto blob = std::make_shared<BlobArray<T>>();\n if (!isState(PS_READABLE))\n return nullptr;\n\n uint32_t itemCount = readUInt32();\n if (!isState(PS_READABLE))\n return nullptr;\n\n // Prevent reading out of bounds\n if (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n {\n setState(PS_INVALID);\n return nullptr;\n }\n\n if (itemCount > 0)\n blob->add((T*)(&m_Data[m_Cursor]), itemCount);\n\n m_Cursor += itemCount * sizeof(T);\n\n return blob;\n }" ({) "{" (declaration) "auto blob = std::make_shared<BlobArray<T>>();" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "blob" (ERROR) "= std::make_shared<BlobArray<" (=) "=" (identifier) "std" (:) ":" (:) ":" (identifier) "make_shared" (<) "<" (identifier) "BlobArray" (<) "<" (identifier) "T" (ERROR) ">>()" (>>) ">>" (() "(" ()) ")" (;) ";" (if_statement) "if (!isState(PS_READABLE))\n return nullptr;" (if) "if" (parenthesized_expression) "(!isState(PS_READABLE))" (() "(" (unary_expression) "!isState(PS_READABLE)" (!) "!" (call_expression) "isState(PS_READABLE)" (identifier) "isState" (argument_list) "(PS_READABLE)" (() "(" (identifier) "PS_READABLE" ()) ")" ()) ")" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "uint32_t itemCount = readUInt32();" (primitive_type) "uint32_t" (init_declarator) "itemCount = readUInt32()" (identifier) "itemCount" (=) "=" (call_expression) "readUInt32()" (identifier) "readUInt32" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if (!isState(PS_READABLE))\n return nullptr;" (if) "if" (parenthesized_expression) "(!isState(PS_READABLE))" (() "(" (unary_expression) "!isState(PS_READABLE)" (!) "!" (call_expression) "isState(PS_READABLE)" (identifier) "isState" (argument_list) "(PS_READABLE)" (() "(" (identifier) "PS_READABLE" ()) ")" ()) ")" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (comment) "// Prevent reading out of bounds" (if_statement) "if (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n {\n setState(PS_INVALID);\n return nullptr;\n }" (if) "if" (parenthesized_expression) "(m_Cursor + (itemCount * sizeof(T)) > m_Data.size())" (() "(" (binary_expression) "m_Cursor + (itemCount * sizeof(T)) > m_Data.size()" (binary_expression) "m_Cursor + (itemCount * sizeof(T))" (identifier) "m_Cursor" (+) "+" (parenthesized_expression) "(itemCount * sizeof(T))" (() "(" (binary_expression) "itemCount * sizeof(T)" (identifier) "itemCount" (*) "*" (sizeof_expression) "sizeof(T)" (sizeof) "sizeof" (parenthesized_expression) "(T)" (() "(" (identifier) "T" ()) ")" ()) ")" (>) ">" (call_expression) "m_Data.size()" (field_expression) "m_Data.size" (identifier) "m_Data" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n setState(PS_INVALID);\n return nullptr;\n }" ({) "{" (expression_statement) "setState(PS_INVALID);" (call_expression) "setState(PS_INVALID)" (identifier) "setState" (argument_list) "(PS_INVALID)" (() "(" (identifier) "PS_INVALID" ()) ")" (;) ";" (return_statement) "return nullptr;" (return) "return" (null) "nullptr" (nullptr) "nullptr" (;) ";" (}) "}" (if_statement) "if (itemCount > 0)\n blob->add((T*)(&m_Data[m_Cursor]), itemCount);" (if) "if" (parenthesized_expression) "(itemCount > 0)" (() "(" (binary_expression) "itemCount > 0" (identifier) "itemCount" (>) ">" (number_literal) "0" ()) ")" (expression_statement) "blob->add((T*)(&m_Data[m_Cursor]), itemCount);" (call_expression) "blob->add((T*)(&m_Data[m_Cursor]), itemCount)" (field_expression) "blob->add" (identifier) "blob" (->) "->" (field_identifier) "add" (argument_list) "((T*)(&m_Data[m_Cursor]), itemCount)" (() "(" (cast_expression) "(T*)(&m_Data[m_Cursor])" (() "(" (type_descriptor) "T*" (type_identifier) "T" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(&m_Data[m_Cursor])" (() "(" (pointer_expression) "&m_Data[m_Cursor]" (&) "&" (subscript_expression) "m_Data[m_Cursor]" (identifier) "m_Data" ([) "[" (identifier) "m_Cursor" (]) "]" ()) ")" (,) "," (identifier) "itemCount" ()) ")" (;) ";" (expression_statement) "m_Cursor += itemCount * sizeof(T);" (assignment_expression) "m_Cursor += itemCount * sizeof(T)" (identifier) "m_Cursor" (+=) "+=" (binary_expression) "itemCount * sizeof(T)" (identifier) "itemCount" (*) "*" (sizeof_expression) "sizeof(T)" (sizeof) "sizeof" (parenthesized_expression) "(T)" (() "(" (identifier) "T" ()) ")" (;) ";" (return_statement) "return blob;" (return) "return" (identifier) "blob" (;) ";" (}) "}" (function_definition) "bool isReadable() { return isState(PS_READABLE); }" (primitive_type) "bool" (function_declarator) "isReadable()" (identifier) "isReadable" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return isState(PS_READABLE); }" ({) "{" (return_statement) "return isState(PS_READABLE);" (return) "return" (call_expression) "isState(PS_READABLE)" (identifier) "isState" (argument_list) "(PS_READABLE)" (() "(" (identifier) "PS_READABLE" ()) ")" (;) ";" (}) "}" (function_definition) "bool isValid() { return !isState(PS_INVALID); }" (primitive_type) "bool" (function_declarator) "isValid()" (identifier) "isValid" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return !isState(PS_INVALID); }" ({) "{" (return_statement) "return !isState(PS_INVALID);" (return) "return" (unary_expression) "!isState(PS_INVALID)" (!) "!" (call_expression) "isState(PS_INVALID)" (identifier) "isState" (argument_list) "(PS_INVALID)" (() "(" (identifier) "PS_INVALID" ()) ")" (;) ";" (}) "}" (function_definition) "bool isWritable() { return isState(PS_WRITABLE); }" (primitive_type) "bool" (function_declarator) "isWritable()" (identifier) "isWritable" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return isState(PS_WRITABLE); }" ({) "{" (return_statement) "return isState(PS_WRITABLE);" (return) "return" (call_expression) "isState(PS_WRITABLE)" (identifier) "isState" (argument_list) "(PS_WRITABLE)" (() "(" (identifier) "PS_WRITABLE" ()) ")" (;) ";" (}) "}" (function_definition) "bool isTransfering() { return isState(PS_INRECEIVE); }" (primitive_type) "bool" (function_declarator) "isTransfering()" (identifier) "isTransfering" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return isState(PS_INRECEIVE); }" ({) "{" (return_statement) "return isState(PS_INRECEIVE);" (return) "return" (call_expression) "isState(PS_INRECEIVE)" (identifier) "isState" (argument_list) "(PS_INRECEIVE)" (() "(" (identifier) "PS_INRECEIVE" ()) ")" (;) ";" (}) "}" (comment) "// Put these near the bottom in intellisense" (comment) "// These _* functions shouldn't get called from any extern program except if declaring a custom packet type" (function_definition) "const uint8_t* _getRawData() { return &m_Data[0]; }" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (pointer_declarator) "* _getRawData()" (*) "*" (function_declarator) "_getRawData()" (identifier) "_getRawData" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return &m_Data[0]; }" ({) "{" (return_statement) "return &m_Data[0];" (return) "return" (pointer_expression) "&m_Data[0]" (&) "&" (subscript_expression) "m_Data[0]" (identifier) "m_Data" ([) "[" (number_literal) "0" (]) "]" (;) ";" (}) "}" (function_definition) "const uint32_t _getRawSize() { return m_Data.size(); }" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (function_declarator) "_getRawSize()" (identifier) "_getRawSize" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return m_Data.size(); }" ({) "{" (return_statement) "return m_Data.size();" (return) "return" (call_expression) "m_Data.size()" (field_expression) "m_Data.size" (identifier) "m_Data" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// Return value of onReceive indicates if there is unread data remaining in the given buffer" (declaration) "uint32_t _onReceive(uint8_t* data, uint32_t dataSize);" (primitive_type) "uint32_t" (function_declarator) "_onReceive(uint8_t* data, uint32_t dataSize)" (identifier) "_onReceive" (parameter_list) "(uint8_t* data, uint32_t dataSize)" (() "(" (parameter_declaration) "uint8_t* data" (primitive_type) "uint8_t" (pointer_declarator) "* data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "uint32_t dataSize" (primitive_type) "uint32_t" (identifier) "dataSize" ()) ")" (;) ";" (declaration) "bool _onSend();" (primitive_type) "bool" (function_declarator) "_onSend()" (identifier) "_onSend" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "//Gets called before being send" (labeled_statement) "std::shared_ptr<Packet> _copy();" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "shared_ptr<Packet> _copy();" (binary_expression) "shared_ptr<Packet> _copy()" (binary_expression) "shared_ptr<Packet" (identifier) "shared_ptr" (<) "<" (identifier) "Packet" (>) ">" (call_expression) "_copy()" (identifier) "_copy" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}"
1,592
22
{"language": "c", "success": true, "metadata": {"lines": 147, "avg_line_length": 29.18, "nodes": 919, "errors": 0, "source_hash": "1e797bed35a8ae4d4c875f53f4852828aa1cb635e3e85630748d93aca9deb559", "categorized_nodes": 593}, "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": "function_definition", "text": "namespace visNET{\n\tclass DLLEXPORT Packet {\n\t\tconst uint32_t PacketSizeLength = sizeof(uint32_t);\n\n\t\tstd::vector<uint8_t> m_Data;\n\t\tuint32_t m_Cursor;\n\n\t\tenum PSTATES {\n\t\t\tPS_INVALID,\n\t\t\tPS_CLEAR,\n\t\t\tPS_WRITABLE,\n\t\t\tPS_INRECEIVE,\n\t\t\tPS_READABLE,\n\t\t} m_PacketState;\n\n\t\tvoid setState(PSTATES packetState) { m_PacketState = packetState; }\n\t\tbool isState(PSTATES packetState) { return m_PacketState == packetState; }\n\tpublic:\n\t\tPacket();\n\t\tvirtual ~Packet();\n\n\tprivate:\n\t\tvoid _write(const uint8_t* data, uint32_t dataSize);\n\tpublic:\n\t\t// If possible, use the predefined functions instead of directly writing to the buffer\n\t\ttemplate<typename T>\n\t\tvoid write(const T* data, uint32_t dataSize) {\n\t\t\t_write(reinterpret_cast<const uint8_t*>(data), dataSize);\n\t\t}\n\n\t\tvoid writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }\n\t\tvoid writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }\n\t\tvoid writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }\n\t\tvoid writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }\n\t\tvoid writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }\n\t\tvoid writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }\n\t\tvoid writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }\n\t\tvoid writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }\n\t\tvoid writeFloat(float f) { write(&f, sizeof(float)); }\n\t\tvoid writeDouble(double d) { write(&d, sizeof(double)); }\n\t\tvoid writeBool(bool b) { write(&b, sizeof(bool)); }\n\n\t\tvoid writeString(const char* string);\n\t\tvoid writeString(std::string& string) { writeString(string.c_str()); }\n\n\t\ttemplate <typename T>\n\t\tvoid writeBlobArray(BlobArray<T>& blob)\n\t\t{\n\t\t\tif (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n\t\t\t\treturn;\n\n\t\t\twriteUInt32(blob.size());\n\n\t\t\tif (blob.size() > 0)\n\t\t\t\twrite(blob.getPtr(0), blob.dataSize());\n\t\t}\n\n\t\t// If possible, use the predefined readtypes instead of directly reading from the buffer\n\tprivate:\n\t\tbool _read(uint8_t* buffer, uint32_t bufferSize);\n\tpublic:\n\t\ttemplate<typename T>\n\t\tbool read(T* buffer, uint32_t bufferSize) {\n\t\t\treturn _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);\n\t\t}\n\n\t\t// Skip an amount of bytes in the received packet\n\t\tbool readSkip(uint32_t skipSize);\n\n\t\tint8_t readInt8() {\n\t\t\tint8_t n = 0;\n\t\t\tread(&n, sizeof(int8_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tint16_t readInt16() {\n\t\t\tint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tint32_t readInt32() {\n\t\t\tint32_t n = 0;\n\t\t\tread(&n, sizeof(int32_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tint64_t readInt64() {\n\t\t\tint64_t n = 0;\n\t\t\tread(&n, sizeof(int64_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint8_t readUInt8() {\n\t\t\tuint8_t n = 0;\n\t\t\tread(&n, sizeof(uint8_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint16_t readUInt16() {\n\t\t\tuint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint32_t readUInt32() {\n\t\t\tuint32_t n = 0;\n\t\t\tread(&n, sizeof(uint32_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint64_t readUInt64() {\n\t\t\tuint64_t n = 0;\n\t\t\tread(&n, sizeof(uint64_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tfloat readFloat() {\n\t\t\tfloat f = 0.f;\n\t\t\tread(&f, sizeof(float));\n\t\t\treturn f;\n\t\t}\n\n\t\tdouble readDouble() {\n\t\t\tdouble d = 0.f;\n\t\t\tread(&d, sizeof(double));\n\t\t\treturn d;\n\t\t}\n\n\t\tbool readBool() {\n\t\t\tbool b = false;\n\t\t\tread(&b, sizeof(bool));\n\t\t\treturn b;\n\t\t}\n\n\t\tstd::string readString();\n\n\t\ttemplate <typename T>\n\t\tstd::shared_ptr<BlobArray<T>> readBlobArray(){\n\t\t\tauto blob = std::make_shared<BlobArray<T>>();\n\t\t\tif (!isState(PS_READABLE))\n\t\t\t\treturn nullptr;\n\n\t\t\tuint32_t itemCount = readUInt32();\n\t\t\tif (!isState(PS_READABLE))\n\t\t\t\treturn nullptr;\n\n\t\t\t// Prevent reading out of bounds\n\t\t\tif (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n\t\t\t{\n\t\t\t\tsetState(PS_INVALID);\n\t\t\t\treturn nullptr;\n\t\t\t}\n\n\t\t\tif (itemCount > 0)\n\t\t\t\tblob->add((T*)(&m_Data[m_Cursor]), itemCount);\n\n\t\t\tm_Cursor += itemCount * sizeof(T);\n\n\t\t\treturn blob;\n\t\t}\n\n\t\tbool isReadable() { return isState(PS_READABLE); }\n\t\tbool isValid() { return !isState(PS_INVALID); }\n\t\tbool isWritable() { return isState(PS_WRITABLE); }\n\t\tbool isTransfering() { return isState(PS_INRECEIVE); }\n\n\t\t// Put these near the bottom in intellisense\n\t\t// These _* functions shouldn't get called from any extern program except if declaring a custom packet type\n\t\tconst uint8_t* _getRawData() { return &m_Data[0]; }\n\t\tconst uint32_t _getRawSize() { return m_Data.size(); }\n\n\t\t// Return value of onReceive indicates if there is unread data remaining in the given buffer\n\t\tuint32_t _onReceive(uint8_t* data, uint32_t dataSize);\n\t\tbool _onSend(); //Gets called before being send\n\t\tstd::shared_ptr<Packet> _copy();\n\t}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 178, "column": 2}}, {"id": 4, "type": "type_identifier", "text": "namespace", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 9}}, {"id": 5, "type": "identifier", "text": "visNET", "parent": 3, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 16}}, {"id": 6, "type": "function_definition", "text": "class DLLEXPORT Packet {\n\t\tconst uint32_t PacketSizeLength = sizeof(uint32_t);\n\n\t\tstd::vector<uint8_t> m_Data;\n\t\tuint32_t m_Cursor;\n\n\t\tenum PSTATES {\n\t\t\tPS_INVALID,\n\t\t\tPS_CLEAR,\n\t\t\tPS_WRITABLE,\n\t\t\tPS_INRECEIVE,\n\t\t\tPS_READABLE,\n\t\t} m_PacketState;\n\n\t\tvoid setState(PSTATES packetState) { m_PacketState = packetState; }\n\t\tbool isState(PSTATES packetState) { return m_PacketState == packetState; }\n\tpublic:\n\t\tPacket();\n\t\tvirtual ~Packet();\n\n\tprivate:\n\t\tvoid _write(const uint8_t* data, uint32_t dataSize);\n\tpublic:\n\t\t// If possible, use the predefined functions instead of directly writing to the buffer\n\t\ttemplate<typename T>\n\t\tvoid write(const T* data, uint32_t dataSize) {\n\t\t\t_write(reinterpret_cast<const uint8_t*>(data), dataSize);\n\t\t}", "parent": 3, "children": [7, 8], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 30, "column": 3}}, {"id": 7, "type": "identifier", "text": "DLLEXPORT", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 16}}, {"id": 8, "type": "ERROR", "text": "Packet", "parent": 6, "children": [9], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 23}}, {"id": 9, "type": "identifier", "text": "Packet", "parent": 8, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 23}}, {"id": 10, "type": "declaration", "text": "const uint32_t PacketSizeLength = sizeof(uint32_t);", "parent": 6, "children": [11, 12], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 53}}, {"id": 11, "type": "primitive_type", "text": "uint32_t", "parent": 10, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 16}}, {"id": 12, "type": "init_declarator", "text": "PacketSizeLength = sizeof(uint32_t)", "parent": 10, "children": [13, 14, 15], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 52}}, {"id": 13, "type": "identifier", "text": "PacketSizeLength", "parent": 12, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 33}}, {"id": 14, "type": "=", "text": "=", "parent": 12, "children": [], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 35}}, {"id": 15, "type": "sizeof_expression", "text": "sizeof(uint32_t)", "parent": 12, "children": [16], "start_point": {"row": 4, "column": 36}, "end_point": {"row": 4, "column": 52}}, {"id": 16, "type": "type_descriptor", "text": "uint32_t", "parent": 15, "children": [17], "start_point": {"row": 4, "column": 43}, "end_point": {"row": 4, "column": 51}}, {"id": 17, "type": "primitive_type", "text": "uint32_t", "parent": 16, "children": [], "start_point": {"row": 4, "column": 43}, "end_point": {"row": 4, "column": 51}}, {"id": 18, "type": "labeled_statement", "text": "std::vector<uint8_t> m_Data;", "parent": 6, "children": [19], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 30}}, {"id": 19, "type": "statement_identifier", "text": "std", "parent": 18, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 5}}, {"id": 20, "type": "binary_expression", "text": "vector<uint8_t> m_Data", "parent": 18, "children": [21, 25, 26], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 29}}, {"id": 21, "type": "binary_expression", "text": "vector<uint8_t", "parent": 20, "children": [22, 23, 24], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 21}}, {"id": 22, "type": "identifier", "text": "vector", "parent": 21, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 13}}, {"id": 23, "type": "<", "text": "<", "parent": 21, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 14}}, {"id": 24, "type": "identifier", "text": "uint8_t", "parent": 21, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 21}}, {"id": 25, "type": ">", "text": ">", "parent": 20, "children": [], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 22}}, {"id": 26, "type": "identifier", "text": "m_Data", "parent": 20, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 29}}, {"id": 27, "type": "declaration", "text": "uint32_t m_Cursor;", "parent": 6, "children": [28, 29], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 20}}, {"id": 28, "type": "primitive_type", "text": "uint32_t", "parent": 27, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 10}}, {"id": 29, "type": "identifier", "text": "m_Cursor", "parent": 27, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 19}}, {"id": 30, "type": "declaration", "text": "enum PSTATES {\n\t\t\tPS_INVALID,\n\t\t\tPS_CLEAR,\n\t\t\tPS_WRITABLE,\n\t\t\tPS_INRECEIVE,\n\t\t\tPS_READABLE,\n\t\t} m_PacketState;", "parent": 6, "children": [31, 45], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 15, "column": 18}}, {"id": 31, "type": "enum_specifier", "text": "enum PSTATES {\n\t\t\tPS_INVALID,\n\t\t\tPS_CLEAR,\n\t\t\tPS_WRITABLE,\n\t\t\tPS_INRECEIVE,\n\t\t\tPS_READABLE,\n\t\t}", "parent": 30, "children": [32, 33, 34], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 15, "column": 3}}, {"id": 32, "type": "enum", "text": "enum", "parent": 31, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 6}}, {"id": 33, "type": "type_identifier", "text": "PSTATES", "parent": 31, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 14}}, {"id": 34, "type": "enumerator_list", "text": "{\n\t\t\tPS_INVALID,\n\t\t\tPS_CLEAR,\n\t\t\tPS_WRITABLE,\n\t\t\tPS_INRECEIVE,\n\t\t\tPS_READABLE,\n\t\t}", "parent": 31, "children": [35, 37, 39, 41, 43], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 15, "column": 3}}, {"id": 35, "type": "enumerator", "text": "PS_INVALID", "parent": 34, "children": [36], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 13}}, {"id": 36, "type": "identifier", "text": "PS_INVALID", "parent": 35, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 13}}, {"id": 37, "type": "enumerator", "text": "PS_CLEAR", "parent": 34, "children": [38], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 11}}, {"id": 38, "type": "identifier", "text": "PS_CLEAR", "parent": 37, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 11}}, {"id": 39, "type": "enumerator", "text": "PS_WRITABLE", "parent": 34, "children": [40], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 14}}, {"id": 40, "type": "identifier", "text": "PS_WRITABLE", "parent": 39, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 14}}, {"id": 41, "type": "enumerator", "text": "PS_INRECEIVE", "parent": 34, "children": [42], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 15}}, {"id": 42, "type": "identifier", "text": "PS_INRECEIVE", "parent": 41, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 15}}, {"id": 43, "type": "enumerator", "text": "PS_READABLE", "parent": 34, "children": [44], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 14}}, {"id": 44, "type": "identifier", "text": "PS_READABLE", "parent": 43, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 14}}, {"id": 45, "type": "identifier", "text": "m_PacketState", "parent": 30, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 17}}, {"id": 46, "type": "function_definition", "text": "void setState(PSTATES packetState) { m_PacketState = packetState; }", "parent": 6, "children": [47, 48], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 69}}, {"id": 47, "type": "primitive_type", "text": "void", "parent": 46, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 48, "type": "function_declarator", "text": "setState(PSTATES packetState)", "parent": 46, "children": [49, 50], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 36}}, {"id": 49, "type": "identifier", "text": "setState", "parent": 48, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 15}}, {"id": 50, "type": "parameter_list", "text": "(PSTATES packetState)", "parent": 48, "children": [51], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 36}}, {"id": 51, "type": "parameter_declaration", "text": "PSTATES packetState", "parent": 50, "children": [52, 53], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 35}}, {"id": 52, "type": "type_identifier", "text": "PSTATES", "parent": 51, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 23}}, {"id": 53, "type": "identifier", "text": "packetState", "parent": 51, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 35}}, {"id": 54, "type": "assignment_expression", "text": "m_PacketState = packetState", "parent": 46, "children": [55, 56, 57], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 66}}, {"id": 55, "type": "identifier", "text": "m_PacketState", "parent": 54, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 52}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 54}}, {"id": 57, "type": "identifier", "text": "packetState", "parent": 54, "children": [], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 66}}, {"id": 58, "type": "function_definition", "text": "bool isState(PSTATES packetState) { return m_PacketState == packetState; }", "parent": 6, "children": [59, 60], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 76}}, {"id": 59, "type": "primitive_type", "text": "bool", "parent": 58, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 60, "type": "function_declarator", "text": "isState(PSTATES packetState)", "parent": 58, "children": [61, 62], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 35}}, {"id": 61, "type": "identifier", "text": "isState", "parent": 60, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 14}}, {"id": 62, "type": "parameter_list", "text": "(PSTATES packetState)", "parent": 60, "children": [63], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 35}}, {"id": 63, "type": "parameter_declaration", "text": "PSTATES packetState", "parent": 62, "children": [64, 65], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 34}}, {"id": 64, "type": "type_identifier", "text": "PSTATES", "parent": 63, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 22}}, {"id": 65, "type": "identifier", "text": "packetState", "parent": 63, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 34}}, {"id": 66, "type": "return_statement", "text": "return m_PacketState == packetState;", "parent": 58, "children": [67], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 74}}, {"id": 67, "type": "binary_expression", "text": "m_PacketState == packetState", "parent": 66, "children": [68, 69, 70], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 73}}, {"id": 68, "type": "identifier", "text": "m_PacketState", "parent": 67, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 58}}, {"id": 69, "type": "==", "text": "==", "parent": 67, "children": [], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 18, "column": 61}}, {"id": 70, "type": "identifier", "text": "packetState", "parent": 67, "children": [], "start_point": {"row": 18, "column": 62}, "end_point": {"row": 18, "column": 73}}, {"id": 71, "type": "labeled_statement", "text": "public:\n\t\tPacket();", "parent": 6, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 20, "column": 11}}, {"id": 72, "type": "call_expression", "text": "Packet()", "parent": 71, "children": [73, 74], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 10}}, {"id": 73, "type": "identifier", "text": "Packet", "parent": 72, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 8}}, {"id": 74, "type": "argument_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 10}}, {"id": 75, "type": "declaration", "text": "virtual ~Packet();", "parent": 6, "children": [76, 77, 79], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 20}}, {"id": 76, "type": "type_identifier", "text": "virtual", "parent": 75, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 9}}, {"id": 77, "type": "ERROR", "text": "~", "parent": 75, "children": [78], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 78, "type": "~", "text": "~", "parent": 77, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 79, "type": "function_declarator", "text": "Packet()", "parent": 75, "children": [80, 81], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 19}}, {"id": 80, "type": "identifier", "text": "Packet", "parent": 79, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 17}}, {"id": 81, "type": "parameter_list", "text": "()", "parent": 79, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 19}}, {"id": 82, "type": "labeled_statement", "text": "private:\n\t\tvoid _write(const uint8_t* data, uint32_t dataSize);", "parent": 6, "children": [83], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 24, "column": 54}}, {"id": 83, "type": "declaration", "text": "void _write(const uint8_t* data, uint32_t dataSize);", "parent": 82, "children": [84, 85], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 54}}, {"id": 84, "type": "primitive_type", "text": "void", "parent": 83, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 85, "type": "function_declarator", "text": "_write(const uint8_t* data, uint32_t dataSize)", "parent": 83, "children": [86, 87], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 53}}, {"id": 86, "type": "identifier", "text": "_write", "parent": 85, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 87, "type": "parameter_list", "text": "(const uint8_t* data, uint32_t dataSize)", "parent": 85, "children": [88, 93], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 53}}, {"id": 88, "type": "parameter_declaration", "text": "const uint8_t* data", "parent": 87, "children": [89, 90], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 33}}, {"id": 89, "type": "primitive_type", "text": "uint8_t", "parent": 88, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 27}}, {"id": 90, "type": "pointer_declarator", "text": "* data", "parent": 88, "children": [91, 92], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 33}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}, {"id": 92, "type": "identifier", "text": "data", "parent": 90, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 33}}, {"id": 93, "type": "parameter_declaration", "text": "uint32_t dataSize", "parent": 87, "children": [94, 95], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 52}}, {"id": 94, "type": "primitive_type", "text": "uint32_t", "parent": 93, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 43}}, {"id": 95, "type": "identifier", "text": "dataSize", "parent": 93, "children": [], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 52}}, {"id": 96, "type": "labeled_statement", "text": "public:\n\t\t// If possible, use the predefined functions instead of directly writing to the buffer\n\t\ttemplate<typename T>\n\t\tvoid", "parent": 6, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 28, "column": 6}}, {"id": 97, "type": "binary_expression", "text": "template<typename T>\n\t\tvoid", "parent": 96, "children": [98, 102, 104, 105], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 28, "column": 6}}, {"id": 98, "type": "binary_expression", "text": "template<typename", "parent": 97, "children": [99, 100, 101], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 19}}, {"id": 99, "type": "identifier", "text": "template", "parent": 98, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 10}}, {"id": 100, "type": "<", "text": "<", "parent": 98, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 11}}, {"id": 101, "type": "identifier", "text": "typename", "parent": 98, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 19}}, {"id": 102, "type": "ERROR", "text": "T", "parent": 97, "children": [103], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 103, "type": "identifier", "text": "T", "parent": 102, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 104, "type": ">", "text": ">", "parent": 97, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 22}}, {"id": 105, "type": "identifier", "text": "void", "parent": 97, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 6}}, {"id": 106, "type": "declaration", "text": "write(const T* data, uint32_t dataSize) {\n\t\t\t_write(reinterpret_cast<const uint8_t*>(data), dataSize);", "parent": 6, "children": [107, 113, 114, 117, 129], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 29, "column": 60}}, {"id": 107, "type": "macro_type_specifier", "text": "write(const T*", "parent": 106, "children": [108, 109], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 21}}, {"id": 108, "type": "identifier", "text": "write", "parent": 107, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 12}}, {"id": 109, "type": "type_descriptor", "text": "const T*", "parent": 107, "children": [110, 111], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 21}}, {"id": 110, "type": "type_identifier", "text": "T", "parent": 109, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 111, "type": "abstract_pointer_declarator", "text": "*", "parent": 109, "children": [112], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 113, "type": "identifier", "text": "data", "parent": 106, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 26}}, {"id": 114, "type": "ERROR", "text": "uint32_t dataSize) {", "parent": 106, "children": [115, 116], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 48}}, {"id": 115, "type": "identifier", "text": "uint32_t", "parent": 114, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 36}}, {"id": 116, "type": "identifier", "text": "dataSize", "parent": 114, "children": [], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 45}}, {"id": 117, "type": "function_declarator", "text": "_write(reinterpret_cast<const uint8_t*>(data)", "parent": 106, "children": [118, 119], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 48}}, {"id": 118, "type": "identifier", "text": "_write", "parent": 117, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 9}}, {"id": 119, "type": "parameter_list", "text": "(reinterpret_cast<const uint8_t*>(data)", "parent": 117, "children": [120, 125], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 48}}, {"id": 120, "type": "parameter_declaration", "text": "reinterpret_cast<const uint8_t", "parent": 119, "children": [121, 122, 124], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 40}}, {"id": 121, "type": "type_identifier", "text": "reinterpret_cast", "parent": 120, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 26}}, {"id": 122, "type": "ERROR", "text": "<", "parent": 120, "children": [123], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 27}}, {"id": 123, "type": "<", "text": "<", "parent": 122, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 27}}, {"id": 124, "type": "identifier", "text": "uint8_t", "parent": 120, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 40}}, {"id": 125, "type": "ERROR", "text": "*>(data", "parent": 119, "children": [126, 127, 128], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 47}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 41}}, {"id": 127, "type": ">", "text": ">", "parent": 125, "children": [], "start_point": {"row": 29, "column": 41}, "end_point": {"row": 29, "column": 42}}, {"id": 128, "type": "identifier", "text": "data", "parent": 125, "children": [], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 47}}, {"id": 129, "type": "identifier", "text": "dataSize", "parent": 106, "children": [], "start_point": {"row": 29, "column": 50}, "end_point": {"row": 29, "column": 58}}, {"id": 130, "type": "function_definition", "text": "void writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }", "parent": 3, "children": [131, 132], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 57}}, {"id": 131, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 6}}, {"id": 132, "type": "function_declarator", "text": "writeInt8(int8_t n)", "parent": 130, "children": [133, 134], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 26}}, {"id": 133, "type": "identifier", "text": "writeInt8", "parent": 132, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 16}}, {"id": 134, "type": "parameter_list", "text": "(int8_t n)", "parent": 132, "children": [135], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 26}}, {"id": 135, "type": "parameter_declaration", "text": "int8_t n", "parent": 134, "children": [136, 137], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 25}}, {"id": 136, "type": "primitive_type", "text": "int8_t", "parent": 135, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 23}}, {"id": 137, "type": "identifier", "text": "n", "parent": 135, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 25}}, {"id": 138, "type": "call_expression", "text": "write(&n, sizeof(int8_t))", "parent": 130, "children": [139, 140], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 54}}, {"id": 139, "type": "identifier", "text": "write", "parent": 138, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 34}}, {"id": 140, "type": "argument_list", "text": "(&n, sizeof(int8_t))", "parent": 138, "children": [141, 143], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 54}}, {"id": 141, "type": "pointer_expression", "text": "&n", "parent": 140, "children": [142], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 37}}, {"id": 142, "type": "identifier", "text": "n", "parent": 141, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 37}}, {"id": 143, "type": "sizeof_expression", "text": "sizeof(int8_t)", "parent": 140, "children": [144], "start_point": {"row": 32, "column": 39}, "end_point": {"row": 32, "column": 53}}, {"id": 144, "type": "type_descriptor", "text": "int8_t", "parent": 143, "children": [145], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 52}}, {"id": 145, "type": "primitive_type", "text": "int8_t", "parent": 144, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 52}}, {"id": 146, "type": "function_definition", "text": "void writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }", "parent": 3, "children": [147, 148], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 60}}, {"id": 147, "type": "primitive_type", "text": "void", "parent": 146, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 6}}, {"id": 148, "type": "function_declarator", "text": "writeInt16(int16_t n)", "parent": 146, "children": [149, 150], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 28}}, {"id": 149, "type": "identifier", "text": "writeInt16", "parent": 148, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 17}}, {"id": 150, "type": "parameter_list", "text": "(int16_t n)", "parent": 148, "children": [151], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 28}}, {"id": 151, "type": "parameter_declaration", "text": "int16_t n", "parent": 150, "children": [152, 153], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 27}}, {"id": 152, "type": "primitive_type", "text": "int16_t", "parent": 151, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 25}}, {"id": 153, "type": "identifier", "text": "n", "parent": 151, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 27}}, {"id": 154, "type": "call_expression", "text": "write(&n, sizeof(int16_t))", "parent": 146, "children": [155, 156], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 57}}, {"id": 155, "type": "identifier", "text": "write", "parent": 154, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 36}}, {"id": 156, "type": "argument_list", "text": "(&n, sizeof(int16_t))", "parent": 154, "children": [157, 159], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 57}}, {"id": 157, "type": "pointer_expression", "text": "&n", "parent": 156, "children": [158], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 39}}, {"id": 158, "type": "identifier", "text": "n", "parent": 157, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 39}}, {"id": 159, "type": "sizeof_expression", "text": "sizeof(int16_t)", "parent": 156, "children": [160], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 56}}, {"id": 160, "type": "type_descriptor", "text": "int16_t", "parent": 159, "children": [161], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 55}}, {"id": 161, "type": "primitive_type", "text": "int16_t", "parent": 160, "children": [], "start_point": {"row": 33, "column": 48}, "end_point": {"row": 33, "column": 55}}, {"id": 162, "type": "function_definition", "text": "void writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }", "parent": 3, "children": [163, 164], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 60}}, {"id": 163, "type": "primitive_type", "text": "void", "parent": 162, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 164, "type": "function_declarator", "text": "writeInt32(int32_t n)", "parent": 162, "children": [165, 166], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 28}}, {"id": 165, "type": "identifier", "text": "writeInt32", "parent": 164, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 17}}, {"id": 166, "type": "parameter_list", "text": "(int32_t n)", "parent": 164, "children": [167], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 28}}, {"id": 167, "type": "parameter_declaration", "text": "int32_t n", "parent": 166, "children": [168, 169], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 27}}, {"id": 168, "type": "primitive_type", "text": "int32_t", "parent": 167, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 25}}, {"id": 169, "type": "identifier", "text": "n", "parent": 167, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 27}}, {"id": 170, "type": "call_expression", "text": "write(&n, sizeof(int32_t))", "parent": 162, "children": [171, 172], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 57}}, {"id": 171, "type": "identifier", "text": "write", "parent": 170, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 36}}, {"id": 172, "type": "argument_list", "text": "(&n, sizeof(int32_t))", "parent": 170, "children": [173, 175], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 57}}, {"id": 173, "type": "pointer_expression", "text": "&n", "parent": 172, "children": [174], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 39}}, {"id": 174, "type": "identifier", "text": "n", "parent": 173, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 39}}, {"id": 175, "type": "sizeof_expression", "text": "sizeof(int32_t)", "parent": 172, "children": [176], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 56}}, {"id": 176, "type": "type_descriptor", "text": "int32_t", "parent": 175, "children": [177], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 55}}, {"id": 177, "type": "primitive_type", "text": "int32_t", "parent": 176, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 55}}, {"id": 178, "type": "function_definition", "text": "void writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }", "parent": 3, "children": [179, 180], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 60}}, {"id": 179, "type": "primitive_type", "text": "void", "parent": 178, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 6}}, {"id": 180, "type": "function_declarator", "text": "writeInt64(int64_t n)", "parent": 178, "children": [181, 182], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 28}}, {"id": 181, "type": "identifier", "text": "writeInt64", "parent": 180, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 17}}, {"id": 182, "type": "parameter_list", "text": "(int64_t n)", "parent": 180, "children": [183], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 28}}, {"id": 183, "type": "parameter_declaration", "text": "int64_t n", "parent": 182, "children": [184, 185], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 27}}, {"id": 184, "type": "primitive_type", "text": "int64_t", "parent": 183, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 25}}, {"id": 185, "type": "identifier", "text": "n", "parent": 183, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 27}}, {"id": 186, "type": "call_expression", "text": "write(&n, sizeof(int64_t))", "parent": 178, "children": [187, 188], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 57}}, {"id": 187, "type": "identifier", "text": "write", "parent": 186, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 36}}, {"id": 188, "type": "argument_list", "text": "(&n, sizeof(int64_t))", "parent": 186, "children": [189, 191], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 57}}, {"id": 189, "type": "pointer_expression", "text": "&n", "parent": 188, "children": [190], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 39}}, {"id": 190, "type": "identifier", "text": "n", "parent": 189, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 39}}, {"id": 191, "type": "sizeof_expression", "text": "sizeof(int64_t)", "parent": 188, "children": [192], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 56}}, {"id": 192, "type": "type_descriptor", "text": "int64_t", "parent": 191, "children": [193], "start_point": {"row": 35, "column": 48}, "end_point": {"row": 35, "column": 55}}, {"id": 193, "type": "primitive_type", "text": "int64_t", "parent": 192, "children": [], "start_point": {"row": 35, "column": 48}, "end_point": {"row": 35, "column": 55}}, {"id": 194, "type": "function_definition", "text": "void writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }", "parent": 3, "children": [195, 196], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 60}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 196, "type": "function_declarator", "text": "writeUInt8(uint8_t n)", "parent": 194, "children": [197, 198], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 28}}, {"id": 197, "type": "identifier", "text": "writeUInt8", "parent": 196, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 17}}, {"id": 198, "type": "parameter_list", "text": "(uint8_t n)", "parent": 196, "children": [199], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 28}}, {"id": 199, "type": "parameter_declaration", "text": "uint8_t n", "parent": 198, "children": [200, 201], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 27}}, {"id": 200, "type": "primitive_type", "text": "uint8_t", "parent": 199, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 25}}, {"id": 201, "type": "identifier", "text": "n", "parent": 199, "children": [], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 27}}, {"id": 202, "type": "call_expression", "text": "write(&n, sizeof(uint8_t))", "parent": 194, "children": [203, 204], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 57}}, {"id": 203, "type": "identifier", "text": "write", "parent": 202, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 36}}, {"id": 204, "type": "argument_list", "text": "(&n, sizeof(uint8_t))", "parent": 202, "children": [205, 207], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 57}}, {"id": 205, "type": "pointer_expression", "text": "&n", "parent": 204, "children": [206], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 39}}, {"id": 206, "type": "identifier", "text": "n", "parent": 205, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 39}}, {"id": 207, "type": "sizeof_expression", "text": "sizeof(uint8_t)", "parent": 204, "children": [208], "start_point": {"row": 36, "column": 41}, "end_point": {"row": 36, "column": 56}}, {"id": 208, "type": "type_descriptor", "text": "uint8_t", "parent": 207, "children": [209], "start_point": {"row": 36, "column": 48}, "end_point": {"row": 36, "column": 55}}, {"id": 209, "type": "primitive_type", "text": "uint8_t", "parent": 208, "children": [], "start_point": {"row": 36, "column": 48}, "end_point": {"row": 36, "column": 55}}, {"id": 210, "type": "function_definition", "text": "void writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }", "parent": 3, "children": [211, 212], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 63}}, {"id": 211, "type": "primitive_type", "text": "void", "parent": 210, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 6}}, {"id": 212, "type": "function_declarator", "text": "writeUInt16(uint16_t n)", "parent": 210, "children": [213, 214], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 30}}, {"id": 213, "type": "identifier", "text": "writeUInt16", "parent": 212, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 18}}, {"id": 214, "type": "parameter_list", "text": "(uint16_t n)", "parent": 212, "children": [215], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 30}}, {"id": 215, "type": "parameter_declaration", "text": "uint16_t n", "parent": 214, "children": [216, 217], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 29}}, {"id": 216, "type": "primitive_type", "text": "uint16_t", "parent": 215, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 27}}, {"id": 217, "type": "identifier", "text": "n", "parent": 215, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 29}}, {"id": 218, "type": "call_expression", "text": "write(&n, sizeof(uint16_t))", "parent": 210, "children": [219, 220], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 60}}, {"id": 219, "type": "identifier", "text": "write", "parent": 218, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 38}}, {"id": 220, "type": "argument_list", "text": "(&n, sizeof(uint16_t))", "parent": 218, "children": [221, 223], "start_point": {"row": 37, "column": 38}, "end_point": {"row": 37, "column": 60}}, {"id": 221, "type": "pointer_expression", "text": "&n", "parent": 220, "children": [222], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 41}}, {"id": 222, "type": "identifier", "text": "n", "parent": 221, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 41}}, {"id": 223, "type": "sizeof_expression", "text": "sizeof(uint16_t)", "parent": 220, "children": [224], "start_point": {"row": 37, "column": 43}, "end_point": {"row": 37, "column": 59}}, {"id": 224, "type": "type_descriptor", "text": "uint16_t", "parent": 223, "children": [225], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 58}}, {"id": 225, "type": "primitive_type", "text": "uint16_t", "parent": 224, "children": [], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 58}}, {"id": 226, "type": "function_definition", "text": "void writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }", "parent": 3, "children": [227, 228], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 63}}, {"id": 227, "type": "primitive_type", "text": "void", "parent": 226, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 6}}, {"id": 228, "type": "function_declarator", "text": "writeUInt32(uint32_t n)", "parent": 226, "children": [229, 230], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 30}}, {"id": 229, "type": "identifier", "text": "writeUInt32", "parent": 228, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 18}}, {"id": 230, "type": "parameter_list", "text": "(uint32_t n)", "parent": 228, "children": [231], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 30}}, {"id": 231, "type": "parameter_declaration", "text": "uint32_t n", "parent": 230, "children": [232, 233], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 29}}, {"id": 232, "type": "primitive_type", "text": "uint32_t", "parent": 231, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 27}}, {"id": 233, "type": "identifier", "text": "n", "parent": 231, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 29}}, {"id": 234, "type": "call_expression", "text": "write(&n, sizeof(uint32_t))", "parent": 226, "children": [235, 236], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 60}}, {"id": 235, "type": "identifier", "text": "write", "parent": 234, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 38}}, {"id": 236, "type": "argument_list", "text": "(&n, sizeof(uint32_t))", "parent": 234, "children": [237, 239], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 60}}, {"id": 237, "type": "pointer_expression", "text": "&n", "parent": 236, "children": [238], "start_point": {"row": 38, "column": 39}, "end_point": {"row": 38, "column": 41}}, {"id": 238, "type": "identifier", "text": "n", "parent": 237, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 41}}, {"id": 239, "type": "sizeof_expression", "text": "sizeof(uint32_t)", "parent": 236, "children": [240], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 59}}, {"id": 240, "type": "type_descriptor", "text": "uint32_t", "parent": 239, "children": [241], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 58}}, {"id": 241, "type": "primitive_type", "text": "uint32_t", "parent": 240, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 58}}, {"id": 242, "type": "function_definition", "text": "void writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }", "parent": 3, "children": [243, 244], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 63}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 242, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 6}}, {"id": 244, "type": "function_declarator", "text": "writeUInt64(uint64_t n)", "parent": 242, "children": [245, 246], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 30}}, {"id": 245, "type": "identifier", "text": "writeUInt64", "parent": 244, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 18}}, {"id": 246, "type": "parameter_list", "text": "(uint64_t n)", "parent": 244, "children": [247], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 30}}, {"id": 247, "type": "parameter_declaration", "text": "uint64_t n", "parent": 246, "children": [248, 249], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 29}}, {"id": 248, "type": "primitive_type", "text": "uint64_t", "parent": 247, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 27}}, {"id": 249, "type": "identifier", "text": "n", "parent": 247, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 29}}, {"id": 250, "type": "call_expression", "text": "write(&n, sizeof(uint64_t))", "parent": 242, "children": [251, 252], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 60}}, {"id": 251, "type": "identifier", "text": "write", "parent": 250, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 38}}, {"id": 252, "type": "argument_list", "text": "(&n, sizeof(uint64_t))", "parent": 250, "children": [253, 255], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 60}}, {"id": 253, "type": "pointer_expression", "text": "&n", "parent": 252, "children": [254], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 41}}, {"id": 254, "type": "identifier", "text": "n", "parent": 253, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 41}}, {"id": 255, "type": "sizeof_expression", "text": "sizeof(uint64_t)", "parent": 252, "children": [256], "start_point": {"row": 39, "column": 43}, "end_point": {"row": 39, "column": 59}}, {"id": 256, "type": "type_descriptor", "text": "uint64_t", "parent": 255, "children": [257], "start_point": {"row": 39, "column": 50}, "end_point": {"row": 39, "column": 58}}, {"id": 257, "type": "primitive_type", "text": "uint64_t", "parent": 256, "children": [], "start_point": {"row": 39, "column": 50}, "end_point": {"row": 39, "column": 58}}, {"id": 258, "type": "function_definition", "text": "void writeFloat(float f) { write(&f, sizeof(float)); }", "parent": 3, "children": [259, 260], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 56}}, {"id": 259, "type": "primitive_type", "text": "void", "parent": 258, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 260, "type": "function_declarator", "text": "writeFloat(float f)", "parent": 258, "children": [261, 262], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 26}}, {"id": 261, "type": "identifier", "text": "writeFloat", "parent": 260, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 17}}, {"id": 262, "type": "parameter_list", "text": "(float f)", "parent": 260, "children": [263], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 26}}, {"id": 263, "type": "parameter_declaration", "text": "float f", "parent": 262, "children": [264, 265], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 25}}, {"id": 264, "type": "primitive_type", "text": "float", "parent": 263, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 23}}, {"id": 265, "type": "identifier", "text": "f", "parent": 263, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 25}}, {"id": 266, "type": "call_expression", "text": "write(&f, sizeof(float))", "parent": 258, "children": [267, 268], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 53}}, {"id": 267, "type": "identifier", "text": "write", "parent": 266, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 34}}, {"id": 268, "type": "argument_list", "text": "(&f, sizeof(float))", "parent": 266, "children": [269, 271], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 53}}, {"id": 269, "type": "pointer_expression", "text": "&f", "parent": 268, "children": [270], "start_point": {"row": 40, "column": 35}, "end_point": {"row": 40, "column": 37}}, {"id": 270, "type": "identifier", "text": "f", "parent": 269, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 37}}, {"id": 271, "type": "sizeof_expression", "text": "sizeof(float)", "parent": 268, "children": [272], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 52}}, {"id": 272, "type": "type_descriptor", "text": "float", "parent": 271, "children": [273], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 51}}, {"id": 273, "type": "primitive_type", "text": "float", "parent": 272, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 51}}, {"id": 274, "type": "function_definition", "text": "void writeDouble(double d) { write(&d, sizeof(double)); }", "parent": 3, "children": [275, 276], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 59}}, {"id": 275, "type": "primitive_type", "text": "void", "parent": 274, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 6}}, {"id": 276, "type": "function_declarator", "text": "writeDouble(double d)", "parent": 274, "children": [277, 278], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 28}}, {"id": 277, "type": "identifier", "text": "writeDouble", "parent": 276, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 18}}, {"id": 278, "type": "parameter_list", "text": "(double d)", "parent": 276, "children": [279], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 28}}, {"id": 279, "type": "parameter_declaration", "text": "double d", "parent": 278, "children": [280, 281], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 27}}, {"id": 280, "type": "primitive_type", "text": "double", "parent": 279, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 25}}, {"id": 281, "type": "identifier", "text": "d", "parent": 279, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 27}}, {"id": 282, "type": "call_expression", "text": "write(&d, sizeof(double))", "parent": 274, "children": [283, 284], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 56}}, {"id": 283, "type": "identifier", "text": "write", "parent": 282, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 36}}, {"id": 284, "type": "argument_list", "text": "(&d, sizeof(double))", "parent": 282, "children": [285, 287], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 56}}, {"id": 285, "type": "pointer_expression", "text": "&d", "parent": 284, "children": [286], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 39}}, {"id": 286, "type": "identifier", "text": "d", "parent": 285, "children": [], "start_point": {"row": 41, "column": 38}, "end_point": {"row": 41, "column": 39}}, {"id": 287, "type": "sizeof_expression", "text": "sizeof(double)", "parent": 284, "children": [288], "start_point": {"row": 41, "column": 41}, "end_point": {"row": 41, "column": 55}}, {"id": 288, "type": "type_descriptor", "text": "double", "parent": 287, "children": [289], "start_point": {"row": 41, "column": 48}, "end_point": {"row": 41, "column": 54}}, {"id": 289, "type": "primitive_type", "text": "double", "parent": 288, "children": [], "start_point": {"row": 41, "column": 48}, "end_point": {"row": 41, "column": 54}}, {"id": 290, "type": "function_definition", "text": "void writeBool(bool b) { write(&b, sizeof(bool)); }", "parent": 3, "children": [291, 292], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 53}}, {"id": 291, "type": "primitive_type", "text": "void", "parent": 290, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 6}}, {"id": 292, "type": "function_declarator", "text": "writeBool(bool b)", "parent": 290, "children": [293, 294], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 24}}, {"id": 293, "type": "identifier", "text": "writeBool", "parent": 292, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 16}}, {"id": 294, "type": "parameter_list", "text": "(bool b)", "parent": 292, "children": [295], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 24}}, {"id": 295, "type": "parameter_declaration", "text": "bool b", "parent": 294, "children": [296, 297], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 23}}, {"id": 296, "type": "primitive_type", "text": "bool", "parent": 295, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 21}}, {"id": 297, "type": "identifier", "text": "b", "parent": 295, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 23}}, {"id": 298, "type": "call_expression", "text": "write(&b, sizeof(bool))", "parent": 290, "children": [299, 300], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 50}}, {"id": 299, "type": "identifier", "text": "write", "parent": 298, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 32}}, {"id": 300, "type": "argument_list", "text": "(&b, sizeof(bool))", "parent": 298, "children": [301, 303], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 50}}, {"id": 301, "type": "pointer_expression", "text": "&b", "parent": 300, "children": [302], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 35}}, {"id": 302, "type": "identifier", "text": "b", "parent": 301, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 35}}, {"id": 303, "type": "sizeof_expression", "text": "sizeof(bool)", "parent": 300, "children": [304], "start_point": {"row": 42, "column": 37}, "end_point": {"row": 42, "column": 49}}, {"id": 304, "type": "type_descriptor", "text": "bool", "parent": 303, "children": [305], "start_point": {"row": 42, "column": 44}, "end_point": {"row": 42, "column": 48}}, {"id": 305, "type": "primitive_type", "text": "bool", "parent": 304, "children": [], "start_point": {"row": 42, "column": 44}, "end_point": {"row": 42, "column": 48}}, {"id": 306, "type": "declaration", "text": "void writeString(const char* string);", "parent": 3, "children": [307, 308], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 39}}, {"id": 307, "type": "primitive_type", "text": "void", "parent": 306, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 6}}, {"id": 308, "type": "function_declarator", "text": "writeString(const char* string)", "parent": 306, "children": [309, 310], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 38}}, {"id": 309, "type": "identifier", "text": "writeString", "parent": 308, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 18}}, {"id": 310, "type": "parameter_list", "text": "(const char* string)", "parent": 308, "children": [311], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 38}}, {"id": 311, "type": "parameter_declaration", "text": "const char* string", "parent": 310, "children": [312, 313], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 37}}, {"id": 312, "type": "primitive_type", "text": "char", "parent": 311, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 29}}, {"id": 313, "type": "pointer_declarator", "text": "* string", "parent": 311, "children": [314, 315], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 37}}, {"id": 314, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 30}}, {"id": 315, "type": "identifier", "text": "string", "parent": 313, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 37}}, {"id": 316, "type": "function_definition", "text": "void writeString(std::string& string) { writeString(string.c_str()); }", "parent": 3, "children": [317, 318], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 72}}, {"id": 317, "type": "primitive_type", "text": "void", "parent": 316, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 6}}, {"id": 318, "type": "function_declarator", "text": "writeString(std::string& string)", "parent": 316, "children": [319, 320], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 39}}, {"id": 319, "type": "identifier", "text": "writeString", "parent": 318, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 18}}, {"id": 320, "type": "parameter_list", "text": "(std::string& string)", "parent": 318, "children": [321], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 39}}, {"id": 321, "type": "parameter_declaration", "text": "std::string& string", "parent": 320, "children": [322, 323, 325], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 38}}, {"id": 322, "type": "type_identifier", "text": "std", "parent": 321, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 22}}, {"id": 323, "type": "ERROR", "text": "::string&", "parent": 321, "children": [324], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 31}}, {"id": 324, "type": "identifier", "text": "string", "parent": 323, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 30}}, {"id": 325, "type": "identifier", "text": "string", "parent": 321, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 38}}, {"id": 326, "type": "call_expression", "text": "writeString(string.c_str())", "parent": 316, "children": [327, 328], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 69}}, {"id": 327, "type": "identifier", "text": "writeString", "parent": 326, "children": [], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 53}}, {"id": 328, "type": "argument_list", "text": "(string.c_str())", "parent": 326, "children": [329], "start_point": {"row": 45, "column": 53}, "end_point": {"row": 45, "column": 69}}, {"id": 329, "type": "call_expression", "text": "string.c_str()", "parent": 328, "children": [330, 333], "start_point": {"row": 45, "column": 54}, "end_point": {"row": 45, "column": 68}}, {"id": 330, "type": "field_expression", "text": "string.c_str", "parent": 329, "children": [331, 332], "start_point": {"row": 45, "column": 54}, "end_point": {"row": 45, "column": 66}}, {"id": 331, "type": "identifier", "text": "string", "parent": 330, "children": [], "start_point": {"row": 45, "column": 54}, "end_point": {"row": 45, "column": 60}}, {"id": 332, "type": "field_identifier", "text": "c_str", "parent": 330, "children": [], "start_point": {"row": 45, "column": 61}, "end_point": {"row": 45, "column": 66}}, {"id": 333, "type": "argument_list", "text": "()", "parent": 329, "children": [], "start_point": {"row": 45, "column": 66}, "end_point": {"row": 45, "column": 68}}, {"id": 334, "type": "binary_expression", "text": "template <typename T>\n\t\tvoid writeBlobArray(BlobArray<T>& blob)", "parent": 3, "children": [335, 339, 341, 342, 344], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 48, "column": 41}}, {"id": 335, "type": "binary_expression", "text": "template <typename", "parent": 334, "children": [336, 337, 338], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 20}}, {"id": 336, "type": "identifier", "text": "template", "parent": 335, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 10}}, {"id": 337, "type": "<", "text": "<", "parent": 335, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 338, "type": "identifier", "text": "typename", "parent": 335, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 20}}, {"id": 339, "type": "ERROR", "text": "T", "parent": 334, "children": [340], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 22}}, {"id": 340, "type": "identifier", "text": "T", "parent": 339, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 22}}, {"id": 341, "type": ">", "text": ">", "parent": 334, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 23}}, {"id": 342, "type": "ERROR", "text": "void", "parent": 334, "children": [343], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 343, "type": "identifier", "text": "void", "parent": 342, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 344, "type": "call_expression", "text": "writeBlobArray(BlobArray<T>& blob)", "parent": 334, "children": [345, 346], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 41}}, {"id": 345, "type": "identifier", "text": "writeBlobArray", "parent": 344, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 21}}, {"id": 346, "type": "argument_list", "text": "(BlobArray<T>& blob)", "parent": 344, "children": [347], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 41}}, {"id": 347, "type": "binary_expression", "text": "BlobArray<T>& blob", "parent": 346, "children": [348, 352, 353], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 40}}, {"id": 348, "type": "binary_expression", "text": "BlobArray<T", "parent": 347, "children": [349, 350, 351], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 33}}, {"id": 349, "type": "identifier", "text": "BlobArray", "parent": 348, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 31}}, {"id": 350, "type": "<", "text": "<", "parent": 348, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 32}}, {"id": 351, "type": "identifier", "text": "T", "parent": 348, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 33}}, {"id": 352, "type": ">", "text": ">", "parent": 347, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 34}}, {"id": 353, "type": "pointer_expression", "text": "& blob", "parent": 347, "children": [354], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 40}}, {"id": 354, "type": "identifier", "text": "blob", "parent": 353, "children": [], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 40}}, {"id": 355, "type": "if_statement", "text": "if (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n\t\t\t\treturn;", "parent": 3, "children": [356, 371], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 51, "column": 11}}, {"id": 356, "type": "parenthesized_expression", "text": "(!isState(PS_WRITABLE) && !isState(PS_CLEAR))", "parent": 355, "children": [357], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 51}}, {"id": 357, "type": "binary_expression", "text": "!isState(PS_WRITABLE) && !isState(PS_CLEAR)", "parent": 356, "children": [358, 364, 365], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 50}}, {"id": 358, "type": "unary_expression", "text": "!isState(PS_WRITABLE)", "parent": 357, "children": [359, 360], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 28}}, {"id": 359, "type": "!", "text": "!", "parent": 358, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 8}}, {"id": 360, "type": "call_expression", "text": "isState(PS_WRITABLE)", "parent": 358, "children": [361, 362], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 28}}, {"id": 361, "type": "identifier", "text": "isState", "parent": 360, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 15}}, {"id": 362, "type": "argument_list", "text": "(PS_WRITABLE)", "parent": 360, "children": [363], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 28}}, {"id": 363, "type": "identifier", "text": "PS_WRITABLE", "parent": 362, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 27}}, {"id": 364, "type": "&&", "text": "&&", "parent": 357, "children": [], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 31}}, {"id": 365, "type": "unary_expression", "text": "!isState(PS_CLEAR)", "parent": 357, "children": [366, 367], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 50}}, {"id": 366, "type": "!", "text": "!", "parent": 365, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 33}}, {"id": 367, "type": "call_expression", "text": "isState(PS_CLEAR)", "parent": 365, "children": [368, 369], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 50}}, {"id": 368, "type": "identifier", "text": "isState", "parent": 367, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 40}}, {"id": 369, "type": "argument_list", "text": "(PS_CLEAR)", "parent": 367, "children": [370], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 50}}, {"id": 370, "type": "identifier", "text": "PS_CLEAR", "parent": 369, "children": [], "start_point": {"row": 50, "column": 41}, "end_point": {"row": 50, "column": 49}}, {"id": 371, "type": "return_statement", "text": "return;", "parent": 355, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 11}}, {"id": 372, "type": "call_expression", "text": "writeUInt32(blob.size())", "parent": 3, "children": [373, 374], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 27}}, {"id": 373, "type": "identifier", "text": "writeUInt32", "parent": 372, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 14}}, {"id": 374, "type": "argument_list", "text": "(blob.size())", "parent": 372, "children": [375], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 27}}, {"id": 375, "type": "call_expression", "text": "blob.size()", "parent": 374, "children": [376, 379], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 26}}, {"id": 376, "type": "field_expression", "text": "blob.size", "parent": 375, "children": [377, 378], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 24}}, {"id": 377, "type": "identifier", "text": "blob", "parent": 376, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 19}}, {"id": 378, "type": "field_identifier", "text": "size", "parent": 376, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 24}}, {"id": 379, "type": "argument_list", "text": "()", "parent": 375, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 26}}, {"id": 380, "type": "if_statement", "text": "if (blob.size() > 0)\n\t\t\t\twrite(blob.getPtr(0), blob.dataSize());", "parent": 3, "children": [381], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 56, "column": 43}}, {"id": 381, "type": "parenthesized_expression", "text": "(blob.size() > 0)", "parent": 380, "children": [382], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 23}}, {"id": 382, "type": "binary_expression", "text": "blob.size() > 0", "parent": 381, "children": [383, 388, 389], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 22}}, {"id": 383, "type": "call_expression", "text": "blob.size()", "parent": 382, "children": [384, 387], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 18}}, {"id": 384, "type": "field_expression", "text": "blob.size", "parent": 383, "children": [385, 386], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 16}}, {"id": 385, "type": "identifier", "text": "blob", "parent": 384, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 11}}, {"id": 386, "type": "field_identifier", "text": "size", "parent": 384, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 16}}, {"id": 387, "type": "argument_list", "text": "()", "parent": 383, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 18}}, {"id": 388, "type": ">", "text": ">", "parent": 382, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 20}}, {"id": 389, "type": "number_literal", "text": "0", "parent": 382, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 22}}, {"id": 390, "type": "call_expression", "text": "write(blob.getPtr(0), blob.dataSize())", "parent": 380, "children": [391, 392], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 42}}, {"id": 391, "type": "identifier", "text": "write", "parent": 390, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 9}}, {"id": 392, "type": "argument_list", "text": "(blob.getPtr(0), blob.dataSize())", "parent": 390, "children": [393, 399], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 42}}, {"id": 393, "type": "call_expression", "text": "blob.getPtr(0)", "parent": 392, "children": [394, 397], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 24}}, {"id": 394, "type": "field_expression", "text": "blob.getPtr", "parent": 393, "children": [395, 396], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 21}}, {"id": 395, "type": "identifier", "text": "blob", "parent": 394, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 14}}, {"id": 396, "type": "field_identifier", "text": "getPtr", "parent": 394, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 21}}, {"id": 397, "type": "argument_list", "text": "(0)", "parent": 393, "children": [398], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 24}}, {"id": 398, "type": "number_literal", "text": "0", "parent": 397, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 23}}, {"id": 399, "type": "call_expression", "text": "blob.dataSize()", "parent": 392, "children": [400, 403], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 41}}, {"id": 400, "type": "field_expression", "text": "blob.dataSize", "parent": 399, "children": [401, 402], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 39}}, {"id": 401, "type": "identifier", "text": "blob", "parent": 400, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 30}}, {"id": 402, "type": "field_identifier", "text": "dataSize", "parent": 400, "children": [], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 39}}, {"id": 403, "type": "argument_list", "text": "()", "parent": 399, "children": [], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 41}}, {"id": 404, "type": "labeled_statement", "text": "private:\n\t\tbool _read(uint8_t* buffer, uint32_t bufferSize);", "parent": 3, "children": [405], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 61, "column": 51}}, {"id": 405, "type": "declaration", "text": "bool _read(uint8_t* buffer, uint32_t bufferSize);", "parent": 404, "children": [406, 407], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 51}}, {"id": 406, "type": "primitive_type", "text": "bool", "parent": 405, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 407, "type": "function_declarator", "text": "_read(uint8_t* buffer, uint32_t bufferSize)", "parent": 405, "children": [408, 409], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 50}}, {"id": 408, "type": "identifier", "text": "_read", "parent": 407, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 12}}, {"id": 409, "type": "parameter_list", "text": "(uint8_t* buffer, uint32_t bufferSize)", "parent": 407, "children": [410, 415], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 50}}, {"id": 410, "type": "parameter_declaration", "text": "uint8_t* buffer", "parent": 409, "children": [411, 412], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 28}}, {"id": 411, "type": "primitive_type", "text": "uint8_t", "parent": 410, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 20}}, {"id": 412, "type": "pointer_declarator", "text": "* buffer", "parent": 410, "children": [413, 414], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 28}}, {"id": 413, "type": "*", "text": "*", "parent": 412, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 414, "type": "identifier", "text": "buffer", "parent": 412, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 28}}, {"id": 415, "type": "parameter_declaration", "text": "uint32_t bufferSize", "parent": 409, "children": [416, 417], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 49}}, {"id": 416, "type": "primitive_type", "text": "uint32_t", "parent": 415, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 38}}, {"id": 417, "type": "identifier", "text": "bufferSize", "parent": 415, "children": [], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 49}}, {"id": 418, "type": "labeled_statement", "text": "public:\n\t\ttemplate<typename T>\n\t\tbool read(T* buffer, uint32_t bufferSize)", "parent": 3, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 64, "column": 43}}, {"id": 419, "type": "binary_expression", "text": "template<typename T>\n\t\tbool read(T* buffer, uint32_t bufferSize)", "parent": 418, "children": [420, 424, 426, 427, 429], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 64, "column": 43}}, {"id": 420, "type": "binary_expression", "text": "template<typename", "parent": 419, "children": [421, 422, 423], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 19}}, {"id": 421, "type": "identifier", "text": "template", "parent": 420, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 10}}, {"id": 422, "type": "<", "text": "<", "parent": 420, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 11}}, {"id": 423, "type": "identifier", "text": "typename", "parent": 420, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 19}}, {"id": 424, "type": "ERROR", "text": "T", "parent": 419, "children": [425], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 21}}, {"id": 425, "type": "identifier", "text": "T", "parent": 424, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 21}}, {"id": 426, "type": ">", "text": ">", "parent": 419, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 22}}, {"id": 427, "type": "ERROR", "text": "bool", "parent": 419, "children": [428], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 6}}, {"id": 428, "type": "identifier", "text": "bool", "parent": 427, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 6}}, {"id": 429, "type": "call_expression", "text": "read(T* buffer, uint32_t bufferSize)", "parent": 419, "children": [430, 431], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 43}}, {"id": 430, "type": "identifier", "text": "read", "parent": 429, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 11}}, {"id": 431, "type": "argument_list", "text": "(T* buffer, uint32_t bufferSize)", "parent": 429, "children": [432, 436, 438], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 43}}, {"id": 432, "type": "binary_expression", "text": "T* buffer", "parent": 431, "children": [433, 434, 435], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 21}}, {"id": 433, "type": "identifier", "text": "T", "parent": 432, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 434, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 14}}, {"id": 435, "type": "identifier", "text": "buffer", "parent": 432, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 21}}, {"id": 436, "type": "ERROR", "text": "uint32_t", "parent": 431, "children": [437], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 31}}, {"id": 437, "type": "identifier", "text": "uint32_t", "parent": 436, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 31}}, {"id": 438, "type": "identifier", "text": "bufferSize", "parent": 431, "children": [], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 42}}, {"id": 439, "type": "return_statement", "text": "return _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);", "parent": 3, "children": [440], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 64}}, {"id": 440, "type": "call_expression", "text": "_read(reinterpret_cast<uint8_t*>(buffer), bufferSize)", "parent": 439, "children": [441, 442], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 63}}, {"id": 441, "type": "identifier", "text": "_read", "parent": 440, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 15}}, {"id": 442, "type": "argument_list", "text": "(reinterpret_cast<uint8_t*>(buffer), bufferSize)", "parent": 440, "children": [443, 453], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 63}}, {"id": 443, "type": "binary_expression", "text": "reinterpret_cast<uint8_t*>(buffer)", "parent": 442, "children": [444, 448, 450, 451], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 50}}, {"id": 444, "type": "binary_expression", "text": "reinterpret_cast<uint8_t", "parent": 443, "children": [445, 446, 447], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 40}}, {"id": 445, "type": "identifier", "text": "reinterpret_cast", "parent": 444, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 32}}, {"id": 446, "type": "<", "text": "<", "parent": 444, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 33}}, {"id": 447, "type": "identifier", "text": "uint8_t", "parent": 444, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 40}}, {"id": 448, "type": "ERROR", "text": "*", "parent": 443, "children": [449], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 41}}, {"id": 449, "type": "*", "text": "*", "parent": 448, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 41}}, {"id": 450, "type": ">", "text": ">", "parent": 443, "children": [], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 42}}, {"id": 451, "type": "parenthesized_expression", "text": "(buffer)", "parent": 443, "children": [452], "start_point": {"row": 65, "column": 42}, "end_point": {"row": 65, "column": 50}}, {"id": 452, "type": "identifier", "text": "buffer", "parent": 451, "children": [], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 49}}, {"id": 453, "type": "identifier", "text": "bufferSize", "parent": 442, "children": [], "start_point": {"row": 65, "column": 52}, "end_point": {"row": 65, "column": 62}}, {"id": 454, "type": "declaration", "text": "bool readSkip(uint32_t skipSize);", "parent": 3, "children": [455, 456], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 35}}, {"id": 455, "type": "primitive_type", "text": "bool", "parent": 454, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 6}}, {"id": 456, "type": "function_declarator", "text": "readSkip(uint32_t skipSize)", "parent": 454, "children": [457, 458], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 34}}, {"id": 457, "type": "identifier", "text": "readSkip", "parent": 456, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 15}}, {"id": 458, "type": "parameter_list", "text": "(uint32_t skipSize)", "parent": 456, "children": [459], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 34}}, {"id": 459, "type": "parameter_declaration", "text": "uint32_t skipSize", "parent": 458, "children": [460, 461], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 33}}, {"id": 460, "type": "primitive_type", "text": "uint32_t", "parent": 459, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 24}}, {"id": 461, "type": "identifier", "text": "skipSize", "parent": 459, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 33}}, {"id": 462, "type": "function_definition", "text": "int8_t readInt8() {\n\t\t\tint8_t n = 0;\n\t\t\tread(&n, sizeof(int8_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [463, 464], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 75, "column": 3}}, {"id": 463, "type": "primitive_type", "text": "int8_t", "parent": 462, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 8}}, {"id": 464, "type": "function_declarator", "text": "readInt8()", "parent": 462, "children": [465, 466], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 19}}, {"id": 465, "type": "identifier", "text": "readInt8", "parent": 464, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 17}}, {"id": 466, "type": "parameter_list", "text": "()", "parent": 464, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 19}}, {"id": 467, "type": "declaration", "text": "int8_t n = 0;", "parent": 462, "children": [468, 469], "start_point": {"row": 72, "column": 3}, "end_point": {"row": 72, "column": 16}}, {"id": 468, "type": "primitive_type", "text": "int8_t", "parent": 467, "children": [], "start_point": {"row": 72, "column": 3}, "end_point": {"row": 72, "column": 9}}, {"id": 469, "type": "init_declarator", "text": "n = 0", "parent": 467, "children": [470, 471, 472], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 15}}, {"id": 470, "type": "identifier", "text": "n", "parent": 469, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 11}}, {"id": 471, "type": "=", "text": "=", "parent": 469, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 13}}, {"id": 472, "type": "number_literal", "text": "0", "parent": 469, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 473, "type": "call_expression", "text": "read(&n, sizeof(int8_t))", "parent": 462, "children": [474, 475], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 27}}, {"id": 474, "type": "identifier", "text": "read", "parent": 473, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 7}}, {"id": 475, "type": "argument_list", "text": "(&n, sizeof(int8_t))", "parent": 473, "children": [476, 478], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 27}}, {"id": 476, "type": "pointer_expression", "text": "&n", "parent": 475, "children": [477], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 10}}, {"id": 477, "type": "identifier", "text": "n", "parent": 476, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 478, "type": "sizeof_expression", "text": "sizeof(int8_t)", "parent": 475, "children": [479], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 26}}, {"id": 479, "type": "type_descriptor", "text": "int8_t", "parent": 478, "children": [480], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 25}}, {"id": 480, "type": "primitive_type", "text": "int8_t", "parent": 479, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 25}}, {"id": 481, "type": "return_statement", "text": "return n;", "parent": 462, "children": [482], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 12}}, {"id": 482, "type": "identifier", "text": "n", "parent": 481, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 11}}, {"id": 483, "type": "function_definition", "text": "int16_t readInt16() {\n\t\t\tint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [484, 485], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 81, "column": 3}}, {"id": 484, "type": "primitive_type", "text": "int16_t", "parent": 483, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 9}}, {"id": 485, "type": "function_declarator", "text": "readInt16()", "parent": 483, "children": [486, 487], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 21}}, {"id": 486, "type": "identifier", "text": "readInt16", "parent": 485, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 19}}, {"id": 487, "type": "parameter_list", "text": "()", "parent": 485, "children": [], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 21}}, {"id": 488, "type": "declaration", "text": "int16_t n = 0;", "parent": 483, "children": [489, 490], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 17}}, {"id": 489, "type": "primitive_type", "text": "int16_t", "parent": 488, "children": [], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 10}}, {"id": 490, "type": "init_declarator", "text": "n = 0", "parent": 488, "children": [491, 492, 493], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 16}}, {"id": 491, "type": "identifier", "text": "n", "parent": 490, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 12}}, {"id": 492, "type": "=", "text": "=", "parent": 490, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 14}}, {"id": 493, "type": "number_literal", "text": "0", "parent": 490, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 16}}, {"id": 494, "type": "call_expression", "text": "read(&n, sizeof(int16_t))", "parent": 483, "children": [495, 496], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 28}}, {"id": 495, "type": "identifier", "text": "read", "parent": 494, "children": [], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 7}}, {"id": 496, "type": "argument_list", "text": "(&n, sizeof(int16_t))", "parent": 494, "children": [497, 499], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 28}}, {"id": 497, "type": "pointer_expression", "text": "&n", "parent": 496, "children": [498], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 10}}, {"id": 498, "type": "identifier", "text": "n", "parent": 497, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 10}}, {"id": 499, "type": "sizeof_expression", "text": "sizeof(int16_t)", "parent": 496, "children": [500], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 27}}, {"id": 500, "type": "type_descriptor", "text": "int16_t", "parent": 499, "children": [501], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 26}}, {"id": 501, "type": "primitive_type", "text": "int16_t", "parent": 500, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 26}}, {"id": 502, "type": "return_statement", "text": "return n;", "parent": 483, "children": [503], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 12}}, {"id": 503, "type": "identifier", "text": "n", "parent": 502, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 11}}, {"id": 504, "type": "function_definition", "text": "int32_t readInt32() {\n\t\t\tint32_t n = 0;\n\t\t\tread(&n, sizeof(int32_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [505, 506], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 87, "column": 3}}, {"id": 505, "type": "primitive_type", "text": "int32_t", "parent": 504, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 9}}, {"id": 506, "type": "function_declarator", "text": "readInt32()", "parent": 504, "children": [507, 508], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 21}}, {"id": 507, "type": "identifier", "text": "readInt32", "parent": 506, "children": [], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 19}}, {"id": 508, "type": "parameter_list", "text": "()", "parent": 506, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 21}}, {"id": 509, "type": "declaration", "text": "int32_t n = 0;", "parent": 504, "children": [510, 511], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 17}}, {"id": 510, "type": "primitive_type", "text": "int32_t", "parent": 509, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 10}}, {"id": 511, "type": "init_declarator", "text": "n = 0", "parent": 509, "children": [512, 513, 514], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 16}}, {"id": 512, "type": "identifier", "text": "n", "parent": 511, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 12}}, {"id": 513, "type": "=", "text": "=", "parent": 511, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 14}}, {"id": 514, "type": "number_literal", "text": "0", "parent": 511, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 16}}, {"id": 515, "type": "call_expression", "text": "read(&n, sizeof(int32_t))", "parent": 504, "children": [516, 517], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 85, "column": 28}}, {"id": 516, "type": "identifier", "text": "read", "parent": 515, "children": [], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 85, "column": 7}}, {"id": 517, "type": "argument_list", "text": "(&n, sizeof(int32_t))", "parent": 515, "children": [518, 520], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 28}}, {"id": 518, "type": "pointer_expression", "text": "&n", "parent": 517, "children": [519], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 10}}, {"id": 519, "type": "identifier", "text": "n", "parent": 518, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 10}}, {"id": 520, "type": "sizeof_expression", "text": "sizeof(int32_t)", "parent": 517, "children": [521], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 27}}, {"id": 521, "type": "type_descriptor", "text": "int32_t", "parent": 520, "children": [522], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 26}}, {"id": 522, "type": "primitive_type", "text": "int32_t", "parent": 521, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 26}}, {"id": 523, "type": "return_statement", "text": "return n;", "parent": 504, "children": [524], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 12}}, {"id": 524, "type": "identifier", "text": "n", "parent": 523, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 11}}, {"id": 525, "type": "function_definition", "text": "int64_t readInt64() {\n\t\t\tint64_t n = 0;\n\t\t\tread(&n, sizeof(int64_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [526, 527], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 93, "column": 3}}, {"id": 526, "type": "primitive_type", "text": "int64_t", "parent": 525, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 9}}, {"id": 527, "type": "function_declarator", "text": "readInt64()", "parent": 525, "children": [528, 529], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 21}}, {"id": 528, "type": "identifier", "text": "readInt64", "parent": 527, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 19}}, {"id": 529, "type": "parameter_list", "text": "()", "parent": 527, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 21}}, {"id": 530, "type": "declaration", "text": "int64_t n = 0;", "parent": 525, "children": [531, 532], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 17}}, {"id": 531, "type": "primitive_type", "text": "int64_t", "parent": 530, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 10}}, {"id": 532, "type": "init_declarator", "text": "n = 0", "parent": 530, "children": [533, 534, 535], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 16}}, {"id": 533, "type": "identifier", "text": "n", "parent": 532, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 12}}, {"id": 534, "type": "=", "text": "=", "parent": 532, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 14}}, {"id": 535, "type": "number_literal", "text": "0", "parent": 532, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 16}}, {"id": 536, "type": "call_expression", "text": "read(&n, sizeof(int64_t))", "parent": 525, "children": [537, 538], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 28}}, {"id": 537, "type": "identifier", "text": "read", "parent": 536, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 7}}, {"id": 538, "type": "argument_list", "text": "(&n, sizeof(int64_t))", "parent": 536, "children": [539, 541], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 28}}, {"id": 539, "type": "pointer_expression", "text": "&n", "parent": 538, "children": [540], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 10}}, {"id": 540, "type": "identifier", "text": "n", "parent": 539, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 10}}, {"id": 541, "type": "sizeof_expression", "text": "sizeof(int64_t)", "parent": 538, "children": [542], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 27}}, {"id": 542, "type": "type_descriptor", "text": "int64_t", "parent": 541, "children": [543], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 26}}, {"id": 543, "type": "primitive_type", "text": "int64_t", "parent": 542, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 26}}, {"id": 544, "type": "return_statement", "text": "return n;", "parent": 525, "children": [545], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 12}}, {"id": 545, "type": "identifier", "text": "n", "parent": 544, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 11}}, {"id": 546, "type": "function_definition", "text": "uint8_t readUInt8() {\n\t\t\tuint8_t n = 0;\n\t\t\tread(&n, sizeof(uint8_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [547, 548], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 99, "column": 3}}, {"id": 547, "type": "primitive_type", "text": "uint8_t", "parent": 546, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 9}}, {"id": 548, "type": "function_declarator", "text": "readUInt8()", "parent": 546, "children": [549, 550], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 21}}, {"id": 549, "type": "identifier", "text": "readUInt8", "parent": 548, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 19}}, {"id": 550, "type": "parameter_list", "text": "()", "parent": 548, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 21}}, {"id": 551, "type": "declaration", "text": "uint8_t n = 0;", "parent": 546, "children": [552, 553], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 17}}, {"id": 552, "type": "primitive_type", "text": "uint8_t", "parent": 551, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 10}}, {"id": 553, "type": "init_declarator", "text": "n = 0", "parent": 551, "children": [554, 555, 556], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 16}}, {"id": 554, "type": "identifier", "text": "n", "parent": 553, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 12}}, {"id": 555, "type": "=", "text": "=", "parent": 553, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 14}}, {"id": 556, "type": "number_literal", "text": "0", "parent": 553, "children": [], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 16}}, {"id": 557, "type": "call_expression", "text": "read(&n, sizeof(uint8_t))", "parent": 546, "children": [558, 559], "start_point": {"row": 97, "column": 3}, "end_point": {"row": 97, "column": 28}}, {"id": 558, "type": "identifier", "text": "read", "parent": 557, "children": [], "start_point": {"row": 97, "column": 3}, "end_point": {"row": 97, "column": 7}}, {"id": 559, "type": "argument_list", "text": "(&n, sizeof(uint8_t))", "parent": 557, "children": [560, 562], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 28}}, {"id": 560, "type": "pointer_expression", "text": "&n", "parent": 559, "children": [561], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 10}}, {"id": 561, "type": "identifier", "text": "n", "parent": 560, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 562, "type": "sizeof_expression", "text": "sizeof(uint8_t)", "parent": 559, "children": [563], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 27}}, {"id": 563, "type": "type_descriptor", "text": "uint8_t", "parent": 562, "children": [564], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 26}}, {"id": 564, "type": "primitive_type", "text": "uint8_t", "parent": 563, "children": [], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 26}}, {"id": 565, "type": "return_statement", "text": "return n;", "parent": 546, "children": [566], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 12}}, {"id": 566, "type": "identifier", "text": "n", "parent": 565, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 11}}, {"id": 567, "type": "function_definition", "text": "uint16_t readUInt16() {\n\t\t\tuint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [568, 569], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 105, "column": 3}}, {"id": 568, "type": "primitive_type", "text": "uint16_t", "parent": 567, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 10}}, {"id": 569, "type": "function_declarator", "text": "readUInt16()", "parent": 567, "children": [570, 571], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 23}}, {"id": 570, "type": "identifier", "text": "readUInt16", "parent": 569, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 21}}, {"id": 571, "type": "parameter_list", "text": "()", "parent": 569, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 23}}, {"id": 572, "type": "declaration", "text": "uint16_t n = 0;", "parent": 567, "children": [573, 574], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 18}}, {"id": 573, "type": "primitive_type", "text": "uint16_t", "parent": 572, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 11}}, {"id": 574, "type": "init_declarator", "text": "n = 0", "parent": 572, "children": [575, 576, 577], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 17}}, {"id": 575, "type": "identifier", "text": "n", "parent": 574, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 13}}, {"id": 576, "type": "=", "text": "=", "parent": 574, "children": [], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 15}}, {"id": 577, "type": "number_literal", "text": "0", "parent": 574, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 17}}, {"id": 578, "type": "call_expression", "text": "read(&n, sizeof(int16_t))", "parent": 567, "children": [579, 580], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 28}}, {"id": 579, "type": "identifier", "text": "read", "parent": 578, "children": [], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 7}}, {"id": 580, "type": "argument_list", "text": "(&n, sizeof(int16_t))", "parent": 578, "children": [581, 583], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 28}}, {"id": 581, "type": "pointer_expression", "text": "&n", "parent": 580, "children": [582], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 10}}, {"id": 582, "type": "identifier", "text": "n", "parent": 581, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 10}}, {"id": 583, "type": "sizeof_expression", "text": "sizeof(int16_t)", "parent": 580, "children": [584], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 27}}, {"id": 584, "type": "type_descriptor", "text": "int16_t", "parent": 583, "children": [585], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 26}}, {"id": 585, "type": "primitive_type", "text": "int16_t", "parent": 584, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 26}}, {"id": 586, "type": "return_statement", "text": "return n;", "parent": 567, "children": [587], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 12}}, {"id": 587, "type": "identifier", "text": "n", "parent": 586, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 11}}, {"id": 588, "type": "function_definition", "text": "uint32_t readUInt32() {\n\t\t\tuint32_t n = 0;\n\t\t\tread(&n, sizeof(uint32_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [589, 590], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 111, "column": 3}}, {"id": 589, "type": "primitive_type", "text": "uint32_t", "parent": 588, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 10}}, {"id": 590, "type": "function_declarator", "text": "readUInt32()", "parent": 588, "children": [591, 592], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 23}}, {"id": 591, "type": "identifier", "text": "readUInt32", "parent": 590, "children": [], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 21}}, {"id": 592, "type": "parameter_list", "text": "()", "parent": 590, "children": [], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 23}}, {"id": 593, "type": "declaration", "text": "uint32_t n = 0;", "parent": 588, "children": [594, 595], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 18}}, {"id": 594, "type": "primitive_type", "text": "uint32_t", "parent": 593, "children": [], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 11}}, {"id": 595, "type": "init_declarator", "text": "n = 0", "parent": 593, "children": [596, 597, 598], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 17}}, {"id": 596, "type": "identifier", "text": "n", "parent": 595, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 13}}, {"id": 597, "type": "=", "text": "=", "parent": 595, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 15}}, {"id": 598, "type": "number_literal", "text": "0", "parent": 595, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 17}}, {"id": 599, "type": "call_expression", "text": "read(&n, sizeof(uint32_t))", "parent": 588, "children": [600, 601], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 29}}, {"id": 600, "type": "identifier", "text": "read", "parent": 599, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 7}}, {"id": 601, "type": "argument_list", "text": "(&n, sizeof(uint32_t))", "parent": 599, "children": [602, 604], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 29}}, {"id": 602, "type": "pointer_expression", "text": "&n", "parent": 601, "children": [603], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 10}}, {"id": 603, "type": "identifier", "text": "n", "parent": 602, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 10}}, {"id": 604, "type": "sizeof_expression", "text": "sizeof(uint32_t)", "parent": 601, "children": [605], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 28}}, {"id": 605, "type": "type_descriptor", "text": "uint32_t", "parent": 604, "children": [606], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 27}}, {"id": 606, "type": "primitive_type", "text": "uint32_t", "parent": 605, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 27}}, {"id": 607, "type": "return_statement", "text": "return n;", "parent": 588, "children": [608], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 12}}, {"id": 608, "type": "identifier", "text": "n", "parent": 607, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 11}}, {"id": 609, "type": "function_definition", "text": "uint64_t readUInt64() {\n\t\t\tuint64_t n = 0;\n\t\t\tread(&n, sizeof(uint64_t));\n\t\t\treturn n;\n\t\t}", "parent": 3, "children": [610, 611], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 117, "column": 3}}, {"id": 610, "type": "primitive_type", "text": "uint64_t", "parent": 609, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 10}}, {"id": 611, "type": "function_declarator", "text": "readUInt64()", "parent": 609, "children": [612, 613], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 23}}, {"id": 612, "type": "identifier", "text": "readUInt64", "parent": 611, "children": [], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 21}}, {"id": 613, "type": "parameter_list", "text": "()", "parent": 611, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 23}}, {"id": 614, "type": "declaration", "text": "uint64_t n = 0;", "parent": 609, "children": [615, 616], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 18}}, {"id": 615, "type": "primitive_type", "text": "uint64_t", "parent": 614, "children": [], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 11}}, {"id": 616, "type": "init_declarator", "text": "n = 0", "parent": 614, "children": [617, 618, 619], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 17}}, {"id": 617, "type": "identifier", "text": "n", "parent": 616, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 13}}, {"id": 618, "type": "=", "text": "=", "parent": 616, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 15}}, {"id": 619, "type": "number_literal", "text": "0", "parent": 616, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 17}}, {"id": 620, "type": "call_expression", "text": "read(&n, sizeof(uint64_t))", "parent": 609, "children": [621, 622], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 29}}, {"id": 621, "type": "identifier", "text": "read", "parent": 620, "children": [], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 7}}, {"id": 622, "type": "argument_list", "text": "(&n, sizeof(uint64_t))", "parent": 620, "children": [623, 625], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 29}}, {"id": 623, "type": "pointer_expression", "text": "&n", "parent": 622, "children": [624], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 10}}, {"id": 624, "type": "identifier", "text": "n", "parent": 623, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 10}}, {"id": 625, "type": "sizeof_expression", "text": "sizeof(uint64_t)", "parent": 622, "children": [626], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 28}}, {"id": 626, "type": "type_descriptor", "text": "uint64_t", "parent": 625, "children": [627], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 27}}, {"id": 627, "type": "primitive_type", "text": "uint64_t", "parent": 626, "children": [], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 27}}, {"id": 628, "type": "return_statement", "text": "return n;", "parent": 609, "children": [629], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 12}}, {"id": 629, "type": "identifier", "text": "n", "parent": 628, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 11}}, {"id": 630, "type": "function_definition", "text": "float readFloat() {\n\t\t\tfloat f = 0.f;\n\t\t\tread(&f, sizeof(float));\n\t\t\treturn f;\n\t\t}", "parent": 3, "children": [631, 632], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 123, "column": 3}}, {"id": 631, "type": "primitive_type", "text": "float", "parent": 630, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 7}}, {"id": 632, "type": "function_declarator", "text": "readFloat()", "parent": 630, "children": [633, 634], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 19}}, {"id": 633, "type": "identifier", "text": "readFloat", "parent": 632, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 17}}, {"id": 634, "type": "parameter_list", "text": "()", "parent": 632, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 19}}, {"id": 635, "type": "declaration", "text": "float f = 0.f;", "parent": 630, "children": [636, 637], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 17}}, {"id": 636, "type": "primitive_type", "text": "float", "parent": 635, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 8}}, {"id": 637, "type": "init_declarator", "text": "f = 0.f", "parent": 635, "children": [638, 639, 640], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 16}}, {"id": 638, "type": "identifier", "text": "f", "parent": 637, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 10}}, {"id": 639, "type": "=", "text": "=", "parent": 637, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 12}}, {"id": 640, "type": "number_literal", "text": "0.f", "parent": 637, "children": [], "start_point": {"row": 120, "column": 13}, "end_point": {"row": 120, "column": 16}}, {"id": 641, "type": "call_expression", "text": "read(&f, sizeof(float))", "parent": 630, "children": [642, 643], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 26}}, {"id": 642, "type": "identifier", "text": "read", "parent": 641, "children": [], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 7}}, {"id": 643, "type": "argument_list", "text": "(&f, sizeof(float))", "parent": 641, "children": [644, 646], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 26}}, {"id": 644, "type": "pointer_expression", "text": "&f", "parent": 643, "children": [645], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 10}}, {"id": 645, "type": "identifier", "text": "f", "parent": 644, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 10}}, {"id": 646, "type": "sizeof_expression", "text": "sizeof(float)", "parent": 643, "children": [647], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 25}}, {"id": 647, "type": "type_descriptor", "text": "float", "parent": 646, "children": [648], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 24}}, {"id": 648, "type": "primitive_type", "text": "float", "parent": 647, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 24}}, {"id": 649, "type": "return_statement", "text": "return f;", "parent": 630, "children": [650], "start_point": {"row": 122, "column": 3}, "end_point": {"row": 122, "column": 12}}, {"id": 650, "type": "identifier", "text": "f", "parent": 649, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 651, "type": "function_definition", "text": "double readDouble() {\n\t\t\tdouble d = 0.f;\n\t\t\tread(&d, sizeof(double));\n\t\t\treturn d;\n\t\t}", "parent": 3, "children": [652, 653], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 129, "column": 3}}, {"id": 652, "type": "primitive_type", "text": "double", "parent": 651, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 8}}, {"id": 653, "type": "function_declarator", "text": "readDouble()", "parent": 651, "children": [654, 655], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 21}}, {"id": 654, "type": "identifier", "text": "readDouble", "parent": 653, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 19}}, {"id": 655, "type": "parameter_list", "text": "()", "parent": 653, "children": [], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 125, "column": 21}}, {"id": 656, "type": "declaration", "text": "double d = 0.f;", "parent": 651, "children": [657, 658], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 18}}, {"id": 657, "type": "primitive_type", "text": "double", "parent": 656, "children": [], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 9}}, {"id": 658, "type": "init_declarator", "text": "d = 0.f", "parent": 656, "children": [659, 660, 661], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 17}}, {"id": 659, "type": "identifier", "text": "d", "parent": 658, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 11}}, {"id": 660, "type": "=", "text": "=", "parent": 658, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 13}}, {"id": 661, "type": "number_literal", "text": "0.f", "parent": 658, "children": [], "start_point": {"row": 126, "column": 14}, "end_point": {"row": 126, "column": 17}}, {"id": 662, "type": "call_expression", "text": "read(&d, sizeof(double))", "parent": 651, "children": [663, 664], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 27}}, {"id": 663, "type": "identifier", "text": "read", "parent": 662, "children": [], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 7}}, {"id": 664, "type": "argument_list", "text": "(&d, sizeof(double))", "parent": 662, "children": [665, 667], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 27}}, {"id": 665, "type": "pointer_expression", "text": "&d", "parent": 664, "children": [666], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 10}}, {"id": 666, "type": "identifier", "text": "d", "parent": 665, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 10}}, {"id": 667, "type": "sizeof_expression", "text": "sizeof(double)", "parent": 664, "children": [668], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 26}}, {"id": 668, "type": "type_descriptor", "text": "double", "parent": 667, "children": [669], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 25}}, {"id": 669, "type": "primitive_type", "text": "double", "parent": 668, "children": [], "start_point": {"row": 127, "column": 19}, "end_point": {"row": 127, "column": 25}}, {"id": 670, "type": "return_statement", "text": "return d;", "parent": 651, "children": [671], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 12}}, {"id": 671, "type": "identifier", "text": "d", "parent": 670, "children": [], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 11}}, {"id": 672, "type": "function_definition", "text": "bool readBool() {\n\t\t\tbool b = false;\n\t\t\tread(&b, sizeof(bool));\n\t\t\treturn b;\n\t\t}", "parent": 3, "children": [673, 674], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 135, "column": 3}}, {"id": 673, "type": "primitive_type", "text": "bool", "parent": 672, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 6}}, {"id": 674, "type": "function_declarator", "text": "readBool()", "parent": 672, "children": [675, 676], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 17}}, {"id": 675, "type": "identifier", "text": "readBool", "parent": 674, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 15}}, {"id": 676, "type": "parameter_list", "text": "()", "parent": 674, "children": [], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 17}}, {"id": 677, "type": "declaration", "text": "bool b = false;", "parent": 672, "children": [678, 679], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 18}}, {"id": 678, "type": "primitive_type", "text": "bool", "parent": 677, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 7}}, {"id": 679, "type": "init_declarator", "text": "b = false", "parent": 677, "children": [680, 681, 682], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 17}}, {"id": 680, "type": "identifier", "text": "b", "parent": 679, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 9}}, {"id": 681, "type": "=", "text": "=", "parent": 679, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 11}}, {"id": 682, "type": "false", "text": "false", "parent": 679, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 17}}, {"id": 683, "type": "call_expression", "text": "read(&b, sizeof(bool))", "parent": 672, "children": [684, 685], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 25}}, {"id": 684, "type": "identifier", "text": "read", "parent": 683, "children": [], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 7}}, {"id": 685, "type": "argument_list", "text": "(&b, sizeof(bool))", "parent": 683, "children": [686, 688], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 25}}, {"id": 686, "type": "pointer_expression", "text": "&b", "parent": 685, "children": [687], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 10}}, {"id": 687, "type": "identifier", "text": "b", "parent": 686, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 10}}, {"id": 688, "type": "sizeof_expression", "text": "sizeof(bool)", "parent": 685, "children": [689], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 24}}, {"id": 689, "type": "type_descriptor", "text": "bool", "parent": 688, "children": [690], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 133, "column": 23}}, {"id": 690, "type": "primitive_type", "text": "bool", "parent": 689, "children": [], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 133, "column": 23}}, {"id": 691, "type": "return_statement", "text": "return b;", "parent": 672, "children": [692], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 12}}, {"id": 692, "type": "identifier", "text": "b", "parent": 691, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 11}}, {"id": 693, "type": "labeled_statement", "text": "std::string readString();", "parent": 3, "children": [694, 695], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 27}}, {"id": 694, "type": "statement_identifier", "text": "std", "parent": 693, "children": [], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 5}}, {"id": 695, "type": "declaration", "text": "string readString();", "parent": 693, "children": [696, 697], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 27}}, {"id": 696, "type": "type_identifier", "text": "string", "parent": 695, "children": [], "start_point": {"row": 137, "column": 7}, "end_point": {"row": 137, "column": 13}}, {"id": 697, "type": "function_declarator", "text": "readString()", "parent": 695, "children": [698, 699], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 26}}, {"id": 698, "type": "identifier", "text": "readString", "parent": 697, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 24}}, {"id": 699, "type": "parameter_list", "text": "()", "parent": 697, "children": [], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 26}}, {"id": 700, "type": "binary_expression", "text": "template <typename T>\n\t\tstd::shared_ptr<BlobArray<T>> readBlobArray()", "parent": 3, "children": [701, 715, 716], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 140, "column": 47}}, {"id": 701, "type": "binary_expression", "text": "template <typename T>\n\t\tstd::shared_ptr<BlobArray", "parent": 700, "children": [702, 711, 713, 714], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 140, "column": 27}}, {"id": 702, "type": "binary_expression", "text": "template <typename T>\n\t\tstd", "parent": 701, "children": [703, 707, 709, 710], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 140, "column": 5}}, {"id": 703, "type": "binary_expression", "text": "template <typename", "parent": 702, "children": [704, 705, 706], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 20}}, {"id": 704, "type": "identifier", "text": "template", "parent": 703, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 10}}, {"id": 705, "type": "<", "text": "<", "parent": 703, "children": [], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 12}}, {"id": 706, "type": "identifier", "text": "typename", "parent": 703, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 20}}, {"id": 707, "type": "ERROR", "text": "T", "parent": 702, "children": [708], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 22}}, {"id": 708, "type": "identifier", "text": "T", "parent": 707, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 22}}, {"id": 709, "type": ">", "text": ">", "parent": 702, "children": [], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 23}}, {"id": 710, "type": "identifier", "text": "std", "parent": 702, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 5}}, {"id": 711, "type": "ERROR", "text": "::shared_ptr", "parent": 701, "children": [712], "start_point": {"row": 140, "column": 5}, "end_point": {"row": 140, "column": 17}}, {"id": 712, "type": "identifier", "text": "shared_ptr", "parent": 711, "children": [], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 17}}, {"id": 713, "type": "<", "text": "<", "parent": 701, "children": [], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 18}}, {"id": 714, "type": "identifier", "text": "BlobArray", "parent": 701, "children": [], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 27}}, {"id": 715, "type": "<", "text": "<", "parent": 700, "children": [], "start_point": {"row": 140, "column": 27}, "end_point": {"row": 140, "column": 28}}, {"id": 716, "type": "binary_expression", "text": "T>> readBlobArray()", "parent": 700, "children": [717, 718, 719], "start_point": {"row": 140, "column": 28}, "end_point": {"row": 140, "column": 47}}, {"id": 717, "type": "identifier", "text": "T", "parent": 716, "children": [], "start_point": {"row": 140, "column": 28}, "end_point": {"row": 140, "column": 29}}, {"id": 718, "type": ">>", "text": ">>", "parent": 716, "children": [], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 31}}, {"id": 719, "type": "call_expression", "text": "readBlobArray()", "parent": 716, "children": [720, 721], "start_point": {"row": 140, "column": 32}, "end_point": {"row": 140, "column": 47}}, {"id": 720, "type": "identifier", "text": "readBlobArray", "parent": 719, "children": [], "start_point": {"row": 140, "column": 32}, "end_point": {"row": 140, "column": 45}}, {"id": 721, "type": "argument_list", "text": "()", "parent": 719, "children": [], "start_point": {"row": 140, "column": 45}, "end_point": {"row": 140, "column": 47}}, {"id": 722, "type": "declaration", "text": "auto blob = std::make_shared<BlobArray<T>>();", "parent": 3, "children": [723, 725, 726, 733, 734], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 48}}, {"id": 723, "type": "storage_class_specifier", "text": "auto", "parent": 722, "children": [724], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 7}}, {"id": 724, "type": "auto", "text": "auto", "parent": 723, "children": [], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 7}}, {"id": 725, "type": "type_identifier", "text": "blob", "parent": 722, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 12}}, {"id": 726, "type": "ERROR", "text": "= std::make_shared<BlobArray<", "parent": 722, "children": [727, 728, 729, 730, 731, 732], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 42}}, {"id": 727, "type": "=", "text": "=", "parent": 726, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 14}}, {"id": 728, "type": "identifier", "text": "std", "parent": 726, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 18}}, {"id": 729, "type": "identifier", "text": "make_shared", "parent": 726, "children": [], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 31}}, {"id": 730, "type": "<", "text": "<", "parent": 726, "children": [], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 32}}, {"id": 731, "type": "identifier", "text": "BlobArray", "parent": 726, "children": [], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 41}}, {"id": 732, "type": "<", "text": "<", "parent": 726, "children": [], "start_point": {"row": 141, "column": 41}, "end_point": {"row": 141, "column": 42}}, {"id": 733, "type": "identifier", "text": "T", "parent": 722, "children": [], "start_point": {"row": 141, "column": 42}, "end_point": {"row": 141, "column": 43}}, {"id": 734, "type": "ERROR", "text": ">>()", "parent": 722, "children": [735], "start_point": {"row": 141, "column": 43}, "end_point": {"row": 141, "column": 47}}, {"id": 735, "type": ">>", "text": ">>", "parent": 734, "children": [], "start_point": {"row": 141, "column": 43}, "end_point": {"row": 141, "column": 45}}, {"id": 736, "type": "if_statement", "text": "if (!isState(PS_READABLE))\n\t\t\t\treturn nullptr;", "parent": 3, "children": [737, 744], "start_point": {"row": 142, "column": 3}, "end_point": {"row": 143, "column": 19}}, {"id": 737, "type": "parenthesized_expression", "text": "(!isState(PS_READABLE))", "parent": 736, "children": [738], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 29}}, {"id": 738, "type": "unary_expression", "text": "!isState(PS_READABLE)", "parent": 737, "children": [739, 740], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 28}}, {"id": 739, "type": "!", "text": "!", "parent": 738, "children": [], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 8}}, {"id": 740, "type": "call_expression", "text": "isState(PS_READABLE)", "parent": 738, "children": [741, 742], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 28}}, {"id": 741, "type": "identifier", "text": "isState", "parent": 740, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 15}}, {"id": 742, "type": "argument_list", "text": "(PS_READABLE)", "parent": 740, "children": [743], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 28}}, {"id": 743, "type": "identifier", "text": "PS_READABLE", "parent": 742, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 27}}, {"id": 744, "type": "return_statement", "text": "return nullptr;", "parent": 736, "children": [745], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 19}}, {"id": 745, "type": "null", "text": "nullptr", "parent": 744, "children": [746], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 18}}, {"id": 746, "type": "nullptr", "text": "nullptr", "parent": 745, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 18}}, {"id": 747, "type": "declaration", "text": "uint32_t itemCount = readUInt32();", "parent": 3, "children": [748, 749], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 145, "column": 37}}, {"id": 748, "type": "primitive_type", "text": "uint32_t", "parent": 747, "children": [], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 145, "column": 11}}, {"id": 749, "type": "init_declarator", "text": "itemCount = readUInt32()", "parent": 747, "children": [750, 751, 752], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 36}}, {"id": 750, "type": "identifier", "text": "itemCount", "parent": 749, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 21}}, {"id": 751, "type": "=", "text": "=", "parent": 749, "children": [], "start_point": {"row": 145, "column": 22}, "end_point": {"row": 145, "column": 23}}, {"id": 752, "type": "call_expression", "text": "readUInt32()", "parent": 749, "children": [753, 754], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 36}}, {"id": 753, "type": "identifier", "text": "readUInt32", "parent": 752, "children": [], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 34}}, {"id": 754, "type": "argument_list", "text": "()", "parent": 752, "children": [], "start_point": {"row": 145, "column": 34}, "end_point": {"row": 145, "column": 36}}, {"id": 755, "type": "if_statement", "text": "if (!isState(PS_READABLE))\n\t\t\t\treturn nullptr;", "parent": 3, "children": [756, 763], "start_point": {"row": 146, "column": 3}, "end_point": {"row": 147, "column": 19}}, {"id": 756, "type": "parenthesized_expression", "text": "(!isState(PS_READABLE))", "parent": 755, "children": [757], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 29}}, {"id": 757, "type": "unary_expression", "text": "!isState(PS_READABLE)", "parent": 756, "children": [758, 759], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 28}}, {"id": 758, "type": "!", "text": "!", "parent": 757, "children": [], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 8}}, {"id": 759, "type": "call_expression", "text": "isState(PS_READABLE)", "parent": 757, "children": [760, 761], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 28}}, {"id": 760, "type": "identifier", "text": "isState", "parent": 759, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 15}}, {"id": 761, "type": "argument_list", "text": "(PS_READABLE)", "parent": 759, "children": [762], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 28}}, {"id": 762, "type": "identifier", "text": "PS_READABLE", "parent": 761, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 27}}, {"id": 763, "type": "return_statement", "text": "return nullptr;", "parent": 755, "children": [764], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 19}}, {"id": 764, "type": "null", "text": "nullptr", "parent": 763, "children": [765], "start_point": {"row": 147, "column": 11}, "end_point": {"row": 147, "column": 18}}, {"id": 765, "type": "nullptr", "text": "nullptr", "parent": 764, "children": [], "start_point": {"row": 147, "column": 11}, "end_point": {"row": 147, "column": 18}}, {"id": 766, "type": "if_statement", "text": "if (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n\t\t\t{\n\t\t\t\tsetState(PS_INVALID);\n\t\t\t\treturn nullptr;\n\t\t\t}", "parent": 3, "children": [767], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 154, "column": 4}}, {"id": 767, "type": "parenthesized_expression", "text": "(m_Cursor + (itemCount * sizeof(T)) > m_Data.size())", "parent": 766, "children": [768], "start_point": {"row": 150, "column": 6}, "end_point": {"row": 150, "column": 58}}, {"id": 768, "type": "binary_expression", "text": "m_Cursor + (itemCount * sizeof(T)) > m_Data.size()", "parent": 767, "children": [769, 779, 780], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 57}}, {"id": 769, "type": "binary_expression", "text": "m_Cursor + (itemCount * sizeof(T))", "parent": 768, "children": [770, 771, 772], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 41}}, {"id": 770, "type": "identifier", "text": "m_Cursor", "parent": 769, "children": [], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 15}}, {"id": 771, "type": "+", "text": "+", "parent": 769, "children": [], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 17}}, {"id": 772, "type": "parenthesized_expression", "text": "(itemCount * sizeof(T))", "parent": 769, "children": [773], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 41}}, {"id": 773, "type": "binary_expression", "text": "itemCount * sizeof(T)", "parent": 772, "children": [774, 775, 776], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 40}}, {"id": 774, "type": "identifier", "text": "itemCount", "parent": 773, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 28}}, {"id": 775, "type": "*", "text": "*", "parent": 773, "children": [], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 30}}, {"id": 776, "type": "sizeof_expression", "text": "sizeof(T)", "parent": 773, "children": [777], "start_point": {"row": 150, "column": 31}, "end_point": {"row": 150, "column": 40}}, {"id": 777, "type": "parenthesized_expression", "text": "(T)", "parent": 776, "children": [778], "start_point": {"row": 150, "column": 37}, "end_point": {"row": 150, "column": 40}}, {"id": 778, "type": "identifier", "text": "T", "parent": 777, "children": [], "start_point": {"row": 150, "column": 38}, "end_point": {"row": 150, "column": 39}}, {"id": 779, "type": ">", "text": ">", "parent": 768, "children": [], "start_point": {"row": 150, "column": 42}, "end_point": {"row": 150, "column": 43}}, {"id": 780, "type": "call_expression", "text": "m_Data.size()", "parent": 768, "children": [781, 784], "start_point": {"row": 150, "column": 44}, "end_point": {"row": 150, "column": 57}}, {"id": 781, "type": "field_expression", "text": "m_Data.size", "parent": 780, "children": [782, 783], "start_point": {"row": 150, "column": 44}, "end_point": {"row": 150, "column": 55}}, {"id": 782, "type": "identifier", "text": "m_Data", "parent": 781, "children": [], "start_point": {"row": 150, "column": 44}, "end_point": {"row": 150, "column": 50}}, {"id": 783, "type": "field_identifier", "text": "size", "parent": 781, "children": [], "start_point": {"row": 150, "column": 51}, "end_point": {"row": 150, "column": 55}}, {"id": 784, "type": "argument_list", "text": "()", "parent": 780, "children": [], "start_point": {"row": 150, "column": 55}, "end_point": {"row": 150, "column": 57}}, {"id": 785, "type": "call_expression", "text": "setState(PS_INVALID)", "parent": 766, "children": [786, 787], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 24}}, {"id": 786, "type": "identifier", "text": "setState", "parent": 785, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 12}}, {"id": 787, "type": "argument_list", "text": "(PS_INVALID)", "parent": 785, "children": [788], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 24}}, {"id": 788, "type": "identifier", "text": "PS_INVALID", "parent": 787, "children": [], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 23}}, {"id": 789, "type": "return_statement", "text": "return nullptr;", "parent": 766, "children": [790], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 19}}, {"id": 790, "type": "null", "text": "nullptr", "parent": 789, "children": [791], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 18}}, {"id": 791, "type": "nullptr", "text": "nullptr", "parent": 790, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 18}}, {"id": 792, "type": "if_statement", "text": "if (itemCount > 0)\n\t\t\t\tblob->add((T*)(&m_Data[m_Cursor]), itemCount);", "parent": 3, "children": [793], "start_point": {"row": 156, "column": 3}, "end_point": {"row": 157, "column": 50}}, {"id": 793, "type": "parenthesized_expression", "text": "(itemCount > 0)", "parent": 792, "children": [794], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 21}}, {"id": 794, "type": "binary_expression", "text": "itemCount > 0", "parent": 793, "children": [795, 796, 797], "start_point": {"row": 156, "column": 7}, "end_point": {"row": 156, "column": 20}}, {"id": 795, "type": "identifier", "text": "itemCount", "parent": 794, "children": [], "start_point": {"row": 156, "column": 7}, "end_point": {"row": 156, "column": 16}}, {"id": 796, "type": ">", "text": ">", "parent": 794, "children": [], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 18}}, {"id": 797, "type": "number_literal", "text": "0", "parent": 794, "children": [], "start_point": {"row": 156, "column": 19}, "end_point": {"row": 156, "column": 20}}, {"id": 798, "type": "call_expression", "text": "blob->add((T*)(&m_Data[m_Cursor]), itemCount)", "parent": 792, "children": [799, 802], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 49}}, {"id": 799, "type": "field_expression", "text": "blob->add", "parent": 798, "children": [800, 801], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 13}}, {"id": 800, "type": "identifier", "text": "blob", "parent": 799, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 8}}, {"id": 801, "type": "field_identifier", "text": "add", "parent": 799, "children": [], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 13}}, {"id": 802, "type": "argument_list", "text": "((T*)(&m_Data[m_Cursor]), itemCount)", "parent": 798, "children": [803, 813], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 49}}, {"id": 803, "type": "cast_expression", "text": "(T*)(&m_Data[m_Cursor])", "parent": 802, "children": [804, 808], "start_point": {"row": 157, "column": 14}, "end_point": {"row": 157, "column": 37}}, {"id": 804, "type": "type_descriptor", "text": "T*", "parent": 803, "children": [805, 806], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 17}}, {"id": 805, "type": "type_identifier", "text": "T", "parent": 804, "children": [], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 16}}, {"id": 806, "type": "abstract_pointer_declarator", "text": "*", "parent": 804, "children": [807], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 17}}, {"id": 807, "type": "*", "text": "*", "parent": 806, "children": [], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 17}}, {"id": 808, "type": "parenthesized_expression", "text": "(&m_Data[m_Cursor])", "parent": 803, "children": [809], "start_point": {"row": 157, "column": 18}, "end_point": {"row": 157, "column": 37}}, {"id": 809, "type": "pointer_expression", "text": "&m_Data[m_Cursor]", "parent": 808, "children": [810], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 36}}, {"id": 810, "type": "subscript_expression", "text": "m_Data[m_Cursor]", "parent": 809, "children": [811, 812], "start_point": {"row": 157, "column": 20}, "end_point": {"row": 157, "column": 36}}, {"id": 811, "type": "identifier", "text": "m_Data", "parent": 810, "children": [], "start_point": {"row": 157, "column": 20}, "end_point": {"row": 157, "column": 26}}, {"id": 812, "type": "identifier", "text": "m_Cursor", "parent": 810, "children": [], "start_point": {"row": 157, "column": 27}, "end_point": {"row": 157, "column": 35}}, {"id": 813, "type": "identifier", "text": "itemCount", "parent": 802, "children": [], "start_point": {"row": 157, "column": 39}, "end_point": {"row": 157, "column": 48}}, {"id": 814, "type": "assignment_expression", "text": "m_Cursor += itemCount * sizeof(T)", "parent": 3, "children": [815, 816, 817], "start_point": {"row": 159, "column": 3}, "end_point": {"row": 159, "column": 36}}, {"id": 815, "type": "identifier", "text": "m_Cursor", "parent": 814, "children": [], "start_point": {"row": 159, "column": 3}, "end_point": {"row": 159, "column": 11}}, {"id": 816, "type": "+=", "text": "+=", "parent": 814, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 14}}, {"id": 817, "type": "binary_expression", "text": "itemCount * sizeof(T)", "parent": 814, "children": [818, 819, 820], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 159, "column": 36}}, {"id": 818, "type": "identifier", "text": "itemCount", "parent": 817, "children": [], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 159, "column": 24}}, {"id": 819, "type": "*", "text": "*", "parent": 817, "children": [], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 26}}, {"id": 820, "type": "sizeof_expression", "text": "sizeof(T)", "parent": 817, "children": [821], "start_point": {"row": 159, "column": 27}, "end_point": {"row": 159, "column": 36}}, {"id": 821, "type": "parenthesized_expression", "text": "(T)", "parent": 820, "children": [822], "start_point": {"row": 159, "column": 33}, "end_point": {"row": 159, "column": 36}}, {"id": 822, "type": "identifier", "text": "T", "parent": 821, "children": [], "start_point": {"row": 159, "column": 34}, "end_point": {"row": 159, "column": 35}}, {"id": 823, "type": "return_statement", "text": "return blob;", "parent": 3, "children": [824], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 161, "column": 15}}, {"id": 824, "type": "identifier", "text": "blob", "parent": 823, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 14}}, {"id": 825, "type": "function_definition", "text": "bool isReadable() { return isState(PS_READABLE); }", "parent": 3, "children": [826, 827], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 52}}, {"id": 826, "type": "primitive_type", "text": "bool", "parent": 825, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 6}}, {"id": 827, "type": "function_declarator", "text": "isReadable()", "parent": 825, "children": [828, 829], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 19}}, {"id": 828, "type": "identifier", "text": "isReadable", "parent": 827, "children": [], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 17}}, {"id": 829, "type": "parameter_list", "text": "()", "parent": 827, "children": [], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 19}}, {"id": 830, "type": "return_statement", "text": "return isState(PS_READABLE);", "parent": 825, "children": [831], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 50}}, {"id": 831, "type": "call_expression", "text": "isState(PS_READABLE)", "parent": 830, "children": [832, 833], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 49}}, {"id": 832, "type": "identifier", "text": "isState", "parent": 831, "children": [], "start_point": {"row": 164, "column": 29}, "end_point": {"row": 164, "column": 36}}, {"id": 833, "type": "argument_list", "text": "(PS_READABLE)", "parent": 831, "children": [834], "start_point": {"row": 164, "column": 36}, "end_point": {"row": 164, "column": 49}}, {"id": 834, "type": "identifier", "text": "PS_READABLE", "parent": 833, "children": [], "start_point": {"row": 164, "column": 37}, "end_point": {"row": 164, "column": 48}}, {"id": 835, "type": "function_definition", "text": "bool isValid() { return !isState(PS_INVALID); }", "parent": 3, "children": [836, 837], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 49}}, {"id": 836, "type": "primitive_type", "text": "bool", "parent": 835, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 6}}, {"id": 837, "type": "function_declarator", "text": "isValid()", "parent": 835, "children": [838, 839], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 16}}, {"id": 838, "type": "identifier", "text": "isValid", "parent": 837, "children": [], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 14}}, {"id": 839, "type": "parameter_list", "text": "()", "parent": 837, "children": [], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 16}}, {"id": 840, "type": "return_statement", "text": "return !isState(PS_INVALID);", "parent": 835, "children": [841], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 47}}, {"id": 841, "type": "unary_expression", "text": "!isState(PS_INVALID)", "parent": 840, "children": [842, 843], "start_point": {"row": 165, "column": 26}, "end_point": {"row": 165, "column": 46}}, {"id": 842, "type": "!", "text": "!", "parent": 841, "children": [], "start_point": {"row": 165, "column": 26}, "end_point": {"row": 165, "column": 27}}, {"id": 843, "type": "call_expression", "text": "isState(PS_INVALID)", "parent": 841, "children": [844, 845], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 46}}, {"id": 844, "type": "identifier", "text": "isState", "parent": 843, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 34}}, {"id": 845, "type": "argument_list", "text": "(PS_INVALID)", "parent": 843, "children": [846], "start_point": {"row": 165, "column": 34}, "end_point": {"row": 165, "column": 46}}, {"id": 846, "type": "identifier", "text": "PS_INVALID", "parent": 845, "children": [], "start_point": {"row": 165, "column": 35}, "end_point": {"row": 165, "column": 45}}, {"id": 847, "type": "function_definition", "text": "bool isWritable() { return isState(PS_WRITABLE); }", "parent": 3, "children": [848, 849], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 52}}, {"id": 848, "type": "primitive_type", "text": "bool", "parent": 847, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 6}}, {"id": 849, "type": "function_declarator", "text": "isWritable()", "parent": 847, "children": [850, 851], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 19}}, {"id": 850, "type": "identifier", "text": "isWritable", "parent": 849, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 17}}, {"id": 851, "type": "parameter_list", "text": "()", "parent": 849, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 19}}, {"id": 852, "type": "return_statement", "text": "return isState(PS_WRITABLE);", "parent": 847, "children": [853], "start_point": {"row": 166, "column": 22}, "end_point": {"row": 166, "column": 50}}, {"id": 853, "type": "call_expression", "text": "isState(PS_WRITABLE)", "parent": 852, "children": [854, 855], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 49}}, {"id": 854, "type": "identifier", "text": "isState", "parent": 853, "children": [], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 36}}, {"id": 855, "type": "argument_list", "text": "(PS_WRITABLE)", "parent": 853, "children": [856], "start_point": {"row": 166, "column": 36}, "end_point": {"row": 166, "column": 49}}, {"id": 856, "type": "identifier", "text": "PS_WRITABLE", "parent": 855, "children": [], "start_point": {"row": 166, "column": 37}, "end_point": {"row": 166, "column": 48}}, {"id": 857, "type": "function_definition", "text": "bool isTransfering() { return isState(PS_INRECEIVE); }", "parent": 3, "children": [858, 859], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 56}}, {"id": 858, "type": "primitive_type", "text": "bool", "parent": 857, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 6}}, {"id": 859, "type": "function_declarator", "text": "isTransfering()", "parent": 857, "children": [860, 861], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 22}}, {"id": 860, "type": "identifier", "text": "isTransfering", "parent": 859, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 20}}, {"id": 861, "type": "parameter_list", "text": "()", "parent": 859, "children": [], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 22}}, {"id": 862, "type": "return_statement", "text": "return isState(PS_INRECEIVE);", "parent": 857, "children": [863], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 54}}, {"id": 863, "type": "call_expression", "text": "isState(PS_INRECEIVE)", "parent": 862, "children": [864, 865], "start_point": {"row": 167, "column": 32}, "end_point": {"row": 167, "column": 53}}, {"id": 864, "type": "identifier", "text": "isState", "parent": 863, "children": [], "start_point": {"row": 167, "column": 32}, "end_point": {"row": 167, "column": 39}}, {"id": 865, "type": "argument_list", "text": "(PS_INRECEIVE)", "parent": 863, "children": [866], "start_point": {"row": 167, "column": 39}, "end_point": {"row": 167, "column": 53}}, {"id": 866, "type": "identifier", "text": "PS_INRECEIVE", "parent": 865, "children": [], "start_point": {"row": 167, "column": 40}, "end_point": {"row": 167, "column": 52}}, {"id": 867, "type": "function_definition", "text": "const uint8_t* _getRawData() { return &m_Data[0]; }", "parent": 3, "children": [868, 869], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 53}}, {"id": 868, "type": "primitive_type", "text": "uint8_t", "parent": 867, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 15}}, {"id": 869, "type": "pointer_declarator", "text": "* _getRawData()", "parent": 867, "children": [870, 871], "start_point": {"row": 171, "column": 15}, "end_point": {"row": 171, "column": 30}}, {"id": 870, "type": "*", "text": "*", "parent": 869, "children": [], "start_point": {"row": 171, "column": 15}, "end_point": {"row": 171, "column": 16}}, {"id": 871, "type": "function_declarator", "text": "_getRawData()", "parent": 869, "children": [872, 873], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 30}}, {"id": 872, "type": "identifier", "text": "_getRawData", "parent": 871, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 28}}, {"id": 873, "type": "parameter_list", "text": "()", "parent": 871, "children": [], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 30}}, {"id": 874, "type": "return_statement", "text": "return &m_Data[0];", "parent": 867, "children": [875], "start_point": {"row": 171, "column": 33}, "end_point": {"row": 171, "column": 51}}, {"id": 875, "type": "pointer_expression", "text": "&m_Data[0]", "parent": 874, "children": [876], "start_point": {"row": 171, "column": 40}, "end_point": {"row": 171, "column": 50}}, {"id": 876, "type": "subscript_expression", "text": "m_Data[0]", "parent": 875, "children": [877, 878], "start_point": {"row": 171, "column": 41}, "end_point": {"row": 171, "column": 50}}, {"id": 877, "type": "identifier", "text": "m_Data", "parent": 876, "children": [], "start_point": {"row": 171, "column": 41}, "end_point": {"row": 171, "column": 47}}, {"id": 878, "type": "number_literal", "text": "0", "parent": 876, "children": [], "start_point": {"row": 171, "column": 48}, "end_point": {"row": 171, "column": 49}}, {"id": 879, "type": "function_definition", "text": "const uint32_t _getRawSize() { return m_Data.size(); }", "parent": 3, "children": [880, 881], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 56}}, {"id": 880, "type": "primitive_type", "text": "uint32_t", "parent": 879, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 16}}, {"id": 881, "type": "function_declarator", "text": "_getRawSize()", "parent": 879, "children": [882, 883], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 30}}, {"id": 882, "type": "identifier", "text": "_getRawSize", "parent": 881, "children": [], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 28}}, {"id": 883, "type": "parameter_list", "text": "()", "parent": 881, "children": [], "start_point": {"row": 172, "column": 28}, "end_point": {"row": 172, "column": 30}}, {"id": 884, "type": "return_statement", "text": "return m_Data.size();", "parent": 879, "children": [885], "start_point": {"row": 172, "column": 33}, "end_point": {"row": 172, "column": 54}}, {"id": 885, "type": "call_expression", "text": "m_Data.size()", "parent": 884, "children": [886, 889], "start_point": {"row": 172, "column": 40}, "end_point": {"row": 172, "column": 53}}, {"id": 886, "type": "field_expression", "text": "m_Data.size", "parent": 885, "children": [887, 888], "start_point": {"row": 172, "column": 40}, "end_point": {"row": 172, "column": 51}}, {"id": 887, "type": "identifier", "text": "m_Data", "parent": 886, "children": [], "start_point": {"row": 172, "column": 40}, "end_point": {"row": 172, "column": 46}}, {"id": 888, "type": "field_identifier", "text": "size", "parent": 886, "children": [], "start_point": {"row": 172, "column": 47}, "end_point": {"row": 172, "column": 51}}, {"id": 889, "type": "argument_list", "text": "()", "parent": 885, "children": [], "start_point": {"row": 172, "column": 51}, "end_point": {"row": 172, "column": 53}}, {"id": 890, "type": "declaration", "text": "uint32_t _onReceive(uint8_t* data, uint32_t dataSize);", "parent": 3, "children": [891, 892], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 56}}, {"id": 891, "type": "primitive_type", "text": "uint32_t", "parent": 890, "children": [], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 10}}, {"id": 892, "type": "function_declarator", "text": "_onReceive(uint8_t* data, uint32_t dataSize)", "parent": 890, "children": [893, 894], "start_point": {"row": 175, "column": 11}, "end_point": {"row": 175, "column": 55}}, {"id": 893, "type": "identifier", "text": "_onReceive", "parent": 892, "children": [], "start_point": {"row": 175, "column": 11}, "end_point": {"row": 175, "column": 21}}, {"id": 894, "type": "parameter_list", "text": "(uint8_t* data, uint32_t dataSize)", "parent": 892, "children": [895, 900], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 55}}, {"id": 895, "type": "parameter_declaration", "text": "uint8_t* data", "parent": 894, "children": [896, 897], "start_point": {"row": 175, "column": 22}, "end_point": {"row": 175, "column": 35}}, {"id": 896, "type": "primitive_type", "text": "uint8_t", "parent": 895, "children": [], "start_point": {"row": 175, "column": 22}, "end_point": {"row": 175, "column": 29}}, {"id": 897, "type": "pointer_declarator", "text": "* data", "parent": 895, "children": [898, 899], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 35}}, {"id": 898, "type": "*", "text": "*", "parent": 897, "children": [], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 30}}, {"id": 899, "type": "identifier", "text": "data", "parent": 897, "children": [], "start_point": {"row": 175, "column": 31}, "end_point": {"row": 175, "column": 35}}, {"id": 900, "type": "parameter_declaration", "text": "uint32_t dataSize", "parent": 894, "children": [901, 902], "start_point": {"row": 175, "column": 37}, "end_point": {"row": 175, "column": 54}}, {"id": 901, "type": "primitive_type", "text": "uint32_t", "parent": 900, "children": [], "start_point": {"row": 175, "column": 37}, "end_point": {"row": 175, "column": 45}}, {"id": 902, "type": "identifier", "text": "dataSize", "parent": 900, "children": [], "start_point": {"row": 175, "column": 46}, "end_point": {"row": 175, "column": 54}}, {"id": 903, "type": "declaration", "text": "bool _onSend();", "parent": 3, "children": [904, 905], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 17}}, {"id": 904, "type": "primitive_type", "text": "bool", "parent": 903, "children": [], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 6}}, {"id": 905, "type": "function_declarator", "text": "_onSend()", "parent": 903, "children": [906, 907], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 16}}, {"id": 906, "type": "identifier", "text": "_onSend", "parent": 905, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 14}}, {"id": 907, "type": "parameter_list", "text": "()", "parent": 905, "children": [], "start_point": {"row": 176, "column": 14}, "end_point": {"row": 176, "column": 16}}, {"id": 908, "type": "labeled_statement", "text": "std::shared_ptr<Packet> _copy();", "parent": 3, "children": [909], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 34}}, {"id": 909, "type": "statement_identifier", "text": "std", "parent": 908, "children": [], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 5}}, {"id": 910, "type": "binary_expression", "text": "shared_ptr<Packet> _copy()", "parent": 908, "children": [911, 915, 916], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 33}}, {"id": 911, "type": "binary_expression", "text": "shared_ptr<Packet", "parent": 910, "children": [912, 913, 914], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 24}}, {"id": 912, "type": "identifier", "text": "shared_ptr", "parent": 911, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 17}}, {"id": 913, "type": "<", "text": "<", "parent": 911, "children": [], "start_point": {"row": 177, "column": 17}, "end_point": {"row": 177, "column": 18}}, {"id": 914, "type": "identifier", "text": "Packet", "parent": 911, "children": [], "start_point": {"row": 177, "column": 18}, "end_point": {"row": 177, "column": 24}}, {"id": 915, "type": ">", "text": ">", "parent": 910, "children": [], "start_point": {"row": 177, "column": 24}, "end_point": {"row": 177, "column": 25}}, {"id": 916, "type": "call_expression", "text": "_copy()", "parent": 910, "children": [917, 918], "start_point": {"row": 177, "column": 26}, "end_point": {"row": 177, "column": 33}}, {"id": 917, "type": "identifier", "text": "_copy", "parent": 916, "children": [], "start_point": {"row": 177, "column": 26}, "end_point": {"row": 177, "column": 31}}, {"id": 918, "type": "argument_list", "text": "()", "parent": 916, "children": [], "start_point": {"row": 177, "column": 31}, "end_point": {"row": 177, "column": 33}}]}, "node_categories": {"declarations": {"functions": [3, 6, 46, 48, 58, 60, 79, 85, 117, 130, 132, 146, 148, 162, 164, 178, 180, 194, 196, 210, 212, 226, 228, 242, 244, 258, 260, 274, 276, 290, 292, 308, 316, 318, 407, 456, 462, 464, 483, 485, 504, 506, 525, 527, 546, 548, 567, 569, 588, 590, 609, 611, 630, 632, 651, 653, 672, 674, 697, 825, 827, 835, 837, 847, 849, 857, 859, 867, 871, 879, 881, 892, 905], "variables": [10, 27, 30, 51, 63, 75, 83, 88, 93, 106, 120, 135, 151, 167, 183, 199, 215, 231, 247, 263, 279, 295, 306, 311, 321, 405, 410, 415, 454, 459, 467, 488, 509, 530, 551, 572, 593, 614, 635, 656, 677, 695, 722, 747, 890, 895, 900, 903], "classes": [723], "imports": [], "modules": [], "enums": [31, 32, 34, 35, 37, 39, 41, 43]}, "statements": {"expressions": [15, 20, 21, 67, 72, 97, 98, 138, 141, 143, 154, 157, 159, 170, 173, 175, 186, 189, 191, 202, 205, 207, 218, 221, 223, 234, 237, 239, 250, 253, 255, 266, 269, 271, 282, 285, 287, 298, 301, 303, 326, 329, 330, 334, 335, 344, 347, 348, 353, 356, 357, 358, 360, 365, 367, 372, 375, 376, 381, 382, 383, 384, 390, 393, 394, 399, 400, 419, 420, 429, 432, 440, 443, 444, 451, 473, 476, 478, 494, 497, 499, 515, 518, 520, 536, 539, 541, 557, 560, 562, 578, 581, 583, 599, 602, 604, 620, 623, 625, 641, 644, 646, 662, 665, 667, 683, 686, 688, 700, 701, 702, 703, 716, 719, 737, 738, 740, 752, 756, 757, 759, 767, 768, 769, 772, 773, 776, 777, 780, 781, 785, 793, 794, 798, 799, 803, 808, 809, 810, 817, 820, 821, 831, 841, 843, 853, 863, 875, 876, 885, 886, 910, 911, 916], "assignments": [54, 814], "loops": [], "conditionals": [4, 5, 7, 9, 13, 19, 22, 24, 26, 29, 33, 36, 38, 40, 42, 44, 45, 49, 52, 53, 55, 57, 61, 64, 65, 68, 70, 73, 76, 80, 86, 92, 95, 99, 101, 103, 105, 107, 108, 110, 113, 115, 116, 118, 121, 124, 128, 129, 133, 137, 139, 142, 149, 153, 155, 158, 165, 169, 171, 174, 181, 185, 187, 190, 197, 201, 203, 206, 213, 217, 219, 222, 229, 233, 235, 238, 245, 249, 251, 254, 261, 265, 267, 270, 277, 281, 283, 286, 293, 297, 299, 302, 309, 315, 319, 322, 324, 325, 327, 331, 332, 336, 338, 340, 343, 345, 349, 351, 354, 355, 361, 363, 368, 370, 373, 377, 378, 380, 385, 386, 391, 395, 396, 401, 402, 408, 414, 417, 421, 423, 425, 428, 430, 433, 435, 437, 438, 441, 445, 447, 452, 453, 457, 461, 465, 470, 474, 477, 482, 486, 491, 495, 498, 503, 507, 512, 516, 519, 524, 528, 533, 537, 540, 545, 549, 554, 558, 561, 566, 570, 575, 579, 582, 587, 591, 596, 600, 603, 608, 612, 617, 621, 624, 629, 633, 638, 642, 645, 650, 654, 659, 663, 666, 671, 675, 680, 684, 687, 692, 694, 696, 698, 704, 706, 708, 710, 712, 714, 717, 720, 725, 728, 729, 731, 733, 736, 741, 743, 750, 753, 755, 760, 762, 766, 770, 774, 778, 782, 783, 786, 788, 792, 795, 800, 801, 805, 811, 812, 813, 815, 818, 822, 824, 828, 832, 834, 838, 844, 846, 850, 854, 856, 860, 864, 866, 872, 877, 882, 887, 888, 893, 899, 902, 906, 909, 912, 914, 917], "returns": [66, 371, 439, 481, 502, 523, 544, 565, 586, 607, 628, 649, 670, 691, 744, 763, 789, 823, 830, 840, 852, 862, 874, 884], "exceptions": []}, "expressions": {"calls": [0], "literals": [389, 398, 472, 493, 514, 535, 556, 577, 598, 619, 640, 661, 797, 878], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "DLLEXPORT", "text_snippet": "namespace visNET{\n\tclass DLLEXPORT Packet {\n\t\tconst uint32_t PacketSizeLength = sizeof(uint32_t);\n\n\t"}, {"node_id": 6, "universal_type": "function", "name": "DLLEXPORT", "text_snippet": "class DLLEXPORT Packet {\n\t\tconst uint32_t PacketSizeLength = sizeof(uint32_t);\n\n\t\tstd::vector<uint8_"}, {"node_id": 46, "universal_type": "function", "name": "setState", "text_snippet": "void setState(PSTATES packetState) { m_PacketState = packetState; }"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "setState(PSTATES packetState)"}, {"node_id": 58, "universal_type": "function", "name": "isState", "text_snippet": "bool isState(PSTATES packetState) { return m_PacketState == packetState; }"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "isState(PSTATES packetState)"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "Packet()"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "_write(const uint8_t* data, uint32_t dataSize)"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "_write(reinterpret_cast<const uint8_t*>(data)"}, {"node_id": 130, "universal_type": "function", "name": "writeInt8", "text_snippet": "void writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "writeInt8(int8_t n)"}, {"node_id": 146, "universal_type": "function", "name": "writeInt16", "text_snippet": "void writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }"}, {"node_id": 148, "universal_type": "function", "name": "unknown", "text_snippet": "writeInt16(int16_t n)"}, {"node_id": 162, "universal_type": "function", "name": "writeInt32", "text_snippet": "void writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "writeInt32(int32_t n)"}, {"node_id": 178, "universal_type": "function", "name": "writeInt64", "text_snippet": "void writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "writeInt64(int64_t n)"}, {"node_id": 194, "universal_type": "function", "name": "writeUInt8", "text_snippet": "void writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "writeUInt8(uint8_t n)"}, {"node_id": 210, "universal_type": "function", "name": "writeUInt16", "text_snippet": "void writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }"}, {"node_id": 212, "universal_type": "function", "name": "unknown", "text_snippet": "writeUInt16(uint16_t n)"}, {"node_id": 226, "universal_type": "function", "name": "writeUInt32", "text_snippet": "void writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }"}, {"node_id": 228, "universal_type": "function", "name": "unknown", "text_snippet": "writeUInt32(uint32_t n)"}, {"node_id": 242, "universal_type": "function", "name": "writeUInt64", "text_snippet": "void writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }"}, {"node_id": 244, "universal_type": "function", "name": "unknown", "text_snippet": "writeUInt64(uint64_t n)"}, {"node_id": 258, "universal_type": "function", "name": "writeFloat", "text_snippet": "void writeFloat(float f) { write(&f, sizeof(float)); }"}, {"node_id": 260, "universal_type": "function", "name": "unknown", "text_snippet": "writeFloat(float f)"}, {"node_id": 274, "universal_type": "function", "name": "writeDouble", "text_snippet": "void writeDouble(double d) { write(&d, sizeof(double)); }"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "writeDouble(double d)"}, {"node_id": 290, "universal_type": "function", "name": "writeBool", "text_snippet": "void writeBool(bool b) { write(&b, sizeof(bool)); }"}, {"node_id": 292, "universal_type": "function", "name": "unknown", "text_snippet": "writeBool(bool b)"}, {"node_id": 308, "universal_type": "function", "name": "unknown", "text_snippet": "writeString(const char* string)"}, {"node_id": 316, "universal_type": "function", "name": "writeString", "text_snippet": "void writeString(std::string& string) { writeString(string.c_str()); }"}, {"node_id": 318, "universal_type": "function", "name": "unknown", "text_snippet": "writeString(std::string& string)"}, {"node_id": 407, "universal_type": "function", "name": "unknown", "text_snippet": "_read(uint8_t* buffer, uint32_t bufferSize)"}, {"node_id": 456, "universal_type": "function", "name": "unknown", "text_snippet": "readSkip(uint32_t skipSize)"}, {"node_id": 462, "universal_type": "function", "name": "unknown", "text_snippet": "int8_t readInt8() {\n\t\t\tint8_t n = 0;\n\t\t\tread(&n, sizeof(int8_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 464, "universal_type": "function", "name": "unknown", "text_snippet": "readInt8()"}, {"node_id": 483, "universal_type": "function", "name": "unknown", "text_snippet": "int16_t readInt16() {\n\t\t\tint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 485, "universal_type": "function", "name": "unknown", "text_snippet": "readInt16()"}, {"node_id": 504, "universal_type": "function", "name": "unknown", "text_snippet": "int32_t readInt32() {\n\t\t\tint32_t n = 0;\n\t\t\tread(&n, sizeof(int32_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 506, "universal_type": "function", "name": "unknown", "text_snippet": "readInt32()"}, {"node_id": 525, "universal_type": "function", "name": "unknown", "text_snippet": "int64_t readInt64() {\n\t\t\tint64_t n = 0;\n\t\t\tread(&n, sizeof(int64_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 527, "universal_type": "function", "name": "unknown", "text_snippet": "readInt64()"}, {"node_id": 546, "universal_type": "function", "name": "unknown", "text_snippet": "uint8_t readUInt8() {\n\t\t\tuint8_t n = 0;\n\t\t\tread(&n, sizeof(uint8_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 548, "universal_type": "function", "name": "unknown", "text_snippet": "readUInt8()"}, {"node_id": 567, "universal_type": "function", "name": "unknown", "text_snippet": "uint16_t readUInt16() {\n\t\t\tuint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 569, "universal_type": "function", "name": "unknown", "text_snippet": "readUInt16()"}, {"node_id": 588, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t readUInt32() {\n\t\t\tuint32_t n = 0;\n\t\t\tread(&n, sizeof(uint32_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 590, "universal_type": "function", "name": "unknown", "text_snippet": "readUInt32()"}, {"node_id": 609, "universal_type": "function", "name": "unknown", "text_snippet": "uint64_t readUInt64() {\n\t\t\tuint64_t n = 0;\n\t\t\tread(&n, sizeof(uint64_t));\n\t\t\treturn n;\n\t\t}"}, {"node_id": 611, "universal_type": "function", "name": "unknown", "text_snippet": "readUInt64()"}, {"node_id": 630, "universal_type": "function", "name": "unknown", "text_snippet": "float readFloat() {\n\t\t\tfloat f = 0.f;\n\t\t\tread(&f, sizeof(float));\n\t\t\treturn f;\n\t\t}"}, {"node_id": 632, "universal_type": "function", "name": "unknown", "text_snippet": "readFloat()"}, {"node_id": 651, "universal_type": "function", "name": "unknown", "text_snippet": "double readDouble() {\n\t\t\tdouble d = 0.f;\n\t\t\tread(&d, sizeof(double));\n\t\t\treturn d;\n\t\t}"}, {"node_id": 653, "universal_type": "function", "name": "unknown", "text_snippet": "readDouble()"}, {"node_id": 672, "universal_type": "function", "name": "readBool", "text_snippet": "bool readBool() {\n\t\t\tbool b = false;\n\t\t\tread(&b, sizeof(bool));\n\t\t\treturn b;\n\t\t}"}, {"node_id": 674, "universal_type": "function", "name": "unknown", "text_snippet": "readBool()"}, {"node_id": 697, "universal_type": "function", "name": "unknown", "text_snippet": "readString()"}, {"node_id": 825, "universal_type": "function", "name": "isReadable", "text_snippet": "bool isReadable() { return isState(PS_READABLE); }"}, {"node_id": 827, "universal_type": "function", "name": "unknown", "text_snippet": "isReadable()"}, {"node_id": 835, "universal_type": "function", "name": "isValid", "text_snippet": "bool isValid() { return !isState(PS_INVALID); }"}, {"node_id": 837, "universal_type": "function", "name": "unknown", "text_snippet": "isValid()"}, {"node_id": 847, "universal_type": "function", "name": "isWritable", "text_snippet": "bool isWritable() { return isState(PS_WRITABLE); }"}, {"node_id": 849, "universal_type": "function", "name": "unknown", "text_snippet": "isWritable()"}, {"node_id": 857, "universal_type": "function", "name": "isTransfering", "text_snippet": "bool isTransfering() { return isState(PS_INRECEIVE); }"}, {"node_id": 859, "universal_type": "function", "name": "unknown", "text_snippet": "isTransfering()"}, {"node_id": 867, "universal_type": "function", "name": "unknown", "text_snippet": "const uint8_t* _getRawData() { return &m_Data[0]; }"}, {"node_id": 871, "universal_type": "function", "name": "unknown", "text_snippet": "_getRawData()"}, {"node_id": 879, "universal_type": "function", "name": "unknown", "text_snippet": "const uint32_t _getRawSize() { return m_Data.size(); }"}, {"node_id": 881, "universal_type": "function", "name": "unknown", "text_snippet": "_getRawSize()"}, {"node_id": 892, "universal_type": "function", "name": "unknown", "text_snippet": "_onReceive(uint8_t* data, uint32_t dataSize)"}, {"node_id": 905, "universal_type": "function", "name": "unknown", "text_snippet": "_onSend()"}], "class_declarations": [{"node_id": 723, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": []}, "original_source_code": "#pragma once\n\nnamespace visNET{\n\tclass DLLEXPORT Packet {\n\t\tconst uint32_t PacketSizeLength = sizeof(uint32_t);\n\n\t\tstd::vector<uint8_t> m_Data;\n\t\tuint32_t m_Cursor;\n\n\t\tenum PSTATES {\n\t\t\tPS_INVALID,\n\t\t\tPS_CLEAR,\n\t\t\tPS_WRITABLE,\n\t\t\tPS_INRECEIVE,\n\t\t\tPS_READABLE,\n\t\t} m_PacketState;\n\n\t\tvoid setState(PSTATES packetState) { m_PacketState = packetState; }\n\t\tbool isState(PSTATES packetState) { return m_PacketState == packetState; }\n\tpublic:\n\t\tPacket();\n\t\tvirtual ~Packet();\n\n\tprivate:\n\t\tvoid _write(const uint8_t* data, uint32_t dataSize);\n\tpublic:\n\t\t// If possible, use the predefined functions instead of directly writing to the buffer\n\t\ttemplate<typename T>\n\t\tvoid write(const T* data, uint32_t dataSize) {\n\t\t\t_write(reinterpret_cast<const uint8_t*>(data), dataSize);\n\t\t}\n\n\t\tvoid writeInt8(int8_t n) { write(&n, sizeof(int8_t)); }\n\t\tvoid writeInt16(int16_t n) { write(&n, sizeof(int16_t)); }\n\t\tvoid writeInt32(int32_t n) { write(&n, sizeof(int32_t)); }\n\t\tvoid writeInt64(int64_t n) { write(&n, sizeof(int64_t)); }\n\t\tvoid writeUInt8(uint8_t n) { write(&n, sizeof(uint8_t)); }\n\t\tvoid writeUInt16(uint16_t n) { write(&n, sizeof(uint16_t)); }\n\t\tvoid writeUInt32(uint32_t n) { write(&n, sizeof(uint32_t)); }\n\t\tvoid writeUInt64(uint64_t n) { write(&n, sizeof(uint64_t)); }\n\t\tvoid writeFloat(float f) { write(&f, sizeof(float)); }\n\t\tvoid writeDouble(double d) { write(&d, sizeof(double)); }\n\t\tvoid writeBool(bool b) { write(&b, sizeof(bool)); }\n\n\t\tvoid writeString(const char* string);\n\t\tvoid writeString(std::string& string) { writeString(string.c_str()); }\n\n\t\ttemplate <typename T>\n\t\tvoid writeBlobArray(BlobArray<T>& blob)\n\t\t{\n\t\t\tif (!isState(PS_WRITABLE) && !isState(PS_CLEAR))\n\t\t\t\treturn;\n\n\t\t\twriteUInt32(blob.size());\n\n\t\t\tif (blob.size() > 0)\n\t\t\t\twrite(blob.getPtr(0), blob.dataSize());\n\t\t}\n\n\t\t// If possible, use the predefined readtypes instead of directly reading from the buffer\n\tprivate:\n\t\tbool _read(uint8_t* buffer, uint32_t bufferSize);\n\tpublic:\n\t\ttemplate<typename T>\n\t\tbool read(T* buffer, uint32_t bufferSize) {\n\t\t\treturn _read(reinterpret_cast<uint8_t*>(buffer), bufferSize);\n\t\t}\n\n\t\t// Skip an amount of bytes in the received packet\n\t\tbool readSkip(uint32_t skipSize);\n\n\t\tint8_t readInt8() {\n\t\t\tint8_t n = 0;\n\t\t\tread(&n, sizeof(int8_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tint16_t readInt16() {\n\t\t\tint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tint32_t readInt32() {\n\t\t\tint32_t n = 0;\n\t\t\tread(&n, sizeof(int32_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tint64_t readInt64() {\n\t\t\tint64_t n = 0;\n\t\t\tread(&n, sizeof(int64_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint8_t readUInt8() {\n\t\t\tuint8_t n = 0;\n\t\t\tread(&n, sizeof(uint8_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint16_t readUInt16() {\n\t\t\tuint16_t n = 0;\n\t\t\tread(&n, sizeof(int16_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint32_t readUInt32() {\n\t\t\tuint32_t n = 0;\n\t\t\tread(&n, sizeof(uint32_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tuint64_t readUInt64() {\n\t\t\tuint64_t n = 0;\n\t\t\tread(&n, sizeof(uint64_t));\n\t\t\treturn n;\n\t\t}\n\n\t\tfloat readFloat() {\n\t\t\tfloat f = 0.f;\n\t\t\tread(&f, sizeof(float));\n\t\t\treturn f;\n\t\t}\n\n\t\tdouble readDouble() {\n\t\t\tdouble d = 0.f;\n\t\t\tread(&d, sizeof(double));\n\t\t\treturn d;\n\t\t}\n\n\t\tbool readBool() {\n\t\t\tbool b = false;\n\t\t\tread(&b, sizeof(bool));\n\t\t\treturn b;\n\t\t}\n\n\t\tstd::string readString();\n\n\t\ttemplate <typename T>\n\t\tstd::shared_ptr<BlobArray<T>> readBlobArray(){\n\t\t\tauto blob = std::make_shared<BlobArray<T>>();\n\t\t\tif (!isState(PS_READABLE))\n\t\t\t\treturn nullptr;\n\n\t\t\tuint32_t itemCount = readUInt32();\n\t\t\tif (!isState(PS_READABLE))\n\t\t\t\treturn nullptr;\n\n\t\t\t// Prevent reading out of bounds\n\t\t\tif (m_Cursor + (itemCount * sizeof(T)) > m_Data.size())\n\t\t\t{\n\t\t\t\tsetState(PS_INVALID);\n\t\t\t\treturn nullptr;\n\t\t\t}\n\n\t\t\tif (itemCount > 0)\n\t\t\t\tblob->add((T*)(&m_Data[m_Cursor]), itemCount);\n\n\t\t\tm_Cursor += itemCount * sizeof(T);\n\n\t\t\treturn blob;\n\t\t}\n\n\t\tbool isReadable() { return isState(PS_READABLE); }\n\t\tbool isValid() { return !isState(PS_INVALID); }\n\t\tbool isWritable() { return isState(PS_WRITABLE); }\n\t\tbool isTransfering() { return isState(PS_INRECEIVE); }\n\n\t\t// Put these near the bottom in intellisense\n\t\t// These _* functions shouldn't get called from any extern program except if declaring a custom packet type\n\t\tconst uint8_t* _getRawData() { return &m_Data[0]; }\n\t\tconst uint32_t _getRawSize() { return m_Data.size(); }\n\n\t\t// Return value of onReceive indicates if there is unread data remaining in the given buffer\n\t\tuint32_t _onReceive(uint8_t* data, uint32_t dataSize);\n\t\tbool _onSend(); //Gets called before being send\n\t\tstd::shared_ptr<Packet> _copy();\n\t};\n}"}
80,467
c
#include <snow.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef struct { char* buf; uint32_t buf_len; uint32_t len; } str_t; void redraw(str_t* text_buf, const str_t* input_buf); void draw_cursor(uint32_t x, uint32_t y); str_t* str_new(const char* str); void str_free(str_t* str); void str_append(str_t* str, const char* text); void interpret_cmd(str_t* text_buf, str_t* cmd); uint32_t count_lines(str_t* str); char* scroll_view(char* str); const uint32_t twidth = 550; const uint32_t theight = 342; const uint32_t char_width = 8; const uint32_t char_height = 16; const uint32_t max_col = twidth / char_width - 1; const uint32_t max_line = theight / char_height - 1; const char* prompt = "snowflakeos $ "; const uint32_t margin = 1; const uint32_t text_color = 0xE0E0E0; const float cursor_blink_time = 1; window_t* win; bool cursor = true; bool running = true; bool focused = true; int main() { win = snow_open_window("Terminal", twidth, theight, WM_NORMAL); syscall(SYS_MAKETTY); str_t* text_buf = str_new(prompt); str_t* input_buf = str_new(""); cursor = true; uint32_t last_time = 0; redraw(text_buf, input_buf); while (running) { wm_event_t event = snow_get_event(win); wm_kbd_event_t key = event.kbd; bool needs_redrawing = false; // Do we have focus? if (event.type == WM_EVENT_GAINED_FOCUS) { focused = true; needs_redrawing = true; } else if (event.type == WM_EVENT_LOST_FOCUS) { focused = false; cursor = false; needs_redrawing = true; } // Time & cursor blinks if (focused) { sys_info_t info; syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info); uint32_t time = (uint32_t) (info.uptime / cursor_blink_time); if (time != last_time) { last_time = time; cursor = !cursor; needs_redrawing = true; } } // Print things that have been output, if any, and append a prompt const uint32_t buf_size = 256; char buf[buf_size]; uint32_t read; bool anything_read = false; while ((read = fread(buf, 1, buf_size - 1, stdout))) { buf[read] = '\0'; str_append(text_buf, buf); needs_redrawing = true; anything_read = true; } if (anything_read) { str_append(text_buf, prompt); } if (event.type == WM_EVENT_KBD && event.kbd.pressed) { needs_redrawing = true; switch (key.keycode) { case KBD_ENTER: case KBD_KP_ENTER: str_append(text_buf, input_buf->buf); interpret_cmd(text_buf, input_buf); printf("\n"); input_buf->buf[0] = '\0'; input_buf->len = 0; break; case KBD_BACKSPACE: if (input_buf->len) { input_buf->buf[input_buf->len - 1] = '\0'; input_buf->len -= 1; } break; default: if (key.keycode < KBD_KP_ENTER) { char str[2] = "\0\0"; str[0] = key.repr; str_append(input_buf, str); } break; } } if (needs_redrawing) { redraw(text_buf, input_buf); } } str_free(text_buf); str_free(input_buf); snow_close_window(win); return 0; } void redraw(str_t* text_buf, const str_t* input_buf) { /* Window decorations */ // background snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535); // title bar snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221); snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000); snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF); // border of the whole window snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555); /* Text content */ uint32_t y = 22; // below title bar // Temporarily concatenate the input and a cursor str_append(text_buf, input_buf->buf); if (cursor) { str_append(text_buf, "_"); } char line_buf[max_col + 1]; char* text_view = text_buf->buf; uint32_t n_lines = count_lines(text_buf); // Scroll the buffer as needed if (n_lines > max_line) { for (uint32_t i = 0; i < n_lines - max_line; i++) { text_view = scroll_view(text_view); } } // Draw line by line, wrapping text while (text_view < &text_buf->buf[text_buf->len]) { char* lf = strchrnul(text_view, '\n'); uint32_t line_len = (uint32_t) (lf - text_view); if (line_len <= max_col) { strncpy(line_buf, text_view, line_len); line_buf[line_len] = '\0'; text_view += line_len + 1; // Discard the line feed } else { strncpy(line_buf, text_view, max_col); line_buf[max_col] = '\0'; text_view += max_col; } snow_draw_string(win->fb, line_buf, margin, y, text_color); y += char_height; } // De-concatenate text_buf->buf[text_buf->len - input_buf->len] = '\0'; text_buf->len -= input_buf->len; if (cursor) { text_buf->buf[text_buf->len - 1] = '\0'; text_buf->len -= 1; } // Update the window snow_render_window(win); } str_t* str_new(const char* str) { str_t* s = malloc(sizeof(str_t)); uint32_t size = strlen(str) + 1; s->buf = malloc(size); s->buf_len = size; s->len = size - 1; strcpy(s->buf, str); return s; } void str_free(str_t* str) { free(str->buf); free(str); } void str_append(str_t* str, const char* text) { uint32_t prev_len = str->len; uint32_t needed = strlen(text) + prev_len + 1; if (needed > str->buf_len) { char* new_buf = malloc(2*needed); strcpy(new_buf, str->buf); free(str->buf); str->buf = new_buf; str->buf_len = 2*needed; } strcpy(&str->buf[prev_len], text); str->len = needed - 1; } void interpret_cmd(str_t* text_buf, str_t* input_buf) { if (!strcmp(input_buf->buf, "exit")) { running = false; return; } char* cmd = input_buf->buf; uint32_t n_args = 0; char** args = NULL; char* next = cmd; while (*next) { args = realloc(args, (++n_args + 1) * sizeof(char*)); while (isspace(*next)) { next++; } uint32_t n = strchrnul(next, ' ') - next; args[n_args - 1] = strndup(next, n); args[n_args] = NULL; next = strchrnul(next, ' '); } if (!args) { return; } int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args); while (args && *args) { free(*args); args++; } free(args); if (ret != 0) { str_append(text_buf, "\ninvalid command: "); str_append(text_buf, cmd); } } uint32_t count_lines(str_t* str) { char* text_view = str->buf; uint32_t n_lines = 0; while (text_view < &str->buf[str->len]) { char* lf = strchrnul(text_view, '\n'); uint32_t line_len = (uint32_t) (lf - text_view); if (line_len <= max_col) { text_view += line_len + 1; // Discard the line feed } else { text_view += max_col; } n_lines += 1; } return n_lines; } /* Discards the first line of the buffer. */ char* scroll_view(char* str) { char* lf = strchrnul(str, '\n'); uint32_t line_len = (uint32_t) (lf - str); if (line_len <= max_col) { return lf + 1; } return str + max_col; }
30.42
249
(translation_unit) "#include <snow.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n\ntypedef struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n} str_t;\n\nvoid redraw(str_t* text_buf, const str_t* input_buf);\nvoid draw_cursor(uint32_t x, uint32_t y);\nstr_t* str_new(const char* str);\nvoid str_free(str_t* str);\nvoid str_append(str_t* str, const char* text);\nvoid interpret_cmd(str_t* text_buf, str_t* cmd);\nuint32_t count_lines(str_t* str);\nchar* scroll_view(char* str);\n\nconst uint32_t twidth = 550;\nconst uint32_t theight = 342;\nconst uint32_t char_width = 8;\nconst uint32_t char_height = 16;\nconst uint32_t max_col = twidth / char_width - 1;\nconst uint32_t max_line = theight / char_height - 1;\n\nconst char* prompt = "snowflakeos $ ";\nconst uint32_t margin = 1;\nconst uint32_t text_color = 0xE0E0E0;\nconst float cursor_blink_time = 1;\n\nwindow_t* win;\nbool cursor = true;\nbool running = true;\nbool focused = true;\n\nint main() {\n win = snow_open_window("Terminal", twidth, theight, WM_NORMAL);\n\n syscall(SYS_MAKETTY);\n\n str_t* text_buf = str_new(prompt);\n str_t* input_buf = str_new("");\n cursor = true;\n\n uint32_t last_time = 0;\n\n redraw(text_buf, input_buf);\n\n while (running) {\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }\n\n str_free(text_buf);\n str_free(input_buf);\n\n snow_close_window(win);\n\n return 0;\n}\n\nvoid redraw(str_t* text_buf, const str_t* input_buf) {\n /* Window decorations */\n\n // background\n snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535);\n // title bar\n snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221);\n snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000);\n snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF);\n // border of the whole window\n snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555);\n\n /* Text content */\n\n uint32_t y = 22; // below title bar\n\n // Temporarily concatenate the input and a cursor\n str_append(text_buf, input_buf->buf);\n\n if (cursor) {\n str_append(text_buf, "_");\n }\n\n char line_buf[max_col + 1];\n char* text_view = text_buf->buf;\n uint32_t n_lines = count_lines(text_buf);\n\n // Scroll the buffer as needed\n if (n_lines > max_line) {\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }\n\n // Draw line by line, wrapping text\n while (text_view < &text_buf->buf[text_buf->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }\n\n // De-concatenate\n text_buf->buf[text_buf->len - input_buf->len] = '\0';\n text_buf->len -= input_buf->len;\n\n if (cursor) {\n text_buf->buf[text_buf->len - 1] = '\0';\n text_buf->len -= 1;\n }\n\n // Update the window\n snow_render_window(win);\n}\n\nstr_t* str_new(const char* str) {\n str_t* s = malloc(sizeof(str_t));\n uint32_t size = strlen(str) + 1;\n\n s->buf = malloc(size);\n s->buf_len = size;\n s->len = size - 1;\n\n strcpy(s->buf, str);\n\n return s;\n}\n\nvoid str_free(str_t* str) {\n free(str->buf);\n free(str);\n}\n\nvoid str_append(str_t* str, const char* text) {\n uint32_t prev_len = str->len;\n uint32_t needed = strlen(text) + prev_len + 1;\n\n if (needed > str->buf_len) {\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }\n\n strcpy(&str->buf[prev_len], text);\n str->len = needed - 1;\n}\n\nvoid interpret_cmd(str_t* text_buf, str_t* input_buf) {\n if (!strcmp(input_buf->buf, "exit")) {\n running = false;\n return;\n }\n\n char* cmd = input_buf->buf;\n uint32_t n_args = 0;\n char** args = NULL;\n char* next = cmd;\n\n while (*next) {\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }\n\n if (!args) {\n return;\n }\n\n int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args);\n\n while (args && *args) {\n free(*args);\n args++;\n }\n\n free(args);\n\n if (ret != 0) {\n str_append(text_buf, "\ninvalid command: ");\n str_append(text_buf, cmd);\n }\n}\n\nuint32_t count_lines(str_t* str) {\n char* text_view = str->buf;\n uint32_t n_lines = 0;\n\n while (text_view < &str->buf[str->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }\n\n return n_lines;\n}\n\n/* Discards the first line of the buffer.\n */\nchar* scroll_view(char* str) {\n char* lf = strchrnul(str, '\n');\n uint32_t line_len = (uint32_t) (lf - str);\n\n if (line_len <= max_col) {\n return lf + 1;\n }\n\n return str + max_col;\n}\n" (preproc_include) "#include <snow.h>\n" (#include) "#include" (system_lib_string) "<snow.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 <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (type_definition) "typedef struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n} str_t;" (typedef) "typedef" (struct_specifier) "struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n}" (struct) "struct" (field_declaration_list) "{\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n}" ({) "{" (field_declaration) "char* buf;" (primitive_type) "char" (pointer_declarator) "* buf" (*) "*" (field_identifier) "buf" (;) ";" (field_declaration) "uint32_t buf_len;" (primitive_type) "uint32_t" (field_identifier) "buf_len" (;) ";" (field_declaration) "uint32_t len;" (primitive_type) "uint32_t" (field_identifier) "len" (;) ";" (}) "}" (type_identifier) "str_t" (;) ";" (declaration) "void redraw(str_t* text_buf, const str_t* input_buf);" (primitive_type) "void" (function_declarator) "redraw(str_t* text_buf, const str_t* input_buf)" (identifier) "redraw" (parameter_list) "(str_t* text_buf, const str_t* input_buf)" (() "(" (parameter_declaration) "str_t* text_buf" (type_identifier) "str_t" (pointer_declarator) "* text_buf" (*) "*" (identifier) "text_buf" (,) "," (parameter_declaration) "const str_t* input_buf" (type_qualifier) "const" (const) "const" (type_identifier) "str_t" (pointer_declarator) "* input_buf" (*) "*" (identifier) "input_buf" ()) ")" (;) ";" (declaration) "void draw_cursor(uint32_t x, uint32_t y);" (primitive_type) "void" (function_declarator) "draw_cursor(uint32_t x, uint32_t y)" (identifier) "draw_cursor" (parameter_list) "(uint32_t x, uint32_t y)" (() "(" (parameter_declaration) "uint32_t x" (primitive_type) "uint32_t" (identifier) "x" (,) "," (parameter_declaration) "uint32_t y" (primitive_type) "uint32_t" (identifier) "y" ()) ")" (;) ";" (declaration) "str_t* str_new(const char* str);" (type_identifier) "str_t" (pointer_declarator) "* str_new(const char* str)" (*) "*" (function_declarator) "str_new(const char* str)" (identifier) "str_new" (parameter_list) "(const char* str)" (() "(" (parameter_declaration) "const char* str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "void str_free(str_t* str);" (primitive_type) "void" (function_declarator) "str_free(str_t* str)" (identifier) "str_free" (parameter_list) "(str_t* str)" (() "(" (parameter_declaration) "str_t* str" (type_identifier) "str_t" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "void str_append(str_t* str, const char* text);" (primitive_type) "void" (function_declarator) "str_append(str_t* str, const char* text)" (identifier) "str_append" (parameter_list) "(str_t* str, const char* text)" (() "(" (parameter_declaration) "str_t* str" (type_identifier) "str_t" (pointer_declarator) "* str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "const char* text" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* text" (*) "*" (identifier) "text" ()) ")" (;) ";" (declaration) "void interpret_cmd(str_t* text_buf, str_t* cmd);" (primitive_type) "void" (function_declarator) "interpret_cmd(str_t* text_buf, str_t* cmd)" (identifier) "interpret_cmd" (parameter_list) "(str_t* text_buf, str_t* cmd)" (() "(" (parameter_declaration) "str_t* text_buf" (type_identifier) "str_t" (pointer_declarator) "* text_buf" (*) "*" (identifier) "text_buf" (,) "," (parameter_declaration) "str_t* cmd" (type_identifier) "str_t" (pointer_declarator) "* cmd" (*) "*" (identifier) "cmd" ()) ")" (;) ";" (declaration) "uint32_t count_lines(str_t* str);" (primitive_type) "uint32_t" (function_declarator) "count_lines(str_t* str)" (identifier) "count_lines" (parameter_list) "(str_t* str)" (() "(" (parameter_declaration) "str_t* str" (type_identifier) "str_t" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "char* scroll_view(char* str);" (primitive_type) "char" (pointer_declarator) "* scroll_view(char* str)" (*) "*" (function_declarator) "scroll_view(char* str)" (identifier) "scroll_view" (parameter_list) "(char* str)" (() "(" (parameter_declaration) "char* str" (primitive_type) "char" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "const uint32_t twidth = 550;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "twidth = 550" (identifier) "twidth" (=) "=" (number_literal) "550" (;) ";" (declaration) "const uint32_t theight = 342;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "theight = 342" (identifier) "theight" (=) "=" (number_literal) "342" (;) ";" (declaration) "const uint32_t char_width = 8;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "char_width = 8" (identifier) "char_width" (=) "=" (number_literal) "8" (;) ";" (declaration) "const uint32_t char_height = 16;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "char_height = 16" (identifier) "char_height" (=) "=" (number_literal) "16" (;) ";" (declaration) "const uint32_t max_col = twidth / char_width - 1;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "max_col = twidth / char_width - 1" (identifier) "max_col" (=) "=" (binary_expression) "twidth / char_width - 1" (binary_expression) "twidth / char_width" (identifier) "twidth" (/) "/" (identifier) "char_width" (-) "-" (number_literal) "1" (;) ";" (declaration) "const uint32_t max_line = theight / char_height - 1;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "max_line = theight / char_height - 1" (identifier) "max_line" (=) "=" (binary_expression) "theight / char_height - 1" (binary_expression) "theight / char_height" (identifier) "theight" (/) "/" (identifier) "char_height" (-) "-" (number_literal) "1" (;) ";" (declaration) "const char* prompt = "snowflakeos $ ";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* prompt = "snowflakeos $ "" (pointer_declarator) "* prompt" (*) "*" (identifier) "prompt" (=) "=" (string_literal) ""snowflakeos $ "" (") """ (string_content) "snowflakeos $ " (") """ (;) ";" (declaration) "const uint32_t margin = 1;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "margin = 1" (identifier) "margin" (=) "=" (number_literal) "1" (;) ";" (declaration) "const uint32_t text_color = 0xE0E0E0;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "text_color = 0xE0E0E0" (identifier) "text_color" (=) "=" (number_literal) "0xE0E0E0" (;) ";" (declaration) "const float cursor_blink_time = 1;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "cursor_blink_time = 1" (identifier) "cursor_blink_time" (=) "=" (number_literal) "1" (;) ";" (declaration) "window_t* win;" (type_identifier) "window_t" (pointer_declarator) "* win" (*) "*" (identifier) "win" (;) ";" (declaration) "bool cursor = true;" (primitive_type) "bool" (init_declarator) "cursor = true" (identifier) "cursor" (=) "=" (true) "true" (;) ";" (declaration) "bool running = true;" (primitive_type) "bool" (init_declarator) "running = true" (identifier) "running" (=) "=" (true) "true" (;) ";" (declaration) "bool focused = true;" (primitive_type) "bool" (init_declarator) "focused = true" (identifier) "focused" (=) "=" (true) "true" (;) ";" (function_definition) "int main() {\n win = snow_open_window("Terminal", twidth, theight, WM_NORMAL);\n\n syscall(SYS_MAKETTY);\n\n str_t* text_buf = str_new(prompt);\n str_t* input_buf = str_new("");\n cursor = true;\n\n uint32_t last_time = 0;\n\n redraw(text_buf, input_buf);\n\n while (running) {\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }\n\n str_free(text_buf);\n str_free(input_buf);\n\n snow_close_window(win);\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n win = snow_open_window("Terminal", twidth, theight, WM_NORMAL);\n\n syscall(SYS_MAKETTY);\n\n str_t* text_buf = str_new(prompt);\n str_t* input_buf = str_new("");\n cursor = true;\n\n uint32_t last_time = 0;\n\n redraw(text_buf, input_buf);\n\n while (running) {\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }\n\n str_free(text_buf);\n str_free(input_buf);\n\n snow_close_window(win);\n\n return 0;\n}" ({) "{" (expression_statement) "win = snow_open_window("Terminal", twidth, theight, WM_NORMAL);" (assignment_expression) "win = snow_open_window("Terminal", twidth, theight, WM_NORMAL)" (identifier) "win" (=) "=" (call_expression) "snow_open_window("Terminal", twidth, theight, WM_NORMAL)" (identifier) "snow_open_window" (argument_list) "("Terminal", twidth, theight, WM_NORMAL)" (() "(" (string_literal) ""Terminal"" (") """ (string_content) "Terminal" (") """ (,) "," (identifier) "twidth" (,) "," (identifier) "theight" (,) "," (identifier) "WM_NORMAL" ()) ")" (;) ";" (expression_statement) "syscall(SYS_MAKETTY);" (call_expression) "syscall(SYS_MAKETTY)" (identifier) "syscall" (argument_list) "(SYS_MAKETTY)" (() "(" (identifier) "SYS_MAKETTY" ()) ")" (;) ";" (declaration) "str_t* text_buf = str_new(prompt);" (type_identifier) "str_t" (init_declarator) "* text_buf = str_new(prompt)" (pointer_declarator) "* text_buf" (*) "*" (identifier) "text_buf" (=) "=" (call_expression) "str_new(prompt)" (identifier) "str_new" (argument_list) "(prompt)" (() "(" (identifier) "prompt" ()) ")" (;) ";" (declaration) "str_t* input_buf = str_new("");" (type_identifier) "str_t" (init_declarator) "* input_buf = str_new("")" (pointer_declarator) "* input_buf" (*) "*" (identifier) "input_buf" (=) "=" (call_expression) "str_new("")" (identifier) "str_new" (argument_list) "("")" (() "(" (string_literal) """" (") """ (") """ ()) ")" (;) ";" (expression_statement) "cursor = true;" (assignment_expression) "cursor = true" (identifier) "cursor" (=) "=" (true) "true" (;) ";" (declaration) "uint32_t last_time = 0;" (primitive_type) "uint32_t" (init_declarator) "last_time = 0" (identifier) "last_time" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "redraw(text_buf, input_buf);" (call_expression) "redraw(text_buf, input_buf)" (identifier) "redraw" (argument_list) "(text_buf, input_buf)" (() "(" (identifier) "text_buf" (,) "," (identifier) "input_buf" ()) ")" (;) ";" (while_statement) "while (running) {\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }" (while) "while" (parenthesized_expression) "(running)" (() "(" (identifier) "running" ()) ")" (compound_statement) "{\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }" ({) "{" (declaration) "wm_event_t event = snow_get_event(win);" (type_identifier) "wm_event_t" (init_declarator) "event = snow_get_event(win)" (identifier) "event" (=) "=" (call_expression) "snow_get_event(win)" (identifier) "snow_get_event" (argument_list) "(win)" (() "(" (identifier) "win" ()) ")" (;) ";" (declaration) "wm_kbd_event_t key = event.kbd;" (type_identifier) "wm_kbd_event_t" (init_declarator) "key = event.kbd" (identifier) "key" (=) "=" (field_expression) "event.kbd" (identifier) "event" (.) "." (field_identifier) "kbd" (;) ";" (declaration) "bool needs_redrawing = false;" (primitive_type) "bool" (init_declarator) "needs_redrawing = false" (identifier) "needs_redrawing" (=) "=" (false) "false" (;) ";" (comment) "// Do we have focus?" (if_statement) "if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }" (if) "if" (parenthesized_expression) "(event.type == WM_EVENT_GAINED_FOCUS)" (() "(" (binary_expression) "event.type == WM_EVENT_GAINED_FOCUS" (field_expression) "event.type" (identifier) "event" (.) "." (field_identifier) "type" (==) "==" (identifier) "WM_EVENT_GAINED_FOCUS" ()) ")" (compound_statement) "{\n focused = true;\n needs_redrawing = true;\n }" ({) "{" (expression_statement) "focused = true;" (assignment_expression) "focused = true" (identifier) "focused" (=) "=" (true) "true" (;) ";" (expression_statement) "needs_redrawing = true;" (assignment_expression) "needs_redrawing = true" (identifier) "needs_redrawing" (=) "=" (true) "true" (;) ";" (}) "}" (else_clause) "else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }" (else) "else" (if_statement) "if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }" (if) "if" (parenthesized_expression) "(event.type == WM_EVENT_LOST_FOCUS)" (() "(" (binary_expression) "event.type == WM_EVENT_LOST_FOCUS" (field_expression) "event.type" (identifier) "event" (.) "." (field_identifier) "type" (==) "==" (identifier) "WM_EVENT_LOST_FOCUS" ()) ")" (compound_statement) "{\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }" ({) "{" (expression_statement) "focused = false;" (assignment_expression) "focused = false" (identifier) "focused" (=) "=" (false) "false" (;) ";" (expression_statement) "cursor = false;" (assignment_expression) "cursor = false" (identifier) "cursor" (=) "=" (false) "false" (;) ";" (expression_statement) "needs_redrawing = true;" (assignment_expression) "needs_redrawing = true" (identifier) "needs_redrawing" (=) "=" (true) "true" (;) ";" (}) "}" (comment) "// Time & cursor blinks" (if_statement) "if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }" (if) "if" (parenthesized_expression) "(focused)" (() "(" (identifier) "focused" ()) ")" (compound_statement) "{\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }" ({) "{" (declaration) "sys_info_t info;" (type_identifier) "sys_info_t" (identifier) "info" (;) ";" (expression_statement) "syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);" (call_expression) "syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info)" (identifier) "syscall2" (argument_list) "(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info)" (() "(" (identifier) "SYS_INFO" (,) "," (identifier) "SYS_INFO_UPTIME" (,) "," (cast_expression) "(uintptr_t) &info" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (pointer_expression) "&info" (&) "&" (identifier) "info" ()) ")" (;) ";" (declaration) "uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);" (primitive_type) "uint32_t" (init_declarator) "time = (uint32_t) (info.uptime / cursor_blink_time)" (identifier) "time" (=) "=" (cast_expression) "(uint32_t) (info.uptime / cursor_blink_time)" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (parenthesized_expression) "(info.uptime / cursor_blink_time)" (() "(" (binary_expression) "info.uptime / cursor_blink_time" (field_expression) "info.uptime" (identifier) "info" (.) "." (field_identifier) "uptime" (/) "/" (identifier) "cursor_blink_time" ()) ")" (;) ";" (if_statement) "if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }" (if) "if" (parenthesized_expression) "(time != last_time)" (() "(" (binary_expression) "time != last_time" (identifier) "time" (!=) "!=" (identifier) "last_time" ()) ")" (compound_statement) "{\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }" ({) "{" (expression_statement) "last_time = time;" (assignment_expression) "last_time = time" (identifier) "last_time" (=) "=" (identifier) "time" (;) ";" (expression_statement) "cursor = !cursor;" (assignment_expression) "cursor = !cursor" (identifier) "cursor" (=) "=" (unary_expression) "!cursor" (!) "!" (identifier) "cursor" (;) ";" (expression_statement) "needs_redrawing = true;" (assignment_expression) "needs_redrawing = true" (identifier) "needs_redrawing" (=) "=" (true) "true" (;) ";" (}) "}" (}) "}" (comment) "// Print things that have been output, if any, and append a prompt" (declaration) "const uint32_t buf_size = 256;" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (init_declarator) "buf_size = 256" (identifier) "buf_size" (=) "=" (number_literal) "256" (;) ";" (declaration) "char buf[buf_size];" (primitive_type) "char" (array_declarator) "buf[buf_size]" (identifier) "buf" ([) "[" (identifier) "buf_size" (]) "]" (;) ";" (declaration) "uint32_t read;" (primitive_type) "uint32_t" (identifier) "read" (;) ";" (declaration) "bool anything_read = false;" (primitive_type) "bool" (init_declarator) "anything_read = false" (identifier) "anything_read" (=) "=" (false) "false" (;) ";" (while_statement) "while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }" (while) "while" (parenthesized_expression) "((read = fread(buf, 1, buf_size - 1, stdout)))" (() "(" (parenthesized_expression) "(read = fread(buf, 1, buf_size - 1, stdout))" (() "(" (assignment_expression) "read = fread(buf, 1, buf_size - 1, stdout)" (identifier) "read" (=) "=" (call_expression) "fread(buf, 1, buf_size - 1, stdout)" (identifier) "fread" (argument_list) "(buf, 1, buf_size - 1, stdout)" (() "(" (identifier) "buf" (,) "," (number_literal) "1" (,) "," (binary_expression) "buf_size - 1" (identifier) "buf_size" (-) "-" (number_literal) "1" (,) "," (identifier) "stdout" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n buf[read] = '\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }" ({) "{" (expression_statement) "buf[read] = '\0';" (assignment_expression) "buf[read] = '\0'" (subscript_expression) "buf[read]" (identifier) "buf" ([) "[" (identifier) "read" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "str_append(text_buf, buf);" (call_expression) "str_append(text_buf, buf)" (identifier) "str_append" (argument_list) "(text_buf, buf)" (() "(" (identifier) "text_buf" (,) "," (identifier) "buf" ()) ")" (;) ";" (expression_statement) "needs_redrawing = true;" (assignment_expression) "needs_redrawing = true" (identifier) "needs_redrawing" (=) "=" (true) "true" (;) ";" (expression_statement) "anything_read = true;" (assignment_expression) "anything_read = true" (identifier) "anything_read" (=) "=" (true) "true" (;) ";" (}) "}" (if_statement) "if (anything_read) {\n str_append(text_buf, prompt);\n }" (if) "if" (parenthesized_expression) "(anything_read)" (() "(" (identifier) "anything_read" ()) ")" (compound_statement) "{\n str_append(text_buf, prompt);\n }" ({) "{" (expression_statement) "str_append(text_buf, prompt);" (call_expression) "str_append(text_buf, prompt)" (identifier) "str_append" (argument_list) "(text_buf, prompt)" (() "(" (identifier) "text_buf" (,) "," (identifier) "prompt" ()) ")" (;) ";" (}) "}" (if_statement) "if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }" (if) "if" (parenthesized_expression) "(event.type == WM_EVENT_KBD && event.kbd.pressed)" (() "(" (binary_expression) "event.type == WM_EVENT_KBD && event.kbd.pressed" (binary_expression) "event.type == WM_EVENT_KBD" (field_expression) "event.type" (identifier) "event" (.) "." (field_identifier) "type" (==) "==" (identifier) "WM_EVENT_KBD" (&&) "&&" (field_expression) "event.kbd.pressed" (field_expression) "event.kbd" (identifier) "event" (.) "." (field_identifier) "kbd" (.) "." (field_identifier) "pressed" ()) ")" (compound_statement) "{\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }" ({) "{" (expression_statement) "needs_redrawing = true;" (assignment_expression) "needs_redrawing = true" (identifier) "needs_redrawing" (=) "=" (true) "true" (;) ";" (switch_statement) "switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }" (switch) "switch" (parenthesized_expression) "(key.keycode)" (() "(" (field_expression) "key.keycode" (identifier) "key" (.) "." (field_identifier) "keycode" ()) ")" (compound_statement) "{\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }" ({) "{" (case_statement) "case KBD_ENTER:" (case) "case" (identifier) "KBD_ENTER" (:) ":" (case_statement) "case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf("\n");\n input_buf->buf[0] = '\0';\n input_buf->len = 0;\n break;" (case) "case" (identifier) "KBD_KP_ENTER" (:) ":" (expression_statement) "str_append(text_buf, input_buf->buf);" (call_expression) "str_append(text_buf, input_buf->buf)" (identifier) "str_append" (argument_list) "(text_buf, input_buf->buf)" (() "(" (identifier) "text_buf" (,) "," (field_expression) "input_buf->buf" (identifier) "input_buf" (->) "->" (field_identifier) "buf" ()) ")" (;) ";" (expression_statement) "interpret_cmd(text_buf, input_buf);" (call_expression) "interpret_cmd(text_buf, input_buf)" (identifier) "interpret_cmd" (argument_list) "(text_buf, input_buf)" (() "(" (identifier) "text_buf" (,) "," (identifier) "input_buf" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "input_buf->buf[0] = '\0';" (assignment_expression) "input_buf->buf[0] = '\0'" (subscript_expression) "input_buf->buf[0]" (field_expression) "input_buf->buf" (identifier) "input_buf" (->) "->" (field_identifier) "buf" ([) "[" (number_literal) "0" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "input_buf->len = 0;" (assignment_expression) "input_buf->len = 0" (field_expression) "input_buf->len" (identifier) "input_buf" (->) "->" (field_identifier) "len" (=) "=" (number_literal) "0" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }\n break;" (case) "case" (identifier) "KBD_BACKSPACE" (:) ":" (if_statement) "if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }" (if) "if" (parenthesized_expression) "(input_buf->len)" (() "(" (field_expression) "input_buf->len" (identifier) "input_buf" (->) "->" (field_identifier) "len" ()) ")" (compound_statement) "{\n input_buf->buf[input_buf->len - 1] = '\0';\n input_buf->len -= 1;\n }" ({) "{" (expression_statement) "input_buf->buf[input_buf->len - 1] = '\0';" (assignment_expression) "input_buf->buf[input_buf->len - 1] = '\0'" (subscript_expression) "input_buf->buf[input_buf->len - 1]" (field_expression) "input_buf->buf" (identifier) "input_buf" (->) "->" (field_identifier) "buf" ([) "[" (binary_expression) "input_buf->len - 1" (field_expression) "input_buf->len" (identifier) "input_buf" (->) "->" (field_identifier) "len" (-) "-" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "input_buf->len -= 1;" (assignment_expression) "input_buf->len -= 1" (field_expression) "input_buf->len" (identifier) "input_buf" (->) "->" (field_identifier) "len" (-=) "-=" (number_literal) "1" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;" (default) "default" (:) ":" (if_statement) "if (key.keycode < KBD_KP_ENTER) {\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }" (if) "if" (parenthesized_expression) "(key.keycode < KBD_KP_ENTER)" (() "(" (binary_expression) "key.keycode < KBD_KP_ENTER" (field_expression) "key.keycode" (identifier) "key" (.) "." (field_identifier) "keycode" (<) "<" (identifier) "KBD_KP_ENTER" ()) ")" (compound_statement) "{\n char str[2] = "\0\0";\n str[0] = key.repr;\n str_append(input_buf, str);\n }" ({) "{" (declaration) "char str[2] = "\0\0";" (primitive_type) "char" (init_declarator) "str[2] = "\0\0"" (array_declarator) "str[2]" (identifier) "str" ([) "[" (number_literal) "2" (]) "]" (=) "=" (string_literal) ""\0\0"" (") """ (escape_sequence) "\0" (escape_sequence) "\0" (") """ (;) ";" (expression_statement) "str[0] = key.repr;" (assignment_expression) "str[0] = key.repr" (subscript_expression) "str[0]" (identifier) "str" ([) "[" (number_literal) "0" (]) "]" (=) "=" (field_expression) "key.repr" (identifier) "key" (.) "." (field_identifier) "repr" (;) ";" (expression_statement) "str_append(input_buf, str);" (call_expression) "str_append(input_buf, str)" (identifier) "str_append" (argument_list) "(input_buf, str)" (() "(" (identifier) "input_buf" (,) "," (identifier) "str" ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (if_statement) "if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }" (if) "if" (parenthesized_expression) "(needs_redrawing)" (() "(" (identifier) "needs_redrawing" ()) ")" (compound_statement) "{\n redraw(text_buf, input_buf);\n }" ({) "{" (expression_statement) "redraw(text_buf, input_buf);" (call_expression) "redraw(text_buf, input_buf)" (identifier) "redraw" (argument_list) "(text_buf, input_buf)" (() "(" (identifier) "text_buf" (,) "," (identifier) "input_buf" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "str_free(text_buf);" (call_expression) "str_free(text_buf)" (identifier) "str_free" (argument_list) "(text_buf)" (() "(" (identifier) "text_buf" ()) ")" (;) ";" (expression_statement) "str_free(input_buf);" (call_expression) "str_free(input_buf)" (identifier) "str_free" (argument_list) "(input_buf)" (() "(" (identifier) "input_buf" ()) ")" (;) ";" (expression_statement) "snow_close_window(win);" (call_expression) "snow_close_window(win)" (identifier) "snow_close_window" (argument_list) "(win)" (() "(" (identifier) "win" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void redraw(str_t* text_buf, const str_t* input_buf) {\n /* Window decorations */\n\n // background\n snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535);\n // title bar\n snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221);\n snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000);\n snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF);\n // border of the whole window\n snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555);\n\n /* Text content */\n\n uint32_t y = 22; // below title bar\n\n // Temporarily concatenate the input and a cursor\n str_append(text_buf, input_buf->buf);\n\n if (cursor) {\n str_append(text_buf, "_");\n }\n\n char line_buf[max_col + 1];\n char* text_view = text_buf->buf;\n uint32_t n_lines = count_lines(text_buf);\n\n // Scroll the buffer as needed\n if (n_lines > max_line) {\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }\n\n // Draw line by line, wrapping text\n while (text_view < &text_buf->buf[text_buf->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }\n\n // De-concatenate\n text_buf->buf[text_buf->len - input_buf->len] = '\0';\n text_buf->len -= input_buf->len;\n\n if (cursor) {\n text_buf->buf[text_buf->len - 1] = '\0';\n text_buf->len -= 1;\n }\n\n // Update the window\n snow_render_window(win);\n}" (primitive_type) "void" (function_declarator) "redraw(str_t* text_buf, const str_t* input_buf)" (identifier) "redraw" (parameter_list) "(str_t* text_buf, const str_t* input_buf)" (() "(" (parameter_declaration) "str_t* text_buf" (type_identifier) "str_t" (pointer_declarator) "* text_buf" (*) "*" (identifier) "text_buf" (,) "," (parameter_declaration) "const str_t* input_buf" (type_qualifier) "const" (const) "const" (type_identifier) "str_t" (pointer_declarator) "* input_buf" (*) "*" (identifier) "input_buf" ()) ")" (compound_statement) "{\n /* Window decorations */\n\n // background\n snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535);\n // title bar\n snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221);\n snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000);\n snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF);\n // border of the whole window\n snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555);\n\n /* Text content */\n\n uint32_t y = 22; // below title bar\n\n // Temporarily concatenate the input and a cursor\n str_append(text_buf, input_buf->buf);\n\n if (cursor) {\n str_append(text_buf, "_");\n }\n\n char line_buf[max_col + 1];\n char* text_view = text_buf->buf;\n uint32_t n_lines = count_lines(text_buf);\n\n // Scroll the buffer as needed\n if (n_lines > max_line) {\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }\n\n // Draw line by line, wrapping text\n while (text_view < &text_buf->buf[text_buf->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }\n\n // De-concatenate\n text_buf->buf[text_buf->len - input_buf->len] = '\0';\n text_buf->len -= input_buf->len;\n\n if (cursor) {\n text_buf->buf[text_buf->len - 1] = '\0';\n text_buf->len -= 1;\n }\n\n // Update the window\n snow_render_window(win);\n}" ({) "{" (comment) "/* Window decorations */" (comment) "// background" (expression_statement) "snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535);" (call_expression) "snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535)" (identifier) "snow_draw_rect" (argument_list) "(win->fb, 0, 0, win->width, win->height, 0x00353535)" (() "(" (field_expression) "win->fb" (identifier) "win" (->) "->" (field_identifier) "fb" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (field_expression) "win->width" (identifier) "win" (->) "->" (field_identifier) "width" (,) "," (field_expression) "win->height" (identifier) "win" (->) "->" (field_identifier) "height" (,) "," (number_literal) "0x00353535" ()) ")" (;) ";" (comment) "// title bar" (expression_statement) "snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221);" (call_expression) "snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221)" (identifier) "snow_draw_rect" (argument_list) "(win->fb, 0, 0, win->width, 20, 0x00222221)" (() "(" (field_expression) "win->fb" (identifier) "win" (->) "->" (field_identifier) "fb" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (field_expression) "win->width" (identifier) "win" (->) "->" (field_identifier) "width" (,) "," (number_literal) "20" (,) "," (number_literal) "0x00222221" ()) ")" (;) ";" (expression_statement) "snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000);" (call_expression) "snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000)" (identifier) "snow_draw_border" (argument_list) "(win->fb, 0, 0, win->width, 20, 0x00000000)" (() "(" (field_expression) "win->fb" (identifier) "win" (->) "->" (field_identifier) "fb" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (field_expression) "win->width" (identifier) "win" (->) "->" (field_identifier) "width" (,) "," (number_literal) "20" (,) "," (number_literal) "0x00000000" ()) ")" (;) ";" (expression_statement) "snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF);" (call_expression) "snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF)" (identifier) "snow_draw_string" (argument_list) "(win->fb, win->title, 4, 3, 0x00FFFFFF)" (() "(" (field_expression) "win->fb" (identifier) "win" (->) "->" (field_identifier) "fb" (,) "," (field_expression) "win->title" (identifier) "win" (->) "->" (field_identifier) "title" (,) "," (number_literal) "4" (,) "," (number_literal) "3" (,) "," (number_literal) "0x00FFFFFF" ()) ")" (;) ";" (comment) "// border of the whole window" (expression_statement) "snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555);" (call_expression) "snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555)" (identifier) "snow_draw_border" (argument_list) "(win->fb, 0, 0, win->width, win->height, 0x00555555)" (() "(" (field_expression) "win->fb" (identifier) "win" (->) "->" (field_identifier) "fb" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (field_expression) "win->width" (identifier) "win" (->) "->" (field_identifier) "width" (,) "," (field_expression) "win->height" (identifier) "win" (->) "->" (field_identifier) "height" (,) "," (number_literal) "0x00555555" ()) ")" (;) ";" (comment) "/* Text content */" (declaration) "uint32_t y = 22;" (primitive_type) "uint32_t" (init_declarator) "y = 22" (identifier) "y" (=) "=" (number_literal) "22" (;) ";" (comment) "// below title bar" (comment) "// Temporarily concatenate the input and a cursor" (expression_statement) "str_append(text_buf, input_buf->buf);" (call_expression) "str_append(text_buf, input_buf->buf)" (identifier) "str_append" (argument_list) "(text_buf, input_buf->buf)" (() "(" (identifier) "text_buf" (,) "," (field_expression) "input_buf->buf" (identifier) "input_buf" (->) "->" (field_identifier) "buf" ()) ")" (;) ";" (if_statement) "if (cursor) {\n str_append(text_buf, "_");\n }" (if) "if" (parenthesized_expression) "(cursor)" (() "(" (identifier) "cursor" ()) ")" (compound_statement) "{\n str_append(text_buf, "_");\n }" ({) "{" (expression_statement) "str_append(text_buf, "_");" (call_expression) "str_append(text_buf, "_")" (identifier) "str_append" (argument_list) "(text_buf, "_")" (() "(" (identifier) "text_buf" (,) "," (string_literal) ""_"" (") """ (string_content) "_" (") """ ()) ")" (;) ";" (}) "}" (declaration) "char line_buf[max_col + 1];" (primitive_type) "char" (array_declarator) "line_buf[max_col + 1]" (identifier) "line_buf" ([) "[" (binary_expression) "max_col + 1" (identifier) "max_col" (+) "+" (number_literal) "1" (]) "]" (;) ";" (declaration) "char* text_view = text_buf->buf;" (primitive_type) "char" (init_declarator) "* text_view = text_buf->buf" (pointer_declarator) "* text_view" (*) "*" (identifier) "text_view" (=) "=" (field_expression) "text_buf->buf" (identifier) "text_buf" (->) "->" (field_identifier) "buf" (;) ";" (declaration) "uint32_t n_lines = count_lines(text_buf);" (primitive_type) "uint32_t" (init_declarator) "n_lines = count_lines(text_buf)" (identifier) "n_lines" (=) "=" (call_expression) "count_lines(text_buf)" (identifier) "count_lines" (argument_list) "(text_buf)" (() "(" (identifier) "text_buf" ()) ")" (;) ";" (comment) "// Scroll the buffer as needed" (if_statement) "if (n_lines > max_line) {\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }" (if) "if" (parenthesized_expression) "(n_lines > max_line)" (() "(" (binary_expression) "n_lines > max_line" (identifier) "n_lines" (>) ">" (identifier) "max_line" ()) ")" (compound_statement) "{\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }" ({) "{" (for_statement) "for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }" (for) "for" (() "(" (declaration) "uint32_t i = 0;" (primitive_type) "uint32_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < n_lines - max_line" (identifier) "i" (<) "<" (binary_expression) "n_lines - max_line" (identifier) "n_lines" (-) "-" (identifier) "max_line" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n text_view = scroll_view(text_view);\n }" ({) "{" (expression_statement) "text_view = scroll_view(text_view);" (assignment_expression) "text_view = scroll_view(text_view)" (identifier) "text_view" (=) "=" (call_expression) "scroll_view(text_view)" (identifier) "scroll_view" (argument_list) "(text_view)" (() "(" (identifier) "text_view" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// Draw line by line, wrapping text" (while_statement) "while (text_view < &text_buf->buf[text_buf->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }" (while) "while" (parenthesized_expression) "(text_view < &text_buf->buf[text_buf->len])" (() "(" (binary_expression) "text_view < &text_buf->buf[text_buf->len]" (identifier) "text_view" (<) "<" (pointer_expression) "&text_buf->buf[text_buf->len]" (&) "&" (subscript_expression) "text_buf->buf[text_buf->len]" (field_expression) "text_buf->buf" (identifier) "text_buf" (->) "->" (field_identifier) "buf" ([) "[" (field_expression) "text_buf->len" (identifier) "text_buf" (->) "->" (field_identifier) "len" (]) "]" ()) ")" (compound_statement) "{\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }" ({) "{" (declaration) "char* lf = strchrnul(text_view, '\n');" (primitive_type) "char" (init_declarator) "* lf = strchrnul(text_view, '\n')" (pointer_declarator) "* lf" (*) "*" (identifier) "lf" (=) "=" (call_expression) "strchrnul(text_view, '\n')" (identifier) "strchrnul" (argument_list) "(text_view, '\n')" (() "(" (identifier) "text_view" (,) "," (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (declaration) "uint32_t line_len = (uint32_t) (lf - text_view);" (primitive_type) "uint32_t" (init_declarator) "line_len = (uint32_t) (lf - text_view)" (identifier) "line_len" (=) "=" (cast_expression) "(uint32_t) (lf - text_view)" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (parenthesized_expression) "(lf - text_view)" (() "(" (binary_expression) "lf - text_view" (identifier) "lf" (-) "-" (identifier) "text_view" ()) ")" (;) ";" (if_statement) "if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }" (if) "if" (parenthesized_expression) "(line_len <= max_col)" (() "(" (binary_expression) "line_len <= max_col" (identifier) "line_len" (<=) "<=" (identifier) "max_col" ()) ")" (compound_statement) "{\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\0';\n text_view += line_len + 1; // Discard the line feed\n }" ({) "{" (expression_statement) "strncpy(line_buf, text_view, line_len);" (call_expression) "strncpy(line_buf, text_view, line_len)" (identifier) "strncpy" (argument_list) "(line_buf, text_view, line_len)" (() "(" (identifier) "line_buf" (,) "," (identifier) "text_view" (,) "," (identifier) "line_len" ()) ")" (;) ";" (expression_statement) "line_buf[line_len] = '\0';" (assignment_expression) "line_buf[line_len] = '\0'" (subscript_expression) "line_buf[line_len]" (identifier) "line_buf" ([) "[" (identifier) "line_len" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "text_view += line_len + 1;" (assignment_expression) "text_view += line_len + 1" (identifier) "text_view" (+=) "+=" (binary_expression) "line_len + 1" (identifier) "line_len" (+) "+" (number_literal) "1" (;) ";" (comment) "// Discard the line feed" (}) "}" (else_clause) "else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }" (else) "else" (compound_statement) "{\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\0';\n text_view += max_col;\n }" ({) "{" (expression_statement) "strncpy(line_buf, text_view, max_col);" (call_expression) "strncpy(line_buf, text_view, max_col)" (identifier) "strncpy" (argument_list) "(line_buf, text_view, max_col)" (() "(" (identifier) "line_buf" (,) "," (identifier) "text_view" (,) "," (identifier) "max_col" ()) ")" (;) ";" (expression_statement) "line_buf[max_col] = '\0';" (assignment_expression) "line_buf[max_col] = '\0'" (subscript_expression) "line_buf[max_col]" (identifier) "line_buf" ([) "[" (identifier) "max_col" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "text_view += max_col;" (assignment_expression) "text_view += max_col" (identifier) "text_view" (+=) "+=" (identifier) "max_col" (;) ";" (}) "}" (expression_statement) "snow_draw_string(win->fb, line_buf, margin, y, text_color);" (call_expression) "snow_draw_string(win->fb, line_buf, margin, y, text_color)" (identifier) "snow_draw_string" (argument_list) "(win->fb, line_buf, margin, y, text_color)" (() "(" (field_expression) "win->fb" (identifier) "win" (->) "->" (field_identifier) "fb" (,) "," (identifier) "line_buf" (,) "," (identifier) "margin" (,) "," (identifier) "y" (,) "," (identifier) "text_color" ()) ")" (;) ";" (expression_statement) "y += char_height;" (assignment_expression) "y += char_height" (identifier) "y" (+=) "+=" (identifier) "char_height" (;) ";" (}) "}" (comment) "// De-concatenate" (expression_statement) "text_buf->buf[text_buf->len - input_buf->len] = '\0';" (assignment_expression) "text_buf->buf[text_buf->len - input_buf->len] = '\0'" (subscript_expression) "text_buf->buf[text_buf->len - input_buf->len]" (field_expression) "text_buf->buf" (identifier) "text_buf" (->) "->" (field_identifier) "buf" ([) "[" (binary_expression) "text_buf->len - input_buf->len" (field_expression) "text_buf->len" (identifier) "text_buf" (->) "->" (field_identifier) "len" (-) "-" (field_expression) "input_buf->len" (identifier) "input_buf" (->) "->" (field_identifier) "len" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "text_buf->len -= input_buf->len;" (assignment_expression) "text_buf->len -= input_buf->len" (field_expression) "text_buf->len" (identifier) "text_buf" (->) "->" (field_identifier) "len" (-=) "-=" (field_expression) "input_buf->len" (identifier) "input_buf" (->) "->" (field_identifier) "len" (;) ";" (if_statement) "if (cursor) {\n text_buf->buf[text_buf->len - 1] = '\0';\n text_buf->len -= 1;\n }" (if) "if" (parenthesized_expression) "(cursor)" (() "(" (identifier) "cursor" ()) ")" (compound_statement) "{\n text_buf->buf[text_buf->len - 1] = '\0';\n text_buf->len -= 1;\n }" ({) "{" (expression_statement) "text_buf->buf[text_buf->len - 1] = '\0';" (assignment_expression) "text_buf->buf[text_buf->len - 1] = '\0'" (subscript_expression) "text_buf->buf[text_buf->len - 1]" (field_expression) "text_buf->buf" (identifier) "text_buf" (->) "->" (field_identifier) "buf" ([) "[" (binary_expression) "text_buf->len - 1" (field_expression) "text_buf->len" (identifier) "text_buf" (->) "->" (field_identifier) "len" (-) "-" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "text_buf->len -= 1;" (assignment_expression) "text_buf->len -= 1" (field_expression) "text_buf->len" (identifier) "text_buf" (->) "->" (field_identifier) "len" (-=) "-=" (number_literal) "1" (;) ";" (}) "}" (comment) "// Update the window" (expression_statement) "snow_render_window(win);" (call_expression) "snow_render_window(win)" (identifier) "snow_render_window" (argument_list) "(win)" (() "(" (identifier) "win" ()) ")" (;) ";" (}) "}" (function_definition) "str_t* str_new(const char* str) {\n str_t* s = malloc(sizeof(str_t));\n uint32_t size = strlen(str) + 1;\n\n s->buf = malloc(size);\n s->buf_len = size;\n s->len = size - 1;\n\n strcpy(s->buf, str);\n\n return s;\n}" (type_identifier) "str_t" (pointer_declarator) "* str_new(const char* str)" (*) "*" (function_declarator) "str_new(const char* str)" (identifier) "str_new" (parameter_list) "(const char* str)" (() "(" (parameter_declaration) "const char* str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n str_t* s = malloc(sizeof(str_t));\n uint32_t size = strlen(str) + 1;\n\n s->buf = malloc(size);\n s->buf_len = size;\n s->len = size - 1;\n\n strcpy(s->buf, str);\n\n return s;\n}" ({) "{" (declaration) "str_t* s = malloc(sizeof(str_t));" (type_identifier) "str_t" (init_declarator) "* s = malloc(sizeof(str_t))" (pointer_declarator) "* s" (*) "*" (identifier) "s" (=) "=" (call_expression) "malloc(sizeof(str_t))" (identifier) "malloc" (argument_list) "(sizeof(str_t))" (() "(" (sizeof_expression) "sizeof(str_t)" (sizeof) "sizeof" (parenthesized_expression) "(str_t)" (() "(" (identifier) "str_t" ()) ")" ()) ")" (;) ";" (declaration) "uint32_t size = strlen(str) + 1;" (primitive_type) "uint32_t" (init_declarator) "size = strlen(str) + 1" (identifier) "size" (=) "=" (binary_expression) "strlen(str) + 1" (call_expression) "strlen(str)" (identifier) "strlen" (argument_list) "(str)" (() "(" (identifier) "str" ()) ")" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "s->buf = malloc(size);" (assignment_expression) "s->buf = malloc(size)" (field_expression) "s->buf" (identifier) "s" (->) "->" (field_identifier) "buf" (=) "=" (call_expression) "malloc(size)" (identifier) "malloc" (argument_list) "(size)" (() "(" (identifier) "size" ()) ")" (;) ";" (expression_statement) "s->buf_len = size;" (assignment_expression) "s->buf_len = size" (field_expression) "s->buf_len" (identifier) "s" (->) "->" (field_identifier) "buf_len" (=) "=" (identifier) "size" (;) ";" (expression_statement) "s->len = size - 1;" (assignment_expression) "s->len = size - 1" (field_expression) "s->len" (identifier) "s" (->) "->" (field_identifier) "len" (=) "=" (binary_expression) "size - 1" (identifier) "size" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "strcpy(s->buf, str);" (call_expression) "strcpy(s->buf, str)" (identifier) "strcpy" (argument_list) "(s->buf, str)" (() "(" (field_expression) "s->buf" (identifier) "s" (->) "->" (field_identifier) "buf" (,) "," (identifier) "str" ()) ")" (;) ";" (return_statement) "return s;" (return) "return" (identifier) "s" (;) ";" (}) "}" (function_definition) "void str_free(str_t* str) {\n free(str->buf);\n free(str);\n}" (primitive_type) "void" (function_declarator) "str_free(str_t* str)" (identifier) "str_free" (parameter_list) "(str_t* str)" (() "(" (parameter_declaration) "str_t* str" (type_identifier) "str_t" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n free(str->buf);\n free(str);\n}" ({) "{" (expression_statement) "free(str->buf);" (call_expression) "free(str->buf)" (identifier) "free" (argument_list) "(str->buf)" (() "(" (field_expression) "str->buf" (identifier) "str" (->) "->" (field_identifier) "buf" ()) ")" (;) ";" (expression_statement) "free(str);" (call_expression) "free(str)" (identifier) "free" (argument_list) "(str)" (() "(" (identifier) "str" ()) ")" (;) ";" (}) "}" (function_definition) "void str_append(str_t* str, const char* text) {\n uint32_t prev_len = str->len;\n uint32_t needed = strlen(text) + prev_len + 1;\n\n if (needed > str->buf_len) {\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }\n\n strcpy(&str->buf[prev_len], text);\n str->len = needed - 1;\n}" (primitive_type) "void" (function_declarator) "str_append(str_t* str, const char* text)" (identifier) "str_append" (parameter_list) "(str_t* str, const char* text)" (() "(" (parameter_declaration) "str_t* str" (type_identifier) "str_t" (pointer_declarator) "* str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "const char* text" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* text" (*) "*" (identifier) "text" ()) ")" (compound_statement) "{\n uint32_t prev_len = str->len;\n uint32_t needed = strlen(text) + prev_len + 1;\n\n if (needed > str->buf_len) {\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }\n\n strcpy(&str->buf[prev_len], text);\n str->len = needed - 1;\n}" ({) "{" (declaration) "uint32_t prev_len = str->len;" (primitive_type) "uint32_t" (init_declarator) "prev_len = str->len" (identifier) "prev_len" (=) "=" (field_expression) "str->len" (identifier) "str" (->) "->" (field_identifier) "len" (;) ";" (declaration) "uint32_t needed = strlen(text) + prev_len + 1;" (primitive_type) "uint32_t" (init_declarator) "needed = strlen(text) + prev_len + 1" (identifier) "needed" (=) "=" (binary_expression) "strlen(text) + prev_len + 1" (binary_expression) "strlen(text) + prev_len" (call_expression) "strlen(text)" (identifier) "strlen" (argument_list) "(text)" (() "(" (identifier) "text" ()) ")" (+) "+" (identifier) "prev_len" (+) "+" (number_literal) "1" (;) ";" (if_statement) "if (needed > str->buf_len) {\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }" (if) "if" (parenthesized_expression) "(needed > str->buf_len)" (() "(" (binary_expression) "needed > str->buf_len" (identifier) "needed" (>) ">" (field_expression) "str->buf_len" (identifier) "str" (->) "->" (field_identifier) "buf_len" ()) ")" (compound_statement) "{\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }" ({) "{" (declaration) "char* new_buf = malloc(2*needed);" (primitive_type) "char" (init_declarator) "* new_buf = malloc(2*needed)" (pointer_declarator) "* new_buf" (*) "*" (identifier) "new_buf" (=) "=" (call_expression) "malloc(2*needed)" (identifier) "malloc" (argument_list) "(2*needed)" (() "(" (binary_expression) "2*needed" (number_literal) "2" (*) "*" (identifier) "needed" ()) ")" (;) ";" (expression_statement) "strcpy(new_buf, str->buf);" (call_expression) "strcpy(new_buf, str->buf)" (identifier) "strcpy" (argument_list) "(new_buf, str->buf)" (() "(" (identifier) "new_buf" (,) "," (field_expression) "str->buf" (identifier) "str" (->) "->" (field_identifier) "buf" ()) ")" (;) ";" (expression_statement) "free(str->buf);" (call_expression) "free(str->buf)" (identifier) "free" (argument_list) "(str->buf)" (() "(" (field_expression) "str->buf" (identifier) "str" (->) "->" (field_identifier) "buf" ()) ")" (;) ";" (expression_statement) "str->buf = new_buf;" (assignment_expression) "str->buf = new_buf" (field_expression) "str->buf" (identifier) "str" (->) "->" (field_identifier) "buf" (=) "=" (identifier) "new_buf" (;) ";" (expression_statement) "str->buf_len = 2*needed;" (assignment_expression) "str->buf_len = 2*needed" (field_expression) "str->buf_len" (identifier) "str" (->) "->" (field_identifier) "buf_len" (=) "=" (binary_expression) "2*needed" (number_literal) "2" (*) "*" (identifier) "needed" (;) ";" (}) "}" (expression_statement) "strcpy(&str->buf[prev_len], text);" (call_expression) "strcpy(&str->buf[prev_len], text)" (identifier) "strcpy" (argument_list) "(&str->buf[prev_len], text)" (() "(" (pointer_expression) "&str->buf[prev_len]" (&) "&" (subscript_expression) "str->buf[prev_len]" (field_expression) "str->buf" (identifier) "str" (->) "->" (field_identifier) "buf" ([) "[" (identifier) "prev_len" (]) "]" (,) "," (identifier) "text" ()) ")" (;) ";" (expression_statement) "str->len = needed - 1;" (assignment_expression) "str->len = needed - 1" (field_expression) "str->len" (identifier) "str" (->) "->" (field_identifier) "len" (=) "=" (binary_expression) "needed - 1" (identifier) "needed" (-) "-" (number_literal) "1" (;) ";" (}) "}" (function_definition) "void interpret_cmd(str_t* text_buf, str_t* input_buf) {\n if (!strcmp(input_buf->buf, "exit")) {\n running = false;\n return;\n }\n\n char* cmd = input_buf->buf;\n uint32_t n_args = 0;\n char** args = NULL;\n char* next = cmd;\n\n while (*next) {\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }\n\n if (!args) {\n return;\n }\n\n int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args);\n\n while (args && *args) {\n free(*args);\n args++;\n }\n\n free(args);\n\n if (ret != 0) {\n str_append(text_buf, "\ninvalid command: ");\n str_append(text_buf, cmd);\n }\n}" (primitive_type) "void" (function_declarator) "interpret_cmd(str_t* text_buf, str_t* input_buf)" (identifier) "interpret_cmd" (parameter_list) "(str_t* text_buf, str_t* input_buf)" (() "(" (parameter_declaration) "str_t* text_buf" (type_identifier) "str_t" (pointer_declarator) "* text_buf" (*) "*" (identifier) "text_buf" (,) "," (parameter_declaration) "str_t* input_buf" (type_identifier) "str_t" (pointer_declarator) "* input_buf" (*) "*" (identifier) "input_buf" ()) ")" (compound_statement) "{\n if (!strcmp(input_buf->buf, "exit")) {\n running = false;\n return;\n }\n\n char* cmd = input_buf->buf;\n uint32_t n_args = 0;\n char** args = NULL;\n char* next = cmd;\n\n while (*next) {\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }\n\n if (!args) {\n return;\n }\n\n int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args);\n\n while (args && *args) {\n free(*args);\n args++;\n }\n\n free(args);\n\n if (ret != 0) {\n str_append(text_buf, "\ninvalid command: ");\n str_append(text_buf, cmd);\n }\n}" ({) "{" (if_statement) "if (!strcmp(input_buf->buf, "exit")) {\n running = false;\n return;\n }" (if) "if" (parenthesized_expression) "(!strcmp(input_buf->buf, "exit"))" (() "(" (unary_expression) "!strcmp(input_buf->buf, "exit")" (!) "!" (call_expression) "strcmp(input_buf->buf, "exit")" (identifier) "strcmp" (argument_list) "(input_buf->buf, "exit")" (() "(" (field_expression) "input_buf->buf" (identifier) "input_buf" (->) "->" (field_identifier) "buf" (,) "," (string_literal) ""exit"" (") """ (string_content) "exit" (") """ ()) ")" ()) ")" (compound_statement) "{\n running = false;\n return;\n }" ({) "{" (expression_statement) "running = false;" (assignment_expression) "running = false" (identifier) "running" (=) "=" (false) "false" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (declaration) "char* cmd = input_buf->buf;" (primitive_type) "char" (init_declarator) "* cmd = input_buf->buf" (pointer_declarator) "* cmd" (*) "*" (identifier) "cmd" (=) "=" (field_expression) "input_buf->buf" (identifier) "input_buf" (->) "->" (field_identifier) "buf" (;) ";" (declaration) "uint32_t n_args = 0;" (primitive_type) "uint32_t" (init_declarator) "n_args = 0" (identifier) "n_args" (=) "=" (number_literal) "0" (;) ";" (declaration) "char** args = NULL;" (primitive_type) "char" (init_declarator) "** args = NULL" (pointer_declarator) "** args" (*) "*" (pointer_declarator) "* args" (*) "*" (identifier) "args" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "char* next = cmd;" (primitive_type) "char" (init_declarator) "* next = cmd" (pointer_declarator) "* next" (*) "*" (identifier) "next" (=) "=" (identifier) "cmd" (;) ";" (while_statement) "while (*next) {\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }" (while) "while" (parenthesized_expression) "(*next)" (() "(" (pointer_expression) "*next" (*) "*" (identifier) "next" ()) ")" (compound_statement) "{\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }" ({) "{" (expression_statement) "args = realloc(args, (++n_args + 1) * sizeof(char*));" (assignment_expression) "args = realloc(args, (++n_args + 1) * sizeof(char*))" (identifier) "args" (=) "=" (call_expression) "realloc(args, (++n_args + 1) * sizeof(char*))" (identifier) "realloc" (argument_list) "(args, (++n_args + 1) * sizeof(char*))" (() "(" (identifier) "args" (,) "," (binary_expression) "(++n_args + 1) * sizeof(char*)" (parenthesized_expression) "(++n_args + 1)" (() "(" (binary_expression) "++n_args + 1" (update_expression) "++n_args" (++) "++" (identifier) "n_args" (+) "+" (number_literal) "1" ()) ")" (*) "*" (sizeof_expression) "sizeof(char*)" (sizeof) "sizeof" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (while_statement) "while (isspace(*next)) {\n next++;\n }" (while) "while" (parenthesized_expression) "(isspace(*next))" (() "(" (call_expression) "isspace(*next)" (identifier) "isspace" (argument_list) "(*next)" (() "(" (pointer_expression) "*next" (*) "*" (identifier) "next" ()) ")" ()) ")" (compound_statement) "{\n next++;\n }" ({) "{" (expression_statement) "next++;" (update_expression) "next++" (identifier) "next" (++) "++" (;) ";" (}) "}" (declaration) "uint32_t n = strchrnul(next, ' ') - next;" (primitive_type) "uint32_t" (init_declarator) "n = strchrnul(next, ' ') - next" (identifier) "n" (=) "=" (binary_expression) "strchrnul(next, ' ') - next" (call_expression) "strchrnul(next, ' ')" (identifier) "strchrnul" (argument_list) "(next, ' ')" (() "(" (identifier) "next" (,) "," (char_literal) "' '" (') "'" (character) " " (') "'" ()) ")" (-) "-" (identifier) "next" (;) ";" (expression_statement) "args[n_args - 1] = strndup(next, n);" (assignment_expression) "args[n_args - 1] = strndup(next, n)" (subscript_expression) "args[n_args - 1]" (identifier) "args" ([) "[" (binary_expression) "n_args - 1" (identifier) "n_args" (-) "-" (number_literal) "1" (]) "]" (=) "=" (call_expression) "strndup(next, n)" (identifier) "strndup" (argument_list) "(next, n)" (() "(" (identifier) "next" (,) "," (identifier) "n" ()) ")" (;) ";" (expression_statement) "args[n_args] = NULL;" (assignment_expression) "args[n_args] = NULL" (subscript_expression) "args[n_args]" (identifier) "args" ([) "[" (identifier) "n_args" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "next = strchrnul(next, ' ');" (assignment_expression) "next = strchrnul(next, ' ')" (identifier) "next" (=) "=" (call_expression) "strchrnul(next, ' ')" (identifier) "strchrnul" (argument_list) "(next, ' ')" (() "(" (identifier) "next" (,) "," (char_literal) "' '" (') "'" (character) " " (') "'" ()) ")" (;) ";" (}) "}" (if_statement) "if (!args) {\n return;\n }" (if) "if" (parenthesized_expression) "(!args)" (() "(" (unary_expression) "!args" (!) "!" (identifier) "args" ()) ")" (compound_statement) "{\n return;\n }" ({) "{" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (declaration) "int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args);" (primitive_type) "int32_t" (init_declarator) "ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args)" (identifier) "ret" (=) "=" (call_expression) "syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args)" (identifier) "syscall2" (argument_list) "(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args)" (() "(" (identifier) "SYS_EXEC" (,) "," (cast_expression) "(uintptr_t) args[0]" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (subscript_expression) "args[0]" (identifier) "args" ([) "[" (number_literal) "0" (]) "]" (,) "," (cast_expression) "(uintptr_t) args" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (identifier) "args" ()) ")" (;) ";" (while_statement) "while (args && *args) {\n free(*args);\n args++;\n }" (while) "while" (parenthesized_expression) "(args && *args)" (() "(" (binary_expression) "args && *args" (identifier) "args" (&&) "&&" (pointer_expression) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n free(*args);\n args++;\n }" ({) "{" (expression_statement) "free(*args);" (call_expression) "free(*args)" (identifier) "free" (argument_list) "(*args)" (() "(" (pointer_expression) "*args" (*) "*" (identifier) "args" ()) ")" (;) ";" (expression_statement) "args++;" (update_expression) "args++" (identifier) "args" (++) "++" (;) ";" (}) "}" (expression_statement) "free(args);" (call_expression) "free(args)" (identifier) "free" (argument_list) "(args)" (() "(" (identifier) "args" ()) ")" (;) ";" (if_statement) "if (ret != 0) {\n str_append(text_buf, "\ninvalid command: ");\n str_append(text_buf, cmd);\n }" (if) "if" (parenthesized_expression) "(ret != 0)" (() "(" (binary_expression) "ret != 0" (identifier) "ret" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n str_append(text_buf, "\ninvalid command: ");\n str_append(text_buf, cmd);\n }" ({) "{" (expression_statement) "str_append(text_buf, "\ninvalid command: ");" (call_expression) "str_append(text_buf, "\ninvalid command: ")" (identifier) "str_append" (argument_list) "(text_buf, "\ninvalid command: ")" (() "(" (identifier) "text_buf" (,) "," (string_literal) ""\ninvalid command: "" (") """ (escape_sequence) "\n" (string_content) "invalid command: " (") """ ()) ")" (;) ";" (expression_statement) "str_append(text_buf, cmd);" (call_expression) "str_append(text_buf, cmd)" (identifier) "str_append" (argument_list) "(text_buf, cmd)" (() "(" (identifier) "text_buf" (,) "," (identifier) "cmd" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "uint32_t count_lines(str_t* str) {\n char* text_view = str->buf;\n uint32_t n_lines = 0;\n\n while (text_view < &str->buf[str->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }\n\n return n_lines;\n}" (primitive_type) "uint32_t" (function_declarator) "count_lines(str_t* str)" (identifier) "count_lines" (parameter_list) "(str_t* str)" (() "(" (parameter_declaration) "str_t* str" (type_identifier) "str_t" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n char* text_view = str->buf;\n uint32_t n_lines = 0;\n\n while (text_view < &str->buf[str->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }\n\n return n_lines;\n}" ({) "{" (declaration) "char* text_view = str->buf;" (primitive_type) "char" (init_declarator) "* text_view = str->buf" (pointer_declarator) "* text_view" (*) "*" (identifier) "text_view" (=) "=" (field_expression) "str->buf" (identifier) "str" (->) "->" (field_identifier) "buf" (;) ";" (declaration) "uint32_t n_lines = 0;" (primitive_type) "uint32_t" (init_declarator) "n_lines = 0" (identifier) "n_lines" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while (text_view < &str->buf[str->len]) {\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }" (while) "while" (parenthesized_expression) "(text_view < &str->buf[str->len])" (() "(" (binary_expression) "text_view < &str->buf[str->len]" (identifier) "text_view" (<) "<" (pointer_expression) "&str->buf[str->len]" (&) "&" (subscript_expression) "str->buf[str->len]" (field_expression) "str->buf" (identifier) "str" (->) "->" (field_identifier) "buf" ([) "[" (field_expression) "str->len" (identifier) "str" (->) "->" (field_identifier) "len" (]) "]" ()) ")" (compound_statement) "{\n char* lf = strchrnul(text_view, '\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }" ({) "{" (declaration) "char* lf = strchrnul(text_view, '\n');" (primitive_type) "char" (init_declarator) "* lf = strchrnul(text_view, '\n')" (pointer_declarator) "* lf" (*) "*" (identifier) "lf" (=) "=" (call_expression) "strchrnul(text_view, '\n')" (identifier) "strchrnul" (argument_list) "(text_view, '\n')" (() "(" (identifier) "text_view" (,) "," (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (declaration) "uint32_t line_len = (uint32_t) (lf - text_view);" (primitive_type) "uint32_t" (init_declarator) "line_len = (uint32_t) (lf - text_view)" (identifier) "line_len" (=) "=" (cast_expression) "(uint32_t) (lf - text_view)" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (parenthesized_expression) "(lf - text_view)" (() "(" (binary_expression) "lf - text_view" (identifier) "lf" (-) "-" (identifier) "text_view" ()) ")" (;) ";" (if_statement) "if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }" (if) "if" (parenthesized_expression) "(line_len <= max_col)" (() "(" (binary_expression) "line_len <= max_col" (identifier) "line_len" (<=) "<=" (identifier) "max_col" ()) ")" (compound_statement) "{\n text_view += line_len + 1; // Discard the line feed\n }" ({) "{" (expression_statement) "text_view += line_len + 1;" (assignment_expression) "text_view += line_len + 1" (identifier) "text_view" (+=) "+=" (binary_expression) "line_len + 1" (identifier) "line_len" (+) "+" (number_literal) "1" (;) ";" (comment) "// Discard the line feed" (}) "}" (else_clause) "else {\n text_view += max_col;\n }" (else) "else" (compound_statement) "{\n text_view += max_col;\n }" ({) "{" (expression_statement) "text_view += max_col;" (assignment_expression) "text_view += max_col" (identifier) "text_view" (+=) "+=" (identifier) "max_col" (;) ";" (}) "}" (expression_statement) "n_lines += 1;" (assignment_expression) "n_lines += 1" (identifier) "n_lines" (+=) "+=" (number_literal) "1" (;) ";" (}) "}" (return_statement) "return n_lines;" (return) "return" (identifier) "n_lines" (;) ";" (}) "}" (comment) "/* Discards the first line of the buffer.\n */" (function_definition) "char* scroll_view(char* str) {\n char* lf = strchrnul(str, '\n');\n uint32_t line_len = (uint32_t) (lf - str);\n\n if (line_len <= max_col) {\n return lf + 1;\n }\n\n return str + max_col;\n}" (primitive_type) "char" (pointer_declarator) "* scroll_view(char* str)" (*) "*" (function_declarator) "scroll_view(char* str)" (identifier) "scroll_view" (parameter_list) "(char* str)" (() "(" (parameter_declaration) "char* str" (primitive_type) "char" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n char* lf = strchrnul(str, '\n');\n uint32_t line_len = (uint32_t) (lf - str);\n\n if (line_len <= max_col) {\n return lf + 1;\n }\n\n return str + max_col;\n}" ({) "{" (declaration) "char* lf = strchrnul(str, '\n');" (primitive_type) "char" (init_declarator) "* lf = strchrnul(str, '\n')" (pointer_declarator) "* lf" (*) "*" (identifier) "lf" (=) "=" (call_expression) "strchrnul(str, '\n')" (identifier) "strchrnul" (argument_list) "(str, '\n')" (() "(" (identifier) "str" (,) "," (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (declaration) "uint32_t line_len = (uint32_t) (lf - str);" (primitive_type) "uint32_t" (init_declarator) "line_len = (uint32_t) (lf - str)" (identifier) "line_len" (=) "=" (cast_expression) "(uint32_t) (lf - str)" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (parenthesized_expression) "(lf - str)" (() "(" (binary_expression) "lf - str" (identifier) "lf" (-) "-" (identifier) "str" ()) ")" (;) ";" (if_statement) "if (line_len <= max_col) {\n return lf + 1;\n }" (if) "if" (parenthesized_expression) "(line_len <= max_col)" (() "(" (binary_expression) "line_len <= max_col" (identifier) "line_len" (<=) "<=" (identifier) "max_col" ()) ")" (compound_statement) "{\n return lf + 1;\n }" ({) "{" (return_statement) "return lf + 1;" (return) "return" (binary_expression) "lf + 1" (identifier) "lf" (+) "+" (number_literal) "1" (;) ";" (}) "}" (return_statement) "return str + max_col;" (return) "return" (binary_expression) "str + max_col" (identifier) "str" (+) "+" (identifier) "max_col" (;) ";" (}) "}"
2,360
0
{"language": "c", "success": true, "metadata": {"lines": 249, "avg_line_length": 30.42, "nodes": 1496, "errors": 0, "source_hash": "415c8957d3ba57f586e1e0fe876a0c0f81701d4d10fa23d0959126434dc7f8b7", "categorized_nodes": 991}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <snow.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": "<snow.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 17}}, {"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 <string.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": "<string.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <ctype.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": "<ctype.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 15, "type": "type_definition", "text": "typedef struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n} str_t;", "parent": null, "children": [16, 17, 30], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 16, "type": "typedef", "text": "typedef", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 17, "type": "struct_specifier", "text": "struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n}", "parent": 15, "children": [18], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 10, "column": 1}}, {"id": 18, "type": "struct", "text": "struct", "parent": 17, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 14}}, {"id": 19, "type": "field_declaration", "text": "char* buf;", "parent": 17, "children": [20, 21], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 14}}, {"id": 20, "type": "primitive_type", "text": "char", "parent": 19, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 8}}, {"id": 21, "type": "pointer_declarator", "text": "* buf", "parent": 19, "children": [22, 23], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 13}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 9}}, {"id": 23, "type": "field_identifier", "text": "buf", "parent": 21, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 13}}, {"id": 24, "type": "field_declaration", "text": "uint32_t buf_len;", "parent": 17, "children": [25, 26], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 21}}, {"id": 25, "type": "primitive_type", "text": "uint32_t", "parent": 24, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 12}}, {"id": 26, "type": "field_identifier", "text": "buf_len", "parent": 24, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 20}}, {"id": 27, "type": "field_declaration", "text": "uint32_t len;", "parent": 17, "children": [28, 29], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 17}}, {"id": 28, "type": "primitive_type", "text": "uint32_t", "parent": 27, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 12}}, {"id": 29, "type": "field_identifier", "text": "len", "parent": 27, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 16}}, {"id": 30, "type": "type_identifier", "text": "str_t", "parent": 15, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 7}}, {"id": 31, "type": "declaration", "text": "void redraw(str_t* text_buf, const str_t* input_buf);", "parent": null, "children": [32, 33], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 53}}, {"id": 32, "type": "primitive_type", "text": "void", "parent": 31, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 33, "type": "function_declarator", "text": "redraw(str_t* text_buf, const str_t* input_buf)", "parent": 31, "children": [34, 35], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 52}}, {"id": 34, "type": "identifier", "text": "redraw", "parent": 33, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 11}}, {"id": 35, "type": "parameter_list", "text": "(str_t* text_buf, const str_t* input_buf)", "parent": 33, "children": [36, 41], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 52}}, {"id": 36, "type": "parameter_declaration", "text": "str_t* text_buf", "parent": 35, "children": [37, 38], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 27}}, {"id": 37, "type": "type_identifier", "text": "str_t", "parent": 36, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 17}}, {"id": 38, "type": "pointer_declarator", "text": "* text_buf", "parent": 36, "children": [39, 40], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 27}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 40, "type": "identifier", "text": "text_buf", "parent": 38, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 27}}, {"id": 41, "type": "parameter_declaration", "text": "const str_t* input_buf", "parent": 35, "children": [42, 43], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 51}}, {"id": 42, "type": "type_identifier", "text": "str_t", "parent": 41, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 40}}, {"id": 43, "type": "pointer_declarator", "text": "* input_buf", "parent": 41, "children": [44, 45], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 51}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 41}}, {"id": 45, "type": "identifier", "text": "input_buf", "parent": 43, "children": [], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 51}}, {"id": 46, "type": "declaration", "text": "void draw_cursor(uint32_t x, uint32_t y);", "parent": null, "children": [47, 48], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 41}}, {"id": 47, "type": "primitive_type", "text": "void", "parent": 46, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 48, "type": "function_declarator", "text": "draw_cursor(uint32_t x, uint32_t y)", "parent": 46, "children": [49, 50], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 40}}, {"id": 49, "type": "identifier", "text": "draw_cursor", "parent": 48, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 16}}, {"id": 50, "type": "parameter_list", "text": "(uint32_t x, uint32_t y)", "parent": 48, "children": [51, 54], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 40}}, {"id": 51, "type": "parameter_declaration", "text": "uint32_t x", "parent": 50, "children": [52, 53], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 27}}, {"id": 52, "type": "primitive_type", "text": "uint32_t", "parent": 51, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 25}}, {"id": 53, "type": "identifier", "text": "x", "parent": 51, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 27}}, {"id": 54, "type": "parameter_declaration", "text": "uint32_t y", "parent": 50, "children": [55, 56], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 39}}, {"id": 55, "type": "primitive_type", "text": "uint32_t", "parent": 54, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 56, "type": "identifier", "text": "y", "parent": 54, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 39}}, {"id": 57, "type": "declaration", "text": "str_t* str_new(const char* str);", "parent": null, "children": [58, 59], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 58, "type": "type_identifier", "text": "str_t", "parent": 57, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 5}}, {"id": 59, "type": "pointer_declarator", "text": "* str_new(const char* str)", "parent": 57, "children": [60, 61], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 31}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 6}}, {"id": 61, "type": "function_declarator", "text": "str_new(const char* str)", "parent": 59, "children": [62, 63], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 31}}, {"id": 62, "type": "identifier", "text": "str_new", "parent": 61, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 14}}, {"id": 63, "type": "parameter_list", "text": "(const char* str)", "parent": 61, "children": [64], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 31}}, {"id": 64, "type": "parameter_declaration", "text": "const char* str", "parent": 63, "children": [65, 66], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 30}}, {"id": 65, "type": "primitive_type", "text": "char", "parent": 64, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 25}}, {"id": 66, "type": "pointer_declarator", "text": "* str", "parent": 64, "children": [67, 68], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 30}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 26}}, {"id": 68, "type": "identifier", "text": "str", "parent": 66, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 30}}, {"id": 69, "type": "declaration", "text": "void str_free(str_t* str);", "parent": null, "children": [70, 71], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 26}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 71, "type": "function_declarator", "text": "str_free(str_t* str)", "parent": 69, "children": [72, 73], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 25}}, {"id": 72, "type": "identifier", "text": "str_free", "parent": 71, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 13}}, {"id": 73, "type": "parameter_list", "text": "(str_t* str)", "parent": 71, "children": [74], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 25}}, {"id": 74, "type": "parameter_declaration", "text": "str_t* str", "parent": 73, "children": [75, 76], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 24}}, {"id": 75, "type": "type_identifier", "text": "str_t", "parent": 74, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 19}}, {"id": 76, "type": "pointer_declarator", "text": "* str", "parent": 74, "children": [77, 78], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 24}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 78, "type": "identifier", "text": "str", "parent": 76, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 24}}, {"id": 79, "type": "declaration", "text": "void str_append(str_t* str, const char* text);", "parent": null, "children": [80, 81], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 46}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 81, "type": "function_declarator", "text": "str_append(str_t* str, const char* text)", "parent": 79, "children": [82, 83], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 45}}, {"id": 82, "type": "identifier", "text": "str_append", "parent": 81, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 15}}, {"id": 83, "type": "parameter_list", "text": "(str_t* str, const char* text)", "parent": 81, "children": [84, 89], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 45}}, {"id": 84, "type": "parameter_declaration", "text": "str_t* str", "parent": 83, "children": [85, 86], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 26}}, {"id": 85, "type": "type_identifier", "text": "str_t", "parent": 84, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 21}}, {"id": 86, "type": "pointer_declarator", "text": "* str", "parent": 84, "children": [87, 88], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 26}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 22}}, {"id": 88, "type": "identifier", "text": "str", "parent": 86, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 26}}, {"id": 89, "type": "parameter_declaration", "text": "const char* text", "parent": 83, "children": [90, 91], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 44}}, {"id": 90, "type": "primitive_type", "text": "char", "parent": 89, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 38}}, {"id": 91, "type": "pointer_declarator", "text": "* text", "parent": 89, "children": [92, 93], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 44}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 39}}, {"id": 93, "type": "identifier", "text": "text", "parent": 91, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 44}}, {"id": 94, "type": "declaration", "text": "void interpret_cmd(str_t* text_buf, str_t* cmd);", "parent": null, "children": [95, 96], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 48}}, {"id": 95, "type": "primitive_type", "text": "void", "parent": 94, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 96, "type": "function_declarator", "text": "interpret_cmd(str_t* text_buf, str_t* cmd)", "parent": 94, "children": [97, 98], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 47}}, {"id": 97, "type": "identifier", "text": "interpret_cmd", "parent": 96, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 18}}, {"id": 98, "type": "parameter_list", "text": "(str_t* text_buf, str_t* cmd)", "parent": 96, "children": [99, 104], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 47}}, {"id": 99, "type": "parameter_declaration", "text": "str_t* text_buf", "parent": 98, "children": [100, 101], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 34}}, {"id": 100, "type": "type_identifier", "text": "str_t", "parent": 99, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 24}}, {"id": 101, "type": "pointer_declarator", "text": "* text_buf", "parent": 99, "children": [102, 103], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 34}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 25}}, {"id": 103, "type": "identifier", "text": "text_buf", "parent": 101, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 34}}, {"id": 104, "type": "parameter_declaration", "text": "str_t* cmd", "parent": 98, "children": [105, 106], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 46}}, {"id": 105, "type": "type_identifier", "text": "str_t", "parent": 104, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 41}}, {"id": 106, "type": "pointer_declarator", "text": "* cmd", "parent": 104, "children": [107, 108], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 46}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 42}}, {"id": 108, "type": "identifier", "text": "cmd", "parent": 106, "children": [], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 46}}, {"id": 109, "type": "declaration", "text": "uint32_t count_lines(str_t* str);", "parent": null, "children": [110, 111], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 33}}, {"id": 110, "type": "primitive_type", "text": "uint32_t", "parent": 109, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 111, "type": "function_declarator", "text": "count_lines(str_t* str)", "parent": 109, "children": [112, 113], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 32}}, {"id": 112, "type": "identifier", "text": "count_lines", "parent": 111, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 20}}, {"id": 113, "type": "parameter_list", "text": "(str_t* str)", "parent": 111, "children": [114], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 32}}, {"id": 114, "type": "parameter_declaration", "text": "str_t* str", "parent": 113, "children": [115, 116], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 31}}, {"id": 115, "type": "type_identifier", "text": "str_t", "parent": 114, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 26}}, {"id": 116, "type": "pointer_declarator", "text": "* str", "parent": 114, "children": [117, 118], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 31}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 27}}, {"id": 118, "type": "identifier", "text": "str", "parent": 116, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 31}}, {"id": 119, "type": "declaration", "text": "char* scroll_view(char* str);", "parent": null, "children": [120, 121], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 29}}, {"id": 120, "type": "primitive_type", "text": "char", "parent": 119, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 121, "type": "pointer_declarator", "text": "* scroll_view(char* str)", "parent": 119, "children": [122, 123], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 28}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 123, "type": "function_declarator", "text": "scroll_view(char* str)", "parent": 121, "children": [124, 125], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 28}}, {"id": 124, "type": "identifier", "text": "scroll_view", "parent": 123, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 17}}, {"id": 125, "type": "parameter_list", "text": "(char* str)", "parent": 123, "children": [126], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 28}}, {"id": 126, "type": "parameter_declaration", "text": "char* str", "parent": 125, "children": [127, 128], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 27}}, {"id": 127, "type": "primitive_type", "text": "char", "parent": 126, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 22}}, {"id": 128, "type": "pointer_declarator", "text": "* str", "parent": 126, "children": [129, 130], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 27}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 23}}, {"id": 130, "type": "identifier", "text": "str", "parent": 128, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 27}}, {"id": 131, "type": "declaration", "text": "const uint32_t twidth = 550;", "parent": null, "children": [132, 133], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 28}}, {"id": 132, "type": "primitive_type", "text": "uint32_t", "parent": 131, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 14}}, {"id": 133, "type": "init_declarator", "text": "twidth = 550", "parent": 131, "children": [134, 135, 136], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 27}}, {"id": 134, "type": "identifier", "text": "twidth", "parent": 133, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 21}}, {"id": 135, "type": "=", "text": "=", "parent": 133, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 136, "type": "number_literal", "text": "550", "parent": 133, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 27}}, {"id": 137, "type": "declaration", "text": "const uint32_t theight = 342;", "parent": null, "children": [138, 139], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 29}}, {"id": 138, "type": "primitive_type", "text": "uint32_t", "parent": 137, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 14}}, {"id": 139, "type": "init_declarator", "text": "theight = 342", "parent": 137, "children": [140, 141, 142], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 28}}, {"id": 140, "type": "identifier", "text": "theight", "parent": 139, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 22}}, {"id": 141, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 24}}, {"id": 142, "type": "number_literal", "text": "342", "parent": 139, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 28}}, {"id": 143, "type": "declaration", "text": "const uint32_t char_width = 8;", "parent": null, "children": [144, 145], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 30}}, {"id": 144, "type": "primitive_type", "text": "uint32_t", "parent": 143, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 14}}, {"id": 145, "type": "init_declarator", "text": "char_width = 8", "parent": 143, "children": [146, 147, 148], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 29}}, {"id": 146, "type": "identifier", "text": "char_width", "parent": 145, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 25}}, {"id": 147, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 27}}, {"id": 148, "type": "number_literal", "text": "8", "parent": 145, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 29}}, {"id": 149, "type": "declaration", "text": "const uint32_t char_height = 16;", "parent": null, "children": [150, 151], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 32}}, {"id": 150, "type": "primitive_type", "text": "uint32_t", "parent": 149, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 14}}, {"id": 151, "type": "init_declarator", "text": "char_height = 16", "parent": 149, "children": [152, 153, 154], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 31}}, {"id": 152, "type": "identifier", "text": "char_height", "parent": 151, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 26}}, {"id": 153, "type": "=", "text": "=", "parent": 151, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}, {"id": 154, "type": "number_literal", "text": "16", "parent": 151, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 31}}, {"id": 155, "type": "declaration", "text": "const uint32_t max_col = twidth / char_width - 1;", "parent": null, "children": [156, 157], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 49}}, {"id": 156, "type": "primitive_type", "text": "uint32_t", "parent": 155, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 14}}, {"id": 157, "type": "init_declarator", "text": "max_col = twidth / char_width - 1", "parent": 155, "children": [158, 159, 160], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 48}}, {"id": 158, "type": "identifier", "text": "max_col", "parent": 157, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 22}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 24}}, {"id": 160, "type": "binary_expression", "text": "twidth / char_width - 1", "parent": 157, "children": [161, 165, 166], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 48}}, {"id": 161, "type": "binary_expression", "text": "twidth / char_width", "parent": 160, "children": [162, 163, 164], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 44}}, {"id": 162, "type": "identifier", "text": "twidth", "parent": 161, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 31}}, {"id": 163, "type": "/", "text": "/", "parent": 161, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 33}}, {"id": 164, "type": "identifier", "text": "char_width", "parent": 161, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 44}}, {"id": 165, "type": "-", "text": "-", "parent": 160, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 46}}, {"id": 166, "type": "number_literal", "text": "1", "parent": 160, "children": [], "start_point": {"row": 25, "column": 47}, "end_point": {"row": 25, "column": 48}}, {"id": 167, "type": "declaration", "text": "const uint32_t max_line = theight / char_height - 1;", "parent": null, "children": [168, 169], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 52}}, {"id": 168, "type": "primitive_type", "text": "uint32_t", "parent": 167, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 14}}, {"id": 169, "type": "init_declarator", "text": "max_line = theight / char_height - 1", "parent": 167, "children": [170, 171, 172], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 51}}, {"id": 170, "type": "identifier", "text": "max_line", "parent": 169, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 23}}, {"id": 171, "type": "=", "text": "=", "parent": 169, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 25}}, {"id": 172, "type": "binary_expression", "text": "theight / char_height - 1", "parent": 169, "children": [173, 177, 178], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 51}}, {"id": 173, "type": "binary_expression", "text": "theight / char_height", "parent": 172, "children": [174, 175, 176], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 47}}, {"id": 174, "type": "identifier", "text": "theight", "parent": 173, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 33}}, {"id": 175, "type": "/", "text": "/", "parent": 173, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 35}}, {"id": 176, "type": "identifier", "text": "char_height", "parent": 173, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 47}}, {"id": 177, "type": "-", "text": "-", "parent": 172, "children": [], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 49}}, {"id": 178, "type": "number_literal", "text": "1", "parent": 172, "children": [], "start_point": {"row": 26, "column": 50}, "end_point": {"row": 26, "column": 51}}, {"id": 179, "type": "declaration", "text": "const char* prompt = \"snowflakeos $ \";", "parent": null, "children": [180, 181], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 38}}, {"id": 180, "type": "primitive_type", "text": "char", "parent": 179, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 10}}, {"id": 181, "type": "init_declarator", "text": "* prompt = \"snowflakeos $ \"", "parent": 179, "children": [182, 185, 186], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 37}}, {"id": 182, "type": "pointer_declarator", "text": "* prompt", "parent": 181, "children": [183, 184], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 18}}, {"id": 183, "type": "*", "text": "*", "parent": 182, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 184, "type": "identifier", "text": "prompt", "parent": 182, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 18}}, {"id": 185, "type": "=", "text": "=", "parent": 181, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 186, "type": "string_literal", "text": "\"snowflakeos $ \"", "parent": 181, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 37}}, {"id": 187, "type": "declaration", "text": "const uint32_t margin = 1;", "parent": null, "children": [188, 189], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 26}}, {"id": 188, "type": "primitive_type", "text": "uint32_t", "parent": 187, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 14}}, {"id": 189, "type": "init_declarator", "text": "margin = 1", "parent": 187, "children": [190, 191, 192], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 25}}, {"id": 190, "type": "identifier", "text": "margin", "parent": 189, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 21}}, {"id": 191, "type": "=", "text": "=", "parent": 189, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 23}}, {"id": 192, "type": "number_literal", "text": "1", "parent": 189, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 25}}, {"id": 193, "type": "declaration", "text": "const uint32_t text_color = 0xE0E0E0;", "parent": null, "children": [194, 195], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 37}}, {"id": 194, "type": "primitive_type", "text": "uint32_t", "parent": 193, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 14}}, {"id": 195, "type": "init_declarator", "text": "text_color = 0xE0E0E0", "parent": 193, "children": [196, 197, 198], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 36}}, {"id": 196, "type": "identifier", "text": "text_color", "parent": 195, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 25}}, {"id": 197, "type": "=", "text": "=", "parent": 195, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 27}}, {"id": 198, "type": "number_literal", "text": "0xE0E0E0", "parent": 195, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 36}}, {"id": 199, "type": "declaration", "text": "const float cursor_blink_time = 1;", "parent": null, "children": [200, 201], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 34}}, {"id": 200, "type": "primitive_type", "text": "float", "parent": 199, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 11}}, {"id": 201, "type": "init_declarator", "text": "cursor_blink_time = 1", "parent": 199, "children": [202, 203, 204], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 33}}, {"id": 202, "type": "identifier", "text": "cursor_blink_time", "parent": 201, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 29}}, {"id": 203, "type": "=", "text": "=", "parent": 201, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 31}}, {"id": 204, "type": "number_literal", "text": "1", "parent": 201, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 33}}, {"id": 205, "type": "declaration", "text": "window_t* win;", "parent": null, "children": [206, 207], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 14}}, {"id": 206, "type": "type_identifier", "text": "window_t", "parent": 205, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 207, "type": "pointer_declarator", "text": "* win", "parent": 205, "children": [208, 209], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 13}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 9}}, {"id": 209, "type": "identifier", "text": "win", "parent": 207, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 13}}, {"id": 210, "type": "declaration", "text": "bool cursor = true;", "parent": null, "children": [211, 212], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 19}}, {"id": 211, "type": "primitive_type", "text": "bool", "parent": 210, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 4}}, {"id": 212, "type": "init_declarator", "text": "cursor = true", "parent": 210, "children": [213, 214, 215], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 18}}, {"id": 213, "type": "identifier", "text": "cursor", "parent": 212, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 11}}, {"id": 214, "type": "=", "text": "=", "parent": 212, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 215, "type": "true", "text": "true", "parent": 212, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 18}}, {"id": 216, "type": "declaration", "text": "bool running = true;", "parent": null, "children": [217, 218], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 20}}, {"id": 217, "type": "primitive_type", "text": "bool", "parent": 216, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 4}}, {"id": 218, "type": "init_declarator", "text": "running = true", "parent": 216, "children": [219, 220, 221], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 19}}, {"id": 219, "type": "identifier", "text": "running", "parent": 218, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 12}}, {"id": 220, "type": "=", "text": "=", "parent": 218, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 14}}, {"id": 221, "type": "true", "text": "true", "parent": 218, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 19}}, {"id": 222, "type": "declaration", "text": "bool focused = true;", "parent": null, "children": [223, 224], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 20}}, {"id": 223, "type": "primitive_type", "text": "bool", "parent": 222, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 4}}, {"id": 224, "type": "init_declarator", "text": "focused = true", "parent": 222, "children": [225, 226, 227], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 19}}, {"id": 225, "type": "identifier", "text": "focused", "parent": 224, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 12}}, {"id": 226, "type": "=", "text": "=", "parent": 224, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 227, "type": "true", "text": "true", "parent": 224, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 19}}, {"id": 228, "type": "function_definition", "text": "int main() {\n win = snow_open_window(\"Terminal\", twidth, theight, WM_NORMAL);\n\n syscall(SYS_MAKETTY);\n\n str_t* text_buf = str_new(prompt);\n str_t* input_buf = str_new(\"\");\n cursor = true;\n\n uint32_t last_time = 0;\n\n redraw(text_buf, input_buf);\n\n while (running) {\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf(\"\\n\");\n input_buf->buf[0] = '\\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = \"\\0\\0\";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }\n\n str_free(text_buf);\n str_free(input_buf);\n\n snow_close_window(win);\n\n return 0;\n}", "parent": null, "children": [229, 230], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 136, "column": 1}}, {"id": 229, "type": "primitive_type", "text": "int", "parent": 228, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 3}}, {"id": 230, "type": "function_declarator", "text": "main()", "parent": 228, "children": [231, 232], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 10}}, {"id": 231, "type": "identifier", "text": "main", "parent": 230, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 232, "type": "parameter_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 10}}, {"id": 233, "type": "assignment_expression", "text": "win = snow_open_window(\"Terminal\", twidth, theight, WM_NORMAL)", "parent": 228, "children": [234, 235, 236], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 66}}, {"id": 234, "type": "identifier", "text": "win", "parent": 233, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 235, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 9}}, {"id": 236, "type": "call_expression", "text": "snow_open_window(\"Terminal\", twidth, theight, WM_NORMAL)", "parent": 233, "children": [237, 238], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 66}}, {"id": 237, "type": "identifier", "text": "snow_open_window", "parent": 236, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 26}}, {"id": 238, "type": "argument_list", "text": "(\"Terminal\", twidth, theight, WM_NORMAL)", "parent": 236, "children": [239, 240, 241, 242], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 66}}, {"id": 239, "type": "string_literal", "text": "\"Terminal\"", "parent": 238, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 37}}, {"id": 240, "type": "identifier", "text": "twidth", "parent": 238, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 45}}, {"id": 241, "type": "identifier", "text": "theight", "parent": 238, "children": [], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 54}}, {"id": 242, "type": "identifier", "text": "WM_NORMAL", "parent": 238, "children": [], "start_point": {"row": 39, "column": 56}, "end_point": {"row": 39, "column": 65}}, {"id": 243, "type": "call_expression", "text": "syscall(SYS_MAKETTY)", "parent": 228, "children": [244, 245], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 24}}, {"id": 244, "type": "identifier", "text": "syscall", "parent": 243, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 11}}, {"id": 245, "type": "argument_list", "text": "(SYS_MAKETTY)", "parent": 243, "children": [246], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 24}}, {"id": 246, "type": "identifier", "text": "SYS_MAKETTY", "parent": 245, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 23}}, {"id": 247, "type": "declaration", "text": "str_t* text_buf = str_new(prompt);", "parent": 228, "children": [248, 249], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 38}}, {"id": 248, "type": "type_identifier", "text": "str_t", "parent": 247, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 9}}, {"id": 249, "type": "init_declarator", "text": "* text_buf = str_new(prompt)", "parent": 247, "children": [250, 253, 254], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 37}}, {"id": 250, "type": "pointer_declarator", "text": "* text_buf", "parent": 249, "children": [251, 252], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 19}}, {"id": 251, "type": "*", "text": "*", "parent": 250, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 10}}, {"id": 252, "type": "identifier", "text": "text_buf", "parent": 250, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 19}}, {"id": 253, "type": "=", "text": "=", "parent": 249, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 21}}, {"id": 254, "type": "call_expression", "text": "str_new(prompt)", "parent": 249, "children": [255, 256], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 37}}, {"id": 255, "type": "identifier", "text": "str_new", "parent": 254, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 29}}, {"id": 256, "type": "argument_list", "text": "(prompt)", "parent": 254, "children": [257], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 37}}, {"id": 257, "type": "identifier", "text": "prompt", "parent": 256, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 36}}, {"id": 258, "type": "declaration", "text": "str_t* input_buf = str_new(\"\");", "parent": 228, "children": [259, 260], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 35}}, {"id": 259, "type": "type_identifier", "text": "str_t", "parent": 258, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 9}}, {"id": 260, "type": "init_declarator", "text": "* input_buf = str_new(\"\")", "parent": 258, "children": [261, 264, 265], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 34}}, {"id": 261, "type": "pointer_declarator", "text": "* input_buf", "parent": 260, "children": [262, 263], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 20}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 263, "type": "identifier", "text": "input_buf", "parent": 261, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 20}}, {"id": 264, "type": "=", "text": "=", "parent": 260, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 265, "type": "call_expression", "text": "str_new(\"\")", "parent": 260, "children": [266, 267], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 34}}, {"id": 266, "type": "identifier", "text": "str_new", "parent": 265, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 30}}, {"id": 267, "type": "argument_list", "text": "(\"\")", "parent": 265, "children": [268], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 34}}, {"id": 268, "type": "string_literal", "text": "\"\"", "parent": 267, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 33}}, {"id": 269, "type": "assignment_expression", "text": "cursor = true", "parent": 228, "children": [270, 271, 272], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 17}}, {"id": 270, "type": "identifier", "text": "cursor", "parent": 269, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 10}}, {"id": 271, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 12}}, {"id": 272, "type": "true", "text": "true", "parent": 269, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 17}}, {"id": 273, "type": "declaration", "text": "uint32_t last_time = 0;", "parent": 228, "children": [274, 275], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 27}}, {"id": 274, "type": "primitive_type", "text": "uint32_t", "parent": 273, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 12}}, {"id": 275, "type": "init_declarator", "text": "last_time = 0", "parent": 273, "children": [276, 277, 278], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 26}}, {"id": 276, "type": "identifier", "text": "last_time", "parent": 275, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 22}}, {"id": 277, "type": "=", "text": "=", "parent": 275, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 24}}, {"id": 278, "type": "number_literal", "text": "0", "parent": 275, "children": [], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 26}}, {"id": 279, "type": "call_expression", "text": "redraw(text_buf, input_buf)", "parent": 228, "children": [280, 281], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 31}}, {"id": 280, "type": "identifier", "text": "redraw", "parent": 279, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 281, "type": "argument_list", "text": "(text_buf, input_buf)", "parent": 279, "children": [282, 283], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 31}}, {"id": 282, "type": "identifier", "text": "text_buf", "parent": 281, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 19}}, {"id": 283, "type": "identifier", "text": "input_buf", "parent": 281, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 30}}, {"id": 284, "type": "while_statement", "text": "while (running) {\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf(\"\\n\");\n input_buf->buf[0] = '\\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = \"\\0\\0\";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }", "parent": 228, "children": [285], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 285, "type": "parenthesized_expression", "text": "(running)", "parent": 284, "children": [286], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 19}}, {"id": 286, "type": "identifier", "text": "running", "parent": 285, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 18}}, {"id": 287, "type": "declaration", "text": "wm_event_t event = snow_get_event(win);", "parent": 284, "children": [288, 289], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 47}}, {"id": 288, "type": "type_identifier", "text": "wm_event_t", "parent": 287, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 18}}, {"id": 289, "type": "init_declarator", "text": "event = snow_get_event(win)", "parent": 287, "children": [290, 291, 292], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 46}}, {"id": 290, "type": "identifier", "text": "event", "parent": 289, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 24}}, {"id": 291, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 26}}, {"id": 292, "type": "call_expression", "text": "snow_get_event(win)", "parent": 289, "children": [293, 294], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 46}}, {"id": 293, "type": "identifier", "text": "snow_get_event", "parent": 292, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 41}}, {"id": 294, "type": "argument_list", "text": "(win)", "parent": 292, "children": [295], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 46}}, {"id": 295, "type": "identifier", "text": "win", "parent": 294, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 45}}, {"id": 296, "type": "declaration", "text": "wm_kbd_event_t key = event.kbd;", "parent": 284, "children": [297, 298], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 39}}, {"id": 297, "type": "type_identifier", "text": "wm_kbd_event_t", "parent": 296, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 22}}, {"id": 298, "type": "init_declarator", "text": "key = event.kbd", "parent": 296, "children": [299, 300, 301], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 38}}, {"id": 299, "type": "identifier", "text": "key", "parent": 298, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 26}}, {"id": 300, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 28}}, {"id": 301, "type": "field_expression", "text": "event.kbd", "parent": 298, "children": [302, 303], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 38}}, {"id": 302, "type": "identifier", "text": "event", "parent": 301, "children": [], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 34}}, {"id": 303, "type": "field_identifier", "text": "kbd", "parent": 301, "children": [], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 38}}, {"id": 304, "type": "declaration", "text": "bool needs_redrawing = false;", "parent": 284, "children": [305, 306], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 37}}, {"id": 305, "type": "primitive_type", "text": "bool", "parent": 304, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 12}}, {"id": 306, "type": "init_declarator", "text": "needs_redrawing = false", "parent": 304, "children": [307, 308, 309], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 36}}, {"id": 307, "type": "identifier", "text": "needs_redrawing", "parent": 306, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 28}}, {"id": 308, "type": "=", "text": "=", "parent": 306, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 30}}, {"id": 309, "type": "false", "text": "false", "parent": 306, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 36}}, {"id": 310, "type": "if_statement", "text": "if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }", "parent": 284, "children": [311, 326], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 311, "type": "parenthesized_expression", "text": "(event.type == WM_EVENT_GAINED_FOCUS)", "parent": 310, "children": [312], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 48}}, {"id": 312, "type": "binary_expression", "text": "event.type == WM_EVENT_GAINED_FOCUS", "parent": 311, "children": [313, 316, 317], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 47}}, {"id": 313, "type": "field_expression", "text": "event.type", "parent": 312, "children": [314, 315], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 22}}, {"id": 314, "type": "identifier", "text": "event", "parent": 313, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 17}}, {"id": 315, "type": "field_identifier", "text": "type", "parent": 313, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 22}}, {"id": 316, "type": "==", "text": "==", "parent": 312, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 25}}, {"id": 317, "type": "identifier", "text": "WM_EVENT_GAINED_FOCUS", "parent": 312, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 47}}, {"id": 318, "type": "assignment_expression", "text": "focused = true", "parent": 310, "children": [319, 320, 321], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 26}}, {"id": 319, "type": "identifier", "text": "focused", "parent": 318, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 19}}, {"id": 320, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 21}}, {"id": 321, "type": "true", "text": "true", "parent": 318, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 26}}, {"id": 322, "type": "assignment_expression", "text": "needs_redrawing = true", "parent": 310, "children": [323, 324, 325], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 34}}, {"id": 323, "type": "identifier", "text": "needs_redrawing", "parent": 322, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 27}}, {"id": 324, "type": "=", "text": "=", "parent": 322, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 29}}, {"id": 325, "type": "true", "text": "true", "parent": 322, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 34}}, {"id": 326, "type": "else_clause", "text": "else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }", "parent": 310, "children": [327], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 64, "column": 9}}, {"id": 327, "type": "if_statement", "text": "if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }", "parent": 326, "children": [328], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 64, "column": 9}}, {"id": 328, "type": "parenthesized_expression", "text": "(event.type == WM_EVENT_LOST_FOCUS)", "parent": 327, "children": [329], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 53}}, {"id": 329, "type": "binary_expression", "text": "event.type == WM_EVENT_LOST_FOCUS", "parent": 328, "children": [330, 333, 334], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 52}}, {"id": 330, "type": "field_expression", "text": "event.type", "parent": 329, "children": [331, 332], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 29}}, {"id": 331, "type": "identifier", "text": "event", "parent": 330, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 24}}, {"id": 332, "type": "field_identifier", "text": "type", "parent": 330, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 29}}, {"id": 333, "type": "==", "text": "==", "parent": 329, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 32}}, {"id": 334, "type": "identifier", "text": "WM_EVENT_LOST_FOCUS", "parent": 329, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 52}}, {"id": 335, "type": "assignment_expression", "text": "focused = false", "parent": 327, "children": [336, 337, 338], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 27}}, {"id": 336, "type": "identifier", "text": "focused", "parent": 335, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 19}}, {"id": 337, "type": "=", "text": "=", "parent": 335, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 338, "type": "false", "text": "false", "parent": 335, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 27}}, {"id": 339, "type": "assignment_expression", "text": "cursor = false", "parent": 327, "children": [340, 341, 342], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 26}}, {"id": 340, "type": "identifier", "text": "cursor", "parent": 339, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 18}}, {"id": 341, "type": "=", "text": "=", "parent": 339, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 20}}, {"id": 342, "type": "false", "text": "false", "parent": 339, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 26}}, {"id": 343, "type": "assignment_expression", "text": "needs_redrawing = true", "parent": 327, "children": [344, 345, 346], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 34}}, {"id": 344, "type": "identifier", "text": "needs_redrawing", "parent": 343, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 27}}, {"id": 345, "type": "=", "text": "=", "parent": 343, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 29}}, {"id": 346, "type": "true", "text": "true", "parent": 343, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 34}}, {"id": 347, "type": "if_statement", "text": "if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }", "parent": 284, "children": [348], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 78, "column": 9}}, {"id": 348, "type": "parenthesized_expression", "text": "(focused)", "parent": 347, "children": [349], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 20}}, {"id": 349, "type": "identifier", "text": "focused", "parent": 348, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 19}}, {"id": 350, "type": "declaration", "text": "sys_info_t info;", "parent": 347, "children": [351, 352], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 28}}, {"id": 351, "type": "type_identifier", "text": "sys_info_t", "parent": 350, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 22}}, {"id": 352, "type": "identifier", "text": "info", "parent": 350, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 27}}, {"id": 353, "type": "call_expression", "text": "syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info)", "parent": 347, "children": [354, 355], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 66}}, {"id": 354, "type": "identifier", "text": "syscall2", "parent": 353, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 20}}, {"id": 355, "type": "argument_list", "text": "(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info)", "parent": 353, "children": [356, 357, 358], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 66}}, {"id": 356, "type": "identifier", "text": "SYS_INFO", "parent": 355, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 29}}, {"id": 357, "type": "identifier", "text": "SYS_INFO_UPTIME", "parent": 355, "children": [], "start_point": {"row": 69, "column": 31}, "end_point": {"row": 69, "column": 46}}, {"id": 358, "type": "cast_expression", "text": "(uintptr_t) &info", "parent": 355, "children": [359, 361], "start_point": {"row": 69, "column": 48}, "end_point": {"row": 69, "column": 65}}, {"id": 359, "type": "type_descriptor", "text": "uintptr_t", "parent": 358, "children": [360], "start_point": {"row": 69, "column": 49}, "end_point": {"row": 69, "column": 58}}, {"id": 360, "type": "primitive_type", "text": "uintptr_t", "parent": 359, "children": [], "start_point": {"row": 69, "column": 49}, "end_point": {"row": 69, "column": 58}}, {"id": 361, "type": "pointer_expression", "text": "&info", "parent": 358, "children": [362], "start_point": {"row": 69, "column": 60}, "end_point": {"row": 69, "column": 65}}, {"id": 362, "type": "identifier", "text": "info", "parent": 361, "children": [], "start_point": {"row": 69, "column": 61}, "end_point": {"row": 69, "column": 65}}, {"id": 363, "type": "declaration", "text": "uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);", "parent": 347, "children": [364, 365], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 73}}, {"id": 364, "type": "primitive_type", "text": "uint32_t", "parent": 363, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 20}}, {"id": 365, "type": "init_declarator", "text": "time = (uint32_t) (info.uptime / cursor_blink_time)", "parent": 363, "children": [366, 367, 368], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 72}}, {"id": 366, "type": "identifier", "text": "time", "parent": 365, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 25}}, {"id": 367, "type": "=", "text": "=", "parent": 365, "children": [], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 27}}, {"id": 368, "type": "cast_expression", "text": "(uint32_t) (info.uptime / cursor_blink_time)", "parent": 365, "children": [369, 371], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 72}}, {"id": 369, "type": "type_descriptor", "text": "uint32_t", "parent": 368, "children": [370], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 37}}, {"id": 370, "type": "primitive_type", "text": "uint32_t", "parent": 369, "children": [], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 37}}, {"id": 371, "type": "parenthesized_expression", "text": "(info.uptime / cursor_blink_time)", "parent": 368, "children": [372], "start_point": {"row": 71, "column": 39}, "end_point": {"row": 71, "column": 72}}, {"id": 372, "type": "binary_expression", "text": "info.uptime / cursor_blink_time", "parent": 371, "children": [373, 376, 377], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 71}}, {"id": 373, "type": "field_expression", "text": "info.uptime", "parent": 372, "children": [374, 375], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 51}}, {"id": 374, "type": "identifier", "text": "info", "parent": 373, "children": [], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 44}}, {"id": 375, "type": "field_identifier", "text": "uptime", "parent": 373, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 51}}, {"id": 376, "type": "/", "text": "/", "parent": 372, "children": [], "start_point": {"row": 71, "column": 52}, "end_point": {"row": 71, "column": 53}}, {"id": 377, "type": "identifier", "text": "cursor_blink_time", "parent": 372, "children": [], "start_point": {"row": 71, "column": 54}, "end_point": {"row": 71, "column": 71}}, {"id": 378, "type": "if_statement", "text": "if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }", "parent": 347, "children": [379], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 379, "type": "parenthesized_expression", "text": "(time != last_time)", "parent": 378, "children": [380], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 34}}, {"id": 380, "type": "binary_expression", "text": "time != last_time", "parent": 379, "children": [381, 382, 383], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 33}}, {"id": 381, "type": "identifier", "text": "time", "parent": 380, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 20}}, {"id": 382, "type": "!=", "text": "!=", "parent": 380, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 23}}, {"id": 383, "type": "identifier", "text": "last_time", "parent": 380, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 33}}, {"id": 384, "type": "assignment_expression", "text": "last_time = time", "parent": 378, "children": [385, 386, 387], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 32}}, {"id": 385, "type": "identifier", "text": "last_time", "parent": 384, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 25}}, {"id": 386, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 27}}, {"id": 387, "type": "identifier", "text": "time", "parent": 384, "children": [], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 32}}, {"id": 388, "type": "assignment_expression", "text": "cursor = !cursor", "parent": 378, "children": [389, 390, 391], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 32}}, {"id": 389, "type": "identifier", "text": "cursor", "parent": 388, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 22}}, {"id": 390, "type": "=", "text": "=", "parent": 388, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 24}}, {"id": 391, "type": "unary_expression", "text": "!cursor", "parent": 388, "children": [392, 393], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 32}}, {"id": 392, "type": "!", "text": "!", "parent": 391, "children": [], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 26}}, {"id": 393, "type": "identifier", "text": "cursor", "parent": 391, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 32}}, {"id": 394, "type": "assignment_expression", "text": "needs_redrawing = true", "parent": 378, "children": [395, 396, 397], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 38}}, {"id": 395, "type": "identifier", "text": "needs_redrawing", "parent": 394, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 31}}, {"id": 396, "type": "=", "text": "=", "parent": 394, "children": [], "start_point": {"row": 76, "column": 32}, "end_point": {"row": 76, "column": 33}}, {"id": 397, "type": "true", "text": "true", "parent": 394, "children": [], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 38}}, {"id": 398, "type": "declaration", "text": "const uint32_t buf_size = 256;", "parent": 284, "children": [399, 400], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 38}}, {"id": 399, "type": "primitive_type", "text": "uint32_t", "parent": 398, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 22}}, {"id": 400, "type": "init_declarator", "text": "buf_size = 256", "parent": 398, "children": [401, 402, 403], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 37}}, {"id": 401, "type": "identifier", "text": "buf_size", "parent": 400, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 31}}, {"id": 402, "type": "=", "text": "=", "parent": 400, "children": [], "start_point": {"row": 81, "column": 32}, "end_point": {"row": 81, "column": 33}}, {"id": 403, "type": "number_literal", "text": "256", "parent": 400, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 37}}, {"id": 404, "type": "declaration", "text": "char buf[buf_size];", "parent": 284, "children": [405, 406], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 27}}, {"id": 405, "type": "primitive_type", "text": "char", "parent": 404, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 12}}, {"id": 406, "type": "array_declarator", "text": "buf[buf_size]", "parent": 404, "children": [407, 408], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 26}}, {"id": 407, "type": "identifier", "text": "buf", "parent": 406, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 16}}, {"id": 408, "type": "identifier", "text": "buf_size", "parent": 406, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 25}}, {"id": 409, "type": "declaration", "text": "uint32_t read;", "parent": 284, "children": [410, 411], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 22}}, {"id": 410, "type": "primitive_type", "text": "uint32_t", "parent": 409, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 16}}, {"id": 411, "type": "identifier", "text": "read", "parent": 409, "children": [], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 21}}, {"id": 412, "type": "declaration", "text": "bool anything_read = false;", "parent": 284, "children": [413, 414], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 35}}, {"id": 413, "type": "primitive_type", "text": "bool", "parent": 412, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 12}}, {"id": 414, "type": "init_declarator", "text": "anything_read = false", "parent": 412, "children": [415, 416, 417], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 34}}, {"id": 415, "type": "identifier", "text": "anything_read", "parent": 414, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 26}}, {"id": 416, "type": "=", "text": "=", "parent": 414, "children": [], "start_point": {"row": 84, "column": 27}, "end_point": {"row": 84, "column": 28}}, {"id": 417, "type": "false", "text": "false", "parent": 414, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 34}}, {"id": 418, "type": "while_statement", "text": "while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }", "parent": 284, "children": [419], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 91, "column": 9}}, {"id": 419, "type": "parenthesized_expression", "text": "((read = fread(buf, 1, buf_size - 1, stdout)))", "parent": 418, "children": [420], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 60}}, {"id": 420, "type": "parenthesized_expression", "text": "(read = fread(buf, 1, buf_size - 1, stdout))", "parent": 419, "children": [421], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 59}}, {"id": 421, "type": "assignment_expression", "text": "read = fread(buf, 1, buf_size - 1, stdout)", "parent": 420, "children": [422, 423, 424], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 58}}, {"id": 422, "type": "identifier", "text": "read", "parent": 421, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 20}}, {"id": 423, "type": "=", "text": "=", "parent": 421, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 22}}, {"id": 424, "type": "call_expression", "text": "fread(buf, 1, buf_size - 1, stdout)", "parent": 421, "children": [425, 426], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 58}}, {"id": 425, "type": "identifier", "text": "fread", "parent": 424, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 28}}, {"id": 426, "type": "argument_list", "text": "(buf, 1, buf_size - 1, stdout)", "parent": 424, "children": [427, 428, 429, 433], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 58}}, {"id": 427, "type": "identifier", "text": "buf", "parent": 426, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 32}}, {"id": 428, "type": "number_literal", "text": "1", "parent": 426, "children": [], "start_point": {"row": 86, "column": 34}, "end_point": {"row": 86, "column": 35}}, {"id": 429, "type": "binary_expression", "text": "buf_size - 1", "parent": 426, "children": [430, 431, 432], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 49}}, {"id": 430, "type": "identifier", "text": "buf_size", "parent": 429, "children": [], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 45}}, {"id": 431, "type": "-", "text": "-", "parent": 429, "children": [], "start_point": {"row": 86, "column": 46}, "end_point": {"row": 86, "column": 47}}, {"id": 432, "type": "number_literal", "text": "1", "parent": 429, "children": [], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 49}}, {"id": 433, "type": "identifier", "text": "stdout", "parent": 426, "children": [], "start_point": {"row": 86, "column": 51}, "end_point": {"row": 86, "column": 57}}, {"id": 434, "type": "assignment_expression", "text": "buf[read] = '\\0'", "parent": 418, "children": [435, 438, 439], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 28}}, {"id": 435, "type": "subscript_expression", "text": "buf[read]", "parent": 434, "children": [436, 437], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 21}}, {"id": 436, "type": "identifier", "text": "buf", "parent": 435, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 15}}, {"id": 437, "type": "identifier", "text": "read", "parent": 435, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 20}}, {"id": 438, "type": "=", "text": "=", "parent": 434, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 23}}, {"id": 439, "type": "char_literal", "text": "'\\0'", "parent": 434, "children": [440, 441, 442], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 28}}, {"id": 440, "type": "'", "text": "'", "parent": 439, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 25}}, {"id": 441, "type": "escape_sequence", "text": "\\0", "parent": 439, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 27}}, {"id": 442, "type": "'", "text": "'", "parent": 439, "children": [], "start_point": {"row": 87, "column": 27}, "end_point": {"row": 87, "column": 28}}, {"id": 443, "type": "call_expression", "text": "str_append(text_buf, buf)", "parent": 418, "children": [444, 445], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 37}}, {"id": 444, "type": "identifier", "text": "str_append", "parent": 443, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 22}}, {"id": 445, "type": "argument_list", "text": "(text_buf, buf)", "parent": 443, "children": [446, 447], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 37}}, {"id": 446, "type": "identifier", "text": "text_buf", "parent": 445, "children": [], "start_point": {"row": 88, "column": 23}, "end_point": {"row": 88, "column": 31}}, {"id": 447, "type": "identifier", "text": "buf", "parent": 445, "children": [], "start_point": {"row": 88, "column": 33}, "end_point": {"row": 88, "column": 36}}, {"id": 448, "type": "assignment_expression", "text": "needs_redrawing = true", "parent": 418, "children": [449, 450, 451], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 34}}, {"id": 449, "type": "identifier", "text": "needs_redrawing", "parent": 448, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 27}}, {"id": 450, "type": "=", "text": "=", "parent": 448, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 29}}, {"id": 451, "type": "true", "text": "true", "parent": 448, "children": [], "start_point": {"row": 89, "column": 30}, "end_point": {"row": 89, "column": 34}}, {"id": 452, "type": "assignment_expression", "text": "anything_read = true", "parent": 418, "children": [453, 454, 455], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 32}}, {"id": 453, "type": "identifier", "text": "anything_read", "parent": 452, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 25}}, {"id": 454, "type": "=", "text": "=", "parent": 452, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 27}}, {"id": 455, "type": "true", "text": "true", "parent": 452, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 32}}, {"id": 456, "type": "if_statement", "text": "if (anything_read) {\n str_append(text_buf, prompt);\n }", "parent": 284, "children": [457], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 457, "type": "parenthesized_expression", "text": "(anything_read)", "parent": 456, "children": [458], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 26}}, {"id": 458, "type": "identifier", "text": "anything_read", "parent": 457, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 25}}, {"id": 459, "type": "call_expression", "text": "str_append(text_buf, prompt)", "parent": 456, "children": [460, 461], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 40}}, {"id": 460, "type": "identifier", "text": "str_append", "parent": 459, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 22}}, {"id": 461, "type": "argument_list", "text": "(text_buf, prompt)", "parent": 459, "children": [462, 463], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 40}}, {"id": 462, "type": "identifier", "text": "text_buf", "parent": 461, "children": [], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 31}}, {"id": 463, "type": "identifier", "text": "prompt", "parent": 461, "children": [], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 94, "column": 39}}, {"id": 464, "type": "if_statement", "text": "if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf(\"\\n\");\n input_buf->buf[0] = '\\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = \"\\0\\0\";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }", "parent": 284, "children": [465], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 123, "column": 9}}, {"id": 465, "type": "parenthesized_expression", "text": "(event.type == WM_EVENT_KBD && event.kbd.pressed)", "parent": 464, "children": [466], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 60}}, {"id": 466, "type": "binary_expression", "text": "event.type == WM_EVENT_KBD && event.kbd.pressed", "parent": 465, "children": [467, 473, 474], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 59}}, {"id": 467, "type": "binary_expression", "text": "event.type == WM_EVENT_KBD", "parent": 466, "children": [468, 471, 472], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 38}}, {"id": 468, "type": "field_expression", "text": "event.type", "parent": 467, "children": [469, 470], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 22}}, {"id": 469, "type": "identifier", "text": "event", "parent": 468, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 17}}, {"id": 470, "type": "field_identifier", "text": "type", "parent": 468, "children": [], "start_point": {"row": 97, "column": 18}, "end_point": {"row": 97, "column": 22}}, {"id": 471, "type": "==", "text": "==", "parent": 467, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 25}}, {"id": 472, "type": "identifier", "text": "WM_EVENT_KBD", "parent": 467, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 38}}, {"id": 473, "type": "&&", "text": "&&", "parent": 466, "children": [], "start_point": {"row": 97, "column": 39}, "end_point": {"row": 97, "column": 41}}, {"id": 474, "type": "field_expression", "text": "event.kbd.pressed", "parent": 466, "children": [475, 478], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 59}}, {"id": 475, "type": "field_expression", "text": "event.kbd", "parent": 474, "children": [476, 477], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 51}}, {"id": 476, "type": "identifier", "text": "event", "parent": 475, "children": [], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 47}}, {"id": 477, "type": "field_identifier", "text": "kbd", "parent": 475, "children": [], "start_point": {"row": 97, "column": 48}, "end_point": {"row": 97, "column": 51}}, {"id": 478, "type": "field_identifier", "text": "pressed", "parent": 474, "children": [], "start_point": {"row": 97, "column": 52}, "end_point": {"row": 97, "column": 59}}, {"id": 479, "type": "assignment_expression", "text": "needs_redrawing = true", "parent": 464, "children": [480, 481, 482], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 34}}, {"id": 480, "type": "identifier", "text": "needs_redrawing", "parent": 479, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 27}}, {"id": 481, "type": "=", "text": "=", "parent": 479, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 29}}, {"id": 482, "type": "true", "text": "true", "parent": 479, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 34}}, {"id": 483, "type": "switch_statement", "text": "switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf(\"\\n\");\n input_buf->buf[0] = '\\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = \"\\0\\0\";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }", "parent": 464, "children": [484, 485], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 122, "column": 13}}, {"id": 484, "type": "switch", "text": "switch", "parent": 483, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 18}}, {"id": 485, "type": "parenthesized_expression", "text": "(key.keycode)", "parent": 483, "children": [486], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 32}}, {"id": 486, "type": "field_expression", "text": "key.keycode", "parent": 485, "children": [487, 488], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 31}}, {"id": 487, "type": "identifier", "text": "key", "parent": 486, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 23}}, {"id": 488, "type": "field_identifier", "text": "keycode", "parent": 486, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 31}}, {"id": 489, "type": "case_statement", "text": "case KBD_ENTER:", "parent": 483, "children": [490, 491], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 27}}, {"id": 490, "type": "case", "text": "case", "parent": 489, "children": [], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 16}}, {"id": 491, "type": "identifier", "text": "KBD_ENTER", "parent": 489, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 26}}, {"id": 492, "type": "case_statement", "text": "case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf(\"\\n\");\n input_buf->buf[0] = '\\0';\n input_buf->len = 0;\n break;", "parent": 483, "children": [493, 494, 529], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 108, "column": 22}}, {"id": 493, "type": "case", "text": "case", "parent": 492, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 16}}, {"id": 494, "type": "identifier", "text": "KBD_KP_ENTER", "parent": 492, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 29}}, {"id": 495, "type": "call_expression", "text": "str_append(text_buf, input_buf->buf)", "parent": 492, "children": [496, 497], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 52}}, {"id": 496, "type": "identifier", "text": "str_append", "parent": 495, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 26}}, {"id": 497, "type": "argument_list", "text": "(text_buf, input_buf->buf)", "parent": 495, "children": [498, 499], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 52}}, {"id": 498, "type": "identifier", "text": "text_buf", "parent": 497, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 35}}, {"id": 499, "type": "field_expression", "text": "input_buf->buf", "parent": 497, "children": [500, 501], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 51}}, {"id": 500, "type": "identifier", "text": "input_buf", "parent": 499, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 46}}, {"id": 501, "type": "field_identifier", "text": "buf", "parent": 499, "children": [], "start_point": {"row": 103, "column": 48}, "end_point": {"row": 103, "column": 51}}, {"id": 502, "type": "call_expression", "text": "interpret_cmd(text_buf, input_buf)", "parent": 492, "children": [503, 504], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 50}}, {"id": 503, "type": "identifier", "text": "interpret_cmd", "parent": 502, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 29}}, {"id": 504, "type": "argument_list", "text": "(text_buf, input_buf)", "parent": 502, "children": [505, 506], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 50}}, {"id": 505, "type": "identifier", "text": "text_buf", "parent": 504, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 38}}, {"id": 506, "type": "identifier", "text": "input_buf", "parent": 504, "children": [], "start_point": {"row": 104, "column": 40}, "end_point": {"row": 104, "column": 49}}, {"id": 507, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 492, "children": [508, 509], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 28}}, {"id": 508, "type": "identifier", "text": "printf", "parent": 507, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 22}}, {"id": 509, "type": "argument_list", "text": "(\"\\n\")", "parent": 507, "children": [510], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 28}}, {"id": 510, "type": "string_literal", "text": "\"\\n\"", "parent": 509, "children": [511], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 27}}, {"id": 511, "type": "escape_sequence", "text": "\\n", "parent": 510, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 26}}, {"id": 512, "type": "assignment_expression", "text": "input_buf->buf[0] = '\\0'", "parent": 492, "children": [513, 518, 519], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 40}}, {"id": 513, "type": "subscript_expression", "text": "input_buf->buf[0]", "parent": 512, "children": [514, 517], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 33}}, {"id": 514, "type": "field_expression", "text": "input_buf->buf", "parent": 513, "children": [515, 516], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 30}}, {"id": 515, "type": "identifier", "text": "input_buf", "parent": 514, "children": [], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 25}}, {"id": 516, "type": "field_identifier", "text": "buf", "parent": 514, "children": [], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 30}}, {"id": 517, "type": "number_literal", "text": "0", "parent": 513, "children": [], "start_point": {"row": 106, "column": 31}, "end_point": {"row": 106, "column": 32}}, {"id": 518, "type": "=", "text": "=", "parent": 512, "children": [], "start_point": {"row": 106, "column": 34}, "end_point": {"row": 106, "column": 35}}, {"id": 519, "type": "char_literal", "text": "'\\0'", "parent": 512, "children": [520, 521, 522], "start_point": {"row": 106, "column": 36}, "end_point": {"row": 106, "column": 40}}, {"id": 520, "type": "'", "text": "'", "parent": 519, "children": [], "start_point": {"row": 106, "column": 36}, "end_point": {"row": 106, "column": 37}}, {"id": 521, "type": "escape_sequence", "text": "\\0", "parent": 519, "children": [], "start_point": {"row": 106, "column": 37}, "end_point": {"row": 106, "column": 39}}, {"id": 522, "type": "'", "text": "'", "parent": 519, "children": [], "start_point": {"row": 106, "column": 39}, "end_point": {"row": 106, "column": 40}}, {"id": 523, "type": "assignment_expression", "text": "input_buf->len = 0", "parent": 492, "children": [524, 527, 528], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 34}}, {"id": 524, "type": "field_expression", "text": "input_buf->len", "parent": 523, "children": [525, 526], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 30}}, {"id": 525, "type": "identifier", "text": "input_buf", "parent": 524, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 25}}, {"id": 526, "type": "field_identifier", "text": "len", "parent": 524, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 30}}, {"id": 527, "type": "=", "text": "=", "parent": 523, "children": [], "start_point": {"row": 107, "column": 31}, "end_point": {"row": 107, "column": 32}}, {"id": 528, "type": "number_literal", "text": "0", "parent": 523, "children": [], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 34}}, {"id": 529, "type": "break_statement", "text": "break;", "parent": 492, "children": [530], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 22}}, {"id": 530, "type": "break", "text": "break", "parent": 529, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 21}}, {"id": 531, "type": "case_statement", "text": "case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\\0';\n input_buf->len -= 1;\n }\n break;", "parent": 483, "children": [532, 533, 534, 561], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 114, "column": 22}}, {"id": 532, "type": "case", "text": "case", "parent": 531, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 16}}, {"id": 533, "type": "identifier", "text": "KBD_BACKSPACE", "parent": 531, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 30}}, {"id": 534, "type": "if_statement", "text": "if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\\0';\n input_buf->len -= 1;\n }", "parent": 531, "children": [535], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 113, "column": 17}}, {"id": 535, "type": "parenthesized_expression", "text": "(input_buf->len)", "parent": 534, "children": [536], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 35}}, {"id": 536, "type": "field_expression", "text": "input_buf->len", "parent": 535, "children": [537, 538], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 34}}, {"id": 537, "type": "identifier", "text": "input_buf", "parent": 536, "children": [], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 29}}, {"id": 538, "type": "field_identifier", "text": "len", "parent": 536, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 34}}, {"id": 539, "type": "assignment_expression", "text": "input_buf->buf[input_buf->len - 1] = '\\0'", "parent": 534, "children": [540, 550, 551], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 61}}, {"id": 540, "type": "subscript_expression", "text": "input_buf->buf[input_buf->len - 1]", "parent": 539, "children": [541, 544], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 54}}, {"id": 541, "type": "field_expression", "text": "input_buf->buf", "parent": 540, "children": [542, 543], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 34}}, {"id": 542, "type": "identifier", "text": "input_buf", "parent": 541, "children": [], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 29}}, {"id": 543, "type": "field_identifier", "text": "buf", "parent": 541, "children": [], "start_point": {"row": 111, "column": 31}, "end_point": {"row": 111, "column": 34}}, {"id": 544, "type": "binary_expression", "text": "input_buf->len - 1", "parent": 540, "children": [545, 548, 549], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 53}}, {"id": 545, "type": "field_expression", "text": "input_buf->len", "parent": 544, "children": [546, 547], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 49}}, {"id": 546, "type": "identifier", "text": "input_buf", "parent": 545, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 44}}, {"id": 547, "type": "field_identifier", "text": "len", "parent": 545, "children": [], "start_point": {"row": 111, "column": 46}, "end_point": {"row": 111, "column": 49}}, {"id": 548, "type": "-", "text": "-", "parent": 544, "children": [], "start_point": {"row": 111, "column": 50}, "end_point": {"row": 111, "column": 51}}, {"id": 549, "type": "number_literal", "text": "1", "parent": 544, "children": [], "start_point": {"row": 111, "column": 52}, "end_point": {"row": 111, "column": 53}}, {"id": 550, "type": "=", "text": "=", "parent": 539, "children": [], "start_point": {"row": 111, "column": 55}, "end_point": {"row": 111, "column": 56}}, {"id": 551, "type": "char_literal", "text": "'\\0'", "parent": 539, "children": [552, 553, 554], "start_point": {"row": 111, "column": 57}, "end_point": {"row": 111, "column": 61}}, {"id": 552, "type": "'", "text": "'", "parent": 551, "children": [], "start_point": {"row": 111, "column": 57}, "end_point": {"row": 111, "column": 58}}, {"id": 553, "type": "escape_sequence", "text": "\\0", "parent": 551, "children": [], "start_point": {"row": 111, "column": 58}, "end_point": {"row": 111, "column": 60}}, {"id": 554, "type": "'", "text": "'", "parent": 551, "children": [], "start_point": {"row": 111, "column": 60}, "end_point": {"row": 111, "column": 61}}, {"id": 555, "type": "assignment_expression", "text": "input_buf->len -= 1", "parent": 534, "children": [556, 559, 560], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 39}}, {"id": 556, "type": "field_expression", "text": "input_buf->len", "parent": 555, "children": [557, 558], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 34}}, {"id": 557, "type": "identifier", "text": "input_buf", "parent": 556, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 29}}, {"id": 558, "type": "field_identifier", "text": "len", "parent": 556, "children": [], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 34}}, {"id": 559, "type": "-=", "text": "-=", "parent": 555, "children": [], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 37}}, {"id": 560, "type": "number_literal", "text": "1", "parent": 555, "children": [], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 39}}, {"id": 561, "type": "break_statement", "text": "break;", "parent": 531, "children": [562], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 22}}, {"id": 562, "type": "break", "text": "break", "parent": 561, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 21}}, {"id": 563, "type": "case_statement", "text": "default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = \"\\0\\0\";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;", "parent": 483, "children": [564, 565, 596], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 121, "column": 22}}, {"id": 564, "type": "default", "text": "default", "parent": 563, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 19}}, {"id": 565, "type": "if_statement", "text": "if (key.keycode < KBD_KP_ENTER) {\n char str[2] = \"\\0\\0\";\n str[0] = key.repr;\n str_append(input_buf, str);\n }", "parent": 563, "children": [566], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 120, "column": 17}}, {"id": 566, "type": "parenthesized_expression", "text": "(key.keycode < KBD_KP_ENTER)", "parent": 565, "children": [567], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 47}}, {"id": 567, "type": "binary_expression", "text": "key.keycode < KBD_KP_ENTER", "parent": 566, "children": [568, 571, 572], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 46}}, {"id": 568, "type": "field_expression", "text": "key.keycode", "parent": 567, "children": [569, 570], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 31}}, {"id": 569, "type": "identifier", "text": "key", "parent": 568, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 23}}, {"id": 570, "type": "field_identifier", "text": "keycode", "parent": 568, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 31}}, {"id": 571, "type": "<", "text": "<", "parent": 567, "children": [], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 33}}, {"id": 572, "type": "identifier", "text": "KBD_KP_ENTER", "parent": 567, "children": [], "start_point": {"row": 116, "column": 34}, "end_point": {"row": 116, "column": 46}}, {"id": 573, "type": "declaration", "text": "char str[2] = \"\\0\\0\";", "parent": 565, "children": [574, 575], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 41}}, {"id": 574, "type": "primitive_type", "text": "char", "parent": 573, "children": [], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 24}}, {"id": 575, "type": "init_declarator", "text": "str[2] = \"\\0\\0\"", "parent": 573, "children": [576, 579, 580], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 40}}, {"id": 576, "type": "array_declarator", "text": "str[2]", "parent": 575, "children": [577, 578], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 31}}, {"id": 577, "type": "identifier", "text": "str", "parent": 576, "children": [], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 28}}, {"id": 578, "type": "number_literal", "text": "2", "parent": 576, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 30}}, {"id": 579, "type": "=", "text": "=", "parent": 575, "children": [], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 33}}, {"id": 580, "type": "string_literal", "text": "\"\\0\\0\"", "parent": 575, "children": [581, 582], "start_point": {"row": 117, "column": 34}, "end_point": {"row": 117, "column": 40}}, {"id": 581, "type": "escape_sequence", "text": "\\0", "parent": 580, "children": [], "start_point": {"row": 117, "column": 35}, "end_point": {"row": 117, "column": 37}}, {"id": 582, "type": "escape_sequence", "text": "\\0", "parent": 580, "children": [], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 39}}, {"id": 583, "type": "assignment_expression", "text": "str[0] = key.repr", "parent": 565, "children": [584, 587, 588], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 37}}, {"id": 584, "type": "subscript_expression", "text": "str[0]", "parent": 583, "children": [585, 586], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 26}}, {"id": 585, "type": "identifier", "text": "str", "parent": 584, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 23}}, {"id": 586, "type": "number_literal", "text": "0", "parent": 584, "children": [], "start_point": {"row": 118, "column": 24}, "end_point": {"row": 118, "column": 25}}, {"id": 587, "type": "=", "text": "=", "parent": 583, "children": [], "start_point": {"row": 118, "column": 27}, "end_point": {"row": 118, "column": 28}}, {"id": 588, "type": "field_expression", "text": "key.repr", "parent": 583, "children": [589, 590], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 37}}, {"id": 589, "type": "identifier", "text": "key", "parent": 588, "children": [], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 32}}, {"id": 590, "type": "field_identifier", "text": "repr", "parent": 588, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 37}}, {"id": 591, "type": "call_expression", "text": "str_append(input_buf, str)", "parent": 565, "children": [592, 593], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 46}}, {"id": 592, "type": "identifier", "text": "str_append", "parent": 591, "children": [], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 30}}, {"id": 593, "type": "argument_list", "text": "(input_buf, str)", "parent": 591, "children": [594, 595], "start_point": {"row": 119, "column": 30}, "end_point": {"row": 119, "column": 46}}, {"id": 594, "type": "identifier", "text": "input_buf", "parent": 593, "children": [], "start_point": {"row": 119, "column": 31}, "end_point": {"row": 119, "column": 40}}, {"id": 595, "type": "identifier", "text": "str", "parent": 593, "children": [], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 45}}, {"id": 596, "type": "break_statement", "text": "break;", "parent": 563, "children": [597], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 22}}, {"id": 597, "type": "break", "text": "break", "parent": 596, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 21}}, {"id": 598, "type": "if_statement", "text": "if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }", "parent": 284, "children": [599], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 127, "column": 9}}, {"id": 599, "type": "parenthesized_expression", "text": "(needs_redrawing)", "parent": 598, "children": [600], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 28}}, {"id": 600, "type": "identifier", "text": "needs_redrawing", "parent": 599, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 27}}, {"id": 601, "type": "call_expression", "text": "redraw(text_buf, input_buf)", "parent": 598, "children": [602, 603], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 39}}, {"id": 602, "type": "identifier", "text": "redraw", "parent": 601, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 18}}, {"id": 603, "type": "argument_list", "text": "(text_buf, input_buf)", "parent": 601, "children": [604, 605], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 39}}, {"id": 604, "type": "identifier", "text": "text_buf", "parent": 603, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 27}}, {"id": 605, "type": "identifier", "text": "input_buf", "parent": 603, "children": [], "start_point": {"row": 126, "column": 29}, "end_point": {"row": 126, "column": 38}}, {"id": 606, "type": "call_expression", "text": "str_free(text_buf)", "parent": 228, "children": [607, 608], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 22}}, {"id": 607, "type": "identifier", "text": "str_free", "parent": 606, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 12}}, {"id": 608, "type": "argument_list", "text": "(text_buf)", "parent": 606, "children": [609], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 22}}, {"id": 609, "type": "identifier", "text": "text_buf", "parent": 608, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 21}}, {"id": 610, "type": "call_expression", "text": "str_free(input_buf)", "parent": 228, "children": [611, 612], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 23}}, {"id": 611, "type": "identifier", "text": "str_free", "parent": 610, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 12}}, {"id": 612, "type": "argument_list", "text": "(input_buf)", "parent": 610, "children": [613], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 23}}, {"id": 613, "type": "identifier", "text": "input_buf", "parent": 612, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 22}}, {"id": 614, "type": "call_expression", "text": "snow_close_window(win)", "parent": 228, "children": [615, 616], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 26}}, {"id": 615, "type": "identifier", "text": "snow_close_window", "parent": 614, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 21}}, {"id": 616, "type": "argument_list", "text": "(win)", "parent": 614, "children": [617], "start_point": {"row": 133, "column": 21}, "end_point": {"row": 133, "column": 26}}, {"id": 617, "type": "identifier", "text": "win", "parent": 616, "children": [], "start_point": {"row": 133, "column": 22}, "end_point": {"row": 133, "column": 25}}, {"id": 618, "type": "return_statement", "text": "return 0;", "parent": 228, "children": [619], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 13}}, {"id": 619, "type": "number_literal", "text": "0", "parent": 618, "children": [], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 12}}, {"id": 620, "type": "function_definition", "text": "void redraw(str_t* text_buf, const str_t* input_buf) {\n /* Window decorations */\n\n // background\n snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535);\n // title bar\n snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221);\n snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000);\n snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF);\n // border of the whole window\n snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555);\n\n /* Text content */\n\n uint32_t y = 22; // below title bar\n\n // Temporarily concatenate the input and a cursor\n str_append(text_buf, input_buf->buf);\n\n if (cursor) {\n str_append(text_buf, \"_\");\n }\n\n char line_buf[max_col + 1];\n char* text_view = text_buf->buf;\n uint32_t n_lines = count_lines(text_buf);\n\n // Scroll the buffer as needed\n if (n_lines > max_line) {\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }\n\n // Draw line by line, wrapping text\n while (text_view < &text_buf->buf[text_buf->len]) {\n char* lf = strchrnul(text_view, '\\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }\n\n // De-concatenate\n text_buf->buf[text_buf->len - input_buf->len] = '\\0';\n text_buf->len -= input_buf->len;\n\n if (cursor) {\n text_buf->buf[text_buf->len - 1] = '\\0';\n text_buf->len -= 1;\n }\n\n // Update the window\n snow_render_window(win);\n}", "parent": null, "children": [621, 622], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 203, "column": 1}}, {"id": 621, "type": "primitive_type", "text": "void", "parent": 620, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 4}}, {"id": 622, "type": "function_declarator", "text": "redraw(str_t* text_buf, const str_t* input_buf)", "parent": 620, "children": [623, 624], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 52}}, {"id": 623, "type": "identifier", "text": "redraw", "parent": 622, "children": [], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 11}}, {"id": 624, "type": "parameter_list", "text": "(str_t* text_buf, const str_t* input_buf)", "parent": 622, "children": [625, 630], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 52}}, {"id": 625, "type": "parameter_declaration", "text": "str_t* text_buf", "parent": 624, "children": [626, 627], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 27}}, {"id": 626, "type": "type_identifier", "text": "str_t", "parent": 625, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 17}}, {"id": 627, "type": "pointer_declarator", "text": "* text_buf", "parent": 625, "children": [628, 629], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 27}}, {"id": 628, "type": "*", "text": "*", "parent": 627, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 18}}, {"id": 629, "type": "identifier", "text": "text_buf", "parent": 627, "children": [], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 27}}, {"id": 630, "type": "parameter_declaration", "text": "const str_t* input_buf", "parent": 624, "children": [631, 632], "start_point": {"row": 138, "column": 29}, "end_point": {"row": 138, "column": 51}}, {"id": 631, "type": "type_identifier", "text": "str_t", "parent": 630, "children": [], "start_point": {"row": 138, "column": 35}, "end_point": {"row": 138, "column": 40}}, {"id": 632, "type": "pointer_declarator", "text": "* input_buf", "parent": 630, "children": [633, 634], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 51}}, {"id": 633, "type": "*", "text": "*", "parent": 632, "children": [], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 41}}, {"id": 634, "type": "identifier", "text": "input_buf", "parent": 632, "children": [], "start_point": {"row": 138, "column": 42}, "end_point": {"row": 138, "column": 51}}, {"id": 635, "type": "call_expression", "text": "snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535)", "parent": 620, "children": [636, 637], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 70}}, {"id": 636, "type": "identifier", "text": "snow_draw_rect", "parent": 635, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 18}}, {"id": 637, "type": "argument_list", "text": "(win->fb, 0, 0, win->width, win->height, 0x00353535)", "parent": 635, "children": [638, 641, 642, 643, 646, 649], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 70}}, {"id": 638, "type": "field_expression", "text": "win->fb", "parent": 637, "children": [639, 640], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 26}}, {"id": 639, "type": "identifier", "text": "win", "parent": 638, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 22}}, {"id": 640, "type": "field_identifier", "text": "fb", "parent": 638, "children": [], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 26}}, {"id": 641, "type": "number_literal", "text": "0", "parent": 637, "children": [], "start_point": {"row": 142, "column": 28}, "end_point": {"row": 142, "column": 29}}, {"id": 642, "type": "number_literal", "text": "0", "parent": 637, "children": [], "start_point": {"row": 142, "column": 31}, "end_point": {"row": 142, "column": 32}}, {"id": 643, "type": "field_expression", "text": "win->width", "parent": 637, "children": [644, 645], "start_point": {"row": 142, "column": 34}, "end_point": {"row": 142, "column": 44}}, {"id": 644, "type": "identifier", "text": "win", "parent": 643, "children": [], "start_point": {"row": 142, "column": 34}, "end_point": {"row": 142, "column": 37}}, {"id": 645, "type": "field_identifier", "text": "width", "parent": 643, "children": [], "start_point": {"row": 142, "column": 39}, "end_point": {"row": 142, "column": 44}}, {"id": 646, "type": "field_expression", "text": "win->height", "parent": 637, "children": [647, 648], "start_point": {"row": 142, "column": 46}, "end_point": {"row": 142, "column": 57}}, {"id": 647, "type": "identifier", "text": "win", "parent": 646, "children": [], "start_point": {"row": 142, "column": 46}, "end_point": {"row": 142, "column": 49}}, {"id": 648, "type": "field_identifier", "text": "height", "parent": 646, "children": [], "start_point": {"row": 142, "column": 51}, "end_point": {"row": 142, "column": 57}}, {"id": 649, "type": "number_literal", "text": "0x00353535", "parent": 637, "children": [], "start_point": {"row": 142, "column": 59}, "end_point": {"row": 142, "column": 69}}, {"id": 650, "type": "call_expression", "text": "snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221)", "parent": 620, "children": [651, 652], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 61}}, {"id": 651, "type": "identifier", "text": "snow_draw_rect", "parent": 650, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 18}}, {"id": 652, "type": "argument_list", "text": "(win->fb, 0, 0, win->width, 20, 0x00222221)", "parent": 650, "children": [653, 656, 657, 658, 661, 662], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 61}}, {"id": 653, "type": "field_expression", "text": "win->fb", "parent": 652, "children": [654, 655], "start_point": {"row": 144, "column": 19}, "end_point": {"row": 144, "column": 26}}, {"id": 654, "type": "identifier", "text": "win", "parent": 653, "children": [], "start_point": {"row": 144, "column": 19}, "end_point": {"row": 144, "column": 22}}, {"id": 655, "type": "field_identifier", "text": "fb", "parent": 653, "children": [], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 26}}, {"id": 656, "type": "number_literal", "text": "0", "parent": 652, "children": [], "start_point": {"row": 144, "column": 28}, "end_point": {"row": 144, "column": 29}}, {"id": 657, "type": "number_literal", "text": "0", "parent": 652, "children": [], "start_point": {"row": 144, "column": 31}, "end_point": {"row": 144, "column": 32}}, {"id": 658, "type": "field_expression", "text": "win->width", "parent": 652, "children": [659, 660], "start_point": {"row": 144, "column": 34}, "end_point": {"row": 144, "column": 44}}, {"id": 659, "type": "identifier", "text": "win", "parent": 658, "children": [], "start_point": {"row": 144, "column": 34}, "end_point": {"row": 144, "column": 37}}, {"id": 660, "type": "field_identifier", "text": "width", "parent": 658, "children": [], "start_point": {"row": 144, "column": 39}, "end_point": {"row": 144, "column": 44}}, {"id": 661, "type": "number_literal", "text": "20", "parent": 652, "children": [], "start_point": {"row": 144, "column": 46}, "end_point": {"row": 144, "column": 48}}, {"id": 662, "type": "number_literal", "text": "0x00222221", "parent": 652, "children": [], "start_point": {"row": 144, "column": 50}, "end_point": {"row": 144, "column": 60}}, {"id": 663, "type": "call_expression", "text": "snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000)", "parent": 620, "children": [664, 665], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 63}}, {"id": 664, "type": "identifier", "text": "snow_draw_border", "parent": 663, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 20}}, {"id": 665, "type": "argument_list", "text": "(win->fb, 0, 0, win->width, 20, 0x00000000)", "parent": 663, "children": [666, 669, 670, 671, 674, 675], "start_point": {"row": 145, "column": 20}, "end_point": {"row": 145, "column": 63}}, {"id": 666, "type": "field_expression", "text": "win->fb", "parent": 665, "children": [667, 668], "start_point": {"row": 145, "column": 21}, "end_point": {"row": 145, "column": 28}}, {"id": 667, "type": "identifier", "text": "win", "parent": 666, "children": [], "start_point": {"row": 145, "column": 21}, "end_point": {"row": 145, "column": 24}}, {"id": 668, "type": "field_identifier", "text": "fb", "parent": 666, "children": [], "start_point": {"row": 145, "column": 26}, "end_point": {"row": 145, "column": 28}}, {"id": 669, "type": "number_literal", "text": "0", "parent": 665, "children": [], "start_point": {"row": 145, "column": 30}, "end_point": {"row": 145, "column": 31}}, {"id": 670, "type": "number_literal", "text": "0", "parent": 665, "children": [], "start_point": {"row": 145, "column": 33}, "end_point": {"row": 145, "column": 34}}, {"id": 671, "type": "field_expression", "text": "win->width", "parent": 665, "children": [672, 673], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 46}}, {"id": 672, "type": "identifier", "text": "win", "parent": 671, "children": [], "start_point": {"row": 145, "column": 36}, "end_point": {"row": 145, "column": 39}}, {"id": 673, "type": "field_identifier", "text": "width", "parent": 671, "children": [], "start_point": {"row": 145, "column": 41}, "end_point": {"row": 145, "column": 46}}, {"id": 674, "type": "number_literal", "text": "20", "parent": 665, "children": [], "start_point": {"row": 145, "column": 48}, "end_point": {"row": 145, "column": 50}}, {"id": 675, "type": "number_literal", "text": "0x00000000", "parent": 665, "children": [], "start_point": {"row": 145, "column": 52}, "end_point": {"row": 145, "column": 62}}, {"id": 676, "type": "call_expression", "text": "snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF)", "parent": 620, "children": [677, 678], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 59}}, {"id": 677, "type": "identifier", "text": "snow_draw_string", "parent": 676, "children": [], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 20}}, {"id": 678, "type": "argument_list", "text": "(win->fb, win->title, 4, 3, 0x00FFFFFF)", "parent": 676, "children": [679, 682, 685, 686, 687], "start_point": {"row": 146, "column": 20}, "end_point": {"row": 146, "column": 59}}, {"id": 679, "type": "field_expression", "text": "win->fb", "parent": 678, "children": [680, 681], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 28}}, {"id": 680, "type": "identifier", "text": "win", "parent": 679, "children": [], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 24}}, {"id": 681, "type": "field_identifier", "text": "fb", "parent": 679, "children": [], "start_point": {"row": 146, "column": 26}, "end_point": {"row": 146, "column": 28}}, {"id": 682, "type": "field_expression", "text": "win->title", "parent": 678, "children": [683, 684], "start_point": {"row": 146, "column": 30}, "end_point": {"row": 146, "column": 40}}, {"id": 683, "type": "identifier", "text": "win", "parent": 682, "children": [], "start_point": {"row": 146, "column": 30}, "end_point": {"row": 146, "column": 33}}, {"id": 684, "type": "field_identifier", "text": "title", "parent": 682, "children": [], "start_point": {"row": 146, "column": 35}, "end_point": {"row": 146, "column": 40}}, {"id": 685, "type": "number_literal", "text": "4", "parent": 678, "children": [], "start_point": {"row": 146, "column": 42}, "end_point": {"row": 146, "column": 43}}, {"id": 686, "type": "number_literal", "text": "3", "parent": 678, "children": [], "start_point": {"row": 146, "column": 45}, "end_point": {"row": 146, "column": 46}}, {"id": 687, "type": "number_literal", "text": "0x00FFFFFF", "parent": 678, "children": [], "start_point": {"row": 146, "column": 48}, "end_point": {"row": 146, "column": 58}}, {"id": 688, "type": "call_expression", "text": "snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555)", "parent": 620, "children": [689, 690], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 72}}, {"id": 689, "type": "identifier", "text": "snow_draw_border", "parent": 688, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 20}}, {"id": 690, "type": "argument_list", "text": "(win->fb, 0, 0, win->width, win->height, 0x00555555)", "parent": 688, "children": [691, 694, 695, 696, 699, 702], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 72}}, {"id": 691, "type": "field_expression", "text": "win->fb", "parent": 690, "children": [692, 693], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 28}}, {"id": 692, "type": "identifier", "text": "win", "parent": 691, "children": [], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 24}}, {"id": 693, "type": "field_identifier", "text": "fb", "parent": 691, "children": [], "start_point": {"row": 148, "column": 26}, "end_point": {"row": 148, "column": 28}}, {"id": 694, "type": "number_literal", "text": "0", "parent": 690, "children": [], "start_point": {"row": 148, "column": 30}, "end_point": {"row": 148, "column": 31}}, {"id": 695, "type": "number_literal", "text": "0", "parent": 690, "children": [], "start_point": {"row": 148, "column": 33}, "end_point": {"row": 148, "column": 34}}, {"id": 696, "type": "field_expression", "text": "win->width", "parent": 690, "children": [697, 698], "start_point": {"row": 148, "column": 36}, "end_point": {"row": 148, "column": 46}}, {"id": 697, "type": "identifier", "text": "win", "parent": 696, "children": [], "start_point": {"row": 148, "column": 36}, "end_point": {"row": 148, "column": 39}}, {"id": 698, "type": "field_identifier", "text": "width", "parent": 696, "children": [], "start_point": {"row": 148, "column": 41}, "end_point": {"row": 148, "column": 46}}, {"id": 699, "type": "field_expression", "text": "win->height", "parent": 690, "children": [700, 701], "start_point": {"row": 148, "column": 48}, "end_point": {"row": 148, "column": 59}}, {"id": 700, "type": "identifier", "text": "win", "parent": 699, "children": [], "start_point": {"row": 148, "column": 48}, "end_point": {"row": 148, "column": 51}}, {"id": 701, "type": "field_identifier", "text": "height", "parent": 699, "children": [], "start_point": {"row": 148, "column": 53}, "end_point": {"row": 148, "column": 59}}, {"id": 702, "type": "number_literal", "text": "0x00555555", "parent": 690, "children": [], "start_point": {"row": 148, "column": 61}, "end_point": {"row": 148, "column": 71}}, {"id": 703, "type": "declaration", "text": "uint32_t y = 22;", "parent": 620, "children": [704, 705], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 20}}, {"id": 704, "type": "primitive_type", "text": "uint32_t", "parent": 703, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 12}}, {"id": 705, "type": "init_declarator", "text": "y = 22", "parent": 703, "children": [706, 707, 708], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 19}}, {"id": 706, "type": "identifier", "text": "y", "parent": 705, "children": [], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 14}}, {"id": 707, "type": "=", "text": "=", "parent": 705, "children": [], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 16}}, {"id": 708, "type": "number_literal", "text": "22", "parent": 705, "children": [], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 19}}, {"id": 709, "type": "call_expression", "text": "str_append(text_buf, input_buf->buf)", "parent": 620, "children": [710, 711], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 40}}, {"id": 710, "type": "identifier", "text": "str_append", "parent": 709, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 14}}, {"id": 711, "type": "argument_list", "text": "(text_buf, input_buf->buf)", "parent": 709, "children": [712, 713], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 40}}, {"id": 712, "type": "identifier", "text": "text_buf", "parent": 711, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 23}}, {"id": 713, "type": "field_expression", "text": "input_buf->buf", "parent": 711, "children": [714, 715], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 39}}, {"id": 714, "type": "identifier", "text": "input_buf", "parent": 713, "children": [], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 34}}, {"id": 715, "type": "field_identifier", "text": "buf", "parent": 713, "children": [], "start_point": {"row": 155, "column": 36}, "end_point": {"row": 155, "column": 39}}, {"id": 716, "type": "if_statement", "text": "if (cursor) {\n str_append(text_buf, \"_\");\n }", "parent": 620, "children": [717], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 159, "column": 5}}, {"id": 717, "type": "parenthesized_expression", "text": "(cursor)", "parent": 716, "children": [718], "start_point": {"row": 157, "column": 7}, "end_point": {"row": 157, "column": 15}}, {"id": 718, "type": "identifier", "text": "cursor", "parent": 717, "children": [], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 14}}, {"id": 719, "type": "call_expression", "text": "str_append(text_buf, \"_\")", "parent": 716, "children": [720, 721], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 33}}, {"id": 720, "type": "identifier", "text": "str_append", "parent": 719, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 18}}, {"id": 721, "type": "argument_list", "text": "(text_buf, \"_\")", "parent": 719, "children": [722, 723], "start_point": {"row": 158, "column": 18}, "end_point": {"row": 158, "column": 33}}, {"id": 722, "type": "identifier", "text": "text_buf", "parent": 721, "children": [], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 27}}, {"id": 723, "type": "string_literal", "text": "\"_\"", "parent": 721, "children": [], "start_point": {"row": 158, "column": 29}, "end_point": {"row": 158, "column": 32}}, {"id": 724, "type": "declaration", "text": "char line_buf[max_col + 1];", "parent": 620, "children": [725, 726], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 31}}, {"id": 725, "type": "primitive_type", "text": "char", "parent": 724, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 8}}, {"id": 726, "type": "array_declarator", "text": "line_buf[max_col + 1]", "parent": 724, "children": [727, 728], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 30}}, {"id": 727, "type": "identifier", "text": "line_buf", "parent": 726, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 17}}, {"id": 728, "type": "binary_expression", "text": "max_col + 1", "parent": 726, "children": [729, 730, 731], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 29}}, {"id": 729, "type": "identifier", "text": "max_col", "parent": 728, "children": [], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 25}}, {"id": 730, "type": "+", "text": "+", "parent": 728, "children": [], "start_point": {"row": 161, "column": 26}, "end_point": {"row": 161, "column": 27}}, {"id": 731, "type": "number_literal", "text": "1", "parent": 728, "children": [], "start_point": {"row": 161, "column": 28}, "end_point": {"row": 161, "column": 29}}, {"id": 732, "type": "declaration", "text": "char* text_view = text_buf->buf;", "parent": 620, "children": [733, 734], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 36}}, {"id": 733, "type": "primitive_type", "text": "char", "parent": 732, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 8}}, {"id": 734, "type": "init_declarator", "text": "* text_view = text_buf->buf", "parent": 732, "children": [735, 738, 739], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 35}}, {"id": 735, "type": "pointer_declarator", "text": "* text_view", "parent": 734, "children": [736, 737], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 19}}, {"id": 736, "type": "*", "text": "*", "parent": 735, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 9}}, {"id": 737, "type": "identifier", "text": "text_view", "parent": 735, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 19}}, {"id": 738, "type": "=", "text": "=", "parent": 734, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 21}}, {"id": 739, "type": "field_expression", "text": "text_buf->buf", "parent": 734, "children": [740, 741], "start_point": {"row": 162, "column": 22}, "end_point": {"row": 162, "column": 35}}, {"id": 740, "type": "identifier", "text": "text_buf", "parent": 739, "children": [], "start_point": {"row": 162, "column": 22}, "end_point": {"row": 162, "column": 30}}, {"id": 741, "type": "field_identifier", "text": "buf", "parent": 739, "children": [], "start_point": {"row": 162, "column": 32}, "end_point": {"row": 162, "column": 35}}, {"id": 742, "type": "declaration", "text": "uint32_t n_lines = count_lines(text_buf);", "parent": 620, "children": [743, 744], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 45}}, {"id": 743, "type": "primitive_type", "text": "uint32_t", "parent": 742, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 12}}, {"id": 744, "type": "init_declarator", "text": "n_lines = count_lines(text_buf)", "parent": 742, "children": [745, 746, 747], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 44}}, {"id": 745, "type": "identifier", "text": "n_lines", "parent": 744, "children": [], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 20}}, {"id": 746, "type": "=", "text": "=", "parent": 744, "children": [], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 22}}, {"id": 747, "type": "call_expression", "text": "count_lines(text_buf)", "parent": 744, "children": [748, 749], "start_point": {"row": 163, "column": 23}, "end_point": {"row": 163, "column": 44}}, {"id": 748, "type": "identifier", "text": "count_lines", "parent": 747, "children": [], "start_point": {"row": 163, "column": 23}, "end_point": {"row": 163, "column": 34}}, {"id": 749, "type": "argument_list", "text": "(text_buf)", "parent": 747, "children": [750], "start_point": {"row": 163, "column": 34}, "end_point": {"row": 163, "column": 44}}, {"id": 750, "type": "identifier", "text": "text_buf", "parent": 749, "children": [], "start_point": {"row": 163, "column": 35}, "end_point": {"row": 163, "column": 43}}, {"id": 751, "type": "if_statement", "text": "if (n_lines > max_line) {\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }", "parent": 620, "children": [752], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 170, "column": 5}}, {"id": 752, "type": "parenthesized_expression", "text": "(n_lines > max_line)", "parent": 751, "children": [753], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 27}}, {"id": 753, "type": "binary_expression", "text": "n_lines > max_line", "parent": 752, "children": [754, 755, 756], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 26}}, {"id": 754, "type": "identifier", "text": "n_lines", "parent": 753, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 15}}, {"id": 755, "type": ">", "text": ">", "parent": 753, "children": [], "start_point": {"row": 166, "column": 16}, "end_point": {"row": 166, "column": 17}}, {"id": 756, "type": "identifier", "text": "max_line", "parent": 753, "children": [], "start_point": {"row": 166, "column": 18}, "end_point": {"row": 166, "column": 26}}, {"id": 757, "type": "for_statement", "text": "for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }", "parent": 751, "children": [758, 764, 771], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 169, "column": 9}}, {"id": 758, "type": "declaration", "text": "uint32_t i = 0;", "parent": 757, "children": [759, 760], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 28}}, {"id": 759, "type": "primitive_type", "text": "uint32_t", "parent": 758, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 21}}, {"id": 760, "type": "init_declarator", "text": "i = 0", "parent": 758, "children": [761, 762, 763], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 27}}, {"id": 761, "type": "identifier", "text": "i", "parent": 760, "children": [], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 23}}, {"id": 762, "type": "=", "text": "=", "parent": 760, "children": [], "start_point": {"row": 167, "column": 24}, "end_point": {"row": 167, "column": 25}}, {"id": 763, "type": "number_literal", "text": "0", "parent": 760, "children": [], "start_point": {"row": 167, "column": 26}, "end_point": {"row": 167, "column": 27}}, {"id": 764, "type": "binary_expression", "text": "i < n_lines - max_line", "parent": 757, "children": [765, 766, 767], "start_point": {"row": 167, "column": 29}, "end_point": {"row": 167, "column": 51}}, {"id": 765, "type": "identifier", "text": "i", "parent": 764, "children": [], "start_point": {"row": 167, "column": 29}, "end_point": {"row": 167, "column": 30}}, {"id": 766, "type": "<", "text": "<", "parent": 764, "children": [], "start_point": {"row": 167, "column": 31}, "end_point": {"row": 167, "column": 32}}, {"id": 767, "type": "binary_expression", "text": "n_lines - max_line", "parent": 764, "children": [768, 769, 770], "start_point": {"row": 167, "column": 33}, "end_point": {"row": 167, "column": 51}}, {"id": 768, "type": "identifier", "text": "n_lines", "parent": 767, "children": [], "start_point": {"row": 167, "column": 33}, "end_point": {"row": 167, "column": 40}}, {"id": 769, "type": "-", "text": "-", "parent": 767, "children": [], "start_point": {"row": 167, "column": 41}, "end_point": {"row": 167, "column": 42}}, {"id": 770, "type": "identifier", "text": "max_line", "parent": 767, "children": [], "start_point": {"row": 167, "column": 43}, "end_point": {"row": 167, "column": 51}}, {"id": 771, "type": "update_expression", "text": "i++", "parent": 757, "children": [772, 773], "start_point": {"row": 167, "column": 53}, "end_point": {"row": 167, "column": 56}}, {"id": 772, "type": "identifier", "text": "i", "parent": 771, "children": [], "start_point": {"row": 167, "column": 53}, "end_point": {"row": 167, "column": 54}}, {"id": 773, "type": "++", "text": "++", "parent": 771, "children": [], "start_point": {"row": 167, "column": 54}, "end_point": {"row": 167, "column": 56}}, {"id": 774, "type": "assignment_expression", "text": "text_view = scroll_view(text_view)", "parent": 757, "children": [775, 776, 777], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 46}}, {"id": 775, "type": "identifier", "text": "text_view", "parent": 774, "children": [], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 21}}, {"id": 776, "type": "=", "text": "=", "parent": 774, "children": [], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 23}}, {"id": 777, "type": "call_expression", "text": "scroll_view(text_view)", "parent": 774, "children": [778, 779], "start_point": {"row": 168, "column": 24}, "end_point": {"row": 168, "column": 46}}, {"id": 778, "type": "identifier", "text": "scroll_view", "parent": 777, "children": [], "start_point": {"row": 168, "column": 24}, "end_point": {"row": 168, "column": 35}}, {"id": 779, "type": "argument_list", "text": "(text_view)", "parent": 777, "children": [780], "start_point": {"row": 168, "column": 35}, "end_point": {"row": 168, "column": 46}}, {"id": 780, "type": "identifier", "text": "text_view", "parent": 779, "children": [], "start_point": {"row": 168, "column": 36}, "end_point": {"row": 168, "column": 45}}, {"id": 781, "type": "while_statement", "text": "while (text_view < &text_buf->buf[text_buf->len]) {\n char* lf = strchrnul(text_view, '\\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }", "parent": 620, "children": [782], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 190, "column": 5}}, {"id": 782, "type": "parenthesized_expression", "text": "(text_view < &text_buf->buf[text_buf->len])", "parent": 781, "children": [783], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 53}}, {"id": 783, "type": "binary_expression", "text": "text_view < &text_buf->buf[text_buf->len]", "parent": 782, "children": [784, 785, 786], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 52}}, {"id": 784, "type": "identifier", "text": "text_view", "parent": 783, "children": [], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 20}}, {"id": 785, "type": "<", "text": "<", "parent": 783, "children": [], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 22}}, {"id": 786, "type": "pointer_expression", "text": "&text_buf->buf[text_buf->len]", "parent": 783, "children": [787], "start_point": {"row": 173, "column": 23}, "end_point": {"row": 173, "column": 52}}, {"id": 787, "type": "subscript_expression", "text": "text_buf->buf[text_buf->len]", "parent": 786, "children": [788, 791], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 52}}, {"id": 788, "type": "field_expression", "text": "text_buf->buf", "parent": 787, "children": [789, 790], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 37}}, {"id": 789, "type": "identifier", "text": "text_buf", "parent": 788, "children": [], "start_point": {"row": 173, "column": 24}, "end_point": {"row": 173, "column": 32}}, {"id": 790, "type": "field_identifier", "text": "buf", "parent": 788, "children": [], "start_point": {"row": 173, "column": 34}, "end_point": {"row": 173, "column": 37}}, {"id": 791, "type": "field_expression", "text": "text_buf->len", "parent": 787, "children": [792, 793], "start_point": {"row": 173, "column": 38}, "end_point": {"row": 173, "column": 51}}, {"id": 792, "type": "identifier", "text": "text_buf", "parent": 791, "children": [], "start_point": {"row": 173, "column": 38}, "end_point": {"row": 173, "column": 46}}, {"id": 793, "type": "field_identifier", "text": "len", "parent": 791, "children": [], "start_point": {"row": 173, "column": 48}, "end_point": {"row": 173, "column": 51}}, {"id": 794, "type": "declaration", "text": "char* lf = strchrnul(text_view, '\\n');", "parent": 781, "children": [795, 796], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 46}}, {"id": 795, "type": "primitive_type", "text": "char", "parent": 794, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 12}}, {"id": 796, "type": "init_declarator", "text": "* lf = strchrnul(text_view, '\\n')", "parent": 794, "children": [797, 800, 801], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 45}}, {"id": 797, "type": "pointer_declarator", "text": "* lf", "parent": 796, "children": [798, 799], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 16}}, {"id": 798, "type": "*", "text": "*", "parent": 797, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 13}}, {"id": 799, "type": "identifier", "text": "lf", "parent": 797, "children": [], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 174, "column": 16}}, {"id": 800, "type": "=", "text": "=", "parent": 796, "children": [], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 18}}, {"id": 801, "type": "call_expression", "text": "strchrnul(text_view, '\\n')", "parent": 796, "children": [802, 803], "start_point": {"row": 174, "column": 19}, "end_point": {"row": 174, "column": 45}}, {"id": 802, "type": "identifier", "text": "strchrnul", "parent": 801, "children": [], "start_point": {"row": 174, "column": 19}, "end_point": {"row": 174, "column": 28}}, {"id": 803, "type": "argument_list", "text": "(text_view, '\\n')", "parent": 801, "children": [804, 805], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 45}}, {"id": 804, "type": "identifier", "text": "text_view", "parent": 803, "children": [], "start_point": {"row": 174, "column": 29}, "end_point": {"row": 174, "column": 38}}, {"id": 805, "type": "char_literal", "text": "'\\n'", "parent": 803, "children": [806, 807, 808], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 44}}, {"id": 806, "type": "'", "text": "'", "parent": 805, "children": [], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 41}}, {"id": 807, "type": "escape_sequence", "text": "\\n", "parent": 805, "children": [], "start_point": {"row": 174, "column": 41}, "end_point": {"row": 174, "column": 43}}, {"id": 808, "type": "'", "text": "'", "parent": 805, "children": [], "start_point": {"row": 174, "column": 43}, "end_point": {"row": 174, "column": 44}}, {"id": 809, "type": "declaration", "text": "uint32_t line_len = (uint32_t) (lf - text_view);", "parent": 781, "children": [810, 811], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 56}}, {"id": 810, "type": "primitive_type", "text": "uint32_t", "parent": 809, "children": [], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 16}}, {"id": 811, "type": "init_declarator", "text": "line_len = (uint32_t) (lf - text_view)", "parent": 809, "children": [812, 813, 814], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 55}}, {"id": 812, "type": "identifier", "text": "line_len", "parent": 811, "children": [], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 25}}, {"id": 813, "type": "=", "text": "=", "parent": 811, "children": [], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 27}}, {"id": 814, "type": "cast_expression", "text": "(uint32_t) (lf - text_view)", "parent": 811, "children": [815, 817], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 55}}, {"id": 815, "type": "type_descriptor", "text": "uint32_t", "parent": 814, "children": [816], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 37}}, {"id": 816, "type": "primitive_type", "text": "uint32_t", "parent": 815, "children": [], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 37}}, {"id": 817, "type": "parenthesized_expression", "text": "(lf - text_view)", "parent": 814, "children": [818], "start_point": {"row": 175, "column": 39}, "end_point": {"row": 175, "column": 55}}, {"id": 818, "type": "binary_expression", "text": "lf - text_view", "parent": 817, "children": [819, 820, 821], "start_point": {"row": 175, "column": 40}, "end_point": {"row": 175, "column": 54}}, {"id": 819, "type": "identifier", "text": "lf", "parent": 818, "children": [], "start_point": {"row": 175, "column": 40}, "end_point": {"row": 175, "column": 42}}, {"id": 820, "type": "-", "text": "-", "parent": 818, "children": [], "start_point": {"row": 175, "column": 43}, "end_point": {"row": 175, "column": 44}}, {"id": 821, "type": "identifier", "text": "text_view", "parent": 818, "children": [], "start_point": {"row": 175, "column": 45}, "end_point": {"row": 175, "column": 54}}, {"id": 822, "type": "if_statement", "text": "if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\\0';\n text_view += max_col;\n }", "parent": 781, "children": [823, 850], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 185, "column": 9}}, {"id": 823, "type": "parenthesized_expression", "text": "(line_len <= max_col)", "parent": 822, "children": [824], "start_point": {"row": 177, "column": 11}, "end_point": {"row": 177, "column": 32}}, {"id": 824, "type": "binary_expression", "text": "line_len <= max_col", "parent": 823, "children": [825, 826, 827], "start_point": {"row": 177, "column": 12}, "end_point": {"row": 177, "column": 31}}, {"id": 825, "type": "identifier", "text": "line_len", "parent": 824, "children": [], "start_point": {"row": 177, "column": 12}, "end_point": {"row": 177, "column": 20}}, {"id": 826, "type": "<=", "text": "<=", "parent": 824, "children": [], "start_point": {"row": 177, "column": 21}, "end_point": {"row": 177, "column": 23}}, {"id": 827, "type": "identifier", "text": "max_col", "parent": 824, "children": [], "start_point": {"row": 177, "column": 24}, "end_point": {"row": 177, "column": 31}}, {"id": 828, "type": "call_expression", "text": "strncpy(line_buf, text_view, line_len)", "parent": 822, "children": [829, 830], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 50}}, {"id": 829, "type": "identifier", "text": "strncpy", "parent": 828, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 19}}, {"id": 830, "type": "argument_list", "text": "(line_buf, text_view, line_len)", "parent": 828, "children": [831, 832, 833], "start_point": {"row": 178, "column": 19}, "end_point": {"row": 178, "column": 50}}, {"id": 831, "type": "identifier", "text": "line_buf", "parent": 830, "children": [], "start_point": {"row": 178, "column": 20}, "end_point": {"row": 178, "column": 28}}, {"id": 832, "type": "identifier", "text": "text_view", "parent": 830, "children": [], "start_point": {"row": 178, "column": 30}, "end_point": {"row": 178, "column": 39}}, {"id": 833, "type": "identifier", "text": "line_len", "parent": 830, "children": [], "start_point": {"row": 178, "column": 41}, "end_point": {"row": 178, "column": 49}}, {"id": 834, "type": "assignment_expression", "text": "line_buf[line_len] = '\\0'", "parent": 822, "children": [835, 838, 839], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 37}}, {"id": 835, "type": "subscript_expression", "text": "line_buf[line_len]", "parent": 834, "children": [836, 837], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 30}}, {"id": 836, "type": "identifier", "text": "line_buf", "parent": 835, "children": [], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 20}}, {"id": 837, "type": "identifier", "text": "line_len", "parent": 835, "children": [], "start_point": {"row": 179, "column": 21}, "end_point": {"row": 179, "column": 29}}, {"id": 838, "type": "=", "text": "=", "parent": 834, "children": [], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 32}}, {"id": 839, "type": "char_literal", "text": "'\\0'", "parent": 834, "children": [840, 841, 842], "start_point": {"row": 179, "column": 33}, "end_point": {"row": 179, "column": 37}}, {"id": 840, "type": "'", "text": "'", "parent": 839, "children": [], "start_point": {"row": 179, "column": 33}, "end_point": {"row": 179, "column": 34}}, {"id": 841, "type": "escape_sequence", "text": "\\0", "parent": 839, "children": [], "start_point": {"row": 179, "column": 34}, "end_point": {"row": 179, "column": 36}}, {"id": 842, "type": "'", "text": "'", "parent": 839, "children": [], "start_point": {"row": 179, "column": 36}, "end_point": {"row": 179, "column": 37}}, {"id": 843, "type": "assignment_expression", "text": "text_view += line_len + 1", "parent": 822, "children": [844, 845, 846], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 37}}, {"id": 844, "type": "identifier", "text": "text_view", "parent": 843, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 21}}, {"id": 845, "type": "+=", "text": "+=", "parent": 843, "children": [], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 24}}, {"id": 846, "type": "binary_expression", "text": "line_len + 1", "parent": 843, "children": [847, 848, 849], "start_point": {"row": 180, "column": 25}, "end_point": {"row": 180, "column": 37}}, {"id": 847, "type": "identifier", "text": "line_len", "parent": 846, "children": [], "start_point": {"row": 180, "column": 25}, "end_point": {"row": 180, "column": 33}}, {"id": 848, "type": "+", "text": "+", "parent": 846, "children": [], "start_point": {"row": 180, "column": 34}, "end_point": {"row": 180, "column": 35}}, {"id": 849, "type": "number_literal", "text": "1", "parent": 846, "children": [], "start_point": {"row": 180, "column": 36}, "end_point": {"row": 180, "column": 37}}, {"id": 850, "type": "else_clause", "text": "else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\\0';\n text_view += max_col;\n }", "parent": 822, "children": [], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 185, "column": 9}}, {"id": 851, "type": "call_expression", "text": "strncpy(line_buf, text_view, max_col)", "parent": 850, "children": [852, 853], "start_point": {"row": 182, "column": 12}, "end_point": {"row": 182, "column": 49}}, {"id": 852, "type": "identifier", "text": "strncpy", "parent": 851, "children": [], "start_point": {"row": 182, "column": 12}, "end_point": {"row": 182, "column": 19}}, {"id": 853, "type": "argument_list", "text": "(line_buf, text_view, max_col)", "parent": 851, "children": [854, 855, 856], "start_point": {"row": 182, "column": 19}, "end_point": {"row": 182, "column": 49}}, {"id": 854, "type": "identifier", "text": "line_buf", "parent": 853, "children": [], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 28}}, {"id": 855, "type": "identifier", "text": "text_view", "parent": 853, "children": [], "start_point": {"row": 182, "column": 30}, "end_point": {"row": 182, "column": 39}}, {"id": 856, "type": "identifier", "text": "max_col", "parent": 853, "children": [], "start_point": {"row": 182, "column": 41}, "end_point": {"row": 182, "column": 48}}, {"id": 857, "type": "assignment_expression", "text": "line_buf[max_col] = '\\0'", "parent": 850, "children": [858, 861, 862], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 36}}, {"id": 858, "type": "subscript_expression", "text": "line_buf[max_col]", "parent": 857, "children": [859, 860], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 29}}, {"id": 859, "type": "identifier", "text": "line_buf", "parent": 858, "children": [], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 20}}, {"id": 860, "type": "identifier", "text": "max_col", "parent": 858, "children": [], "start_point": {"row": 183, "column": 21}, "end_point": {"row": 183, "column": 28}}, {"id": 861, "type": "=", "text": "=", "parent": 857, "children": [], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 31}}, {"id": 862, "type": "char_literal", "text": "'\\0'", "parent": 857, "children": [863, 864, 865], "start_point": {"row": 183, "column": 32}, "end_point": {"row": 183, "column": 36}}, {"id": 863, "type": "'", "text": "'", "parent": 862, "children": [], "start_point": {"row": 183, "column": 32}, "end_point": {"row": 183, "column": 33}}, {"id": 864, "type": "escape_sequence", "text": "\\0", "parent": 862, "children": [], "start_point": {"row": 183, "column": 33}, "end_point": {"row": 183, "column": 35}}, {"id": 865, "type": "'", "text": "'", "parent": 862, "children": [], "start_point": {"row": 183, "column": 35}, "end_point": {"row": 183, "column": 36}}, {"id": 866, "type": "assignment_expression", "text": "text_view += max_col", "parent": 850, "children": [867, 868, 869], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 32}}, {"id": 867, "type": "identifier", "text": "text_view", "parent": 866, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 21}}, {"id": 868, "type": "+=", "text": "+=", "parent": 866, "children": [], "start_point": {"row": 184, "column": 22}, "end_point": {"row": 184, "column": 24}}, {"id": 869, "type": "identifier", "text": "max_col", "parent": 866, "children": [], "start_point": {"row": 184, "column": 25}, "end_point": {"row": 184, "column": 32}}, {"id": 870, "type": "call_expression", "text": "snow_draw_string(win->fb, line_buf, margin, y, text_color)", "parent": 781, "children": [871, 872], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 66}}, {"id": 871, "type": "identifier", "text": "snow_draw_string", "parent": 870, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 24}}, {"id": 872, "type": "argument_list", "text": "(win->fb, line_buf, margin, y, text_color)", "parent": 870, "children": [873, 876, 877, 878, 879], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 66}}, {"id": 873, "type": "field_expression", "text": "win->fb", "parent": 872, "children": [874, 875], "start_point": {"row": 187, "column": 25}, "end_point": {"row": 187, "column": 32}}, {"id": 874, "type": "identifier", "text": "win", "parent": 873, "children": [], "start_point": {"row": 187, "column": 25}, "end_point": {"row": 187, "column": 28}}, {"id": 875, "type": "field_identifier", "text": "fb", "parent": 873, "children": [], "start_point": {"row": 187, "column": 30}, "end_point": {"row": 187, "column": 32}}, {"id": 876, "type": "identifier", "text": "line_buf", "parent": 872, "children": [], "start_point": {"row": 187, "column": 34}, "end_point": {"row": 187, "column": 42}}, {"id": 877, "type": "identifier", "text": "margin", "parent": 872, "children": [], "start_point": {"row": 187, "column": 44}, "end_point": {"row": 187, "column": 50}}, {"id": 878, "type": "identifier", "text": "y", "parent": 872, "children": [], "start_point": {"row": 187, "column": 52}, "end_point": {"row": 187, "column": 53}}, {"id": 879, "type": "identifier", "text": "text_color", "parent": 872, "children": [], "start_point": {"row": 187, "column": 55}, "end_point": {"row": 187, "column": 65}}, {"id": 880, "type": "assignment_expression", "text": "y += char_height", "parent": 781, "children": [881, 882, 883], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 24}}, {"id": 881, "type": "identifier", "text": "y", "parent": 880, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 9}}, {"id": 882, "type": "+=", "text": "+=", "parent": 880, "children": [], "start_point": {"row": 189, "column": 10}, "end_point": {"row": 189, "column": 12}}, {"id": 883, "type": "identifier", "text": "char_height", "parent": 880, "children": [], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 24}}, {"id": 884, "type": "assignment_expression", "text": "text_buf->buf[text_buf->len - input_buf->len] = '\\0'", "parent": 620, "children": [885, 897, 898], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 56}}, {"id": 885, "type": "subscript_expression", "text": "text_buf->buf[text_buf->len - input_buf->len]", "parent": 884, "children": [886, 889], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 49}}, {"id": 886, "type": "field_expression", "text": "text_buf->buf", "parent": 885, "children": [887, 888], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 17}}, {"id": 887, "type": "identifier", "text": "text_buf", "parent": 886, "children": [], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 12}}, {"id": 888, "type": "field_identifier", "text": "buf", "parent": 886, "children": [], "start_point": {"row": 193, "column": 14}, "end_point": {"row": 193, "column": 17}}, {"id": 889, "type": "binary_expression", "text": "text_buf->len - input_buf->len", "parent": 885, "children": [890, 893, 894], "start_point": {"row": 193, "column": 18}, "end_point": {"row": 193, "column": 48}}, {"id": 890, "type": "field_expression", "text": "text_buf->len", "parent": 889, "children": [891, 892], "start_point": {"row": 193, "column": 18}, "end_point": {"row": 193, "column": 31}}, {"id": 891, "type": "identifier", "text": "text_buf", "parent": 890, "children": [], "start_point": {"row": 193, "column": 18}, "end_point": {"row": 193, "column": 26}}, {"id": 892, "type": "field_identifier", "text": "len", "parent": 890, "children": [], "start_point": {"row": 193, "column": 28}, "end_point": {"row": 193, "column": 31}}, {"id": 893, "type": "-", "text": "-", "parent": 889, "children": [], "start_point": {"row": 193, "column": 32}, "end_point": {"row": 193, "column": 33}}, {"id": 894, "type": "field_expression", "text": "input_buf->len", "parent": 889, "children": [895, 896], "start_point": {"row": 193, "column": 34}, "end_point": {"row": 193, "column": 48}}, {"id": 895, "type": "identifier", "text": "input_buf", "parent": 894, "children": [], "start_point": {"row": 193, "column": 34}, "end_point": {"row": 193, "column": 43}}, {"id": 896, "type": "field_identifier", "text": "len", "parent": 894, "children": [], "start_point": {"row": 193, "column": 45}, "end_point": {"row": 193, "column": 48}}, {"id": 897, "type": "=", "text": "=", "parent": 884, "children": [], "start_point": {"row": 193, "column": 50}, "end_point": {"row": 193, "column": 51}}, {"id": 898, "type": "char_literal", "text": "'\\0'", "parent": 884, "children": [899, 900, 901], "start_point": {"row": 193, "column": 52}, "end_point": {"row": 193, "column": 56}}, {"id": 899, "type": "'", "text": "'", "parent": 898, "children": [], "start_point": {"row": 193, "column": 52}, "end_point": {"row": 193, "column": 53}}, {"id": 900, "type": "escape_sequence", "text": "\\0", "parent": 898, "children": [], "start_point": {"row": 193, "column": 53}, "end_point": {"row": 193, "column": 55}}, {"id": 901, "type": "'", "text": "'", "parent": 898, "children": [], "start_point": {"row": 193, "column": 55}, "end_point": {"row": 193, "column": 56}}, {"id": 902, "type": "assignment_expression", "text": "text_buf->len -= input_buf->len", "parent": 620, "children": [903, 906, 907], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 35}}, {"id": 903, "type": "field_expression", "text": "text_buf->len", "parent": 902, "children": [904, 905], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 17}}, {"id": 904, "type": "identifier", "text": "text_buf", "parent": 903, "children": [], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 12}}, {"id": 905, "type": "field_identifier", "text": "len", "parent": 903, "children": [], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 17}}, {"id": 906, "type": "-=", "text": "-=", "parent": 902, "children": [], "start_point": {"row": 194, "column": 18}, "end_point": {"row": 194, "column": 20}}, {"id": 907, "type": "field_expression", "text": "input_buf->len", "parent": 902, "children": [908, 909], "start_point": {"row": 194, "column": 21}, "end_point": {"row": 194, "column": 35}}, {"id": 908, "type": "identifier", "text": "input_buf", "parent": 907, "children": [], "start_point": {"row": 194, "column": 21}, "end_point": {"row": 194, "column": 30}}, {"id": 909, "type": "field_identifier", "text": "len", "parent": 907, "children": [], "start_point": {"row": 194, "column": 32}, "end_point": {"row": 194, "column": 35}}, {"id": 910, "type": "if_statement", "text": "if (cursor) {\n text_buf->buf[text_buf->len - 1] = '\\0';\n text_buf->len -= 1;\n }", "parent": 620, "children": [911], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 199, "column": 5}}, {"id": 911, "type": "parenthesized_expression", "text": "(cursor)", "parent": 910, "children": [912], "start_point": {"row": 196, "column": 7}, "end_point": {"row": 196, "column": 15}}, {"id": 912, "type": "identifier", "text": "cursor", "parent": 911, "children": [], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 14}}, {"id": 913, "type": "assignment_expression", "text": "text_buf->buf[text_buf->len - 1] = '\\0'", "parent": 910, "children": [914, 924, 925], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 47}}, {"id": 914, "type": "subscript_expression", "text": "text_buf->buf[text_buf->len - 1]", "parent": 913, "children": [915, 918], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 40}}, {"id": 915, "type": "field_expression", "text": "text_buf->buf", "parent": 914, "children": [916, 917], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 21}}, {"id": 916, "type": "identifier", "text": "text_buf", "parent": 915, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 16}}, {"id": 917, "type": "field_identifier", "text": "buf", "parent": 915, "children": [], "start_point": {"row": 197, "column": 18}, "end_point": {"row": 197, "column": 21}}, {"id": 918, "type": "binary_expression", "text": "text_buf->len - 1", "parent": 914, "children": [919, 922, 923], "start_point": {"row": 197, "column": 22}, "end_point": {"row": 197, "column": 39}}, {"id": 919, "type": "field_expression", "text": "text_buf->len", "parent": 918, "children": [920, 921], "start_point": {"row": 197, "column": 22}, "end_point": {"row": 197, "column": 35}}, {"id": 920, "type": "identifier", "text": "text_buf", "parent": 919, "children": [], "start_point": {"row": 197, "column": 22}, "end_point": {"row": 197, "column": 30}}, {"id": 921, "type": "field_identifier", "text": "len", "parent": 919, "children": [], "start_point": {"row": 197, "column": 32}, "end_point": {"row": 197, "column": 35}}, {"id": 922, "type": "-", "text": "-", "parent": 918, "children": [], "start_point": {"row": 197, "column": 36}, "end_point": {"row": 197, "column": 37}}, {"id": 923, "type": "number_literal", "text": "1", "parent": 918, "children": [], "start_point": {"row": 197, "column": 38}, "end_point": {"row": 197, "column": 39}}, {"id": 924, "type": "=", "text": "=", "parent": 913, "children": [], "start_point": {"row": 197, "column": 41}, "end_point": {"row": 197, "column": 42}}, {"id": 925, "type": "char_literal", "text": "'\\0'", "parent": 913, "children": [926, 927, 928], "start_point": {"row": 197, "column": 43}, "end_point": {"row": 197, "column": 47}}, {"id": 926, "type": "'", "text": "'", "parent": 925, "children": [], "start_point": {"row": 197, "column": 43}, "end_point": {"row": 197, "column": 44}}, {"id": 927, "type": "escape_sequence", "text": "\\0", "parent": 925, "children": [], "start_point": {"row": 197, "column": 44}, "end_point": {"row": 197, "column": 46}}, {"id": 928, "type": "'", "text": "'", "parent": 925, "children": [], "start_point": {"row": 197, "column": 46}, "end_point": {"row": 197, "column": 47}}, {"id": 929, "type": "assignment_expression", "text": "text_buf->len -= 1", "parent": 910, "children": [930, 933, 934], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 26}}, {"id": 930, "type": "field_expression", "text": "text_buf->len", "parent": 929, "children": [931, 932], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 21}}, {"id": 931, "type": "identifier", "text": "text_buf", "parent": 930, "children": [], "start_point": {"row": 198, "column": 8}, "end_point": {"row": 198, "column": 16}}, {"id": 932, "type": "field_identifier", "text": "len", "parent": 930, "children": [], "start_point": {"row": 198, "column": 18}, "end_point": {"row": 198, "column": 21}}, {"id": 933, "type": "-=", "text": "-=", "parent": 929, "children": [], "start_point": {"row": 198, "column": 22}, "end_point": {"row": 198, "column": 24}}, {"id": 934, "type": "number_literal", "text": "1", "parent": 929, "children": [], "start_point": {"row": 198, "column": 25}, "end_point": {"row": 198, "column": 26}}, {"id": 935, "type": "call_expression", "text": "snow_render_window(win)", "parent": 620, "children": [936, 937], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 27}}, {"id": 936, "type": "identifier", "text": "snow_render_window", "parent": 935, "children": [], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 22}}, {"id": 937, "type": "argument_list", "text": "(win)", "parent": 935, "children": [938], "start_point": {"row": 202, "column": 22}, "end_point": {"row": 202, "column": 27}}, {"id": 938, "type": "identifier", "text": "win", "parent": 937, "children": [], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 26}}, {"id": 939, "type": "function_definition", "text": "str_t* str_new(const char* str) {\n str_t* s = malloc(sizeof(str_t));\n uint32_t size = strlen(str) + 1;\n\n s->buf = malloc(size);\n s->buf_len = size;\n s->len = size - 1;\n\n strcpy(s->buf, str);\n\n return s;\n}", "parent": null, "children": [940, 941], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 216, "column": 1}}, {"id": 940, "type": "type_identifier", "text": "str_t", "parent": 939, "children": [], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 205, "column": 5}}, {"id": 941, "type": "pointer_declarator", "text": "* str_new(const char* str)", "parent": 939, "children": [942, 943], "start_point": {"row": 205, "column": 5}, "end_point": {"row": 205, "column": 31}}, {"id": 942, "type": "*", "text": "*", "parent": 941, "children": [], "start_point": {"row": 205, "column": 5}, "end_point": {"row": 205, "column": 6}}, {"id": 943, "type": "function_declarator", "text": "str_new(const char* str)", "parent": 941, "children": [944, 945], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 31}}, {"id": 944, "type": "identifier", "text": "str_new", "parent": 943, "children": [], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 14}}, {"id": 945, "type": "parameter_list", "text": "(const char* str)", "parent": 943, "children": [946], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 31}}, {"id": 946, "type": "parameter_declaration", "text": "const char* str", "parent": 945, "children": [947, 948], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 30}}, {"id": 947, "type": "primitive_type", "text": "char", "parent": 946, "children": [], "start_point": {"row": 205, "column": 21}, "end_point": {"row": 205, "column": 25}}, {"id": 948, "type": "pointer_declarator", "text": "* str", "parent": 946, "children": [949, 950], "start_point": {"row": 205, "column": 25}, "end_point": {"row": 205, "column": 30}}, {"id": 949, "type": "*", "text": "*", "parent": 948, "children": [], "start_point": {"row": 205, "column": 25}, "end_point": {"row": 205, "column": 26}}, {"id": 950, "type": "identifier", "text": "str", "parent": 948, "children": [], "start_point": {"row": 205, "column": 27}, "end_point": {"row": 205, "column": 30}}, {"id": 951, "type": "declaration", "text": "str_t* s = malloc(sizeof(str_t));", "parent": 939, "children": [952, 953], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 37}}, {"id": 952, "type": "type_identifier", "text": "str_t", "parent": 951, "children": [], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 206, "column": 9}}, {"id": 953, "type": "init_declarator", "text": "* s = malloc(sizeof(str_t))", "parent": 951, "children": [954, 957, 958], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 36}}, {"id": 954, "type": "pointer_declarator", "text": "* s", "parent": 953, "children": [955, 956], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 12}}, {"id": 955, "type": "*", "text": "*", "parent": 954, "children": [], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 10}}, {"id": 956, "type": "identifier", "text": "s", "parent": 954, "children": [], "start_point": {"row": 206, "column": 11}, "end_point": {"row": 206, "column": 12}}, {"id": 957, "type": "=", "text": "=", "parent": 953, "children": [], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 14}}, {"id": 958, "type": "call_expression", "text": "malloc(sizeof(str_t))", "parent": 953, "children": [959, 960], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 36}}, {"id": 959, "type": "identifier", "text": "malloc", "parent": 958, "children": [], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 21}}, {"id": 960, "type": "argument_list", "text": "(sizeof(str_t))", "parent": 958, "children": [961], "start_point": {"row": 206, "column": 21}, "end_point": {"row": 206, "column": 36}}, {"id": 961, "type": "sizeof_expression", "text": "sizeof(str_t)", "parent": 960, "children": [962], "start_point": {"row": 206, "column": 22}, "end_point": {"row": 206, "column": 35}}, {"id": 962, "type": "parenthesized_expression", "text": "(str_t)", "parent": 961, "children": [963], "start_point": {"row": 206, "column": 28}, "end_point": {"row": 206, "column": 35}}, {"id": 963, "type": "identifier", "text": "str_t", "parent": 962, "children": [], "start_point": {"row": 206, "column": 29}, "end_point": {"row": 206, "column": 34}}, {"id": 964, "type": "declaration", "text": "uint32_t size = strlen(str) + 1;", "parent": 939, "children": [965, 966], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 36}}, {"id": 965, "type": "primitive_type", "text": "uint32_t", "parent": 964, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 12}}, {"id": 966, "type": "init_declarator", "text": "size = strlen(str) + 1", "parent": 964, "children": [967, 968, 969], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 35}}, {"id": 967, "type": "identifier", "text": "size", "parent": 966, "children": [], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 17}}, {"id": 968, "type": "=", "text": "=", "parent": 966, "children": [], "start_point": {"row": 207, "column": 18}, "end_point": {"row": 207, "column": 19}}, {"id": 969, "type": "binary_expression", "text": "strlen(str) + 1", "parent": 966, "children": [970, 974, 975], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 35}}, {"id": 970, "type": "call_expression", "text": "strlen(str)", "parent": 969, "children": [971, 972], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 31}}, {"id": 971, "type": "identifier", "text": "strlen", "parent": 970, "children": [], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 26}}, {"id": 972, "type": "argument_list", "text": "(str)", "parent": 970, "children": [973], "start_point": {"row": 207, "column": 26}, "end_point": {"row": 207, "column": 31}}, {"id": 973, "type": "identifier", "text": "str", "parent": 972, "children": [], "start_point": {"row": 207, "column": 27}, "end_point": {"row": 207, "column": 30}}, {"id": 974, "type": "+", "text": "+", "parent": 969, "children": [], "start_point": {"row": 207, "column": 32}, "end_point": {"row": 207, "column": 33}}, {"id": 975, "type": "number_literal", "text": "1", "parent": 969, "children": [], "start_point": {"row": 207, "column": 34}, "end_point": {"row": 207, "column": 35}}, {"id": 976, "type": "assignment_expression", "text": "s->buf = malloc(size)", "parent": 939, "children": [977, 980, 981], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 25}}, {"id": 977, "type": "field_expression", "text": "s->buf", "parent": 976, "children": [978, 979], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 10}}, {"id": 978, "type": "identifier", "text": "s", "parent": 977, "children": [], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 5}}, {"id": 979, "type": "field_identifier", "text": "buf", "parent": 977, "children": [], "start_point": {"row": 209, "column": 7}, "end_point": {"row": 209, "column": 10}}, {"id": 980, "type": "=", "text": "=", "parent": 976, "children": [], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 12}}, {"id": 981, "type": "call_expression", "text": "malloc(size)", "parent": 976, "children": [982, 983], "start_point": {"row": 209, "column": 13}, "end_point": {"row": 209, "column": 25}}, {"id": 982, "type": "identifier", "text": "malloc", "parent": 981, "children": [], "start_point": {"row": 209, "column": 13}, "end_point": {"row": 209, "column": 19}}, {"id": 983, "type": "argument_list", "text": "(size)", "parent": 981, "children": [984], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 25}}, {"id": 984, "type": "identifier", "text": "size", "parent": 983, "children": [], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 209, "column": 24}}, {"id": 985, "type": "assignment_expression", "text": "s->buf_len = size", "parent": 939, "children": [986, 989, 990], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 21}}, {"id": 986, "type": "field_expression", "text": "s->buf_len", "parent": 985, "children": [987, 988], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 14}}, {"id": 987, "type": "identifier", "text": "s", "parent": 986, "children": [], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 5}}, {"id": 988, "type": "field_identifier", "text": "buf_len", "parent": 986, "children": [], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 14}}, {"id": 989, "type": "=", "text": "=", "parent": 985, "children": [], "start_point": {"row": 210, "column": 15}, "end_point": {"row": 210, "column": 16}}, {"id": 990, "type": "identifier", "text": "size", "parent": 985, "children": [], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 21}}, {"id": 991, "type": "assignment_expression", "text": "s->len = size - 1", "parent": 939, "children": [992, 995, 996], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 21}}, {"id": 992, "type": "field_expression", "text": "s->len", "parent": 991, "children": [993, 994], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 10}}, {"id": 993, "type": "identifier", "text": "s", "parent": 992, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 5}}, {"id": 994, "type": "field_identifier", "text": "len", "parent": 992, "children": [], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 10}}, {"id": 995, "type": "=", "text": "=", "parent": 991, "children": [], "start_point": {"row": 211, "column": 11}, "end_point": {"row": 211, "column": 12}}, {"id": 996, "type": "binary_expression", "text": "size - 1", "parent": 991, "children": [997, 998, 999], "start_point": {"row": 211, "column": 13}, "end_point": {"row": 211, "column": 21}}, {"id": 997, "type": "identifier", "text": "size", "parent": 996, "children": [], "start_point": {"row": 211, "column": 13}, "end_point": {"row": 211, "column": 17}}, {"id": 998, "type": "-", "text": "-", "parent": 996, "children": [], "start_point": {"row": 211, "column": 18}, "end_point": {"row": 211, "column": 19}}, {"id": 999, "type": "number_literal", "text": "1", "parent": 996, "children": [], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 21}}, {"id": 1000, "type": "call_expression", "text": "strcpy(s->buf, str)", "parent": 939, "children": [1001, 1002], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 23}}, {"id": 1001, "type": "identifier", "text": "strcpy", "parent": 1000, "children": [], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 10}}, {"id": 1002, "type": "argument_list", "text": "(s->buf, str)", "parent": 1000, "children": [1003, 1006], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 23}}, {"id": 1003, "type": "field_expression", "text": "s->buf", "parent": 1002, "children": [1004, 1005], "start_point": {"row": 213, "column": 11}, "end_point": {"row": 213, "column": 17}}, {"id": 1004, "type": "identifier", "text": "s", "parent": 1003, "children": [], "start_point": {"row": 213, "column": 11}, "end_point": {"row": 213, "column": 12}}, {"id": 1005, "type": "field_identifier", "text": "buf", "parent": 1003, "children": [], "start_point": {"row": 213, "column": 14}, "end_point": {"row": 213, "column": 17}}, {"id": 1006, "type": "identifier", "text": "str", "parent": 1002, "children": [], "start_point": {"row": 213, "column": 19}, "end_point": {"row": 213, "column": 22}}, {"id": 1007, "type": "return_statement", "text": "return s;", "parent": 939, "children": [1008], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 13}}, {"id": 1008, "type": "identifier", "text": "s", "parent": 1007, "children": [], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 12}}, {"id": 1009, "type": "function_definition", "text": "void str_free(str_t* str) {\n free(str->buf);\n free(str);\n}", "parent": null, "children": [1010, 1011], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 221, "column": 1}}, {"id": 1010, "type": "primitive_type", "text": "void", "parent": 1009, "children": [], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 218, "column": 4}}, {"id": 1011, "type": "function_declarator", "text": "str_free(str_t* str)", "parent": 1009, "children": [1012, 1013], "start_point": {"row": 218, "column": 5}, "end_point": {"row": 218, "column": 25}}, {"id": 1012, "type": "identifier", "text": "str_free", "parent": 1011, "children": [], "start_point": {"row": 218, "column": 5}, "end_point": {"row": 218, "column": 13}}, {"id": 1013, "type": "parameter_list", "text": "(str_t* str)", "parent": 1011, "children": [1014], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 25}}, {"id": 1014, "type": "parameter_declaration", "text": "str_t* str", "parent": 1013, "children": [1015, 1016], "start_point": {"row": 218, "column": 14}, "end_point": {"row": 218, "column": 24}}, {"id": 1015, "type": "type_identifier", "text": "str_t", "parent": 1014, "children": [], "start_point": {"row": 218, "column": 14}, "end_point": {"row": 218, "column": 19}}, {"id": 1016, "type": "pointer_declarator", "text": "* str", "parent": 1014, "children": [1017, 1018], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 24}}, {"id": 1017, "type": "*", "text": "*", "parent": 1016, "children": [], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 20}}, {"id": 1018, "type": "identifier", "text": "str", "parent": 1016, "children": [], "start_point": {"row": 218, "column": 21}, "end_point": {"row": 218, "column": 24}}, {"id": 1019, "type": "call_expression", "text": "free(str->buf)", "parent": 1009, "children": [1020, 1021], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 18}}, {"id": 1020, "type": "identifier", "text": "free", "parent": 1019, "children": [], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 8}}, {"id": 1021, "type": "argument_list", "text": "(str->buf)", "parent": 1019, "children": [1022], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 18}}, {"id": 1022, "type": "field_expression", "text": "str->buf", "parent": 1021, "children": [1023, 1024], "start_point": {"row": 219, "column": 9}, "end_point": {"row": 219, "column": 17}}, {"id": 1023, "type": "identifier", "text": "str", "parent": 1022, "children": [], "start_point": {"row": 219, "column": 9}, "end_point": {"row": 219, "column": 12}}, {"id": 1024, "type": "field_identifier", "text": "buf", "parent": 1022, "children": [], "start_point": {"row": 219, "column": 14}, "end_point": {"row": 219, "column": 17}}, {"id": 1025, "type": "call_expression", "text": "free(str)", "parent": 1009, "children": [1026, 1027], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 13}}, {"id": 1026, "type": "identifier", "text": "free", "parent": 1025, "children": [], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 8}}, {"id": 1027, "type": "argument_list", "text": "(str)", "parent": 1025, "children": [1028], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 13}}, {"id": 1028, "type": "identifier", "text": "str", "parent": 1027, "children": [], "start_point": {"row": 220, "column": 9}, "end_point": {"row": 220, "column": 12}}, {"id": 1029, "type": "function_definition", "text": "void str_append(str_t* str, const char* text) {\n uint32_t prev_len = str->len;\n uint32_t needed = strlen(text) + prev_len + 1;\n\n if (needed > str->buf_len) {\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }\n\n strcpy(&str->buf[prev_len], text);\n str->len = needed - 1;\n}", "parent": null, "children": [1030, 1031], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 239, "column": 1}}, {"id": 1030, "type": "primitive_type", "text": "void", "parent": 1029, "children": [], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 223, "column": 4}}, {"id": 1031, "type": "function_declarator", "text": "str_append(str_t* str, const char* text)", "parent": 1029, "children": [1032, 1033], "start_point": {"row": 223, "column": 5}, "end_point": {"row": 223, "column": 45}}, {"id": 1032, "type": "identifier", "text": "str_append", "parent": 1031, "children": [], "start_point": {"row": 223, "column": 5}, "end_point": {"row": 223, "column": 15}}, {"id": 1033, "type": "parameter_list", "text": "(str_t* str, const char* text)", "parent": 1031, "children": [1034, 1039], "start_point": {"row": 223, "column": 15}, "end_point": {"row": 223, "column": 45}}, {"id": 1034, "type": "parameter_declaration", "text": "str_t* str", "parent": 1033, "children": [1035, 1036], "start_point": {"row": 223, "column": 16}, "end_point": {"row": 223, "column": 26}}, {"id": 1035, "type": "type_identifier", "text": "str_t", "parent": 1034, "children": [], "start_point": {"row": 223, "column": 16}, "end_point": {"row": 223, "column": 21}}, {"id": 1036, "type": "pointer_declarator", "text": "* str", "parent": 1034, "children": [1037, 1038], "start_point": {"row": 223, "column": 21}, "end_point": {"row": 223, "column": 26}}, {"id": 1037, "type": "*", "text": "*", "parent": 1036, "children": [], "start_point": {"row": 223, "column": 21}, "end_point": {"row": 223, "column": 22}}, {"id": 1038, "type": "identifier", "text": "str", "parent": 1036, "children": [], "start_point": {"row": 223, "column": 23}, "end_point": {"row": 223, "column": 26}}, {"id": 1039, "type": "parameter_declaration", "text": "const char* text", "parent": 1033, "children": [1040, 1041], "start_point": {"row": 223, "column": 28}, "end_point": {"row": 223, "column": 44}}, {"id": 1040, "type": "primitive_type", "text": "char", "parent": 1039, "children": [], "start_point": {"row": 223, "column": 34}, "end_point": {"row": 223, "column": 38}}, {"id": 1041, "type": "pointer_declarator", "text": "* text", "parent": 1039, "children": [1042, 1043], "start_point": {"row": 223, "column": 38}, "end_point": {"row": 223, "column": 44}}, {"id": 1042, "type": "*", "text": "*", "parent": 1041, "children": [], "start_point": {"row": 223, "column": 38}, "end_point": {"row": 223, "column": 39}}, {"id": 1043, "type": "identifier", "text": "text", "parent": 1041, "children": [], "start_point": {"row": 223, "column": 40}, "end_point": {"row": 223, "column": 44}}, {"id": 1044, "type": "declaration", "text": "uint32_t prev_len = str->len;", "parent": 1029, "children": [1045, 1046], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 33}}, {"id": 1045, "type": "primitive_type", "text": "uint32_t", "parent": 1044, "children": [], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 12}}, {"id": 1046, "type": "init_declarator", "text": "prev_len = str->len", "parent": 1044, "children": [1047, 1048, 1049], "start_point": {"row": 224, "column": 13}, "end_point": {"row": 224, "column": 32}}, {"id": 1047, "type": "identifier", "text": "prev_len", "parent": 1046, "children": [], "start_point": {"row": 224, "column": 13}, "end_point": {"row": 224, "column": 21}}, {"id": 1048, "type": "=", "text": "=", "parent": 1046, "children": [], "start_point": {"row": 224, "column": 22}, "end_point": {"row": 224, "column": 23}}, {"id": 1049, "type": "field_expression", "text": "str->len", "parent": 1046, "children": [1050, 1051], "start_point": {"row": 224, "column": 24}, "end_point": {"row": 224, "column": 32}}, {"id": 1050, "type": "identifier", "text": "str", "parent": 1049, "children": [], "start_point": {"row": 224, "column": 24}, "end_point": {"row": 224, "column": 27}}, {"id": 1051, "type": "field_identifier", "text": "len", "parent": 1049, "children": [], "start_point": {"row": 224, "column": 29}, "end_point": {"row": 224, "column": 32}}, {"id": 1052, "type": "declaration", "text": "uint32_t needed = strlen(text) + prev_len + 1;", "parent": 1029, "children": [1053, 1054], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 225, "column": 50}}, {"id": 1053, "type": "primitive_type", "text": "uint32_t", "parent": 1052, "children": [], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 225, "column": 12}}, {"id": 1054, "type": "init_declarator", "text": "needed = strlen(text) + prev_len + 1", "parent": 1052, "children": [1055, 1056, 1057], "start_point": {"row": 225, "column": 13}, "end_point": {"row": 225, "column": 49}}, {"id": 1055, "type": "identifier", "text": "needed", "parent": 1054, "children": [], "start_point": {"row": 225, "column": 13}, "end_point": {"row": 225, "column": 19}}, {"id": 1056, "type": "=", "text": "=", "parent": 1054, "children": [], "start_point": {"row": 225, "column": 20}, "end_point": {"row": 225, "column": 21}}, {"id": 1057, "type": "binary_expression", "text": "strlen(text) + prev_len + 1", "parent": 1054, "children": [1058, 1065, 1066], "start_point": {"row": 225, "column": 22}, "end_point": {"row": 225, "column": 49}}, {"id": 1058, "type": "binary_expression", "text": "strlen(text) + prev_len", "parent": 1057, "children": [1059, 1063, 1064], "start_point": {"row": 225, "column": 22}, "end_point": {"row": 225, "column": 45}}, {"id": 1059, "type": "call_expression", "text": "strlen(text)", "parent": 1058, "children": [1060, 1061], "start_point": {"row": 225, "column": 22}, "end_point": {"row": 225, "column": 34}}, {"id": 1060, "type": "identifier", "text": "strlen", "parent": 1059, "children": [], "start_point": {"row": 225, "column": 22}, "end_point": {"row": 225, "column": 28}}, {"id": 1061, "type": "argument_list", "text": "(text)", "parent": 1059, "children": [1062], "start_point": {"row": 225, "column": 28}, "end_point": {"row": 225, "column": 34}}, {"id": 1062, "type": "identifier", "text": "text", "parent": 1061, "children": [], "start_point": {"row": 225, "column": 29}, "end_point": {"row": 225, "column": 33}}, {"id": 1063, "type": "+", "text": "+", "parent": 1058, "children": [], "start_point": {"row": 225, "column": 35}, "end_point": {"row": 225, "column": 36}}, {"id": 1064, "type": "identifier", "text": "prev_len", "parent": 1058, "children": [], "start_point": {"row": 225, "column": 37}, "end_point": {"row": 225, "column": 45}}, {"id": 1065, "type": "+", "text": "+", "parent": 1057, "children": [], "start_point": {"row": 225, "column": 46}, "end_point": {"row": 225, "column": 47}}, {"id": 1066, "type": "number_literal", "text": "1", "parent": 1057, "children": [], "start_point": {"row": 225, "column": 48}, "end_point": {"row": 225, "column": 49}}, {"id": 1067, "type": "if_statement", "text": "if (needed > str->buf_len) {\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }", "parent": 1029, "children": [1068], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 235, "column": 5}}, {"id": 1068, "type": "parenthesized_expression", "text": "(needed > str->buf_len)", "parent": 1067, "children": [1069], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 30}}, {"id": 1069, "type": "binary_expression", "text": "needed > str->buf_len", "parent": 1068, "children": [1070, 1071, 1072], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 29}}, {"id": 1070, "type": "identifier", "text": "needed", "parent": 1069, "children": [], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 14}}, {"id": 1071, "type": ">", "text": ">", "parent": 1069, "children": [], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 16}}, {"id": 1072, "type": "field_expression", "text": "str->buf_len", "parent": 1069, "children": [1073, 1074], "start_point": {"row": 227, "column": 17}, "end_point": {"row": 227, "column": 29}}, {"id": 1073, "type": "identifier", "text": "str", "parent": 1072, "children": [], "start_point": {"row": 227, "column": 17}, "end_point": {"row": 227, "column": 20}}, {"id": 1074, "type": "field_identifier", "text": "buf_len", "parent": 1072, "children": [], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 29}}, {"id": 1075, "type": "declaration", "text": "char* new_buf = malloc(2*needed);", "parent": 1067, "children": [1076, 1077], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 228, "column": 41}}, {"id": 1076, "type": "primitive_type", "text": "char", "parent": 1075, "children": [], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 228, "column": 12}}, {"id": 1077, "type": "init_declarator", "text": "* new_buf = malloc(2*needed)", "parent": 1075, "children": [1078, 1081, 1082], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 40}}, {"id": 1078, "type": "pointer_declarator", "text": "* new_buf", "parent": 1077, "children": [1079, 1080], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 21}}, {"id": 1079, "type": "*", "text": "*", "parent": 1078, "children": [], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 13}}, {"id": 1080, "type": "identifier", "text": "new_buf", "parent": 1078, "children": [], "start_point": {"row": 228, "column": 14}, "end_point": {"row": 228, "column": 21}}, {"id": 1081, "type": "=", "text": "=", "parent": 1077, "children": [], "start_point": {"row": 228, "column": 22}, "end_point": {"row": 228, "column": 23}}, {"id": 1082, "type": "call_expression", "text": "malloc(2*needed)", "parent": 1077, "children": [1083, 1084], "start_point": {"row": 228, "column": 24}, "end_point": {"row": 228, "column": 40}}, {"id": 1083, "type": "identifier", "text": "malloc", "parent": 1082, "children": [], "start_point": {"row": 228, "column": 24}, "end_point": {"row": 228, "column": 30}}, {"id": 1084, "type": "argument_list", "text": "(2*needed)", "parent": 1082, "children": [1085], "start_point": {"row": 228, "column": 30}, "end_point": {"row": 228, "column": 40}}, {"id": 1085, "type": "binary_expression", "text": "2*needed", "parent": 1084, "children": [1086, 1087, 1088], "start_point": {"row": 228, "column": 31}, "end_point": {"row": 228, "column": 39}}, {"id": 1086, "type": "number_literal", "text": "2", "parent": 1085, "children": [], "start_point": {"row": 228, "column": 31}, "end_point": {"row": 228, "column": 32}}, {"id": 1087, "type": "*", "text": "*", "parent": 1085, "children": [], "start_point": {"row": 228, "column": 32}, "end_point": {"row": 228, "column": 33}}, {"id": 1088, "type": "identifier", "text": "needed", "parent": 1085, "children": [], "start_point": {"row": 228, "column": 33}, "end_point": {"row": 228, "column": 39}}, {"id": 1089, "type": "call_expression", "text": "strcpy(new_buf, str->buf)", "parent": 1067, "children": [1090, 1091], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 33}}, {"id": 1090, "type": "identifier", "text": "strcpy", "parent": 1089, "children": [], "start_point": {"row": 230, "column": 8}, "end_point": {"row": 230, "column": 14}}, {"id": 1091, "type": "argument_list", "text": "(new_buf, str->buf)", "parent": 1089, "children": [1092, 1093], "start_point": {"row": 230, "column": 14}, "end_point": {"row": 230, "column": 33}}, {"id": 1092, "type": "identifier", "text": "new_buf", "parent": 1091, "children": [], "start_point": {"row": 230, "column": 15}, "end_point": {"row": 230, "column": 22}}, {"id": 1093, "type": "field_expression", "text": "str->buf", "parent": 1091, "children": [1094, 1095], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 32}}, {"id": 1094, "type": "identifier", "text": "str", "parent": 1093, "children": [], "start_point": {"row": 230, "column": 24}, "end_point": {"row": 230, "column": 27}}, {"id": 1095, "type": "field_identifier", "text": "buf", "parent": 1093, "children": [], "start_point": {"row": 230, "column": 29}, "end_point": {"row": 230, "column": 32}}, {"id": 1096, "type": "call_expression", "text": "free(str->buf)", "parent": 1067, "children": [1097, 1098], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 22}}, {"id": 1097, "type": "identifier", "text": "free", "parent": 1096, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 12}}, {"id": 1098, "type": "argument_list", "text": "(str->buf)", "parent": 1096, "children": [1099], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 22}}, {"id": 1099, "type": "field_expression", "text": "str->buf", "parent": 1098, "children": [1100, 1101], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 21}}, {"id": 1100, "type": "identifier", "text": "str", "parent": 1099, "children": [], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 16}}, {"id": 1101, "type": "field_identifier", "text": "buf", "parent": 1099, "children": [], "start_point": {"row": 231, "column": 18}, "end_point": {"row": 231, "column": 21}}, {"id": 1102, "type": "assignment_expression", "text": "str->buf = new_buf", "parent": 1067, "children": [1103, 1106, 1107], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 26}}, {"id": 1103, "type": "field_expression", "text": "str->buf", "parent": 1102, "children": [1104, 1105], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 16}}, {"id": 1104, "type": "identifier", "text": "str", "parent": 1103, "children": [], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 11}}, {"id": 1105, "type": "field_identifier", "text": "buf", "parent": 1103, "children": [], "start_point": {"row": 233, "column": 13}, "end_point": {"row": 233, "column": 16}}, {"id": 1106, "type": "=", "text": "=", "parent": 1102, "children": [], "start_point": {"row": 233, "column": 17}, "end_point": {"row": 233, "column": 18}}, {"id": 1107, "type": "identifier", "text": "new_buf", "parent": 1102, "children": [], "start_point": {"row": 233, "column": 19}, "end_point": {"row": 233, "column": 26}}, {"id": 1108, "type": "assignment_expression", "text": "str->buf_len = 2*needed", "parent": 1067, "children": [1109, 1112, 1113], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 31}}, {"id": 1109, "type": "field_expression", "text": "str->buf_len", "parent": 1108, "children": [1110, 1111], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 20}}, {"id": 1110, "type": "identifier", "text": "str", "parent": 1109, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 11}}, {"id": 1111, "type": "field_identifier", "text": "buf_len", "parent": 1109, "children": [], "start_point": {"row": 234, "column": 13}, "end_point": {"row": 234, "column": 20}}, {"id": 1112, "type": "=", "text": "=", "parent": 1108, "children": [], "start_point": {"row": 234, "column": 21}, "end_point": {"row": 234, "column": 22}}, {"id": 1113, "type": "binary_expression", "text": "2*needed", "parent": 1108, "children": [1114, 1115, 1116], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 31}}, {"id": 1114, "type": "number_literal", "text": "2", "parent": 1113, "children": [], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 24}}, {"id": 1115, "type": "*", "text": "*", "parent": 1113, "children": [], "start_point": {"row": 234, "column": 24}, "end_point": {"row": 234, "column": 25}}, {"id": 1116, "type": "identifier", "text": "needed", "parent": 1113, "children": [], "start_point": {"row": 234, "column": 25}, "end_point": {"row": 234, "column": 31}}, {"id": 1117, "type": "call_expression", "text": "strcpy(&str->buf[prev_len], text)", "parent": 1029, "children": [1118, 1119], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 37}}, {"id": 1118, "type": "identifier", "text": "strcpy", "parent": 1117, "children": [], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 10}}, {"id": 1119, "type": "argument_list", "text": "(&str->buf[prev_len], text)", "parent": 1117, "children": [1120, 1126], "start_point": {"row": 237, "column": 10}, "end_point": {"row": 237, "column": 37}}, {"id": 1120, "type": "pointer_expression", "text": "&str->buf[prev_len]", "parent": 1119, "children": [1121], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 30}}, {"id": 1121, "type": "subscript_expression", "text": "str->buf[prev_len]", "parent": 1120, "children": [1122, 1125], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 30}}, {"id": 1122, "type": "field_expression", "text": "str->buf", "parent": 1121, "children": [1123, 1124], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 20}}, {"id": 1123, "type": "identifier", "text": "str", "parent": 1122, "children": [], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 15}}, {"id": 1124, "type": "field_identifier", "text": "buf", "parent": 1122, "children": [], "start_point": {"row": 237, "column": 17}, "end_point": {"row": 237, "column": 20}}, {"id": 1125, "type": "identifier", "text": "prev_len", "parent": 1121, "children": [], "start_point": {"row": 237, "column": 21}, "end_point": {"row": 237, "column": 29}}, {"id": 1126, "type": "identifier", "text": "text", "parent": 1119, "children": [], "start_point": {"row": 237, "column": 32}, "end_point": {"row": 237, "column": 36}}, {"id": 1127, "type": "assignment_expression", "text": "str->len = needed - 1", "parent": 1029, "children": [1128, 1131, 1132], "start_point": {"row": 238, "column": 4}, "end_point": {"row": 238, "column": 25}}, {"id": 1128, "type": "field_expression", "text": "str->len", "parent": 1127, "children": [1129, 1130], "start_point": {"row": 238, "column": 4}, "end_point": {"row": 238, "column": 12}}, {"id": 1129, "type": "identifier", "text": "str", "parent": 1128, "children": [], "start_point": {"row": 238, "column": 4}, "end_point": {"row": 238, "column": 7}}, {"id": 1130, "type": "field_identifier", "text": "len", "parent": 1128, "children": [], "start_point": {"row": 238, "column": 9}, "end_point": {"row": 238, "column": 12}}, {"id": 1131, "type": "=", "text": "=", "parent": 1127, "children": [], "start_point": {"row": 238, "column": 13}, "end_point": {"row": 238, "column": 14}}, {"id": 1132, "type": "binary_expression", "text": "needed - 1", "parent": 1127, "children": [1133, 1134, 1135], "start_point": {"row": 238, "column": 15}, "end_point": {"row": 238, "column": 25}}, {"id": 1133, "type": "identifier", "text": "needed", "parent": 1132, "children": [], "start_point": {"row": 238, "column": 15}, "end_point": {"row": 238, "column": 21}}, {"id": 1134, "type": "-", "text": "-", "parent": 1132, "children": [], "start_point": {"row": 238, "column": 22}, "end_point": {"row": 238, "column": 23}}, {"id": 1135, "type": "number_literal", "text": "1", "parent": 1132, "children": [], "start_point": {"row": 238, "column": 24}, "end_point": {"row": 238, "column": 25}}, {"id": 1136, "type": "function_definition", "text": "void interpret_cmd(str_t* text_buf, str_t* input_buf) {\n if (!strcmp(input_buf->buf, \"exit\")) {\n running = false;\n return;\n }\n\n char* cmd = input_buf->buf;\n uint32_t n_args = 0;\n char** args = NULL;\n char* next = cmd;\n\n while (*next) {\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }\n\n if (!args) {\n return;\n }\n\n int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args);\n\n while (args && *args) {\n free(*args);\n args++;\n }\n\n free(args);\n\n if (ret != 0) {\n str_append(text_buf, \"\\ninvalid command: \");\n str_append(text_buf, cmd);\n }\n}", "parent": null, "children": [1137, 1138], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 283, "column": 1}}, {"id": 1137, "type": "primitive_type", "text": "void", "parent": 1136, "children": [], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 241, "column": 4}}, {"id": 1138, "type": "function_declarator", "text": "interpret_cmd(str_t* text_buf, str_t* input_buf)", "parent": 1136, "children": [1139, 1140], "start_point": {"row": 241, "column": 5}, "end_point": {"row": 241, "column": 53}}, {"id": 1139, "type": "identifier", "text": "interpret_cmd", "parent": 1138, "children": [], "start_point": {"row": 241, "column": 5}, "end_point": {"row": 241, "column": 18}}, {"id": 1140, "type": "parameter_list", "text": "(str_t* text_buf, str_t* input_buf)", "parent": 1138, "children": [1141, 1146], "start_point": {"row": 241, "column": 18}, "end_point": {"row": 241, "column": 53}}, {"id": 1141, "type": "parameter_declaration", "text": "str_t* text_buf", "parent": 1140, "children": [1142, 1143], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 34}}, {"id": 1142, "type": "type_identifier", "text": "str_t", "parent": 1141, "children": [], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 24}}, {"id": 1143, "type": "pointer_declarator", "text": "* text_buf", "parent": 1141, "children": [1144, 1145], "start_point": {"row": 241, "column": 24}, "end_point": {"row": 241, "column": 34}}, {"id": 1144, "type": "*", "text": "*", "parent": 1143, "children": [], "start_point": {"row": 241, "column": 24}, "end_point": {"row": 241, "column": 25}}, {"id": 1145, "type": "identifier", "text": "text_buf", "parent": 1143, "children": [], "start_point": {"row": 241, "column": 26}, "end_point": {"row": 241, "column": 34}}, {"id": 1146, "type": "parameter_declaration", "text": "str_t* input_buf", "parent": 1140, "children": [1147, 1148], "start_point": {"row": 241, "column": 36}, "end_point": {"row": 241, "column": 52}}, {"id": 1147, "type": "type_identifier", "text": "str_t", "parent": 1146, "children": [], "start_point": {"row": 241, "column": 36}, "end_point": {"row": 241, "column": 41}}, {"id": 1148, "type": "pointer_declarator", "text": "* input_buf", "parent": 1146, "children": [1149, 1150], "start_point": {"row": 241, "column": 41}, "end_point": {"row": 241, "column": 52}}, {"id": 1149, "type": "*", "text": "*", "parent": 1148, "children": [], "start_point": {"row": 241, "column": 41}, "end_point": {"row": 241, "column": 42}}, {"id": 1150, "type": "identifier", "text": "input_buf", "parent": 1148, "children": [], "start_point": {"row": 241, "column": 43}, "end_point": {"row": 241, "column": 52}}, {"id": 1151, "type": "if_statement", "text": "if (!strcmp(input_buf->buf, \"exit\")) {\n running = false;\n return;\n }", "parent": 1136, "children": [1152], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 245, "column": 5}}, {"id": 1152, "type": "parenthesized_expression", "text": "(!strcmp(input_buf->buf, \"exit\"))", "parent": 1151, "children": [1153], "start_point": {"row": 242, "column": 7}, "end_point": {"row": 242, "column": 40}}, {"id": 1153, "type": "unary_expression", "text": "!strcmp(input_buf->buf, \"exit\")", "parent": 1152, "children": [1154, 1155], "start_point": {"row": 242, "column": 8}, "end_point": {"row": 242, "column": 39}}, {"id": 1154, "type": "!", "text": "!", "parent": 1153, "children": [], "start_point": {"row": 242, "column": 8}, "end_point": {"row": 242, "column": 9}}, {"id": 1155, "type": "call_expression", "text": "strcmp(input_buf->buf, \"exit\")", "parent": 1153, "children": [1156, 1157], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 39}}, {"id": 1156, "type": "identifier", "text": "strcmp", "parent": 1155, "children": [], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 15}}, {"id": 1157, "type": "argument_list", "text": "(input_buf->buf, \"exit\")", "parent": 1155, "children": [1158, 1161], "start_point": {"row": 242, "column": 15}, "end_point": {"row": 242, "column": 39}}, {"id": 1158, "type": "field_expression", "text": "input_buf->buf", "parent": 1157, "children": [1159, 1160], "start_point": {"row": 242, "column": 16}, "end_point": {"row": 242, "column": 30}}, {"id": 1159, "type": "identifier", "text": "input_buf", "parent": 1158, "children": [], "start_point": {"row": 242, "column": 16}, "end_point": {"row": 242, "column": 25}}, {"id": 1160, "type": "field_identifier", "text": "buf", "parent": 1158, "children": [], "start_point": {"row": 242, "column": 27}, "end_point": {"row": 242, "column": 30}}, {"id": 1161, "type": "string_literal", "text": "\"exit\"", "parent": 1157, "children": [], "start_point": {"row": 242, "column": 32}, "end_point": {"row": 242, "column": 38}}, {"id": 1162, "type": "assignment_expression", "text": "running = false", "parent": 1151, "children": [1163, 1164, 1165], "start_point": {"row": 243, "column": 8}, "end_point": {"row": 243, "column": 23}}, {"id": 1163, "type": "identifier", "text": "running", "parent": 1162, "children": [], "start_point": {"row": 243, "column": 8}, "end_point": {"row": 243, "column": 15}}, {"id": 1164, "type": "=", "text": "=", "parent": 1162, "children": [], "start_point": {"row": 243, "column": 16}, "end_point": {"row": 243, "column": 17}}, {"id": 1165, "type": "false", "text": "false", "parent": 1162, "children": [], "start_point": {"row": 243, "column": 18}, "end_point": {"row": 243, "column": 23}}, {"id": 1166, "type": "return_statement", "text": "return;", "parent": 1151, "children": [], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 15}}, {"id": 1167, "type": "declaration", "text": "char* cmd = input_buf->buf;", "parent": 1136, "children": [1168, 1169], "start_point": {"row": 247, "column": 4}, "end_point": {"row": 247, "column": 31}}, {"id": 1168, "type": "primitive_type", "text": "char", "parent": 1167, "children": [], "start_point": {"row": 247, "column": 4}, "end_point": {"row": 247, "column": 8}}, {"id": 1169, "type": "init_declarator", "text": "* cmd = input_buf->buf", "parent": 1167, "children": [1170, 1173, 1174], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 30}}, {"id": 1170, "type": "pointer_declarator", "text": "* cmd", "parent": 1169, "children": [1171, 1172], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 13}}, {"id": 1171, "type": "*", "text": "*", "parent": 1170, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 9}}, {"id": 1172, "type": "identifier", "text": "cmd", "parent": 1170, "children": [], "start_point": {"row": 247, "column": 10}, "end_point": {"row": 247, "column": 13}}, {"id": 1173, "type": "=", "text": "=", "parent": 1169, "children": [], "start_point": {"row": 247, "column": 14}, "end_point": {"row": 247, "column": 15}}, {"id": 1174, "type": "field_expression", "text": "input_buf->buf", "parent": 1169, "children": [1175, 1176], "start_point": {"row": 247, "column": 16}, "end_point": {"row": 247, "column": 30}}, {"id": 1175, "type": "identifier", "text": "input_buf", "parent": 1174, "children": [], "start_point": {"row": 247, "column": 16}, "end_point": {"row": 247, "column": 25}}, {"id": 1176, "type": "field_identifier", "text": "buf", "parent": 1174, "children": [], "start_point": {"row": 247, "column": 27}, "end_point": {"row": 247, "column": 30}}, {"id": 1177, "type": "declaration", "text": "uint32_t n_args = 0;", "parent": 1136, "children": [1178, 1179], "start_point": {"row": 248, "column": 4}, "end_point": {"row": 248, "column": 24}}, {"id": 1178, "type": "primitive_type", "text": "uint32_t", "parent": 1177, "children": [], "start_point": {"row": 248, "column": 4}, "end_point": {"row": 248, "column": 12}}, {"id": 1179, "type": "init_declarator", "text": "n_args = 0", "parent": 1177, "children": [1180, 1181, 1182], "start_point": {"row": 248, "column": 13}, "end_point": {"row": 248, "column": 23}}, {"id": 1180, "type": "identifier", "text": "n_args", "parent": 1179, "children": [], "start_point": {"row": 248, "column": 13}, "end_point": {"row": 248, "column": 19}}, {"id": 1181, "type": "=", "text": "=", "parent": 1179, "children": [], "start_point": {"row": 248, "column": 20}, "end_point": {"row": 248, "column": 21}}, {"id": 1182, "type": "number_literal", "text": "0", "parent": 1179, "children": [], "start_point": {"row": 248, "column": 22}, "end_point": {"row": 248, "column": 23}}, {"id": 1183, "type": "declaration", "text": "char** args = NULL;", "parent": 1136, "children": [1184, 1185], "start_point": {"row": 249, "column": 4}, "end_point": {"row": 249, "column": 23}}, {"id": 1184, "type": "primitive_type", "text": "char", "parent": 1183, "children": [], "start_point": {"row": 249, "column": 4}, "end_point": {"row": 249, "column": 8}}, {"id": 1185, "type": "init_declarator", "text": "** args = NULL", "parent": 1183, "children": [1186, 1191, 1192], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 22}}, {"id": 1186, "type": "pointer_declarator", "text": "** args", "parent": 1185, "children": [1187, 1188], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 15}}, {"id": 1187, "type": "*", "text": "*", "parent": 1186, "children": [], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 9}}, {"id": 1188, "type": "pointer_declarator", "text": "* args", "parent": 1186, "children": [1189, 1190], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 15}}, {"id": 1189, "type": "*", "text": "*", "parent": 1188, "children": [], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 10}}, {"id": 1190, "type": "identifier", "text": "args", "parent": 1188, "children": [], "start_point": {"row": 249, "column": 11}, "end_point": {"row": 249, "column": 15}}, {"id": 1191, "type": "=", "text": "=", "parent": 1185, "children": [], "start_point": {"row": 249, "column": 16}, "end_point": {"row": 249, "column": 17}}, {"id": 1192, "type": "null", "text": "NULL", "parent": 1185, "children": [1193], "start_point": {"row": 249, "column": 18}, "end_point": {"row": 249, "column": 22}}, {"id": 1193, "type": "NULL", "text": "NULL", "parent": 1192, "children": [], "start_point": {"row": 249, "column": 18}, "end_point": {"row": 249, "column": 22}}, {"id": 1194, "type": "declaration", "text": "char* next = cmd;", "parent": 1136, "children": [1195, 1196], "start_point": {"row": 250, "column": 4}, "end_point": {"row": 250, "column": 21}}, {"id": 1195, "type": "primitive_type", "text": "char", "parent": 1194, "children": [], "start_point": {"row": 250, "column": 4}, "end_point": {"row": 250, "column": 8}}, {"id": 1196, "type": "init_declarator", "text": "* next = cmd", "parent": 1194, "children": [1197, 1200, 1201], "start_point": {"row": 250, "column": 8}, "end_point": {"row": 250, "column": 20}}, {"id": 1197, "type": "pointer_declarator", "text": "* next", "parent": 1196, "children": [1198, 1199], "start_point": {"row": 250, "column": 8}, "end_point": {"row": 250, "column": 14}}, {"id": 1198, "type": "*", "text": "*", "parent": 1197, "children": [], "start_point": {"row": 250, "column": 8}, "end_point": {"row": 250, "column": 9}}, {"id": 1199, "type": "identifier", "text": "next", "parent": 1197, "children": [], "start_point": {"row": 250, "column": 10}, "end_point": {"row": 250, "column": 14}}, {"id": 1200, "type": "=", "text": "=", "parent": 1196, "children": [], "start_point": {"row": 250, "column": 15}, "end_point": {"row": 250, "column": 16}}, {"id": 1201, "type": "identifier", "text": "cmd", "parent": 1196, "children": [], "start_point": {"row": 250, "column": 17}, "end_point": {"row": 250, "column": 20}}, {"id": 1202, "type": "while_statement", "text": "while (*next) {\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }", "parent": 1136, "children": [1203], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 264, "column": 5}}, {"id": 1203, "type": "parenthesized_expression", "text": "(*next)", "parent": 1202, "children": [1204], "start_point": {"row": 252, "column": 10}, "end_point": {"row": 252, "column": 17}}, {"id": 1204, "type": "pointer_expression", "text": "*next", "parent": 1203, "children": [1205, 1206], "start_point": {"row": 252, "column": 11}, "end_point": {"row": 252, "column": 16}}, {"id": 1205, "type": "*", "text": "*", "parent": 1204, "children": [], "start_point": {"row": 252, "column": 11}, "end_point": {"row": 252, "column": 12}}, {"id": 1206, "type": "identifier", "text": "next", "parent": 1204, "children": [], "start_point": {"row": 252, "column": 12}, "end_point": {"row": 252, "column": 16}}, {"id": 1207, "type": "assignment_expression", "text": "args = realloc(args, (++n_args + 1) * sizeof(char*))", "parent": 1202, "children": [1208, 1209, 1210], "start_point": {"row": 253, "column": 8}, "end_point": {"row": 253, "column": 60}}, {"id": 1208, "type": "identifier", "text": "args", "parent": 1207, "children": [], "start_point": {"row": 253, "column": 8}, "end_point": {"row": 253, "column": 12}}, {"id": 1209, "type": "=", "text": "=", "parent": 1207, "children": [], "start_point": {"row": 253, "column": 13}, "end_point": {"row": 253, "column": 14}}, {"id": 1210, "type": "call_expression", "text": "realloc(args, (++n_args + 1) * sizeof(char*))", "parent": 1207, "children": [1211, 1212], "start_point": {"row": 253, "column": 15}, "end_point": {"row": 253, "column": 60}}, {"id": 1211, "type": "identifier", "text": "realloc", "parent": 1210, "children": [], "start_point": {"row": 253, "column": 15}, "end_point": {"row": 253, "column": 22}}, {"id": 1212, "type": "argument_list", "text": "(args, (++n_args + 1) * sizeof(char*))", "parent": 1210, "children": [1213, 1214], "start_point": {"row": 253, "column": 22}, "end_point": {"row": 253, "column": 60}}, {"id": 1213, "type": "identifier", "text": "args", "parent": 1212, "children": [], "start_point": {"row": 253, "column": 23}, "end_point": {"row": 253, "column": 27}}, {"id": 1214, "type": "binary_expression", "text": "(++n_args + 1) * sizeof(char*)", "parent": 1212, "children": [1215, 1222, 1223], "start_point": {"row": 253, "column": 29}, "end_point": {"row": 253, "column": 59}}, {"id": 1215, "type": "parenthesized_expression", "text": "(++n_args + 1)", "parent": 1214, "children": [1216], "start_point": {"row": 253, "column": 29}, "end_point": {"row": 253, "column": 43}}, {"id": 1216, "type": "binary_expression", "text": "++n_args + 1", "parent": 1215, "children": [1217, 1220, 1221], "start_point": {"row": 253, "column": 30}, "end_point": {"row": 253, "column": 42}}, {"id": 1217, "type": "update_expression", "text": "++n_args", "parent": 1216, "children": [1218, 1219], "start_point": {"row": 253, "column": 30}, "end_point": {"row": 253, "column": 38}}, {"id": 1218, "type": "++", "text": "++", "parent": 1217, "children": [], "start_point": {"row": 253, "column": 30}, "end_point": {"row": 253, "column": 32}}, {"id": 1219, "type": "identifier", "text": "n_args", "parent": 1217, "children": [], "start_point": {"row": 253, "column": 32}, "end_point": {"row": 253, "column": 38}}, {"id": 1220, "type": "+", "text": "+", "parent": 1216, "children": [], "start_point": {"row": 253, "column": 39}, "end_point": {"row": 253, "column": 40}}, {"id": 1221, "type": "number_literal", "text": "1", "parent": 1216, "children": [], "start_point": {"row": 253, "column": 41}, "end_point": {"row": 253, "column": 42}}, {"id": 1222, "type": "*", "text": "*", "parent": 1214, "children": [], "start_point": {"row": 253, "column": 44}, "end_point": {"row": 253, "column": 45}}, {"id": 1223, "type": "sizeof_expression", "text": "sizeof(char*)", "parent": 1214, "children": [1224], "start_point": {"row": 253, "column": 46}, "end_point": {"row": 253, "column": 59}}, {"id": 1224, "type": "type_descriptor", "text": "char*", "parent": 1223, "children": [1225, 1226], "start_point": {"row": 253, "column": 53}, "end_point": {"row": 253, "column": 58}}, {"id": 1225, "type": "primitive_type", "text": "char", "parent": 1224, "children": [], "start_point": {"row": 253, "column": 53}, "end_point": {"row": 253, "column": 57}}, {"id": 1226, "type": "abstract_pointer_declarator", "text": "*", "parent": 1224, "children": [1227], "start_point": {"row": 253, "column": 57}, "end_point": {"row": 253, "column": 58}}, {"id": 1227, "type": "*", "text": "*", "parent": 1226, "children": [], "start_point": {"row": 253, "column": 57}, "end_point": {"row": 253, "column": 58}}, {"id": 1228, "type": "while_statement", "text": "while (isspace(*next)) {\n next++;\n }", "parent": 1202, "children": [1229], "start_point": {"row": 255, "column": 8}, "end_point": {"row": 257, "column": 9}}, {"id": 1229, "type": "parenthesized_expression", "text": "(isspace(*next))", "parent": 1228, "children": [1230], "start_point": {"row": 255, "column": 14}, "end_point": {"row": 255, "column": 30}}, {"id": 1230, "type": "call_expression", "text": "isspace(*next)", "parent": 1229, "children": [1231, 1232], "start_point": {"row": 255, "column": 15}, "end_point": {"row": 255, "column": 29}}, {"id": 1231, "type": "identifier", "text": "isspace", "parent": 1230, "children": [], "start_point": {"row": 255, "column": 15}, "end_point": {"row": 255, "column": 22}}, {"id": 1232, "type": "argument_list", "text": "(*next)", "parent": 1230, "children": [1233], "start_point": {"row": 255, "column": 22}, "end_point": {"row": 255, "column": 29}}, {"id": 1233, "type": "pointer_expression", "text": "*next", "parent": 1232, "children": [1234, 1235], "start_point": {"row": 255, "column": 23}, "end_point": {"row": 255, "column": 28}}, {"id": 1234, "type": "*", "text": "*", "parent": 1233, "children": [], "start_point": {"row": 255, "column": 23}, "end_point": {"row": 255, "column": 24}}, {"id": 1235, "type": "identifier", "text": "next", "parent": 1233, "children": [], "start_point": {"row": 255, "column": 24}, "end_point": {"row": 255, "column": 28}}, {"id": 1236, "type": "update_expression", "text": "next++", "parent": 1228, "children": [1237, 1238], "start_point": {"row": 256, "column": 12}, "end_point": {"row": 256, "column": 18}}, {"id": 1237, "type": "identifier", "text": "next", "parent": 1236, "children": [], "start_point": {"row": 256, "column": 12}, "end_point": {"row": 256, "column": 16}}, {"id": 1238, "type": "++", "text": "++", "parent": 1236, "children": [], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 18}}, {"id": 1239, "type": "declaration", "text": "uint32_t n = strchrnul(next, ' ') - next;", "parent": 1202, "children": [1240, 1241], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 49}}, {"id": 1240, "type": "primitive_type", "text": "uint32_t", "parent": 1239, "children": [], "start_point": {"row": 259, "column": 8}, "end_point": {"row": 259, "column": 16}}, {"id": 1241, "type": "init_declarator", "text": "n = strchrnul(next, ' ') - next", "parent": 1239, "children": [1242, 1243, 1244], "start_point": {"row": 259, "column": 17}, "end_point": {"row": 259, "column": 48}}, {"id": 1242, "type": "identifier", "text": "n", "parent": 1241, "children": [], "start_point": {"row": 259, "column": 17}, "end_point": {"row": 259, "column": 18}}, {"id": 1243, "type": "=", "text": "=", "parent": 1241, "children": [], "start_point": {"row": 259, "column": 19}, "end_point": {"row": 259, "column": 20}}, {"id": 1244, "type": "binary_expression", "text": "strchrnul(next, ' ') - next", "parent": 1241, "children": [1245, 1253, 1254], "start_point": {"row": 259, "column": 21}, "end_point": {"row": 259, "column": 48}}, {"id": 1245, "type": "call_expression", "text": "strchrnul(next, ' ')", "parent": 1244, "children": [1246, 1247], "start_point": {"row": 259, "column": 21}, "end_point": {"row": 259, "column": 41}}, {"id": 1246, "type": "identifier", "text": "strchrnul", "parent": 1245, "children": [], "start_point": {"row": 259, "column": 21}, "end_point": {"row": 259, "column": 30}}, {"id": 1247, "type": "argument_list", "text": "(next, ' ')", "parent": 1245, "children": [1248, 1249], "start_point": {"row": 259, "column": 30}, "end_point": {"row": 259, "column": 41}}, {"id": 1248, "type": "identifier", "text": "next", "parent": 1247, "children": [], "start_point": {"row": 259, "column": 31}, "end_point": {"row": 259, "column": 35}}, {"id": 1249, "type": "char_literal", "text": "' '", "parent": 1247, "children": [1250, 1251, 1252], "start_point": {"row": 259, "column": 37}, "end_point": {"row": 259, "column": 40}}, {"id": 1250, "type": "'", "text": "'", "parent": 1249, "children": [], "start_point": {"row": 259, "column": 37}, "end_point": {"row": 259, "column": 38}}, {"id": 1251, "type": "character", "text": " ", "parent": 1249, "children": [], "start_point": {"row": 259, "column": 38}, "end_point": {"row": 259, "column": 39}}, {"id": 1252, "type": "'", "text": "'", "parent": 1249, "children": [], "start_point": {"row": 259, "column": 39}, "end_point": {"row": 259, "column": 40}}, {"id": 1253, "type": "-", "text": "-", "parent": 1244, "children": [], "start_point": {"row": 259, "column": 42}, "end_point": {"row": 259, "column": 43}}, {"id": 1254, "type": "identifier", "text": "next", "parent": 1244, "children": [], "start_point": {"row": 259, "column": 44}, "end_point": {"row": 259, "column": 48}}, {"id": 1255, "type": "assignment_expression", "text": "args[n_args - 1] = strndup(next, n)", "parent": 1202, "children": [1256, 1262, 1263], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 43}}, {"id": 1256, "type": "subscript_expression", "text": "args[n_args - 1]", "parent": 1255, "children": [1257, 1258], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 24}}, {"id": 1257, "type": "identifier", "text": "args", "parent": 1256, "children": [], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 12}}, {"id": 1258, "type": "binary_expression", "text": "n_args - 1", "parent": 1256, "children": [1259, 1260, 1261], "start_point": {"row": 260, "column": 13}, "end_point": {"row": 260, "column": 23}}, {"id": 1259, "type": "identifier", "text": "n_args", "parent": 1258, "children": [], "start_point": {"row": 260, "column": 13}, "end_point": {"row": 260, "column": 19}}, {"id": 1260, "type": "-", "text": "-", "parent": 1258, "children": [], "start_point": {"row": 260, "column": 20}, "end_point": {"row": 260, "column": 21}}, {"id": 1261, "type": "number_literal", "text": "1", "parent": 1258, "children": [], "start_point": {"row": 260, "column": 22}, "end_point": {"row": 260, "column": 23}}, {"id": 1262, "type": "=", "text": "=", "parent": 1255, "children": [], "start_point": {"row": 260, "column": 25}, "end_point": {"row": 260, "column": 26}}, {"id": 1263, "type": "call_expression", "text": "strndup(next, n)", "parent": 1255, "children": [1264, 1265], "start_point": {"row": 260, "column": 27}, "end_point": {"row": 260, "column": 43}}, {"id": 1264, "type": "identifier", "text": "strndup", "parent": 1263, "children": [], "start_point": {"row": 260, "column": 27}, "end_point": {"row": 260, "column": 34}}, {"id": 1265, "type": "argument_list", "text": "(next, n)", "parent": 1263, "children": [1266, 1267], "start_point": {"row": 260, "column": 34}, "end_point": {"row": 260, "column": 43}}, {"id": 1266, "type": "identifier", "text": "next", "parent": 1265, "children": [], "start_point": {"row": 260, "column": 35}, "end_point": {"row": 260, "column": 39}}, {"id": 1267, "type": "identifier", "text": "n", "parent": 1265, "children": [], "start_point": {"row": 260, "column": 41}, "end_point": {"row": 260, "column": 42}}, {"id": 1268, "type": "assignment_expression", "text": "args[n_args] = NULL", "parent": 1202, "children": [1269, 1272, 1273], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 27}}, {"id": 1269, "type": "subscript_expression", "text": "args[n_args]", "parent": 1268, "children": [1270, 1271], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 20}}, {"id": 1270, "type": "identifier", "text": "args", "parent": 1269, "children": [], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 12}}, {"id": 1271, "type": "identifier", "text": "n_args", "parent": 1269, "children": [], "start_point": {"row": 261, "column": 13}, "end_point": {"row": 261, "column": 19}}, {"id": 1272, "type": "=", "text": "=", "parent": 1268, "children": [], "start_point": {"row": 261, "column": 21}, "end_point": {"row": 261, "column": 22}}, {"id": 1273, "type": "null", "text": "NULL", "parent": 1268, "children": [1274], "start_point": {"row": 261, "column": 23}, "end_point": {"row": 261, "column": 27}}, {"id": 1274, "type": "NULL", "text": "NULL", "parent": 1273, "children": [], "start_point": {"row": 261, "column": 23}, "end_point": {"row": 261, "column": 27}}, {"id": 1275, "type": "assignment_expression", "text": "next = strchrnul(next, ' ')", "parent": 1202, "children": [1276, 1277, 1278], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 35}}, {"id": 1276, "type": "identifier", "text": "next", "parent": 1275, "children": [], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 12}}, {"id": 1277, "type": "=", "text": "=", "parent": 1275, "children": [], "start_point": {"row": 263, "column": 13}, "end_point": {"row": 263, "column": 14}}, {"id": 1278, "type": "call_expression", "text": "strchrnul(next, ' ')", "parent": 1275, "children": [1279, 1280], "start_point": {"row": 263, "column": 15}, "end_point": {"row": 263, "column": 35}}, {"id": 1279, "type": "identifier", "text": "strchrnul", "parent": 1278, "children": [], "start_point": {"row": 263, "column": 15}, "end_point": {"row": 263, "column": 24}}, {"id": 1280, "type": "argument_list", "text": "(next, ' ')", "parent": 1278, "children": [1281, 1282], "start_point": {"row": 263, "column": 24}, "end_point": {"row": 263, "column": 35}}, {"id": 1281, "type": "identifier", "text": "next", "parent": 1280, "children": [], "start_point": {"row": 263, "column": 25}, "end_point": {"row": 263, "column": 29}}, {"id": 1282, "type": "char_literal", "text": "' '", "parent": 1280, "children": [1283, 1284, 1285], "start_point": {"row": 263, "column": 31}, "end_point": {"row": 263, "column": 34}}, {"id": 1283, "type": "'", "text": "'", "parent": 1282, "children": [], "start_point": {"row": 263, "column": 31}, "end_point": {"row": 263, "column": 32}}, {"id": 1284, "type": "character", "text": " ", "parent": 1282, "children": [], "start_point": {"row": 263, "column": 32}, "end_point": {"row": 263, "column": 33}}, {"id": 1285, "type": "'", "text": "'", "parent": 1282, "children": [], "start_point": {"row": 263, "column": 33}, "end_point": {"row": 263, "column": 34}}, {"id": 1286, "type": "if_statement", "text": "if (!args) {\n return;\n }", "parent": 1136, "children": [1287], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 268, "column": 5}}, {"id": 1287, "type": "parenthesized_expression", "text": "(!args)", "parent": 1286, "children": [1288], "start_point": {"row": 266, "column": 7}, "end_point": {"row": 266, "column": 14}}, {"id": 1288, "type": "unary_expression", "text": "!args", "parent": 1287, "children": [1289, 1290], "start_point": {"row": 266, "column": 8}, "end_point": {"row": 266, "column": 13}}, {"id": 1289, "type": "!", "text": "!", "parent": 1288, "children": [], "start_point": {"row": 266, "column": 8}, "end_point": {"row": 266, "column": 9}}, {"id": 1290, "type": "identifier", "text": "args", "parent": 1288, "children": [], "start_point": {"row": 266, "column": 9}, "end_point": {"row": 266, "column": 13}}, {"id": 1291, "type": "return_statement", "text": "return;", "parent": 1286, "children": [], "start_point": {"row": 267, "column": 8}, "end_point": {"row": 267, "column": 15}}, {"id": 1292, "type": "declaration", "text": "int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args);", "parent": 1136, "children": [1293, 1294], "start_point": {"row": 270, "column": 4}, "end_point": {"row": 270, "column": 76}}, {"id": 1293, "type": "primitive_type", "text": "int32_t", "parent": 1292, "children": [], "start_point": {"row": 270, "column": 4}, "end_point": {"row": 270, "column": 11}}, {"id": 1294, "type": "init_declarator", "text": "ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args)", "parent": 1292, "children": [1295, 1296, 1297], "start_point": {"row": 270, "column": 12}, "end_point": {"row": 270, "column": 75}}, {"id": 1295, "type": "identifier", "text": "ret", "parent": 1294, "children": [], "start_point": {"row": 270, "column": 12}, "end_point": {"row": 270, "column": 15}}, {"id": 1296, "type": "=", "text": "=", "parent": 1294, "children": [], "start_point": {"row": 270, "column": 16}, "end_point": {"row": 270, "column": 17}}, {"id": 1297, "type": "call_expression", "text": "syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args)", "parent": 1294, "children": [1298, 1299], "start_point": {"row": 270, "column": 18}, "end_point": {"row": 270, "column": 75}}, {"id": 1298, "type": "identifier", "text": "syscall2", "parent": 1297, "children": [], "start_point": {"row": 270, "column": 18}, "end_point": {"row": 270, "column": 26}}, {"id": 1299, "type": "argument_list", "text": "(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args)", "parent": 1297, "children": [1300, 1301, 1307], "start_point": {"row": 270, "column": 26}, "end_point": {"row": 270, "column": 75}}, {"id": 1300, "type": "identifier", "text": "SYS_EXEC", "parent": 1299, "children": [], "start_point": {"row": 270, "column": 27}, "end_point": {"row": 270, "column": 35}}, {"id": 1301, "type": "cast_expression", "text": "(uintptr_t) args[0]", "parent": 1299, "children": [1302, 1304], "start_point": {"row": 270, "column": 37}, "end_point": {"row": 270, "column": 56}}, {"id": 1302, "type": "type_descriptor", "text": "uintptr_t", "parent": 1301, "children": [1303], "start_point": {"row": 270, "column": 38}, "end_point": {"row": 270, "column": 47}}, {"id": 1303, "type": "primitive_type", "text": "uintptr_t", "parent": 1302, "children": [], "start_point": {"row": 270, "column": 38}, "end_point": {"row": 270, "column": 47}}, {"id": 1304, "type": "subscript_expression", "text": "args[0]", "parent": 1301, "children": [1305, 1306], "start_point": {"row": 270, "column": 49}, "end_point": {"row": 270, "column": 56}}, {"id": 1305, "type": "identifier", "text": "args", "parent": 1304, "children": [], "start_point": {"row": 270, "column": 49}, "end_point": {"row": 270, "column": 53}}, {"id": 1306, "type": "number_literal", "text": "0", "parent": 1304, "children": [], "start_point": {"row": 270, "column": 54}, "end_point": {"row": 270, "column": 55}}, {"id": 1307, "type": "cast_expression", "text": "(uintptr_t) args", "parent": 1299, "children": [1308, 1310], "start_point": {"row": 270, "column": 58}, "end_point": {"row": 270, "column": 74}}, {"id": 1308, "type": "type_descriptor", "text": "uintptr_t", "parent": 1307, "children": [1309], "start_point": {"row": 270, "column": 59}, "end_point": {"row": 270, "column": 68}}, {"id": 1309, "type": "primitive_type", "text": "uintptr_t", "parent": 1308, "children": [], "start_point": {"row": 270, "column": 59}, "end_point": {"row": 270, "column": 68}}, {"id": 1310, "type": "identifier", "text": "args", "parent": 1307, "children": [], "start_point": {"row": 270, "column": 70}, "end_point": {"row": 270, "column": 74}}, {"id": 1311, "type": "while_statement", "text": "while (args && *args) {\n free(*args);\n args++;\n }", "parent": 1136, "children": [1312], "start_point": {"row": 272, "column": 4}, "end_point": {"row": 275, "column": 5}}, {"id": 1312, "type": "parenthesized_expression", "text": "(args && *args)", "parent": 1311, "children": [1313], "start_point": {"row": 272, "column": 10}, "end_point": {"row": 272, "column": 25}}, {"id": 1313, "type": "binary_expression", "text": "args && *args", "parent": 1312, "children": [1314, 1315, 1316], "start_point": {"row": 272, "column": 11}, "end_point": {"row": 272, "column": 24}}, {"id": 1314, "type": "identifier", "text": "args", "parent": 1313, "children": [], "start_point": {"row": 272, "column": 11}, "end_point": {"row": 272, "column": 15}}, {"id": 1315, "type": "&&", "text": "&&", "parent": 1313, "children": [], "start_point": {"row": 272, "column": 16}, "end_point": {"row": 272, "column": 18}}, {"id": 1316, "type": "pointer_expression", "text": "*args", "parent": 1313, "children": [1317, 1318], "start_point": {"row": 272, "column": 19}, "end_point": {"row": 272, "column": 24}}, {"id": 1317, "type": "*", "text": "*", "parent": 1316, "children": [], "start_point": {"row": 272, "column": 19}, "end_point": {"row": 272, "column": 20}}, {"id": 1318, "type": "identifier", "text": "args", "parent": 1316, "children": [], "start_point": {"row": 272, "column": 20}, "end_point": {"row": 272, "column": 24}}, {"id": 1319, "type": "call_expression", "text": "free(*args)", "parent": 1311, "children": [1320, 1321], "start_point": {"row": 273, "column": 8}, "end_point": {"row": 273, "column": 19}}, {"id": 1320, "type": "identifier", "text": "free", "parent": 1319, "children": [], "start_point": {"row": 273, "column": 8}, "end_point": {"row": 273, "column": 12}}, {"id": 1321, "type": "argument_list", "text": "(*args)", "parent": 1319, "children": [1322], "start_point": {"row": 273, "column": 12}, "end_point": {"row": 273, "column": 19}}, {"id": 1322, "type": "pointer_expression", "text": "*args", "parent": 1321, "children": [1323, 1324], "start_point": {"row": 273, "column": 13}, "end_point": {"row": 273, "column": 18}}, {"id": 1323, "type": "*", "text": "*", "parent": 1322, "children": [], "start_point": {"row": 273, "column": 13}, "end_point": {"row": 273, "column": 14}}, {"id": 1324, "type": "identifier", "text": "args", "parent": 1322, "children": [], "start_point": {"row": 273, "column": 14}, "end_point": {"row": 273, "column": 18}}, {"id": 1325, "type": "update_expression", "text": "args++", "parent": 1311, "children": [1326, 1327], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 14}}, {"id": 1326, "type": "identifier", "text": "args", "parent": 1325, "children": [], "start_point": {"row": 274, "column": 8}, "end_point": {"row": 274, "column": 12}}, {"id": 1327, "type": "++", "text": "++", "parent": 1325, "children": [], "start_point": {"row": 274, "column": 12}, "end_point": {"row": 274, "column": 14}}, {"id": 1328, "type": "call_expression", "text": "free(args)", "parent": 1136, "children": [1329, 1330], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 277, "column": 14}}, {"id": 1329, "type": "identifier", "text": "free", "parent": 1328, "children": [], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 277, "column": 8}}, {"id": 1330, "type": "argument_list", "text": "(args)", "parent": 1328, "children": [1331], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 14}}, {"id": 1331, "type": "identifier", "text": "args", "parent": 1330, "children": [], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 13}}, {"id": 1332, "type": "if_statement", "text": "if (ret != 0) {\n str_append(text_buf, \"\\ninvalid command: \");\n str_append(text_buf, cmd);\n }", "parent": 1136, "children": [1333], "start_point": {"row": 279, "column": 4}, "end_point": {"row": 282, "column": 5}}, {"id": 1333, "type": "parenthesized_expression", "text": "(ret != 0)", "parent": 1332, "children": [1334], "start_point": {"row": 279, "column": 7}, "end_point": {"row": 279, "column": 17}}, {"id": 1334, "type": "binary_expression", "text": "ret != 0", "parent": 1333, "children": [1335, 1336, 1337], "start_point": {"row": 279, "column": 8}, "end_point": {"row": 279, "column": 16}}, {"id": 1335, "type": "identifier", "text": "ret", "parent": 1334, "children": [], "start_point": {"row": 279, "column": 8}, "end_point": {"row": 279, "column": 11}}, {"id": 1336, "type": "!=", "text": "!=", "parent": 1334, "children": [], "start_point": {"row": 279, "column": 12}, "end_point": {"row": 279, "column": 14}}, {"id": 1337, "type": "number_literal", "text": "0", "parent": 1334, "children": [], "start_point": {"row": 279, "column": 15}, "end_point": {"row": 279, "column": 16}}, {"id": 1338, "type": "call_expression", "text": "str_append(text_buf, \"\\ninvalid command: \")", "parent": 1332, "children": [1339, 1340], "start_point": {"row": 280, "column": 8}, "end_point": {"row": 280, "column": 51}}, {"id": 1339, "type": "identifier", "text": "str_append", "parent": 1338, "children": [], "start_point": {"row": 280, "column": 8}, "end_point": {"row": 280, "column": 18}}, {"id": 1340, "type": "argument_list", "text": "(text_buf, \"\\ninvalid command: \")", "parent": 1338, "children": [1341, 1342], "start_point": {"row": 280, "column": 18}, "end_point": {"row": 280, "column": 51}}, {"id": 1341, "type": "identifier", "text": "text_buf", "parent": 1340, "children": [], "start_point": {"row": 280, "column": 19}, "end_point": {"row": 280, "column": 27}}, {"id": 1342, "type": "string_literal", "text": "\"\\ninvalid command: \"", "parent": 1340, "children": [1343], "start_point": {"row": 280, "column": 29}, "end_point": {"row": 280, "column": 50}}, {"id": 1343, "type": "escape_sequence", "text": "\\n", "parent": 1342, "children": [], "start_point": {"row": 280, "column": 30}, "end_point": {"row": 280, "column": 32}}, {"id": 1344, "type": "call_expression", "text": "str_append(text_buf, cmd)", "parent": 1332, "children": [1345, 1346], "start_point": {"row": 281, "column": 8}, "end_point": {"row": 281, "column": 33}}, {"id": 1345, "type": "identifier", "text": "str_append", "parent": 1344, "children": [], "start_point": {"row": 281, "column": 8}, "end_point": {"row": 281, "column": 18}}, {"id": 1346, "type": "argument_list", "text": "(text_buf, cmd)", "parent": 1344, "children": [1347, 1348], "start_point": {"row": 281, "column": 18}, "end_point": {"row": 281, "column": 33}}, {"id": 1347, "type": "identifier", "text": "text_buf", "parent": 1346, "children": [], "start_point": {"row": 281, "column": 19}, "end_point": {"row": 281, "column": 27}}, {"id": 1348, "type": "identifier", "text": "cmd", "parent": 1346, "children": [], "start_point": {"row": 281, "column": 29}, "end_point": {"row": 281, "column": 32}}, {"id": 1349, "type": "function_definition", "text": "uint32_t count_lines(str_t* str) {\n char* text_view = str->buf;\n uint32_t n_lines = 0;\n\n while (text_view < &str->buf[str->len]) {\n char* lf = strchrnul(text_view, '\\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }\n\n return n_lines;\n}", "parent": null, "children": [1350, 1351], "start_point": {"row": 285, "column": 0}, "end_point": {"row": 303, "column": 1}}, {"id": 1350, "type": "primitive_type", "text": "uint32_t", "parent": 1349, "children": [], "start_point": {"row": 285, "column": 0}, "end_point": {"row": 285, "column": 8}}, {"id": 1351, "type": "function_declarator", "text": "count_lines(str_t* str)", "parent": 1349, "children": [1352, 1353], "start_point": {"row": 285, "column": 9}, "end_point": {"row": 285, "column": 32}}, {"id": 1352, "type": "identifier", "text": "count_lines", "parent": 1351, "children": [], "start_point": {"row": 285, "column": 9}, "end_point": {"row": 285, "column": 20}}, {"id": 1353, "type": "parameter_list", "text": "(str_t* str)", "parent": 1351, "children": [1354], "start_point": {"row": 285, "column": 20}, "end_point": {"row": 285, "column": 32}}, {"id": 1354, "type": "parameter_declaration", "text": "str_t* str", "parent": 1353, "children": [1355, 1356], "start_point": {"row": 285, "column": 21}, "end_point": {"row": 285, "column": 31}}, {"id": 1355, "type": "type_identifier", "text": "str_t", "parent": 1354, "children": [], "start_point": {"row": 285, "column": 21}, "end_point": {"row": 285, "column": 26}}, {"id": 1356, "type": "pointer_declarator", "text": "* str", "parent": 1354, "children": [1357, 1358], "start_point": {"row": 285, "column": 26}, "end_point": {"row": 285, "column": 31}}, {"id": 1357, "type": "*", "text": "*", "parent": 1356, "children": [], "start_point": {"row": 285, "column": 26}, "end_point": {"row": 285, "column": 27}}, {"id": 1358, "type": "identifier", "text": "str", "parent": 1356, "children": [], "start_point": {"row": 285, "column": 28}, "end_point": {"row": 285, "column": 31}}, {"id": 1359, "type": "declaration", "text": "char* text_view = str->buf;", "parent": 1349, "children": [1360, 1361], "start_point": {"row": 286, "column": 4}, "end_point": {"row": 286, "column": 31}}, {"id": 1360, "type": "primitive_type", "text": "char", "parent": 1359, "children": [], "start_point": {"row": 286, "column": 4}, "end_point": {"row": 286, "column": 8}}, {"id": 1361, "type": "init_declarator", "text": "* text_view = str->buf", "parent": 1359, "children": [1362, 1365, 1366], "start_point": {"row": 286, "column": 8}, "end_point": {"row": 286, "column": 30}}, {"id": 1362, "type": "pointer_declarator", "text": "* text_view", "parent": 1361, "children": [1363, 1364], "start_point": {"row": 286, "column": 8}, "end_point": {"row": 286, "column": 19}}, {"id": 1363, "type": "*", "text": "*", "parent": 1362, "children": [], "start_point": {"row": 286, "column": 8}, "end_point": {"row": 286, "column": 9}}, {"id": 1364, "type": "identifier", "text": "text_view", "parent": 1362, "children": [], "start_point": {"row": 286, "column": 10}, "end_point": {"row": 286, "column": 19}}, {"id": 1365, "type": "=", "text": "=", "parent": 1361, "children": [], "start_point": {"row": 286, "column": 20}, "end_point": {"row": 286, "column": 21}}, {"id": 1366, "type": "field_expression", "text": "str->buf", "parent": 1361, "children": [1367, 1368], "start_point": {"row": 286, "column": 22}, "end_point": {"row": 286, "column": 30}}, {"id": 1367, "type": "identifier", "text": "str", "parent": 1366, "children": [], "start_point": {"row": 286, "column": 22}, "end_point": {"row": 286, "column": 25}}, {"id": 1368, "type": "field_identifier", "text": "buf", "parent": 1366, "children": [], "start_point": {"row": 286, "column": 27}, "end_point": {"row": 286, "column": 30}}, {"id": 1369, "type": "declaration", "text": "uint32_t n_lines = 0;", "parent": 1349, "children": [1370, 1371], "start_point": {"row": 287, "column": 4}, "end_point": {"row": 287, "column": 25}}, {"id": 1370, "type": "primitive_type", "text": "uint32_t", "parent": 1369, "children": [], "start_point": {"row": 287, "column": 4}, "end_point": {"row": 287, "column": 12}}, {"id": 1371, "type": "init_declarator", "text": "n_lines = 0", "parent": 1369, "children": [1372, 1373, 1374], "start_point": {"row": 287, "column": 13}, "end_point": {"row": 287, "column": 24}}, {"id": 1372, "type": "identifier", "text": "n_lines", "parent": 1371, "children": [], "start_point": {"row": 287, "column": 13}, "end_point": {"row": 287, "column": 20}}, {"id": 1373, "type": "=", "text": "=", "parent": 1371, "children": [], "start_point": {"row": 287, "column": 21}, "end_point": {"row": 287, "column": 22}}, {"id": 1374, "type": "number_literal", "text": "0", "parent": 1371, "children": [], "start_point": {"row": 287, "column": 23}, "end_point": {"row": 287, "column": 24}}, {"id": 1375, "type": "while_statement", "text": "while (text_view < &str->buf[str->len]) {\n char* lf = strchrnul(text_view, '\\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }", "parent": 1349, "children": [1376], "start_point": {"row": 289, "column": 4}, "end_point": {"row": 300, "column": 5}}, {"id": 1376, "type": "parenthesized_expression", "text": "(text_view < &str->buf[str->len])", "parent": 1375, "children": [1377], "start_point": {"row": 289, "column": 10}, "end_point": {"row": 289, "column": 43}}, {"id": 1377, "type": "binary_expression", "text": "text_view < &str->buf[str->len]", "parent": 1376, "children": [1378, 1379, 1380], "start_point": {"row": 289, "column": 11}, "end_point": {"row": 289, "column": 42}}, {"id": 1378, "type": "identifier", "text": "text_view", "parent": 1377, "children": [], "start_point": {"row": 289, "column": 11}, "end_point": {"row": 289, "column": 20}}, {"id": 1379, "type": "<", "text": "<", "parent": 1377, "children": [], "start_point": {"row": 289, "column": 21}, "end_point": {"row": 289, "column": 22}}, {"id": 1380, "type": "pointer_expression", "text": "&str->buf[str->len]", "parent": 1377, "children": [1381], "start_point": {"row": 289, "column": 23}, "end_point": {"row": 289, "column": 42}}, {"id": 1381, "type": "subscript_expression", "text": "str->buf[str->len]", "parent": 1380, "children": [1382, 1385], "start_point": {"row": 289, "column": 24}, "end_point": {"row": 289, "column": 42}}, {"id": 1382, "type": "field_expression", "text": "str->buf", "parent": 1381, "children": [1383, 1384], "start_point": {"row": 289, "column": 24}, "end_point": {"row": 289, "column": 32}}, {"id": 1383, "type": "identifier", "text": "str", "parent": 1382, "children": [], "start_point": {"row": 289, "column": 24}, "end_point": {"row": 289, "column": 27}}, {"id": 1384, "type": "field_identifier", "text": "buf", "parent": 1382, "children": [], "start_point": {"row": 289, "column": 29}, "end_point": {"row": 289, "column": 32}}, {"id": 1385, "type": "field_expression", "text": "str->len", "parent": 1381, "children": [1386, 1387], "start_point": {"row": 289, "column": 33}, "end_point": {"row": 289, "column": 41}}, {"id": 1386, "type": "identifier", "text": "str", "parent": 1385, "children": [], "start_point": {"row": 289, "column": 33}, "end_point": {"row": 289, "column": 36}}, {"id": 1387, "type": "field_identifier", "text": "len", "parent": 1385, "children": [], "start_point": {"row": 289, "column": 38}, "end_point": {"row": 289, "column": 41}}, {"id": 1388, "type": "declaration", "text": "char* lf = strchrnul(text_view, '\\n');", "parent": 1375, "children": [1389, 1390], "start_point": {"row": 290, "column": 8}, "end_point": {"row": 290, "column": 46}}, {"id": 1389, "type": "primitive_type", "text": "char", "parent": 1388, "children": [], "start_point": {"row": 290, "column": 8}, "end_point": {"row": 290, "column": 12}}, {"id": 1390, "type": "init_declarator", "text": "* lf = strchrnul(text_view, '\\n')", "parent": 1388, "children": [1391, 1394, 1395], "start_point": {"row": 290, "column": 12}, "end_point": {"row": 290, "column": 45}}, {"id": 1391, "type": "pointer_declarator", "text": "* lf", "parent": 1390, "children": [1392, 1393], "start_point": {"row": 290, "column": 12}, "end_point": {"row": 290, "column": 16}}, {"id": 1392, "type": "*", "text": "*", "parent": 1391, "children": [], "start_point": {"row": 290, "column": 12}, "end_point": {"row": 290, "column": 13}}, {"id": 1393, "type": "identifier", "text": "lf", "parent": 1391, "children": [], "start_point": {"row": 290, "column": 14}, "end_point": {"row": 290, "column": 16}}, {"id": 1394, "type": "=", "text": "=", "parent": 1390, "children": [], "start_point": {"row": 290, "column": 17}, "end_point": {"row": 290, "column": 18}}, {"id": 1395, "type": "call_expression", "text": "strchrnul(text_view, '\\n')", "parent": 1390, "children": [1396, 1397], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 45}}, {"id": 1396, "type": "identifier", "text": "strchrnul", "parent": 1395, "children": [], "start_point": {"row": 290, "column": 19}, "end_point": {"row": 290, "column": 28}}, {"id": 1397, "type": "argument_list", "text": "(text_view, '\\n')", "parent": 1395, "children": [1398, 1399], "start_point": {"row": 290, "column": 28}, "end_point": {"row": 290, "column": 45}}, {"id": 1398, "type": "identifier", "text": "text_view", "parent": 1397, "children": [], "start_point": {"row": 290, "column": 29}, "end_point": {"row": 290, "column": 38}}, {"id": 1399, "type": "char_literal", "text": "'\\n'", "parent": 1397, "children": [1400, 1401, 1402], "start_point": {"row": 290, "column": 40}, "end_point": {"row": 290, "column": 44}}, {"id": 1400, "type": "'", "text": "'", "parent": 1399, "children": [], "start_point": {"row": 290, "column": 40}, "end_point": {"row": 290, "column": 41}}, {"id": 1401, "type": "escape_sequence", "text": "\\n", "parent": 1399, "children": [], "start_point": {"row": 290, "column": 41}, "end_point": {"row": 290, "column": 43}}, {"id": 1402, "type": "'", "text": "'", "parent": 1399, "children": [], "start_point": {"row": 290, "column": 43}, "end_point": {"row": 290, "column": 44}}, {"id": 1403, "type": "declaration", "text": "uint32_t line_len = (uint32_t) (lf - text_view);", "parent": 1375, "children": [1404, 1405], "start_point": {"row": 291, "column": 8}, "end_point": {"row": 291, "column": 56}}, {"id": 1404, "type": "primitive_type", "text": "uint32_t", "parent": 1403, "children": [], "start_point": {"row": 291, "column": 8}, "end_point": {"row": 291, "column": 16}}, {"id": 1405, "type": "init_declarator", "text": "line_len = (uint32_t) (lf - text_view)", "parent": 1403, "children": [1406, 1407, 1408], "start_point": {"row": 291, "column": 17}, "end_point": {"row": 291, "column": 55}}, {"id": 1406, "type": "identifier", "text": "line_len", "parent": 1405, "children": [], "start_point": {"row": 291, "column": 17}, "end_point": {"row": 291, "column": 25}}, {"id": 1407, "type": "=", "text": "=", "parent": 1405, "children": [], "start_point": {"row": 291, "column": 26}, "end_point": {"row": 291, "column": 27}}, {"id": 1408, "type": "cast_expression", "text": "(uint32_t) (lf - text_view)", "parent": 1405, "children": [1409, 1411], "start_point": {"row": 291, "column": 28}, "end_point": {"row": 291, "column": 55}}, {"id": 1409, "type": "type_descriptor", "text": "uint32_t", "parent": 1408, "children": [1410], "start_point": {"row": 291, "column": 29}, "end_point": {"row": 291, "column": 37}}, {"id": 1410, "type": "primitive_type", "text": "uint32_t", "parent": 1409, "children": [], "start_point": {"row": 291, "column": 29}, "end_point": {"row": 291, "column": 37}}, {"id": 1411, "type": "parenthesized_expression", "text": "(lf - text_view)", "parent": 1408, "children": [1412], "start_point": {"row": 291, "column": 39}, "end_point": {"row": 291, "column": 55}}, {"id": 1412, "type": "binary_expression", "text": "lf - text_view", "parent": 1411, "children": [1413, 1414, 1415], "start_point": {"row": 291, "column": 40}, "end_point": {"row": 291, "column": 54}}, {"id": 1413, "type": "identifier", "text": "lf", "parent": 1412, "children": [], "start_point": {"row": 291, "column": 40}, "end_point": {"row": 291, "column": 42}}, {"id": 1414, "type": "-", "text": "-", "parent": 1412, "children": [], "start_point": {"row": 291, "column": 43}, "end_point": {"row": 291, "column": 44}}, {"id": 1415, "type": "identifier", "text": "text_view", "parent": 1412, "children": [], "start_point": {"row": 291, "column": 45}, "end_point": {"row": 291, "column": 54}}, {"id": 1416, "type": "if_statement", "text": "if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }", "parent": 1375, "children": [1417, 1429], "start_point": {"row": 293, "column": 8}, "end_point": {"row": 297, "column": 9}}, {"id": 1417, "type": "parenthesized_expression", "text": "(line_len <= max_col)", "parent": 1416, "children": [1418], "start_point": {"row": 293, "column": 11}, "end_point": {"row": 293, "column": 32}}, {"id": 1418, "type": "binary_expression", "text": "line_len <= max_col", "parent": 1417, "children": [1419, 1420, 1421], "start_point": {"row": 293, "column": 12}, "end_point": {"row": 293, "column": 31}}, {"id": 1419, "type": "identifier", "text": "line_len", "parent": 1418, "children": [], "start_point": {"row": 293, "column": 12}, "end_point": {"row": 293, "column": 20}}, {"id": 1420, "type": "<=", "text": "<=", "parent": 1418, "children": [], "start_point": {"row": 293, "column": 21}, "end_point": {"row": 293, "column": 23}}, {"id": 1421, "type": "identifier", "text": "max_col", "parent": 1418, "children": [], "start_point": {"row": 293, "column": 24}, "end_point": {"row": 293, "column": 31}}, {"id": 1422, "type": "assignment_expression", "text": "text_view += line_len + 1", "parent": 1416, "children": [1423, 1424, 1425], "start_point": {"row": 294, "column": 12}, "end_point": {"row": 294, "column": 37}}, {"id": 1423, "type": "identifier", "text": "text_view", "parent": 1422, "children": [], "start_point": {"row": 294, "column": 12}, "end_point": {"row": 294, "column": 21}}, {"id": 1424, "type": "+=", "text": "+=", "parent": 1422, "children": [], "start_point": {"row": 294, "column": 22}, "end_point": {"row": 294, "column": 24}}, {"id": 1425, "type": "binary_expression", "text": "line_len + 1", "parent": 1422, "children": [1426, 1427, 1428], "start_point": {"row": 294, "column": 25}, "end_point": {"row": 294, "column": 37}}, {"id": 1426, "type": "identifier", "text": "line_len", "parent": 1425, "children": [], "start_point": {"row": 294, "column": 25}, "end_point": {"row": 294, "column": 33}}, {"id": 1427, "type": "+", "text": "+", "parent": 1425, "children": [], "start_point": {"row": 294, "column": 34}, "end_point": {"row": 294, "column": 35}}, {"id": 1428, "type": "number_literal", "text": "1", "parent": 1425, "children": [], "start_point": {"row": 294, "column": 36}, "end_point": {"row": 294, "column": 37}}, {"id": 1429, "type": "else_clause", "text": "else {\n text_view += max_col;\n }", "parent": 1416, "children": [], "start_point": {"row": 295, "column": 10}, "end_point": {"row": 297, "column": 9}}, {"id": 1430, "type": "assignment_expression", "text": "text_view += max_col", "parent": 1429, "children": [1431, 1432, 1433], "start_point": {"row": 296, "column": 12}, "end_point": {"row": 296, "column": 32}}, {"id": 1431, "type": "identifier", "text": "text_view", "parent": 1430, "children": [], "start_point": {"row": 296, "column": 12}, "end_point": {"row": 296, "column": 21}}, {"id": 1432, "type": "+=", "text": "+=", "parent": 1430, "children": [], "start_point": {"row": 296, "column": 22}, "end_point": {"row": 296, "column": 24}}, {"id": 1433, "type": "identifier", "text": "max_col", "parent": 1430, "children": [], "start_point": {"row": 296, "column": 25}, "end_point": {"row": 296, "column": 32}}, {"id": 1434, "type": "assignment_expression", "text": "n_lines += 1", "parent": 1375, "children": [1435, 1436, 1437], "start_point": {"row": 299, "column": 8}, "end_point": {"row": 299, "column": 20}}, {"id": 1435, "type": "identifier", "text": "n_lines", "parent": 1434, "children": [], "start_point": {"row": 299, "column": 8}, "end_point": {"row": 299, "column": 15}}, {"id": 1436, "type": "+=", "text": "+=", "parent": 1434, "children": [], "start_point": {"row": 299, "column": 16}, "end_point": {"row": 299, "column": 18}}, {"id": 1437, "type": "number_literal", "text": "1", "parent": 1434, "children": [], "start_point": {"row": 299, "column": 19}, "end_point": {"row": 299, "column": 20}}, {"id": 1438, "type": "return_statement", "text": "return n_lines;", "parent": 1349, "children": [1439], "start_point": {"row": 302, "column": 4}, "end_point": {"row": 302, "column": 19}}, {"id": 1439, "type": "identifier", "text": "n_lines", "parent": 1438, "children": [], "start_point": {"row": 302, "column": 11}, "end_point": {"row": 302, "column": 18}}, {"id": 1440, "type": "function_definition", "text": "char* scroll_view(char* str) {\n char* lf = strchrnul(str, '\\n');\n uint32_t line_len = (uint32_t) (lf - str);\n\n if (line_len <= max_col) {\n return lf + 1;\n }\n\n return str + max_col;\n}", "parent": null, "children": [1441, 1442], "start_point": {"row": 307, "column": 0}, "end_point": {"row": 316, "column": 1}}, {"id": 1441, "type": "primitive_type", "text": "char", "parent": 1440, "children": [], "start_point": {"row": 307, "column": 0}, "end_point": {"row": 307, "column": 4}}, {"id": 1442, "type": "pointer_declarator", "text": "* scroll_view(char* str)", "parent": 1440, "children": [1443, 1444], "start_point": {"row": 307, "column": 4}, "end_point": {"row": 307, "column": 28}}, {"id": 1443, "type": "*", "text": "*", "parent": 1442, "children": [], "start_point": {"row": 307, "column": 4}, "end_point": {"row": 307, "column": 5}}, {"id": 1444, "type": "function_declarator", "text": "scroll_view(char* str)", "parent": 1442, "children": [1445, 1446], "start_point": {"row": 307, "column": 6}, "end_point": {"row": 307, "column": 28}}, {"id": 1445, "type": "identifier", "text": "scroll_view", "parent": 1444, "children": [], "start_point": {"row": 307, "column": 6}, "end_point": {"row": 307, "column": 17}}, {"id": 1446, "type": "parameter_list", "text": "(char* str)", "parent": 1444, "children": [1447], "start_point": {"row": 307, "column": 17}, "end_point": {"row": 307, "column": 28}}, {"id": 1447, "type": "parameter_declaration", "text": "char* str", "parent": 1446, "children": [1448, 1449], "start_point": {"row": 307, "column": 18}, "end_point": {"row": 307, "column": 27}}, {"id": 1448, "type": "primitive_type", "text": "char", "parent": 1447, "children": [], "start_point": {"row": 307, "column": 18}, "end_point": {"row": 307, "column": 22}}, {"id": 1449, "type": "pointer_declarator", "text": "* str", "parent": 1447, "children": [1450, 1451], "start_point": {"row": 307, "column": 22}, "end_point": {"row": 307, "column": 27}}, {"id": 1450, "type": "*", "text": "*", "parent": 1449, "children": [], "start_point": {"row": 307, "column": 22}, "end_point": {"row": 307, "column": 23}}, {"id": 1451, "type": "identifier", "text": "str", "parent": 1449, "children": [], "start_point": {"row": 307, "column": 24}, "end_point": {"row": 307, "column": 27}}, {"id": 1452, "type": "declaration", "text": "char* lf = strchrnul(str, '\\n');", "parent": 1440, "children": [1453, 1454], "start_point": {"row": 308, "column": 4}, "end_point": {"row": 308, "column": 36}}, {"id": 1453, "type": "primitive_type", "text": "char", "parent": 1452, "children": [], "start_point": {"row": 308, "column": 4}, "end_point": {"row": 308, "column": 8}}, {"id": 1454, "type": "init_declarator", "text": "* lf = strchrnul(str, '\\n')", "parent": 1452, "children": [1455, 1458, 1459], "start_point": {"row": 308, "column": 8}, "end_point": {"row": 308, "column": 35}}, {"id": 1455, "type": "pointer_declarator", "text": "* lf", "parent": 1454, "children": [1456, 1457], "start_point": {"row": 308, "column": 8}, "end_point": {"row": 308, "column": 12}}, {"id": 1456, "type": "*", "text": "*", "parent": 1455, "children": [], "start_point": {"row": 308, "column": 8}, "end_point": {"row": 308, "column": 9}}, {"id": 1457, "type": "identifier", "text": "lf", "parent": 1455, "children": [], "start_point": {"row": 308, "column": 10}, "end_point": {"row": 308, "column": 12}}, {"id": 1458, "type": "=", "text": "=", "parent": 1454, "children": [], "start_point": {"row": 308, "column": 13}, "end_point": {"row": 308, "column": 14}}, {"id": 1459, "type": "call_expression", "text": "strchrnul(str, '\\n')", "parent": 1454, "children": [1460, 1461], "start_point": {"row": 308, "column": 15}, "end_point": {"row": 308, "column": 35}}, {"id": 1460, "type": "identifier", "text": "strchrnul", "parent": 1459, "children": [], "start_point": {"row": 308, "column": 15}, "end_point": {"row": 308, "column": 24}}, {"id": 1461, "type": "argument_list", "text": "(str, '\\n')", "parent": 1459, "children": [1462, 1463], "start_point": {"row": 308, "column": 24}, "end_point": {"row": 308, "column": 35}}, {"id": 1462, "type": "identifier", "text": "str", "parent": 1461, "children": [], "start_point": {"row": 308, "column": 25}, "end_point": {"row": 308, "column": 28}}, {"id": 1463, "type": "char_literal", "text": "'\\n'", "parent": 1461, "children": [1464, 1465, 1466], "start_point": {"row": 308, "column": 30}, "end_point": {"row": 308, "column": 34}}, {"id": 1464, "type": "'", "text": "'", "parent": 1463, "children": [], "start_point": {"row": 308, "column": 30}, "end_point": {"row": 308, "column": 31}}, {"id": 1465, "type": "escape_sequence", "text": "\\n", "parent": 1463, "children": [], "start_point": {"row": 308, "column": 31}, "end_point": {"row": 308, "column": 33}}, {"id": 1466, "type": "'", "text": "'", "parent": 1463, "children": [], "start_point": {"row": 308, "column": 33}, "end_point": {"row": 308, "column": 34}}, {"id": 1467, "type": "declaration", "text": "uint32_t line_len = (uint32_t) (lf - str);", "parent": 1440, "children": [1468, 1469], "start_point": {"row": 309, "column": 4}, "end_point": {"row": 309, "column": 46}}, {"id": 1468, "type": "primitive_type", "text": "uint32_t", "parent": 1467, "children": [], "start_point": {"row": 309, "column": 4}, "end_point": {"row": 309, "column": 12}}, {"id": 1469, "type": "init_declarator", "text": "line_len = (uint32_t) (lf - str)", "parent": 1467, "children": [1470, 1471, 1472], "start_point": {"row": 309, "column": 13}, "end_point": {"row": 309, "column": 45}}, {"id": 1470, "type": "identifier", "text": "line_len", "parent": 1469, "children": [], "start_point": {"row": 309, "column": 13}, "end_point": {"row": 309, "column": 21}}, {"id": 1471, "type": "=", "text": "=", "parent": 1469, "children": [], "start_point": {"row": 309, "column": 22}, "end_point": {"row": 309, "column": 23}}, {"id": 1472, "type": "cast_expression", "text": "(uint32_t) (lf - str)", "parent": 1469, "children": [1473, 1475], "start_point": {"row": 309, "column": 24}, "end_point": {"row": 309, "column": 45}}, {"id": 1473, "type": "type_descriptor", "text": "uint32_t", "parent": 1472, "children": [1474], "start_point": {"row": 309, "column": 25}, "end_point": {"row": 309, "column": 33}}, {"id": 1474, "type": "primitive_type", "text": "uint32_t", "parent": 1473, "children": [], "start_point": {"row": 309, "column": 25}, "end_point": {"row": 309, "column": 33}}, {"id": 1475, "type": "parenthesized_expression", "text": "(lf - str)", "parent": 1472, "children": [1476], "start_point": {"row": 309, "column": 35}, "end_point": {"row": 309, "column": 45}}, {"id": 1476, "type": "binary_expression", "text": "lf - str", "parent": 1475, "children": [1477, 1478, 1479], "start_point": {"row": 309, "column": 36}, "end_point": {"row": 309, "column": 44}}, {"id": 1477, "type": "identifier", "text": "lf", "parent": 1476, "children": [], "start_point": {"row": 309, "column": 36}, "end_point": {"row": 309, "column": 38}}, {"id": 1478, "type": "-", "text": "-", "parent": 1476, "children": [], "start_point": {"row": 309, "column": 39}, "end_point": {"row": 309, "column": 40}}, {"id": 1479, "type": "identifier", "text": "str", "parent": 1476, "children": [], "start_point": {"row": 309, "column": 41}, "end_point": {"row": 309, "column": 44}}, {"id": 1480, "type": "if_statement", "text": "if (line_len <= max_col) {\n return lf + 1;\n }", "parent": 1440, "children": [1481], "start_point": {"row": 311, "column": 4}, "end_point": {"row": 313, "column": 5}}, {"id": 1481, "type": "parenthesized_expression", "text": "(line_len <= max_col)", "parent": 1480, "children": [1482], "start_point": {"row": 311, "column": 7}, "end_point": {"row": 311, "column": 28}}, {"id": 1482, "type": "binary_expression", "text": "line_len <= max_col", "parent": 1481, "children": [1483, 1484, 1485], "start_point": {"row": 311, "column": 8}, "end_point": {"row": 311, "column": 27}}, {"id": 1483, "type": "identifier", "text": "line_len", "parent": 1482, "children": [], "start_point": {"row": 311, "column": 8}, "end_point": {"row": 311, "column": 16}}, {"id": 1484, "type": "<=", "text": "<=", "parent": 1482, "children": [], "start_point": {"row": 311, "column": 17}, "end_point": {"row": 311, "column": 19}}, {"id": 1485, "type": "identifier", "text": "max_col", "parent": 1482, "children": [], "start_point": {"row": 311, "column": 20}, "end_point": {"row": 311, "column": 27}}, {"id": 1486, "type": "return_statement", "text": "return lf + 1;", "parent": 1480, "children": [1487], "start_point": {"row": 312, "column": 8}, "end_point": {"row": 312, "column": 22}}, {"id": 1487, "type": "binary_expression", "text": "lf + 1", "parent": 1486, "children": [1488, 1489, 1490], "start_point": {"row": 312, "column": 15}, "end_point": {"row": 312, "column": 21}}, {"id": 1488, "type": "identifier", "text": "lf", "parent": 1487, "children": [], "start_point": {"row": 312, "column": 15}, "end_point": {"row": 312, "column": 17}}, {"id": 1489, "type": "+", "text": "+", "parent": 1487, "children": [], "start_point": {"row": 312, "column": 18}, "end_point": {"row": 312, "column": 19}}, {"id": 1490, "type": "number_literal", "text": "1", "parent": 1487, "children": [], "start_point": {"row": 312, "column": 20}, "end_point": {"row": 312, "column": 21}}, {"id": 1491, "type": "return_statement", "text": "return str + max_col;", "parent": 1440, "children": [1492], "start_point": {"row": 315, "column": 4}, "end_point": {"row": 315, "column": 25}}, {"id": 1492, "type": "binary_expression", "text": "str + max_col", "parent": 1491, "children": [1493, 1494, 1495], "start_point": {"row": 315, "column": 11}, "end_point": {"row": 315, "column": 24}}, {"id": 1493, "type": "identifier", "text": "str", "parent": 1492, "children": [], "start_point": {"row": 315, "column": 11}, "end_point": {"row": 315, "column": 14}}, {"id": 1494, "type": "+", "text": "+", "parent": 1492, "children": [], "start_point": {"row": 315, "column": 15}, "end_point": {"row": 315, "column": 16}}, {"id": 1495, "type": "identifier", "text": "max_col", "parent": 1492, "children": [], "start_point": {"row": 315, "column": 17}, "end_point": {"row": 315, "column": 24}}]}, "node_categories": {"declarations": {"functions": [33, 48, 61, 71, 81, 96, 111, 123, 228, 230, 620, 622, 939, 943, 1009, 1011, 1029, 1031, 1136, 1138, 1349, 1351, 1440, 1444], "variables": [15, 19, 24, 27, 31, 36, 41, 46, 51, 54, 57, 64, 69, 74, 79, 84, 89, 94, 99, 104, 109, 114, 119, 126, 131, 137, 143, 149, 155, 167, 179, 187, 193, 199, 205, 210, 216, 222, 247, 258, 273, 287, 296, 304, 350, 363, 398, 404, 409, 412, 573, 625, 630, 703, 724, 732, 742, 758, 794, 809, 946, 951, 964, 1014, 1034, 1039, 1044, 1052, 1075, 1141, 1146, 1167, 1177, 1183, 1194, 1239, 1292, 1354, 1359, 1369, 1388, 1403, 1447, 1452, 1467], "classes": [17, 18], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [160, 161, 172, 173, 236, 243, 254, 265, 279, 285, 292, 301, 311, 312, 313, 328, 329, 330, 348, 353, 358, 361, 368, 371, 372, 373, 379, 380, 391, 419, 420, 424, 429, 435, 443, 457, 459, 465, 466, 467, 468, 474, 475, 485, 486, 495, 499, 502, 507, 513, 514, 524, 535, 536, 540, 541, 544, 545, 556, 566, 567, 568, 584, 588, 591, 599, 601, 606, 610, 614, 635, 638, 643, 646, 650, 653, 658, 663, 666, 671, 676, 679, 682, 688, 691, 696, 699, 709, 713, 717, 719, 728, 739, 747, 752, 753, 764, 767, 771, 777, 782, 783, 786, 787, 788, 791, 801, 814, 817, 818, 823, 824, 828, 835, 846, 851, 858, 870, 873, 885, 886, 889, 890, 894, 903, 907, 911, 914, 915, 918, 919, 930, 935, 958, 961, 962, 969, 970, 977, 981, 986, 992, 996, 1000, 1003, 1019, 1022, 1025, 1049, 1057, 1058, 1059, 1068, 1069, 1072, 1082, 1085, 1089, 1093, 1096, 1099, 1103, 1109, 1113, 1117, 1120, 1121, 1122, 1128, 1132, 1152, 1153, 1155, 1158, 1174, 1203, 1204, 1210, 1214, 1215, 1216, 1217, 1223, 1229, 1230, 1233, 1236, 1244, 1245, 1256, 1258, 1263, 1269, 1278, 1287, 1288, 1297, 1301, 1304, 1307, 1312, 1313, 1316, 1319, 1322, 1325, 1328, 1333, 1334, 1338, 1344, 1366, 1376, 1377, 1380, 1381, 1382, 1385, 1395, 1408, 1411, 1412, 1417, 1418, 1425, 1459, 1472, 1475, 1476, 1481, 1482, 1487, 1492], "assignments": [233, 269, 318, 322, 335, 339, 343, 384, 388, 394, 421, 434, 448, 452, 479, 512, 523, 539, 555, 583, 774, 834, 843, 857, 866, 880, 884, 902, 913, 929, 976, 985, 991, 1102, 1108, 1127, 1162, 1207, 1255, 1268, 1275, 1422, 1430, 1434], "loops": [284, 418, 757, 781, 1202, 1228, 1311, 1375], "conditionals": [23, 26, 29, 30, 34, 37, 40, 42, 45, 49, 53, 56, 58, 62, 68, 72, 75, 78, 82, 85, 88, 93, 97, 100, 103, 105, 108, 112, 115, 118, 124, 130, 134, 140, 146, 152, 158, 162, 164, 170, 174, 176, 184, 190, 196, 202, 206, 209, 213, 219, 225, 231, 234, 237, 240, 241, 242, 244, 246, 248, 252, 255, 257, 259, 263, 266, 270, 276, 280, 282, 283, 286, 288, 290, 293, 295, 297, 299, 302, 303, 307, 310, 314, 315, 317, 319, 323, 327, 331, 332, 334, 336, 340, 344, 347, 349, 351, 352, 354, 356, 357, 362, 366, 374, 375, 377, 378, 381, 383, 385, 387, 389, 393, 395, 401, 407, 408, 411, 415, 422, 425, 427, 430, 433, 436, 437, 444, 446, 447, 449, 453, 456, 458, 460, 462, 463, 464, 469, 470, 472, 476, 477, 478, 480, 483, 484, 487, 488, 489, 490, 491, 492, 493, 494, 496, 498, 500, 501, 503, 505, 506, 508, 515, 516, 525, 526, 531, 532, 533, 534, 537, 538, 542, 543, 546, 547, 557, 558, 563, 565, 569, 570, 572, 577, 585, 589, 590, 592, 594, 595, 598, 600, 602, 604, 605, 607, 609, 611, 613, 615, 617, 623, 626, 629, 631, 634, 636, 639, 640, 644, 645, 647, 648, 651, 654, 655, 659, 660, 664, 667, 668, 672, 673, 677, 680, 681, 683, 684, 689, 692, 693, 697, 698, 700, 701, 706, 710, 712, 714, 715, 716, 718, 720, 722, 727, 729, 737, 740, 741, 745, 748, 750, 751, 754, 756, 761, 765, 768, 770, 772, 775, 778, 780, 784, 789, 790, 792, 793, 799, 802, 804, 812, 819, 821, 822, 825, 827, 829, 831, 832, 833, 836, 837, 844, 847, 852, 854, 855, 856, 859, 860, 867, 869, 871, 874, 875, 876, 877, 878, 879, 881, 883, 887, 888, 891, 892, 895, 896, 904, 905, 908, 909, 910, 912, 916, 917, 920, 921, 931, 932, 936, 938, 940, 944, 950, 952, 956, 959, 963, 967, 971, 973, 978, 979, 982, 984, 987, 988, 990, 993, 994, 997, 1001, 1004, 1005, 1006, 1008, 1012, 1015, 1018, 1020, 1023, 1024, 1026, 1028, 1032, 1035, 1038, 1043, 1047, 1050, 1051, 1055, 1060, 1062, 1064, 1067, 1070, 1073, 1074, 1080, 1083, 1088, 1090, 1092, 1094, 1095, 1097, 1100, 1101, 1104, 1105, 1107, 1110, 1111, 1116, 1118, 1123, 1124, 1125, 1126, 1129, 1130, 1133, 1139, 1142, 1145, 1147, 1150, 1151, 1156, 1159, 1160, 1163, 1172, 1175, 1176, 1180, 1190, 1199, 1201, 1206, 1208, 1211, 1213, 1219, 1231, 1235, 1237, 1242, 1246, 1248, 1254, 1257, 1259, 1264, 1266, 1267, 1270, 1271, 1276, 1279, 1281, 1286, 1290, 1295, 1298, 1300, 1305, 1310, 1314, 1318, 1320, 1324, 1326, 1329, 1331, 1332, 1335, 1339, 1341, 1345, 1347, 1348, 1352, 1355, 1358, 1364, 1367, 1368, 1372, 1378, 1383, 1384, 1386, 1387, 1393, 1396, 1398, 1406, 1413, 1415, 1416, 1419, 1421, 1423, 1426, 1431, 1433, 1435, 1439, 1445, 1451, 1457, 1460, 1462, 1470, 1477, 1479, 1480, 1483, 1485, 1488, 1493, 1495], "returns": [618, 1007, 1166, 1291, 1438, 1486, 1491], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 136, 142, 148, 154, 166, 178, 186, 192, 198, 204, 239, 268, 278, 403, 428, 432, 439, 510, 517, 519, 528, 549, 551, 560, 578, 580, 586, 619, 641, 642, 649, 656, 657, 661, 662, 669, 670, 674, 675, 685, 686, 687, 694, 695, 702, 708, 723, 731, 763, 805, 839, 849, 862, 898, 923, 925, 934, 975, 999, 1066, 1086, 1114, 1135, 1161, 1182, 1221, 1249, 1261, 1282, 1306, 1337, 1342, 1374, 1399, 1428, 1437, 1463, 1490], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "redraw(str_t* text_buf, const str_t* input_buf)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "draw_cursor(uint32_t x, uint32_t y)"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "str_new(const char* str)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "str_free(str_t* str)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "str_append(str_t* str, const char* text)"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "interpret_cmd(str_t* text_buf, str_t* cmd)"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "count_lines(str_t* str)"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "scroll_view(char* str)"}, {"node_id": 228, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n win = snow_open_window(\"Terminal\", twidth, theight, WM_NORMAL);\n\n syscall(SYS_MA"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}, {"node_id": 620, "universal_type": "function", "name": "redraw", "text_snippet": "void redraw(str_t* text_buf, const str_t* input_buf) {\n /* Window decorations */\n\n // backgrou"}, {"node_id": 622, "universal_type": "function", "name": "unknown", "text_snippet": "redraw(str_t* text_buf, const str_t* input_buf)"}, {"node_id": 939, "universal_type": "function", "name": "unknown", "text_snippet": "str_t* str_new(const char* str) {\n str_t* s = malloc(sizeof(str_t));\n uint32_t size = strlen(s"}, {"node_id": 943, "universal_type": "function", "name": "unknown", "text_snippet": "str_new(const char* str)"}, {"node_id": 1009, "universal_type": "function", "name": "str_free", "text_snippet": "void str_free(str_t* str) {\n free(str->buf);\n free(str);\n}"}, {"node_id": 1011, "universal_type": "function", "name": "unknown", "text_snippet": "str_free(str_t* str)"}, {"node_id": 1029, "universal_type": "function", "name": "str_append", "text_snippet": "void str_append(str_t* str, const char* text) {\n uint32_t prev_len = str->len;\n uint32_t neede"}, {"node_id": 1031, "universal_type": "function", "name": "unknown", "text_snippet": "str_append(str_t* str, const char* text)"}, {"node_id": 1136, "universal_type": "function", "name": "interpret_cmd", "text_snippet": "void interpret_cmd(str_t* text_buf, str_t* input_buf) {\n if (!strcmp(input_buf->buf, \"exit\")) {\n "}, {"node_id": 1138, "universal_type": "function", "name": "unknown", "text_snippet": "interpret_cmd(str_t* text_buf, str_t* input_buf)"}, {"node_id": 1349, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t count_lines(str_t* str) {\n char* text_view = str->buf;\n uint32_t n_lines = 0;\n\n wh"}, {"node_id": 1351, "universal_type": "function", "name": "unknown", "text_snippet": "count_lines(str_t* str)"}, {"node_id": 1440, "universal_type": "function", "name": "unknown", "text_snippet": "char* scroll_view(char* str) {\n char* lf = strchrnul(str, '\\n');\n uint32_t line_len = (uint32_"}, {"node_id": 1444, "universal_type": "function", "name": "unknown", "text_snippet": "scroll_view(char* str)"}], "class_declarations": [{"node_id": 17, "universal_type": "class", "name": "{", "text_snippet": "struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n}"}, {"node_id": 18, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <snow.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 <string.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <ctype.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#include <snow.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <ctype.h>\n\ntypedef struct {\n char* buf;\n uint32_t buf_len;\n uint32_t len;\n} str_t;\n\nvoid redraw(str_t* text_buf, const str_t* input_buf);\nvoid draw_cursor(uint32_t x, uint32_t y);\nstr_t* str_new(const char* str);\nvoid str_free(str_t* str);\nvoid str_append(str_t* str, const char* text);\nvoid interpret_cmd(str_t* text_buf, str_t* cmd);\nuint32_t count_lines(str_t* str);\nchar* scroll_view(char* str);\n\nconst uint32_t twidth = 550;\nconst uint32_t theight = 342;\nconst uint32_t char_width = 8;\nconst uint32_t char_height = 16;\nconst uint32_t max_col = twidth / char_width - 1;\nconst uint32_t max_line = theight / char_height - 1;\n\nconst char* prompt = \"snowflakeos $ \";\nconst uint32_t margin = 1;\nconst uint32_t text_color = 0xE0E0E0;\nconst float cursor_blink_time = 1;\n\nwindow_t* win;\nbool cursor = true;\nbool running = true;\nbool focused = true;\n\nint main() {\n win = snow_open_window(\"Terminal\", twidth, theight, WM_NORMAL);\n\n syscall(SYS_MAKETTY);\n\n str_t* text_buf = str_new(prompt);\n str_t* input_buf = str_new(\"\");\n cursor = true;\n\n uint32_t last_time = 0;\n\n redraw(text_buf, input_buf);\n\n while (running) {\n wm_event_t event = snow_get_event(win);\n wm_kbd_event_t key = event.kbd;\n bool needs_redrawing = false;\n\n // Do we have focus?\n if (event.type == WM_EVENT_GAINED_FOCUS) {\n focused = true;\n needs_redrawing = true;\n } else if (event.type == WM_EVENT_LOST_FOCUS) {\n focused = false;\n cursor = false;\n needs_redrawing = true;\n }\n\n // Time & cursor blinks\n if (focused) {\n sys_info_t info;\n syscall2(SYS_INFO, SYS_INFO_UPTIME, (uintptr_t) &info);\n\n uint32_t time = (uint32_t) (info.uptime / cursor_blink_time);\n\n if (time != last_time) {\n last_time = time;\n cursor = !cursor;\n needs_redrawing = true;\n }\n }\n\n // Print things that have been output, if any, and append a prompt\n const uint32_t buf_size = 256;\n char buf[buf_size];\n uint32_t read;\n bool anything_read = false;\n\n while ((read = fread(buf, 1, buf_size - 1, stdout))) {\n buf[read] = '\\0';\n str_append(text_buf, buf);\n needs_redrawing = true;\n anything_read = true;\n }\n\n if (anything_read) {\n str_append(text_buf, prompt);\n }\n\n if (event.type == WM_EVENT_KBD && event.kbd.pressed) {\n needs_redrawing = true;\n\n switch (key.keycode) {\n case KBD_ENTER:\n case KBD_KP_ENTER:\n str_append(text_buf, input_buf->buf);\n interpret_cmd(text_buf, input_buf);\n printf(\"\\n\");\n input_buf->buf[0] = '\\0';\n input_buf->len = 0;\n break;\n case KBD_BACKSPACE:\n if (input_buf->len) {\n input_buf->buf[input_buf->len - 1] = '\\0';\n input_buf->len -= 1;\n }\n break;\n default:\n if (key.keycode < KBD_KP_ENTER) {\n char str[2] = \"\\0\\0\";\n str[0] = key.repr;\n str_append(input_buf, str);\n }\n break;\n }\n }\n\n if (needs_redrawing) {\n redraw(text_buf, input_buf);\n }\n }\n\n str_free(text_buf);\n str_free(input_buf);\n\n snow_close_window(win);\n\n return 0;\n}\n\nvoid redraw(str_t* text_buf, const str_t* input_buf) {\n /* Window decorations */\n\n // background\n snow_draw_rect(win->fb, 0, 0, win->width, win->height, 0x00353535);\n // title bar\n snow_draw_rect(win->fb, 0, 0, win->width, 20, 0x00222221);\n snow_draw_border(win->fb, 0, 0, win->width, 20, 0x00000000);\n snow_draw_string(win->fb, win->title, 4, 3, 0x00FFFFFF);\n // border of the whole window\n snow_draw_border(win->fb, 0, 0, win->width, win->height, 0x00555555);\n\n /* Text content */\n\n uint32_t y = 22; // below title bar\n\n // Temporarily concatenate the input and a cursor\n str_append(text_buf, input_buf->buf);\n\n if (cursor) {\n str_append(text_buf, \"_\");\n }\n\n char line_buf[max_col + 1];\n char* text_view = text_buf->buf;\n uint32_t n_lines = count_lines(text_buf);\n\n // Scroll the buffer as needed\n if (n_lines > max_line) {\n for (uint32_t i = 0; i < n_lines - max_line; i++) {\n text_view = scroll_view(text_view);\n }\n }\n\n // Draw line by line, wrapping text\n while (text_view < &text_buf->buf[text_buf->len]) {\n char* lf = strchrnul(text_view, '\\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n strncpy(line_buf, text_view, line_len);\n line_buf[line_len] = '\\0';\n text_view += line_len + 1; // Discard the line feed\n } else {\n strncpy(line_buf, text_view, max_col);\n line_buf[max_col] = '\\0';\n text_view += max_col;\n }\n\n snow_draw_string(win->fb, line_buf, margin, y, text_color);\n\n y += char_height;\n }\n\n // De-concatenate\n text_buf->buf[text_buf->len - input_buf->len] = '\\0';\n text_buf->len -= input_buf->len;\n\n if (cursor) {\n text_buf->buf[text_buf->len - 1] = '\\0';\n text_buf->len -= 1;\n }\n\n // Update the window\n snow_render_window(win);\n}\n\nstr_t* str_new(const char* str) {\n str_t* s = malloc(sizeof(str_t));\n uint32_t size = strlen(str) + 1;\n\n s->buf = malloc(size);\n s->buf_len = size;\n s->len = size - 1;\n\n strcpy(s->buf, str);\n\n return s;\n}\n\nvoid str_free(str_t* str) {\n free(str->buf);\n free(str);\n}\n\nvoid str_append(str_t* str, const char* text) {\n uint32_t prev_len = str->len;\n uint32_t needed = strlen(text) + prev_len + 1;\n\n if (needed > str->buf_len) {\n char* new_buf = malloc(2*needed);\n\n strcpy(new_buf, str->buf);\n free(str->buf);\n\n str->buf = new_buf;\n str->buf_len = 2*needed;\n }\n\n strcpy(&str->buf[prev_len], text);\n str->len = needed - 1;\n}\n\nvoid interpret_cmd(str_t* text_buf, str_t* input_buf) {\n if (!strcmp(input_buf->buf, \"exit\")) {\n running = false;\n return;\n }\n\n char* cmd = input_buf->buf;\n uint32_t n_args = 0;\n char** args = NULL;\n char* next = cmd;\n\n while (*next) {\n args = realloc(args, (++n_args + 1) * sizeof(char*));\n\n while (isspace(*next)) {\n next++;\n }\n\n uint32_t n = strchrnul(next, ' ') - next;\n args[n_args - 1] = strndup(next, n);\n args[n_args] = NULL;\n\n next = strchrnul(next, ' ');\n }\n\n if (!args) {\n return;\n }\n\n int32_t ret = syscall2(SYS_EXEC, (uintptr_t) args[0], (uintptr_t) args);\n\n while (args && *args) {\n free(*args);\n args++;\n }\n\n free(args);\n\n if (ret != 0) {\n str_append(text_buf, \"\\ninvalid command: \");\n str_append(text_buf, cmd);\n }\n}\n\nuint32_t count_lines(str_t* str) {\n char* text_view = str->buf;\n uint32_t n_lines = 0;\n\n while (text_view < &str->buf[str->len]) {\n char* lf = strchrnul(text_view, '\\n');\n uint32_t line_len = (uint32_t) (lf - text_view);\n\n if (line_len <= max_col) {\n text_view += line_len + 1; // Discard the line feed\n } else {\n text_view += max_col;\n }\n\n n_lines += 1;\n }\n\n return n_lines;\n}\n\n/* Discards the first line of the buffer.\n */\nchar* scroll_view(char* str) {\n char* lf = strchrnul(str, '\\n');\n uint32_t line_len = (uint32_t) (lf - str);\n\n if (line_len <= max_col) {\n return lf + 1;\n }\n\n return str + max_col;\n}\n"}
80,468
c
/*========================================================================= * * Copyright Insight Software Consortium * * 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.txt * * 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 itkImageToVTKImageFilter_h #define itkImageToVTKImageFilter_h #include "itkVTKImageExport.h" #include "vtkImageImport.h" #include "vtkImageData.h" namespace itk { /** \class ImageToVTKImageFilter * \brief Converts an ITK image into a VTK image and plugs a * itk data pipeline to a VTK datapipeline. * * This class puts together an itkVTKImageExporter and a vtkImageImporter. * It takes care of the details related to the connection of ITK and VTK * pipelines. The User will perceive this filter as an adaptor to which * an itk::Image can be plugged as input and a vtkImage is produced as * output. * * \ingroup ITKVtkGlue * * \wiki * \wikiexample{IO/ImageToVTKImageFilter,Display an ITK image} * \wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space} * \endwiki */ template <typename TInputImage > class ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject { public: /** Standard class typedefs. */ typedef ImageToVTKImageFilter Self; typedef ProcessObject Superclass; typedef SmartPointer<Self> Pointer; typedef SmartPointer<const Self> ConstPointer; /** Method for creation through the object factory. */ itkNewMacro(Self); /** Run-time type information (and related methods). */ itkTypeMacro(ImageToVTKImageFilter, ProcessObject); /** Some typedefs. */ typedef TInputImage InputImageType; typedef typename InputImageType::ConstPointer InputImagePointer; typedef VTKImageExport< InputImageType> ExporterFilterType; typedef typename ExporterFilterType::Pointer ExporterFilterPointer; /** Get the output in the form of a vtkImage. This call is delegated to the internal vtkImageImporter filter */ vtkImageData * GetOutput() const; /** Set the input in the form of an itk::Image */ using Superclass::SetInput; void SetInput( const InputImageType * ); InputImageType * GetInput(); /** Return the internal VTK image importer filter. This is intended to facilitate users the access to methods in the importer */ vtkImageImport * GetImporter() const; /** Return the internal ITK image exporter filter. This is intended to facilitate users the access to methods in the exporter */ ExporterFilterType * GetExporter() const; /** This call delegates the update to the importer */ virtual void Update() ITK_OVERRIDE; /** This call delegates the update to the importer */ virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE; protected: ImageToVTKImageFilter(); virtual ~ImageToVTKImageFilter(); private: ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter); ExporterFilterPointer m_Exporter; vtkImageImport * m_Importer; }; } // end namespace itk #ifndef ITK_MANUAL_INSTANTIATION #include "itkImageToVTKImageFilter.hxx" #endif #endif
39.43
91
(translation_unit) "/*=========================================================================\n *\n * Copyright Insight Software Consortium\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.txt\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 itkImageToVTKImageFilter_h\n#define itkImageToVTKImageFilter_h\n\n#include "itkVTKImageExport.h"\n#include "vtkImageImport.h"\n#include "vtkImageData.h"\n\nnamespace itk\n{\n\n/** \class ImageToVTKImageFilter\n * \brief Converts an ITK image into a VTK image and plugs a\n * itk data pipeline to a VTK datapipeline.\n *\n * This class puts together an itkVTKImageExporter and a vtkImageImporter.\n * It takes care of the details related to the connection of ITK and VTK\n * pipelines. The User will perceive this filter as an adaptor to which\n * an itk::Image can be plugged as input and a vtkImage is produced as\n * output.\n *\n * \ingroup ITKVtkGlue\n *\n * \wiki\n * \wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}\n * \wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}\n * \endwiki\n */\ntemplate <typename TInputImage >\nclass ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject\n{\npublic:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;\n typedef ProcessObject Superclass;\n typedef SmartPointer<Self> Pointer;\n typedef SmartPointer<const Self> ConstPointer;\n\n /** Method for creation through the object factory. */\n itkNewMacro(Self);\n\n /** Run-time type information (and related methods). */\n itkTypeMacro(ImageToVTKImageFilter, ProcessObject);\n\n /** Some typedefs. */\n typedef TInputImage InputImageType;\n typedef typename InputImageType::ConstPointer InputImagePointer;\n\n typedef VTKImageExport< InputImageType> ExporterFilterType;\n typedef typename ExporterFilterType::Pointer ExporterFilterPointer;\n\n /** Get the output in the form of a vtkImage.\n This call is delegated to the internal vtkImageImporter filter */\n vtkImageData * GetOutput() const;\n\n /** Set the input in the form of an itk::Image */\n using Superclass::SetInput;\n void SetInput( const InputImageType * );\n InputImageType * GetInput();\n\n /** Return the internal VTK image importer filter.\n This is intended to facilitate users the access\n to methods in the importer */\n vtkImageImport * GetImporter() const;\n\n /** Return the internal ITK image exporter filter.\n This is intended to facilitate users the access\n to methods in the exporter */\n ExporterFilterType * GetExporter() const;\n\n /** This call delegates the update to the importer */\n virtual void Update() ITK_OVERRIDE;\n\n /** This call delegates the update to the importer */\n virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();\n virtual ~ImageToVTKImageFilter();\n\nprivate:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);\n\n ExporterFilterPointer m_Exporter;\n vtkImageImport * m_Importer;\n};\n\n} // end namespace itk\n\n#ifndef ITK_MANUAL_INSTANTIATION\n#include "itkImageToVTKImageFilter.hxx"\n#endif\n\n#endif" (comment) "/*=========================================================================\n *\n * Copyright Insight Software Consortium\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.txt\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 itkImageToVTKImageFilter_h\n#define itkImageToVTKImageFilter_h\n\n#include "itkVTKImageExport.h"\n#include "vtkImageImport.h"\n#include "vtkImageData.h"\n\nnamespace itk\n{\n\n/** \class ImageToVTKImageFilter\n * \brief Converts an ITK image into a VTK image and plugs a\n * itk data pipeline to a VTK datapipeline.\n *\n * This class puts together an itkVTKImageExporter and a vtkImageImporter.\n * It takes care of the details related to the connection of ITK and VTK\n * pipelines. The User will perceive this filter as an adaptor to which\n * an itk::Image can be plugged as input and a vtkImage is produced as\n * output.\n *\n * \ingroup ITKVtkGlue\n *\n * \wiki\n * \wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}\n * \wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}\n * \endwiki\n */\ntemplate <typename TInputImage >\nclass ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject\n{\npublic:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;\n typedef ProcessObject Superclass;\n typedef SmartPointer<Self> Pointer;\n typedef SmartPointer<const Self> ConstPointer;\n\n /** Method for creation through the object factory. */\n itkNewMacro(Self);\n\n /** Run-time type information (and related methods). */\n itkTypeMacro(ImageToVTKImageFilter, ProcessObject);\n\n /** Some typedefs. */\n typedef TInputImage InputImageType;\n typedef typename InputImageType::ConstPointer InputImagePointer;\n\n typedef VTKImageExport< InputImageType> ExporterFilterType;\n typedef typename ExporterFilterType::Pointer ExporterFilterPointer;\n\n /** Get the output in the form of a vtkImage.\n This call is delegated to the internal vtkImageImporter filter */\n vtkImageData * GetOutput() const;\n\n /** Set the input in the form of an itk::Image */\n using Superclass::SetInput;\n void SetInput( const InputImageType * );\n InputImageType * GetInput();\n\n /** Return the internal VTK image importer filter.\n This is intended to facilitate users the access\n to methods in the importer */\n vtkImageImport * GetImporter() const;\n\n /** Return the internal ITK image exporter filter.\n This is intended to facilitate users the access\n to methods in the exporter */\n ExporterFilterType * GetExporter() const;\n\n /** This call delegates the update to the importer */\n virtual void Update() ITK_OVERRIDE;\n\n /** This call delegates the update to the importer */\n virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();\n virtual ~ImageToVTKImageFilter();\n\nprivate:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);\n\n ExporterFilterPointer m_Exporter;\n vtkImageImport * m_Importer;\n};\n\n} // end namespace itk\n\n#ifndef ITK_MANUAL_INSTANTIATION\n#include "itkImageToVTKImageFilter.hxx"\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "itkImageToVTKImageFilter_h" (preproc_def) "#define itkImageToVTKImageFilter_h\n" (#define) "#define" (identifier) "itkImageToVTKImageFilter_h" (preproc_include) "#include "itkVTKImageExport.h"\n" (#include) "#include" (string_literal) ""itkVTKImageExport.h"" (") """ (string_content) "itkVTKImageExport.h" (") """ (preproc_include) "#include "vtkImageImport.h"\n" (#include) "#include" (string_literal) ""vtkImageImport.h"" (") """ (string_content) "vtkImageImport.h" (") """ (preproc_include) "#include "vtkImageData.h"\n" (#include) "#include" (string_literal) ""vtkImageData.h"" (") """ (string_content) "vtkImageData.h" (") """ (ERROR) "namespace itk\n{\n\n/** \class ImageToVTKImageFilter\n * \brief Converts an ITK image into a VTK image and plugs a\n * itk data pipeline to a VTK datapipeline.\n *\n * This class puts together an itkVTKImageExporter and a vtkImageImporter.\n * It takes care of the details related to the connection of ITK and VTK\n * pipelines. The User will perceive this filter as an adaptor to which\n * an itk::Image can be plugged as input and a vtkImage is produced as\n * output.\n *\n * \ingroup ITKVtkGlue\n *\n * \wiki\n * \wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}\n * \wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}\n * \endwiki\n */\ntemplate <typename TInputImage >\nclass ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject\n{\npublic:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;\n typedef ProcessObject Superclass;\n typedef SmartPointer<Self> Pointer;\n typedef SmartPointer<const Self> ConstPointer;\n\n /** Method for creation through the object factory. */\n itkNewMacro(Self);\n\n /** Run-time type information (and related methods). */\n itkTypeMacro(ImageToVTKImageFilter, ProcessObject);\n\n /** Some typedefs. */\n typedef TInputImage InputImageType;\n typedef typename InputImageType::ConstPointer InputImagePointer;\n\n typedef VTKImageExport< InputImageType> ExporterFilterType;\n typedef typename ExporterFilterType::Pointer ExporterFilterPointer;\n\n /** Get the output in the form of a vtkImage.\n This call is delegated to the internal vtkImageImporter filter */\n vtkImageData * GetOutput() const;\n\n /** Set the input in the form of an itk::Image */\n using Superclass::SetInput;\n void SetInput( const InputImageType * );\n InputImageType * GetInput();\n\n /** Return the internal VTK image importer filter.\n This is intended to facilitate users the access\n to methods in the importer */\n vtkImageImport * GetImporter() const;\n\n /** Return the internal ITK image exporter filter.\n This is intended to facilitate users the access\n to methods in the exporter */\n ExporterFilterType * GetExporter() const;\n\n /** This call delegates the update to the importer */\n virtual void Update() ITK_OVERRIDE;\n\n /** This call delegates the update to the importer */\n virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();\n virtual ~ImageToVTKImageFilter();\n\nprivate:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);\n\n ExporterFilterPointer m_Exporter;\n vtkImageImport * m_Importer;\n};\n\n} // end namespace itk\n\n#ifndef ITK_MANUAL_INSTANTIATION\n#include "itkImageToVTKImageFilter.hxx"\n#endif" (type_identifier) "namespace" (identifier) "itk" ({) "{" (comment) "/** \class ImageToVTKImageFilter\n * \brief Converts an ITK image into a VTK image and plugs a\n * itk data pipeline to a VTK datapipeline.\n *\n * This class puts together an itkVTKImageExporter and a vtkImageImporter.\n * It takes care of the details related to the connection of ITK and VTK\n * pipelines. The User will perceive this filter as an adaptor to which\n * an itk::Image can be plugged as input and a vtkImage is produced as\n * output.\n *\n * \ingroup ITKVtkGlue\n *\n * \wiki\n * \wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}\n * \wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}\n * \endwiki\n */" (expression_statement) "template <typename TInputImage >\nclass" (binary_expression) "template <typename TInputImage >\nclass" (binary_expression) "template <typename TInputImage" (identifier) "template" (<) "<" (ERROR) "typename" (identifier) "typename" (identifier) "TInputImage" (>) ">" (identifier) "class" (;) "" (type_identifier) "ITK_TEMPLATE_EXPORT" (identifier) "ImageToVTKImageFilter" (ERROR) ": public ProcessObject" (:) ":" (identifier) "public" (identifier) "ProcessObject" ({) "{" (labeled_statement) "public:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;" (statement_identifier) "public" (:) ":" (comment) "/** Standard class typedefs. */" (declaration) "typedef ImageToVTKImageFilter Self;" (type_identifier) "typedef" (identifier) "ImageToVTKImageFilter" (ERROR) "Self" (identifier) "Self" (;) ";" (type_definition) "typedef ProcessObject Superclass;" (typedef) "typedef" (type_identifier) "ProcessObject" (type_identifier) "Superclass" (;) ";" (type_definition) "typedef SmartPointer<Self> Pointer;" (typedef) "typedef" (type_identifier) "SmartPointer" (ERROR) "<Self>" (<) "<" (type_identifier) "Self" (>) ">" (type_identifier) "Pointer" (;) ";" (type_definition) "typedef SmartPointer<const Self> ConstPointer;" (typedef) "typedef" (type_identifier) "SmartPointer" (ERROR) "<" (<) "<" (type_qualifier) "const" (const) "const" (ERROR) "Self>" (type_identifier) "Self" (>) ">" (type_identifier) "ConstPointer" (;) ";" (comment) "/** Method for creation through the object factory. */" (expression_statement) "itkNewMacro(Self);" (call_expression) "itkNewMacro(Self)" (identifier) "itkNewMacro" (argument_list) "(Self)" (() "(" (identifier) "Self" ()) ")" (;) ";" (comment) "/** Run-time type information (and related methods). */" (expression_statement) "itkTypeMacro(ImageToVTKImageFilter, ProcessObject);" (call_expression) "itkTypeMacro(ImageToVTKImageFilter, ProcessObject)" (identifier) "itkTypeMacro" (argument_list) "(ImageToVTKImageFilter, ProcessObject)" (() "(" (identifier) "ImageToVTKImageFilter" (,) "," (identifier) "ProcessObject" ()) ")" (;) ";" (comment) "/** Some typedefs. */" (type_definition) "typedef TInputImage InputImageType;" (typedef) "typedef" (type_identifier) "TInputImage" (type_identifier) "InputImageType" (;) ";" (type_definition) "typedef typename InputImageType::ConstPointer InputImagePointer;" (typedef) "typedef" (type_identifier) "typename" (ERROR) "InputImageType::ConstPointer" (type_identifier) "InputImageType" (:) ":" (:) ":" (identifier) "ConstPointer" (type_identifier) "InputImagePointer" (;) ";" (type_definition) "typedef VTKImageExport< InputImageType> ExporterFilterType;" (typedef) "typedef" (type_identifier) "VTKImageExport" (ERROR) "< InputImageType>" (<) "<" (type_identifier) "InputImageType" (>) ">" (type_identifier) "ExporterFilterType" (;) ";" (type_definition) "typedef typename ExporterFilterType::Pointer ExporterFilterPointer;" (typedef) "typedef" (type_identifier) "typename" (ERROR) "ExporterFilterType::Pointer" (type_identifier) "ExporterFilterType" (:) ":" (:) ":" (identifier) "Pointer" (type_identifier) "ExporterFilterPointer" (;) ";" (comment) "/** Get the output in the form of a vtkImage.\n This call is delegated to the internal vtkImageImporter filter */" (declaration) "vtkImageData * GetOutput() const;" (type_identifier) "vtkImageData" (pointer_declarator) "* GetOutput() const" (*) "*" (function_declarator) "GetOutput() const" (identifier) "GetOutput" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "/** Set the input in the form of an itk::Image */" (declaration) "using Superclass::SetInput;" (type_identifier) "using" (identifier) "Superclass" (ERROR) "::SetInput" (:) ":" (:) ":" (identifier) "SetInput" (;) ";" (declaration) "void SetInput( const InputImageType * );" (primitive_type) "void" (function_declarator) "SetInput( const InputImageType * )" (identifier) "SetInput" (parameter_list) "( const InputImageType * )" (() "(" (parameter_declaration) "const InputImageType *" (type_qualifier) "const" (const) "const" (type_identifier) "InputImageType" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "InputImageType * GetInput();" (type_identifier) "InputImageType" (pointer_declarator) "* GetInput()" (*) "*" (function_declarator) "GetInput()" (identifier) "GetInput" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/** Return the internal VTK image importer filter.\n This is intended to facilitate users the access\n to methods in the importer */" (declaration) "vtkImageImport * GetImporter() const;" (type_identifier) "vtkImageImport" (pointer_declarator) "* GetImporter() const" (*) "*" (function_declarator) "GetImporter() const" (identifier) "GetImporter" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "/** Return the internal ITK image exporter filter.\n This is intended to facilitate users the access\n to methods in the exporter */" (declaration) "ExporterFilterType * GetExporter() const;" (type_identifier) "ExporterFilterType" (pointer_declarator) "* GetExporter() const" (*) "*" (function_declarator) "GetExporter() const" (identifier) "GetExporter" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (comment) "/** This call delegates the update to the importer */" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Update()" (identifier) "Update" (parameter_list) "()" (() "(" ()) ")" (declaration) "ITK_OVERRIDE;" (type_identifier) "ITK_OVERRIDE" (identifier) "" (;) ";" (comment) "/** This call delegates the update to the importer */" (declaration) "virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();" (type_identifier) "virtual" (ERROR) "void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:" (identifier) "void" (function_declarator) "UpdateLargestPossibleRegion() ITK_OVERRIDE" (identifier) "UpdateLargestPossibleRegion" (parameter_list) "()" (() "(" ()) ")" (identifier) "ITK_OVERRIDE" (;) ";" (identifier) "protected" (:) ":" (function_declarator) "ImageToVTKImageFilter()" (identifier) "ImageToVTKImageFilter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~ImageToVTKImageFilter();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "ImageToVTKImageFilter()" (identifier) "ImageToVTKImageFilter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "private:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);" (type_identifier) "private" (ERROR) ":" (:) ":" (function_declarator) "ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter)" (identifier) "ITK_DISALLOW_COPY_AND_ASSIGN" (parameter_list) "(ImageToVTKImageFilter)" (() "(" (parameter_declaration) "ImageToVTKImageFilter" (type_identifier) "ImageToVTKImageFilter" ()) ")" (;) ";" (declaration) "ExporterFilterPointer m_Exporter;" (type_identifier) "ExporterFilterPointer" (identifier) "m_Exporter" (;) ";" (declaration) "vtkImageImport * m_Importer;" (type_identifier) "vtkImageImport" (pointer_declarator) "* m_Importer" (*) "*" (identifier) "m_Importer" (;) ";" (ERROR) "};\n\n} // end namespace itk\n\n#ifndef" (}) "}" (;) ";" (}) "}" (comment) "// end namespace itk" (#ifndef) "#ifndef" (type_identifier) "ITK_MANUAL_INSTANTIATION" (ERROR) "#include "itkImageToVTKImageFilter." (preproc_directive) "#include" (") """ (identifier) "itkImageToVTKImageFilter" (.) "." (identifier) "hxx" (") """ (#endif) "#endif" (#endif) "#endif"
290
17
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 39.43, "nodes": 184, "errors": 0, "source_hash": "bc40556d7e44d691c1d6320874a95e2cd2d7c492a0414ecb7dad0b701450f475", "categorized_nodes": 123}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef itkImageToVTKImageFilter_h\n#define itkImageToVTKImageFilter_h\n\n#include \"itkVTKImageExport.h\"\n#include \"vtkImageImport.h\"\n#include \"vtkImageData.h\"\n\nnamespace itk\n{\n\n/** \\class ImageToVTKImageFilter\n * \\brief Converts an ITK image into a VTK image and plugs a\n * itk data pipeline to a VTK datapipeline.\n *\n * This class puts together an itkVTKImageExporter and a vtkImageImporter.\n * It takes care of the details related to the connection of ITK and VTK\n * pipelines. The User will perceive this filter as an adaptor to which\n * an itk::Image can be plugged as input and a vtkImage is produced as\n * output.\n *\n * \\ingroup ITKVtkGlue\n *\n * \\wiki\n * \\wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}\n * \\wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}\n * \\endwiki\n */\ntemplate <typename TInputImage >\nclass ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject\n{\npublic:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;\n typedef ProcessObject Superclass;\n typedef SmartPointer<Self> Pointer;\n typedef SmartPointer<const Self> ConstPointer;\n\n /** Method for creation through the object factory. */\n itkNewMacro(Self);\n\n /** Run-time type information (and related methods). */\n itkTypeMacro(ImageToVTKImageFilter, ProcessObject);\n\n /** Some typedefs. */\n typedef TInputImage InputImageType;\n typedef typename InputImageType::ConstPointer InputImagePointer;\n\n typedef VTKImageExport< InputImageType> ExporterFilterType;\n typedef typename ExporterFilterType::Pointer ExporterFilterPointer;\n\n /** Get the output in the form of a vtkImage.\n This call is delegated to the internal vtkImageImporter filter */\n vtkImageData * GetOutput() const;\n\n /** Set the input in the form of an itk::Image */\n using Superclass::SetInput;\n void SetInput( const InputImageType * );\n InputImageType * GetInput();\n\n /** Return the internal VTK image importer filter.\n This is intended to facilitate users the access\n to methods in the importer */\n vtkImageImport * GetImporter() const;\n\n /** Return the internal ITK image exporter filter.\n This is intended to facilitate users the access\n to methods in the exporter */\n ExporterFilterType * GetExporter() const;\n\n /** This call delegates the update to the importer */\n virtual void Update() ITK_OVERRIDE;\n\n /** This call delegates the update to the importer */\n virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();\n virtual ~ImageToVTKImageFilter();\n\nprivate:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);\n\n ExporterFilterPointer m_Exporter;\n vtkImageImport * m_Importer;\n};\n\n} // end namespace itk\n\n#ifndef ITK_MANUAL_INSTANTIATION\n#include \"itkImageToVTKImageFilter.hxx\"\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 183], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 109, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 2, "type": "identifier", "text": "itkImageToVTKImageFilter_h", "parent": 0, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 34}}, {"id": 3, "type": "preproc_def", "text": "#define itkImageToVTKImageFilter_h\n", "parent": 0, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 5, "type": "identifier", "text": "itkImageToVTKImageFilter_h", "parent": 3, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 34}}, {"id": 6, "type": "preproc_include", "text": "#include \"itkVTKImageExport.h\"\n", "parent": 0, "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": "\"itkVTKImageExport.h\"", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 30}}, {"id": 9, "type": "preproc_include", "text": "#include \"vtkImageImport.h\"\n", "parent": 0, "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": "string_literal", "text": "\"vtkImageImport.h\"", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include \"vtkImageData.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": "string_literal", "text": "\"vtkImageData.h\"", "parent": 12, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 25}}, {"id": 15, "type": "ERROR", "text": "namespace itk\n{\n\n/** \\class ImageToVTKImageFilter\n * \\brief Converts an ITK image into a VTK image and plugs a\n * itk data pipeline to a VTK datapipeline.\n *\n * This class puts together an itkVTKImageExporter and a vtkImageImporter.\n * It takes care of the details related to the connection of ITK and VTK\n * pipelines. The User will perceive this filter as an adaptor to which\n * an itk::Image can be plugged as input and a vtkImage is produced as\n * output.\n *\n * \\ingroup ITKVtkGlue\n *\n * \\wiki\n * \\wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}\n * \\wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}\n * \\endwiki\n */\ntemplate <typename TInputImage >\nclass ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject\n{\npublic:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;\n typedef ProcessObject Superclass;\n typedef SmartPointer<Self> Pointer;\n typedef SmartPointer<const Self> ConstPointer;\n\n /** Method for creation through the object factory. */\n itkNewMacro(Self);\n\n /** Run-time type information (and related methods). */\n itkTypeMacro(ImageToVTKImageFilter, ProcessObject);\n\n /** Some typedefs. */\n typedef TInputImage InputImageType;\n typedef typename InputImageType::ConstPointer InputImagePointer;\n\n typedef VTKImageExport< InputImageType> ExporterFilterType;\n typedef typename ExporterFilterType::Pointer ExporterFilterPointer;\n\n /** Get the output in the form of a vtkImage.\n This call is delegated to the internal vtkImageImporter filter */\n vtkImageData * GetOutput() const;\n\n /** Set the input in the form of an itk::Image */\n using Superclass::SetInput;\n void SetInput( const InputImageType * );\n InputImageType * GetInput();\n\n /** Return the internal VTK image importer filter.\n This is intended to facilitate users the access\n to methods in the importer */\n vtkImageImport * GetImporter() const;\n\n /** Return the internal ITK image exporter filter.\n This is intended to facilitate users the access\n to methods in the exporter */\n ExporterFilterType * GetExporter() const;\n\n /** This call delegates the update to the importer */\n virtual void Update() ITK_OVERRIDE;\n\n /** This call delegates the update to the importer */\n virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();\n virtual ~ImageToVTKImageFilter();\n\nprivate:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);\n\n ExporterFilterPointer m_Exporter;\n vtkImageImport * m_Importer;\n};\n\n} // end namespace itk\n\n#ifndef ITK_MANUAL_INSTANTIATION\n#include \"itkImageToVTKImageFilter.hxx\"\n#endif", "parent": 0, "children": [16, 17, 26, 27, 28, 30, 36, 40, 48, 66, 70, 77, 85, 92, 99, 104, 113, 120, 127, 134, 135, 137, 140, 143, 154, 161, 167, 170, 175, 177, 178, 181, 182], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 9}}, {"id": 17, "type": "identifier", "text": "itk", "parent": 15, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 18, "type": "binary_expression", "text": "template <typename TInputImage >\nclass", "parent": 15, "children": [19, 25], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 5}}, {"id": 19, "type": "binary_expression", "text": "template <typename TInputImage", "parent": 18, "children": [20, 21, 22, 24], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 30}}, {"id": 20, "type": "identifier", "text": "template", "parent": 19, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 21, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 22, "type": "ERROR", "text": "typename", "parent": 19, "children": [23], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 18}}, {"id": 23, "type": "identifier", "text": "typename", "parent": 22, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 18}}, {"id": 24, "type": "identifier", "text": "TInputImage", "parent": 19, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 30}}, {"id": 25, "type": ">", "text": ">", "parent": 18, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 32}}, {"id": 26, "type": "type_identifier", "text": "ITK_TEMPLATE_EXPORT", "parent": 15, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 25}}, {"id": 27, "type": "identifier", "text": "ImageToVTKImageFilter", "parent": 15, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 47}}, {"id": 28, "type": "ERROR", "text": ": public ProcessObject", "parent": 15, "children": [29], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 70}}, {"id": 29, "type": "identifier", "text": "ProcessObject", "parent": 28, "children": [], "start_point": {"row": 45, "column": 57}, "end_point": {"row": 45, "column": 70}}, {"id": 30, "type": "labeled_statement", "text": "public:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;", "parent": 15, "children": [31], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 49, "column": 41}}, {"id": 31, "type": "declaration", "text": "typedef ImageToVTKImageFilter Self;", "parent": 30, "children": [32, 33, 34], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 41}}, {"id": 32, "type": "type_identifier", "text": "typedef", "parent": 31, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 9}}, {"id": 33, "type": "identifier", "text": "ImageToVTKImageFilter", "parent": 31, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 31}}, {"id": 34, "type": "ERROR", "text": "Self", "parent": 31, "children": [35], "start_point": {"row": 49, "column": 36}, "end_point": {"row": 49, "column": 40}}, {"id": 35, "type": "identifier", "text": "Self", "parent": 34, "children": [], "start_point": {"row": 49, "column": 36}, "end_point": {"row": 49, "column": 40}}, {"id": 36, "type": "type_definition", "text": "typedef ProcessObject Superclass;", "parent": 15, "children": [37, 38, 39], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 47}}, {"id": 37, "type": "typedef", "text": "typedef", "parent": 36, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 38, "type": "type_identifier", "text": "ProcessObject", "parent": 36, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 23}}, {"id": 39, "type": "type_identifier", "text": "Superclass", "parent": 36, "children": [], "start_point": {"row": 50, "column": 36}, "end_point": {"row": 50, "column": 46}}, {"id": 40, "type": "type_definition", "text": "typedef SmartPointer<Self> Pointer;", "parent": 15, "children": [41, 42, 43, 47], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 44}}, {"id": 41, "type": "typedef", "text": "typedef", "parent": 40, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 9}}, {"id": 42, "type": "type_identifier", "text": "SmartPointer", "parent": 40, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 22}}, {"id": 43, "type": "ERROR", "text": "<Self>", "parent": 40, "children": [44, 45, 46], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 28}}, {"id": 44, "type": "<", "text": "<", "parent": 43, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 23}}, {"id": 45, "type": "type_identifier", "text": "Self", "parent": 43, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 27}}, {"id": 46, "type": ">", "text": ">", "parent": 43, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 28}}, {"id": 47, "type": "type_identifier", "text": "Pointer", "parent": 40, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 43}}, {"id": 48, "type": "type_definition", "text": "typedef SmartPointer<const Self> ConstPointer;", "parent": 15, "children": [49, 50, 51, 53, 56], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 49}}, {"id": 49, "type": "typedef", "text": "typedef", "parent": 48, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 9}}, {"id": 50, "type": "type_identifier", "text": "SmartPointer", "parent": 48, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 22}}, {"id": 51, "type": "ERROR", "text": "<", "parent": 48, "children": [52], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 52, "type": "<", "text": "<", "parent": 51, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 53, "type": "ERROR", "text": "Self>", "parent": 48, "children": [54, 55], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 34}}, {"id": 54, "type": "type_identifier", "text": "Self", "parent": 53, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 33}}, {"id": 55, "type": ">", "text": ">", "parent": 53, "children": [], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 34}}, {"id": 56, "type": "type_identifier", "text": "ConstPointer", "parent": 48, "children": [], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 48}}, {"id": 57, "type": "call_expression", "text": "itkNewMacro(Self)", "parent": 15, "children": [58, 59], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 19}}, {"id": 58, "type": "identifier", "text": "itkNewMacro", "parent": 57, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 13}}, {"id": 59, "type": "argument_list", "text": "(Self)", "parent": 57, "children": [60], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 19}}, {"id": 60, "type": "identifier", "text": "Self", "parent": 59, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 18}}, {"id": 61, "type": "call_expression", "text": "itkTypeMacro(ImageToVTKImageFilter, ProcessObject)", "parent": 15, "children": [62, 63], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 52}}, {"id": 62, "type": "identifier", "text": "itkTypeMacro", "parent": 61, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 14}}, {"id": 63, "type": "argument_list", "text": "(ImageToVTKImageFilter, ProcessObject)", "parent": 61, "children": [64, 65], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 52}}, {"id": 64, "type": "identifier", "text": "ImageToVTKImageFilter", "parent": 63, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 36}}, {"id": 65, "type": "identifier", "text": "ProcessObject", "parent": 63, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 51}}, {"id": 66, "type": "type_definition", "text": "typedef TInputImage InputImageType;", "parent": 15, "children": [67, 68, 69], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 64}}, {"id": 67, "type": "typedef", "text": "typedef", "parent": 66, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 9}}, {"id": 68, "type": "type_identifier", "text": "TInputImage", "parent": 66, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 21}}, {"id": 69, "type": "type_identifier", "text": "InputImageType", "parent": 66, "children": [], "start_point": {"row": 61, "column": 49}, "end_point": {"row": 61, "column": 63}}, {"id": 70, "type": "type_definition", "text": "typedef typename InputImageType::ConstPointer InputImagePointer;", "parent": 15, "children": [71, 72, 73, 76], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 67}}, {"id": 71, "type": "typedef", "text": "typedef", "parent": 70, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 9}}, {"id": 72, "type": "type_identifier", "text": "typename", "parent": 70, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 18}}, {"id": 73, "type": "ERROR", "text": "InputImageType::ConstPointer", "parent": 70, "children": [74, 75], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 47}}, {"id": 74, "type": "type_identifier", "text": "InputImageType", "parent": 73, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 33}}, {"id": 75, "type": "identifier", "text": "ConstPointer", "parent": 73, "children": [], "start_point": {"row": 62, "column": 35}, "end_point": {"row": 62, "column": 47}}, {"id": 76, "type": "type_identifier", "text": "InputImagePointer", "parent": 70, "children": [], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 66}}, {"id": 77, "type": "type_definition", "text": "typedef VTKImageExport< InputImageType> ExporterFilterType;", "parent": 15, "children": [78, 79, 80, 84], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 68}}, {"id": 78, "type": "typedef", "text": "typedef", "parent": 77, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 9}}, {"id": 79, "type": "type_identifier", "text": "VTKImageExport", "parent": 77, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 24}}, {"id": 80, "type": "ERROR", "text": "< InputImageType>", "parent": 77, "children": [81, 82, 83], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 41}}, {"id": 81, "type": "<", "text": "<", "parent": 80, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 25}}, {"id": 82, "type": "type_identifier", "text": "InputImageType", "parent": 80, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 40}}, {"id": 83, "type": ">", "text": ">", "parent": 80, "children": [], "start_point": {"row": 64, "column": 40}, "end_point": {"row": 64, "column": 41}}, {"id": 84, "type": "type_identifier", "text": "ExporterFilterType", "parent": 77, "children": [], "start_point": {"row": 64, "column": 49}, "end_point": {"row": 64, "column": 67}}, {"id": 85, "type": "type_definition", "text": "typedef typename ExporterFilterType::Pointer ExporterFilterPointer;", "parent": 15, "children": [86, 87, 88, 91], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 71}}, {"id": 86, "type": "typedef", "text": "typedef", "parent": 85, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 9}}, {"id": 87, "type": "type_identifier", "text": "typename", "parent": 85, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 18}}, {"id": 88, "type": "ERROR", "text": "ExporterFilterType::Pointer", "parent": 85, "children": [89, 90], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 46}}, {"id": 89, "type": "type_identifier", "text": "ExporterFilterType", "parent": 88, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 37}}, {"id": 90, "type": "identifier", "text": "Pointer", "parent": 88, "children": [], "start_point": {"row": 65, "column": 39}, "end_point": {"row": 65, "column": 46}}, {"id": 91, "type": "type_identifier", "text": "ExporterFilterPointer", "parent": 85, "children": [], "start_point": {"row": 65, "column": 49}, "end_point": {"row": 65, "column": 70}}, {"id": 92, "type": "declaration", "text": "vtkImageData * GetOutput() const;", "parent": 15, "children": [93, 94], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 36}}, {"id": 93, "type": "type_identifier", "text": "vtkImageData", "parent": 92, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 14}}, {"id": 94, "type": "pointer_declarator", "text": "* GetOutput() const", "parent": 92, "children": [95, 96], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 35}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 16}}, {"id": 96, "type": "function_declarator", "text": "GetOutput() const", "parent": 94, "children": [97, 98], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 35}}, {"id": 97, "type": "identifier", "text": "GetOutput", "parent": 96, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 27}}, {"id": 98, "type": "parameter_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 29}}, {"id": 99, "type": "declaration", "text": "using Superclass::SetInput;", "parent": 15, "children": [100, 101, 102], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 29}}, {"id": 100, "type": "type_identifier", "text": "using", "parent": 99, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 7}}, {"id": 101, "type": "identifier", "text": "Superclass", "parent": 99, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 18}}, {"id": 102, "type": "ERROR", "text": "::SetInput", "parent": 99, "children": [103], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 28}}, {"id": 103, "type": "identifier", "text": "SetInput", "parent": 102, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 28}}, {"id": 104, "type": "declaration", "text": "void SetInput( const InputImageType * );", "parent": 15, "children": [105, 106], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 42}}, {"id": 105, "type": "primitive_type", "text": "void", "parent": 104, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 6}}, {"id": 106, "type": "function_declarator", "text": "SetInput( const InputImageType * )", "parent": 104, "children": [107, 108], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 41}}, {"id": 107, "type": "identifier", "text": "SetInput", "parent": 106, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 15}}, {"id": 108, "type": "parameter_list", "text": "( const InputImageType * )", "parent": 106, "children": [109], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 41}}, {"id": 109, "type": "parameter_declaration", "text": "const InputImageType *", "parent": 108, "children": [110, 111], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 39}}, {"id": 110, "type": "type_identifier", "text": "InputImageType", "parent": 109, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 37}}, {"id": 111, "type": "abstract_pointer_declarator", "text": "*", "parent": 109, "children": [112], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 39}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 39}}, {"id": 113, "type": "declaration", "text": "InputImageType * GetInput();", "parent": 15, "children": [114, 115], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 30}}, {"id": 114, "type": "type_identifier", "text": "InputImageType", "parent": 113, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 16}}, {"id": 115, "type": "pointer_declarator", "text": "* GetInput()", "parent": 113, "children": [116, 117], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 29}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 18}}, {"id": 117, "type": "function_declarator", "text": "GetInput()", "parent": 115, "children": [118, 119], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 29}}, {"id": 118, "type": "identifier", "text": "GetInput", "parent": 117, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 27}}, {"id": 119, "type": "parameter_list", "text": "()", "parent": 117, "children": [], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 29}}, {"id": 120, "type": "declaration", "text": "vtkImageImport * GetImporter() const;", "parent": 15, "children": [121, 122], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 39}}, {"id": 121, "type": "type_identifier", "text": "vtkImageImport", "parent": 120, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 16}}, {"id": 122, "type": "pointer_declarator", "text": "* GetImporter() const", "parent": 120, "children": [123, 124], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 38}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 18}}, {"id": 124, "type": "function_declarator", "text": "GetImporter() const", "parent": 122, "children": [125, 126], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 38}}, {"id": 125, "type": "identifier", "text": "GetImporter", "parent": 124, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 30}}, {"id": 126, "type": "parameter_list", "text": "()", "parent": 124, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 32}}, {"id": 127, "type": "declaration", "text": "ExporterFilterType * GetExporter() const;", "parent": 15, "children": [128, 129], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 43}}, {"id": 128, "type": "type_identifier", "text": "ExporterFilterType", "parent": 127, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 20}}, {"id": 129, "type": "pointer_declarator", "text": "* GetExporter() const", "parent": 127, "children": [130, 131], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 42}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 22}}, {"id": 131, "type": "function_declarator", "text": "GetExporter() const", "parent": 129, "children": [132, 133], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 42}}, {"id": 132, "type": "identifier", "text": "GetExporter", "parent": 131, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 34}}, {"id": 133, "type": "parameter_list", "text": "()", "parent": 131, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 36}}, {"id": 134, "type": "type_identifier", "text": "virtual", "parent": 15, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 9}}, {"id": 135, "type": "ERROR", "text": "void", "parent": 15, "children": [136], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 14}}, {"id": 136, "type": "identifier", "text": "void", "parent": 135, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 14}}, {"id": 137, "type": "function_declarator", "text": "Update()", "parent": 15, "children": [138, 139], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 23}}, {"id": 138, "type": "identifier", "text": "Update", "parent": 137, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 21}}, {"id": 139, "type": "parameter_list", "text": "()", "parent": 137, "children": [], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 23}}, {"id": 140, "type": "declaration", "text": "ITK_OVERRIDE;", "parent": 15, "children": [141, 142], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 37}}, {"id": 141, "type": "type_identifier", "text": "ITK_OVERRIDE", "parent": 140, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 36}}, {"id": 142, "type": "identifier", "text": "", "parent": 140, "children": [], "start_point": {"row": 87, "column": 36}, "end_point": {"row": 87, "column": 36}}, {"id": 143, "type": "declaration", "text": "virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();", "parent": 15, "children": [144, 145, 151], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 93, "column": 26}}, {"id": 144, "type": "type_identifier", "text": "virtual", "parent": 143, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 9}}, {"id": 145, "type": "ERROR", "text": "void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:", "parent": 143, "children": [146, 147], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 92, "column": 10}}, {"id": 146, "type": "identifier", "text": "void", "parent": 145, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 14}}, {"id": 147, "type": "function_declarator", "text": "UpdateLargestPossibleRegion() ITK_OVERRIDE", "parent": 145, "children": [148, 149, 150], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 57}}, {"id": 148, "type": "identifier", "text": "UpdateLargestPossibleRegion", "parent": 147, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 42}}, {"id": 149, "type": "parameter_list", "text": "()", "parent": 147, "children": [], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 44}}, {"id": 150, "type": "identifier", "text": "ITK_OVERRIDE", "parent": 147, "children": [], "start_point": {"row": 90, "column": 45}, "end_point": {"row": 90, "column": 57}}, {"id": 151, "type": "function_declarator", "text": "ImageToVTKImageFilter()", "parent": 143, "children": [152, 153], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 25}}, {"id": 152, "type": "identifier", "text": "ImageToVTKImageFilter", "parent": 151, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 23}}, {"id": 153, "type": "parameter_list", "text": "()", "parent": 151, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 25}}, {"id": 154, "type": "declaration", "text": "virtual ~ImageToVTKImageFilter();", "parent": 15, "children": [155, 156, 158], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 35}}, {"id": 155, "type": "type_identifier", "text": "virtual", "parent": 154, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 9}}, {"id": 156, "type": "ERROR", "text": "~", "parent": 154, "children": [157], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 11}}, {"id": 157, "type": "~", "text": "~", "parent": 156, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 11}}, {"id": 158, "type": "function_declarator", "text": "ImageToVTKImageFilter()", "parent": 154, "children": [159, 160], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 34}}, {"id": 159, "type": "identifier", "text": "ImageToVTKImageFilter", "parent": 158, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 32}}, {"id": 160, "type": "parameter_list", "text": "()", "parent": 158, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 34}}, {"id": 161, "type": "declaration", "text": "private:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);", "parent": 15, "children": [162], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 54}}, {"id": 162, "type": "function_declarator", "text": "ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter)", "parent": 161, "children": [163, 164], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 53}}, {"id": 163, "type": "identifier", "text": "ITK_DISALLOW_COPY_AND_ASSIGN", "parent": 162, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 30}}, {"id": 164, "type": "parameter_list", "text": "(ImageToVTKImageFilter)", "parent": 162, "children": [165], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 53}}, {"id": 165, "type": "parameter_declaration", "text": "ImageToVTKImageFilter", "parent": 164, "children": [166], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 52}}, {"id": 166, "type": "type_identifier", "text": "ImageToVTKImageFilter", "parent": 165, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 52}}, {"id": 167, "type": "declaration", "text": "ExporterFilterPointer m_Exporter;", "parent": 15, "children": [168, 169], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 41}}, {"id": 168, "type": "type_identifier", "text": "ExporterFilterPointer", "parent": 167, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 23}}, {"id": 169, "type": "identifier", "text": "m_Exporter", "parent": 167, "children": [], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 40}}, {"id": 170, "type": "declaration", "text": "vtkImageImport * m_Importer;", "parent": 15, "children": [171, 172], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 41}}, {"id": 171, "type": "type_identifier", "text": "vtkImageImport", "parent": 170, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 16}}, {"id": 172, "type": "pointer_declarator", "text": "* m_Importer", "parent": 170, "children": [173, 174], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 40}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 18}}, {"id": 174, "type": "identifier", "text": "m_Importer", "parent": 172, "children": [], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 40}}, {"id": 175, "type": "ERROR", "text": "};\n\n} // end namespace itk\n\n#ifndef", "parent": 15, "children": [176], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 176, "type": "#ifndef", "text": "#ifndef", "parent": 175, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 177, "type": "type_identifier", "text": "ITK_MANUAL_INSTANTIATION", "parent": 15, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 32}}, {"id": 178, "type": "ERROR", "text": "#include \"itkImageToVTKImageFilter.", "parent": 15, "children": [179, 180], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 35}}, {"id": 179, "type": "preproc_directive", "text": "#include", "parent": 178, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 8}}, {"id": 180, "type": "identifier", "text": "itkImageToVTKImageFilter", "parent": 178, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 34}}, {"id": 181, "type": "identifier", "text": "hxx", "parent": 15, "children": [], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 38}}, {"id": 182, "type": "#endif", "text": "#endif", "parent": 15, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 183, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 6}}]}, "node_categories": {"declarations": {"functions": [96, 106, 117, 124, 131, 137, 147, 151, 158, 162], "variables": [31, 36, 40, 48, 66, 70, 77, 85, 92, 99, 104, 109, 113, 120, 127, 140, 143, 154, 161, 165, 167, 170], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [18, 19, 57, 61], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 20, 23, 24, 26, 27, 29, 32, 33, 35, 38, 39, 42, 45, 47, 50, 54, 56, 58, 60, 62, 64, 65, 68, 69, 72, 74, 75, 76, 79, 82, 84, 87, 89, 90, 91, 93, 97, 100, 101, 103, 107, 110, 114, 118, 121, 125, 128, 132, 134, 136, 138, 141, 142, 144, 146, 148, 150, 152, 155, 159, 163, 166, 168, 169, 171, 174, 176, 177, 180, 181, 182, 183], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "GetOutput() const"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "SetInput( const InputImageType * )"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "GetInput()"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "GetImporter() const"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "GetExporter() const"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "Update()"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateLargestPossibleRegion() ITK_OVERRIDE"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "ImageToVTKImageFilter()"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "ImageToVTKImageFilter()"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"itkVTKImageExport.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"vtkImageImport.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"vtkImageData.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*=========================================================================\n *\n * Copyright Insight Software Consortium\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.txt\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 itkImageToVTKImageFilter_h\n#define itkImageToVTKImageFilter_h\n\n#include \"itkVTKImageExport.h\"\n#include \"vtkImageImport.h\"\n#include \"vtkImageData.h\"\n\nnamespace itk\n{\n\n/** \\class ImageToVTKImageFilter\n * \\brief Converts an ITK image into a VTK image and plugs a\n * itk data pipeline to a VTK datapipeline.\n *\n * This class puts together an itkVTKImageExporter and a vtkImageImporter.\n * It takes care of the details related to the connection of ITK and VTK\n * pipelines. The User will perceive this filter as an adaptor to which\n * an itk::Image can be plugged as input and a vtkImage is produced as\n * output.\n *\n * \\ingroup ITKVtkGlue\n *\n * \\wiki\n * \\wikiexample{IO/ImageToVTKImageFilter,Display an ITK image}\n * \\wikiexample{IO/itkVtkImageConvertDICOM,Uses a custom user matrix to align the image with DICOM physical space}\n * \\endwiki\n */\ntemplate <typename TInputImage >\nclass ITK_TEMPLATE_EXPORT ImageToVTKImageFilter : public ProcessObject\n{\npublic:\n /** Standard class typedefs. */\n typedef ImageToVTKImageFilter Self;\n typedef ProcessObject Superclass;\n typedef SmartPointer<Self> Pointer;\n typedef SmartPointer<const Self> ConstPointer;\n\n /** Method for creation through the object factory. */\n itkNewMacro(Self);\n\n /** Run-time type information (and related methods). */\n itkTypeMacro(ImageToVTKImageFilter, ProcessObject);\n\n /** Some typedefs. */\n typedef TInputImage InputImageType;\n typedef typename InputImageType::ConstPointer InputImagePointer;\n\n typedef VTKImageExport< InputImageType> ExporterFilterType;\n typedef typename ExporterFilterType::Pointer ExporterFilterPointer;\n\n /** Get the output in the form of a vtkImage.\n This call is delegated to the internal vtkImageImporter filter */\n vtkImageData * GetOutput() const;\n\n /** Set the input in the form of an itk::Image */\n using Superclass::SetInput;\n void SetInput( const InputImageType * );\n InputImageType * GetInput();\n\n /** Return the internal VTK image importer filter.\n This is intended to facilitate users the access\n to methods in the importer */\n vtkImageImport * GetImporter() const;\n\n /** Return the internal ITK image exporter filter.\n This is intended to facilitate users the access\n to methods in the exporter */\n ExporterFilterType * GetExporter() const;\n\n /** This call delegates the update to the importer */\n virtual void Update() ITK_OVERRIDE;\n\n /** This call delegates the update to the importer */\n virtual void UpdateLargestPossibleRegion() ITK_OVERRIDE;\n\nprotected:\n ImageToVTKImageFilter();\n virtual ~ImageToVTKImageFilter();\n\nprivate:\n ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter);\n\n ExporterFilterPointer m_Exporter;\n vtkImageImport * m_Importer;\n};\n\n} // end namespace itk\n\n#ifndef ITK_MANUAL_INSTANTIATION\n#include \"itkImageToVTKImageFilter.hxx\"\n#endif\n\n#endif"}
80,469
c
// // HTTPInterfaceManager+Config.h // Xiuxiu // // Created by Mac on 15/7/3. // Copyright (c) 2015年 <EMAIL>. All rights reserved. // #import "HTTPInterfaceManager.h" /** * Extend for configuation fetch * */ @interface HTTPInterfaceManager (Config) /** * 全局配置接口,应该在app启动时候拉取 * * @param userInfo 透传信息 * @return 请求 */ -(id)getConfigWithUserInfo:(NSDictionary *)userInfo; -(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo; -(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo; -(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo; -(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo; @end
24.85
26
(translation_unit) "//\n// HTTPInterfaceManager+Config.h\n// Xiuxiu\n//\n// Created by Mac on 15/7/3.\n// Copyright (c) 2015年 <EMAIL>. All rights reserved.\n//\n\n#import "HTTPInterfaceManager.h"\n\n/**\n * Extend for configuation fetch\n *\n */\n@interface HTTPInterfaceManager (Config)\n\n/**\n * 全局配置接口,应该在app启动时候拉取\n * \n * @param userInfo 透传信息\n * @return 请求\n */\n-(id)getConfigWithUserInfo:(NSDictionary *)userInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n" (comment) "//" (comment) "// HTTPInterfaceManager+Config.h" (comment) "// Xiuxiu" (comment) "//" (comment) "// Created by Mac on 15/7/3." (comment) "// Copyright (c) 2015年 <EMAIL>. All rights reserved.\n/" (comment) "\n\n" (preproc_call) "mport "HTTPInterfaceManager.h"\n\n/" (preproc_directive) "mport "" (preproc_arg) "TTPInterfaceManager.h"\n\n" (comment) "*\n * Extend for configuation fetch\n *\n */\n@" (ERROR) "nterface HTTPInterfaceManager (Config)\n\n" (ERROR) "n" (type_identifier) "terface H" (function_declarator) "TPInterfaceManager (Config)\n\n" (identifier) "TPInterfaceManager (" (parameter_list) "onfig)\n\n" (() "o" (identifier) "nfig)\n" ()) "\n" (comment) "*\n * 全局配置接口,应该在app启动时候拉取\n * \n * @param userInfo 透传信息\n * @return 请求\n */\n-(id)getConfigWithUserInfo:(NSDictionary *)us" (ERROR) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NS" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInf" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordI" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRec" (binary_expression) "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDic" (unary_expression) "rInfo;\n\n\n-(id)getConnectio" (-) "r" (cast_expression) "Info;\n\n\n-(id)getConnectio" (() "I" (type_descriptor) "nf" (type_identifier) "nf" ()) "o" (identifier) ";\n\n\n-(id)getConnectio" (ERROR) "nIpAddressWith" (:) "n" (() "I" (identifier) "pAddressWith" (*) "n" (ERROR) "f" ()) "f" (identifier) "o:(NSDic" (ERROR) "t" (;) "t" (-) "a" (cast_expression) "ry *)userInfo;\n\n-(id)getControlRec" (() "r" (type_descriptor) "y " (type_identifier) "y " ()) "*" (identifier) ")userInfo;\n\n-(id)getControlRec" (ERROR) "ordWithOffset:" (:) "o" (() "r" (identifier) "dWithOffset:" (*) "i" (ERROR) "n" ()) "n" (identifier) "t)offset" (ERROR) " " (;) " " (-) "e" (cast_expression) "rInfo:(NSDictionary*)userInfo;" (() "r" (type_descriptor) "In" (type_identifier) "In" ()) "f" (identifier) "o:(NSDictionary*)userInfo;" (ERROR) "\n\n-(id)deleteSingleControlRecord:(i" (:) "\n" (() "\n" (primitive_type) "-(i" ()) "d" (identifier) ")delet" (identifier) "SingleCo" (:) "n" (() "t" (identifier) "rolRecord:(i" (*) "n" (ERROR) "t" ()) "t" (identifier) ")recordI" (ERROR) "d" (;) "d" (-) "s" (cast_expression) "erInfo:(NSDictionary*)userInf" (() "e" (type_descriptor) "rI" (type_identifier) "rI" ()) "n" (identifier) "fo:(NSDictionary*)userInf" (ERROR) "o;\n\n-(id)deleteAllControlRecordWithUs" (:) "o" (() ";" (primitive_type) "\n\n-" ()) "(" (identifier) "id)delet" (identifier) "AllContr" (:) "o" (() "l" (identifier) "RecordWithUs" (*) "e" (ERROR) "r" ()) "r" (identifier) "Info:(NS" (ERROR) "D" (;) "D" (-) "t" (cast_expression) "ionary*)userInfo;\n\n@end\n" (() "i" (type_descriptor) "on" (type_identifier) "on" ()) "a" (identifier) "ry*)userInfo;\n\n@end\n" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (;) "" (ERROR) "" (identifier) ""
131
18
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 24.85, "nodes": 83, "errors": 0, "source_hash": "41a21c916d6e353adb5efbbe5350e5bcbcf6294d81e8bd4702ef8e4c3ee41077", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "mport \"HTTPInterfaceManager.h\"\n\n/", "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": "TTPInterfaceManager.h\"\n\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 32}}, {"id": 3, "type": "ERROR", "text": "nterface HTTPInterfaceManager (Config)\n\n", "parent": null, "children": [4, 5, 6], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 40}}, {"id": 4, "type": "ERROR", "text": "n", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "terface H", "parent": 3, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "TPInterfaceManager (Config)\n\n", "parent": 3, "children": [7, 8], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 40}}, {"id": 7, "type": "identifier", "text": "TPInterfaceManager (", "parent": 6, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 31}}, {"id": 8, "type": "parameter_list", "text": "onfig)\n\n", "parent": 6, "children": [9], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 40}}, {"id": 9, "type": "identifier", "text": "nfig)\n", "parent": 8, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 39}}, {"id": 10, "type": "ERROR", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n", "parent": null, "children": [11, 81, 82], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 33, "column": 4}}, {"id": 11, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n", "parent": 10, "children": [12, 76, 78, 79, 80], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 31, "column": 63}}, {"id": 12, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n", "parent": 11, "children": [13, 70, 71, 72], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 31, "column": 39}}, {"id": 13, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NS", "parent": 12, "children": [14, 62, 67, 68, 69], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 29, "column": 77}}, {"id": 14, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInf", "parent": 13, "children": [15, 56, 57, 58], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 29, "column": 30}}, {"id": 15, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordI", "parent": 14, "children": [16, 48, 53, 54, 55], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 27, "column": 76}}, {"id": 16, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;", "parent": 15, "children": [17, 42, 43, 44], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 27, "column": 31}}, {"id": 17, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset", "parent": 16, "children": [18, 37, 39, 40, 41], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 25, "column": 60}}, {"id": 18, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRec", "parent": 17, "children": [19, 31, 32, 33], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 25, "column": 35}}, {"id": 19, "type": "binary_expression", "text": "rInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDic", "parent": 18, "children": [20, 26, 28, 29, 30], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 51}}, {"id": 20, "type": "unary_expression", "text": "rInfo;\n\n\n-(id)getConnectio", "parent": 19, "children": [21, 22], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 26}}, {"id": 21, "type": "-", "text": "r", "parent": 20, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 22, "type": "cast_expression", "text": "Info;\n\n\n-(id)getConnectio", "parent": 20, "children": [23, 25], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 26}}, {"id": 23, "type": "type_descriptor", "text": "nf", "parent": 22, "children": [24], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 4}}, {"id": 24, "type": "type_identifier", "text": "nf", "parent": 23, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 4}}, {"id": 25, "type": "identifier", "text": ";\n\n\n-(id)getConnectio", "parent": 22, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 26}}, {"id": 26, "type": "ERROR", "text": "nIpAddressWith", "parent": 19, "children": [27], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 40}}, {"id": 27, "type": "identifier", "text": "pAddressWith", "parent": 26, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 40}}, {"id": 28, "type": "*", "text": "n", "parent": 19, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 42}}, {"id": 29, "type": "ERROR", "text": "f", "parent": 19, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 43}}, {"id": 30, "type": "identifier", "text": "o:(NSDic", "parent": 19, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 51}}, {"id": 31, "type": "ERROR", "text": "t", "parent": 18, "children": [], "start_point": {"row": 22, "column": 51}, "end_point": {"row": 22, "column": 52}}, {"id": 32, "type": "-", "text": "a", "parent": 18, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 33, "type": "cast_expression", "text": "ry *)userInfo;\n\n-(id)getControlRec", "parent": 18, "children": [34, 36], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 35}}, {"id": 34, "type": "type_descriptor", "text": "y ", "parent": 33, "children": [35], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 4}}, {"id": 35, "type": "type_identifier", "text": "y ", "parent": 34, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 4}}, {"id": 36, "type": "identifier", "text": ")userInfo;\n\n-(id)getControlRec", "parent": 33, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 35}}, {"id": 37, "type": "ERROR", "text": "ordWithOffset:", "parent": 17, "children": [38], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 49}}, {"id": 38, "type": "identifier", "text": "dWithOffset:", "parent": 37, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 49}}, {"id": 39, "type": "*", "text": "i", "parent": 17, "children": [], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 51}}, {"id": 40, "type": "ERROR", "text": "n", "parent": 17, "children": [], "start_point": {"row": 25, "column": 51}, "end_point": {"row": 25, "column": 52}}, {"id": 41, "type": "identifier", "text": "t)offset", "parent": 17, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 60}}, {"id": 42, "type": "ERROR", "text": " ", "parent": 16, "children": [], "start_point": {"row": 25, "column": 60}, "end_point": {"row": 25, "column": 61}}, {"id": 43, "type": "-", "text": "e", "parent": 16, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 44, "type": "cast_expression", "text": "rInfo:(NSDictionary*)userInfo;", "parent": 16, "children": [45, 47], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 31}}, {"id": 45, "type": "type_descriptor", "text": "In", "parent": 44, "children": [46], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 4}}, {"id": 46, "type": "type_identifier", "text": "In", "parent": 45, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 4}}, {"id": 47, "type": "identifier", "text": "o:(NSDictionary*)userInfo;", "parent": 44, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 31}}, {"id": 48, "type": "ERROR", "text": "\n\n-(id)deleteSingleControlRecord:(i", "parent": 15, "children": [49, 50, 51, 52], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 66}}, {"id": 49, "type": "primitive_type", "text": "-(i", "parent": 48, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 36}}, {"id": 50, "type": "identifier", "text": ")delet", "parent": 48, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 43}}, {"id": 51, "type": "identifier", "text": "SingleCo", "parent": 48, "children": [], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 52}}, {"id": 52, "type": "identifier", "text": "rolRecord:(i", "parent": 48, "children": [], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 66}}, {"id": 53, "type": "*", "text": "n", "parent": 15, "children": [], "start_point": {"row": 27, "column": 66}, "end_point": {"row": 27, "column": 67}}, {"id": 54, "type": "ERROR", "text": "t", "parent": 15, "children": [], "start_point": {"row": 27, "column": 67}, "end_point": {"row": 27, "column": 68}}, {"id": 55, "type": "identifier", "text": ")recordI", "parent": 15, "children": [], "start_point": {"row": 27, "column": 68}, "end_point": {"row": 27, "column": 76}}, {"id": 56, "type": "ERROR", "text": "d", "parent": 14, "children": [], "start_point": {"row": 27, "column": 76}, "end_point": {"row": 27, "column": 77}}, {"id": 57, "type": "-", "text": "s", "parent": 14, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 58, "type": "cast_expression", "text": "erInfo:(NSDictionary*)userInf", "parent": 14, "children": [59, 61], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 30}}, {"id": 59, "type": "type_descriptor", "text": "rI", "parent": 58, "children": [60], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 4}}, {"id": 60, "type": "type_identifier", "text": "rI", "parent": 59, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 4}}, {"id": 61, "type": "identifier", "text": "fo:(NSDictionary*)userInf", "parent": 58, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 30}}, {"id": 62, "type": "ERROR", "text": "o;\n\n-(id)deleteAllControlRecordWithUs", "parent": 13, "children": [63, 64, 65, 66], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 67}}, {"id": 63, "type": "primitive_type", "text": "\n\n-", "parent": 62, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 35}}, {"id": 64, "type": "identifier", "text": "id)delet", "parent": 62, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 44}}, {"id": 65, "type": "identifier", "text": "AllContr", "parent": 62, "children": [], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 53}}, {"id": 66, "type": "identifier", "text": "RecordWithUs", "parent": 62, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 67}}, {"id": 67, "type": "*", "text": "e", "parent": 13, "children": [], "start_point": {"row": 29, "column": 67}, "end_point": {"row": 29, "column": 68}}, {"id": 68, "type": "ERROR", "text": "r", "parent": 13, "children": [], "start_point": {"row": 29, "column": 68}, "end_point": {"row": 29, "column": 69}}, {"id": 69, "type": "identifier", "text": "Info:(NS", "parent": 13, "children": [], "start_point": {"row": 29, "column": 69}, "end_point": {"row": 29, "column": 77}}, {"id": 70, "type": "ERROR", "text": "D", "parent": 12, "children": [], "start_point": {"row": 29, "column": 77}, "end_point": {"row": 29, "column": 78}}, {"id": 71, "type": "-", "text": "t", "parent": 12, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 72, "type": "cast_expression", "text": "ionary*)userInfo;\n\n@end\n", "parent": 12, "children": [73, 75], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 39}}, {"id": 73, "type": "type_descriptor", "text": "on", "parent": 72, "children": [74], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 4}}, {"id": 74, "type": "type_identifier", "text": "on", "parent": 73, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 4}}, {"id": 75, "type": "identifier", "text": "ry*)userInfo;\n\n@end\n", "parent": 72, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 39}}, {"id": 76, "type": "ERROR", "text": "", "parent": 11, "children": [77], "start_point": {"row": 31, "column": 39}, "end_point": {"row": 31, "column": 53}}, {"id": 77, "type": "identifier", "text": "", "parent": 76, "children": [], "start_point": {"row": 31, "column": 41}, "end_point": {"row": 31, "column": 53}}, {"id": 78, "type": "*", "text": "", "parent": 11, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 54}}, {"id": 79, "type": "ERROR", "text": "", "parent": 11, "children": [], "start_point": {"row": 31, "column": 54}, "end_point": {"row": 31, "column": 55}}, {"id": 80, "type": "identifier", "text": "", "parent": 11, "children": [], "start_point": {"row": 31, "column": 55}, "end_point": {"row": 31, "column": 63}}, {"id": 81, "type": "ERROR", "text": "", "parent": 10, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 82, "type": "identifier", "text": "", "parent": 10, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 4}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 33, 44, 58, 72], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 24, 25, 27, 30, 35, 36, 38, 41, 46, 47, 50, 51, 52, 55, 60, 61, 64, 65, 66, 69, 74, 75, 77, 80, 82], "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": "TPInterfaceManager (Config)\n\n"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// HTTPInterfaceManager+Config.h\n// Xiuxiu\n//\n// Created by Mac on 15/7/3.\n// Copyright (c) 2015\u5e74 <EMAIL>. All rights reserved.\n//\n\n#import \"HTTPInterfaceManager.h\"\n\n/**\n * Extend for configuation fetch\n *\n */\n@interface HTTPInterfaceManager (Config)\n\n/**\n * \u5168\u5c40\u914d\u7f6e\u63a5\u53e3\uff0c\u5e94\u8be5\u5728app\u542f\u52a8\u65f6\u5019\u62c9\u53d6\n * \n * @param userInfo \u900f\u4f20\u4fe1\u606f\n * @return \u8bf7\u6c42\n */\n-(id)getConfigWithUserInfo:(NSDictionary *)userInfo;\n\n\n-(id)getConnectionIpAddressWithInfo:(NSDictionary *)userInfo;\n\n-(id)getControlRecordWithOffset:(int)offset userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteSingleControlRecord:(int)recordId userInfo:(NSDictionary*)userInfo;\n\n-(id)deleteAllControlRecordWithUserInfo:(NSDictionary*)userInfo;\n\n@end\n"}
80,470
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "CameraDirector.generated.h" UCLASS() class UE4_DEMO_API ACameraDirector : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties ACameraDirector(); protected: // Called when the game starts or when spawned virtual void BeginPlay() override; public: // Called every frame virtual void Tick(float DeltaTime) override; private: void SwitchCamera(); void RotateCamera(float delta); private: UPROPERTY(EditAnywhere, Category="CameraControl") AActor* cameraActorOne; UPROPERTY(EditAnywhere, Category = "CameraControl") AActor* cameraActorTwo; UPROPERTY(EditAnywhere, Category = "CameraControl") float rotateSpeed; };
26.57
30
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "GameFramework/Actor.h"\n#include "CameraDirector.generated.h"\n\nUCLASS()\nclass UE4_DEMO_API ACameraDirector : public AActor\n{\n GENERATED_BODY()\n \npublic: \n // Sets default values for this actor's properties\n ACameraDirector();\n\nprotected:\n // Called when the game starts or when spawned\n virtual void BeginPlay() override;\n\npublic: \n // Called every frame\n virtual void Tick(float DeltaTime) override;\n\nprivate:\n void SwitchCamera();\n void RotateCamera(float delta);\nprivate:\n UPROPERTY(EditAnywhere, Category="CameraControl")\n AActor* cameraActorOne;\n\n UPROPERTY(EditAnywhere, Category = "CameraControl")\n AActor* cameraActorTwo;\n\n UPROPERTY(EditAnywhere, Category = "CameraControl")\n float rotateSpeed;\n};\n" (comment) "// Fill out your copyright notice in the Description page of Project Settings." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "CoreMinimal.h"\n" (#include) "#include" (string_literal) ""CoreMinimal.h"" (") """ (string_content) "CoreMinimal.h" (") """ (preproc_include) "#include "GameFramework/Actor.h"\n" (#include) "#include" (string_literal) ""GameFramework/Actor.h"" (") """ (string_content) "GameFramework/Actor.h" (") """ (preproc_include) "#include "CameraDirector.generated.h"\n" (#include) "#include" (string_literal) ""CameraDirector.generated.h"" (") """ (string_content) "CameraDirector.generated.h" (") """ (ERROR) "UCLASS()\nclass" (call_expression) "UCLASS()" (identifier) "UCLASS" (argument_list) "()" (() "(" ()) ")" (identifier) "class" (function_definition) "UE4_DEMO_API ACameraDirector : public AActor\n{\n GENERATED_BODY()\n \npublic: \n // Sets default values for this actor's properties\n ACameraDirector();\n\nprotected:\n // Called when the game starts or when spawned\n virtual void BeginPlay() override;\n\npublic: \n // Called every frame\n virtual void Tick(float DeltaTime) override;\n\nprivate:\n void SwitchCamera();\n void RotateCamera(float delta);\nprivate:\n UPROPERTY(EditAnywhere, Category="CameraControl")\n AActor* cameraActorOne;\n\n UPROPERTY(EditAnywhere, Category = "CameraControl")\n AActor* cameraActorTwo;\n\n UPROPERTY(EditAnywhere, Category = "CameraControl")\n float rotateSpeed;\n}" (type_identifier) "UE4_DEMO_API" (identifier) "ACameraDirector" (ERROR) ": public AActor" (:) ":" (identifier) "public" (identifier) "AActor" (compound_statement) "{\n GENERATED_BODY()\n \npublic: \n // Sets default values for this actor's properties\n ACameraDirector();\n\nprotected:\n // Called when the game starts or when spawned\n virtual void BeginPlay() override;\n\npublic: \n // Called every frame\n virtual void Tick(float DeltaTime) override;\n\nprivate:\n void SwitchCamera();\n void RotateCamera(float delta);\nprivate:\n UPROPERTY(EditAnywhere, Category="CameraControl")\n AActor* cameraActorOne;\n\n UPROPERTY(EditAnywhere, Category = "CameraControl")\n AActor* cameraActorTwo;\n\n UPROPERTY(EditAnywhere, Category = "CameraControl")\n float rotateSpeed;\n}" ({) "{" (expression_statement) "GENERATED_BODY()" (call_expression) "GENERATED_BODY()" (identifier) "GENERATED_BODY" (argument_list) "()" (() "(" ()) ")" (;) "" (labeled_statement) "public: \n // Sets default values for this actor's properties\n ACameraDirector();" (statement_identifier) "public" (:) ":" (comment) "// Sets default values for this actor's properties" (expression_statement) "ACameraDirector();" (call_expression) "ACameraDirector()" (identifier) "ACameraDirector" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "protected:\n // Called when the game starts or when spawned\n virtual void BeginPlay() override;" (statement_identifier) "protected" (:) ":" (comment) "// Called when the game starts or when spawned" (ERROR) "virtual void BeginPlay() override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "BeginPlay() override" (identifier) "BeginPlay" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "public: \n // Called every frame\n virtual void Tick(float DeltaTime) override;" (statement_identifier) "public" (:) ":" (comment) "// Called every frame" (ERROR) "virtual void Tick(float DeltaTime) override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Tick(float DeltaTime) override" (identifier) "Tick" (parameter_list) "(float DeltaTime)" (() "(" (parameter_declaration) "float DeltaTime" (primitive_type) "float" (identifier) "DeltaTime" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n void SwitchCamera();" (statement_identifier) "private" (:) ":" (declaration) "void SwitchCamera();" (primitive_type) "void" (function_declarator) "SwitchCamera()" (identifier) "SwitchCamera" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void RotateCamera(float delta);" (primitive_type) "void" (function_declarator) "RotateCamera(float delta)" (identifier) "RotateCamera" (parameter_list) "(float delta)" (() "(" (parameter_declaration) "float delta" (primitive_type) "float" (identifier) "delta" ()) ")" (;) ";" (labeled_statement) "private:\n UPROPERTY(EditAnywhere, Category="CameraControl")\n AActor* cameraActorOne;" (statement_identifier) "private" (:) ":" (expression_statement) "UPROPERTY(EditAnywhere, Category="CameraControl")\n AActor* cameraActorOne;" (binary_expression) "UPROPERTY(EditAnywhere, Category="CameraControl")\n AActor* cameraActorOne" (call_expression) "UPROPERTY(EditAnywhere, Category="CameraControl")" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, Category="CameraControl")" (() "(" (identifier) "EditAnywhere" (,) "," (assignment_expression) "Category="CameraControl"" (identifier) "Category" (=) "=" (string_literal) ""CameraControl"" (") """ (string_content) "CameraControl" (") """ ()) ")" (ERROR) "AActor" (identifier) "AActor" (*) "*" (identifier) "cameraActorOne" (;) ";" (expression_statement) "UPROPERTY(EditAnywhere, Category = "CameraControl")\n AActor* cameraActorTwo;" (binary_expression) "UPROPERTY(EditAnywhere, Category = "CameraControl")\n AActor* cameraActorTwo" (call_expression) "UPROPERTY(EditAnywhere, Category = "CameraControl")" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, Category = "CameraControl")" (() "(" (identifier) "EditAnywhere" (,) "," (assignment_expression) "Category = "CameraControl"" (identifier) "Category" (=) "=" (string_literal) ""CameraControl"" (") """ (string_content) "CameraControl" (") """ ()) ")" (ERROR) "AActor" (identifier) "AActor" (*) "*" (identifier) "cameraActorTwo" (;) ";" (expression_statement) "UPROPERTY(EditAnywhere, Category = "CameraControl")" (call_expression) "UPROPERTY(EditAnywhere, Category = "CameraControl")" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, Category = "CameraControl")" (() "(" (identifier) "EditAnywhere" (,) "," (assignment_expression) "Category = "CameraControl"" (identifier) "Category" (=) "=" (string_literal) ""CameraControl"" (") """ (string_content) "CameraControl" (") """ ()) ")" (;) "" (declaration) "float rotateSpeed;" (primitive_type) "float" (identifier) "rotateSpeed" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
182
8
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 26.57, "nodes": 101, "errors": 0, "source_hash": "b5a7e17cda4883e470b58147c6ef544495fd4118e619b859317fe07ba24e0078", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\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", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"CoreMinimal.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": "\"CoreMinimal.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"GameFramework/Actor.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": "\"GameFramework/Actor.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 32}}, {"id": 9, "type": "preproc_include", "text": "#include \"CameraDirector.generated.h\"\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": "\"CameraDirector.generated.h\"", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 37}}, {"id": 12, "type": "ERROR", "text": "UCLASS()\nclass", "parent": null, "children": [13], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 13, "type": "call_expression", "text": "UCLASS()", "parent": 12, "children": [14, 15], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 14, "type": "identifier", "text": "UCLASS", "parent": 13, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 15, "type": "argument_list", "text": "()", "parent": 13, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 8}}, {"id": 16, "type": "function_definition", "text": "UE4_DEMO_API ACameraDirector : public AActor\n{\n\tGENERATED_BODY()\n\t\npublic:\t\n\t// Sets default values for this actor's properties\n\tACameraDirector();\n\nprotected:\n\t// Called when the game starts or when spawned\n\tvirtual void BeginPlay() override;\n\npublic:\t\n\t// Called every frame\n\tvirtual void Tick(float DeltaTime) override;\n\nprivate:\n\tvoid SwitchCamera();\n\tvoid RotateCamera(float delta);\nprivate:\n\tUPROPERTY(EditAnywhere, Category=\"CameraControl\")\n\tAActor* cameraActorOne;\n\n\tUPROPERTY(EditAnywhere, Category = \"CameraControl\")\n\tAActor* cameraActorTwo;\n\n\tUPROPERTY(EditAnywhere, Category = \"CameraControl\")\n\tfloat rotateSpeed;\n}", "parent": null, "children": [17, 18, 19], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 37, "column": 1}}, {"id": 17, "type": "type_identifier", "text": "UE4_DEMO_API", "parent": 16, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 18}}, {"id": 18, "type": "identifier", "text": "ACameraDirector", "parent": 16, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 34}}, {"id": 19, "type": "ERROR", "text": ": public AActor", "parent": 16, "children": [20], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 50}}, {"id": 20, "type": "identifier", "text": "AActor", "parent": 19, "children": [], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 50}}, {"id": 21, "type": "call_expression", "text": "GENERATED_BODY()", "parent": 16, "children": [22, 23], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 17}}, {"id": 22, "type": "identifier", "text": "GENERATED_BODY", "parent": 21, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 15}}, {"id": 23, "type": "argument_list", "text": "()", "parent": 21, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 17}}, {"id": 24, "type": "labeled_statement", "text": "public:\t\n\t// Sets default values for this actor's properties\n\tACameraDirector();", "parent": 16, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 15, "column": 19}}, {"id": 25, "type": "call_expression", "text": "ACameraDirector()", "parent": 24, "children": [26, 27], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 18}}, {"id": 26, "type": "identifier", "text": "ACameraDirector", "parent": 25, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 16}}, {"id": 27, "type": "argument_list", "text": "()", "parent": 25, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 18}}, {"id": 28, "type": "labeled_statement", "text": "protected:\n\t// Called when the game starts or when spawned\n\tvirtual void BeginPlay() override;", "parent": 16, "children": [29], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 19, "column": 35}}, {"id": 29, "type": "ERROR", "text": "virtual void BeginPlay() override", "parent": 28, "children": [30, 31, 33], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 34}}, {"id": 30, "type": "type_identifier", "text": "virtual", "parent": 29, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 31, "type": "ERROR", "text": "void", "parent": 29, "children": [32], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 13}}, {"id": 32, "type": "identifier", "text": "void", "parent": 31, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 13}}, {"id": 33, "type": "function_declarator", "text": "BeginPlay() override", "parent": 29, "children": [34, 35, 36], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 34}}, {"id": 34, "type": "identifier", "text": "BeginPlay", "parent": 33, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 23}}, {"id": 35, "type": "parameter_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 25}}, {"id": 36, "type": "identifier", "text": "override", "parent": 33, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 34}}, {"id": 37, "type": "labeled_statement", "text": "public:\t\n\t// Called every frame\n\tvirtual void Tick(float DeltaTime) override;", "parent": 16, "children": [38], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 45}}, {"id": 38, "type": "ERROR", "text": "virtual void Tick(float DeltaTime) override", "parent": 37, "children": [39, 40, 42], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 44}}, {"id": 39, "type": "type_identifier", "text": "virtual", "parent": 38, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 8}}, {"id": 40, "type": "ERROR", "text": "void", "parent": 38, "children": [41], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 13}}, {"id": 41, "type": "identifier", "text": "void", "parent": 40, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 13}}, {"id": 42, "type": "function_declarator", "text": "Tick(float DeltaTime) override", "parent": 38, "children": [43, 44, 48], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 44}}, {"id": 43, "type": "identifier", "text": "Tick", "parent": 42, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 18}}, {"id": 44, "type": "parameter_list", "text": "(float DeltaTime)", "parent": 42, "children": [45], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 35}}, {"id": 45, "type": "parameter_declaration", "text": "float DeltaTime", "parent": 44, "children": [46, 47], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 34}}, {"id": 46, "type": "primitive_type", "text": "float", "parent": 45, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 24}}, {"id": 47, "type": "identifier", "text": "DeltaTime", "parent": 45, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 34}}, {"id": 48, "type": "identifier", "text": "override", "parent": 42, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 44}}, {"id": 49, "type": "labeled_statement", "text": "private:\n\tvoid SwitchCamera();", "parent": 16, "children": [50], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 21}}, {"id": 50, "type": "declaration", "text": "void SwitchCamera();", "parent": 49, "children": [51, 52], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 21}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 5}}, {"id": 52, "type": "function_declarator", "text": "SwitchCamera()", "parent": 50, "children": [53, 54], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 20}}, {"id": 53, "type": "identifier", "text": "SwitchCamera", "parent": 52, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 18}}, {"id": 54, "type": "parameter_list", "text": "()", "parent": 52, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 20}}, {"id": 55, "type": "declaration", "text": "void RotateCamera(float delta);", "parent": 16, "children": [56, 57], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 32}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 57, "type": "function_declarator", "text": "RotateCamera(float delta)", "parent": 55, "children": [58, 59], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 31}}, {"id": 58, "type": "identifier", "text": "RotateCamera", "parent": 57, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 18}}, {"id": 59, "type": "parameter_list", "text": "(float delta)", "parent": 57, "children": [60], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 31}}, {"id": 60, "type": "parameter_declaration", "text": "float delta", "parent": 59, "children": [61, 62], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 30}}, {"id": 61, "type": "primitive_type", "text": "float", "parent": 60, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 24}}, {"id": 62, "type": "identifier", "text": "delta", "parent": 60, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 30}}, {"id": 63, "type": "labeled_statement", "text": "private:\n\tUPROPERTY(EditAnywhere, Category=\"CameraControl\")\n\tAActor* cameraActorOne;", "parent": 16, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 30, "column": 24}}, {"id": 64, "type": "binary_expression", "text": "UPROPERTY(EditAnywhere, Category=\"CameraControl\")\n\tAActor* cameraActorOne", "parent": 63, "children": [65, 73, 75, 76], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 30, "column": 23}}, {"id": 65, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, Category=\"CameraControl\")", "parent": 64, "children": [66, 67], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 50}}, {"id": 66, "type": "identifier", "text": "UPROPERTY", "parent": 65, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 10}}, {"id": 67, "type": "argument_list", "text": "(EditAnywhere, Category=\"CameraControl\")", "parent": 65, "children": [68, 69], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 50}}, {"id": 68, "type": "identifier", "text": "EditAnywhere", "parent": 67, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 23}}, {"id": 69, "type": "assignment_expression", "text": "Category=\"CameraControl\"", "parent": 67, "children": [70, 71, 72], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 49}}, {"id": 70, "type": "identifier", "text": "Category", "parent": 69, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 33}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 34}}, {"id": 72, "type": "string_literal", "text": "\"CameraControl\"", "parent": 69, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 49}}, {"id": 73, "type": "ERROR", "text": "AActor", "parent": 64, "children": [74], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 7}}, {"id": 74, "type": "identifier", "text": "AActor", "parent": 73, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 7}}, {"id": 75, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 8}}, {"id": 76, "type": "identifier", "text": "cameraActorOne", "parent": 64, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 23}}, {"id": 77, "type": "binary_expression", "text": "UPROPERTY(EditAnywhere, Category = \"CameraControl\")\n\tAActor* cameraActorTwo", "parent": 16, "children": [78, 86, 88, 89], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 33, "column": 23}}, {"id": 78, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, Category = \"CameraControl\")", "parent": 77, "children": [79, 80], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 52}}, {"id": 79, "type": "identifier", "text": "UPROPERTY", "parent": 78, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 10}}, {"id": 80, "type": "argument_list", "text": "(EditAnywhere, Category = \"CameraControl\")", "parent": 78, "children": [81, 82], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 52}}, {"id": 81, "type": "identifier", "text": "EditAnywhere", "parent": 80, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 23}}, {"id": 82, "type": "assignment_expression", "text": "Category = \"CameraControl\"", "parent": 80, "children": [83, 84, 85], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 51}}, {"id": 83, "type": "identifier", "text": "Category", "parent": 82, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 33}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 35}}, {"id": 85, "type": "string_literal", "text": "\"CameraControl\"", "parent": 82, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 51}}, {"id": 86, "type": "ERROR", "text": "AActor", "parent": 77, "children": [87], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 7}}, {"id": 87, "type": "identifier", "text": "AActor", "parent": 86, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 7}}, {"id": 88, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 8}}, {"id": 89, "type": "identifier", "text": "cameraActorTwo", "parent": 77, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 23}}, {"id": 90, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, Category = \"CameraControl\")", "parent": 16, "children": [91, 92], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 52}}, {"id": 91, "type": "identifier", "text": "UPROPERTY", "parent": 90, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 10}}, {"id": 92, "type": "argument_list", "text": "(EditAnywhere, Category = \"CameraControl\")", "parent": 90, "children": [93, 94], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 52}}, {"id": 93, "type": "identifier", "text": "EditAnywhere", "parent": 92, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 23}}, {"id": 94, "type": "assignment_expression", "text": "Category = \"CameraControl\"", "parent": 92, "children": [95, 96, 97], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 51}}, {"id": 95, "type": "identifier", "text": "Category", "parent": 94, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 33}}, {"id": 96, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 35}}, {"id": 97, "type": "string_literal", "text": "\"CameraControl\"", "parent": 94, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 51}}, {"id": 98, "type": "declaration", "text": "float rotateSpeed;", "parent": 16, "children": [99, 100], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 19}}, {"id": 99, "type": "primitive_type", "text": "float", "parent": 98, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 6}}, {"id": 100, "type": "identifier", "text": "rotateSpeed", "parent": 98, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 18}}]}, "node_categories": {"declarations": {"functions": [16, 33, 42, 52, 57], "variables": [45, 50, 55, 60, 98], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [13, 21, 25, 64, 65, 77, 78, 90], "assignments": [69, 82, 94], "loops": [], "conditionals": [14, 17, 18, 20, 22, 26, 30, 32, 34, 36, 39, 41, 43, 47, 48, 53, 58, 62, 66, 68, 70, 74, 76, 79, 81, 83, 87, 89, 91, 93, 95, 100], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 72, 85, 97], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 16, "universal_type": "function", "name": "BeginPlay", "text_snippet": "UE4_DEMO_API ACameraDirector : public AActor\n{\n\tGENERATED_BODY()\n\t\npublic:\t\n\t// Sets default values "}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "BeginPlay() override"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "Tick(float DeltaTime) override"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "SwitchCamera()"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "RotateCamera(float delta)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreMinimal.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"GameFramework/Actor.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"CameraDirector.generated.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include \"CoreMinimal.h\"\n#include \"GameFramework/Actor.h\"\n#include \"CameraDirector.generated.h\"\n\nUCLASS()\nclass UE4_DEMO_API ACameraDirector : public AActor\n{\n\tGENERATED_BODY()\n\t\npublic:\t\n\t// Sets default values for this actor's properties\n\tACameraDirector();\n\nprotected:\n\t// Called when the game starts or when spawned\n\tvirtual void BeginPlay() override;\n\npublic:\t\n\t// Called every frame\n\tvirtual void Tick(float DeltaTime) override;\n\nprivate:\n\tvoid SwitchCamera();\n\tvoid RotateCamera(float delta);\nprivate:\n\tUPROPERTY(EditAnywhere, Category=\"CameraControl\")\n\tAActor* cameraActorOne;\n\n\tUPROPERTY(EditAnywhere, Category = \"CameraControl\")\n\tAActor* cameraActorTwo;\n\n\tUPROPERTY(EditAnywhere, Category = \"CameraControl\")\n\tfloat rotateSpeed;\n};\n"}
80,471
c
/** * \file test/Common.h * * Created on: 04 Apr 2017 * Author: <NAME> */ #include "test/gtest/gtest.h" #include "test/gmock/gmock.h" #include "Common.h"
17.33
9
(translation_unit) "/**\n * \file test/Common.h\n *\n * Created on: 04 Apr 2017\n * Author: <NAME>\n */\n\n#include "test/gtest/gtest.h"\n#include "test/gmock/gmock.h"\n#include "Common.h"\n" (comment) "/**\n * \file test/Common.h\n *\n * Created on: 04 Apr 2017\n * Author: <NAME>\n */" (preproc_include) "#include "test/gtest/gtest.h"\n" (#include) "#include" (string_literal) ""test/gtest/gtest.h"" (") """ (string_content) "test/gtest/gtest.h" (") """ (preproc_include) "#include "test/gmock/gmock.h"\n" (#include) "#include" (string_literal) ""test/gmock/gmock.h"" (") """ (string_content) "test/gmock/gmock.h" (") """ (preproc_include) "#include "Common.h"\n" (#include) "#include" (string_literal) ""Common.h"" (") """ (string_content) "Common.h" (") """
20
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.33, "nodes": 9, "errors": 0, "source_hash": "b381cbbd1034a3b84bc0787e0ff23f281e6e5d8ad2de84bc95a901140b6bed5e", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"test/gtest/gtest.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": "\"test/gtest/gtest.h\"", "parent": 0, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 29}}, {"id": 3, "type": "preproc_include", "text": "#include \"test/gmock/gmock.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"test/gmock/gmock.h\"", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include \"Common.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Common.h\"", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"test/gtest/gtest.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"test/gmock/gmock.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Common.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/**\n * \\file test/Common.h\n *\n * Created on: 04 Apr 2017\n * Author: <NAME>\n */\n\n#include \"test/gtest/gtest.h\"\n#include \"test/gmock/gmock.h\"\n#include \"Common.h\"\n"}
80,472
c
// // YsyPopHelper.h // YsyPopHelperDemo // // Created by LH on 8/31/20. // Copyright © 2020 ysyplay. All rights reserved. // #import <UIKit/UIKit.h> #import "YsyPopMacro.h" NS_ASSUME_NONNULL_BEGIN @interface YsyPopHelper : UIView /** * 初始化方法 * @param customView 自定义弹窗 * @param popStyle 显示样式 * @param dismissStyle 消失样式 * @param position 弹窗位置 */ - (instancetype)initWithCustomView:(UIView *_Nonnull)customView popStyle:(YsyPopStyle)popStyle dismissStyle:(YsyDismissStyle)dismissStyle position:(YsyPosition)position; /// 显示弹窗 - (void)show; ///消失弹窗 - (void)dismiss; ///弹出动画时间 @property (nonatomic, assign) NSTimeInterval popDuration; ///消失动画时间 @property (nonatomic, assign) NSTimeInterval dismissDuration; ///x轴偏移 @property (nonatomic, assign) CGFloat offsetX; ///y轴偏移 @property (nonatomic, assign) CGFloat offsetY; ///设置父视图,默认为window @property (nonatomic, weak ) UIView *superView; ///是否规避键盘 默认YES @property (nonatomic, assign) BOOL isAvoidKeyboard; ///弹框和键盘的距离 默认10 @property (nonatomic, assign) CGFloat avoidKeyboardSpace; ///半透明背景不可点击,默认点击背景弹窗消失 @property (nonatomic, assign) BOOL disableTapBg; @end NS_ASSUME_NONNULL_END
26.39
44
(translation_unit) "//\n// YsyPopHelper.h\n// YsyPopHelperDemo\n//\n// Created by LH on 8/31/20.\n// Copyright © 2020 ysyplay. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "YsyPopMacro.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YsyPopHelper : UIView\n/**\n * 初始化方法\n * @param customView 自定义弹窗\n * @param popStyle 显示样式\n * @param dismissStyle 消失样式\n * @param position 弹窗位置\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyle\ndismissStyle:(YsyDismissStyle)dismissStyle\n position:(YsyPosition)position;\n/// 显示弹窗\n- (void)show;\n///消失弹窗\n- (void)dismiss;\n///弹出动画时间\n@property (nonatomic, assign) NSTimeInterval popDuration;\n///消失动画时间\n@property (nonatomic, assign) NSTimeInterval dismissDuration;\n///x轴偏移\n@property (nonatomic, assign) CGFloat offsetX;\n///y轴偏移\n@property (nonatomic, assign) CGFloat offsetY;\n///设置父视图,默认为window\n@property (nonatomic, weak ) UIView *superView;\n///是否规避键盘 默认YES\n@property (nonatomic, assign) BOOL isAvoidKeyboard;\n///弹框和键盘的距离 默认10\n@property (nonatomic, assign) CGFloat avoidKeyboardSpace;\n///半透明背景不可点击,默认点击背景弹窗消失\n@property (nonatomic, assign) BOOL disableTapBg;\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// YsyPopHelper.h" (comment) "// YsyPopHelperDemo" (comment) "//" (comment) "// Created by LH on 8/31/20." (comment) "// Copyright © 2020 ysyplay. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n#" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (preproc_call) "import "YsyPopMacro.h"\nN" (preproc_directive) "import " (preproc_arg) "YsyPopMacro.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) "syPopHelper : UIView\n/**\n * 初始化方法\n * @param customView 自定义弹窗\n * @param popStyle 显示样式\n * @param dismissStyle 消失样式\n * @param position 弹窗位置\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyle\ndismissStyle:(YsyDismissStyle)dismissStyle\n " (statement_identifier) "syPopHelper " (:) " " (ERROR) "IView\n/**\n * 初始化方法\n * @param customView 自定义弹窗\n * @param popStyle 显示样式\n * @param dismissStyle 消失样式\n * @param position 弹窗位置\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyle\ndismissSt" (binary_expression) "IView\n/**\n * 初始化方法\n * @param customView 自定义弹窗\n * @param popStyle 显示样式\n * @param dismissStyle 消失样式\n * @param position 弹窗位置\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyl" (binary_expression) "IView\n/**\n * 初始化方法\n * @param customView 自定义弹窗\n * @param popStyle 显示样式\n * @param dismissStyle 消失样式\n * @param position 弹窗位置\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(Y" (identifier) "IView\n" (comment) "**\n * 初始化方法\n * @param customView 自定义弹窗\n * @param popStyle 显示样式\n * @param dismissStyle 消失样式\n * @param position 弹窗位置\n */\n- (instancetype)initWithCustomView:(UIView *" (-) "N" (cast_expression) "nnull)customView\n popStyle:(Y" (() "n" (type_descriptor) "null)customV" (type_identifier) "null)customV" ()) "i" (identifier) "ew\n popStyle:(Y" (ERROR) "syPopSty" (:) "s" (() "y" (identifier) "PopSty" (*) "e" (identifier) ")popStyl" ()) "e" (identifier) "\ndismissSt" (labeled_statement) "YsyDismissStyle)dismissStyle\n " (statement_identifier) "YsyDismi" (:) "s" (expression_statement) "sStyle)dismissStyle\n " (cast_expression) "sStyle)dismissStyle\n " (() "s" (type_descriptor) "Style)dismi" (type_identifier) "Style)dismi" ()) "s" (identifier) "sStyle\n " (;) "" (labeled_statement) " position:(YsyPosition)position;\n/// 显示弹窗" (statement_identifier) " position:(" (:) "Y" (expression_statement) "syPosition)position;\n/// 显示弹窗" (cast_expression) "syPosition)position;\n/// 显示弹窗" (() "s" (type_descriptor) "yPosition)posit" (type_identifier) "yPosition)posit" ()) "i" (identifier) "on;\n/// 显示弹窗" (;) "" (labeled_statement) "oid)show;\n///消失弹窗\n- (void)dismi" (statement_identifier) "oid)show" (:) ";" (expression_statement) "\n///消失弹窗\n- (void)dismi" (cast_expression) "\n///消失弹窗\n- (void)dism" (() "\n" (type_descriptor) "///消失弹窗\n- (" (type_identifier) "///消失弹窗\n- (" ()) "v" (identifier) "oid)dism" (;) "i" (comment) "s;\n///弹出动画时间\n@pr" (expression_statement) "perty (nonato" (unary_expression) "perty (nonat" (-) "p" (cast_expression) "rty (nonat" (() "r" (type_descriptor) "ty (" (primitive_type) "ty (" ()) "n" (identifier) "onat" (;) "o" (comment) "ic, assign) NST" (expression_statement) "meInterval popDu" (unary_expression) "meInterval popD" (-) "m" (cast_expression) "Interval popD" (() "I" (type_descriptor) "nter" (primitive_type) "nter" ()) "v" (identifier) "al popD" (;) "u" (comment) "ation;\n///消失动画时间\n@pro" (ERROR) "erty (nonatomic, assign) NSTimeInterval dism" (ERROR) "e" (call_expression) "rty (nonatomic, assign) NSTi" (identifier) "rty (non" (argument_list) "tomic, assign) NSTi" (() "t" (identifier) "omic, ass" (,) "i" (identifier) "n) NST" ()) "i" (identifier) "eInterval dism" (expression_statement) "ssDuration;\n" (identifier) "ssDuration;" (;) "\n" (comment) "//x轴偏移\n@property (non" (ERROR) "tomic, assign) CGFloat offsetX;\n///y轴" (ERROR) "t" (call_expression) "omic, assign) CGFloat " (identifier) "omic, as" (argument_list) "ign) CGFloat " (() "i" (identifier) "gn) CGFlo" (,) "a" (identifier) " " ()) " " (identifier) "offsetX;\n///y轴" (expression_statement) "移\n@property (non" (identifier) "移\n@property (no" (;) "n" (comment) "tomic, assign" (ERROR) " CGFloat offsetY;\n///设置父视图,默认为" (ERROR) " " (call_expression) "CGFloat offsetY;\n///设" (identifier) "CGFloat " (argument_list) " offsetY;\n///设" (() " " (identifier) " offs" (,) "e" (identifier) "Y;\n///" ()) "设" (identifier) "父视图,默认为" (expression_statement) "property" (identifier) "propert" (;) "y" (comment) "(nonatomic, w" (ERROR) "ak ) UIView *superView;\n///是" (ERROR) "a" (call_expression) "k ) UIView *superVi" (identifier) "k ) UIV" (argument_list) "ew *superVi" (() "e" (identifier) "w " (,) " " (identifier) "superV" ()) "i" (identifier) "w;\n///是" (expression_statement) "YES\n@pro" (identifier) "YES\n@pr" (;) "o" (comment) "erty (nonatomic, assign) BOOL " (ERROR) " " (ERROR) " " (expression_statement) " isAvoidKeyboard;\n///弹框和键盘的" (call_expression) " isAvoidKeyboard;\n///弹框和键盘的" (identifier) " isAvoi" (argument_list) "Keyboard;\n///弹框和键盘的" (() "K" (identifier) "eyboard;\n" (,) "/" (identifier) "/弹框和" ()) "的" (;) "" (declaration) "离 默认10\n@property (nonatomi" (type_identifier) "离 默认10" (pointer_declarator) "y (nonatom" (*) "y" (identifier) " (nonatom" (;) "i" (comment) ", assign) CGFloat avoidK" (ERROR) "yboardSpace;\n///半透明背景不可点击,默认点击背景弹窗" (ERROR) "y" (call_expression) "boardSpace;\n///半透明背景不可点击,默认点" (identifier) "boardSpa" (argument_list) "e;\n///半透明背景不可点击,默认点" (() "e" (identifier) ";\n///半透明背" (,) "景" (identifier) "可点击,默认" ()) "点" (identifier) "背景弹窗" (expression_statement) "y (nonatomic, as" (identifier) "y (nonatomic, a" (;) "s" (comment) "ign) BOOL disableTapBg;\n@e" (ERROR) "d\n\nNS_ASSUME_NONNULL_END\n" (ERROR) "d" (call_expression) "\n\nNS_ASSUME_NONNULL_END\n" (identifier) "\n\nNS_ASS" (argument_list) "ME_NONNULL_END\n" (() "M" (identifier) "E_NONNULL" (,) "_" (identifier) "ND\n" ()) "" (identifier) "" (expression_statement) "" (identifier) "" (;) "" (comment) "" (ERROR) "" (ERROR) "" (call_expression) "" (identifier) "" (argument_list) "" (() "" (identifier) "" (,) "" (identifier) "" ()) "" (identifier) "" (expression_statement) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (declaration) "" (type_identifier) "" (identifier) "" (;) ""
228
22
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 26.39, "nodes": 135, "errors": 0, "source_hash": "d0dd5a30f0cd378aa12aae684f4b19af00a417c460faec2e56da3ec441a4d1f7", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n#", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "preproc_call", "text": "import \"YsyPopMacro.h\"\nN", "parent": null, "children": [3], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 3, "type": "preproc_arg", "text": "YsyPopMacro.h\"\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 4, "type": "declaration", "text": "S_ASSUME_NONNULL_BEGIN\n\n@interface ", "parent": null, "children": [5, 6, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 10}}, {"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": "ERROR", "text": "i", "parent": 4, "children": [7], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 7, "type": "ERROR", "text": "i", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 8, "type": "identifier", "text": "nterface ", "parent": 4, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 9, "type": "labeled_statement", "text": "syPopHelper : UIView\n/**\n * \u521d\u59cb\u5316\u65b9\u6cd5\n * @param customView \u81ea\u5b9a\u4e49\u5f39\u7a97\n * @param popStyle \u663e\u793a\u6837\u5f0f\n * @param dismissStyle \u6d88\u5931\u6837\u5f0f\n * @param position \u5f39\u7a97\u4f4d\u7f6e\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyle\ndismissStyle:(YsyDismissStyle)dismissStyle\n ", "parent": null, "children": [10, 11, 25], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 21, "column": 34}}, {"id": 10, "type": "statement_identifier", "text": "syPopHelper ", "parent": 9, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 23}}, {"id": 11, "type": "ERROR", "text": "IView\n/**\n * \u521d\u59cb\u5316\u65b9\u6cd5\n * @param customView \u81ea\u5b9a\u4e49\u5f39\u7a97\n * @param popStyle \u663e\u793a\u6837\u5f0f\n * @param dismissStyle \u6d88\u5931\u6837\u5f0f\n * @param position \u5f39\u7a97\u4f4d\u7f6e\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyle\ndismissSt", "parent": 9, "children": [12, 24], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 20, "column": 63}}, {"id": 12, "type": "binary_expression", "text": "IView\n/**\n * \u521d\u59cb\u5316\u65b9\u6cd5\n * @param customView \u81ea\u5b9a\u4e49\u5f39\u7a97\n * @param popStyle \u663e\u793a\u6837\u5f0f\n * @param dismissStyle \u6d88\u5931\u6837\u5f0f\n * @param position \u5f39\u7a97\u4f4d\u7f6e\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyl", "parent": 11, "children": [13, 20, 22, 23], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 20, "column": 52}}, {"id": 13, "type": "binary_expression", "text": "IView\n/**\n * \u521d\u59cb\u5316\u65b9\u6cd5\n * @param customView \u81ea\u5b9a\u4e49\u5f39\u7a97\n * @param popStyle \u663e\u793a\u6837\u5f0f\n * @param dismissStyle \u6d88\u5931\u6837\u5f0f\n * @param position \u5f39\u7a97\u4f4d\u7f6e\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(Y", "parent": 12, "children": [14, 15, 16], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 20, "column": 34}}, {"id": 14, "type": "identifier", "text": "IView\n", "parent": 13, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 32}}, {"id": 15, "type": "-", "text": "N", "parent": 13, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 16, "type": "cast_expression", "text": "nnull)customView\n popStyle:(Y", "parent": 13, "children": [17, 19], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 34}}, {"id": 17, "type": "type_descriptor", "text": "null)customV", "parent": 16, "children": [18], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 15}}, {"id": 18, "type": "type_identifier", "text": "null)customV", "parent": 17, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 15}}, {"id": 19, "type": "identifier", "text": "ew\n popStyle:(Y", "parent": 16, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 34}}, {"id": 20, "type": "ERROR", "text": "syPopSty", "parent": 12, "children": [21], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 42}}, {"id": 21, "type": "identifier", "text": "PopSty", "parent": 20, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 42}}, {"id": 22, "type": "*", "text": "e", "parent": 12, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 44}}, {"id": 23, "type": "identifier", "text": ")popStyl", "parent": 12, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 52}}, {"id": 24, "type": "identifier", "text": "\ndismissSt", "parent": 11, "children": [], "start_point": {"row": 20, "column": 53}, "end_point": {"row": 20, "column": 63}}, {"id": 25, "type": "labeled_statement", "text": "YsyDismissStyle)dismissStyle\n ", "parent": 9, "children": [26], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 34}}, {"id": 26, "type": "statement_identifier", "text": "YsyDismi", "parent": 25, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 12}}, {"id": 27, "type": "cast_expression", "text": "sStyle)dismissStyle\n ", "parent": 25, "children": [28, 30], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 34}}, {"id": 28, "type": "type_descriptor", "text": "Style)dismi", "parent": 27, "children": [29], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 25}}, {"id": 29, "type": "type_identifier", "text": "Style)dismi", "parent": 28, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 25}}, {"id": 30, "type": "identifier", "text": "sStyle\n ", "parent": 27, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 34}}, {"id": 31, "type": "labeled_statement", "text": " position:(YsyPosition)position;\n/// \u663e\u793a\u5f39\u7a97", "parent": null, "children": [32], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 42}}, {"id": 32, "type": "statement_identifier", "text": " position:(", "parent": 31, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 12}}, {"id": 33, "type": "cast_expression", "text": "syPosition)position;\n/// \u663e\u793a\u5f39\u7a97", "parent": 31, "children": [34, 36], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 42}}, {"id": 34, "type": "type_descriptor", "text": "yPosition)posit", "parent": 33, "children": [35], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 29}}, {"id": 35, "type": "type_identifier", "text": "yPosition)posit", "parent": 34, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 29}}, {"id": 36, "type": "identifier", "text": "on;\n/// \u663e\u793a\u5f39\u7a97", "parent": 33, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 42}}, {"id": 37, "type": "labeled_statement", "text": "oid)show;\n///\u6d88\u5931\u5f39\u7a97\n- (void)dismi", "parent": null, "children": [38], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 35}}, {"id": 38, "type": "statement_identifier", "text": "oid)show", "parent": 37, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 12}}, {"id": 39, "type": "cast_expression", "text": "\n///\u6d88\u5931\u5f39\u7a97\n- (void)dism", "parent": 37, "children": [40, 42], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 34}}, {"id": 40, "type": "type_descriptor", "text": "///\u6d88\u5931\u5f39\u7a97\n- (", "parent": 39, "children": [41], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 25}}, {"id": 41, "type": "type_identifier", "text": "///\u6d88\u5931\u5f39\u7a97\n- (", "parent": 40, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 25}}, {"id": 42, "type": "identifier", "text": "oid)dism", "parent": 39, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 34}}, {"id": 43, "type": "unary_expression", "text": "perty (nonat", "parent": null, "children": [44, 45], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 12}}, {"id": 44, "type": "-", "text": "p", "parent": 43, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 45, "type": "cast_expression", "text": "rty (nonat", "parent": 43, "children": [46, 48], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 12}}, {"id": 46, "type": "type_descriptor", "text": "ty (", "parent": 45, "children": [47], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 47, "type": "primitive_type", "text": "ty (", "parent": 46, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 48, "type": "identifier", "text": "onat", "parent": 45, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 49, "type": "unary_expression", "text": "meInterval popD", "parent": null, "children": [50, 51], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 15}}, {"id": 50, "type": "-", "text": "m", "parent": 49, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 51, "type": "cast_expression", "text": "Interval popD", "parent": 49, "children": [52, 54], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 15}}, {"id": 52, "type": "type_descriptor", "text": "nter", "parent": 51, "children": [53], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 53, "type": "primitive_type", "text": "nter", "parent": 52, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 7}}, {"id": 54, "type": "identifier", "text": "al popD", "parent": 51, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 15}}, {"id": 55, "type": "ERROR", "text": "erty (nonatomic, assign) NSTimeInterval dism", "parent": null, "children": [56, 57, 62], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 44}}, {"id": 56, "type": "ERROR", "text": "e", "parent": 55, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 57, "type": "call_expression", "text": "rty (nonatomic, assign) NSTi", "parent": 55, "children": [58, 59], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 29}}, {"id": 58, "type": "identifier", "text": "rty (non", "parent": 57, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 59, "type": "argument_list", "text": "tomic, assign) NSTi", "parent": 57, "children": [60, 61], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 29}}, {"id": 60, "type": "identifier", "text": "omic, ass", "parent": 59, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 20}}, {"id": 61, "type": "identifier", "text": "n) NST", "parent": 59, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 28}}, {"id": 62, "type": "identifier", "text": "eInterval dism", "parent": 55, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 44}}, {"id": 63, "type": "identifier", "text": "ssDuration;", "parent": null, "children": [], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 56}}, {"id": 64, "type": "ERROR", "text": "tomic, assign) CGFloat offsetX;\n///y\u8f74", "parent": null, "children": [65, 66, 71], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 44}}, {"id": 65, "type": "ERROR", "text": "t", "parent": 64, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 66, "type": "call_expression", "text": "omic, assign) CGFloat ", "parent": 64, "children": [67, 68], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 29}}, {"id": 67, "type": "identifier", "text": "omic, as", "parent": 66, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 9}}, {"id": 68, "type": "argument_list", "text": "ign) CGFloat ", "parent": 66, "children": [69, 70], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 29}}, {"id": 69, "type": "identifier", "text": "gn) CGFlo", "parent": 68, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 20}}, {"id": 70, "type": "identifier", "text": " ", "parent": 68, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 28}}, {"id": 71, "type": "identifier", "text": "offsetX;\n///y\u8f74", "parent": 64, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 44}}, {"id": 72, "type": "identifier", "text": "\u79fb\n@property (no", "parent": null, "children": [], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 60}}, {"id": 73, "type": "ERROR", "text": " CGFloat offsetY;\n///\u8bbe\u7f6e\u7236\u89c6\u56fe\uff0c\u9ed8\u8ba4\u4e3a", "parent": null, "children": [74, 75, 80], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 37}}, {"id": 74, "type": "ERROR", "text": " ", "parent": 73, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 75, "type": "call_expression", "text": "CGFloat offsetY;\n///\u8bbe", "parent": 73, "children": [76, 77], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 29}}, {"id": 76, "type": "identifier", "text": "CGFloat ", "parent": 75, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 77, "type": "argument_list", "text": " offsetY;\n///\u8bbe", "parent": 75, "children": [78, 79], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 29}}, {"id": 78, "type": "identifier", "text": " offs", "parent": 77, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 20}}, {"id": 79, "type": "identifier", "text": "Y;\n///", "parent": 77, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 28}}, {"id": 80, "type": "identifier", "text": "\u7236\u89c6\u56fe\uff0c\u9ed8\u8ba4\u4e3a", "parent": 73, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 37}}, {"id": 81, "type": "identifier", "text": "propert", "parent": null, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 52}}, {"id": 82, "type": "ERROR", "text": "ak ) UIView *superView;\n///\u662f", "parent": null, "children": [83, 84, 89], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 37}}, {"id": 83, "type": "ERROR", "text": "a", "parent": 82, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 84, "type": "call_expression", "text": "k ) UIView *superVi", "parent": 82, "children": [85, 86], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 29}}, {"id": 85, "type": "identifier", "text": "k ) UIV", "parent": 84, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 86, "type": "argument_list", "text": "ew *superVi", "parent": 84, "children": [87, 88], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 29}}, {"id": 87, "type": "identifier", "text": "w ", "parent": 86, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 20}}, {"id": 88, "type": "identifier", "text": "superV", "parent": 86, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 28}}, {"id": 89, "type": "identifier", "text": "w;\n///\u662f", "parent": 82, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 37}}, {"id": 90, "type": "identifier", "text": "YES\n@pr", "parent": null, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 52}}, {"id": 91, "type": "ERROR", "text": " ", "parent": null, "children": [92], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 92, "type": "ERROR", "text": " ", "parent": 91, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 93, "type": "call_expression", "text": " isAvoidKeyboard;\n///\u5f39\u6846\u548c\u952e\u76d8\u7684", "parent": null, "children": [94, 95], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 29}}, {"id": 94, "type": "identifier", "text": " isAvoi", "parent": 93, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 9}}, {"id": 95, "type": "argument_list", "text": "Keyboard;\n///\u5f39\u6846\u548c\u952e\u76d8\u7684", "parent": 93, "children": [96, 97], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 29}}, {"id": 96, "type": "identifier", "text": "eyboard;\n", "parent": 95, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 20}}, {"id": 97, "type": "identifier", "text": "/\u5f39\u6846\u548c", "parent": 95, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 26}}, {"id": 98, "type": "declaration", "text": "\u79bb \u9ed8\u8ba410\n@property (nonatomi", "parent": null, "children": [99, 100], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 56}}, {"id": 99, "type": "type_identifier", "text": "\u79bb \u9ed8\u8ba410", "parent": 98, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 36}}, {"id": 100, "type": "pointer_declarator", "text": "y (nonatom", "parent": 98, "children": [101, 102], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 55}}, {"id": 101, "type": "*", "text": "y", "parent": 100, "children": [], "start_point": {"row": 37, "column": 45}, "end_point": {"row": 37, "column": 46}}, {"id": 102, "type": "identifier", "text": " (nonatom", "parent": 100, "children": [], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 55}}, {"id": 103, "type": "ERROR", "text": "yboardSpace;\n///\u534a\u900f\u660e\u80cc\u666f\u4e0d\u53ef\u70b9\u51fb,\u9ed8\u8ba4\u70b9\u51fb\u80cc\u666f\u5f39\u7a97", "parent": null, "children": [104, 105, 110], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 34}}, {"id": 104, "type": "ERROR", "text": "y", "parent": 103, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 105, "type": "call_expression", "text": "boardSpace;\n///\u534a\u900f\u660e\u80cc\u666f\u4e0d\u53ef\u70b9\u51fb,\u9ed8\u8ba4\u70b9", "parent": 103, "children": [106, 107], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 29}}, {"id": 106, "type": "identifier", "text": "boardSpa", "parent": 105, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 9}}, {"id": 107, "type": "argument_list", "text": "e;\n///\u534a\u900f\u660e\u80cc\u666f\u4e0d\u53ef\u70b9\u51fb,\u9ed8\u8ba4\u70b9", "parent": 105, "children": [108, 109], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 29}}, {"id": 108, "type": "identifier", "text": ";\n///\u534a\u900f\u660e\u80cc", "parent": 107, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 20}}, {"id": 109, "type": "identifier", "text": "\u53ef\u70b9\u51fb,\u9ed8\u8ba4", "parent": 107, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 28}}, {"id": 110, "type": "identifier", "text": "\u80cc\u666f\u5f39\u7a97", "parent": 103, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 111, "type": "identifier", "text": "y (nonatomic, a", "parent": null, "children": [], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 60}}, {"id": 112, "type": "ERROR", "text": "d\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [113, 114, 119], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 37}}, {"id": 113, "type": "ERROR", "text": "d", "parent": 112, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 114, "type": "call_expression", "text": "\n\nNS_ASSUME_NONNULL_END\n", "parent": 112, "children": [115, 116], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 29}}, {"id": 115, "type": "identifier", "text": "\n\nNS_ASS", "parent": 114, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 116, "type": "argument_list", "text": "ME_NONNULL_END\n", "parent": 114, "children": [117, 118], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 29}}, {"id": 117, "type": "identifier", "text": "E_NONNULL", "parent": 116, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 20}}, {"id": 118, "type": "identifier", "text": "ND\n", "parent": 116, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 28}}, {"id": 119, "type": "identifier", "text": "", "parent": 112, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 37}}, {"id": 120, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 41, "column": 45}, "end_point": {"row": 41, "column": 63}}, {"id": 121, "type": "ERROR", "text": "", "parent": null, "children": [122, 123, 128], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 34}}, {"id": 122, "type": "ERROR", "text": "", "parent": 121, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 123, "type": "call_expression", "text": "", "parent": 121, "children": [124, 125], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 29}}, {"id": 124, "type": "identifier", "text": "", "parent": 123, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 125, "type": "argument_list", "text": "", "parent": 123, "children": [126, 127], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 29}}, {"id": 126, "type": "identifier", "text": "", "parent": 125, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 20}}, {"id": 127, "type": "identifier", "text": "", "parent": 125, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 28}}, {"id": 128, "type": "identifier", "text": "", "parent": 121, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 34}}, {"id": 129, "type": "identifier", "text": "", "parent": null, "children": [], "start_point": {"row": 43, "column": 45}, "end_point": {"row": 43, "column": 57}}, {"id": 130, "type": "ERROR", "text": "", "parent": null, "children": [131], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 131, "type": "ERROR", "text": "", "parent": 130, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 132, "type": "declaration", "text": "", "parent": null, "children": [133, 134], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 46, "column": 21}}, {"id": 133, "type": "type_identifier", "text": "", "parent": 132, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 4}}, {"id": 134, "type": "identifier", "text": "", "parent": 132, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [4, 98, 132], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [12, 13, 16, 27, 33, 39, 43, 45, 49, 51, 57, 66, 75, 84, 93, 105, 114, 123], "assignments": [], "loops": [], "conditionals": [5, 8, 10, 14, 18, 19, 21, 23, 24, 26, 29, 30, 32, 35, 36, 38, 41, 42, 48, 54, 58, 60, 61, 62, 63, 67, 69, 70, 71, 72, 76, 78, 79, 80, 81, 85, 87, 88, 89, 90, 94, 96, 97, 99, 102, 106, 108, 109, 110, 111, 115, 117, 118, 119, 120, 124, 126, 127, 128, 129, 133, 134], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// YsyPopHelper.h\n// YsyPopHelperDemo\n//\n// Created by LH on 8/31/20.\n// Copyright \u00a9 2020 ysyplay. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"YsyPopMacro.h\"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface YsyPopHelper : UIView\n/**\n * \u521d\u59cb\u5316\u65b9\u6cd5\n * @param customView \u81ea\u5b9a\u4e49\u5f39\u7a97\n * @param popStyle \u663e\u793a\u6837\u5f0f\n * @param dismissStyle \u6d88\u5931\u6837\u5f0f\n * @param position \u5f39\u7a97\u4f4d\u7f6e\n */\n- (instancetype)initWithCustomView:(UIView *_Nonnull)customView\n popStyle:(YsyPopStyle)popStyle\ndismissStyle:(YsyDismissStyle)dismissStyle\n position:(YsyPosition)position;\n/// \u663e\u793a\u5f39\u7a97\n- (void)show;\n///\u6d88\u5931\u5f39\u7a97\n- (void)dismiss;\n///\u5f39\u51fa\u52a8\u753b\u65f6\u95f4\n@property (nonatomic, assign) NSTimeInterval popDuration;\n///\u6d88\u5931\u52a8\u753b\u65f6\u95f4\n@property (nonatomic, assign) NSTimeInterval dismissDuration;\n///x\u8f74\u504f\u79fb\n@property (nonatomic, assign) CGFloat offsetX;\n///y\u8f74\u504f\u79fb\n@property (nonatomic, assign) CGFloat offsetY;\n///\u8bbe\u7f6e\u7236\u89c6\u56fe\uff0c\u9ed8\u8ba4\u4e3awindow\n@property (nonatomic, weak ) UIView *superView;\n///\u662f\u5426\u89c4\u907f\u952e\u76d8 \u9ed8\u8ba4YES\n@property (nonatomic, assign) BOOL isAvoidKeyboard;\n///\u5f39\u6846\u548c\u952e\u76d8\u7684\u8ddd\u79bb \u9ed8\u8ba410\n@property (nonatomic, assign) CGFloat avoidKeyboardSpace;\n///\u534a\u900f\u660e\u80cc\u666f\u4e0d\u53ef\u70b9\u51fb,\u9ed8\u8ba4\u70b9\u51fb\u80cc\u666f\u5f39\u7a97\u6d88\u5931\n@property (nonatomic, assign) BOOL disableTapBg;\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,473
c
#include "hopfield.h" #include <time.h> int main(void) { srand((unsigned int) time(NULL)); Entree * entree = NULL; entree = (Entree*) malloc(sizeof(Entree)); initialise_entree(entree, NB_MOTIF); conversion_binaire(entree, 1); Reseau * reseau = NULL; reseau = (Reseau *) malloc(sizeof(Reseau)); initialise_reseau(reseau, entree); apprentissageHebb(reseau, 100000); printf("\n"); calcul_noeud(reseau, 0); printf("\n"); calcul_noeud(reseau, 1); printf("\n"); calcul_noeud(reseau, 2); printf("\n"); calcul_noeud(reseau, 3); Entree * entreeTest = NULL; entreeTest = (Entree*) malloc(sizeof(Entree)); initialise_entree(entreeTest, NB_MOTIF); conversion_binaire(entreeTest, 0); set_entree(reseau, entreeTest); printf("\n"); printf("\n"); calcul_noeud(reseau, 0); printf("\n"); calcul_noeud(reseau, 1); printf("\n"); calcul_noeud(reseau, 2); printf("\n"); calcul_noeud(reseau, 3); //liberation de l'espace mémoire des structs libere_reseau(reseau, entree); libere_entree(entree, NB_MOTIF); libere_entree(entreeTest, NB_MOTIF); return 0; }
24.43
42
(translation_unit) "#include "hopfield.h"\n#include <time.h>\n\nint main(void)\n{\n srand((unsigned int) time(NULL));\n\n Entree * entree = NULL;\n\n entree = (Entree*) malloc(sizeof(Entree));\n\n initialise_entree(entree, NB_MOTIF);\n\n conversion_binaire(entree, 1);\n\n Reseau * reseau = NULL;\n\n reseau = (Reseau *) malloc(sizeof(Reseau));\n\n initialise_reseau(reseau, entree);\n\n apprentissageHebb(reseau, 100000);\n printf("\n");\n calcul_noeud(reseau, 0);\n printf("\n");\n calcul_noeud(reseau, 1);\n printf("\n");\n calcul_noeud(reseau, 2);\n printf("\n");\n calcul_noeud(reseau, 3);\n\n Entree * entreeTest = NULL;\n\n entreeTest = (Entree*) malloc(sizeof(Entree));\n\n initialise_entree(entreeTest, NB_MOTIF);\n\n conversion_binaire(entreeTest, 0);\n\n set_entree(reseau, entreeTest);\n\n printf("\n");\n printf("\n");\n calcul_noeud(reseau, 0);\n printf("\n");\n calcul_noeud(reseau, 1);\n printf("\n");\n calcul_noeud(reseau, 2);\n printf("\n");\n calcul_noeud(reseau, 3);\n\n //liberation de l'espace mémoire des structs\n libere_reseau(reseau, entree);\n libere_entree(entree, NB_MOTIF);\n libere_entree(entreeTest, NB_MOTIF);\n\n\n return 0;\n}\n" (preproc_include) "#include "hopfield.h"\n" (#include) "#include" (string_literal) ""hopfield.h"" (") """ (string_content) "hopfield.h" (") """ (preproc_include) "#include <time.h>\n" (#include) "#include" (system_lib_string) "<time.h>" (function_definition) "int main(void)\n{\n srand((unsigned int) time(NULL));\n\n Entree * entree = NULL;\n\n entree = (Entree*) malloc(sizeof(Entree));\n\n initialise_entree(entree, NB_MOTIF);\n\n conversion_binaire(entree, 1);\n\n Reseau * reseau = NULL;\n\n reseau = (Reseau *) malloc(sizeof(Reseau));\n\n initialise_reseau(reseau, entree);\n\n apprentissageHebb(reseau, 100000);\n printf("\n");\n calcul_noeud(reseau, 0);\n printf("\n");\n calcul_noeud(reseau, 1);\n printf("\n");\n calcul_noeud(reseau, 2);\n printf("\n");\n calcul_noeud(reseau, 3);\n\n Entree * entreeTest = NULL;\n\n entreeTest = (Entree*) malloc(sizeof(Entree));\n\n initialise_entree(entreeTest, NB_MOTIF);\n\n conversion_binaire(entreeTest, 0);\n\n set_entree(reseau, entreeTest);\n\n printf("\n");\n printf("\n");\n calcul_noeud(reseau, 0);\n printf("\n");\n calcul_noeud(reseau, 1);\n printf("\n");\n calcul_noeud(reseau, 2);\n printf("\n");\n calcul_noeud(reseau, 3);\n\n //liberation de l'espace mémoire des structs\n libere_reseau(reseau, entree);\n libere_entree(entree, NB_MOTIF);\n libere_entree(entreeTest, NB_MOTIF);\n\n\n return 0;\n}\n" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n srand((unsigned int) time(NULL));\n\n Entree * entree = NULL;\n\n entree = (Entree*) malloc(sizeof(Entree));\n\n initialise_entree(entree, NB_MOTIF);\n\n conversion_binaire(entree, 1);\n\n Reseau * reseau = NULL;\n\n reseau = (Reseau *) malloc(sizeof(Reseau));\n\n initialise_reseau(reseau, entree);\n\n apprentissageHebb(reseau, 100000);\n printf("\n");\n calcul_noeud(reseau, 0);\n printf("\n");\n calcul_noeud(reseau, 1);\n printf("\n");\n calcul_noeud(reseau, 2);\n printf("\n");\n calcul_noeud(reseau, 3);\n\n Entree * entreeTest = NULL;\n\n entreeTest = (Entree*) malloc(sizeof(Entree));\n\n initialise_entree(entreeTest, NB_MOTIF);\n\n conversion_binaire(entreeTest, 0);\n\n set_entree(reseau, entreeTest);\n\n printf("\n");\n printf("\n");\n calcul_noeud(reseau, 0);\n printf("\n");\n calcul_noeud(reseau, 1);\n printf("\n");\n calcul_noeud(reseau, 2);\n printf("\n");\n calcul_noeud(reseau, 3);\n\n //liberation de l'espace mémoire des structs\n libere_reseau(reseau, entree);\n libere_entree(entree, NB_MOTIF);\n libere_entree(entreeTest, NB_MOTIF);\n\n\n return 0;\n}\n" ({) "{" (expression_statement) "srand((unsigned int) time(NULL));" (call_expression) "srand((unsigned int) time(NULL))" (identifier) "srand" (argument_list) "((unsigned int) time(NULL))" (() "(" (cast_expression) "(unsigned int) time(NULL)" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (call_expression) "time(NULL)" (identifier) "time" (argument_list) "(NULL)" (() "(" (null) "NULL" (NULL) "NULL" ()) ")" ()) ")" (;) ";" (declaration) "Entree * entree = NULL;" (type_identifier) "Entree" (init_declarator) "* entree = NULL" (pointer_declarator) "* entree" (*) "*" (identifier) "entree" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "entree = (Entree*) malloc(sizeof(Entree));" (assignment_expression) "entree = (Entree*) malloc(sizeof(Entree))" (identifier) "entree" (=) "=" (cast_expression) "(Entree*) malloc(sizeof(Entree))" (() "(" (type_descriptor) "Entree*" (type_identifier) "Entree" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(Entree))" (identifier) "malloc" (argument_list) "(sizeof(Entree))" (() "(" (sizeof_expression) "sizeof(Entree)" (sizeof) "sizeof" (parenthesized_expression) "(Entree)" (() "(" (identifier) "Entree" ()) ")" ()) ")" (;) ";" (expression_statement) "initialise_entree(entree, NB_MOTIF);" (call_expression) "initialise_entree(entree, NB_MOTIF)" (identifier) "initialise_entree" (argument_list) "(entree, NB_MOTIF)" (() "(" (identifier) "entree" (,) "," (identifier) "NB_MOTIF" ()) ")" (;) ";" (expression_statement) "conversion_binaire(entree, 1);" (call_expression) "conversion_binaire(entree, 1)" (identifier) "conversion_binaire" (argument_list) "(entree, 1)" (() "(" (identifier) "entree" (,) "," (number_literal) "1" ()) ")" (;) ";" (declaration) "Reseau * reseau = NULL;" (type_identifier) "Reseau" (init_declarator) "* reseau = NULL" (pointer_declarator) "* reseau" (*) "*" (identifier) "reseau" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "reseau = (Reseau *) malloc(sizeof(Reseau));" (assignment_expression) "reseau = (Reseau *) malloc(sizeof(Reseau))" (identifier) "reseau" (=) "=" (cast_expression) "(Reseau *) malloc(sizeof(Reseau))" (() "(" (type_descriptor) "Reseau *" (type_identifier) "Reseau" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(Reseau))" (identifier) "malloc" (argument_list) "(sizeof(Reseau))" (() "(" (sizeof_expression) "sizeof(Reseau)" (sizeof) "sizeof" (parenthesized_expression) "(Reseau)" (() "(" (identifier) "Reseau" ()) ")" ()) ")" (;) ";" (expression_statement) "initialise_reseau(reseau, entree);" (call_expression) "initialise_reseau(reseau, entree)" (identifier) "initialise_reseau" (argument_list) "(reseau, entree)" (() "(" (identifier) "reseau" (,) "," (identifier) "entree" ()) ")" (;) ";" (expression_statement) "apprentissageHebb(reseau, 100000);" (call_expression) "apprentissageHebb(reseau, 100000)" (identifier) "apprentissageHebb" (argument_list) "(reseau, 100000)" (() "(" (identifier) "reseau" (,) "," (number_literal) "100000" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 0);" (call_expression) "calcul_noeud(reseau, 0)" (identifier) "calcul_noeud" (argument_list) "(reseau, 0)" (() "(" (identifier) "reseau" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 1);" (call_expression) "calcul_noeud(reseau, 1)" (identifier) "calcul_noeud" (argument_list) "(reseau, 1)" (() "(" (identifier) "reseau" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 2);" (call_expression) "calcul_noeud(reseau, 2)" (identifier) "calcul_noeud" (argument_list) "(reseau, 2)" (() "(" (identifier) "reseau" (,) "," (number_literal) "2" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 3);" (call_expression) "calcul_noeud(reseau, 3)" (identifier) "calcul_noeud" (argument_list) "(reseau, 3)" (() "(" (identifier) "reseau" (,) "," (number_literal) "3" ()) ")" (;) ";" (declaration) "Entree * entreeTest = NULL;" (type_identifier) "Entree" (init_declarator) "* entreeTest = NULL" (pointer_declarator) "* entreeTest" (*) "*" (identifier) "entreeTest" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "entreeTest = (Entree*) malloc(sizeof(Entree));" (assignment_expression) "entreeTest = (Entree*) malloc(sizeof(Entree))" (identifier) "entreeTest" (=) "=" (cast_expression) "(Entree*) malloc(sizeof(Entree))" (() "(" (type_descriptor) "Entree*" (type_identifier) "Entree" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(Entree))" (identifier) "malloc" (argument_list) "(sizeof(Entree))" (() "(" (sizeof_expression) "sizeof(Entree)" (sizeof) "sizeof" (parenthesized_expression) "(Entree)" (() "(" (identifier) "Entree" ()) ")" ()) ")" (;) ";" (expression_statement) "initialise_entree(entreeTest, NB_MOTIF);" (call_expression) "initialise_entree(entreeTest, NB_MOTIF)" (identifier) "initialise_entree" (argument_list) "(entreeTest, NB_MOTIF)" (() "(" (identifier) "entreeTest" (,) "," (identifier) "NB_MOTIF" ()) ")" (;) ";" (expression_statement) "conversion_binaire(entreeTest, 0);" (call_expression) "conversion_binaire(entreeTest, 0)" (identifier) "conversion_binaire" (argument_list) "(entreeTest, 0)" (() "(" (identifier) "entreeTest" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "set_entree(reseau, entreeTest);" (call_expression) "set_entree(reseau, entreeTest)" (identifier) "set_entree" (argument_list) "(reseau, entreeTest)" (() "(" (identifier) "reseau" (,) "," (identifier) "entreeTest" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 0);" (call_expression) "calcul_noeud(reseau, 0)" (identifier) "calcul_noeud" (argument_list) "(reseau, 0)" (() "(" (identifier) "reseau" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 1);" (call_expression) "calcul_noeud(reseau, 1)" (identifier) "calcul_noeud" (argument_list) "(reseau, 1)" (() "(" (identifier) "reseau" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 2);" (call_expression) "calcul_noeud(reseau, 2)" (identifier) "calcul_noeud" (argument_list) "(reseau, 2)" (() "(" (identifier) "reseau" (,) "," (number_literal) "2" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "calcul_noeud(reseau, 3);" (call_expression) "calcul_noeud(reseau, 3)" (identifier) "calcul_noeud" (argument_list) "(reseau, 3)" (() "(" (identifier) "reseau" (,) "," (number_literal) "3" ()) ")" (;) ";" (comment) "//liberation de l'espace mémoire des structs\n" (expression_statement) "ibere_reseau(reseau, entree);\n" (call_expression) "ibere_reseau(reseau, entree);" (identifier) "ibere_reseau(" (argument_list) "reseau, entree);" (() "r" (identifier) "eseau," (,) " " (identifier) "ntree)" ()) ";" (;) "\n" (expression_statement) "ibere_entree(entree, NB_MOTIF);\n" (call_expression) "ibere_entree(entree, NB_MOTIF);" (identifier) "ibere_entree(" (argument_list) "entree, NB_MOTIF);" (() "e" (identifier) "ntree," (,) " " (identifier) "B_MOTIF)" ()) ";" (;) "\n" (expression_statement) "ibere_entree(entreeTest, NB_MOTIF);\n" (call_expression) "ibere_entree(entreeTest, NB_MOTIF);" (identifier) "ibere_entree(" (argument_list) "entreeTest, NB_MOTIF);" (() "e" (identifier) "ntreeTest," (,) " " (identifier) "B_MOTIF)" ()) ";" (;) "\n" (return_statement) "eturn 0;\n" (return) "eturn " (number_literal) ";" (;) "\n" (}) "\n"
426
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.43, "nodes": 231, "errors": 0, "source_hash": "7a72ccb12fd22154487b32f18967e27dd61662686a71982c5b9da5005003628b", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"hopfield.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": "\"hopfield.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <time.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": "<time.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\tsrand((unsigned int) time(NULL));\n\n\tEntree * entree = NULL;\n\n\tentree = (Entree*) malloc(sizeof(Entree));\n\n\tinitialise_entree(entree, NB_MOTIF);\n\n\tconversion_binaire(entree, 1);\n\n\tReseau * reseau = NULL;\n\n\treseau = (Reseau *) malloc(sizeof(Reseau));\n\n\tinitialise_reseau(reseau, entree);\n\n\tapprentissageHebb(reseau, 100000);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 0);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 1);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 2);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 3);\n\n\tEntree * entreeTest = NULL;\n\n\tentreeTest = (Entree*) malloc(sizeof(Entree));\n\n\tinitialise_entree(entreeTest, NB_MOTIF);\n\n\tconversion_binaire(entreeTest, 0);\n\n\tset_entree(reseau, entreeTest);\n\n\tprintf(\"\\n\");\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 0);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 1);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 2);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 3);\n\n\t//liberation de l'espace m\u00e9moire des structs\n\tlibere_reseau(reseau, entree);\n\tlibere_entree(entree, NB_MOTIF);\n\tlibere_entree(entreeTest, NB_MOTIF);\n\n\n\treturn 0;\n}\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 58, "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": "srand((unsigned int) time(NULL))", "parent": 6, "children": [14, 15], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 33}}, {"id": 14, "type": "identifier", "text": "srand", "parent": 13, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 6}}, {"id": 15, "type": "argument_list", "text": "((unsigned int) time(NULL))", "parent": 13, "children": [16], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 33}}, {"id": 16, "type": "cast_expression", "text": "(unsigned int) time(NULL)", "parent": 15, "children": [17, 21], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 32}}, {"id": 17, "type": "type_descriptor", "text": "unsigned int", "parent": 16, "children": [18], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 20}}, {"id": 18, "type": "sized_type_specifier", "text": "unsigned int", "parent": 17, "children": [19, 20], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 20}}, {"id": 19, "type": "unsigned", "text": "unsigned", "parent": 18, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 16}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 20}}, {"id": 21, "type": "call_expression", "text": "time(NULL)", "parent": 16, "children": [22, 23], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 32}}, {"id": 22, "type": "identifier", "text": "time", "parent": 21, "children": [], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 26}}, {"id": 23, "type": "argument_list", "text": "(NULL)", "parent": 21, "children": [24], "start_point": {"row": 5, "column": 26}, "end_point": {"row": 5, "column": 32}}, {"id": 24, "type": "null", "text": "NULL", "parent": 23, "children": [25], "start_point": {"row": 5, "column": 27}, "end_point": {"row": 5, "column": 31}}, {"id": 25, "type": "NULL", "text": "NULL", "parent": 24, "children": [], "start_point": {"row": 5, "column": 27}, "end_point": {"row": 5, "column": 31}}, {"id": 26, "type": "declaration", "text": "Entree * entree = NULL;", "parent": 6, "children": [27, 28], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 24}}, {"id": 27, "type": "type_identifier", "text": "Entree", "parent": 26, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 7}}, {"id": 28, "type": "init_declarator", "text": "* entree = NULL", "parent": 26, "children": [29, 32, 33], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 29, "type": "pointer_declarator", "text": "* entree", "parent": 28, "children": [30, 31], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 16}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 9}}, {"id": 31, "type": "identifier", "text": "entree", "parent": 29, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 16}}, {"id": 32, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 18}}, {"id": 33, "type": "null", "text": "NULL", "parent": 28, "children": [34], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 23}}, {"id": 34, "type": "NULL", "text": "NULL", "parent": 33, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 23}}, {"id": 35, "type": "assignment_expression", "text": "entree = (Entree*) malloc(sizeof(Entree))", "parent": 6, "children": [36, 37, 38], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 42}}, {"id": 36, "type": "identifier", "text": "entree", "parent": 35, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 7}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 38, "type": "cast_expression", "text": "(Entree*) malloc(sizeof(Entree))", "parent": 35, "children": [39, 43], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 42}}, {"id": 39, "type": "type_descriptor", "text": "Entree*", "parent": 38, "children": [40, 41], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 18}}, {"id": 40, "type": "type_identifier", "text": "Entree", "parent": 39, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 17}}, {"id": 41, "type": "abstract_pointer_declarator", "text": "*", "parent": 39, "children": [42], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 18}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 18}}, {"id": 43, "type": "call_expression", "text": "malloc(sizeof(Entree))", "parent": 38, "children": [44, 45], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 42}}, {"id": 44, "type": "identifier", "text": "malloc", "parent": 43, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 26}}, {"id": 45, "type": "argument_list", "text": "(sizeof(Entree))", "parent": 43, "children": [46], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 42}}, {"id": 46, "type": "sizeof_expression", "text": "sizeof(Entree)", "parent": 45, "children": [47], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 41}}, {"id": 47, "type": "parenthesized_expression", "text": "(Entree)", "parent": 46, "children": [48], "start_point": {"row": 9, "column": 33}, "end_point": {"row": 9, "column": 41}}, {"id": 48, "type": "identifier", "text": "Entree", "parent": 47, "children": [], "start_point": {"row": 9, "column": 34}, "end_point": {"row": 9, "column": 40}}, {"id": 49, "type": "call_expression", "text": "initialise_entree(entree, NB_MOTIF)", "parent": 6, "children": [50, 51], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 36}}, {"id": 50, "type": "identifier", "text": "initialise_entree", "parent": 49, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 18}}, {"id": 51, "type": "argument_list", "text": "(entree, NB_MOTIF)", "parent": 49, "children": [52, 53], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 36}}, {"id": 52, "type": "identifier", "text": "entree", "parent": 51, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 25}}, {"id": 53, "type": "identifier", "text": "NB_MOTIF", "parent": 51, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 35}}, {"id": 54, "type": "call_expression", "text": "conversion_binaire(entree, 1)", "parent": 6, "children": [55, 56], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 30}}, {"id": 55, "type": "identifier", "text": "conversion_binaire", "parent": 54, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 19}}, {"id": 56, "type": "argument_list", "text": "(entree, 1)", "parent": 54, "children": [57, 58], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 30}}, {"id": 57, "type": "identifier", "text": "entree", "parent": 56, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 26}}, {"id": 58, "type": "number_literal", "text": "1", "parent": 56, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 29}}, {"id": 59, "type": "declaration", "text": "Reseau * reseau = NULL;", "parent": 6, "children": [60, 61], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 24}}, {"id": 60, "type": "type_identifier", "text": "Reseau", "parent": 59, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 7}}, {"id": 61, "type": "init_declarator", "text": "* reseau = NULL", "parent": 59, "children": [62, 65, 66], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 23}}, {"id": 62, "type": "pointer_declarator", "text": "* reseau", "parent": 61, "children": [63, 64], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 16}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 64, "type": "identifier", "text": "reseau", "parent": 62, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 16}}, {"id": 65, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 18}}, {"id": 66, "type": "null", "text": "NULL", "parent": 61, "children": [67], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 23}}, {"id": 67, "type": "NULL", "text": "NULL", "parent": 66, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 23}}, {"id": 68, "type": "assignment_expression", "text": "reseau = (Reseau *) malloc(sizeof(Reseau))", "parent": 6, "children": [69, 70, 71], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 43}}, {"id": 69, "type": "identifier", "text": "reseau", "parent": 68, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 7}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 71, "type": "cast_expression", "text": "(Reseau *) malloc(sizeof(Reseau))", "parent": 68, "children": [72, 76], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 43}}, {"id": 72, "type": "type_descriptor", "text": "Reseau *", "parent": 71, "children": [73, 74], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 19}}, {"id": 73, "type": "type_identifier", "text": "Reseau", "parent": 72, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 17}}, {"id": 74, "type": "abstract_pointer_declarator", "text": "*", "parent": 72, "children": [75], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 19}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 19}}, {"id": 76, "type": "call_expression", "text": "malloc(sizeof(Reseau))", "parent": 71, "children": [77, 78], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 43}}, {"id": 77, "type": "identifier", "text": "malloc", "parent": 76, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 27}}, {"id": 78, "type": "argument_list", "text": "(sizeof(Reseau))", "parent": 76, "children": [79], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 43}}, {"id": 79, "type": "sizeof_expression", "text": "sizeof(Reseau)", "parent": 78, "children": [80], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 42}}, {"id": 80, "type": "parenthesized_expression", "text": "(Reseau)", "parent": 79, "children": [81], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 42}}, {"id": 81, "type": "identifier", "text": "Reseau", "parent": 80, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 41}}, {"id": 82, "type": "call_expression", "text": "initialise_reseau(reseau, entree)", "parent": 6, "children": [83, 84], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 34}}, {"id": 83, "type": "identifier", "text": "initialise_reseau", "parent": 82, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 18}}, {"id": 84, "type": "argument_list", "text": "(reseau, entree)", "parent": 82, "children": [85, 86], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 34}}, {"id": 85, "type": "identifier", "text": "reseau", "parent": 84, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 25}}, {"id": 86, "type": "identifier", "text": "entree", "parent": 84, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 33}}, {"id": 87, "type": "call_expression", "text": "apprentissageHebb(reseau, 100000)", "parent": 6, "children": [88, 89], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 34}}, {"id": 88, "type": "identifier", "text": "apprentissageHebb", "parent": 87, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 18}}, {"id": 89, "type": "argument_list", "text": "(reseau, 100000)", "parent": 87, "children": [90, 91], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 34}}, {"id": 90, "type": "identifier", "text": "reseau", "parent": 89, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 25}}, {"id": 91, "type": "number_literal", "text": "100000", "parent": 89, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 33}}, {"id": 92, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [93, 94], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 13}}, {"id": 93, "type": "identifier", "text": "printf", "parent": 92, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 7}}, {"id": 94, "type": "argument_list", "text": "(\"\\n\")", "parent": 92, "children": [95], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 13}}, {"id": 95, "type": "string_literal", "text": "\"\\n\"", "parent": 94, "children": [96], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 12}}, {"id": 96, "type": "escape_sequence", "text": "\\n", "parent": 95, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 11}}, {"id": 97, "type": "call_expression", "text": "calcul_noeud(reseau, 0)", "parent": 6, "children": [98, 99], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 24}}, {"id": 98, "type": "identifier", "text": "calcul_noeud", "parent": 97, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 13}}, {"id": 99, "type": "argument_list", "text": "(reseau, 0)", "parent": 97, "children": [100, 101], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 24}}, {"id": 100, "type": "identifier", "text": "reseau", "parent": 99, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 20}}, {"id": 101, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 23}}, {"id": 102, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [103, 104], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 13}}, {"id": 103, "type": "identifier", "text": "printf", "parent": 102, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 7}}, {"id": 104, "type": "argument_list", "text": "(\"\\n\")", "parent": 102, "children": [105], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 105, "type": "string_literal", "text": "\"\\n\"", "parent": 104, "children": [106], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 106, "type": "escape_sequence", "text": "\\n", "parent": 105, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 11}}, {"id": 107, "type": "call_expression", "text": "calcul_noeud(reseau, 1)", "parent": 6, "children": [108, 109], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 24}}, {"id": 108, "type": "identifier", "text": "calcul_noeud", "parent": 107, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 13}}, {"id": 109, "type": "argument_list", "text": "(reseau, 1)", "parent": 107, "children": [110, 111], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 24}}, {"id": 110, "type": "identifier", "text": "reseau", "parent": 109, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 20}}, {"id": 111, "type": "number_literal", "text": "1", "parent": 109, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 23}}, {"id": 112, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [113, 114], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 13}}, {"id": 113, "type": "identifier", "text": "printf", "parent": 112, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 7}}, {"id": 114, "type": "argument_list", "text": "(\"\\n\")", "parent": 112, "children": [115], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 13}}, {"id": 115, "type": "string_literal", "text": "\"\\n\"", "parent": 114, "children": [116], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 12}}, {"id": 116, "type": "escape_sequence", "text": "\\n", "parent": 115, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 11}}, {"id": 117, "type": "call_expression", "text": "calcul_noeud(reseau, 2)", "parent": 6, "children": [118, 119], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 24}}, {"id": 118, "type": "identifier", "text": "calcul_noeud", "parent": 117, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 13}}, {"id": 119, "type": "argument_list", "text": "(reseau, 2)", "parent": 117, "children": [120, 121], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 24}}, {"id": 120, "type": "identifier", "text": "reseau", "parent": 119, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 20}}, {"id": 121, "type": "number_literal", "text": "2", "parent": 119, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 122, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [123, 124], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 13}}, {"id": 123, "type": "identifier", "text": "printf", "parent": 122, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 7}}, {"id": 124, "type": "argument_list", "text": "(\"\\n\")", "parent": 122, "children": [125], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 13}}, {"id": 125, "type": "string_literal", "text": "\"\\n\"", "parent": 124, "children": [126], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 12}}, {"id": 126, "type": "escape_sequence", "text": "\\n", "parent": 125, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 11}}, {"id": 127, "type": "call_expression", "text": "calcul_noeud(reseau, 3)", "parent": 6, "children": [128, 129], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 24}}, {"id": 128, "type": "identifier", "text": "calcul_noeud", "parent": 127, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 13}}, {"id": 129, "type": "argument_list", "text": "(reseau, 3)", "parent": 127, "children": [130, 131], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 24}}, {"id": 130, "type": "identifier", "text": "reseau", "parent": 129, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 20}}, {"id": 131, "type": "number_literal", "text": "3", "parent": 129, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 23}}, {"id": 132, "type": "declaration", "text": "Entree * entreeTest = NULL;", "parent": 6, "children": [133, 134], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 28}}, {"id": 133, "type": "type_identifier", "text": "Entree", "parent": 132, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 7}}, {"id": 134, "type": "init_declarator", "text": "* entreeTest = NULL", "parent": 132, "children": [135, 138, 139], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 27}}, {"id": 135, "type": "pointer_declarator", "text": "* entreeTest", "parent": 134, "children": [136, 137], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 20}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 9}}, {"id": 137, "type": "identifier", "text": "entreeTest", "parent": 135, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 20}}, {"id": 138, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 22}}, {"id": 139, "type": "null", "text": "NULL", "parent": 134, "children": [140], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 27}}, {"id": 140, "type": "NULL", "text": "NULL", "parent": 139, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 27}}, {"id": 141, "type": "assignment_expression", "text": "entreeTest = (Entree*) malloc(sizeof(Entree))", "parent": 6, "children": [142, 143, 144], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 46}}, {"id": 142, "type": "identifier", "text": "entreeTest", "parent": 141, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 11}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 144, "type": "cast_expression", "text": "(Entree*) malloc(sizeof(Entree))", "parent": 141, "children": [145, 149], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 46}}, {"id": 145, "type": "type_descriptor", "text": "Entree*", "parent": 144, "children": [146, 147], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 22}}, {"id": 146, "type": "type_identifier", "text": "Entree", "parent": 145, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 21}}, {"id": 147, "type": "abstract_pointer_declarator", "text": "*", "parent": 145, "children": [148], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 149, "type": "call_expression", "text": "malloc(sizeof(Entree))", "parent": 144, "children": [150, 151], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 46}}, {"id": 150, "type": "identifier", "text": "malloc", "parent": 149, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 30}}, {"id": 151, "type": "argument_list", "text": "(sizeof(Entree))", "parent": 149, "children": [152], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 46}}, {"id": 152, "type": "sizeof_expression", "text": "sizeof(Entree)", "parent": 151, "children": [153], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 45}}, {"id": 153, "type": "parenthesized_expression", "text": "(Entree)", "parent": 152, "children": [154], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 45}}, {"id": 154, "type": "identifier", "text": "Entree", "parent": 153, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 44}}, {"id": 155, "type": "call_expression", "text": "initialise_entree(entreeTest, NB_MOTIF)", "parent": 6, "children": [156, 157], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 40}}, {"id": 156, "type": "identifier", "text": "initialise_entree", "parent": 155, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 18}}, {"id": 157, "type": "argument_list", "text": "(entreeTest, NB_MOTIF)", "parent": 155, "children": [158, 159], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 40}}, {"id": 158, "type": "identifier", "text": "entreeTest", "parent": 157, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 29}}, {"id": 159, "type": "identifier", "text": "NB_MOTIF", "parent": 157, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 39}}, {"id": 160, "type": "call_expression", "text": "conversion_binaire(entreeTest, 0)", "parent": 6, "children": [161, 162], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 34}}, {"id": 161, "type": "identifier", "text": "conversion_binaire", "parent": 160, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 19}}, {"id": 162, "type": "argument_list", "text": "(entreeTest, 0)", "parent": 160, "children": [163, 164], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 34}}, {"id": 163, "type": "identifier", "text": "entreeTest", "parent": 162, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 30}}, {"id": 164, "type": "number_literal", "text": "0", "parent": 162, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 33}}, {"id": 165, "type": "call_expression", "text": "set_entree(reseau, entreeTest)", "parent": 6, "children": [166, 167], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 31}}, {"id": 166, "type": "identifier", "text": "set_entree", "parent": 165, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 11}}, {"id": 167, "type": "argument_list", "text": "(reseau, entreeTest)", "parent": 165, "children": [168, 169], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 31}}, {"id": 168, "type": "identifier", "text": "reseau", "parent": 167, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 18}}, {"id": 169, "type": "identifier", "text": "entreeTest", "parent": 167, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 30}}, {"id": 170, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [171, 172], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 13}}, {"id": 171, "type": "identifier", "text": "printf", "parent": 170, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 172, "type": "argument_list", "text": "(\"\\n\")", "parent": 170, "children": [173], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 13}}, {"id": 173, "type": "string_literal", "text": "\"\\n\"", "parent": 172, "children": [174], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 174, "type": "escape_sequence", "text": "\\n", "parent": 173, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 11}}, {"id": 175, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [176, 177], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 13}}, {"id": 176, "type": "identifier", "text": "printf", "parent": 175, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 7}}, {"id": 177, "type": "argument_list", "text": "(\"\\n\")", "parent": 175, "children": [178], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 13}}, {"id": 178, "type": "string_literal", "text": "\"\\n\"", "parent": 177, "children": [179], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 179, "type": "escape_sequence", "text": "\\n", "parent": 178, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 11}}, {"id": 180, "type": "call_expression", "text": "calcul_noeud(reseau, 0)", "parent": 6, "children": [181, 182], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 24}}, {"id": 181, "type": "identifier", "text": "calcul_noeud", "parent": 180, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 13}}, {"id": 182, "type": "argument_list", "text": "(reseau, 0)", "parent": 180, "children": [183, 184], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 24}}, {"id": 183, "type": "identifier", "text": "reseau", "parent": 182, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 20}}, {"id": 184, "type": "number_literal", "text": "0", "parent": 182, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 23}}, {"id": 185, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [186, 187], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 13}}, {"id": 186, "type": "identifier", "text": "printf", "parent": 185, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 7}}, {"id": 187, "type": "argument_list", "text": "(\"\\n\")", "parent": 185, "children": [188], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 13}}, {"id": 188, "type": "string_literal", "text": "\"\\n\"", "parent": 187, "children": [189], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 12}}, {"id": 189, "type": "escape_sequence", "text": "\\n", "parent": 188, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 11}}, {"id": 190, "type": "call_expression", "text": "calcul_noeud(reseau, 1)", "parent": 6, "children": [191, 192], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 24}}, {"id": 191, "type": "identifier", "text": "calcul_noeud", "parent": 190, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 13}}, {"id": 192, "type": "argument_list", "text": "(reseau, 1)", "parent": 190, "children": [193, 194], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 24}}, {"id": 193, "type": "identifier", "text": "reseau", "parent": 192, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 20}}, {"id": 194, "type": "number_literal", "text": "1", "parent": 192, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 23}}, {"id": 195, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [196, 197], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 13}}, {"id": 196, "type": "identifier", "text": "printf", "parent": 195, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 7}}, {"id": 197, "type": "argument_list", "text": "(\"\\n\")", "parent": 195, "children": [198], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 13}}, {"id": 198, "type": "string_literal", "text": "\"\\n\"", "parent": 197, "children": [199], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 12}}, {"id": 199, "type": "escape_sequence", "text": "\\n", "parent": 198, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 11}}, {"id": 200, "type": "call_expression", "text": "calcul_noeud(reseau, 2)", "parent": 6, "children": [201, 202], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 24}}, {"id": 201, "type": "identifier", "text": "calcul_noeud", "parent": 200, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 13}}, {"id": 202, "type": "argument_list", "text": "(reseau, 2)", "parent": 200, "children": [203, 204], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 24}}, {"id": 203, "type": "identifier", "text": "reseau", "parent": 202, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 20}}, {"id": 204, "type": "number_literal", "text": "2", "parent": 202, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 23}}, {"id": 205, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 6, "children": [206, 207], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 13}}, {"id": 206, "type": "identifier", "text": "printf", "parent": 205, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 7}}, {"id": 207, "type": "argument_list", "text": "(\"\\n\")", "parent": 205, "children": [208], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 13}}, {"id": 208, "type": "string_literal", "text": "\"\\n\"", "parent": 207, "children": [209], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 12}}, {"id": 209, "type": "escape_sequence", "text": "\\n", "parent": 208, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 11}}, {"id": 210, "type": "call_expression", "text": "calcul_noeud(reseau, 3)", "parent": 6, "children": [211, 212], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 24}}, {"id": 211, "type": "identifier", "text": "calcul_noeud", "parent": 210, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 13}}, {"id": 212, "type": "argument_list", "text": "(reseau, 3)", "parent": 210, "children": [213, 214], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 24}}, {"id": 213, "type": "identifier", "text": "reseau", "parent": 212, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 20}}, {"id": 214, "type": "number_literal", "text": "3", "parent": 212, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 215, "type": "call_expression", "text": "ibere_reseau(reseau, entree);", "parent": 6, "children": [216, 217], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 30}}, {"id": 216, "type": "identifier", "text": "ibere_reseau(", "parent": 215, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 14}}, {"id": 217, "type": "argument_list", "text": "reseau, entree);", "parent": 215, "children": [218, 219], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 30}}, {"id": 218, "type": "identifier", "text": "eseau,", "parent": 217, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 21}}, {"id": 219, "type": "identifier", "text": "ntree)", "parent": 217, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 29}}, {"id": 220, "type": "call_expression", "text": "ibere_entree(entree, NB_MOTIF);", "parent": 6, "children": [221, 222], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 32}}, {"id": 221, "type": "identifier", "text": "ibere_entree(", "parent": 220, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 14}}, {"id": 222, "type": "argument_list", "text": "entree, NB_MOTIF);", "parent": 220, "children": [223, 224], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 32}}, {"id": 223, "type": "identifier", "text": "ntree,", "parent": 222, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 21}}, {"id": 224, "type": "identifier", "text": "B_MOTIF)", "parent": 222, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 31}}, {"id": 225, "type": "call_expression", "text": "ibere_entree(entreeTest, NB_MOTIF);", "parent": 6, "children": [226, 227], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 36}}, {"id": 226, "type": "identifier", "text": "ibere_entree(", "parent": 225, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 14}}, {"id": 227, "type": "argument_list", "text": "entreeTest, NB_MOTIF);", "parent": 225, "children": [228, 229], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 36}}, {"id": 228, "type": "identifier", "text": "ntreeTest,", "parent": 227, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 25}}, {"id": 229, "type": "identifier", "text": "B_MOTIF)", "parent": 227, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 35}}, {"id": 230, "type": "return_statement", "text": "eturn 0;\n", "parent": 6, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 10}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 26, 59, 132], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [13, 16, 21, 38, 43, 46, 47, 49, 54, 71, 76, 79, 80, 82, 87, 92, 97, 102, 107, 112, 117, 122, 127, 144, 149, 152, 153, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225], "assignments": [35, 68, 141], "loops": [], "conditionals": [9, 14, 18, 22, 27, 31, 36, 40, 44, 48, 50, 52, 53, 55, 57, 60, 64, 69, 73, 77, 81, 83, 85, 86, 88, 90, 93, 98, 100, 103, 108, 110, 113, 118, 120, 123, 128, 130, 133, 137, 142, 146, 150, 154, 156, 158, 159, 161, 163, 166, 168, 169, 171, 176, 181, 183, 186, 191, 193, 196, 201, 203, 206, 211, 213, 216, 218, 219, 221, 223, 224, 226, 228, 229], "returns": [230], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 58, 91, 95, 101, 105, 111, 115, 121, 125, 131, 164, 173, 178, 184, 188, 194, 198, 204, 208, 214], "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\tsrand((unsigned int) time(NULL));\n\n\tEntree * entree = NULL;\n\n\tentree = (Entree*) m"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"hopfield.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <time.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include \"hopfield.h\"\n#include <time.h>\n\nint main(void)\n{\n\tsrand((unsigned int) time(NULL));\n\n\tEntree * entree = NULL;\n\n\tentree = (Entree*) malloc(sizeof(Entree));\n\n\tinitialise_entree(entree, NB_MOTIF);\n\n\tconversion_binaire(entree, 1);\n\n\tReseau * reseau = NULL;\n\n\treseau = (Reseau *) malloc(sizeof(Reseau));\n\n\tinitialise_reseau(reseau, entree);\n\n\tapprentissageHebb(reseau, 100000);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 0);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 1);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 2);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 3);\n\n\tEntree * entreeTest = NULL;\n\n\tentreeTest = (Entree*) malloc(sizeof(Entree));\n\n\tinitialise_entree(entreeTest, NB_MOTIF);\n\n\tconversion_binaire(entreeTest, 0);\n\n\tset_entree(reseau, entreeTest);\n\n\tprintf(\"\\n\");\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 0);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 1);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 2);\n\tprintf(\"\\n\");\n\tcalcul_noeud(reseau, 3);\n\n\t//liberation de l'espace m\u00e9moire des structs\n\tlibere_reseau(reseau, entree);\n\tlibere_entree(entree, NB_MOTIF);\n\tlibere_entree(entreeTest, NB_MOTIF);\n\n\n\treturn 0;\n}\n"}
80,474
c
#define __YAX__ #define NDEBUG #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <codas/bit.h> #include <yax/errorcodes.h> #include <yax/lock.h> #include <yax/openflags.h> #include "fs/conn.h" #include "fs/iofs.h" #include "mem/malloc.h" #include "multitask.h" #include "pic.h" #include "port.h" #include "printk.h" typedef struct { Conn c; int n; } IoConn; static Sem irqsem[16]; void iofsinterrupt(int n) { printk("Interrupt "); iprintk(n); cprintk('\n'); semsignal(&irqsem[n], 1); piceoi(n); } static Dev ddev; static Dev idev; Conn *iofsnew(void) { IoConn *rd = calloc(1, sizeof(*rd) + 1); char *name = calloc(1, 1); conninit((Conn *)rd, name, 0, &ddev, rd); return (Conn *) rd; } static void del(Conn *c) { free(c); } static Conn *dup(Conn *c) { IoConn *d = calloc(1, sizeof(*d)); memcpy(d, c, sizeof(*d)); return (Conn *) d; } static ssize_t dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name) { size_t nlen = strlen(name); size_t clen = 2 + STATMSGSIZ + 2 + nlen; if(clen > *len) return 0; /* stop */ PBIT16(*buf, clen); *(char **)buf += 2; YAXstat2msg(st, *buf, *len); *(char **)buf += STATMSGSIZ; PBIT16(*buf, nlen); *(char **)buf += 2; memcpy(*buf, name, nlen); *(char **)buf += nlen; *rlen += clen; *len -= clen; return 1; /* continue */ } static long long dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off) { switch(fn) { case MSREAD: { size_t rlen = 0; char name[2]; struct stat st = { .st_mode = S_IFIFO | 0400 }; int i; name[1] = '\0'; for(i = ((IoConn *)c)->n; i < 0x10; i++) { st.st_ino = 1 + i; name[0] = "0123456789abcdef"[i]; if(!dirpreadelem(&rlen, &buf, &len, &st, name)) break; } return rlen; } case MSTAT: { struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 }; if(len < STATMSGSIZ) return -EINVAL; return YAXstat2msg(&st, buf, len); } case MWALK: { int n; const char *path = buf; if(len != 1) return -ENOENT; if(len2 != 8) return -EINVAL; if('0' <= path[0] && path[0] <= '9') n = path[0] - '0'; else if('a' <= path[0] && path[0] <= 'f') n = path[0] + 10 - 'a'; else return -ENOENT; ((IoConn *)c)->n = n; PBIT64(buf2, 1 + n); c->dev = &idev; return 0; } case MOPEN: { if(submsg & (O_EXCL | O_WRONLY)) return -EISDIR; return 0; } default: return -ENOSYS; } (void) off; } static Dev ddev = { del, dup, dfn }; static long long ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off) { switch(fn) { case MSREAD: { if(len < 4) return -1; semwait(&irqsem[((IoConn *)c)->n], 1); PBIT32(buf, 1); return 4; } case MSTAT: { struct stat st = { .st_mode = S_IFIFO | 0400 }; int i = ((IoConn *)c)->n; st.st_ino = 1 + i; return YAXstat2msg(&st, buf, len); } case MOPEN: { if(submsg & (O_EXCL | O_TRUNC | O_WRONLY)) return -EACCES; /* todo implement exclusiveness */ return 0; } default: return -ENOSYS; } (void) buf2, (void) len2, (void) off; } static Dev idev = { del, dup, ifn };
19.22
154
(translation_unit) "#define __YAX__\n#define NDEBUG\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <codas/bit.h>\n#include <yax/errorcodes.h>\n#include <yax/lock.h>\n#include <yax/openflags.h>\n#include "fs/conn.h"\n#include "fs/iofs.h"\n#include "mem/malloc.h"\n#include "multitask.h"\n#include "pic.h"\n#include "port.h"\n#include "printk.h"\n\ntypedef struct {\n Conn c;\n int n;\n} IoConn;\n\nstatic Sem irqsem[16];\n\nvoid iofsinterrupt(int n)\n{\n printk("Interrupt ");\n iprintk(n);\n cprintk('\n');\n semsignal(&irqsem[n], 1);\n piceoi(n);\n}\n\nstatic Dev ddev;\nstatic Dev idev;\n\nConn *iofsnew(void)\n{\n IoConn *rd = calloc(1, sizeof(*rd) + 1);\n char *name = calloc(1, 1);\n conninit((Conn *)rd, name, 0, &ddev, rd);\n return (Conn *) rd;\n}\n\nstatic void del(Conn *c)\n{\n free(c);\n}\n\nstatic Conn *dup(Conn *c)\n{\n IoConn *d = calloc(1, sizeof(*d));\n memcpy(d, c, sizeof(*d));\n return (Conn *) d;\n}\n\nstatic ssize_t dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)\n{\n size_t nlen = strlen(name);\n size_t clen = 2 + STATMSGSIZ + 2 + nlen;\n\n if(clen > *len)\n return 0; /* stop */\n\n PBIT16(*buf, clen);\n *(char **)buf += 2;\n YAXstat2msg(st, *buf, *len);\n *(char **)buf += STATMSGSIZ;\n PBIT16(*buf, nlen);\n *(char **)buf += 2;\n memcpy(*buf, name, nlen);\n *(char **)buf += nlen;\n\n *rlen += clen;\n *len -= clen;\n\n return 1; /* continue */\n}\n\nstatic long long dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n switch(fn) {\n case MSREAD: {\n size_t rlen = 0;\n char name[2];\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i;\n name[1] = '\0';\n for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }\n return rlen;\n }\n case MSTAT: {\n struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n if(len < STATMSGSIZ)\n return -EINVAL;\n return YAXstat2msg(&st, buf, len);\n }\n case MWALK: {\n int n;\n const char *path = buf;\n if(len != 1)\n return -ENOENT;\n if(len2 != 8)\n return -EINVAL;\n\n if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;\n\n ((IoConn *)c)->n = n;\n PBIT64(buf2, 1 + n);\n c->dev = &idev;\n return 0;\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;\n return 0;\n }\n default:\n return -ENOSYS;\n }\n (void) off;\n}\n\nstatic Dev ddev = {\n del,\n dup,\n dfn\n};\n\nstatic long long ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n switch(fn) {\n case MSREAD: {\n if(len < 4)\n return -1;\n semwait(&irqsem[((IoConn *)c)->n], 1);\n PBIT32(buf, 1);\n return 4;\n }\n case MSTAT: {\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i = ((IoConn *)c)->n;\n st.st_ino = 1 + i;\n return YAXstat2msg(&st, buf, len);\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;\n /* todo implement exclusiveness */\n return 0;\n }\n default:\n return -ENOSYS;\n }\n (void) buf2, (void) len2, (void) off;\n}\n\nstatic Dev idev = {\n del,\n dup,\n ifn\n};\n\n" (preproc_def) "#define __YAX__\n" (#define) "#define" (identifier) "__YAX__" (preproc_def) "#define NDEBUG\n" (#define) "#define" (identifier) "NDEBUG" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.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>" (preproc_include) "#include <codas/bit.h>\n" (#include) "#include" (system_lib_string) "<codas/bit.h>" (preproc_include) "#include <yax/errorcodes.h>\n" (#include) "#include" (system_lib_string) "<yax/errorcodes.h>" (preproc_include) "#include <yax/lock.h>\n" (#include) "#include" (system_lib_string) "<yax/lock.h>" (preproc_include) "#include <yax/openflags.h>\n" (#include) "#include" (system_lib_string) "<yax/openflags.h>" (preproc_include) "#include "fs/conn.h"\n" (#include) "#include" (string_literal) ""fs/conn.h"" (") """ (string_content) "fs/conn.h" (") """ (preproc_include) "#include "fs/iofs.h"\n" (#include) "#include" (string_literal) ""fs/iofs.h"" (") """ (string_content) "fs/iofs.h" (") """ (preproc_include) "#include "mem/malloc.h"\n" (#include) "#include" (string_literal) ""mem/malloc.h"" (") """ (string_content) "mem/malloc.h" (") """ (preproc_include) "#include "multitask.h"\n" (#include) "#include" (string_literal) ""multitask.h"" (") """ (string_content) "multitask.h" (") """ (preproc_include) "#include "pic.h"\n" (#include) "#include" (string_literal) ""pic.h"" (") """ (string_content) "pic.h" (") """ (preproc_include) "#include "port.h"\n" (#include) "#include" (string_literal) ""port.h"" (") """ (string_content) "port.h" (") """ (preproc_include) "#include "printk.h"\n" (#include) "#include" (string_literal) ""printk.h"" (") """ (string_content) "printk.h" (") """ (type_definition) "typedef struct {\n Conn c;\n int n;\n} IoConn;" (typedef) "typedef" (struct_specifier) "struct {\n Conn c;\n int n;\n}" (struct) "struct" (field_declaration_list) "{\n Conn c;\n int n;\n}" ({) "{" (field_declaration) "Conn c;" (type_identifier) "Conn" (field_identifier) "c" (;) ";" (field_declaration) "int n;" (primitive_type) "int" (field_identifier) "n" (;) ";" (}) "}" (type_identifier) "IoConn" (;) ";" (declaration) "static Sem irqsem[16];" (storage_class_specifier) "static" (static) "static" (type_identifier) "Sem" (array_declarator) "irqsem[16]" (identifier) "irqsem" ([) "[" (number_literal) "16" (]) "]" (;) ";" (function_definition) "void iofsinterrupt(int n)\n{\n printk("Interrupt ");\n iprintk(n);\n cprintk('\n');\n semsignal(&irqsem[n], 1);\n piceoi(n);\n}" (primitive_type) "void" (function_declarator) "iofsinterrupt(int n)" (identifier) "iofsinterrupt" (parameter_list) "(int n)" (() "(" (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" ()) ")" (compound_statement) "{\n printk("Interrupt ");\n iprintk(n);\n cprintk('\n');\n semsignal(&irqsem[n], 1);\n piceoi(n);\n}" ({) "{" (expression_statement) "printk("Interrupt ");" (call_expression) "printk("Interrupt ")" (identifier) "printk" (argument_list) "("Interrupt ")" (() "(" (string_literal) ""Interrupt "" (") """ (string_content) "Interrupt " (") """ ()) ")" (;) ";" (expression_statement) "iprintk(n);" (call_expression) "iprintk(n)" (identifier) "iprintk" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (;) ";" (expression_statement) "cprintk('\n');" (call_expression) "cprintk('\n')" (identifier) "cprintk" (argument_list) "('\n')" (() "(" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (expression_statement) "semsignal(&irqsem[n], 1);" (call_expression) "semsignal(&irqsem[n], 1)" (identifier) "semsignal" (argument_list) "(&irqsem[n], 1)" (() "(" (pointer_expression) "&irqsem[n]" (&) "&" (subscript_expression) "irqsem[n]" (identifier) "irqsem" ([) "[" (identifier) "n" (]) "]" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "piceoi(n);" (call_expression) "piceoi(n)" (identifier) "piceoi" (argument_list) "(n)" (() "(" (identifier) "n" ()) ")" (;) ";" (}) "}" (declaration) "static Dev ddev;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Dev" (identifier) "ddev" (;) ";" (declaration) "static Dev idev;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Dev" (identifier) "idev" (;) ";" (function_definition) "Conn *iofsnew(void)\n{\n IoConn *rd = calloc(1, sizeof(*rd) + 1);\n char *name = calloc(1, 1);\n conninit((Conn *)rd, name, 0, &ddev, rd);\n return (Conn *) rd;\n}" (type_identifier) "Conn" (pointer_declarator) "*iofsnew(void)" (*) "*" (function_declarator) "iofsnew(void)" (identifier) "iofsnew" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n IoConn *rd = calloc(1, sizeof(*rd) + 1);\n char *name = calloc(1, 1);\n conninit((Conn *)rd, name, 0, &ddev, rd);\n return (Conn *) rd;\n}" ({) "{" (declaration) "IoConn *rd = calloc(1, sizeof(*rd) + 1);" (type_identifier) "IoConn" (init_declarator) "*rd = calloc(1, sizeof(*rd) + 1)" (pointer_declarator) "*rd" (*) "*" (identifier) "rd" (=) "=" (call_expression) "calloc(1, sizeof(*rd) + 1)" (identifier) "calloc" (argument_list) "(1, sizeof(*rd) + 1)" (() "(" (number_literal) "1" (,) "," (binary_expression) "sizeof(*rd) + 1" (sizeof_expression) "sizeof(*rd)" (sizeof) "sizeof" (parenthesized_expression) "(*rd)" (() "(" (pointer_expression) "*rd" (*) "*" (identifier) "rd" ()) ")" (+) "+" (number_literal) "1" ()) ")" (;) ";" (declaration) "char *name = calloc(1, 1);" (primitive_type) "char" (init_declarator) "*name = calloc(1, 1)" (pointer_declarator) "*name" (*) "*" (identifier) "name" (=) "=" (call_expression) "calloc(1, 1)" (identifier) "calloc" (argument_list) "(1, 1)" (() "(" (number_literal) "1" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "conninit((Conn *)rd, name, 0, &ddev, rd);" (call_expression) "conninit((Conn *)rd, name, 0, &ddev, rd)" (identifier) "conninit" (argument_list) "((Conn *)rd, name, 0, &ddev, rd)" (() "(" (cast_expression) "(Conn *)rd" (() "(" (type_descriptor) "Conn *" (type_identifier) "Conn" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "rd" (,) "," (identifier) "name" (,) "," (number_literal) "0" (,) "," (pointer_expression) "&ddev" (&) "&" (identifier) "ddev" (,) "," (identifier) "rd" ()) ")" (;) ";" (return_statement) "return (Conn *) rd;" (return) "return" (cast_expression) "(Conn *) rd" (() "(" (type_descriptor) "Conn *" (type_identifier) "Conn" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "rd" (;) ";" (}) "}" (function_definition) "static void del(Conn *c)\n{\n free(c);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "del(Conn *c)" (identifier) "del" (parameter_list) "(Conn *c)" (() "(" (parameter_declaration) "Conn *c" (type_identifier) "Conn" (pointer_declarator) "*c" (*) "*" (identifier) "c" ()) ")" (compound_statement) "{\n free(c);\n}" ({) "{" (expression_statement) "free(c);" (call_expression) "free(c)" (identifier) "free" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static Conn *dup(Conn *c)\n{\n IoConn *d = calloc(1, sizeof(*d));\n memcpy(d, c, sizeof(*d));\n return (Conn *) d;\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "Conn" (pointer_declarator) "*dup(Conn *c)" (*) "*" (function_declarator) "dup(Conn *c)" (identifier) "dup" (parameter_list) "(Conn *c)" (() "(" (parameter_declaration) "Conn *c" (type_identifier) "Conn" (pointer_declarator) "*c" (*) "*" (identifier) "c" ()) ")" (compound_statement) "{\n IoConn *d = calloc(1, sizeof(*d));\n memcpy(d, c, sizeof(*d));\n return (Conn *) d;\n}" ({) "{" (declaration) "IoConn *d = calloc(1, sizeof(*d));" (type_identifier) "IoConn" (init_declarator) "*d = calloc(1, sizeof(*d))" (pointer_declarator) "*d" (*) "*" (identifier) "d" (=) "=" (call_expression) "calloc(1, sizeof(*d))" (identifier) "calloc" (argument_list) "(1, sizeof(*d))" (() "(" (number_literal) "1" (,) "," (sizeof_expression) "sizeof(*d)" (sizeof) "sizeof" (parenthesized_expression) "(*d)" (() "(" (pointer_expression) "*d" (*) "*" (identifier) "d" ()) ")" ()) ")" (;) ";" (expression_statement) "memcpy(d, c, sizeof(*d));" (call_expression) "memcpy(d, c, sizeof(*d))" (identifier) "memcpy" (argument_list) "(d, c, sizeof(*d))" (() "(" (identifier) "d" (,) "," (identifier) "c" (,) "," (sizeof_expression) "sizeof(*d)" (sizeof) "sizeof" (parenthesized_expression) "(*d)" (() "(" (pointer_expression) "*d" (*) "*" (identifier) "d" ()) ")" ()) ")" (;) ";" (return_statement) "return (Conn *) d;" (return) "return" (cast_expression) "(Conn *) d" (() "(" (type_descriptor) "Conn *" (type_identifier) "Conn" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "d" (;) ";" (}) "}" (function_definition) "static ssize_t dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)\n{\n size_t nlen = strlen(name);\n size_t clen = 2 + STATMSGSIZ + 2 + nlen;\n\n if(clen > *len)\n return 0; /* stop */\n\n PBIT16(*buf, clen);\n *(char **)buf += 2;\n YAXstat2msg(st, *buf, *len);\n *(char **)buf += STATMSGSIZ;\n PBIT16(*buf, nlen);\n *(char **)buf += 2;\n memcpy(*buf, name, nlen);\n *(char **)buf += nlen;\n\n *rlen += clen;\n *len -= clen;\n\n return 1; /* continue */\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "ssize_t" (function_declarator) "dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)" (identifier) "dirpreadelem" (parameter_list) "(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)" (() "(" (parameter_declaration) "size_t *rlen" (primitive_type) "size_t" (pointer_declarator) "*rlen" (*) "*" (identifier) "rlen" (,) "," (parameter_declaration) "void **buf" (primitive_type) "void" (pointer_declarator) "**buf" (*) "*" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t *len" (primitive_type) "size_t" (pointer_declarator) "*len" (*) "*" (identifier) "len" (,) "," (parameter_declaration) "struct stat const *st" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (type_qualifier) "const" (const) "const" (pointer_declarator) "*st" (*) "*" (identifier) "st" (,) "," (parameter_declaration) "char const *name" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (compound_statement) "{\n size_t nlen = strlen(name);\n size_t clen = 2 + STATMSGSIZ + 2 + nlen;\n\n if(clen > *len)\n return 0; /* stop */\n\n PBIT16(*buf, clen);\n *(char **)buf += 2;\n YAXstat2msg(st, *buf, *len);\n *(char **)buf += STATMSGSIZ;\n PBIT16(*buf, nlen);\n *(char **)buf += 2;\n memcpy(*buf, name, nlen);\n *(char **)buf += nlen;\n\n *rlen += clen;\n *len -= clen;\n\n return 1; /* continue */\n}" ({) "{" (declaration) "size_t nlen = strlen(name);" (primitive_type) "size_t" (init_declarator) "nlen = strlen(name)" (identifier) "nlen" (=) "=" (call_expression) "strlen(name)" (identifier) "strlen" (argument_list) "(name)" (() "(" (identifier) "name" ()) ")" (;) ";" (declaration) "size_t clen = 2 + STATMSGSIZ + 2 + nlen;" (primitive_type) "size_t" (init_declarator) "clen = 2 + STATMSGSIZ + 2 + nlen" (identifier) "clen" (=) "=" (binary_expression) "2 + STATMSGSIZ + 2 + nlen" (binary_expression) "2 + STATMSGSIZ + 2" (binary_expression) "2 + STATMSGSIZ" (number_literal) "2" (+) "+" (identifier) "STATMSGSIZ" (+) "+" (number_literal) "2" (+) "+" (identifier) "nlen" (;) ";" (if_statement) "if(clen > *len)\n return 0;" (if) "if" (parenthesized_expression) "(clen > *len)" (() "(" (binary_expression) "clen > *len" (identifier) "clen" (>) ">" (pointer_expression) "*len" (*) "*" (identifier) "len" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (comment) "/* stop */" (expression_statement) "PBIT16(*buf, clen);" (call_expression) "PBIT16(*buf, clen)" (identifier) "PBIT16" (argument_list) "(*buf, clen)" (() "(" (pointer_expression) "*buf" (*) "*" (identifier) "buf" (,) "," (identifier) "clen" ()) ")" (;) ";" (expression_statement) "*(char **)buf += 2;" (assignment_expression) "*(char **)buf += 2" (pointer_expression) "*(char **)buf" (*) "*" (cast_expression) "(char **)buf" (() "(" (type_descriptor) "char **" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "buf" (+=) "+=" (number_literal) "2" (;) ";" (expression_statement) "YAXstat2msg(st, *buf, *len);" (call_expression) "YAXstat2msg(st, *buf, *len)" (identifier) "YAXstat2msg" (argument_list) "(st, *buf, *len)" (() "(" (identifier) "st" (,) "," (pointer_expression) "*buf" (*) "*" (identifier) "buf" (,) "," (pointer_expression) "*len" (*) "*" (identifier) "len" ()) ")" (;) ";" (expression_statement) "*(char **)buf += STATMSGSIZ;" (assignment_expression) "*(char **)buf += STATMSGSIZ" (pointer_expression) "*(char **)buf" (*) "*" (cast_expression) "(char **)buf" (() "(" (type_descriptor) "char **" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "buf" (+=) "+=" (identifier) "STATMSGSIZ" (;) ";" (expression_statement) "PBIT16(*buf, nlen);" (call_expression) "PBIT16(*buf, nlen)" (identifier) "PBIT16" (argument_list) "(*buf, nlen)" (() "(" (pointer_expression) "*buf" (*) "*" (identifier) "buf" (,) "," (identifier) "nlen" ()) ")" (;) ";" (expression_statement) "*(char **)buf += 2;" (assignment_expression) "*(char **)buf += 2" (pointer_expression) "*(char **)buf" (*) "*" (cast_expression) "(char **)buf" (() "(" (type_descriptor) "char **" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "buf" (+=) "+=" (number_literal) "2" (;) ";" (expression_statement) "memcpy(*buf, name, nlen);" (call_expression) "memcpy(*buf, name, nlen)" (identifier) "memcpy" (argument_list) "(*buf, name, nlen)" (() "(" (pointer_expression) "*buf" (*) "*" (identifier) "buf" (,) "," (identifier) "name" (,) "," (identifier) "nlen" ()) ")" (;) ";" (expression_statement) "*(char **)buf += nlen;" (assignment_expression) "*(char **)buf += nlen" (pointer_expression) "*(char **)buf" (*) "*" (cast_expression) "(char **)buf" (() "(" (type_descriptor) "char **" (primitive_type) "char" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "buf" (+=) "+=" (identifier) "nlen" (;) ";" (expression_statement) "*rlen += clen;" (assignment_expression) "*rlen += clen" (pointer_expression) "*rlen" (*) "*" (identifier) "rlen" (+=) "+=" (identifier) "clen" (;) ";" (expression_statement) "*len -= clen;" (assignment_expression) "*len -= clen" (pointer_expression) "*len" (*) "*" (identifier) "len" (-=) "-=" (identifier) "clen" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (comment) "/* continue */" (}) "}" (function_definition) "static long long dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n switch(fn) {\n case MSREAD: {\n size_t rlen = 0;\n char name[2];\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i;\n name[1] = '\0';\n for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }\n return rlen;\n }\n case MSTAT: {\n struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n if(len < STATMSGSIZ)\n return -EINVAL;\n return YAXstat2msg(&st, buf, len);\n }\n case MWALK: {\n int n;\n const char *path = buf;\n if(len != 1)\n return -ENOENT;\n if(len2 != 8)\n return -EINVAL;\n\n if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;\n\n ((IoConn *)c)->n = n;\n PBIT64(buf2, 1 + n);\n c->dev = &idev;\n return 0;\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;\n return 0;\n }\n default:\n return -ENOSYS;\n }\n (void) off;\n}" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "long long" (long) "long" (long) "long" (function_declarator) "dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)" (identifier) "dfn" (parameter_list) "(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)" (() "(" (parameter_declaration) "Conn *c" (type_identifier) "Conn" (pointer_declarator) "*c" (*) "*" (identifier) "c" (,) "," (parameter_declaration) "int fn" (primitive_type) "int" (identifier) "fn" (,) "," (parameter_declaration) "int submsg" (primitive_type) "int" (identifier) "submsg" (,) "," (parameter_declaration) "void *buf" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" (,) "," (parameter_declaration) "void *buf2" (primitive_type) "void" (pointer_declarator) "*buf2" (*) "*" (identifier) "buf2" (,) "," (parameter_declaration) "size_t len2" (primitive_type) "size_t" (identifier) "len2" (,) "," (parameter_declaration) "off_t off" (type_identifier) "off_t" (identifier) "off" ()) ")" (compound_statement) "{\n switch(fn) {\n case MSREAD: {\n size_t rlen = 0;\n char name[2];\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i;\n name[1] = '\0';\n for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }\n return rlen;\n }\n case MSTAT: {\n struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n if(len < STATMSGSIZ)\n return -EINVAL;\n return YAXstat2msg(&st, buf, len);\n }\n case MWALK: {\n int n;\n const char *path = buf;\n if(len != 1)\n return -ENOENT;\n if(len2 != 8)\n return -EINVAL;\n\n if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;\n\n ((IoConn *)c)->n = n;\n PBIT64(buf2, 1 + n);\n c->dev = &idev;\n return 0;\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;\n return 0;\n }\n default:\n return -ENOSYS;\n }\n (void) off;\n}" ({) "{" (switch_statement) "switch(fn) {\n case MSREAD: {\n size_t rlen = 0;\n char name[2];\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i;\n name[1] = '\0';\n for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }\n return rlen;\n }\n case MSTAT: {\n struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n if(len < STATMSGSIZ)\n return -EINVAL;\n return YAXstat2msg(&st, buf, len);\n }\n case MWALK: {\n int n;\n const char *path = buf;\n if(len != 1)\n return -ENOENT;\n if(len2 != 8)\n return -EINVAL;\n\n if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;\n\n ((IoConn *)c)->n = n;\n PBIT64(buf2, 1 + n);\n c->dev = &idev;\n return 0;\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;\n return 0;\n }\n default:\n return -ENOSYS;\n }" (switch) "switch" (parenthesized_expression) "(fn)" (() "(" (identifier) "fn" ()) ")" (compound_statement) "{\n case MSREAD: {\n size_t rlen = 0;\n char name[2];\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i;\n name[1] = '\0';\n for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }\n return rlen;\n }\n case MSTAT: {\n struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n if(len < STATMSGSIZ)\n return -EINVAL;\n return YAXstat2msg(&st, buf, len);\n }\n case MWALK: {\n int n;\n const char *path = buf;\n if(len != 1)\n return -ENOENT;\n if(len2 != 8)\n return -EINVAL;\n\n if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;\n\n ((IoConn *)c)->n = n;\n PBIT64(buf2, 1 + n);\n c->dev = &idev;\n return 0;\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;\n return 0;\n }\n default:\n return -ENOSYS;\n }" ({) "{" (case_statement) "case MSREAD: {\n size_t rlen = 0;\n char name[2];\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i;\n name[1] = '\0';\n for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }\n return rlen;\n }" (case) "case" (identifier) "MSREAD" (:) ":" (compound_statement) "{\n size_t rlen = 0;\n char name[2];\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i;\n name[1] = '\0';\n for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }\n return rlen;\n }" ({) "{" (declaration) "size_t rlen = 0;" (primitive_type) "size_t" (init_declarator) "rlen = 0" (identifier) "rlen" (=) "=" (number_literal) "0" (;) ";" (declaration) "char name[2];" (primitive_type) "char" (array_declarator) "name[2]" (identifier) "name" ([) "[" (number_literal) "2" (]) "]" (;) ";" (declaration) "struct stat st = { .st_mode = S_IFIFO | 0400 };" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (init_declarator) "st = { .st_mode = S_IFIFO | 0400 }" (identifier) "st" (=) "=" (initializer_list) "{ .st_mode = S_IFIFO | 0400 }" ({) "{" (initializer_pair) ".st_mode = S_IFIFO | 0400" (field_designator) ".st_mode" (.) "." (field_identifier) "st_mode" (=) "=" (binary_expression) "S_IFIFO | 0400" (identifier) "S_IFIFO" (|) "|" (number_literal) "0400" (}) "}" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (expression_statement) "name[1] = '\0';" (assignment_expression) "name[1] = '\0'" (subscript_expression) "name[1]" (identifier) "name" ([) "[" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (for_statement) "for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }" (for) "for" (() "(" (assignment_expression) "i = ((IoConn *)c)->n" (identifier) "i" (=) "=" (field_expression) "((IoConn *)c)->n" (parenthesized_expression) "((IoConn *)c)" (() "(" (cast_expression) "(IoConn *)c" (() "(" (type_descriptor) "IoConn *" (type_identifier) "IoConn" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "c" ()) ")" (->) "->" (field_identifier) "n" (;) ";" (binary_expression) "i < 0x10" (identifier) "i" (<) "<" (number_literal) "0x10" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n st.st_ino = 1 + i;\n name[0] = "0123456789abcdef"[i];\n if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;\n }" ({) "{" (expression_statement) "st.st_ino = 1 + i;" (assignment_expression) "st.st_ino = 1 + i" (field_expression) "st.st_ino" (identifier) "st" (.) "." (field_identifier) "st_ino" (=) "=" (binary_expression) "1 + i" (number_literal) "1" (+) "+" (identifier) "i" (;) ";" (expression_statement) "name[0] = "0123456789abcdef"[i];" (assignment_expression) "name[0] = "0123456789abcdef"[i]" (subscript_expression) "name[0]" (identifier) "name" ([) "[" (number_literal) "0" (]) "]" (=) "=" (subscript_expression) ""0123456789abcdef"[i]" (string_literal) ""0123456789abcdef"" (") """ (string_content) "0123456789abcdef" (") """ ([) "[" (identifier) "i" (]) "]" (;) ";" (if_statement) "if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n break;" (if) "if" (parenthesized_expression) "(!dirpreadelem(&rlen, &buf, &len, &st, name))" (() "(" (unary_expression) "!dirpreadelem(&rlen, &buf, &len, &st, name)" (!) "!" (call_expression) "dirpreadelem(&rlen, &buf, &len, &st, name)" (identifier) "dirpreadelem" (argument_list) "(&rlen, &buf, &len, &st, name)" (() "(" (pointer_expression) "&rlen" (&) "&" (identifier) "rlen" (,) "," (pointer_expression) "&buf" (&) "&" (identifier) "buf" (,) "," (pointer_expression) "&len" (&) "&" (identifier) "len" (,) "," (pointer_expression) "&st" (&) "&" (identifier) "st" (,) "," (identifier) "name" ()) ")" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (return_statement) "return rlen;" (return) "return" (identifier) "rlen" (;) ";" (}) "}" (case_statement) "case MSTAT: {\n struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n if(len < STATMSGSIZ)\n return -EINVAL;\n return YAXstat2msg(&st, buf, len);\n }" (case) "case" (identifier) "MSTAT" (:) ":" (compound_statement) "{\n struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n if(len < STATMSGSIZ)\n return -EINVAL;\n return YAXstat2msg(&st, buf, len);\n }" ({) "{" (declaration) "struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (init_declarator) "st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 }" (identifier) "st" (=) "=" (initializer_list) "{ .st_ino = 0, .st_mode = S_IFDIR | 0555 }" ({) "{" (initializer_pair) ".st_ino = 0" (field_designator) ".st_ino" (.) "." (field_identifier) "st_ino" (=) "=" (number_literal) "0" (,) "," (initializer_pair) ".st_mode = S_IFDIR | 0555" (field_designator) ".st_mode" (.) "." (field_identifier) "st_mode" (=) "=" (binary_expression) "S_IFDIR | 0555" (identifier) "S_IFDIR" (|) "|" (number_literal) "0555" (}) "}" (;) ";" (if_statement) "if(len < STATMSGSIZ)\n return -EINVAL;" (if) "if" (parenthesized_expression) "(len < STATMSGSIZ)" (() "(" (binary_expression) "len < STATMSGSIZ" (identifier) "len" (<) "<" (identifier) "STATMSGSIZ" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (return_statement) "return YAXstat2msg(&st, buf, len);" (return) "return" (call_expression) "YAXstat2msg(&st, buf, len)" (identifier) "YAXstat2msg" (argument_list) "(&st, buf, len)" (() "(" (pointer_expression) "&st" (&) "&" (identifier) "st" (,) "," (identifier) "buf" (,) "," (identifier) "len" ()) ")" (;) ";" (}) "}" (case_statement) "case MWALK: {\n int n;\n const char *path = buf;\n if(len != 1)\n return -ENOENT;\n if(len2 != 8)\n return -EINVAL;\n\n if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;\n\n ((IoConn *)c)->n = n;\n PBIT64(buf2, 1 + n);\n c->dev = &idev;\n return 0;\n }" (case) "case" (identifier) "MWALK" (:) ":" (compound_statement) "{\n int n;\n const char *path = buf;\n if(len != 1)\n return -ENOENT;\n if(len2 != 8)\n return -EINVAL;\n\n if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;\n\n ((IoConn *)c)->n = n;\n PBIT64(buf2, 1 + n);\n c->dev = &idev;\n return 0;\n }" ({) "{" (declaration) "int n;" (primitive_type) "int" (identifier) "n" (;) ";" (declaration) "const char *path = buf;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*path = buf" (pointer_declarator) "*path" (*) "*" (identifier) "path" (=) "=" (identifier) "buf" (;) ";" (if_statement) "if(len != 1)\n return -ENOENT;" (if) "if" (parenthesized_expression) "(len != 1)" (() "(" (binary_expression) "len != 1" (identifier) "len" (!=) "!=" (number_literal) "1" ()) ")" (return_statement) "return -ENOENT;" (return) "return" (unary_expression) "-ENOENT" (-) "-" (identifier) "ENOENT" (;) ";" (if_statement) "if(len2 != 8)\n return -EINVAL;" (if) "if" (parenthesized_expression) "(len2 != 8)" (() "(" (binary_expression) "len2 != 8" (identifier) "len2" (!=) "!=" (number_literal) "8" ()) ")" (return_statement) "return -EINVAL;" (return) "return" (unary_expression) "-EINVAL" (-) "-" (identifier) "EINVAL" (;) ";" (if_statement) "if('0' <= path[0] && path[0] <= '9')\n n = path[0] - '0';\n else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;" (if) "if" (parenthesized_expression) "('0' <= path[0] && path[0] <= '9')" (() "(" (binary_expression) "'0' <= path[0] && path[0] <= '9'" (binary_expression) "'0' <= path[0]" (char_literal) "'0'" (') "'" (character) "0" (') "'" (<=) "<=" (subscript_expression) "path[0]" (identifier) "path" ([) "[" (number_literal) "0" (]) "]" (&&) "&&" (binary_expression) "path[0] <= '9'" (subscript_expression) "path[0]" (identifier) "path" ([) "[" (number_literal) "0" (]) "]" (<=) "<=" (char_literal) "'9'" (') "'" (character) "9" (') "'" ()) ")" (expression_statement) "n = path[0] - '0';" (assignment_expression) "n = path[0] - '0'" (identifier) "n" (=) "=" (binary_expression) "path[0] - '0'" (subscript_expression) "path[0]" (identifier) "path" ([) "[" (number_literal) "0" (]) "]" (-) "-" (char_literal) "'0'" (') "'" (character) "0" (') "'" (;) ";" (else_clause) "else if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;" (else) "else" (if_statement) "if('a' <= path[0] && path[0] <= 'f')\n n = path[0] + 10 - 'a';\n else\n return -ENOENT;" (if) "if" (parenthesized_expression) "('a' <= path[0] && path[0] <= 'f')" (() "(" (binary_expression) "'a' <= path[0] && path[0] <= 'f'" (binary_expression) "'a' <= path[0]" (char_literal) "'a'" (') "'" (character) "a" (') "'" (<=) "<=" (subscript_expression) "path[0]" (identifier) "path" ([) "[" (number_literal) "0" (]) "]" (&&) "&&" (binary_expression) "path[0] <= 'f'" (subscript_expression) "path[0]" (identifier) "path" ([) "[" (number_literal) "0" (]) "]" (<=) "<=" (char_literal) "'f'" (') "'" (character) "f" (') "'" ()) ")" (expression_statement) "n = path[0] + 10 - 'a';" (assignment_expression) "n = path[0] + 10 - 'a'" (identifier) "n" (=) "=" (binary_expression) "path[0] + 10 - 'a'" (binary_expression) "path[0] + 10" (subscript_expression) "path[0]" (identifier) "path" ([) "[" (number_literal) "0" (]) "]" (+) "+" (number_literal) "10" (-) "-" (char_literal) "'a'" (') "'" (character) "a" (') "'" (;) ";" (else_clause) "else\n return -ENOENT;" (else) "else" (return_statement) "return -ENOENT;" (return) "return" (unary_expression) "-ENOENT" (-) "-" (identifier) "ENOENT" (;) ";" (expression_statement) "((IoConn *)c)->n = n;" (assignment_expression) "((IoConn *)c)->n = n" (field_expression) "((IoConn *)c)->n" (parenthesized_expression) "((IoConn *)c)" (() "(" (cast_expression) "(IoConn *)c" (() "(" (type_descriptor) "IoConn *" (type_identifier) "IoConn" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "c" ()) ")" (->) "->" (field_identifier) "n" (=) "=" (identifier) "n" (;) ";" (expression_statement) "PBIT64(buf2, 1 + n);" (call_expression) "PBIT64(buf2, 1 + n)" (identifier) "PBIT64" (argument_list) "(buf2, 1 + n)" (() "(" (identifier) "buf2" (,) "," (binary_expression) "1 + n" (number_literal) "1" (+) "+" (identifier) "n" ()) ")" (;) ";" (expression_statement) "c->dev = &idev;" (assignment_expression) "c->dev = &idev" (field_expression) "c->dev" (identifier) "c" (->) "->" (field_identifier) "dev" (=) "=" (pointer_expression) "&idev" (&) "&" (identifier) "idev" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (case_statement) "case MOPEN: {\n if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;\n return 0;\n }" (case) "case" (identifier) "MOPEN" (:) ":" (compound_statement) "{\n if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;\n return 0;\n }" ({) "{" (if_statement) "if(submsg & (O_EXCL | O_WRONLY))\n return -EISDIR;" (if) "if" (parenthesized_expression) "(submsg & (O_EXCL | O_WRONLY))" (() "(" (binary_expression) "submsg & (O_EXCL | O_WRONLY)" (identifier) "submsg" (&) "&" (parenthesized_expression) "(O_EXCL | O_WRONLY)" (() "(" (binary_expression) "O_EXCL | O_WRONLY" (identifier) "O_EXCL" (|) "|" (identifier) "O_WRONLY" ()) ")" ()) ")" (return_statement) "return -EISDIR;" (return) "return" (unary_expression) "-EISDIR" (-) "-" (identifier) "EISDIR" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (case_statement) "default:\n return -ENOSYS;" (default) "default" (:) ":" (return_statement) "return -ENOSYS;" (return) "return" (unary_expression) "-ENOSYS" (-) "-" (identifier) "ENOSYS" (;) ";" (}) "}" (expression_statement) "(void) off;" (cast_expression) "(void) off" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "off" (;) ";" (}) "}" (declaration) "static Dev ddev = {\n del,\n dup,\n dfn\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "Dev" (init_declarator) "ddev = {\n del,\n dup,\n dfn\n}" (identifier) "ddev" (=) "=" (initializer_list) "{\n del,\n dup,\n dfn\n}" ({) "{" (identifier) "del" (,) "," (identifier) "dup" (,) "," (identifier) "dfn" (}) "}" (;) ";" (function_definition) "static long long ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n switch(fn) {\n case MSREAD: {\n if(len < 4)\n return -1;\n semwait(&irqsem[((IoConn *)c)->n], 1);\n PBIT32(buf, 1);\n return 4;\n }\n case MSTAT: {\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i = ((IoConn *)c)->n;\n st.st_ino = 1 + i;\n return YAXstat2msg(&st, buf, len);\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;\n /* todo implement exclusiveness */\n return 0;\n }\n default:\n return -ENOSYS;\n }\n (void) buf2, (void) len2, (void) off;\n}" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "long long" (long) "long" (long) "long" (function_declarator) "ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)" (identifier) "ifn" (parameter_list) "(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)" (() "(" (parameter_declaration) "Conn *c" (type_identifier) "Conn" (pointer_declarator) "*c" (*) "*" (identifier) "c" (,) "," (parameter_declaration) "int fn" (primitive_type) "int" (identifier) "fn" (,) "," (parameter_declaration) "int submsg" (primitive_type) "int" (identifier) "submsg" (,) "," (parameter_declaration) "void *buf" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" (,) "," (parameter_declaration) "void *buf2" (primitive_type) "void" (pointer_declarator) "*buf2" (*) "*" (identifier) "buf2" (,) "," (parameter_declaration) "size_t len2" (primitive_type) "size_t" (identifier) "len2" (,) "," (parameter_declaration) "off_t off" (type_identifier) "off_t" (identifier) "off" ()) ")" (compound_statement) "{\n switch(fn) {\n case MSREAD: {\n if(len < 4)\n return -1;\n semwait(&irqsem[((IoConn *)c)->n], 1);\n PBIT32(buf, 1);\n return 4;\n }\n case MSTAT: {\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i = ((IoConn *)c)->n;\n st.st_ino = 1 + i;\n return YAXstat2msg(&st, buf, len);\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;\n /* todo implement exclusiveness */\n return 0;\n }\n default:\n return -ENOSYS;\n }\n (void) buf2, (void) len2, (void) off;\n}" ({) "{" (switch_statement) "switch(fn) {\n case MSREAD: {\n if(len < 4)\n return -1;\n semwait(&irqsem[((IoConn *)c)->n], 1);\n PBIT32(buf, 1);\n return 4;\n }\n case MSTAT: {\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i = ((IoConn *)c)->n;\n st.st_ino = 1 + i;\n return YAXstat2msg(&st, buf, len);\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;\n /* todo implement exclusiveness */\n return 0;\n }\n default:\n return -ENOSYS;\n }" (switch) "switch" (parenthesized_expression) "(fn)" (() "(" (identifier) "fn" ()) ")" (compound_statement) "{\n case MSREAD: {\n if(len < 4)\n return -1;\n semwait(&irqsem[((IoConn *)c)->n], 1);\n PBIT32(buf, 1);\n return 4;\n }\n case MSTAT: {\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i = ((IoConn *)c)->n;\n st.st_ino = 1 + i;\n return YAXstat2msg(&st, buf, len);\n }\n case MOPEN: {\n if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;\n /* todo implement exclusiveness */\n return 0;\n }\n default:\n return -ENOSYS;\n }" ({) "{" (case_statement) "case MSREAD: {\n if(len < 4)\n return -1;\n semwait(&irqsem[((IoConn *)c)->n], 1);\n PBIT32(buf, 1);\n return 4;\n }" (case) "case" (identifier) "MSREAD" (:) ":" (compound_statement) "{\n if(len < 4)\n return -1;\n semwait(&irqsem[((IoConn *)c)->n], 1);\n PBIT32(buf, 1);\n return 4;\n }" ({) "{" (if_statement) "if(len < 4)\n return -1;" (if) "if" (parenthesized_expression) "(len < 4)" (() "(" (binary_expression) "len < 4" (identifier) "len" (<) "<" (number_literal) "4" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (expression_statement) "semwait(&irqsem[((IoConn *)c)->n], 1);" (call_expression) "semwait(&irqsem[((IoConn *)c)->n], 1)" (identifier) "semwait" (argument_list) "(&irqsem[((IoConn *)c)->n], 1)" (() "(" (pointer_expression) "&irqsem[((IoConn *)c)->n]" (&) "&" (subscript_expression) "irqsem[((IoConn *)c)->n]" (identifier) "irqsem" ([) "[" (field_expression) "((IoConn *)c)->n" (parenthesized_expression) "((IoConn *)c)" (() "(" (cast_expression) "(IoConn *)c" (() "(" (type_descriptor) "IoConn *" (type_identifier) "IoConn" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "c" ()) ")" (->) "->" (field_identifier) "n" (]) "]" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "PBIT32(buf, 1);" (call_expression) "PBIT32(buf, 1)" (identifier) "PBIT32" (argument_list) "(buf, 1)" (() "(" (identifier) "buf" (,) "," (number_literal) "1" ()) ")" (;) ";" (return_statement) "return 4;" (return) "return" (number_literal) "4" (;) ";" (}) "}" (case_statement) "case MSTAT: {\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i = ((IoConn *)c)->n;\n st.st_ino = 1 + i;\n return YAXstat2msg(&st, buf, len);\n }" (case) "case" (identifier) "MSTAT" (:) ":" (compound_statement) "{\n struct stat st = { .st_mode = S_IFIFO | 0400 };\n int i = ((IoConn *)c)->n;\n st.st_ino = 1 + i;\n return YAXstat2msg(&st, buf, len);\n }" ({) "{" (declaration) "struct stat st = { .st_mode = S_IFIFO | 0400 };" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (init_declarator) "st = { .st_mode = S_IFIFO | 0400 }" (identifier) "st" (=) "=" (initializer_list) "{ .st_mode = S_IFIFO | 0400 }" ({) "{" (initializer_pair) ".st_mode = S_IFIFO | 0400" (field_designator) ".st_mode" (.) "." (field_identifier) "st_mode" (=) "=" (binary_expression) "S_IFIFO | 0400" (identifier) "S_IFIFO" (|) "|" (number_literal) "0400" (}) "}" (;) ";" (declaration) "int i = ((IoConn *)c)->n;" (primitive_type) "int" (init_declarator) "i = ((IoConn *)c)->n" (identifier) "i" (=) "=" (field_expression) "((IoConn *)c)->n" (parenthesized_expression) "((IoConn *)c)" (() "(" (cast_expression) "(IoConn *)c" (() "(" (type_descriptor) "IoConn *" (type_identifier) "IoConn" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "c" ()) ")" (->) "->" (field_identifier) "n" (;) ";" (expression_statement) "st.st_ino = 1 + i;" (assignment_expression) "st.st_ino = 1 + i" (field_expression) "st.st_ino" (identifier) "st" (.) "." (field_identifier) "st_ino" (=) "=" (binary_expression) "1 + i" (number_literal) "1" (+) "+" (identifier) "i" (;) ";" (return_statement) "return YAXstat2msg(&st, buf, len);" (return) "return" (call_expression) "YAXstat2msg(&st, buf, len)" (identifier) "YAXstat2msg" (argument_list) "(&st, buf, len)" (() "(" (pointer_expression) "&st" (&) "&" (identifier) "st" (,) "," (identifier) "buf" (,) "," (identifier) "len" ()) ")" (;) ";" (}) "}" (case_statement) "case MOPEN: {\n if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;\n /* todo implement exclusiveness */\n return 0;\n }" (case) "case" (identifier) "MOPEN" (:) ":" (compound_statement) "{\n if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;\n /* todo implement exclusiveness */\n return 0;\n }" ({) "{" (if_statement) "if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n return -EACCES;" (if) "if" (parenthesized_expression) "(submsg & (O_EXCL | O_TRUNC | O_WRONLY))" (() "(" (binary_expression) "submsg & (O_EXCL | O_TRUNC | O_WRONLY)" (identifier) "submsg" (&) "&" (parenthesized_expression) "(O_EXCL | O_TRUNC | O_WRONLY)" (() "(" (binary_expression) "O_EXCL | O_TRUNC | O_WRONLY" (binary_expression) "O_EXCL | O_TRUNC" (identifier) "O_EXCL" (|) "|" (identifier) "O_TRUNC" (|) "|" (identifier) "O_WRONLY" ()) ")" ()) ")" (return_statement) "return -EACCES;" (return) "return" (unary_expression) "-EACCES" (-) "-" (identifier) "EACCES" (;) ";" (comment) "/* todo implement exclusiveness */" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (case_statement) "default:\n return -ENOSYS;" (default) "default" (:) ":" (return_statement) "return -ENOSYS;" (return) "return" (unary_expression) "-ENOSYS" (-) "-" (identifier) "ENOSYS" (;) ";" (}) "}" (expression_statement) "(void) buf2, (void) len2, (void) off;" (comma_expression) "(void) buf2, (void) len2, (void) off" (cast_expression) "(void) buf2" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "buf2" (,) "," (comma_expression) "(void) len2, (void) off" (cast_expression) "(void) len2" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "len2" (,) "," (cast_expression) "(void) off" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "off" (;) ";" (}) "}" (declaration) "static Dev idev = {\n del,\n dup,\n ifn\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "Dev" (init_declarator) "idev = {\n del,\n dup,\n ifn\n}" (identifier) "idev" (=) "=" (initializer_list) "{\n del,\n dup,\n ifn\n}" ({) "{" (identifier) "del" (,) "," (identifier) "dup" (,) "," (identifier) "ifn" (}) "}" (;) ";"
1,431
0
{"language": "c", "success": true, "metadata": {"lines": 154, "avg_line_length": 19.22, "nodes": 919, "errors": 0, "source_hash": "8024dce2ffe53bd54798c7fd63986ac76820dd64ec5e38aefe24a355fb6a82e3", "categorized_nodes": 624}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define __YAX__\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "__YAX__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define NDEBUG\n", "parent": null, "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": "NDEBUG", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 14}}, {"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/stat.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/stat.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include <sys/types.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/types.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 22}}, {"id": 15, "type": "preproc_include", "text": "#include <codas/bit.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": "<codas/bit.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <yax/errorcodes.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": "<yax/errorcodes.h>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 27}}, {"id": 21, "type": "preproc_include", "text": "#include <yax/lock.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": "<yax/lock.h>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 21}}, {"id": 24, "type": "preproc_include", "text": "#include <yax/openflags.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<yax/openflags.h>", "parent": 24, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 26}}, {"id": 27, "type": "preproc_include", "text": "#include \"fs/conn.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"fs/conn.h\"", "parent": 27, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 20}}, {"id": 30, "type": "preproc_include", "text": "#include \"fs/iofs.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"fs/iofs.h\"", "parent": 30, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 20}}, {"id": 33, "type": "preproc_include", "text": "#include \"mem/malloc.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"mem/malloc.h\"", "parent": 33, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 23}}, {"id": 36, "type": "preproc_include", "text": "#include \"multitask.h\"\n", "parent": null, "children": [37, 38], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"multitask.h\"", "parent": 36, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 39, "type": "preproc_include", "text": "#include \"pic.h\"\n", "parent": null, "children": [40, 41], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"pic.h\"", "parent": 39, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 16}}, {"id": 42, "type": "preproc_include", "text": "#include \"port.h\"\n", "parent": null, "children": [43, 44], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 44, "type": "string_literal", "text": "\"port.h\"", "parent": 42, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 17}}, {"id": 45, "type": "preproc_include", "text": "#include \"printk.h\"\n", "parent": null, "children": [46, 47], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 46, "type": "#include", "text": "#include", "parent": 45, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 47, "type": "string_literal", "text": "\"printk.h\"", "parent": 45, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 19}}, {"id": 48, "type": "type_definition", "text": "typedef struct {\n\tConn c;\n\tint n;\n} IoConn;", "parent": null, "children": [49, 50, 58], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 49, "type": "typedef", "text": "typedef", "parent": 48, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 50, "type": "struct_specifier", "text": "struct {\n\tConn c;\n\tint n;\n}", "parent": 48, "children": [51], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 20, "column": 1}}, {"id": 51, "type": "struct", "text": "struct", "parent": 50, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 14}}, {"id": 52, "type": "field_declaration", "text": "Conn c;", "parent": 50, "children": [53, 54], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 8}}, {"id": 53, "type": "type_identifier", "text": "Conn", "parent": 52, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 54, "type": "field_identifier", "text": "c", "parent": 52, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 7}}, {"id": 55, "type": "field_declaration", "text": "int n;", "parent": 50, "children": [56, 57], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 7}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 4}}, {"id": 57, "type": "field_identifier", "text": "n", "parent": 55, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 6}}, {"id": 58, "type": "type_identifier", "text": "IoConn", "parent": 48, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 8}}, {"id": 59, "type": "declaration", "text": "static Sem irqsem[16];", "parent": null, "children": [60, 61], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 22}}, {"id": 60, "type": "type_identifier", "text": "Sem", "parent": 59, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 10}}, {"id": 61, "type": "array_declarator", "text": "irqsem[16]", "parent": 59, "children": [62, 63], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 21}}, {"id": 62, "type": "identifier", "text": "irqsem", "parent": 61, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 17}}, {"id": 63, "type": "number_literal", "text": "16", "parent": 61, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 20}}, {"id": 64, "type": "function_definition", "text": "void iofsinterrupt(int n)\n{\n\tprintk(\"Interrupt \");\n\tiprintk(n);\n\tcprintk('\\n');\n\tsemsignal(&irqsem[n], 1);\n\tpiceoi(n);\n}", "parent": null, "children": [65, 66], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 66, "type": "function_declarator", "text": "iofsinterrupt(int n)", "parent": 64, "children": [67, 68], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 25}}, {"id": 67, "type": "identifier", "text": "iofsinterrupt", "parent": 66, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 18}}, {"id": 68, "type": "parameter_list", "text": "(int n)", "parent": 66, "children": [69], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 25}}, {"id": 69, "type": "parameter_declaration", "text": "int n", "parent": 68, "children": [70, 71], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 24}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 22}}, {"id": 71, "type": "identifier", "text": "n", "parent": 69, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 24}}, {"id": 72, "type": "call_expression", "text": "printk(\"Interrupt \")", "parent": 64, "children": [73, 74], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 21}}, {"id": 73, "type": "identifier", "text": "printk", "parent": 72, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 7}}, {"id": 74, "type": "argument_list", "text": "(\"Interrupt \")", "parent": 72, "children": [75], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 21}}, {"id": 75, "type": "string_literal", "text": "\"Interrupt \"", "parent": 74, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 20}}, {"id": 76, "type": "call_expression", "text": "iprintk(n)", "parent": 64, "children": [77, 78], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 11}}, {"id": 77, "type": "identifier", "text": "iprintk", "parent": 76, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 8}}, {"id": 78, "type": "argument_list", "text": "(n)", "parent": 76, "children": [79], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 11}}, {"id": 79, "type": "identifier", "text": "n", "parent": 78, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 10}}, {"id": 80, "type": "call_expression", "text": "cprintk('\\n')", "parent": 64, "children": [81, 82], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 14}}, {"id": 81, "type": "identifier", "text": "cprintk", "parent": 80, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 8}}, {"id": 82, "type": "argument_list", "text": "('\\n')", "parent": 80, "children": [83], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 14}}, {"id": 83, "type": "char_literal", "text": "'\\n'", "parent": 82, "children": [84, 85, 86], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 13}}, {"id": 84, "type": "'", "text": "'", "parent": 83, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 85, "type": "escape_sequence", "text": "\\n", "parent": 83, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 12}}, {"id": 86, "type": "'", "text": "'", "parent": 83, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 87, "type": "call_expression", "text": "semsignal(&irqsem[n], 1)", "parent": 64, "children": [88, 89], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 25}}, {"id": 88, "type": "identifier", "text": "semsignal", "parent": 87, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 10}}, {"id": 89, "type": "argument_list", "text": "(&irqsem[n], 1)", "parent": 87, "children": [90, 94], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 25}}, {"id": 90, "type": "pointer_expression", "text": "&irqsem[n]", "parent": 89, "children": [91], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 21}}, {"id": 91, "type": "subscript_expression", "text": "irqsem[n]", "parent": 90, "children": [92, 93], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 21}}, {"id": 92, "type": "identifier", "text": "irqsem", "parent": 91, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 18}}, {"id": 93, "type": "identifier", "text": "n", "parent": 91, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 94, "type": "number_literal", "text": "1", "parent": 89, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 24}}, {"id": 95, "type": "call_expression", "text": "piceoi(n)", "parent": 64, "children": [96, 97], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 10}}, {"id": 96, "type": "identifier", "text": "piceoi", "parent": 95, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 7}}, {"id": 97, "type": "argument_list", "text": "(n)", "parent": 95, "children": [98], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 10}}, {"id": 98, "type": "identifier", "text": "n", "parent": 97, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 99, "type": "declaration", "text": "static Dev ddev;", "parent": null, "children": [100, 101], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 16}}, {"id": 100, "type": "type_identifier", "text": "Dev", "parent": 99, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 10}}, {"id": 101, "type": "identifier", "text": "ddev", "parent": 99, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 15}}, {"id": 102, "type": "declaration", "text": "static Dev idev;", "parent": null, "children": [103, 104], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 16}}, {"id": 103, "type": "type_identifier", "text": "Dev", "parent": 102, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 10}}, {"id": 104, "type": "identifier", "text": "idev", "parent": 102, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 15}}, {"id": 105, "type": "function_definition", "text": "Conn *iofsnew(void)\n{\n\tIoConn *rd = calloc(1, sizeof(*rd) + 1);\n\tchar *name = calloc(1, 1);\n\tconninit((Conn *)rd, name, 0, &ddev, rd);\n\treturn (Conn *) rd;\n}", "parent": null, "children": [106, 107], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 106, "type": "type_identifier", "text": "Conn", "parent": 105, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 4}}, {"id": 107, "type": "pointer_declarator", "text": "*iofsnew(void)", "parent": 105, "children": [108, 109], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 19}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 6}}, {"id": 109, "type": "function_declarator", "text": "iofsnew(void)", "parent": 107, "children": [110, 111], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 19}}, {"id": 110, "type": "identifier", "text": "iofsnew", "parent": 109, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 13}}, {"id": 111, "type": "parameter_list", "text": "(void)", "parent": 109, "children": [112], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 19}}, {"id": 112, "type": "parameter_declaration", "text": "void", "parent": 111, "children": [113], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 113, "type": "primitive_type", "text": "void", "parent": 112, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 114, "type": "declaration", "text": "IoConn *rd = calloc(1, sizeof(*rd) + 1);", "parent": 105, "children": [115, 116], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 41}}, {"id": 115, "type": "type_identifier", "text": "IoConn", "parent": 114, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 7}}, {"id": 116, "type": "init_declarator", "text": "*rd = calloc(1, sizeof(*rd) + 1)", "parent": 114, "children": [117, 120, 121], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 40}}, {"id": 117, "type": "pointer_declarator", "text": "*rd", "parent": 116, "children": [118, 119], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 11}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 119, "type": "identifier", "text": "rd", "parent": 117, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 11}}, {"id": 120, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 121, "type": "call_expression", "text": "calloc(1, sizeof(*rd) + 1)", "parent": 116, "children": [122, 123], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 40}}, {"id": 122, "type": "identifier", "text": "calloc", "parent": 121, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 20}}, {"id": 123, "type": "argument_list", "text": "(1, sizeof(*rd) + 1)", "parent": 121, "children": [124, 125], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 40}}, {"id": 124, "type": "number_literal", "text": "1", "parent": 123, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 22}}, {"id": 125, "type": "binary_expression", "text": "sizeof(*rd) + 1", "parent": 123, "children": [126, 131, 132], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 39}}, {"id": 126, "type": "sizeof_expression", "text": "sizeof(*rd)", "parent": 125, "children": [127], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 35}}, {"id": 127, "type": "parenthesized_expression", "text": "(*rd)", "parent": 126, "children": [128], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 35}}, {"id": 128, "type": "pointer_expression", "text": "*rd", "parent": 127, "children": [129, 130], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 34}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 32}}, {"id": 130, "type": "identifier", "text": "rd", "parent": 128, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 34}}, {"id": 131, "type": "+", "text": "+", "parent": 125, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 37}}, {"id": 132, "type": "number_literal", "text": "1", "parent": 125, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 39}}, {"id": 133, "type": "declaration", "text": "char *name = calloc(1, 1);", "parent": 105, "children": [134, 135], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 27}}, {"id": 134, "type": "primitive_type", "text": "char", "parent": 133, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 5}}, {"id": 135, "type": "init_declarator", "text": "*name = calloc(1, 1)", "parent": 133, "children": [136, 139, 140], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 26}}, {"id": 136, "type": "pointer_declarator", "text": "*name", "parent": 135, "children": [137, 138], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 11}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 7}}, {"id": 138, "type": "identifier", "text": "name", "parent": 136, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 139, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 13}}, {"id": 140, "type": "call_expression", "text": "calloc(1, 1)", "parent": 135, "children": [141, 142], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 26}}, {"id": 141, "type": "identifier", "text": "calloc", "parent": 140, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 20}}, {"id": 142, "type": "argument_list", "text": "(1, 1)", "parent": 140, "children": [143, 144], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 26}}, {"id": 143, "type": "number_literal", "text": "1", "parent": 142, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 144, "type": "number_literal", "text": "1", "parent": 142, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 25}}, {"id": 145, "type": "call_expression", "text": "conninit((Conn *)rd, name, 0, &ddev, rd)", "parent": 105, "children": [146, 147], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 41}}, {"id": 146, "type": "identifier", "text": "conninit", "parent": 145, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 9}}, {"id": 147, "type": "argument_list", "text": "((Conn *)rd, name, 0, &ddev, rd)", "parent": 145, "children": [148, 154, 155, 156, 158], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 41}}, {"id": 148, "type": "cast_expression", "text": "(Conn *)rd", "parent": 147, "children": [149, 153], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 20}}, {"id": 149, "type": "type_descriptor", "text": "Conn *", "parent": 148, "children": [150, 151], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 17}}, {"id": 150, "type": "type_identifier", "text": "Conn", "parent": 149, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 15}}, {"id": 151, "type": "abstract_pointer_declarator", "text": "*", "parent": 149, "children": [152], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 17}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 17}}, {"id": 153, "type": "identifier", "text": "rd", "parent": 148, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 20}}, {"id": 154, "type": "identifier", "text": "name", "parent": 147, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 26}}, {"id": 155, "type": "number_literal", "text": "0", "parent": 147, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 29}}, {"id": 156, "type": "pointer_expression", "text": "&ddev", "parent": 147, "children": [157], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 36}}, {"id": 157, "type": "identifier", "text": "ddev", "parent": 156, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 36}}, {"id": 158, "type": "identifier", "text": "rd", "parent": 147, "children": [], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 40}}, {"id": 159, "type": "return_statement", "text": "return (Conn *) rd;", "parent": 105, "children": [160], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 20}}, {"id": 160, "type": "cast_expression", "text": "(Conn *) rd", "parent": 159, "children": [161, 165], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 19}}, {"id": 161, "type": "type_descriptor", "text": "Conn *", "parent": 160, "children": [162, 163], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 15}}, {"id": 162, "type": "type_identifier", "text": "Conn", "parent": 161, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 13}}, {"id": 163, "type": "abstract_pointer_declarator", "text": "*", "parent": 161, "children": [164], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 165, "type": "identifier", "text": "rd", "parent": 160, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 166, "type": "function_definition", "text": "static void del(Conn *c)\n{\n\tfree(c);\n}", "parent": null, "children": [167, 168], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 167, "type": "primitive_type", "text": "void", "parent": 166, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 11}}, {"id": 168, "type": "function_declarator", "text": "del(Conn *c)", "parent": 166, "children": [169, 170], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 24}}, {"id": 169, "type": "identifier", "text": "del", "parent": 168, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 15}}, {"id": 170, "type": "parameter_list", "text": "(Conn *c)", "parent": 168, "children": [171], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 24}}, {"id": 171, "type": "parameter_declaration", "text": "Conn *c", "parent": 170, "children": [172, 173], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 23}}, {"id": 172, "type": "type_identifier", "text": "Conn", "parent": 171, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 20}}, {"id": 173, "type": "pointer_declarator", "text": "*c", "parent": 171, "children": [174, 175], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 23}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 175, "type": "identifier", "text": "c", "parent": 173, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 23}}, {"id": 176, "type": "call_expression", "text": "free(c)", "parent": 166, "children": [177, 178], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 8}}, {"id": 177, "type": "identifier", "text": "free", "parent": 176, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 5}}, {"id": 178, "type": "argument_list", "text": "(c)", "parent": 176, "children": [179], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 8}}, {"id": 179, "type": "identifier", "text": "c", "parent": 178, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 7}}, {"id": 180, "type": "function_definition", "text": "static Conn *dup(Conn *c)\n{\n\tIoConn *d = calloc(1, sizeof(*d));\n\tmemcpy(d, c, sizeof(*d));\n\treturn (Conn *) d;\n}", "parent": null, "children": [181, 182], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 181, "type": "type_identifier", "text": "Conn", "parent": 180, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 11}}, {"id": 182, "type": "pointer_declarator", "text": "*dup(Conn *c)", "parent": 180, "children": [183, 184], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 25}}, {"id": 183, "type": "*", "text": "*", "parent": 182, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 13}}, {"id": 184, "type": "function_declarator", "text": "dup(Conn *c)", "parent": 182, "children": [185, 186], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 25}}, {"id": 185, "type": "identifier", "text": "dup", "parent": 184, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 16}}, {"id": 186, "type": "parameter_list", "text": "(Conn *c)", "parent": 184, "children": [187], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 25}}, {"id": 187, "type": "parameter_declaration", "text": "Conn *c", "parent": 186, "children": [188, 189], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 24}}, {"id": 188, "type": "type_identifier", "text": "Conn", "parent": 187, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 21}}, {"id": 189, "type": "pointer_declarator", "text": "*c", "parent": 187, "children": [190, 191], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 24}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 191, "type": "identifier", "text": "c", "parent": 189, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 24}}, {"id": 192, "type": "declaration", "text": "IoConn *d = calloc(1, sizeof(*d));", "parent": 180, "children": [193, 194], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 35}}, {"id": 193, "type": "type_identifier", "text": "IoConn", "parent": 192, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 7}}, {"id": 194, "type": "init_declarator", "text": "*d = calloc(1, sizeof(*d))", "parent": 192, "children": [195, 198, 199], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 34}}, {"id": 195, "type": "pointer_declarator", "text": "*d", "parent": 194, "children": [196, 197], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 10}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 9}}, {"id": 197, "type": "identifier", "text": "d", "parent": 195, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 198, "type": "=", "text": "=", "parent": 194, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 12}}, {"id": 199, "type": "call_expression", "text": "calloc(1, sizeof(*d))", "parent": 194, "children": [200, 201], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 34}}, {"id": 200, "type": "identifier", "text": "calloc", "parent": 199, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 19}}, {"id": 201, "type": "argument_list", "text": "(1, sizeof(*d))", "parent": 199, "children": [202, 203], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 34}}, {"id": 202, "type": "number_literal", "text": "1", "parent": 201, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 21}}, {"id": 203, "type": "sizeof_expression", "text": "sizeof(*d)", "parent": 201, "children": [204], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 33}}, {"id": 204, "type": "parenthesized_expression", "text": "(*d)", "parent": 203, "children": [205], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 33}}, {"id": 205, "type": "pointer_expression", "text": "*d", "parent": 204, "children": [206, 207], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 32}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 31}}, {"id": 207, "type": "identifier", "text": "d", "parent": 205, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 32}}, {"id": 208, "type": "call_expression", "text": "memcpy(d, c, sizeof(*d))", "parent": 180, "children": [209, 210], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 25}}, {"id": 209, "type": "identifier", "text": "memcpy", "parent": 208, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 7}}, {"id": 210, "type": "argument_list", "text": "(d, c, sizeof(*d))", "parent": 208, "children": [211, 212, 213], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 25}}, {"id": 211, "type": "identifier", "text": "d", "parent": 210, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 9}}, {"id": 212, "type": "identifier", "text": "c", "parent": 210, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 12}}, {"id": 213, "type": "sizeof_expression", "text": "sizeof(*d)", "parent": 210, "children": [214], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 24}}, {"id": 214, "type": "parenthesized_expression", "text": "(*d)", "parent": 213, "children": [215], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 24}}, {"id": 215, "type": "pointer_expression", "text": "*d", "parent": 214, "children": [216, 217], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 23}}, {"id": 216, "type": "*", "text": "*", "parent": 215, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 22}}, {"id": 217, "type": "identifier", "text": "d", "parent": 215, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 218, "type": "return_statement", "text": "return (Conn *) d;", "parent": 180, "children": [219], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 19}}, {"id": 219, "type": "cast_expression", "text": "(Conn *) d", "parent": 218, "children": [220, 224], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 18}}, {"id": 220, "type": "type_descriptor", "text": "Conn *", "parent": 219, "children": [221, 222], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 15}}, {"id": 221, "type": "type_identifier", "text": "Conn", "parent": 220, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 222, "type": "abstract_pointer_declarator", "text": "*", "parent": 220, "children": [223], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 224, "type": "identifier", "text": "d", "parent": 219, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 225, "type": "function_definition", "text": "static ssize_t dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)\n{\n\tsize_t nlen = strlen(name);\n\tsize_t clen = 2 + STATMSGSIZ + 2 + nlen;\n\n\tif(clen > *len)\n\t\treturn 0; /* stop */\n\n\tPBIT16(*buf, clen);\n\t*(char **)buf += 2;\n\tYAXstat2msg(st, *buf, *len);\n\t*(char **)buf += STATMSGSIZ;\n\tPBIT16(*buf, nlen);\n\t*(char **)buf += 2;\n\tmemcpy(*buf, name, nlen);\n\t*(char **)buf += nlen;\n\n\t*rlen += clen;\n\t*len -= clen;\n\n\treturn 1; /* continue */\n}", "parent": null, "children": [226, 227], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 226, "type": "primitive_type", "text": "ssize_t", "parent": 225, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 14}}, {"id": 227, "type": "function_declarator", "text": "dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)", "parent": 225, "children": [228, 229], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 107}}, {"id": 228, "type": "identifier", "text": "dirpreadelem", "parent": 227, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 27}}, {"id": 229, "type": "parameter_list", "text": "(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)", "parent": 227, "children": [230, 235, 242, 247, 254], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 107}}, {"id": 230, "type": "parameter_declaration", "text": "size_t *rlen", "parent": 229, "children": [231, 232], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 40}}, {"id": 231, "type": "primitive_type", "text": "size_t", "parent": 230, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 34}}, {"id": 232, "type": "pointer_declarator", "text": "*rlen", "parent": 230, "children": [233, 234], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 40}}, {"id": 233, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 36}}, {"id": 234, "type": "identifier", "text": "rlen", "parent": 232, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 40}}, {"id": 235, "type": "parameter_declaration", "text": "void **buf", "parent": 229, "children": [236, 237], "start_point": {"row": 56, "column": 42}, "end_point": {"row": 56, "column": 52}}, {"id": 236, "type": "primitive_type", "text": "void", "parent": 235, "children": [], "start_point": {"row": 56, "column": 42}, "end_point": {"row": 56, "column": 46}}, {"id": 237, "type": "pointer_declarator", "text": "**buf", "parent": 235, "children": [238, 239], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 52}}, {"id": 238, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 48}}, {"id": 239, "type": "pointer_declarator", "text": "*buf", "parent": 237, "children": [240, 241], "start_point": {"row": 56, "column": 48}, "end_point": {"row": 56, "column": 52}}, {"id": 240, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 56, "column": 48}, "end_point": {"row": 56, "column": 49}}, {"id": 241, "type": "identifier", "text": "buf", "parent": 239, "children": [], "start_point": {"row": 56, "column": 49}, "end_point": {"row": 56, "column": 52}}, {"id": 242, "type": "parameter_declaration", "text": "size_t *len", "parent": 229, "children": [243, 244], "start_point": {"row": 56, "column": 54}, "end_point": {"row": 56, "column": 65}}, {"id": 243, "type": "primitive_type", "text": "size_t", "parent": 242, "children": [], "start_point": {"row": 56, "column": 54}, "end_point": {"row": 56, "column": 60}}, {"id": 244, "type": "pointer_declarator", "text": "*len", "parent": 242, "children": [245, 246], "start_point": {"row": 56, "column": 61}, "end_point": {"row": 56, "column": 65}}, {"id": 245, "type": "*", "text": "*", "parent": 244, "children": [], "start_point": {"row": 56, "column": 61}, "end_point": {"row": 56, "column": 62}}, {"id": 246, "type": "identifier", "text": "len", "parent": 244, "children": [], "start_point": {"row": 56, "column": 62}, "end_point": {"row": 56, "column": 65}}, {"id": 247, "type": "parameter_declaration", "text": "struct stat const *st", "parent": 229, "children": [248, 251], "start_point": {"row": 56, "column": 67}, "end_point": {"row": 56, "column": 88}}, {"id": 248, "type": "struct_specifier", "text": "struct stat", "parent": 247, "children": [249, 250], "start_point": {"row": 56, "column": 67}, "end_point": {"row": 56, "column": 78}}, {"id": 249, "type": "struct", "text": "struct", "parent": 248, "children": [], "start_point": {"row": 56, "column": 67}, "end_point": {"row": 56, "column": 73}}, {"id": 250, "type": "type_identifier", "text": "stat", "parent": 248, "children": [], "start_point": {"row": 56, "column": 74}, "end_point": {"row": 56, "column": 78}}, {"id": 251, "type": "pointer_declarator", "text": "*st", "parent": 247, "children": [252, 253], "start_point": {"row": 56, "column": 85}, "end_point": {"row": 56, "column": 88}}, {"id": 252, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 56, "column": 85}, "end_point": {"row": 56, "column": 86}}, {"id": 253, "type": "identifier", "text": "st", "parent": 251, "children": [], "start_point": {"row": 56, "column": 86}, "end_point": {"row": 56, "column": 88}}, {"id": 254, "type": "parameter_declaration", "text": "char const *name", "parent": 229, "children": [255, 256], "start_point": {"row": 56, "column": 90}, "end_point": {"row": 56, "column": 106}}, {"id": 255, "type": "primitive_type", "text": "char", "parent": 254, "children": [], "start_point": {"row": 56, "column": 90}, "end_point": {"row": 56, "column": 94}}, {"id": 256, "type": "pointer_declarator", "text": "*name", "parent": 254, "children": [257, 258], "start_point": {"row": 56, "column": 101}, "end_point": {"row": 56, "column": 106}}, {"id": 257, "type": "*", "text": "*", "parent": 256, "children": [], "start_point": {"row": 56, "column": 101}, "end_point": {"row": 56, "column": 102}}, {"id": 258, "type": "identifier", "text": "name", "parent": 256, "children": [], "start_point": {"row": 56, "column": 102}, "end_point": {"row": 56, "column": 106}}, {"id": 259, "type": "declaration", "text": "size_t nlen = strlen(name);", "parent": 225, "children": [260, 261], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 28}}, {"id": 260, "type": "primitive_type", "text": "size_t", "parent": 259, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 7}}, {"id": 261, "type": "init_declarator", "text": "nlen = strlen(name)", "parent": 259, "children": [262, 263, 264], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 27}}, {"id": 262, "type": "identifier", "text": "nlen", "parent": 261, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 12}}, {"id": 263, "type": "=", "text": "=", "parent": 261, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 264, "type": "call_expression", "text": "strlen(name)", "parent": 261, "children": [265, 266], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 27}}, {"id": 265, "type": "identifier", "text": "strlen", "parent": 264, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 21}}, {"id": 266, "type": "argument_list", "text": "(name)", "parent": 264, "children": [267], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 27}}, {"id": 267, "type": "identifier", "text": "name", "parent": 266, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 26}}, {"id": 268, "type": "declaration", "text": "size_t clen = 2 + STATMSGSIZ + 2 + nlen;", "parent": 225, "children": [269, 270], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 41}}, {"id": 269, "type": "primitive_type", "text": "size_t", "parent": 268, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 7}}, {"id": 270, "type": "init_declarator", "text": "clen = 2 + STATMSGSIZ + 2 + nlen", "parent": 268, "children": [271, 272, 273], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 40}}, {"id": 271, "type": "identifier", "text": "clen", "parent": 270, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 12}}, {"id": 272, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 14}}, {"id": 273, "type": "binary_expression", "text": "2 + STATMSGSIZ + 2 + nlen", "parent": 270, "children": [274, 281, 282], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 40}}, {"id": 274, "type": "binary_expression", "text": "2 + STATMSGSIZ + 2", "parent": 273, "children": [275, 279, 280], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 33}}, {"id": 275, "type": "binary_expression", "text": "2 + STATMSGSIZ", "parent": 274, "children": [276, 277, 278], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 29}}, {"id": 276, "type": "number_literal", "text": "2", "parent": 275, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 16}}, {"id": 277, "type": "+", "text": "+", "parent": 275, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 278, "type": "identifier", "text": "STATMSGSIZ", "parent": 275, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 29}}, {"id": 279, "type": "+", "text": "+", "parent": 274, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 31}}, {"id": 280, "type": "number_literal", "text": "2", "parent": 274, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 33}}, {"id": 281, "type": "+", "text": "+", "parent": 273, "children": [], "start_point": {"row": 59, "column": 34}, "end_point": {"row": 59, "column": 35}}, {"id": 282, "type": "identifier", "text": "nlen", "parent": 273, "children": [], "start_point": {"row": 59, "column": 36}, "end_point": {"row": 59, "column": 40}}, {"id": 283, "type": "if_statement", "text": "if(clen > *len)\n\t\treturn 0;", "parent": 225, "children": [284, 291], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 62, "column": 11}}, {"id": 284, "type": "parenthesized_expression", "text": "(clen > *len)", "parent": 283, "children": [285], "start_point": {"row": 61, "column": 3}, "end_point": {"row": 61, "column": 16}}, {"id": 285, "type": "binary_expression", "text": "clen > *len", "parent": 284, "children": [286, 287, 288], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 15}}, {"id": 286, "type": "identifier", "text": "clen", "parent": 285, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 8}}, {"id": 287, "type": ">", "text": ">", "parent": 285, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 288, "type": "pointer_expression", "text": "*len", "parent": 285, "children": [289, 290], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 15}}, {"id": 289, "type": "*", "text": "*", "parent": 288, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 12}}, {"id": 290, "type": "identifier", "text": "len", "parent": 288, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 15}}, {"id": 291, "type": "return_statement", "text": "return 0;", "parent": 283, "children": [292], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 11}}, {"id": 292, "type": "number_literal", "text": "0", "parent": 291, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 10}}, {"id": 293, "type": "call_expression", "text": "PBIT16(*buf, clen)", "parent": 225, "children": [294, 295], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 19}}, {"id": 294, "type": "identifier", "text": "PBIT16", "parent": 293, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 7}}, {"id": 295, "type": "argument_list", "text": "(*buf, clen)", "parent": 293, "children": [296, 299], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 19}}, {"id": 296, "type": "pointer_expression", "text": "*buf", "parent": 295, "children": [297, 298], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 12}}, {"id": 297, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 298, "type": "identifier", "text": "buf", "parent": 296, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 12}}, {"id": 299, "type": "identifier", "text": "clen", "parent": 295, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 18}}, {"id": 300, "type": "assignment_expression", "text": "*(char **)buf += 2", "parent": 225, "children": [301, 311, 312], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 19}}, {"id": 301, "type": "pointer_expression", "text": "*(char **)buf", "parent": 300, "children": [302, 303], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 14}}, {"id": 302, "type": "*", "text": "*", "parent": 301, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 2}}, {"id": 303, "type": "cast_expression", "text": "(char **)buf", "parent": 301, "children": [304, 310], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 14}}, {"id": 304, "type": "type_descriptor", "text": "char **", "parent": 303, "children": [305, 306], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 10}}, {"id": 305, "type": "primitive_type", "text": "char", "parent": 304, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 7}}, {"id": 306, "type": "abstract_pointer_declarator", "text": "**", "parent": 304, "children": [307, 308], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 10}}, {"id": 307, "type": "*", "text": "*", "parent": 306, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 9}}, {"id": 308, "type": "abstract_pointer_declarator", "text": "*", "parent": 306, "children": [309], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 10}}, {"id": 309, "type": "*", "text": "*", "parent": 308, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 10}}, {"id": 310, "type": "identifier", "text": "buf", "parent": 303, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 14}}, {"id": 311, "type": "+=", "text": "+=", "parent": 300, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 17}}, {"id": 312, "type": "number_literal", "text": "2", "parent": 300, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 19}}, {"id": 313, "type": "call_expression", "text": "YAXstat2msg(st, *buf, *len)", "parent": 225, "children": [314, 315], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 28}}, {"id": 314, "type": "identifier", "text": "YAXstat2msg", "parent": 313, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 12}}, {"id": 315, "type": "argument_list", "text": "(st, *buf, *len)", "parent": 313, "children": [316, 317, 320], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 28}}, {"id": 316, "type": "identifier", "text": "st", "parent": 315, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 15}}, {"id": 317, "type": "pointer_expression", "text": "*buf", "parent": 315, "children": [318, 319], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 21}}, {"id": 318, "type": "*", "text": "*", "parent": 317, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 18}}, {"id": 319, "type": "identifier", "text": "buf", "parent": 317, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 21}}, {"id": 320, "type": "pointer_expression", "text": "*len", "parent": 315, "children": [321, 322], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 27}}, {"id": 321, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 24}}, {"id": 322, "type": "identifier", "text": "len", "parent": 320, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 27}}, {"id": 323, "type": "assignment_expression", "text": "*(char **)buf += STATMSGSIZ", "parent": 225, "children": [324, 334, 335], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 28}}, {"id": 324, "type": "pointer_expression", "text": "*(char **)buf", "parent": 323, "children": [325, 326], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 14}}, {"id": 325, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 2}}, {"id": 326, "type": "cast_expression", "text": "(char **)buf", "parent": 324, "children": [327, 333], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 14}}, {"id": 327, "type": "type_descriptor", "text": "char **", "parent": 326, "children": [328, 329], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 10}}, {"id": 328, "type": "primitive_type", "text": "char", "parent": 327, "children": [], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 7}}, {"id": 329, "type": "abstract_pointer_declarator", "text": "**", "parent": 327, "children": [330, 331], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 10}}, {"id": 330, "type": "*", "text": "*", "parent": 329, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 331, "type": "abstract_pointer_declarator", "text": "*", "parent": 329, "children": [332], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 332, "type": "*", "text": "*", "parent": 331, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 10}}, {"id": 333, "type": "identifier", "text": "buf", "parent": 326, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 14}}, {"id": 334, "type": "+=", "text": "+=", "parent": 323, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 17}}, {"id": 335, "type": "identifier", "text": "STATMSGSIZ", "parent": 323, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 28}}, {"id": 336, "type": "call_expression", "text": "PBIT16(*buf, nlen)", "parent": 225, "children": [337, 338], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 19}}, {"id": 337, "type": "identifier", "text": "PBIT16", "parent": 336, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 7}}, {"id": 338, "type": "argument_list", "text": "(*buf, nlen)", "parent": 336, "children": [339, 342], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 19}}, {"id": 339, "type": "pointer_expression", "text": "*buf", "parent": 338, "children": [340, 341], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 12}}, {"id": 340, "type": "*", "text": "*", "parent": 339, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 341, "type": "identifier", "text": "buf", "parent": 339, "children": [], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 12}}, {"id": 342, "type": "identifier", "text": "nlen", "parent": 338, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 18}}, {"id": 343, "type": "assignment_expression", "text": "*(char **)buf += 2", "parent": 225, "children": [344, 354, 355], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 19}}, {"id": 344, "type": "pointer_expression", "text": "*(char **)buf", "parent": 343, "children": [345, 346], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 14}}, {"id": 345, "type": "*", "text": "*", "parent": 344, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 2}}, {"id": 346, "type": "cast_expression", "text": "(char **)buf", "parent": 344, "children": [347, 353], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 14}}, {"id": 347, "type": "type_descriptor", "text": "char **", "parent": 346, "children": [348, 349], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 10}}, {"id": 348, "type": "primitive_type", "text": "char", "parent": 347, "children": [], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 7}}, {"id": 349, "type": "abstract_pointer_declarator", "text": "**", "parent": 347, "children": [350, 351], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 10}}, {"id": 350, "type": "*", "text": "*", "parent": 349, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 351, "type": "abstract_pointer_declarator", "text": "*", "parent": 349, "children": [352], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 10}}, {"id": 352, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 10}}, {"id": 353, "type": "identifier", "text": "buf", "parent": 346, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 14}}, {"id": 354, "type": "+=", "text": "+=", "parent": 343, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 17}}, {"id": 355, "type": "number_literal", "text": "2", "parent": 343, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 356, "type": "call_expression", "text": "memcpy(*buf, name, nlen)", "parent": 225, "children": [357, 358], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 25}}, {"id": 357, "type": "identifier", "text": "memcpy", "parent": 356, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 7}}, {"id": 358, "type": "argument_list", "text": "(*buf, name, nlen)", "parent": 356, "children": [359, 362, 363], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 25}}, {"id": 359, "type": "pointer_expression", "text": "*buf", "parent": 358, "children": [360, 361], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 12}}, {"id": 360, "type": "*", "text": "*", "parent": 359, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 9}}, {"id": 361, "type": "identifier", "text": "buf", "parent": 359, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 12}}, {"id": 362, "type": "identifier", "text": "name", "parent": 358, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 18}}, {"id": 363, "type": "identifier", "text": "nlen", "parent": 358, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 24}}, {"id": 364, "type": "assignment_expression", "text": "*(char **)buf += nlen", "parent": 225, "children": [365, 375, 376], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 22}}, {"id": 365, "type": "pointer_expression", "text": "*(char **)buf", "parent": 364, "children": [366, 367], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 14}}, {"id": 366, "type": "*", "text": "*", "parent": 365, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 2}}, {"id": 367, "type": "cast_expression", "text": "(char **)buf", "parent": 365, "children": [368, 374], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 14}}, {"id": 368, "type": "type_descriptor", "text": "char **", "parent": 367, "children": [369, 370], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 10}}, {"id": 369, "type": "primitive_type", "text": "char", "parent": 368, "children": [], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 7}}, {"id": 370, "type": "abstract_pointer_declarator", "text": "**", "parent": 368, "children": [371, 372], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 10}}, {"id": 371, "type": "*", "text": "*", "parent": 370, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 9}}, {"id": 372, "type": "abstract_pointer_declarator", "text": "*", "parent": 370, "children": [373], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 373, "type": "*", "text": "*", "parent": 372, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 374, "type": "identifier", "text": "buf", "parent": 367, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 14}}, {"id": 375, "type": "+=", "text": "+=", "parent": 364, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 17}}, {"id": 376, "type": "identifier", "text": "nlen", "parent": 364, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 22}}, {"id": 377, "type": "assignment_expression", "text": "*rlen += clen", "parent": 225, "children": [378, 381, 382], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 14}}, {"id": 378, "type": "pointer_expression", "text": "*rlen", "parent": 377, "children": [379, 380], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 6}}, {"id": 379, "type": "*", "text": "*", "parent": 378, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 2}}, {"id": 380, "type": "identifier", "text": "rlen", "parent": 378, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 6}}, {"id": 381, "type": "+=", "text": "+=", "parent": 377, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 9}}, {"id": 382, "type": "identifier", "text": "clen", "parent": 377, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 14}}, {"id": 383, "type": "assignment_expression", "text": "*len -= clen", "parent": 225, "children": [384, 387, 388], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 13}}, {"id": 384, "type": "pointer_expression", "text": "*len", "parent": 383, "children": [385, 386], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 5}}, {"id": 385, "type": "*", "text": "*", "parent": 384, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 2}}, {"id": 386, "type": "identifier", "text": "len", "parent": 384, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 5}}, {"id": 387, "type": "-=", "text": "-=", "parent": 383, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 8}}, {"id": 388, "type": "identifier", "text": "clen", "parent": 383, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 13}}, {"id": 389, "type": "return_statement", "text": "return 1;", "parent": 225, "children": [390], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 10}}, {"id": 390, "type": "number_literal", "text": "1", "parent": 389, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 391, "type": "function_definition", "text": "static long long dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n\tswitch(fn) {\n\tcase MSREAD: {\n\t\tsize_t rlen = 0;\n\t\tchar name[2];\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i;\n\t\tname[1] = '\\0';\n\t\tfor(i = ((IoConn *)c)->n; i < 0x10; i++) {\n\t\t\tst.st_ino = 1 + i;\n\t\t\tname[0] = \"0123456789abcdef\"[i];\n\t\t\tif(!dirpreadelem(&rlen, &buf, &len, &st, name))\n\t\t\t\tbreak;\n\t\t}\n\t\treturn rlen;\n\t}\n\tcase MSTAT: {\n\t\tstruct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n\t\tif(len < STATMSGSIZ)\n\t\t\treturn -EINVAL;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}\n\tcase MWALK: {\n\t\tint n;\n\t\tconst char *path = buf;\n\t\tif(len != 1)\n\t\t\treturn -ENOENT;\n\t\tif(len2 != 8)\n\t\t\treturn -EINVAL;\n\n\t\tif('0' <= path[0] && path[0] <= '9')\n\t\t\tn = path[0] - '0';\n\t\telse if('a' <= path[0] && path[0] <= 'f')\n\t\t\tn = path[0] + 10 - 'a';\n\t\telse\n\t\t\treturn -ENOENT;\n\n\t\t((IoConn *)c)->n = n;\n\t\tPBIT64(buf2, 1 + n);\n\t\tc->dev = &idev;\n\t\treturn 0;\n\t}\n\tcase MOPEN: {\n\t\tif(submsg & (O_EXCL | O_WRONLY))\n\t\t\treturn -EISDIR;\n\t\treturn 0;\n\t}\n\tdefault:\n\t\treturn -ENOSYS;\n\t}\n\t(void) off;\n}", "parent": null, "children": [392, 395], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 131, "column": 1}}, {"id": 392, "type": "sized_type_specifier", "text": "long long", "parent": 391, "children": [393, 394], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 16}}, {"id": 393, "type": "long", "text": "long", "parent": 392, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 11}}, {"id": 394, "type": "long", "text": "long", "parent": 392, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 16}}, {"id": 395, "type": "function_declarator", "text": "dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)", "parent": 391, "children": [396, 397], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 108}}, {"id": 396, "type": "identifier", "text": "dfn", "parent": 395, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 20}}, {"id": 397, "type": "parameter_list", "text": "(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)", "parent": 395, "children": [398, 403, 406, 409, 414, 417, 422, 425], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 108}}, {"id": 398, "type": "parameter_declaration", "text": "Conn *c", "parent": 397, "children": [399, 400], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 28}}, {"id": 399, "type": "type_identifier", "text": "Conn", "parent": 398, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 25}}, {"id": 400, "type": "pointer_declarator", "text": "*c", "parent": 398, "children": [401, 402], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 28}}, {"id": 401, "type": "*", "text": "*", "parent": 400, "children": [], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 27}}, {"id": 402, "type": "identifier", "text": "c", "parent": 400, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 28}}, {"id": 403, "type": "parameter_declaration", "text": "int fn", "parent": 397, "children": [404, 405], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 36}}, {"id": 404, "type": "primitive_type", "text": "int", "parent": 403, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 33}}, {"id": 405, "type": "identifier", "text": "fn", "parent": 403, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 36}}, {"id": 406, "type": "parameter_declaration", "text": "int submsg", "parent": 397, "children": [407, 408], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 48}}, {"id": 407, "type": "primitive_type", "text": "int", "parent": 406, "children": [], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 41}}, {"id": 408, "type": "identifier", "text": "submsg", "parent": 406, "children": [], "start_point": {"row": 79, "column": 42}, "end_point": {"row": 79, "column": 48}}, {"id": 409, "type": "parameter_declaration", "text": "void *buf", "parent": 397, "children": [410, 411], "start_point": {"row": 79, "column": 50}, "end_point": {"row": 79, "column": 59}}, {"id": 410, "type": "primitive_type", "text": "void", "parent": 409, "children": [], "start_point": {"row": 79, "column": 50}, "end_point": {"row": 79, "column": 54}}, {"id": 411, "type": "pointer_declarator", "text": "*buf", "parent": 409, "children": [412, 413], "start_point": {"row": 79, "column": 55}, "end_point": {"row": 79, "column": 59}}, {"id": 412, "type": "*", "text": "*", "parent": 411, "children": [], "start_point": {"row": 79, "column": 55}, "end_point": {"row": 79, "column": 56}}, {"id": 413, "type": "identifier", "text": "buf", "parent": 411, "children": [], "start_point": {"row": 79, "column": 56}, "end_point": {"row": 79, "column": 59}}, {"id": 414, "type": "parameter_declaration", "text": "size_t len", "parent": 397, "children": [415, 416], "start_point": {"row": 79, "column": 61}, "end_point": {"row": 79, "column": 71}}, {"id": 415, "type": "primitive_type", "text": "size_t", "parent": 414, "children": [], "start_point": {"row": 79, "column": 61}, "end_point": {"row": 79, "column": 67}}, {"id": 416, "type": "identifier", "text": "len", "parent": 414, "children": [], "start_point": {"row": 79, "column": 68}, "end_point": {"row": 79, "column": 71}}, {"id": 417, "type": "parameter_declaration", "text": "void *buf2", "parent": 397, "children": [418, 419], "start_point": {"row": 79, "column": 73}, "end_point": {"row": 79, "column": 83}}, {"id": 418, "type": "primitive_type", "text": "void", "parent": 417, "children": [], "start_point": {"row": 79, "column": 73}, "end_point": {"row": 79, "column": 77}}, {"id": 419, "type": "pointer_declarator", "text": "*buf2", "parent": 417, "children": [420, 421], "start_point": {"row": 79, "column": 78}, "end_point": {"row": 79, "column": 83}}, {"id": 420, "type": "*", "text": "*", "parent": 419, "children": [], "start_point": {"row": 79, "column": 78}, "end_point": {"row": 79, "column": 79}}, {"id": 421, "type": "identifier", "text": "buf2", "parent": 419, "children": [], "start_point": {"row": 79, "column": 79}, "end_point": {"row": 79, "column": 83}}, {"id": 422, "type": "parameter_declaration", "text": "size_t len2", "parent": 397, "children": [423, 424], "start_point": {"row": 79, "column": 85}, "end_point": {"row": 79, "column": 96}}, {"id": 423, "type": "primitive_type", "text": "size_t", "parent": 422, "children": [], "start_point": {"row": 79, "column": 85}, "end_point": {"row": 79, "column": 91}}, {"id": 424, "type": "identifier", "text": "len2", "parent": 422, "children": [], "start_point": {"row": 79, "column": 92}, "end_point": {"row": 79, "column": 96}}, {"id": 425, "type": "parameter_declaration", "text": "off_t off", "parent": 397, "children": [426, 427], "start_point": {"row": 79, "column": 98}, "end_point": {"row": 79, "column": 107}}, {"id": 426, "type": "type_identifier", "text": "off_t", "parent": 425, "children": [], "start_point": {"row": 79, "column": 98}, "end_point": {"row": 79, "column": 103}}, {"id": 427, "type": "identifier", "text": "off", "parent": 425, "children": [], "start_point": {"row": 79, "column": 104}, "end_point": {"row": 79, "column": 107}}, {"id": 428, "type": "switch_statement", "text": "switch(fn) {\n\tcase MSREAD: {\n\t\tsize_t rlen = 0;\n\t\tchar name[2];\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i;\n\t\tname[1] = '\\0';\n\t\tfor(i = ((IoConn *)c)->n; i < 0x10; i++) {\n\t\t\tst.st_ino = 1 + i;\n\t\t\tname[0] = \"0123456789abcdef\"[i];\n\t\t\tif(!dirpreadelem(&rlen, &buf, &len, &st, name))\n\t\t\t\tbreak;\n\t\t}\n\t\treturn rlen;\n\t}\n\tcase MSTAT: {\n\t\tstruct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n\t\tif(len < STATMSGSIZ)\n\t\t\treturn -EINVAL;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}\n\tcase MWALK: {\n\t\tint n;\n\t\tconst char *path = buf;\n\t\tif(len != 1)\n\t\t\treturn -ENOENT;\n\t\tif(len2 != 8)\n\t\t\treturn -EINVAL;\n\n\t\tif('0' <= path[0] && path[0] <= '9')\n\t\t\tn = path[0] - '0';\n\t\telse if('a' <= path[0] && path[0] <= 'f')\n\t\t\tn = path[0] + 10 - 'a';\n\t\telse\n\t\t\treturn -ENOENT;\n\n\t\t((IoConn *)c)->n = n;\n\t\tPBIT64(buf2, 1 + n);\n\t\tc->dev = &idev;\n\t\treturn 0;\n\t}\n\tcase MOPEN: {\n\t\tif(submsg & (O_EXCL | O_WRONLY))\n\t\t\treturn -EISDIR;\n\t\treturn 0;\n\t}\n\tdefault:\n\t\treturn -ENOSYS;\n\t}", "parent": 391, "children": [429, 430], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 129, "column": 2}}, {"id": 429, "type": "switch", "text": "switch", "parent": 428, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 7}}, {"id": 430, "type": "parenthesized_expression", "text": "(fn)", "parent": 428, "children": [431], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 11}}, {"id": 431, "type": "identifier", "text": "fn", "parent": 430, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 10}}, {"id": 432, "type": "case_statement", "text": "case MSREAD: {\n\t\tsize_t rlen = 0;\n\t\tchar name[2];\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i;\n\t\tname[1] = '\\0';\n\t\tfor(i = ((IoConn *)c)->n; i < 0x10; i++) {\n\t\t\tst.st_ino = 1 + i;\n\t\t\tname[0] = \"0123456789abcdef\"[i];\n\t\t\tif(!dirpreadelem(&rlen, &buf, &len, &st, name))\n\t\t\t\tbreak;\n\t\t}\n\t\treturn rlen;\n\t}", "parent": 428, "children": [433, 434], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 95, "column": 2}}, {"id": 433, "type": "case", "text": "case", "parent": 432, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 5}}, {"id": 434, "type": "identifier", "text": "MSREAD", "parent": 432, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 12}}, {"id": 435, "type": "declaration", "text": "size_t rlen = 0;", "parent": 432, "children": [436, 437], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 18}}, {"id": 436, "type": "primitive_type", "text": "size_t", "parent": 435, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 8}}, {"id": 437, "type": "init_declarator", "text": "rlen = 0", "parent": 435, "children": [438, 439, 440], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 17}}, {"id": 438, "type": "identifier", "text": "rlen", "parent": 437, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 13}}, {"id": 439, "type": "=", "text": "=", "parent": 437, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 15}}, {"id": 440, "type": "number_literal", "text": "0", "parent": 437, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 17}}, {"id": 441, "type": "declaration", "text": "char name[2];", "parent": 432, "children": [442, 443], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 15}}, {"id": 442, "type": "primitive_type", "text": "char", "parent": 441, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 6}}, {"id": 443, "type": "array_declarator", "text": "name[2]", "parent": 441, "children": [444, 445], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 14}}, {"id": 444, "type": "identifier", "text": "name", "parent": 443, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 11}}, {"id": 445, "type": "number_literal", "text": "2", "parent": 443, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 13}}, {"id": 446, "type": "declaration", "text": "struct stat st = { .st_mode = S_IFIFO | 0400 };", "parent": 432, "children": [447, 450], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 49}}, {"id": 447, "type": "struct_specifier", "text": "struct stat", "parent": 446, "children": [448, 449], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 13}}, {"id": 448, "type": "struct", "text": "struct", "parent": 447, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 8}}, {"id": 449, "type": "type_identifier", "text": "stat", "parent": 447, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 13}}, {"id": 450, "type": "init_declarator", "text": "st = { .st_mode = S_IFIFO | 0400 }", "parent": 446, "children": [451, 452, 453], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 48}}, {"id": 451, "type": "identifier", "text": "st", "parent": 450, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 16}}, {"id": 452, "type": "=", "text": "=", "parent": 450, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 18}}, {"id": 453, "type": "initializer_list", "text": "{ .st_mode = S_IFIFO | 0400 }", "parent": 450, "children": [454], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 48}}, {"id": 454, "type": "initializer_pair", "text": ".st_mode = S_IFIFO | 0400", "parent": 453, "children": [455, 457, 458], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 46}}, {"id": 455, "type": "field_designator", "text": ".st_mode", "parent": 454, "children": [456], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 29}}, {"id": 456, "type": "field_identifier", "text": "st_mode", "parent": 455, "children": [], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 29}}, {"id": 457, "type": "=", "text": "=", "parent": 454, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 31}}, {"id": 458, "type": "binary_expression", "text": "S_IFIFO | 0400", "parent": 454, "children": [459, 460], "start_point": {"row": 85, "column": 32}, "end_point": {"row": 85, "column": 46}}, {"id": 459, "type": "identifier", "text": "S_IFIFO", "parent": 458, "children": [], "start_point": {"row": 85, "column": 32}, "end_point": {"row": 85, "column": 39}}, {"id": 460, "type": "number_literal", "text": "0400", "parent": 458, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 46}}, {"id": 461, "type": "declaration", "text": "int i;", "parent": 432, "children": [462, 463], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 8}}, {"id": 462, "type": "primitive_type", "text": "int", "parent": 461, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 5}}, {"id": 463, "type": "identifier", "text": "i", "parent": 461, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 7}}, {"id": 464, "type": "assignment_expression", "text": "name[1] = '\\0'", "parent": 432, "children": [465, 468, 469], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 16}}, {"id": 465, "type": "subscript_expression", "text": "name[1]", "parent": 464, "children": [466, 467], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 9}}, {"id": 466, "type": "identifier", "text": "name", "parent": 465, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 6}}, {"id": 467, "type": "number_literal", "text": "1", "parent": 465, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 8}}, {"id": 468, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 11}}, {"id": 469, "type": "char_literal", "text": "'\\0'", "parent": 464, "children": [470, 471, 472], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 16}}, {"id": 470, "type": "'", "text": "'", "parent": 469, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 13}}, {"id": 471, "type": "escape_sequence", "text": "\\0", "parent": 469, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 15}}, {"id": 472, "type": "'", "text": "'", "parent": 469, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 16}}, {"id": 473, "type": "for_statement", "text": "for(i = ((IoConn *)c)->n; i < 0x10; i++) {\n\t\t\tst.st_ino = 1 + i;\n\t\t\tname[0] = \"0123456789abcdef\"[i];\n\t\t\tif(!dirpreadelem(&rlen, &buf, &len, &st, name))\n\t\t\t\tbreak;\n\t\t}", "parent": 432, "children": [474, 486, 490], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 93, "column": 3}}, {"id": 474, "type": "assignment_expression", "text": "i = ((IoConn *)c)->n", "parent": 473, "children": [475, 476, 477], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 26}}, {"id": 475, "type": "identifier", "text": "i", "parent": 474, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 7}}, {"id": 476, "type": "=", "text": "=", "parent": 474, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 9}}, {"id": 477, "type": "field_expression", "text": "((IoConn *)c)->n", "parent": 474, "children": [478, 485], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 26}}, {"id": 478, "type": "parenthesized_expression", "text": "((IoConn *)c)", "parent": 477, "children": [479], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 23}}, {"id": 479, "type": "cast_expression", "text": "(IoConn *)c", "parent": 478, "children": [480, 484], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 22}}, {"id": 480, "type": "type_descriptor", "text": "IoConn *", "parent": 479, "children": [481, 482], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 20}}, {"id": 481, "type": "type_identifier", "text": "IoConn", "parent": 480, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 18}}, {"id": 482, "type": "abstract_pointer_declarator", "text": "*", "parent": 480, "children": [483], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 20}}, {"id": 483, "type": "*", "text": "*", "parent": 482, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 20}}, {"id": 484, "type": "identifier", "text": "c", "parent": 479, "children": [], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 22}}, {"id": 485, "type": "field_identifier", "text": "n", "parent": 477, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 26}}, {"id": 486, "type": "binary_expression", "text": "i < 0x10", "parent": 473, "children": [487, 488, 489], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 36}}, {"id": 487, "type": "identifier", "text": "i", "parent": 486, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 29}}, {"id": 488, "type": "<", "text": "<", "parent": 486, "children": [], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 31}}, {"id": 489, "type": "number_literal", "text": "0x10", "parent": 486, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 36}}, {"id": 490, "type": "update_expression", "text": "i++", "parent": 473, "children": [491, 492], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 41}}, {"id": 491, "type": "identifier", "text": "i", "parent": 490, "children": [], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 39}}, {"id": 492, "type": "++", "text": "++", "parent": 490, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 41}}, {"id": 493, "type": "assignment_expression", "text": "st.st_ino = 1 + i", "parent": 473, "children": [494, 497, 498], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 20}}, {"id": 494, "type": "field_expression", "text": "st.st_ino", "parent": 493, "children": [495, 496], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 12}}, {"id": 495, "type": "identifier", "text": "st", "parent": 494, "children": [], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 5}}, {"id": 496, "type": "field_identifier", "text": "st_ino", "parent": 494, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 12}}, {"id": 497, "type": "=", "text": "=", "parent": 493, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 14}}, {"id": 498, "type": "binary_expression", "text": "1 + i", "parent": 493, "children": [499, 500, 501], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 20}}, {"id": 499, "type": "number_literal", "text": "1", "parent": 498, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 16}}, {"id": 500, "type": "+", "text": "+", "parent": 498, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 18}}, {"id": 501, "type": "identifier", "text": "i", "parent": 498, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 502, "type": "assignment_expression", "text": "name[0] = \"0123456789abcdef\"[i]", "parent": 473, "children": [503, 506, 507], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 34}}, {"id": 503, "type": "subscript_expression", "text": "name[0]", "parent": 502, "children": [504, 505], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 10}}, {"id": 504, "type": "identifier", "text": "name", "parent": 503, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 7}}, {"id": 505, "type": "number_literal", "text": "0", "parent": 503, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 9}}, {"id": 506, "type": "=", "text": "=", "parent": 502, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 12}}, {"id": 507, "type": "subscript_expression", "text": "\"0123456789abcdef\"[i]", "parent": 502, "children": [508, 509], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 34}}, {"id": 508, "type": "string_literal", "text": "\"0123456789abcdef\"", "parent": 507, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 31}}, {"id": 509, "type": "identifier", "text": "i", "parent": 507, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 33}}, {"id": 510, "type": "if_statement", "text": "if(!dirpreadelem(&rlen, &buf, &len, &st, name))\n\t\t\t\tbreak;", "parent": 473, "children": [511, 526], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 92, "column": 10}}, {"id": 511, "type": "parenthesized_expression", "text": "(!dirpreadelem(&rlen, &buf, &len, &st, name))", "parent": 510, "children": [512], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 50}}, {"id": 512, "type": "unary_expression", "text": "!dirpreadelem(&rlen, &buf, &len, &st, name)", "parent": 511, "children": [513, 514], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 49}}, {"id": 513, "type": "!", "text": "!", "parent": 512, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 7}}, {"id": 514, "type": "call_expression", "text": "dirpreadelem(&rlen, &buf, &len, &st, name)", "parent": 512, "children": [515, 516], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 49}}, {"id": 515, "type": "identifier", "text": "dirpreadelem", "parent": 514, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 19}}, {"id": 516, "type": "argument_list", "text": "(&rlen, &buf, &len, &st, name)", "parent": 514, "children": [517, 519, 521, 523, 525], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 49}}, {"id": 517, "type": "pointer_expression", "text": "&rlen", "parent": 516, "children": [518], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 25}}, {"id": 518, "type": "identifier", "text": "rlen", "parent": 517, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 25}}, {"id": 519, "type": "pointer_expression", "text": "&buf", "parent": 516, "children": [520], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 31}}, {"id": 520, "type": "identifier", "text": "buf", "parent": 519, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 31}}, {"id": 521, "type": "pointer_expression", "text": "&len", "parent": 516, "children": [522], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 37}}, {"id": 522, "type": "identifier", "text": "len", "parent": 521, "children": [], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 37}}, {"id": 523, "type": "pointer_expression", "text": "&st", "parent": 516, "children": [524], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 42}}, {"id": 524, "type": "identifier", "text": "st", "parent": 523, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 42}}, {"id": 525, "type": "identifier", "text": "name", "parent": 516, "children": [], "start_point": {"row": 91, "column": 44}, "end_point": {"row": 91, "column": 48}}, {"id": 526, "type": "break_statement", "text": "break;", "parent": 510, "children": [527], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 10}}, {"id": 527, "type": "break", "text": "break", "parent": 526, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 9}}, {"id": 528, "type": "return_statement", "text": "return rlen;", "parent": 432, "children": [529], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 14}}, {"id": 529, "type": "identifier", "text": "rlen", "parent": 528, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 13}}, {"id": 530, "type": "case_statement", "text": "case MSTAT: {\n\t\tstruct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n\t\tif(len < STATMSGSIZ)\n\t\t\treturn -EINVAL;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}", "parent": 428, "children": [531, 532], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 101, "column": 2}}, {"id": 531, "type": "case", "text": "case", "parent": 530, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 5}}, {"id": 532, "type": "identifier", "text": "MSTAT", "parent": 530, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 11}}, {"id": 533, "type": "declaration", "text": "struct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };", "parent": 530, "children": [534, 537], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 62}}, {"id": 534, "type": "struct_specifier", "text": "struct stat", "parent": 533, "children": [535, 536], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 13}}, {"id": 535, "type": "struct", "text": "struct", "parent": 534, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 8}}, {"id": 536, "type": "type_identifier", "text": "stat", "parent": 534, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 13}}, {"id": 537, "type": "init_declarator", "text": "st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 }", "parent": 533, "children": [538, 539, 540], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 61}}, {"id": 538, "type": "identifier", "text": "st", "parent": 537, "children": [], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 16}}, {"id": 539, "type": "=", "text": "=", "parent": 537, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 18}}, {"id": 540, "type": "initializer_list", "text": "{ .st_ino = 0, .st_mode = S_IFDIR | 0555 }", "parent": 537, "children": [541, 546], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 61}}, {"id": 541, "type": "initializer_pair", "text": ".st_ino = 0", "parent": 540, "children": [542, 544, 545], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 32}}, {"id": 542, "type": "field_designator", "text": ".st_ino", "parent": 541, "children": [543], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 28}}, {"id": 543, "type": "field_identifier", "text": "st_ino", "parent": 542, "children": [], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 28}}, {"id": 544, "type": "=", "text": "=", "parent": 541, "children": [], "start_point": {"row": 97, "column": 29}, "end_point": {"row": 97, "column": 30}}, {"id": 545, "type": "number_literal", "text": "0", "parent": 541, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 32}}, {"id": 546, "type": "initializer_pair", "text": ".st_mode = S_IFDIR | 0555", "parent": 540, "children": [547, 549, 550], "start_point": {"row": 97, "column": 34}, "end_point": {"row": 97, "column": 59}}, {"id": 547, "type": "field_designator", "text": ".st_mode", "parent": 546, "children": [548], "start_point": {"row": 97, "column": 34}, "end_point": {"row": 97, "column": 42}}, {"id": 548, "type": "field_identifier", "text": "st_mode", "parent": 547, "children": [], "start_point": {"row": 97, "column": 35}, "end_point": {"row": 97, "column": 42}}, {"id": 549, "type": "=", "text": "=", "parent": 546, "children": [], "start_point": {"row": 97, "column": 43}, "end_point": {"row": 97, "column": 44}}, {"id": 550, "type": "binary_expression", "text": "S_IFDIR | 0555", "parent": 546, "children": [551, 552], "start_point": {"row": 97, "column": 45}, "end_point": {"row": 97, "column": 59}}, {"id": 551, "type": "identifier", "text": "S_IFDIR", "parent": 550, "children": [], "start_point": {"row": 97, "column": 45}, "end_point": {"row": 97, "column": 52}}, {"id": 552, "type": "number_literal", "text": "0555", "parent": 550, "children": [], "start_point": {"row": 97, "column": 55}, "end_point": {"row": 97, "column": 59}}, {"id": 553, "type": "if_statement", "text": "if(len < STATMSGSIZ)\n\t\t\treturn -EINVAL;", "parent": 530, "children": [554, 559], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 99, "column": 18}}, {"id": 554, "type": "parenthesized_expression", "text": "(len < STATMSGSIZ)", "parent": 553, "children": [555], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 22}}, {"id": 555, "type": "binary_expression", "text": "len < STATMSGSIZ", "parent": 554, "children": [556, 557, 558], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 21}}, {"id": 556, "type": "identifier", "text": "len", "parent": 555, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 8}}, {"id": 557, "type": "<", "text": "<", "parent": 555, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 558, "type": "identifier", "text": "STATMSGSIZ", "parent": 555, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 21}}, {"id": 559, "type": "return_statement", "text": "return -EINVAL;", "parent": 553, "children": [560], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 18}}, {"id": 560, "type": "unary_expression", "text": "-EINVAL", "parent": 559, "children": [561, 562], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 17}}, {"id": 561, "type": "-", "text": "-", "parent": 560, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 11}}, {"id": 562, "type": "identifier", "text": "EINVAL", "parent": 560, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 17}}, {"id": 563, "type": "return_statement", "text": "return YAXstat2msg(&st, buf, len);", "parent": 530, "children": [564], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 36}}, {"id": 564, "type": "call_expression", "text": "YAXstat2msg(&st, buf, len)", "parent": 563, "children": [565, 566], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 35}}, {"id": 565, "type": "identifier", "text": "YAXstat2msg", "parent": 564, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 20}}, {"id": 566, "type": "argument_list", "text": "(&st, buf, len)", "parent": 564, "children": [567, 569, 570], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 35}}, {"id": 567, "type": "pointer_expression", "text": "&st", "parent": 566, "children": [568], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 24}}, {"id": 568, "type": "identifier", "text": "st", "parent": 567, "children": [], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 24}}, {"id": 569, "type": "identifier", "text": "buf", "parent": 566, "children": [], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 29}}, {"id": 570, "type": "identifier", "text": "len", "parent": 566, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 34}}, {"id": 571, "type": "case_statement", "text": "case MWALK: {\n\t\tint n;\n\t\tconst char *path = buf;\n\t\tif(len != 1)\n\t\t\treturn -ENOENT;\n\t\tif(len2 != 8)\n\t\t\treturn -EINVAL;\n\n\t\tif('0' <= path[0] && path[0] <= '9')\n\t\t\tn = path[0] - '0';\n\t\telse if('a' <= path[0] && path[0] <= 'f')\n\t\t\tn = path[0] + 10 - 'a';\n\t\telse\n\t\t\treturn -ENOENT;\n\n\t\t((IoConn *)c)->n = n;\n\t\tPBIT64(buf2, 1 + n);\n\t\tc->dev = &idev;\n\t\treturn 0;\n\t}", "parent": 428, "children": [572, 573], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 121, "column": 2}}, {"id": 572, "type": "case", "text": "case", "parent": 571, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 5}}, {"id": 573, "type": "identifier", "text": "MWALK", "parent": 571, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 11}}, {"id": 574, "type": "declaration", "text": "int n;", "parent": 571, "children": [575, 576], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 8}}, {"id": 575, "type": "primitive_type", "text": "int", "parent": 574, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 5}}, {"id": 576, "type": "identifier", "text": "n", "parent": 574, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 7}}, {"id": 577, "type": "declaration", "text": "const char *path = buf;", "parent": 571, "children": [578, 579], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 25}}, {"id": 578, "type": "primitive_type", "text": "char", "parent": 577, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 12}}, {"id": 579, "type": "init_declarator", "text": "*path = buf", "parent": 577, "children": [580, 583, 584], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 24}}, {"id": 580, "type": "pointer_declarator", "text": "*path", "parent": 579, "children": [581, 582], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 18}}, {"id": 581, "type": "*", "text": "*", "parent": 580, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 14}}, {"id": 582, "type": "identifier", "text": "path", "parent": 580, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 18}}, {"id": 583, "type": "=", "text": "=", "parent": 579, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 20}}, {"id": 584, "type": "identifier", "text": "buf", "parent": 579, "children": [], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 24}}, {"id": 585, "type": "if_statement", "text": "if(len != 1)\n\t\t\treturn -ENOENT;", "parent": 571, "children": [586, 591], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 106, "column": 18}}, {"id": 586, "type": "parenthesized_expression", "text": "(len != 1)", "parent": 585, "children": [587], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 14}}, {"id": 587, "type": "binary_expression", "text": "len != 1", "parent": 586, "children": [588, 589, 590], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 13}}, {"id": 588, "type": "identifier", "text": "len", "parent": 587, "children": [], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 8}}, {"id": 589, "type": "!=", "text": "!=", "parent": 587, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 11}}, {"id": 590, "type": "number_literal", "text": "1", "parent": 587, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 13}}, {"id": 591, "type": "return_statement", "text": "return -ENOENT;", "parent": 585, "children": [592], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 18}}, {"id": 592, "type": "unary_expression", "text": "-ENOENT", "parent": 591, "children": [593, 594], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 17}}, {"id": 593, "type": "-", "text": "-", "parent": 592, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 11}}, {"id": 594, "type": "identifier", "text": "ENOENT", "parent": 592, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 17}}, {"id": 595, "type": "if_statement", "text": "if(len2 != 8)\n\t\t\treturn -EINVAL;", "parent": 571, "children": [596, 601], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 108, "column": 18}}, {"id": 596, "type": "parenthesized_expression", "text": "(len2 != 8)", "parent": 595, "children": [597], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 15}}, {"id": 597, "type": "binary_expression", "text": "len2 != 8", "parent": 596, "children": [598, 599, 600], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 14}}, {"id": 598, "type": "identifier", "text": "len2", "parent": 597, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 9}}, {"id": 599, "type": "!=", "text": "!=", "parent": 597, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 12}}, {"id": 600, "type": "number_literal", "text": "8", "parent": 597, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 14}}, {"id": 601, "type": "return_statement", "text": "return -EINVAL;", "parent": 595, "children": [602], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 18}}, {"id": 602, "type": "unary_expression", "text": "-EINVAL", "parent": 601, "children": [603, 604], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 17}}, {"id": 603, "type": "-", "text": "-", "parent": 602, "children": [], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 11}}, {"id": 604, "type": "identifier", "text": "EINVAL", "parent": 602, "children": [], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 17}}, {"id": 605, "type": "if_statement", "text": "if('0' <= path[0] && path[0] <= '9')\n\t\t\tn = path[0] - '0';\n\t\telse if('a' <= path[0] && path[0] <= 'f')\n\t\t\tn = path[0] + 10 - 'a';\n\t\telse\n\t\t\treturn -ENOENT;", "parent": 571, "children": [606, 639], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 115, "column": 18}}, {"id": 606, "type": "parenthesized_expression", "text": "('0' <= path[0] && path[0] <= '9')", "parent": 605, "children": [607], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 38}}, {"id": 607, "type": "binary_expression", "text": "'0' <= path[0] && path[0] <= '9'", "parent": 606, "children": [608, 617, 618], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 37}}, {"id": 608, "type": "binary_expression", "text": "'0' <= path[0]", "parent": 607, "children": [609, 613, 614], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 19}}, {"id": 609, "type": "char_literal", "text": "'0'", "parent": 608, "children": [610, 611, 612], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 8}}, {"id": 610, "type": "'", "text": "'", "parent": 609, "children": [], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 6}}, {"id": 611, "type": "character", "text": "0", "parent": 609, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 7}}, {"id": 612, "type": "'", "text": "'", "parent": 609, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 8}}, {"id": 613, "type": "<=", "text": "<=", "parent": 608, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 11}}, {"id": 614, "type": "subscript_expression", "text": "path[0]", "parent": 608, "children": [615, 616], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 19}}, {"id": 615, "type": "identifier", "text": "path", "parent": 614, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 16}}, {"id": 616, "type": "number_literal", "text": "0", "parent": 614, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 18}}, {"id": 617, "type": "&&", "text": "&&", "parent": 607, "children": [], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 22}}, {"id": 618, "type": "binary_expression", "text": "path[0] <= '9'", "parent": 607, "children": [619, 622, 623], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 37}}, {"id": 619, "type": "subscript_expression", "text": "path[0]", "parent": 618, "children": [620, 621], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 30}}, {"id": 620, "type": "identifier", "text": "path", "parent": 619, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 27}}, {"id": 621, "type": "number_literal", "text": "0", "parent": 619, "children": [], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 29}}, {"id": 622, "type": "<=", "text": "<=", "parent": 618, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 33}}, {"id": 623, "type": "char_literal", "text": "'9'", "parent": 618, "children": [624, 625, 626], "start_point": {"row": 110, "column": 34}, "end_point": {"row": 110, "column": 37}}, {"id": 624, "type": "'", "text": "'", "parent": 623, "children": [], "start_point": {"row": 110, "column": 34}, "end_point": {"row": 110, "column": 35}}, {"id": 625, "type": "character", "text": "9", "parent": 623, "children": [], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 36}}, {"id": 626, "type": "'", "text": "'", "parent": 623, "children": [], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 37}}, {"id": 627, "type": "assignment_expression", "text": "n = path[0] - '0'", "parent": 605, "children": [628, 629, 630], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 20}}, {"id": 628, "type": "identifier", "text": "n", "parent": 627, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 4}}, {"id": 629, "type": "=", "text": "=", "parent": 627, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 6}}, {"id": 630, "type": "binary_expression", "text": "path[0] - '0'", "parent": 627, "children": [631, 634, 635], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 20}}, {"id": 631, "type": "subscript_expression", "text": "path[0]", "parent": 630, "children": [632, 633], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 14}}, {"id": 632, "type": "identifier", "text": "path", "parent": 631, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 11}}, {"id": 633, "type": "number_literal", "text": "0", "parent": 631, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 13}}, {"id": 634, "type": "-", "text": "-", "parent": 630, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 16}}, {"id": 635, "type": "char_literal", "text": "'0'", "parent": 630, "children": [636, 637, 638], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 20}}, {"id": 636, "type": "'", "text": "'", "parent": 635, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 18}}, {"id": 637, "type": "character", "text": "0", "parent": 635, "children": [], "start_point": {"row": 111, "column": 18}, "end_point": {"row": 111, "column": 19}}, {"id": 638, "type": "'", "text": "'", "parent": 635, "children": [], "start_point": {"row": 111, "column": 19}, "end_point": {"row": 111, "column": 20}}, {"id": 639, "type": "else_clause", "text": "else if('a' <= path[0] && path[0] <= 'f')\n\t\t\tn = path[0] + 10 - 'a';\n\t\telse\n\t\t\treturn -ENOENT;", "parent": 605, "children": [640], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 115, "column": 18}}, {"id": 640, "type": "if_statement", "text": "if('a' <= path[0] && path[0] <= 'f')\n\t\t\tn = path[0] + 10 - 'a';\n\t\telse\n\t\t\treturn -ENOENT;", "parent": 639, "children": [641, 677], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 115, "column": 18}}, {"id": 641, "type": "parenthesized_expression", "text": "('a' <= path[0] && path[0] <= 'f')", "parent": 640, "children": [642], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 43}}, {"id": 642, "type": "binary_expression", "text": "'a' <= path[0] && path[0] <= 'f'", "parent": 641, "children": [643, 652, 653], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 42}}, {"id": 643, "type": "binary_expression", "text": "'a' <= path[0]", "parent": 642, "children": [644, 648, 649], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 24}}, {"id": 644, "type": "char_literal", "text": "'a'", "parent": 643, "children": [645, 646, 647], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 13}}, {"id": 645, "type": "'", "text": "'", "parent": 644, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 11}}, {"id": 646, "type": "character", "text": "a", "parent": 644, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 12}}, {"id": 647, "type": "'", "text": "'", "parent": 644, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 13}}, {"id": 648, "type": "<=", "text": "<=", "parent": 643, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 16}}, {"id": 649, "type": "subscript_expression", "text": "path[0]", "parent": 643, "children": [650, 651], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 24}}, {"id": 650, "type": "identifier", "text": "path", "parent": 649, "children": [], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 21}}, {"id": 651, "type": "number_literal", "text": "0", "parent": 649, "children": [], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 23}}, {"id": 652, "type": "&&", "text": "&&", "parent": 642, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 27}}, {"id": 653, "type": "binary_expression", "text": "path[0] <= 'f'", "parent": 642, "children": [654, 657, 658], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 42}}, {"id": 654, "type": "subscript_expression", "text": "path[0]", "parent": 653, "children": [655, 656], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 35}}, {"id": 655, "type": "identifier", "text": "path", "parent": 654, "children": [], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 32}}, {"id": 656, "type": "number_literal", "text": "0", "parent": 654, "children": [], "start_point": {"row": 112, "column": 33}, "end_point": {"row": 112, "column": 34}}, {"id": 657, "type": "<=", "text": "<=", "parent": 653, "children": [], "start_point": {"row": 112, "column": 36}, "end_point": {"row": 112, "column": 38}}, {"id": 658, "type": "char_literal", "text": "'f'", "parent": 653, "children": [659, 660, 661], "start_point": {"row": 112, "column": 39}, "end_point": {"row": 112, "column": 42}}, {"id": 659, "type": "'", "text": "'", "parent": 658, "children": [], "start_point": {"row": 112, "column": 39}, "end_point": {"row": 112, "column": 40}}, {"id": 660, "type": "character", "text": "f", "parent": 658, "children": [], "start_point": {"row": 112, "column": 40}, "end_point": {"row": 112, "column": 41}}, {"id": 661, "type": "'", "text": "'", "parent": 658, "children": [], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 42}}, {"id": 662, "type": "assignment_expression", "text": "n = path[0] + 10 - 'a'", "parent": 640, "children": [663, 664, 665], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 25}}, {"id": 663, "type": "identifier", "text": "n", "parent": 662, "children": [], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 4}}, {"id": 664, "type": "=", "text": "=", "parent": 662, "children": [], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 6}}, {"id": 665, "type": "binary_expression", "text": "path[0] + 10 - 'a'", "parent": 662, "children": [666, 672, 673], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 25}}, {"id": 666, "type": "binary_expression", "text": "path[0] + 10", "parent": 665, "children": [667, 670, 671], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 19}}, {"id": 667, "type": "subscript_expression", "text": "path[0]", "parent": 666, "children": [668, 669], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 14}}, {"id": 668, "type": "identifier", "text": "path", "parent": 667, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 11}}, {"id": 669, "type": "number_literal", "text": "0", "parent": 667, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 13}}, {"id": 670, "type": "+", "text": "+", "parent": 666, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 16}}, {"id": 671, "type": "number_literal", "text": "10", "parent": 666, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 19}}, {"id": 672, "type": "-", "text": "-", "parent": 665, "children": [], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 21}}, {"id": 673, "type": "char_literal", "text": "'a'", "parent": 665, "children": [674, 675, 676], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 25}}, {"id": 674, "type": "'", "text": "'", "parent": 673, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 23}}, {"id": 675, "type": "character", "text": "a", "parent": 673, "children": [], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 24}}, {"id": 676, "type": "'", "text": "'", "parent": 673, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 25}}, {"id": 677, "type": "else_clause", "text": "else\n\t\t\treturn -ENOENT;", "parent": 640, "children": [678], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 115, "column": 18}}, {"id": 678, "type": "return_statement", "text": "return -ENOENT;", "parent": 677, "children": [679], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 18}}, {"id": 679, "type": "unary_expression", "text": "-ENOENT", "parent": 678, "children": [680, 681], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 17}}, {"id": 680, "type": "-", "text": "-", "parent": 679, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 11}}, {"id": 681, "type": "identifier", "text": "ENOENT", "parent": 679, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 17}}, {"id": 682, "type": "assignment_expression", "text": "((IoConn *)c)->n = n", "parent": 571, "children": [683, 692, 693], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 22}}, {"id": 683, "type": "field_expression", "text": "((IoConn *)c)->n", "parent": 682, "children": [684, 691], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 18}}, {"id": 684, "type": "parenthesized_expression", "text": "((IoConn *)c)", "parent": 683, "children": [685], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 15}}, {"id": 685, "type": "cast_expression", "text": "(IoConn *)c", "parent": 684, "children": [686, 690], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 14}}, {"id": 686, "type": "type_descriptor", "text": "IoConn *", "parent": 685, "children": [687, 688], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 12}}, {"id": 687, "type": "type_identifier", "text": "IoConn", "parent": 686, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 10}}, {"id": 688, "type": "abstract_pointer_declarator", "text": "*", "parent": 686, "children": [689], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 12}}, {"id": 689, "type": "*", "text": "*", "parent": 688, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 12}}, {"id": 690, "type": "identifier", "text": "c", "parent": 685, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 14}}, {"id": 691, "type": "field_identifier", "text": "n", "parent": 683, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 18}}, {"id": 692, "type": "=", "text": "=", "parent": 682, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 20}}, {"id": 693, "type": "identifier", "text": "n", "parent": 682, "children": [], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 22}}, {"id": 694, "type": "call_expression", "text": "PBIT64(buf2, 1 + n)", "parent": 571, "children": [695, 696], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 21}}, {"id": 695, "type": "identifier", "text": "PBIT64", "parent": 694, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 8}}, {"id": 696, "type": "argument_list", "text": "(buf2, 1 + n)", "parent": 694, "children": [697, 698], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 21}}, {"id": 697, "type": "identifier", "text": "buf2", "parent": 696, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 13}}, {"id": 698, "type": "binary_expression", "text": "1 + n", "parent": 696, "children": [699, 700, 701], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 20}}, {"id": 699, "type": "number_literal", "text": "1", "parent": 698, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 16}}, {"id": 700, "type": "+", "text": "+", "parent": 698, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 18}}, {"id": 701, "type": "identifier", "text": "n", "parent": 698, "children": [], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 20}}, {"id": 702, "type": "assignment_expression", "text": "c->dev = &idev", "parent": 571, "children": [703, 706, 707], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 16}}, {"id": 703, "type": "field_expression", "text": "c->dev", "parent": 702, "children": [704, 705], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 8}}, {"id": 704, "type": "identifier", "text": "c", "parent": 703, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 3}}, {"id": 705, "type": "field_identifier", "text": "dev", "parent": 703, "children": [], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 8}}, {"id": 706, "type": "=", "text": "=", "parent": 702, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 10}}, {"id": 707, "type": "pointer_expression", "text": "&idev", "parent": 702, "children": [708], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 16}}, {"id": 708, "type": "identifier", "text": "idev", "parent": 707, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 16}}, {"id": 709, "type": "return_statement", "text": "return 0;", "parent": 571, "children": [710], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 11}}, {"id": 710, "type": "number_literal", "text": "0", "parent": 709, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 10}}, {"id": 711, "type": "case_statement", "text": "case MOPEN: {\n\t\tif(submsg & (O_EXCL | O_WRONLY))\n\t\t\treturn -EISDIR;\n\t\treturn 0;\n\t}", "parent": 428, "children": [712, 713], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 126, "column": 2}}, {"id": 712, "type": "case", "text": "case", "parent": 711, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 5}}, {"id": 713, "type": "identifier", "text": "MOPEN", "parent": 711, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 11}}, {"id": 714, "type": "if_statement", "text": "if(submsg & (O_EXCL | O_WRONLY))\n\t\t\treturn -EISDIR;", "parent": 711, "children": [715, 722], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 124, "column": 18}}, {"id": 715, "type": "parenthesized_expression", "text": "(submsg & (O_EXCL | O_WRONLY))", "parent": 714, "children": [716], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 34}}, {"id": 716, "type": "binary_expression", "text": "submsg & (O_EXCL | O_WRONLY)", "parent": 715, "children": [717, 718], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 33}}, {"id": 717, "type": "identifier", "text": "submsg", "parent": 716, "children": [], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 11}}, {"id": 718, "type": "parenthesized_expression", "text": "(O_EXCL | O_WRONLY)", "parent": 716, "children": [719], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 33}}, {"id": 719, "type": "binary_expression", "text": "O_EXCL | O_WRONLY", "parent": 718, "children": [720, 721], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 32}}, {"id": 720, "type": "identifier", "text": "O_EXCL", "parent": 719, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 21}}, {"id": 721, "type": "identifier", "text": "O_WRONLY", "parent": 719, "children": [], "start_point": {"row": 123, "column": 24}, "end_point": {"row": 123, "column": 32}}, {"id": 722, "type": "return_statement", "text": "return -EISDIR;", "parent": 714, "children": [723], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 18}}, {"id": 723, "type": "unary_expression", "text": "-EISDIR", "parent": 722, "children": [724, 725], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 17}}, {"id": 724, "type": "-", "text": "-", "parent": 723, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 11}}, {"id": 725, "type": "identifier", "text": "EISDIR", "parent": 723, "children": [], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 17}}, {"id": 726, "type": "return_statement", "text": "return 0;", "parent": 711, "children": [727], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 11}}, {"id": 727, "type": "number_literal", "text": "0", "parent": 726, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 10}}, {"id": 728, "type": "case_statement", "text": "default:\n\t\treturn -ENOSYS;", "parent": 428, "children": [729, 730], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 128, "column": 17}}, {"id": 729, "type": "default", "text": "default", "parent": 728, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 8}}, {"id": 730, "type": "return_statement", "text": "return -ENOSYS;", "parent": 728, "children": [731], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 17}}, {"id": 731, "type": "unary_expression", "text": "-ENOSYS", "parent": 730, "children": [732, 733], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 16}}, {"id": 732, "type": "-", "text": "-", "parent": 731, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 10}}, {"id": 733, "type": "identifier", "text": "ENOSYS", "parent": 731, "children": [], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 16}}, {"id": 734, "type": "cast_expression", "text": "(void) off", "parent": 391, "children": [735, 737], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 11}}, {"id": 735, "type": "type_descriptor", "text": "void", "parent": 734, "children": [736], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 6}}, {"id": 736, "type": "primitive_type", "text": "void", "parent": 735, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 6}}, {"id": 737, "type": "identifier", "text": "off", "parent": 734, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 11}}, {"id": 738, "type": "declaration", "text": "static Dev ddev = {\n\tdel,\n\tdup,\n\tdfn\n};", "parent": null, "children": [739, 740], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 137, "column": 2}}, {"id": 739, "type": "type_identifier", "text": "Dev", "parent": 738, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 10}}, {"id": 740, "type": "init_declarator", "text": "ddev = {\n\tdel,\n\tdup,\n\tdfn\n}", "parent": 738, "children": [741, 742, 743], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 137, "column": 1}}, {"id": 741, "type": "identifier", "text": "ddev", "parent": 740, "children": [], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 133, "column": 15}}, {"id": 742, "type": "=", "text": "=", "parent": 740, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 17}}, {"id": 743, "type": "initializer_list", "text": "{\n\tdel,\n\tdup,\n\tdfn\n}", "parent": 740, "children": [744, 745, 746], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 137, "column": 1}}, {"id": 744, "type": "identifier", "text": "del", "parent": 743, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 4}}, {"id": 745, "type": "identifier", "text": "dup", "parent": 743, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 4}}, {"id": 746, "type": "identifier", "text": "dfn", "parent": 743, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 4}}, {"id": 747, "type": "function_definition", "text": "static long long ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n\tswitch(fn) {\n\tcase MSREAD: {\n\t\tif(len < 4)\n\t\t\treturn -1;\n\t\tsemwait(&irqsem[((IoConn *)c)->n], 1);\n\t\tPBIT32(buf, 1);\n\t\treturn 4;\n\t}\n\tcase MSTAT: {\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i = ((IoConn *)c)->n;\n\t\tst.st_ino = 1 + i;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}\n\tcase MOPEN: {\n\t\tif(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n\t\t\treturn -EACCES;\n\t\t/* todo implement exclusiveness */\n\t\treturn 0;\n\t}\n\tdefault:\n\t\treturn -ENOSYS;\n\t}\n\t(void) buf2, (void) len2, (void) off;\n}", "parent": null, "children": [748, 751], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 165, "column": 1}}, {"id": 748, "type": "sized_type_specifier", "text": "long long", "parent": 747, "children": [749, 750], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 16}}, {"id": 749, "type": "long", "text": "long", "parent": 748, "children": [], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 11}}, {"id": 750, "type": "long", "text": "long", "parent": 748, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 16}}, {"id": 751, "type": "function_declarator", "text": "ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)", "parent": 747, "children": [752, 753], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 108}}, {"id": 752, "type": "identifier", "text": "ifn", "parent": 751, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 20}}, {"id": 753, "type": "parameter_list", "text": "(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)", "parent": 751, "children": [754, 759, 762, 765, 770, 773, 778, 781], "start_point": {"row": 139, "column": 20}, "end_point": {"row": 139, "column": 108}}, {"id": 754, "type": "parameter_declaration", "text": "Conn *c", "parent": 753, "children": [755, 756], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 28}}, {"id": 755, "type": "type_identifier", "text": "Conn", "parent": 754, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 25}}, {"id": 756, "type": "pointer_declarator", "text": "*c", "parent": 754, "children": [757, 758], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 28}}, {"id": 757, "type": "*", "text": "*", "parent": 756, "children": [], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 27}}, {"id": 758, "type": "identifier", "text": "c", "parent": 756, "children": [], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 28}}, {"id": 759, "type": "parameter_declaration", "text": "int fn", "parent": 753, "children": [760, 761], "start_point": {"row": 139, "column": 30}, "end_point": {"row": 139, "column": 36}}, {"id": 760, "type": "primitive_type", "text": "int", "parent": 759, "children": [], "start_point": {"row": 139, "column": 30}, "end_point": {"row": 139, "column": 33}}, {"id": 761, "type": "identifier", "text": "fn", "parent": 759, "children": [], "start_point": {"row": 139, "column": 34}, "end_point": {"row": 139, "column": 36}}, {"id": 762, "type": "parameter_declaration", "text": "int submsg", "parent": 753, "children": [763, 764], "start_point": {"row": 139, "column": 38}, "end_point": {"row": 139, "column": 48}}, {"id": 763, "type": "primitive_type", "text": "int", "parent": 762, "children": [], "start_point": {"row": 139, "column": 38}, "end_point": {"row": 139, "column": 41}}, {"id": 764, "type": "identifier", "text": "submsg", "parent": 762, "children": [], "start_point": {"row": 139, "column": 42}, "end_point": {"row": 139, "column": 48}}, {"id": 765, "type": "parameter_declaration", "text": "void *buf", "parent": 753, "children": [766, 767], "start_point": {"row": 139, "column": 50}, "end_point": {"row": 139, "column": 59}}, {"id": 766, "type": "primitive_type", "text": "void", "parent": 765, "children": [], "start_point": {"row": 139, "column": 50}, "end_point": {"row": 139, "column": 54}}, {"id": 767, "type": "pointer_declarator", "text": "*buf", "parent": 765, "children": [768, 769], "start_point": {"row": 139, "column": 55}, "end_point": {"row": 139, "column": 59}}, {"id": 768, "type": "*", "text": "*", "parent": 767, "children": [], "start_point": {"row": 139, "column": 55}, "end_point": {"row": 139, "column": 56}}, {"id": 769, "type": "identifier", "text": "buf", "parent": 767, "children": [], "start_point": {"row": 139, "column": 56}, "end_point": {"row": 139, "column": 59}}, {"id": 770, "type": "parameter_declaration", "text": "size_t len", "parent": 753, "children": [771, 772], "start_point": {"row": 139, "column": 61}, "end_point": {"row": 139, "column": 71}}, {"id": 771, "type": "primitive_type", "text": "size_t", "parent": 770, "children": [], "start_point": {"row": 139, "column": 61}, "end_point": {"row": 139, "column": 67}}, {"id": 772, "type": "identifier", "text": "len", "parent": 770, "children": [], "start_point": {"row": 139, "column": 68}, "end_point": {"row": 139, "column": 71}}, {"id": 773, "type": "parameter_declaration", "text": "void *buf2", "parent": 753, "children": [774, 775], "start_point": {"row": 139, "column": 73}, "end_point": {"row": 139, "column": 83}}, {"id": 774, "type": "primitive_type", "text": "void", "parent": 773, "children": [], "start_point": {"row": 139, "column": 73}, "end_point": {"row": 139, "column": 77}}, {"id": 775, "type": "pointer_declarator", "text": "*buf2", "parent": 773, "children": [776, 777], "start_point": {"row": 139, "column": 78}, "end_point": {"row": 139, "column": 83}}, {"id": 776, "type": "*", "text": "*", "parent": 775, "children": [], "start_point": {"row": 139, "column": 78}, "end_point": {"row": 139, "column": 79}}, {"id": 777, "type": "identifier", "text": "buf2", "parent": 775, "children": [], "start_point": {"row": 139, "column": 79}, "end_point": {"row": 139, "column": 83}}, {"id": 778, "type": "parameter_declaration", "text": "size_t len2", "parent": 753, "children": [779, 780], "start_point": {"row": 139, "column": 85}, "end_point": {"row": 139, "column": 96}}, {"id": 779, "type": "primitive_type", "text": "size_t", "parent": 778, "children": [], "start_point": {"row": 139, "column": 85}, "end_point": {"row": 139, "column": 91}}, {"id": 780, "type": "identifier", "text": "len2", "parent": 778, "children": [], "start_point": {"row": 139, "column": 92}, "end_point": {"row": 139, "column": 96}}, {"id": 781, "type": "parameter_declaration", "text": "off_t off", "parent": 753, "children": [782, 783], "start_point": {"row": 139, "column": 98}, "end_point": {"row": 139, "column": 107}}, {"id": 782, "type": "type_identifier", "text": "off_t", "parent": 781, "children": [], "start_point": {"row": 139, "column": 98}, "end_point": {"row": 139, "column": 103}}, {"id": 783, "type": "identifier", "text": "off", "parent": 781, "children": [], "start_point": {"row": 139, "column": 104}, "end_point": {"row": 139, "column": 107}}, {"id": 784, "type": "switch_statement", "text": "switch(fn) {\n\tcase MSREAD: {\n\t\tif(len < 4)\n\t\t\treturn -1;\n\t\tsemwait(&irqsem[((IoConn *)c)->n], 1);\n\t\tPBIT32(buf, 1);\n\t\treturn 4;\n\t}\n\tcase MSTAT: {\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i = ((IoConn *)c)->n;\n\t\tst.st_ino = 1 + i;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}\n\tcase MOPEN: {\n\t\tif(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n\t\t\treturn -EACCES;\n\t\t/* todo implement exclusiveness */\n\t\treturn 0;\n\t}\n\tdefault:\n\t\treturn -ENOSYS;\n\t}", "parent": 747, "children": [785, 786], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 163, "column": 2}}, {"id": 785, "type": "switch", "text": "switch", "parent": 784, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 7}}, {"id": 786, "type": "parenthesized_expression", "text": "(fn)", "parent": 784, "children": [787], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 11}}, {"id": 787, "type": "identifier", "text": "fn", "parent": 786, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 10}}, {"id": 788, "type": "case_statement", "text": "case MSREAD: {\n\t\tif(len < 4)\n\t\t\treturn -1;\n\t\tsemwait(&irqsem[((IoConn *)c)->n], 1);\n\t\tPBIT32(buf, 1);\n\t\treturn 4;\n\t}", "parent": 784, "children": [789, 790], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 148, "column": 2}}, {"id": 789, "type": "case", "text": "case", "parent": 788, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 5}}, {"id": 790, "type": "identifier", "text": "MSREAD", "parent": 788, "children": [], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 12}}, {"id": 791, "type": "if_statement", "text": "if(len < 4)\n\t\t\treturn -1;", "parent": 788, "children": [792, 797], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 144, "column": 13}}, {"id": 792, "type": "parenthesized_expression", "text": "(len < 4)", "parent": 791, "children": [793], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 13}}, {"id": 793, "type": "binary_expression", "text": "len < 4", "parent": 792, "children": [794, 795, 796], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 12}}, {"id": 794, "type": "identifier", "text": "len", "parent": 793, "children": [], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 8}}, {"id": 795, "type": "<", "text": "<", "parent": 793, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 10}}, {"id": 796, "type": "number_literal", "text": "4", "parent": 793, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 12}}, {"id": 797, "type": "return_statement", "text": "return -1;", "parent": 791, "children": [798], "start_point": {"row": 144, "column": 3}, "end_point": {"row": 144, "column": 13}}, {"id": 798, "type": "number_literal", "text": "-1", "parent": 797, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 12}}, {"id": 799, "type": "call_expression", "text": "semwait(&irqsem[((IoConn *)c)->n], 1)", "parent": 788, "children": [800, 801], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 39}}, {"id": 800, "type": "identifier", "text": "semwait", "parent": 799, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 9}}, {"id": 801, "type": "argument_list", "text": "(&irqsem[((IoConn *)c)->n], 1)", "parent": 799, "children": [802, 814], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 39}}, {"id": 802, "type": "pointer_expression", "text": "&irqsem[((IoConn *)c)->n]", "parent": 801, "children": [803], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 35}}, {"id": 803, "type": "subscript_expression", "text": "irqsem[((IoConn *)c)->n]", "parent": 802, "children": [804, 805], "start_point": {"row": 145, "column": 11}, "end_point": {"row": 145, "column": 35}}, {"id": 804, "type": "identifier", "text": "irqsem", "parent": 803, "children": [], "start_point": {"row": 145, "column": 11}, "end_point": {"row": 145, "column": 17}}, {"id": 805, "type": "field_expression", "text": "((IoConn *)c)->n", "parent": 803, "children": [806, 813], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 34}}, {"id": 806, "type": "parenthesized_expression", "text": "((IoConn *)c)", "parent": 805, "children": [807], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 31}}, {"id": 807, "type": "cast_expression", "text": "(IoConn *)c", "parent": 806, "children": [808, 812], "start_point": {"row": 145, "column": 19}, "end_point": {"row": 145, "column": 30}}, {"id": 808, "type": "type_descriptor", "text": "IoConn *", "parent": 807, "children": [809, 810], "start_point": {"row": 145, "column": 20}, "end_point": {"row": 145, "column": 28}}, {"id": 809, "type": "type_identifier", "text": "IoConn", "parent": 808, "children": [], "start_point": {"row": 145, "column": 20}, "end_point": {"row": 145, "column": 26}}, {"id": 810, "type": "abstract_pointer_declarator", "text": "*", "parent": 808, "children": [811], "start_point": {"row": 145, "column": 27}, "end_point": {"row": 145, "column": 28}}, {"id": 811, "type": "*", "text": "*", "parent": 810, "children": [], "start_point": {"row": 145, "column": 27}, "end_point": {"row": 145, "column": 28}}, {"id": 812, "type": "identifier", "text": "c", "parent": 807, "children": [], "start_point": {"row": 145, "column": 29}, "end_point": {"row": 145, "column": 30}}, {"id": 813, "type": "field_identifier", "text": "n", "parent": 805, "children": [], "start_point": {"row": 145, "column": 33}, "end_point": {"row": 145, "column": 34}}, {"id": 814, "type": "number_literal", "text": "1", "parent": 801, "children": [], "start_point": {"row": 145, "column": 37}, "end_point": {"row": 145, "column": 38}}, {"id": 815, "type": "call_expression", "text": "PBIT32(buf, 1)", "parent": 788, "children": [816, 817], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 16}}, {"id": 816, "type": "identifier", "text": "PBIT32", "parent": 815, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 8}}, {"id": 817, "type": "argument_list", "text": "(buf, 1)", "parent": 815, "children": [818, 819], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 16}}, {"id": 818, "type": "identifier", "text": "buf", "parent": 817, "children": [], "start_point": {"row": 146, "column": 9}, "end_point": {"row": 146, "column": 12}}, {"id": 819, "type": "number_literal", "text": "1", "parent": 817, "children": [], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 15}}, {"id": 820, "type": "return_statement", "text": "return 4;", "parent": 788, "children": [821], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 11}}, {"id": 821, "type": "number_literal", "text": "4", "parent": 820, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 10}}, {"id": 822, "type": "case_statement", "text": "case MSTAT: {\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i = ((IoConn *)c)->n;\n\t\tst.st_ino = 1 + i;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}", "parent": 784, "children": [823, 824], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 154, "column": 2}}, {"id": 823, "type": "case", "text": "case", "parent": 822, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 5}}, {"id": 824, "type": "identifier", "text": "MSTAT", "parent": 822, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 11}}, {"id": 825, "type": "declaration", "text": "struct stat st = { .st_mode = S_IFIFO | 0400 };", "parent": 822, "children": [826, 829], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 49}}, {"id": 826, "type": "struct_specifier", "text": "struct stat", "parent": 825, "children": [827, 828], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 13}}, {"id": 827, "type": "struct", "text": "struct", "parent": 826, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 8}}, {"id": 828, "type": "type_identifier", "text": "stat", "parent": 826, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 13}}, {"id": 829, "type": "init_declarator", "text": "st = { .st_mode = S_IFIFO | 0400 }", "parent": 825, "children": [830, 831, 832], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 48}}, {"id": 830, "type": "identifier", "text": "st", "parent": 829, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 16}}, {"id": 831, "type": "=", "text": "=", "parent": 829, "children": [], "start_point": {"row": 150, "column": 17}, "end_point": {"row": 150, "column": 18}}, {"id": 832, "type": "initializer_list", "text": "{ .st_mode = S_IFIFO | 0400 }", "parent": 829, "children": [833], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 48}}, {"id": 833, "type": "initializer_pair", "text": ".st_mode = S_IFIFO | 0400", "parent": 832, "children": [834, 836, 837], "start_point": {"row": 150, "column": 21}, "end_point": {"row": 150, "column": 46}}, {"id": 834, "type": "field_designator", "text": ".st_mode", "parent": 833, "children": [835], "start_point": {"row": 150, "column": 21}, "end_point": {"row": 150, "column": 29}}, {"id": 835, "type": "field_identifier", "text": "st_mode", "parent": 834, "children": [], "start_point": {"row": 150, "column": 22}, "end_point": {"row": 150, "column": 29}}, {"id": 836, "type": "=", "text": "=", "parent": 833, "children": [], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 31}}, {"id": 837, "type": "binary_expression", "text": "S_IFIFO | 0400", "parent": 833, "children": [838, 839], "start_point": {"row": 150, "column": 32}, "end_point": {"row": 150, "column": 46}}, {"id": 838, "type": "identifier", "text": "S_IFIFO", "parent": 837, "children": [], "start_point": {"row": 150, "column": 32}, "end_point": {"row": 150, "column": 39}}, {"id": 839, "type": "number_literal", "text": "0400", "parent": 837, "children": [], "start_point": {"row": 150, "column": 42}, "end_point": {"row": 150, "column": 46}}, {"id": 840, "type": "declaration", "text": "int i = ((IoConn *)c)->n;", "parent": 822, "children": [841, 842], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 27}}, {"id": 841, "type": "primitive_type", "text": "int", "parent": 840, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 5}}, {"id": 842, "type": "init_declarator", "text": "i = ((IoConn *)c)->n", "parent": 840, "children": [843, 844, 845], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 26}}, {"id": 843, "type": "identifier", "text": "i", "parent": 842, "children": [], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 7}}, {"id": 844, "type": "=", "text": "=", "parent": 842, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 9}}, {"id": 845, "type": "field_expression", "text": "((IoConn *)c)->n", "parent": 842, "children": [846, 853], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 26}}, {"id": 846, "type": "parenthesized_expression", "text": "((IoConn *)c)", "parent": 845, "children": [847], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 23}}, {"id": 847, "type": "cast_expression", "text": "(IoConn *)c", "parent": 846, "children": [848, 852], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 22}}, {"id": 848, "type": "type_descriptor", "text": "IoConn *", "parent": 847, "children": [849, 850], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 20}}, {"id": 849, "type": "type_identifier", "text": "IoConn", "parent": 848, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 18}}, {"id": 850, "type": "abstract_pointer_declarator", "text": "*", "parent": 848, "children": [851], "start_point": {"row": 151, "column": 19}, "end_point": {"row": 151, "column": 20}}, {"id": 851, "type": "*", "text": "*", "parent": 850, "children": [], "start_point": {"row": 151, "column": 19}, "end_point": {"row": 151, "column": 20}}, {"id": 852, "type": "identifier", "text": "c", "parent": 847, "children": [], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 22}}, {"id": 853, "type": "field_identifier", "text": "n", "parent": 845, "children": [], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 26}}, {"id": 854, "type": "assignment_expression", "text": "st.st_ino = 1 + i", "parent": 822, "children": [855, 858, 859], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 19}}, {"id": 855, "type": "field_expression", "text": "st.st_ino", "parent": 854, "children": [856, 857], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 11}}, {"id": 856, "type": "identifier", "text": "st", "parent": 855, "children": [], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 4}}, {"id": 857, "type": "field_identifier", "text": "st_ino", "parent": 855, "children": [], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 11}}, {"id": 858, "type": "=", "text": "=", "parent": 854, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 13}}, {"id": 859, "type": "binary_expression", "text": "1 + i", "parent": 854, "children": [860, 861, 862], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 19}}, {"id": 860, "type": "number_literal", "text": "1", "parent": 859, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 15}}, {"id": 861, "type": "+", "text": "+", "parent": 859, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 17}}, {"id": 862, "type": "identifier", "text": "i", "parent": 859, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 19}}, {"id": 863, "type": "return_statement", "text": "return YAXstat2msg(&st, buf, len);", "parent": 822, "children": [864], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 36}}, {"id": 864, "type": "call_expression", "text": "YAXstat2msg(&st, buf, len)", "parent": 863, "children": [865, 866], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 35}}, {"id": 865, "type": "identifier", "text": "YAXstat2msg", "parent": 864, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 20}}, {"id": 866, "type": "argument_list", "text": "(&st, buf, len)", "parent": 864, "children": [867, 869, 870], "start_point": {"row": 153, "column": 20}, "end_point": {"row": 153, "column": 35}}, {"id": 867, "type": "pointer_expression", "text": "&st", "parent": 866, "children": [868], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 24}}, {"id": 868, "type": "identifier", "text": "st", "parent": 867, "children": [], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 24}}, {"id": 869, "type": "identifier", "text": "buf", "parent": 866, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 29}}, {"id": 870, "type": "identifier", "text": "len", "parent": 866, "children": [], "start_point": {"row": 153, "column": 31}, "end_point": {"row": 153, "column": 34}}, {"id": 871, "type": "case_statement", "text": "case MOPEN: {\n\t\tif(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n\t\t\treturn -EACCES;\n\t\t/* todo implement exclusiveness */\n\t\treturn 0;\n\t}", "parent": 784, "children": [872, 873], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 160, "column": 2}}, {"id": 872, "type": "case", "text": "case", "parent": 871, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 5}}, {"id": 873, "type": "identifier", "text": "MOPEN", "parent": 871, "children": [], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 11}}, {"id": 874, "type": "if_statement", "text": "if(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n\t\t\treturn -EACCES;", "parent": 871, "children": [875, 884], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 157, "column": 18}}, {"id": 875, "type": "parenthesized_expression", "text": "(submsg & (O_EXCL | O_TRUNC | O_WRONLY))", "parent": 874, "children": [876], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 44}}, {"id": 876, "type": "binary_expression", "text": "submsg & (O_EXCL | O_TRUNC | O_WRONLY)", "parent": 875, "children": [877, 878], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 43}}, {"id": 877, "type": "identifier", "text": "submsg", "parent": 876, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 11}}, {"id": 878, "type": "parenthesized_expression", "text": "(O_EXCL | O_TRUNC | O_WRONLY)", "parent": 876, "children": [879], "start_point": {"row": 156, "column": 14}, "end_point": {"row": 156, "column": 43}}, {"id": 879, "type": "binary_expression", "text": "O_EXCL | O_TRUNC | O_WRONLY", "parent": 878, "children": [880, 883], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 42}}, {"id": 880, "type": "binary_expression", "text": "O_EXCL | O_TRUNC", "parent": 879, "children": [881, 882], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 31}}, {"id": 881, "type": "identifier", "text": "O_EXCL", "parent": 880, "children": [], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 21}}, {"id": 882, "type": "identifier", "text": "O_TRUNC", "parent": 880, "children": [], "start_point": {"row": 156, "column": 24}, "end_point": {"row": 156, "column": 31}}, {"id": 883, "type": "identifier", "text": "O_WRONLY", "parent": 879, "children": [], "start_point": {"row": 156, "column": 34}, "end_point": {"row": 156, "column": 42}}, {"id": 884, "type": "return_statement", "text": "return -EACCES;", "parent": 874, "children": [885], "start_point": {"row": 157, "column": 3}, "end_point": {"row": 157, "column": 18}}, {"id": 885, "type": "unary_expression", "text": "-EACCES", "parent": 884, "children": [886, 887], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 17}}, {"id": 886, "type": "-", "text": "-", "parent": 885, "children": [], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 11}}, {"id": 887, "type": "identifier", "text": "EACCES", "parent": 885, "children": [], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 17}}, {"id": 888, "type": "return_statement", "text": "return 0;", "parent": 871, "children": [889], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 11}}, {"id": 889, "type": "number_literal", "text": "0", "parent": 888, "children": [], "start_point": {"row": 159, "column": 9}, "end_point": {"row": 159, "column": 10}}, {"id": 890, "type": "case_statement", "text": "default:\n\t\treturn -ENOSYS;", "parent": 784, "children": [891, 892], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 162, "column": 17}}, {"id": 891, "type": "default", "text": "default", "parent": 890, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 8}}, {"id": 892, "type": "return_statement", "text": "return -ENOSYS;", "parent": 890, "children": [893], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 17}}, {"id": 893, "type": "unary_expression", "text": "-ENOSYS", "parent": 892, "children": [894, 895], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 16}}, {"id": 894, "type": "-", "text": "-", "parent": 893, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 10}}, {"id": 895, "type": "identifier", "text": "ENOSYS", "parent": 893, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 16}}, {"id": 896, "type": "comma_expression", "text": "(void) buf2, (void) len2, (void) off", "parent": 747, "children": [897, 901], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 37}}, {"id": 897, "type": "cast_expression", "text": "(void) buf2", "parent": 896, "children": [898, 900], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 12}}, {"id": 898, "type": "type_descriptor", "text": "void", "parent": 897, "children": [899], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 6}}, {"id": 899, "type": "primitive_type", "text": "void", "parent": 898, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 6}}, {"id": 900, "type": "identifier", "text": "buf2", "parent": 897, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 12}}, {"id": 901, "type": "comma_expression", "text": "(void) len2, (void) off", "parent": 896, "children": [902, 906], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 37}}, {"id": 902, "type": "cast_expression", "text": "(void) len2", "parent": 901, "children": [903, 905], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 25}}, {"id": 903, "type": "type_descriptor", "text": "void", "parent": 902, "children": [904], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 19}}, {"id": 904, "type": "primitive_type", "text": "void", "parent": 903, "children": [], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 19}}, {"id": 905, "type": "identifier", "text": "len2", "parent": 902, "children": [], "start_point": {"row": 164, "column": 21}, "end_point": {"row": 164, "column": 25}}, {"id": 906, "type": "cast_expression", "text": "(void) off", "parent": 901, "children": [907, 909], "start_point": {"row": 164, "column": 27}, "end_point": {"row": 164, "column": 37}}, {"id": 907, "type": "type_descriptor", "text": "void", "parent": 906, "children": [908], "start_point": {"row": 164, "column": 28}, "end_point": {"row": 164, "column": 32}}, {"id": 908, "type": "primitive_type", "text": "void", "parent": 907, "children": [], "start_point": {"row": 164, "column": 28}, "end_point": {"row": 164, "column": 32}}, {"id": 909, "type": "identifier", "text": "off", "parent": 906, "children": [], "start_point": {"row": 164, "column": 34}, "end_point": {"row": 164, "column": 37}}, {"id": 910, "type": "declaration", "text": "static Dev idev = {\n\tdel,\n\tdup,\n\tifn\n};", "parent": null, "children": [911, 912], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 171, "column": 2}}, {"id": 911, "type": "type_identifier", "text": "Dev", "parent": 910, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 10}}, {"id": 912, "type": "init_declarator", "text": "idev = {\n\tdel,\n\tdup,\n\tifn\n}", "parent": 910, "children": [913, 914, 915], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 171, "column": 1}}, {"id": 913, "type": "identifier", "text": "idev", "parent": 912, "children": [], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 15}}, {"id": 914, "type": "=", "text": "=", "parent": 912, "children": [], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 17}}, {"id": 915, "type": "initializer_list", "text": "{\n\tdel,\n\tdup,\n\tifn\n}", "parent": 912, "children": [916, 917, 918], "start_point": {"row": 167, "column": 18}, "end_point": {"row": 171, "column": 1}}, {"id": 916, "type": "identifier", "text": "del", "parent": 915, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 4}}, {"id": 917, "type": "identifier", "text": "dup", "parent": 915, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 4}}, {"id": 918, "type": "identifier", "text": "ifn", "parent": 915, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 4}}]}, "node_categories": {"declarations": {"functions": [64, 66, 105, 109, 166, 168, 180, 184, 225, 227, 391, 395, 747, 751], "variables": [48, 52, 55, 59, 69, 99, 102, 112, 114, 133, 171, 187, 192, 230, 235, 242, 247, 254, 259, 268, 398, 403, 406, 409, 414, 417, 422, 425, 435, 441, 446, 461, 533, 574, 577, 738, 754, 759, 762, 765, 770, 773, 778, 781, 825, 840, 910], "classes": [50, 51, 248, 249, 447, 448, 534, 535, 826, 827], "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], "modules": [], "enums": []}, "statements": {"expressions": [72, 76, 80, 87, 90, 91, 95, 121, 125, 126, 127, 128, 140, 145, 148, 156, 160, 176, 199, 203, 204, 205, 208, 213, 214, 215, 219, 264, 273, 274, 275, 284, 285, 288, 293, 296, 301, 303, 313, 317, 320, 324, 326, 336, 339, 344, 346, 356, 359, 365, 367, 378, 384, 430, 458, 465, 477, 478, 479, 486, 490, 494, 498, 503, 507, 511, 512, 514, 517, 519, 521, 523, 550, 554, 555, 560, 564, 567, 586, 587, 592, 596, 597, 602, 606, 607, 608, 614, 618, 619, 630, 631, 641, 642, 643, 649, 653, 654, 665, 666, 667, 679, 683, 684, 685, 694, 698, 703, 707, 715, 716, 718, 719, 723, 731, 734, 786, 792, 793, 799, 802, 803, 805, 806, 807, 815, 837, 845, 846, 847, 855, 859, 864, 867, 875, 876, 878, 879, 880, 885, 893, 896, 897, 901, 902, 906], "assignments": [300, 323, 343, 364, 377, 383, 464, 474, 493, 502, 627, 662, 682, 702, 854], "loops": [473], "conditionals": [2, 5, 53, 54, 57, 58, 60, 62, 67, 71, 73, 77, 79, 81, 88, 92, 93, 96, 98, 100, 101, 103, 104, 106, 110, 115, 119, 122, 130, 138, 141, 146, 150, 153, 154, 157, 158, 162, 165, 169, 172, 175, 177, 179, 181, 185, 188, 191, 193, 197, 200, 207, 209, 211, 212, 217, 221, 224, 228, 234, 241, 246, 250, 253, 258, 262, 265, 267, 271, 278, 282, 283, 286, 290, 294, 298, 299, 310, 314, 316, 319, 322, 333, 335, 337, 341, 342, 353, 357, 361, 362, 363, 374, 376, 380, 382, 386, 388, 392, 396, 399, 402, 405, 408, 413, 416, 421, 424, 426, 427, 428, 429, 431, 432, 433, 434, 438, 444, 449, 451, 456, 459, 463, 466, 475, 481, 484, 485, 487, 491, 495, 496, 501, 504, 509, 510, 515, 518, 520, 522, 524, 525, 529, 530, 531, 532, 536, 538, 543, 548, 551, 553, 556, 558, 562, 565, 568, 569, 570, 571, 572, 573, 576, 582, 584, 585, 588, 594, 595, 598, 604, 605, 615, 620, 628, 632, 640, 650, 655, 663, 668, 681, 687, 690, 691, 693, 695, 697, 701, 704, 705, 708, 711, 712, 713, 714, 717, 720, 721, 725, 728, 733, 737, 739, 741, 744, 745, 746, 748, 752, 755, 758, 761, 764, 769, 772, 777, 780, 782, 783, 784, 785, 787, 788, 789, 790, 791, 794, 800, 804, 809, 812, 813, 816, 818, 822, 823, 824, 828, 830, 835, 838, 843, 849, 852, 853, 856, 857, 862, 865, 868, 869, 870, 871, 872, 873, 874, 877, 881, 882, 883, 887, 890, 895, 900, 905, 909, 911, 913, 916, 917, 918], "returns": [159, 218, 291, 389, 528, 559, 563, 591, 601, 678, 709, 722, 726, 730, 797, 820, 863, 884, 888, 892], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 63, 75, 83, 94, 124, 132, 143, 144, 155, 202, 276, 280, 292, 312, 355, 390, 440, 445, 460, 467, 469, 489, 499, 505, 508, 545, 552, 590, 600, 609, 616, 621, 623, 633, 635, 644, 651, 656, 658, 669, 671, 673, 699, 710, 727, 796, 798, 814, 819, 821, 839, 860, 889], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [455, 542, 547, 834]}}, "cross_language_map": {"function_declarations": [{"node_id": 64, "universal_type": "function", "name": "iofsinterrupt", "text_snippet": "void iofsinterrupt(int n)\n{\n\tprintk(\"Interrupt \");\n\tiprintk(n);\n\tcprintk('\\n');\n\tsemsignal(&irqsem[n"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "iofsinterrupt(int n)"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "Conn *iofsnew(void)\n{\n\tIoConn *rd = calloc(1, sizeof(*rd) + 1);\n\tchar *name = calloc(1, 1);\n\tconnini"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "iofsnew(void)"}, {"node_id": 166, "universal_type": "function", "name": "del", "text_snippet": "static void del(Conn *c)\n{\n\tfree(c);\n}"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "del(Conn *c)"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "static Conn *dup(Conn *c)\n{\n\tIoConn *d = calloc(1, sizeof(*d));\n\tmemcpy(d, c, sizeof(*d));\n\treturn ("}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "dup(Conn *c)"}, {"node_id": 225, "universal_type": "function", "name": "**buf,", "text_snippet": "static ssize_t dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const"}, {"node_id": 227, "universal_type": "function", "name": "**buf,", "text_snippet": "dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)"}, {"node_id": 391, "universal_type": "function", "name": "fn,", "text_snippet": "static long long dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, of"}, {"node_id": 395, "universal_type": "function", "name": "fn,", "text_snippet": "dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)"}, {"node_id": 747, "universal_type": "function", "name": "fn,", "text_snippet": "static long long ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, of"}, {"node_id": 751, "universal_type": "function", "name": "fn,", "text_snippet": "ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)"}], "class_declarations": [{"node_id": 50, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\tConn c;\n\tint n;\n}"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 248, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 249, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 447, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 448, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 534, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 535, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 826, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 827, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <string.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <sys/stat.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <sys/types.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <codas/bit.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <yax/errorcodes.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <yax/lock.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <yax/openflags.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"fs/conn.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"fs/iofs.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"mem/malloc.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"multitask.h\"\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"pic.h\"\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include \"port.h\"\n"}, {"node_id": 43, "text": "#include"}, {"node_id": 45, "text": "#include \"printk.h\"\n"}, {"node_id": 46, "text": "#include"}]}, "original_source_code": "#define __YAX__\n#define NDEBUG\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <codas/bit.h>\n#include <yax/errorcodes.h>\n#include <yax/lock.h>\n#include <yax/openflags.h>\n#include \"fs/conn.h\"\n#include \"fs/iofs.h\"\n#include \"mem/malloc.h\"\n#include \"multitask.h\"\n#include \"pic.h\"\n#include \"port.h\"\n#include \"printk.h\"\n\ntypedef struct {\n\tConn c;\n\tint n;\n} IoConn;\n\nstatic Sem irqsem[16];\n\nvoid iofsinterrupt(int n)\n{\n\tprintk(\"Interrupt \");\n\tiprintk(n);\n\tcprintk('\\n');\n\tsemsignal(&irqsem[n], 1);\n\tpiceoi(n);\n}\n\nstatic Dev ddev;\nstatic Dev idev;\n\nConn *iofsnew(void)\n{\n\tIoConn *rd = calloc(1, sizeof(*rd) + 1);\n\tchar *name = calloc(1, 1);\n\tconninit((Conn *)rd, name, 0, &ddev, rd);\n\treturn (Conn *) rd;\n}\n\nstatic void del(Conn *c)\n{\n\tfree(c);\n}\n\nstatic Conn *dup(Conn *c)\n{\n\tIoConn *d = calloc(1, sizeof(*d));\n\tmemcpy(d, c, sizeof(*d));\n\treturn (Conn *) d;\n}\n\nstatic ssize_t dirpreadelem(size_t *rlen, void **buf, size_t *len, struct stat const *st, char const *name)\n{\n\tsize_t nlen = strlen(name);\n\tsize_t clen = 2 + STATMSGSIZ + 2 + nlen;\n\n\tif(clen > *len)\n\t\treturn 0; /* stop */\n\n\tPBIT16(*buf, clen);\n\t*(char **)buf += 2;\n\tYAXstat2msg(st, *buf, *len);\n\t*(char **)buf += STATMSGSIZ;\n\tPBIT16(*buf, nlen);\n\t*(char **)buf += 2;\n\tmemcpy(*buf, name, nlen);\n\t*(char **)buf += nlen;\n\n\t*rlen += clen;\n\t*len -= clen;\n\n\treturn 1; /* continue */\n}\n\nstatic long long dfn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n\tswitch(fn) {\n\tcase MSREAD: {\n\t\tsize_t rlen = 0;\n\t\tchar name[2];\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i;\n\t\tname[1] = '\\0';\n\t\tfor(i = ((IoConn *)c)->n; i < 0x10; i++) {\n\t\t\tst.st_ino = 1 + i;\n\t\t\tname[0] = \"0123456789abcdef\"[i];\n\t\t\tif(!dirpreadelem(&rlen, &buf, &len, &st, name))\n\t\t\t\tbreak;\n\t\t}\n\t\treturn rlen;\n\t}\n\tcase MSTAT: {\n\t\tstruct stat st = { .st_ino = 0, .st_mode = S_IFDIR | 0555 };\n\t\tif(len < STATMSGSIZ)\n\t\t\treturn -EINVAL;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}\n\tcase MWALK: {\n\t\tint n;\n\t\tconst char *path = buf;\n\t\tif(len != 1)\n\t\t\treturn -ENOENT;\n\t\tif(len2 != 8)\n\t\t\treturn -EINVAL;\n\n\t\tif('0' <= path[0] && path[0] <= '9')\n\t\t\tn = path[0] - '0';\n\t\telse if('a' <= path[0] && path[0] <= 'f')\n\t\t\tn = path[0] + 10 - 'a';\n\t\telse\n\t\t\treturn -ENOENT;\n\n\t\t((IoConn *)c)->n = n;\n\t\tPBIT64(buf2, 1 + n);\n\t\tc->dev = &idev;\n\t\treturn 0;\n\t}\n\tcase MOPEN: {\n\t\tif(submsg & (O_EXCL | O_WRONLY))\n\t\t\treturn -EISDIR;\n\t\treturn 0;\n\t}\n\tdefault:\n\t\treturn -ENOSYS;\n\t}\n\t(void) off;\n}\n\nstatic Dev ddev = {\n\tdel,\n\tdup,\n\tdfn\n};\n\nstatic long long ifn(Conn *c, int fn, int submsg, void *buf, size_t len, void *buf2, size_t len2, off_t off)\n{\n\tswitch(fn) {\n\tcase MSREAD: {\n\t\tif(len < 4)\n\t\t\treturn -1;\n\t\tsemwait(&irqsem[((IoConn *)c)->n], 1);\n\t\tPBIT32(buf, 1);\n\t\treturn 4;\n\t}\n\tcase MSTAT: {\n\t\tstruct stat st = { .st_mode = S_IFIFO | 0400 };\n\t\tint i = ((IoConn *)c)->n;\n\t\tst.st_ino = 1 + i;\n\t\treturn YAXstat2msg(&st, buf, len);\n\t}\n\tcase MOPEN: {\n\t\tif(submsg & (O_EXCL | O_TRUNC | O_WRONLY))\n\t\t\treturn -EACCES;\n\t\t/* todo implement exclusiveness */\n\t\treturn 0;\n\t}\n\tdefault:\n\t\treturn -ENOSYS;\n\t}\n\t(void) buf2, (void) len2, (void) off;\n}\n\nstatic Dev idev = {\n\tdel,\n\tdup,\n\tifn\n};\n\n"}
80,475
c
// Dynalib IO interface // Author: <NAME> <<EMAIL>> #ifndef DYNALIB_IO_H #define DYNALIB_IO_H #include "return_code.h" #include <stdint.h> namespace dynalib { class IO { public: virtual ~IO(); virtual void reset(); virtual ReturnCode startTransmit(); virtual bool writeByte(uint8_t data) = 0; virtual bool writeSegment(uint8_t* data, uint8_t size) = 0; virtual bool write(const uint8_t* data, uint8_t size) = 0; virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0; }; } #endif
22.71
21
(translation_unit) "// Dynalib IO interface\n// Author: <NAME> <<EMAIL>>\n\n#ifndef DYNALIB_IO_H\n#define DYNALIB_IO_H\n\n#include "return_code.h"\n\n#include <stdint.h>\n\nnamespace dynalib\n{\n\nclass IO\n{\npublic:\n virtual ~IO();\n\n virtual void reset();\n virtual ReturnCode startTransmit();\n\n virtual bool writeByte(uint8_t data) = 0;\n virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n virtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n};\n\n}\n\n#endif\n" (comment) "// Dynalib IO interface" (comment) "// Author: <NAME> <<EMAIL>>" (preproc_ifdef) "#ifndef DYNALIB_IO_H\n#define DYNALIB_IO_H\n\n#include "return_code.h"\n\n#include <stdint.h>\n\nnamespace dynalib\n{\n\nclass IO\n{\npublic:\n virtual ~IO();\n\n virtual void reset();\n virtual ReturnCode startTransmit();\n\n virtual bool writeByte(uint8_t data) = 0;\n virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n virtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n};\n\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "DYNALIB_IO_H" (preproc_def) "#define DYNALIB_IO_H\n" (#define) "#define" (identifier) "DYNALIB_IO_H" (preproc_include) "#include "return_code.h"\n" (#include) "#include" (string_literal) ""return_code.h"" (") """ (string_content) "return_code.h" (") """ (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (function_definition) "namespace dynalib\n{\n\nclass IO\n{\npublic:\n virtual ~IO();\n\n virtual void reset();\n virtual ReturnCode startTransmit();\n\n virtual bool writeByte(uint8_t data) = 0;\n virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n virtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n};\n\n}" (type_identifier) "namespace" (identifier) "dynalib" (compound_statement) "{\n\nclass IO\n{\npublic:\n virtual ~IO();\n\n virtual void reset();\n virtual ReturnCode startTransmit();\n\n virtual bool writeByte(uint8_t data) = 0;\n virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n virtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n};\n\n}" ({) "{" (function_definition) "class IO\n{\npublic:\n virtual ~IO();\n\n virtual void reset();\n virtual ReturnCode startTransmit();\n\n virtual bool writeByte(uint8_t data) = 0;\n virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n virtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n}" (type_identifier) "class" (identifier) "IO" (compound_statement) "{\npublic:\n virtual ~IO();\n\n virtual void reset();\n virtual ReturnCode startTransmit();\n\n virtual bool writeByte(uint8_t data) = 0;\n virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n virtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n}" ({) "{" (labeled_statement) "public:\n virtual ~IO();" (statement_identifier) "public" (:) ":" (declaration) "virtual ~IO();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "IO()" (identifier) "IO" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void reset();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "reset()" (identifier) "reset" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ReturnCode startTransmit();" (type_identifier) "virtual" (ERROR) "ReturnCode" (identifier) "ReturnCode" (function_declarator) "startTransmit()" (identifier) "startTransmit" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool writeByte(uint8_t data) = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "writeByte(uint8_t data) = 0" (function_declarator) "writeByte(uint8_t data)" (identifier) "writeByte" (parameter_list) "(uint8_t data)" (() "(" (parameter_declaration) "uint8_t data" (primitive_type) "uint8_t" (identifier) "data" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "writeSegment(uint8_t* data, uint8_t size) = 0" (function_declarator) "writeSegment(uint8_t* data, uint8_t size)" (identifier) "writeSegment" (parameter_list) "(uint8_t* data, uint8_t size)" (() "(" (parameter_declaration) "uint8_t* data" (primitive_type) "uint8_t" (pointer_declarator) "* data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "uint8_t size" (primitive_type) "uint8_t" (identifier) "size" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual bool write(const uint8_t* data, uint8_t size) = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "write(const uint8_t* data, uint8_t size) = 0" (function_declarator) "write(const uint8_t* data, uint8_t size)" (identifier) "write" (parameter_list) "(const uint8_t* data, uint8_t size)" (() "(" (parameter_declaration) "const uint8_t* data" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (pointer_declarator) "* data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "uint8_t size" (primitive_type) "uint8_t" (identifier) "size" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;" (type_identifier) "virtual" (ERROR) "ReturnCode" (identifier) "ReturnCode" (init_declarator) "readByte(uint8_t* dest, uint16_t* timeout) = 0" (function_declarator) "readByte(uint8_t* dest, uint16_t* timeout)" (identifier) "readByte" (parameter_list) "(uint8_t* dest, uint16_t* timeout)" (() "(" (parameter_declaration) "uint8_t* dest" (primitive_type) "uint8_t" (pointer_declarator) "* dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "uint16_t* timeout" (primitive_type) "uint16_t" (pointer_declarator) "* timeout" (*) "*" (identifier) "timeout" ()) ")" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif"
152
7
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 22.71, "nodes": 109, "errors": 0, "source_hash": "d1456b64be60bad5a28dcdd9bf19afd77de21a36494e7f7c969c67cc1832a1ec", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DYNALIB_IO_H\n#define DYNALIB_IO_H\n\n#include \"return_code.h\"\n\n#include <stdint.h>\n\nnamespace dynalib\n{\n\nclass IO\n{\npublic:\n\tvirtual ~IO();\n\n\tvirtual void reset();\n\tvirtual ReturnCode startTransmit();\n\n\tvirtual bool writeByte(uint8_t data) = 0;\n\tvirtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n\tvirtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n\tvirtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n};\n\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 108], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "identifier", "text": "DYNALIB_IO_H", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define DYNALIB_IO_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 5, "type": "identifier", "text": "DYNALIB_IO_H", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"return_code.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"return_code.h\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include <stdint.h>\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": "<stdint.h>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 12, "type": "function_definition", "text": "namespace dynalib\n{\n\nclass IO\n{\npublic:\n\tvirtual ~IO();\n\n\tvirtual void reset();\n\tvirtual ReturnCode startTransmit();\n\n\tvirtual bool writeByte(uint8_t data) = 0;\n\tvirtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n\tvirtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n\tvirtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n};\n\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 14, "type": "identifier", "text": "dynalib", "parent": 12, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 17}}, {"id": 15, "type": "function_definition", "text": "class IO\n{\npublic:\n\tvirtual ~IO();\n\n\tvirtual void reset();\n\tvirtual ReturnCode startTransmit();\n\n\tvirtual bool writeByte(uint8_t data) = 0;\n\tvirtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n\tvirtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n\tvirtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n}", "parent": 12, "children": [16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 16, "type": "identifier", "text": "IO", "parent": 15, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 8}}, {"id": 17, "type": "labeled_statement", "text": "public:\n\tvirtual ~IO();", "parent": 15, "children": [18], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 15}}, {"id": 18, "type": "declaration", "text": "virtual ~IO();", "parent": 17, "children": [19, 20, 22], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 15}}, {"id": 19, "type": "type_identifier", "text": "virtual", "parent": 18, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 20, "type": "ERROR", "text": "~", "parent": 18, "children": [21], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 21, "type": "~", "text": "~", "parent": 20, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 22, "type": "function_declarator", "text": "IO()", "parent": 18, "children": [23, 24], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 23, "type": "identifier", "text": "IO", "parent": 22, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 12}}, {"id": 24, "type": "parameter_list", "text": "()", "parent": 22, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 14}}, {"id": 25, "type": "declaration", "text": "virtual void reset();", "parent": 15, "children": [26, 27, 29], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 22}}, {"id": 26, "type": "type_identifier", "text": "virtual", "parent": 25, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 8}}, {"id": 27, "type": "ERROR", "text": "void", "parent": 25, "children": [28], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 28, "type": "identifier", "text": "void", "parent": 27, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 29, "type": "function_declarator", "text": "reset()", "parent": 25, "children": [30, 31], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 21}}, {"id": 30, "type": "identifier", "text": "reset", "parent": 29, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 19}}, {"id": 31, "type": "parameter_list", "text": "()", "parent": 29, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 21}}, {"id": 32, "type": "declaration", "text": "virtual ReturnCode startTransmit();", "parent": 15, "children": [33, 34, 36], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 36}}, {"id": 33, "type": "type_identifier", "text": "virtual", "parent": 32, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 34, "type": "ERROR", "text": "ReturnCode", "parent": 32, "children": [35], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 19}}, {"id": 35, "type": "identifier", "text": "ReturnCode", "parent": 34, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 19}}, {"id": 36, "type": "function_declarator", "text": "startTransmit()", "parent": 32, "children": [37, 38], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 35}}, {"id": 37, "type": "identifier", "text": "startTransmit", "parent": 36, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 33}}, {"id": 38, "type": "parameter_list", "text": "()", "parent": 36, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 35}}, {"id": 39, "type": "declaration", "text": "virtual bool writeByte(uint8_t data) = 0;", "parent": 15, "children": [40, 41, 43], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 42}}, {"id": 40, "type": "type_identifier", "text": "virtual", "parent": 39, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 8}}, {"id": 41, "type": "ERROR", "text": "bool", "parent": 39, "children": [42], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 42, "type": "identifier", "text": "bool", "parent": 41, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 43, "type": "init_declarator", "text": "writeByte(uint8_t data) = 0", "parent": 39, "children": [44, 50, 51], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 41}}, {"id": 44, "type": "function_declarator", "text": "writeByte(uint8_t data)", "parent": 43, "children": [45, 46], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 37}}, {"id": 45, "type": "identifier", "text": "writeByte", "parent": 44, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 23}}, {"id": 46, "type": "parameter_list", "text": "(uint8_t data)", "parent": 44, "children": [47], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 37}}, {"id": 47, "type": "parameter_declaration", "text": "uint8_t data", "parent": 46, "children": [48, 49], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 36}}, {"id": 48, "type": "primitive_type", "text": "uint8_t", "parent": 47, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 31}}, {"id": 49, "type": "identifier", "text": "data", "parent": 47, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 36}}, {"id": 50, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 39}}, {"id": 51, "type": "number_literal", "text": "0", "parent": 43, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 41}}, {"id": 52, "type": "declaration", "text": "virtual bool writeSegment(uint8_t* data, uint8_t size) = 0;", "parent": 15, "children": [53, 54, 56], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 60}}, {"id": 53, "type": "type_identifier", "text": "virtual", "parent": 52, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 8}}, {"id": 54, "type": "ERROR", "text": "bool", "parent": 52, "children": [55], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 13}}, {"id": 55, "type": "identifier", "text": "bool", "parent": 54, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 13}}, {"id": 56, "type": "init_declarator", "text": "writeSegment(uint8_t* data, uint8_t size) = 0", "parent": 52, "children": [57, 68, 69], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 59}}, {"id": 57, "type": "function_declarator", "text": "writeSegment(uint8_t* data, uint8_t size)", "parent": 56, "children": [58, 59], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 55}}, {"id": 58, "type": "identifier", "text": "writeSegment", "parent": 57, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 26}}, {"id": 59, "type": "parameter_list", "text": "(uint8_t* data, uint8_t size)", "parent": 57, "children": [60, 65], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 55}}, {"id": 60, "type": "parameter_declaration", "text": "uint8_t* data", "parent": 59, "children": [61, 62], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 40}}, {"id": 61, "type": "primitive_type", "text": "uint8_t", "parent": 60, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 34}}, {"id": 62, "type": "pointer_declarator", "text": "* data", "parent": 60, "children": [63, 64], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 40}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 35}}, {"id": 64, "type": "identifier", "text": "data", "parent": 62, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 40}}, {"id": 65, "type": "parameter_declaration", "text": "uint8_t size", "parent": 59, "children": [66, 67], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 54}}, {"id": 66, "type": "primitive_type", "text": "uint8_t", "parent": 65, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 49}}, {"id": 67, "type": "identifier", "text": "size", "parent": 65, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 54}}, {"id": 68, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 22, "column": 56}, "end_point": {"row": 22, "column": 57}}, {"id": 69, "type": "number_literal", "text": "0", "parent": 56, "children": [], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 59}}, {"id": 70, "type": "declaration", "text": "virtual bool write(const uint8_t* data, uint8_t size) = 0;", "parent": 15, "children": [71, 72, 74], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 59}}, {"id": 71, "type": "type_identifier", "text": "virtual", "parent": 70, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 8}}, {"id": 72, "type": "ERROR", "text": "bool", "parent": 70, "children": [73], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 13}}, {"id": 73, "type": "identifier", "text": "bool", "parent": 72, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 13}}, {"id": 74, "type": "init_declarator", "text": "write(const uint8_t* data, uint8_t size) = 0", "parent": 70, "children": [75, 86, 87], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 58}}, {"id": 75, "type": "function_declarator", "text": "write(const uint8_t* data, uint8_t size)", "parent": 74, "children": [76, 77], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 54}}, {"id": 76, "type": "identifier", "text": "write", "parent": 75, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 19}}, {"id": 77, "type": "parameter_list", "text": "(const uint8_t* data, uint8_t size)", "parent": 75, "children": [78, 83], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 54}}, {"id": 78, "type": "parameter_declaration", "text": "const uint8_t* data", "parent": 77, "children": [79, 80], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 39}}, {"id": 79, "type": "primitive_type", "text": "uint8_t", "parent": 78, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 33}}, {"id": 80, "type": "pointer_declarator", "text": "* data", "parent": 78, "children": [81, 82], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 39}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 34}}, {"id": 82, "type": "identifier", "text": "data", "parent": 80, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 39}}, {"id": 83, "type": "parameter_declaration", "text": "uint8_t size", "parent": 77, "children": [84, 85], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 53}}, {"id": 84, "type": "primitive_type", "text": "uint8_t", "parent": 83, "children": [], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 48}}, {"id": 85, "type": "identifier", "text": "size", "parent": 83, "children": [], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 53}}, {"id": 86, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 56}}, {"id": 87, "type": "number_literal", "text": "0", "parent": 74, "children": [], "start_point": {"row": 23, "column": 57}, "end_point": {"row": 23, "column": 58}}, {"id": 88, "type": "declaration", "text": "virtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;", "parent": 15, "children": [89, 90, 92], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 67}}, {"id": 89, "type": "type_identifier", "text": "virtual", "parent": 88, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 8}}, {"id": 90, "type": "ERROR", "text": "ReturnCode", "parent": 88, "children": [91], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 91, "type": "identifier", "text": "ReturnCode", "parent": 90, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 92, "type": "init_declarator", "text": "readByte(uint8_t* dest, uint16_t* timeout) = 0", "parent": 88, "children": [93, 106, 107], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 66}}, {"id": 93, "type": "function_declarator", "text": "readByte(uint8_t* dest, uint16_t* timeout)", "parent": 92, "children": [94, 95], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 62}}, {"id": 94, "type": "identifier", "text": "readByte", "parent": 93, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 28}}, {"id": 95, "type": "parameter_list", "text": "(uint8_t* dest, uint16_t* timeout)", "parent": 93, "children": [96, 101], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 62}}, {"id": 96, "type": "parameter_declaration", "text": "uint8_t* dest", "parent": 95, "children": [97, 98], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 42}}, {"id": 97, "type": "primitive_type", "text": "uint8_t", "parent": 96, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 36}}, {"id": 98, "type": "pointer_declarator", "text": "* dest", "parent": 96, "children": [99, 100], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 42}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 37}}, {"id": 100, "type": "identifier", "text": "dest", "parent": 98, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 42}}, {"id": 101, "type": "parameter_declaration", "text": "uint16_t* timeout", "parent": 95, "children": [102, 103], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 61}}, {"id": 102, "type": "primitive_type", "text": "uint16_t", "parent": 101, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 52}}, {"id": 103, "type": "pointer_declarator", "text": "* timeout", "parent": 101, "children": [104, 105], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 61}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 53}}, {"id": 105, "type": "identifier", "text": "timeout", "parent": 103, "children": [], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 25, "column": 61}}, {"id": 106, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 25, "column": 63}, "end_point": {"row": 25, "column": 64}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 92, "children": [], "start_point": {"row": 25, "column": 65}, "end_point": {"row": 25, "column": 66}}, {"id": 108, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 15, 22, 29, 36, 44, 57, 75, 93], "variables": [18, 25, 32, 39, 47, 52, 60, 65, 70, 78, 83, 88, 96, 101], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 19, 23, 26, 28, 30, 33, 35, 37, 40, 42, 45, 49, 53, 55, 58, 64, 67, 71, 73, 76, 82, 85, 89, 91, 94, 100, 105, 108], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 51, 69, 87, 107], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "IO", "text_snippet": "namespace dynalib\n{\n\nclass IO\n{\npublic:\n\tvirtual ~IO();\n\n\tvirtual void reset();\n\tvirtual ReturnCode "}, {"node_id": 15, "universal_type": "function", "name": "IO", "text_snippet": "class IO\n{\npublic:\n\tvirtual ~IO();\n\n\tvirtual void reset();\n\tvirtual ReturnCode startTransmit();\n\n\tvi"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "IO()"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "reset()"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "startTransmit()"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "writeByte(uint8_t data)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "writeSegment(uint8_t* data, uint8_t size)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "write(const uint8_t* data, uint8_t size)"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "readByte(uint8_t* dest, uint16_t* timeout)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"return_code.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdint.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Dynalib IO interface\n// Author: <NAME> <<EMAIL>>\n\n#ifndef DYNALIB_IO_H\n#define DYNALIB_IO_H\n\n#include \"return_code.h\"\n\n#include <stdint.h>\n\nnamespace dynalib\n{\n\nclass IO\n{\npublic:\n\tvirtual ~IO();\n\n\tvirtual void reset();\n\tvirtual ReturnCode startTransmit();\n\n\tvirtual bool writeByte(uint8_t data) = 0;\n\tvirtual bool writeSegment(uint8_t* data, uint8_t size) = 0;\n\tvirtual bool write(const uint8_t* data, uint8_t size) = 0;\n\n\tvirtual ReturnCode readByte(uint8_t* dest, uint16_t* timeout) = 0;\n};\n\n}\n\n#endif\n"}
80,476
c
/** * @file tc.h * @brief Provides Transparent Clock logic. * @note Copyright (C) 2018 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (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., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA. */ #ifndef HAVE_TC_H #define HAVE_TC_H #include "msg.h" #include "port_private.h" /** * Flushes the list of remembered residence times. * @param q Port whose list should be flushed */ void tc_flush(struct port *q); /** * Forwards a given general message out all other ports. * @param q The ingress port * @param msg The message to be sent * @return Zero on success, non-zero otherwise. */ int tc_forward(struct port *q, struct ptp_message *msg); /** * Forwards a given Follow-Up message out all other ports. * * This function adds the unique, per egress port residence time into * the correction field for the transmitted follow up message. * * @param q The ingress port * @param msg The message to be sent * @return Zero on success, non-zero otherwise. */ int tc_fwd_folup(struct port *q, struct ptp_message *msg); /** * Forwards a given delay request message out all other ports. * * This function computes the unique residence time for each egress * port, remembering it in that egress port. * * @param q The ingress port * @param msg The message to be sent * @return Zero on success, non-zero otherwise. */ int tc_fwd_request(struct port *q, struct ptp_message *msg); /** * Forwards a given response message out all other ports. * * This function adds the unique, per egress port residence time into * the correction field for the transmitted delay response message. * * @param q The ingress port * @param msg The message to be sent * @return Zero on success, non-zero otherwise. */ int tc_fwd_response(struct port *q, struct ptp_message *msg); /** * Forwards a given sync message out all other ports. * * This function computes the unique residence time for each egress * port, remembering it in that egress port. * * @param q The ingress port * @param msg The message to be sent * @return Zero on success, non-zero otherwise. */ int tc_fwd_sync(struct port *q, struct ptp_message *msg); /** * Determines whether the local clock should ignore a given message. * * @param q The ingress port * @param msg The message to test * @return One if the message should be ignored, zero otherwise. */ int tc_ignore(struct port *q, struct ptp_message *m); /** * Prunes stale entries from the list of remembered residence times. * @param q Port whose list should be pruned. */ void tc_prune(struct port *q); #endif
33.86
93
(translation_unit) "/**\n * @file tc.h\n * @brief Provides Transparent Clock logic.\n * @note Copyright (C) 2018 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (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\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with this program; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA.\n */\n#ifndef HAVE_TC_H\n#define HAVE_TC_H\n\n#include "msg.h"\n#include "port_private.h"\n\n/**\n * Flushes the list of remembered residence times.\n * @param q Port whose list should be flushed\n */\nvoid tc_flush(struct port *q);\n\n/**\n * Forwards a given general message out all other ports.\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_forward(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given Follow-Up message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted follow up message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_folup(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given delay request message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_request(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given response message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted delay response message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_response(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given sync message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_sync(struct port *q, struct ptp_message *msg);\n\n/**\n * Determines whether the local clock should ignore a given message.\n *\n * @param q The ingress port\n * @param msg The message to test\n * @return One if the message should be ignored, zero otherwise.\n */\nint tc_ignore(struct port *q, struct ptp_message *m);\n\n/**\n * Prunes stale entries from the list of remembered residence times.\n * @param q Port whose list should be pruned.\n */\nvoid tc_prune(struct port *q);\n\n#endif\n" (comment) "/**\n * @file tc.h\n * @brief Provides Transparent Clock logic.\n * @note Copyright (C) 2018 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (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\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with this program; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA.\n */" (preproc_ifdef) "#ifndef HAVE_TC_H\n#define HAVE_TC_H\n\n#include "msg.h"\n#include "port_private.h"\n\n/**\n * Flushes the list of remembered residence times.\n * @param q Port whose list should be flushed\n */\nvoid tc_flush(struct port *q);\n\n/**\n * Forwards a given general message out all other ports.\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_forward(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given Follow-Up message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted follow up message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_folup(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given delay request message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_request(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given response message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted delay response message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_response(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given sync message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_sync(struct port *q, struct ptp_message *msg);\n\n/**\n * Determines whether the local clock should ignore a given message.\n *\n * @param q The ingress port\n * @param msg The message to test\n * @return One if the message should be ignored, zero otherwise.\n */\nint tc_ignore(struct port *q, struct ptp_message *m);\n\n/**\n * Prunes stale entries from the list of remembered residence times.\n * @param q Port whose list should be pruned.\n */\nvoid tc_prune(struct port *q);\n\n#endif" (#ifndef) "#ifndef" (identifier) "HAVE_TC_H" (preproc_def) "#define HAVE_TC_H\n" (#define) "#define" (identifier) "HAVE_TC_H" (preproc_include) "#include "msg.h"\n" (#include) "#include" (string_literal) ""msg.h"" (") """ (string_content) "msg.h" (") """ (preproc_include) "#include "port_private.h"\n" (#include) "#include" (string_literal) ""port_private.h"" (") """ (string_content) "port_private.h" (") """ (comment) "/**\n * Flushes the list of remembered residence times.\n * @param q Port whose list should be flushed\n */" (declaration) "void tc_flush(struct port *q);" (primitive_type) "void" (function_declarator) "tc_flush(struct port *q)" (identifier) "tc_flush" (parameter_list) "(struct port *q)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (;) ";" (comment) "/**\n * Forwards a given general message out all other ports.\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */" (declaration) "int tc_forward(struct port *q, struct ptp_message *msg);" (primitive_type) "int" (function_declarator) "tc_forward(struct port *q, struct ptp_message *msg)" (identifier) "tc_forward" (parameter_list) "(struct port *q, struct ptp_message *msg)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "struct ptp_message *msg" (struct_specifier) "struct ptp_message" (struct) "struct" (type_identifier) "ptp_message" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" ()) ")" (;) ";" (comment) "/**\n * Forwards a given Follow-Up message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted follow up message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */" (declaration) "int tc_fwd_folup(struct port *q, struct ptp_message *msg);" (primitive_type) "int" (function_declarator) "tc_fwd_folup(struct port *q, struct ptp_message *msg)" (identifier) "tc_fwd_folup" (parameter_list) "(struct port *q, struct ptp_message *msg)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "struct ptp_message *msg" (struct_specifier) "struct ptp_message" (struct) "struct" (type_identifier) "ptp_message" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" ()) ")" (;) ";" (comment) "/**\n * Forwards a given delay request message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */" (declaration) "int tc_fwd_request(struct port *q, struct ptp_message *msg);" (primitive_type) "int" (function_declarator) "tc_fwd_request(struct port *q, struct ptp_message *msg)" (identifier) "tc_fwd_request" (parameter_list) "(struct port *q, struct ptp_message *msg)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "struct ptp_message *msg" (struct_specifier) "struct ptp_message" (struct) "struct" (type_identifier) "ptp_message" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" ()) ")" (;) ";" (comment) "/**\n * Forwards a given response message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted delay response message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */" (declaration) "int tc_fwd_response(struct port *q, struct ptp_message *msg);" (primitive_type) "int" (function_declarator) "tc_fwd_response(struct port *q, struct ptp_message *msg)" (identifier) "tc_fwd_response" (parameter_list) "(struct port *q, struct ptp_message *msg)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "struct ptp_message *msg" (struct_specifier) "struct ptp_message" (struct) "struct" (type_identifier) "ptp_message" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" ()) ")" (;) ";" (comment) "/**\n * Forwards a given sync message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */" (declaration) "int tc_fwd_sync(struct port *q, struct ptp_message *msg);" (primitive_type) "int" (function_declarator) "tc_fwd_sync(struct port *q, struct ptp_message *msg)" (identifier) "tc_fwd_sync" (parameter_list) "(struct port *q, struct ptp_message *msg)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "struct ptp_message *msg" (struct_specifier) "struct ptp_message" (struct) "struct" (type_identifier) "ptp_message" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" ()) ")" (;) ";" (comment) "/**\n * Determines whether the local clock should ignore a given message.\n *\n * @param q The ingress port\n * @param msg The message to test\n * @return One if the message should be ignored, zero otherwise.\n */" (declaration) "int tc_ignore(struct port *q, struct ptp_message *m);" (primitive_type) "int" (function_declarator) "tc_ignore(struct port *q, struct ptp_message *m)" (identifier) "tc_ignore" (parameter_list) "(struct port *q, struct ptp_message *m)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" (,) "," (parameter_declaration) "struct ptp_message *m" (struct_specifier) "struct ptp_message" (struct) "struct" (type_identifier) "ptp_message" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (comment) "/**\n * Prunes stale entries from the list of remembered residence times.\n * @param q Port whose list should be pruned.\n */" (declaration) "void tc_prune(struct port *q);" (primitive_type) "void" (function_declarator) "tc_prune(struct port *q)" (identifier) "tc_prune" (parameter_list) "(struct port *q)" (() "(" (parameter_declaration) "struct port *q" (struct_specifier) "struct port" (struct) "struct" (type_identifier) "port" (pointer_declarator) "*q" (*) "*" (identifier) "q" ()) ")" (;) ";" (#endif) "#endif"
197
0
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 33.86, "nodes": 151, "errors": 0, "source_hash": "97c71a889de0237eabbe226011bb1060dce37bd8c90f7734e87e3e2cd6aecf0e", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HAVE_TC_H\n#define HAVE_TC_H\n\n#include \"msg.h\"\n#include \"port_private.h\"\n\n/**\n * Flushes the list of remembered residence times.\n * @param q Port whose list should be flushed\n */\nvoid tc_flush(struct port *q);\n\n/**\n * Forwards a given general message out all other ports.\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_forward(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given Follow-Up message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted follow up message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_folup(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given delay request message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_request(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given response message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted delay response message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_response(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given sync message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_sync(struct port *q, struct ptp_message *msg);\n\n/**\n * Determines whether the local clock should ignore a given message.\n *\n * @param q The ingress port\n * @param msg The message to test\n * @return One if the message should be ignored, zero otherwise.\n */\nint tc_ignore(struct port *q, struct ptp_message *m);\n\n/**\n * Prunes stale entries from the list of remembered residence times.\n * @param q Port whose list should be pruned.\n */\nvoid tc_prune(struct port *q);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 24, 43, 62, 81, 100, 119, 138, 150], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 102, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 2, "type": "identifier", "text": "HAVE_TC_H", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define HAVE_TC_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": "HAVE_TC_H", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"msg.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": "string_literal", "text": "\"msg.h\"", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"port_private.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": "string_literal", "text": "\"port_private.h\"", "parent": 9, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 25}}, {"id": 12, "type": "declaration", "text": "void tc_flush(struct port *q);", "parent": 0, "children": [13, 14], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 30}}, {"id": 13, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 14, "type": "function_declarator", "text": "tc_flush(struct port *q)", "parent": 12, "children": [15, 16], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 29}}, {"id": 15, "type": "identifier", "text": "tc_flush", "parent": 14, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 13}}, {"id": 16, "type": "parameter_list", "text": "(struct port *q)", "parent": 14, "children": [17], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 29}}, {"id": 17, "type": "parameter_declaration", "text": "struct port *q", "parent": 16, "children": [18, 21], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 28}}, {"id": 18, "type": "struct_specifier", "text": "struct port", "parent": 17, "children": [19, 20], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 25}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 20}}, {"id": 20, "type": "type_identifier", "text": "port", "parent": 18, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 25}}, {"id": 21, "type": "pointer_declarator", "text": "*q", "parent": 17, "children": [22, 23], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 28}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 27}}, {"id": 23, "type": "identifier", "text": "q", "parent": 21, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 28}}, {"id": 24, "type": "declaration", "text": "int tc_forward(struct port *q, struct ptp_message *msg);", "parent": 0, "children": [25, 26], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 56}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 3}}, {"id": 26, "type": "function_declarator", "text": "tc_forward(struct port *q, struct ptp_message *msg)", "parent": 24, "children": [27, 28], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 55}}, {"id": 27, "type": "identifier", "text": "tc_forward", "parent": 26, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 14}}, {"id": 28, "type": "parameter_list", "text": "(struct port *q, struct ptp_message *msg)", "parent": 26, "children": [29, 36], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 55}}, {"id": 29, "type": "parameter_declaration", "text": "struct port *q", "parent": 28, "children": [30, 33], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 29}}, {"id": 30, "type": "struct_specifier", "text": "struct port", "parent": 29, "children": [31, 32], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 26}}, {"id": 31, "type": "struct", "text": "struct", "parent": 30, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 21}}, {"id": 32, "type": "type_identifier", "text": "port", "parent": 30, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 26}}, {"id": 33, "type": "pointer_declarator", "text": "*q", "parent": 29, "children": [34, 35], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 29}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 28}}, {"id": 35, "type": "identifier", "text": "q", "parent": 33, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 29}}, {"id": 36, "type": "parameter_declaration", "text": "struct ptp_message *msg", "parent": 28, "children": [37, 40], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 54}}, {"id": 37, "type": "struct_specifier", "text": "struct ptp_message", "parent": 36, "children": [38, 39], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 49}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 37}}, {"id": 39, "type": "type_identifier", "text": "ptp_message", "parent": 37, "children": [], "start_point": {"row": 37, "column": 38}, "end_point": {"row": 37, "column": 49}}, {"id": 40, "type": "pointer_declarator", "text": "*msg", "parent": 36, "children": [41, 42], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 54}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 51}}, {"id": 42, "type": "identifier", "text": "msg", "parent": 40, "children": [], "start_point": {"row": 37, "column": 51}, "end_point": {"row": 37, "column": 54}}, {"id": 43, "type": "declaration", "text": "int tc_fwd_folup(struct port *q, struct ptp_message *msg);", "parent": 0, "children": [44, 45], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 58}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 45, "type": "function_declarator", "text": "tc_fwd_folup(struct port *q, struct ptp_message *msg)", "parent": 43, "children": [46, 47], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 57}}, {"id": 46, "type": "identifier", "text": "tc_fwd_folup", "parent": 45, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 16}}, {"id": 47, "type": "parameter_list", "text": "(struct port *q, struct ptp_message *msg)", "parent": 45, "children": [48, 55], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 57}}, {"id": 48, "type": "parameter_declaration", "text": "struct port *q", "parent": 47, "children": [49, 52], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 31}}, {"id": 49, "type": "struct_specifier", "text": "struct port", "parent": 48, "children": [50, 51], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 28}}, {"id": 50, "type": "struct", "text": "struct", "parent": 49, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 23}}, {"id": 51, "type": "type_identifier", "text": "port", "parent": 49, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 28}}, {"id": 52, "type": "pointer_declarator", "text": "*q", "parent": 48, "children": [53, 54], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 31}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 30}}, {"id": 54, "type": "identifier", "text": "q", "parent": 52, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 31}}, {"id": 55, "type": "parameter_declaration", "text": "struct ptp_message *msg", "parent": 47, "children": [56, 59], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 56}}, {"id": 56, "type": "struct_specifier", "text": "struct ptp_message", "parent": 55, "children": [57, 58], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 51}}, {"id": 57, "type": "struct", "text": "struct", "parent": 56, "children": [], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 39}}, {"id": 58, "type": "type_identifier", "text": "ptp_message", "parent": 56, "children": [], "start_point": {"row": 49, "column": 40}, "end_point": {"row": 49, "column": 51}}, {"id": 59, "type": "pointer_declarator", "text": "*msg", "parent": 55, "children": [60, 61], "start_point": {"row": 49, "column": 52}, "end_point": {"row": 49, "column": 56}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 49, "column": 52}, "end_point": {"row": 49, "column": 53}}, {"id": 61, "type": "identifier", "text": "msg", "parent": 59, "children": [], "start_point": {"row": 49, "column": 53}, "end_point": {"row": 49, "column": 56}}, {"id": 62, "type": "declaration", "text": "int tc_fwd_request(struct port *q, struct ptp_message *msg);", "parent": 0, "children": [63, 64], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 60}}, {"id": 63, "type": "primitive_type", "text": "int", "parent": 62, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 3}}, {"id": 64, "type": "function_declarator", "text": "tc_fwd_request(struct port *q, struct ptp_message *msg)", "parent": 62, "children": [65, 66], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 59}}, {"id": 65, "type": "identifier", "text": "tc_fwd_request", "parent": 64, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 18}}, {"id": 66, "type": "parameter_list", "text": "(struct port *q, struct ptp_message *msg)", "parent": 64, "children": [67, 74], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 59}}, {"id": 67, "type": "parameter_declaration", "text": "struct port *q", "parent": 66, "children": [68, 71], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 33}}, {"id": 68, "type": "struct_specifier", "text": "struct port", "parent": 67, "children": [69, 70], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 30}}, {"id": 69, "type": "struct", "text": "struct", "parent": 68, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 25}}, {"id": 70, "type": "type_identifier", "text": "port", "parent": 68, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 30}}, {"id": 71, "type": "pointer_declarator", "text": "*q", "parent": 67, "children": [72, 73], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 33}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 32}}, {"id": 73, "type": "identifier", "text": "q", "parent": 71, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 33}}, {"id": 74, "type": "parameter_declaration", "text": "struct ptp_message *msg", "parent": 66, "children": [75, 78], "start_point": {"row": 61, "column": 35}, "end_point": {"row": 61, "column": 58}}, {"id": 75, "type": "struct_specifier", "text": "struct ptp_message", "parent": 74, "children": [76, 77], "start_point": {"row": 61, "column": 35}, "end_point": {"row": 61, "column": 53}}, {"id": 76, "type": "struct", "text": "struct", "parent": 75, "children": [], "start_point": {"row": 61, "column": 35}, "end_point": {"row": 61, "column": 41}}, {"id": 77, "type": "type_identifier", "text": "ptp_message", "parent": 75, "children": [], "start_point": {"row": 61, "column": 42}, "end_point": {"row": 61, "column": 53}}, {"id": 78, "type": "pointer_declarator", "text": "*msg", "parent": 74, "children": [79, 80], "start_point": {"row": 61, "column": 54}, "end_point": {"row": 61, "column": 58}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 61, "column": 54}, "end_point": {"row": 61, "column": 55}}, {"id": 80, "type": "identifier", "text": "msg", "parent": 78, "children": [], "start_point": {"row": 61, "column": 55}, "end_point": {"row": 61, "column": 58}}, {"id": 81, "type": "declaration", "text": "int tc_fwd_response(struct port *q, struct ptp_message *msg);", "parent": 0, "children": [82, 83], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 61}}, {"id": 82, "type": "primitive_type", "text": "int", "parent": 81, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 3}}, {"id": 83, "type": "function_declarator", "text": "tc_fwd_response(struct port *q, struct ptp_message *msg)", "parent": 81, "children": [84, 85], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 60}}, {"id": 84, "type": "identifier", "text": "tc_fwd_response", "parent": 83, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 19}}, {"id": 85, "type": "parameter_list", "text": "(struct port *q, struct ptp_message *msg)", "parent": 83, "children": [86, 93], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 60}}, {"id": 86, "type": "parameter_declaration", "text": "struct port *q", "parent": 85, "children": [87, 90], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 34}}, {"id": 87, "type": "struct_specifier", "text": "struct port", "parent": 86, "children": [88, 89], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 31}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 26}}, {"id": 89, "type": "type_identifier", "text": "port", "parent": 87, "children": [], "start_point": {"row": 73, "column": 27}, "end_point": {"row": 73, "column": 31}}, {"id": 90, "type": "pointer_declarator", "text": "*q", "parent": 86, "children": [91, 92], "start_point": {"row": 73, "column": 32}, "end_point": {"row": 73, "column": 34}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 73, "column": 32}, "end_point": {"row": 73, "column": 33}}, {"id": 92, "type": "identifier", "text": "q", "parent": 90, "children": [], "start_point": {"row": 73, "column": 33}, "end_point": {"row": 73, "column": 34}}, {"id": 93, "type": "parameter_declaration", "text": "struct ptp_message *msg", "parent": 85, "children": [94, 97], "start_point": {"row": 73, "column": 36}, "end_point": {"row": 73, "column": 59}}, {"id": 94, "type": "struct_specifier", "text": "struct ptp_message", "parent": 93, "children": [95, 96], "start_point": {"row": 73, "column": 36}, "end_point": {"row": 73, "column": 54}}, {"id": 95, "type": "struct", "text": "struct", "parent": 94, "children": [], "start_point": {"row": 73, "column": 36}, "end_point": {"row": 73, "column": 42}}, {"id": 96, "type": "type_identifier", "text": "ptp_message", "parent": 94, "children": [], "start_point": {"row": 73, "column": 43}, "end_point": {"row": 73, "column": 54}}, {"id": 97, "type": "pointer_declarator", "text": "*msg", "parent": 93, "children": [98, 99], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 59}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 56}}, {"id": 99, "type": "identifier", "text": "msg", "parent": 97, "children": [], "start_point": {"row": 73, "column": 56}, "end_point": {"row": 73, "column": 59}}, {"id": 100, "type": "declaration", "text": "int tc_fwd_sync(struct port *q, struct ptp_message *msg);", "parent": 0, "children": [101, 102], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 57}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 3}}, {"id": 102, "type": "function_declarator", "text": "tc_fwd_sync(struct port *q, struct ptp_message *msg)", "parent": 100, "children": [103, 104], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 56}}, {"id": 103, "type": "identifier", "text": "tc_fwd_sync", "parent": 102, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 15}}, {"id": 104, "type": "parameter_list", "text": "(struct port *q, struct ptp_message *msg)", "parent": 102, "children": [105, 112], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 56}}, {"id": 105, "type": "parameter_declaration", "text": "struct port *q", "parent": 104, "children": [106, 109], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 30}}, {"id": 106, "type": "struct_specifier", "text": "struct port", "parent": 105, "children": [107, 108], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 27}}, {"id": 107, "type": "struct", "text": "struct", "parent": 106, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 22}}, {"id": 108, "type": "type_identifier", "text": "port", "parent": 106, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 27}}, {"id": 109, "type": "pointer_declarator", "text": "*q", "parent": 105, "children": [110, 111], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 30}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 29}}, {"id": 111, "type": "identifier", "text": "q", "parent": 109, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 30}}, {"id": 112, "type": "parameter_declaration", "text": "struct ptp_message *msg", "parent": 104, "children": [113, 116], "start_point": {"row": 85, "column": 32}, "end_point": {"row": 85, "column": 55}}, {"id": 113, "type": "struct_specifier", "text": "struct ptp_message", "parent": 112, "children": [114, 115], "start_point": {"row": 85, "column": 32}, "end_point": {"row": 85, "column": 50}}, {"id": 114, "type": "struct", "text": "struct", "parent": 113, "children": [], "start_point": {"row": 85, "column": 32}, "end_point": {"row": 85, "column": 38}}, {"id": 115, "type": "type_identifier", "text": "ptp_message", "parent": 113, "children": [], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 50}}, {"id": 116, "type": "pointer_declarator", "text": "*msg", "parent": 112, "children": [117, 118], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 55}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 52}}, {"id": 118, "type": "identifier", "text": "msg", "parent": 116, "children": [], "start_point": {"row": 85, "column": 52}, "end_point": {"row": 85, "column": 55}}, {"id": 119, "type": "declaration", "text": "int tc_ignore(struct port *q, struct ptp_message *m);", "parent": 0, "children": [120, 121], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 53}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 3}}, {"id": 121, "type": "function_declarator", "text": "tc_ignore(struct port *q, struct ptp_message *m)", "parent": 119, "children": [122, 123], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 52}}, {"id": 122, "type": "identifier", "text": "tc_ignore", "parent": 121, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 13}}, {"id": 123, "type": "parameter_list", "text": "(struct port *q, struct ptp_message *m)", "parent": 121, "children": [124, 131], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 52}}, {"id": 124, "type": "parameter_declaration", "text": "struct port *q", "parent": 123, "children": [125, 128], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 28}}, {"id": 125, "type": "struct_specifier", "text": "struct port", "parent": 124, "children": [126, 127], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 25}}, {"id": 126, "type": "struct", "text": "struct", "parent": 125, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 20}}, {"id": 127, "type": "type_identifier", "text": "port", "parent": 125, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 25}}, {"id": 128, "type": "pointer_declarator", "text": "*q", "parent": 124, "children": [129, 130], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 28}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 27}}, {"id": 130, "type": "identifier", "text": "q", "parent": 128, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 28}}, {"id": 131, "type": "parameter_declaration", "text": "struct ptp_message *m", "parent": 123, "children": [132, 135], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 51}}, {"id": 132, "type": "struct_specifier", "text": "struct ptp_message", "parent": 131, "children": [133, 134], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 48}}, {"id": 133, "type": "struct", "text": "struct", "parent": 132, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 36}}, {"id": 134, "type": "type_identifier", "text": "ptp_message", "parent": 132, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 48}}, {"id": 135, "type": "pointer_declarator", "text": "*m", "parent": 131, "children": [136, 137], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 51}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 50}}, {"id": 137, "type": "identifier", "text": "m", "parent": 135, "children": [], "start_point": {"row": 94, "column": 50}, "end_point": {"row": 94, "column": 51}}, {"id": 138, "type": "declaration", "text": "void tc_prune(struct port *q);", "parent": 0, "children": [139, 140], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 30}}, {"id": 139, "type": "primitive_type", "text": "void", "parent": 138, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 4}}, {"id": 140, "type": "function_declarator", "text": "tc_prune(struct port *q)", "parent": 138, "children": [141, 142], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 29}}, {"id": 141, "type": "identifier", "text": "tc_prune", "parent": 140, "children": [], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 13}}, {"id": 142, "type": "parameter_list", "text": "(struct port *q)", "parent": 140, "children": [143], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 29}}, {"id": 143, "type": "parameter_declaration", "text": "struct port *q", "parent": 142, "children": [144, 147], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 28}}, {"id": 144, "type": "struct_specifier", "text": "struct port", "parent": 143, "children": [145, 146], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 25}}, {"id": 145, "type": "struct", "text": "struct", "parent": 144, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 20}}, {"id": 146, "type": "type_identifier", "text": "port", "parent": 144, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 25}}, {"id": 147, "type": "pointer_declarator", "text": "*q", "parent": 143, "children": [148, 149], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 28}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 27}}, {"id": 149, "type": "identifier", "text": "q", "parent": 147, "children": [], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 28}}, {"id": 150, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 6}}]}, "node_categories": {"declarations": {"functions": [14, 26, 45, 64, 83, 102, 121, 140], "variables": [12, 17, 24, 29, 36, 43, 48, 55, 62, 67, 74, 81, 86, 93, 100, 105, 112, 119, 124, 131, 138, 143], "classes": [18, 19, 30, 31, 37, 38, 49, 50, 56, 57, 68, 69, 75, 76, 87, 88, 94, 95, 106, 107, 113, 114, 125, 126, 132, 133, 144, 145], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15, 20, 23, 27, 32, 35, 39, 42, 46, 51, 54, 58, 61, 65, 70, 73, 77, 80, 84, 89, 92, 96, 99, 103, 108, 111, 115, 118, 122, 127, 130, 134, 137, 141, 146, 149, 150], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "tc_flush(struct port *q)"}, {"node_id": 26, "universal_type": "function", "name": "ptp_message", "text_snippet": "tc_forward(struct port *q, struct ptp_message *msg)"}, {"node_id": 45, "universal_type": "function", "name": "ptp_message", "text_snippet": "tc_fwd_folup(struct port *q, struct ptp_message *msg)"}, {"node_id": 64, "universal_type": "function", "name": "ptp_message", "text_snippet": "tc_fwd_request(struct port *q, struct ptp_message *msg)"}, {"node_id": 83, "universal_type": "function", "name": "ptp_message", "text_snippet": "tc_fwd_response(struct port *q, struct ptp_message *msg)"}, {"node_id": 102, "universal_type": "function", "name": "ptp_message", "text_snippet": "tc_fwd_sync(struct port *q, struct ptp_message *msg)"}, {"node_id": 121, "universal_type": "function", "name": "ptp_message", "text_snippet": "tc_ignore(struct port *q, struct ptp_message *m)"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "tc_prune(struct port *q)"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 30, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 31, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 37, "universal_type": "class", "name": "ptp_message", "text_snippet": "struct ptp_message"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 49, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 56, "universal_type": "class", "name": "ptp_message", "text_snippet": "struct ptp_message"}, {"node_id": 57, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 68, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 69, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 75, "universal_type": "class", "name": "ptp_message", "text_snippet": "struct ptp_message"}, {"node_id": 76, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 94, "universal_type": "class", "name": "ptp_message", "text_snippet": "struct ptp_message"}, {"node_id": 95, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 106, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 107, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 113, "universal_type": "class", "name": "ptp_message", "text_snippet": "struct ptp_message"}, {"node_id": 114, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 125, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 126, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 132, "universal_type": "class", "name": "ptp_message", "text_snippet": "struct ptp_message"}, {"node_id": 133, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 144, "universal_type": "class", "name": "port", "text_snippet": "struct port"}, {"node_id": 145, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"msg.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"port_private.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/**\n * @file tc.h\n * @brief Provides Transparent Clock logic.\n * @note Copyright (C) 2018 <NAME> <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (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\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License along\n * with this program; if not, write to the Free Software Foundation, Inc.,\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA.\n */\n#ifndef HAVE_TC_H\n#define HAVE_TC_H\n\n#include \"msg.h\"\n#include \"port_private.h\"\n\n/**\n * Flushes the list of remembered residence times.\n * @param q Port whose list should be flushed\n */\nvoid tc_flush(struct port *q);\n\n/**\n * Forwards a given general message out all other ports.\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_forward(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given Follow-Up message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted follow up message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_folup(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given delay request message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_request(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given response message out all other ports.\n *\n * This function adds the unique, per egress port residence time into\n * the correction field for the transmitted delay response message.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_response(struct port *q, struct ptp_message *msg);\n\n/**\n * Forwards a given sync message out all other ports.\n *\n * This function computes the unique residence time for each egress\n * port, remembering it in that egress port.\n *\n * @param q The ingress port\n * @param msg The message to be sent\n * @return Zero on success, non-zero otherwise.\n */\nint tc_fwd_sync(struct port *q, struct ptp_message *msg);\n\n/**\n * Determines whether the local clock should ignore a given message.\n *\n * @param q The ingress port\n * @param msg The message to test\n * @return One if the message should be ignored, zero otherwise.\n */\nint tc_ignore(struct port *q, struct ptp_message *m);\n\n/**\n * Prunes stale entries from the list of remembered residence times.\n * @param q Port whose list should be pruned.\n */\nvoid tc_prune(struct port *q);\n\n#endif\n"}
80,477
c
/*! * @file portable_delay.c * @brief Portable Delay/Sleep functions * @author <NAME> * @date 2014/12/20 */ #ifdef __linux /* Linux needs this for POSIX compatibility */ #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199506L #endif /* of !_POSIX_C_SOURCE */ #endif /* of __linux */ #ifdef __unix__ #include <sys/types.h> #include <time.h> int p_delay(unsigned int seconds) { struct timespec t; int result; t.tv_sec = (time_t)seconds; t.tv_nsec = 0; result = nanosleep(&t, NULL); return (result); } int p_mdelay(unsigned int milliseconds) { struct timespec t; int result; if (milliseconds < 1000) { t.tv_sec = 0; t.tv_nsec = (long)milliseconds * 1000000; } else { t.tv_sec = (time_t)(milliseconds / 1000); t.tv_nsec = (long)(milliseconds % 1000) * 1000000; } result = nanosleep(&t, NULL); return (result); } #else #include "FreeRTOS.h" #include "task.h" #include "semphr.h" extern uint32_t HAL_GetTick(void); int p_delay(unsigned int seconds) { int i; for(i=0;i<seconds;i++){ vTaskDelay(1000); } return 0; } int p_mdelay(unsigned int milliseconds) { vTaskDelay(milliseconds); return 0; } unsigned int sys_now(void) { return (unsigned int)HAL_GetTick(); } #ifndef MAX_JIFFY_OFFSET #define MAX_JIFFY_OFFSET ((~0U >> 1)-1) #endif #ifndef HZ #define HZ 100 #endif unsigned int sys_jiffies(void) { return (unsigned int)(HAL_GetTick()/(1000/HZ)); } #include <sys/time.h> int _gettimeofday( struct timeval *tv, void *tzvp ) { uint64_t t = HAL_GetTick(); tv->tv_sec = t / 1000; // convert to seconds tv->tv_usec = t * 1000; // get remaining microseconds return 0; } #endif /* of __unix__ */
18.39
90
(translation_unit) "/*!\n * @file portable_delay.c\n * @brief Portable Delay/Sleep functions\n * @author <NAME>\n * @date 2014/12/20\n */\n\n#ifdef __linux\n/* Linux needs this for POSIX compatibility */\n#ifndef _POSIX_C_SOURCE\n#define _POSIX_C_SOURCE 199506L\n#endif /* of !_POSIX_C_SOURCE */\n#endif /* of __linux */\n\n#ifdef __unix__\n#include <sys/types.h>\n#include <time.h>\n\n\nint\np_delay(unsigned int seconds)\n{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)seconds;\n t.tv_nsec = 0;\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n struct timespec t;\n int result;\n\n if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n#else\n\n\n#include "FreeRTOS.h"\n#include "task.h"\n#include "semphr.h"\n\nextern uint32_t HAL_GetTick(void);\n\nint\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}\n\nunsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}\n\n#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif\n\n#ifndef HZ\n#define HZ 100\n#endif\n\nunsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}\n\n#include <sys/time.h>\n\nint _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}\n\n\n#endif /* of __unix__ */\n" (comment) "/*!\n * @file portable_delay.c\n * @brief Portable Delay/Sleep functions\n * @author <NAME>\n * @date 2014/12/20\n */" (preproc_ifdef) "#ifdef __linux\n/* Linux needs this for POSIX compatibility */\n#ifndef _POSIX_C_SOURCE\n#define _POSIX_C_SOURCE 199506L\n#endif /* of !_POSIX_C_SOURCE */\n#endif" (#ifdef) "#ifdef" (identifier) "__linux" (comment) "/* Linux needs this for POSIX compatibility */" (preproc_ifdef) "#ifndef _POSIX_C_SOURCE\n#define _POSIX_C_SOURCE 199506L\n#endif" (#ifndef) "#ifndef" (identifier) "_POSIX_C_SOURCE" (preproc_def) "#define _POSIX_C_SOURCE 199506L\n" (#define) "#define" (identifier) "_POSIX_C_SOURCE" (preproc_arg) "199506L" (#endif) "#endif" (comment) "/* of !_POSIX_C_SOURCE */" (#endif) "#endif" (comment) "/* of __linux */" (preproc_ifdef) "#ifdef __unix__\n#include <sys/types.h>\n#include <time.h>\n\n\nint\np_delay(unsigned int seconds)\n{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)seconds;\n t.tv_nsec = 0;\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n struct timespec t;\n int result;\n\n if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n#else\n\n\n#include "FreeRTOS.h"\n#include "task.h"\n#include "semphr.h"\n\nextern uint32_t HAL_GetTick(void);\n\nint\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}\n\nunsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}\n\n#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif\n\n#ifndef HZ\n#define HZ 100\n#endif\n\nunsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}\n\n#include <sys/time.h>\n\nint _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}\n\n\n#endif" (#ifdef) "#ifdef" (identifier) "__unix__" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <time.h>\n" (#include) "#include" (system_lib_string) "<time.h>" (function_definition) "int\np_delay(unsigned int seconds)\n{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)seconds;\n t.tv_nsec = 0;\n\n result = nanosleep(&t, NULL);\n return (result);\n}" (primitive_type) "int" (function_declarator) "p_delay(unsigned int seconds)" (identifier) "p_delay" (parameter_list) "(unsigned int seconds)" (() "(" (parameter_declaration) "unsigned int seconds" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "seconds" ()) ")" (compound_statement) "{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)seconds;\n t.tv_nsec = 0;\n\n result = nanosleep(&t, NULL);\n return (result);\n}" ({) "{" (declaration) "struct timespec t;" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (identifier) "t" (;) ";" (declaration) "int result;" (primitive_type) "int" (identifier) "result" (;) ";" (expression_statement) "t.tv_sec = (time_t)seconds;" (assignment_expression) "t.tv_sec = (time_t)seconds" (field_expression) "t.tv_sec" (identifier) "t" (.) "." (field_identifier) "tv_sec" (=) "=" (cast_expression) "(time_t)seconds" (() "(" (type_descriptor) "time_t" (type_identifier) "time_t" ()) ")" (identifier) "seconds" (;) ";" (expression_statement) "t.tv_nsec = 0;" (assignment_expression) "t.tv_nsec = 0" (field_expression) "t.tv_nsec" (identifier) "t" (.) "." (field_identifier) "tv_nsec" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "result = nanosleep(&t, NULL);" (assignment_expression) "result = nanosleep(&t, NULL)" (identifier) "result" (=) "=" (call_expression) "nanosleep(&t, NULL)" (identifier) "nanosleep" (argument_list) "(&t, NULL)" (() "(" (pointer_expression) "&t" (&) "&" (identifier) "t" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (return_statement) "return (result);" (return) "return" (parenthesized_expression) "(result)" (() "(" (identifier) "result" ()) ")" (;) ";" (}) "}" (function_definition) "int\np_mdelay(unsigned int milliseconds)\n{\n struct timespec t;\n int result;\n\n if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }\n\n result = nanosleep(&t, NULL);\n return (result);\n}" (primitive_type) "int" (function_declarator) "p_mdelay(unsigned int milliseconds)" (identifier) "p_mdelay" (parameter_list) "(unsigned int milliseconds)" (() "(" (parameter_declaration) "unsigned int milliseconds" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "milliseconds" ()) ")" (compound_statement) "{\n struct timespec t;\n int result;\n\n if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }\n\n result = nanosleep(&t, NULL);\n return (result);\n}" ({) "{" (declaration) "struct timespec t;" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (identifier) "t" (;) ";" (declaration) "int result;" (primitive_type) "int" (identifier) "result" (;) ";" (if_statement) "if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }" (if) "if" (parenthesized_expression) "(milliseconds < 1000)" (() "(" (binary_expression) "milliseconds < 1000" (identifier) "milliseconds" (<) "<" (number_literal) "1000" ()) ")" (compound_statement) "{\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n }" ({) "{" (expression_statement) "t.tv_sec = 0;" (assignment_expression) "t.tv_sec = 0" (field_expression) "t.tv_sec" (identifier) "t" (.) "." (field_identifier) "tv_sec" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "t.tv_nsec = (long)milliseconds * 1000000;" (assignment_expression) "t.tv_nsec = (long)milliseconds * 1000000" (field_expression) "t.tv_nsec" (identifier) "t" (.) "." (field_identifier) "tv_nsec" (=) "=" (binary_expression) "(long)milliseconds * 1000000" (cast_expression) "(long)milliseconds" (() "(" (type_descriptor) "long" (sized_type_specifier) "long" (long) "long" ()) ")" (identifier) "milliseconds" (*) "*" (number_literal) "1000000" (;) ";" (}) "}" (else_clause) "else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }" (else) "else" (compound_statement) "{\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }" ({) "{" (expression_statement) "t.tv_sec = (time_t)(milliseconds / 1000);" (assignment_expression) "t.tv_sec = (time_t)(milliseconds / 1000)" (field_expression) "t.tv_sec" (identifier) "t" (.) "." (field_identifier) "tv_sec" (=) "=" (call_expression) "(time_t)(milliseconds / 1000)" (parenthesized_expression) "(time_t)" (() "(" (identifier) "time_t" ()) ")" (argument_list) "(milliseconds / 1000)" (() "(" (binary_expression) "milliseconds / 1000" (identifier) "milliseconds" (/) "/" (number_literal) "1000" ()) ")" (;) ";" (expression_statement) "t.tv_nsec = (long)(milliseconds % 1000) * 1000000;" (assignment_expression) "t.tv_nsec = (long)(milliseconds % 1000) * 1000000" (field_expression) "t.tv_nsec" (identifier) "t" (.) "." (field_identifier) "tv_nsec" (=) "=" (binary_expression) "(long)(milliseconds % 1000) * 1000000" (cast_expression) "(long)(milliseconds % 1000)" (() "(" (type_descriptor) "long" (sized_type_specifier) "long" (long) "long" ()) ")" (parenthesized_expression) "(milliseconds % 1000)" (() "(" (binary_expression) "milliseconds % 1000" (identifier) "milliseconds" (%) "%" (number_literal) "1000" ()) ")" (*) "*" (number_literal) "1000000" (;) ";" (}) "}" (expression_statement) "result = nanosleep(&t, NULL);" (assignment_expression) "result = nanosleep(&t, NULL)" (identifier) "result" (=) "=" (call_expression) "nanosleep(&t, NULL)" (identifier) "nanosleep" (argument_list) "(&t, NULL)" (() "(" (pointer_expression) "&t" (&) "&" (identifier) "t" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (return_statement) "return (result);" (return) "return" (parenthesized_expression) "(result)" (() "(" (identifier) "result" ()) ")" (;) ";" (}) "}" (preproc_else) "#else\n\n\n#include "FreeRTOS.h"\n#include "task.h"\n#include "semphr.h"\n\nextern uint32_t HAL_GetTick(void);\n\nint\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}\n\nunsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}\n\n#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif\n\n#ifndef HZ\n#define HZ 100\n#endif\n\nunsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}\n\n#include <sys/time.h>\n\nint _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}" (#else) "#else" (preproc_include) "#include "FreeRTOS.h"\n" (#include) "#include" (string_literal) ""FreeRTOS.h"" (") """ (string_content) "FreeRTOS.h" (") """ (preproc_include) "#include "task.h"\n" (#include) "#include" (string_literal) ""task.h"" (") """ (string_content) "task.h" (") """ (preproc_include) "#include "semphr.h"\n" (#include) "#include" (string_literal) ""semphr.h"" (") """ (string_content) "semphr.h" (") """ (declaration) "extern uint32_t HAL_GetTick(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint32_t" (function_declarator) "HAL_GetTick(void)" (identifier) "HAL_GetTick" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (function_definition) "int\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "p_delay(unsigned int seconds)" (identifier) "p_delay" (parameter_list) "(unsigned int seconds)" (() "(" (parameter_declaration) "unsigned int seconds" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "seconds" ()) ")" (compound_statement) "{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<seconds" (identifier) "i" (<) "<" (identifier) "seconds" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n vTaskDelay(1000);\n }" ({) "{" (expression_statement) "vTaskDelay(1000);" (call_expression) "vTaskDelay(1000)" (identifier) "vTaskDelay" (argument_list) "(1000)" (() "(" (number_literal) "1000" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}" (primitive_type) "int" (function_declarator) "p_mdelay(unsigned int milliseconds)" (identifier) "p_mdelay" (parameter_list) "(unsigned int milliseconds)" (() "(" (parameter_declaration) "unsigned int milliseconds" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "milliseconds" ()) ")" (compound_statement) "{\n vTaskDelay(milliseconds);\n return 0;\n}" ({) "{" (expression_statement) "vTaskDelay(milliseconds);" (call_expression) "vTaskDelay(milliseconds)" (identifier) "vTaskDelay" (argument_list) "(milliseconds)" (() "(" (identifier) "milliseconds" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "unsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "sys_now(void)" (identifier) "sys_now" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return (unsigned int)HAL_GetTick();\n}" ({) "{" (return_statement) "return (unsigned int)HAL_GetTick();" (return) "return" (cast_expression) "(unsigned int)HAL_GetTick()" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (call_expression) "HAL_GetTick()" (identifier) "HAL_GetTick" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (preproc_ifdef) "#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif" (#ifndef) "#ifndef" (identifier) "MAX_JIFFY_OFFSET" (preproc_def) "#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n" (#define) "#define" (identifier) "MAX_JIFFY_OFFSET" (preproc_arg) "((~0U >> 1)-1)" (#endif) "#endif" (preproc_ifdef) "#ifndef HZ\n#define HZ 100\n#endif" (#ifndef) "#ifndef" (identifier) "HZ" (preproc_def) "#define HZ 100\n" (#define) "#define" (identifier) "HZ" (preproc_arg) "100" (#endif) "#endif" (function_definition) "unsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "sys_jiffies(void)" (identifier) "sys_jiffies" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}" ({) "{" (return_statement) "return (unsigned int)(HAL_GetTick()/(1000/HZ));" (return) "return" (cast_expression) "(unsigned int)(HAL_GetTick()/(1000/HZ))" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (parenthesized_expression) "(HAL_GetTick()/(1000/HZ))" (() "(" (binary_expression) "HAL_GetTick()/(1000/HZ)" (call_expression) "HAL_GetTick()" (identifier) "HAL_GetTick" (argument_list) "()" (() "(" ()) ")" (/) "/" (parenthesized_expression) "(1000/HZ)" (() "(" (binary_expression) "1000/HZ" (number_literal) "1000" (/) "/" (identifier) "HZ" ()) ")" ()) ")" (;) ";" (}) "}" (preproc_include) "#include <sys/time.h>\n" (#include) "#include" (system_lib_string) "<sys/time.h>" (function_definition) "int _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}" (primitive_type) "int" (function_declarator) "_gettimeofday( struct timeval *tv, void *tzvp )" (identifier) "_gettimeofday" (parameter_list) "( struct timeval *tv, void *tzvp )" (() "(" (parameter_declaration) "struct timeval *tv" (struct_specifier) "struct timeval" (struct) "struct" (type_identifier) "timeval" (pointer_declarator) "*tv" (*) "*" (identifier) "tv" (,) "," (parameter_declaration) "void *tzvp" (primitive_type) "void" (pointer_declarator) "*tzvp" (*) "*" (identifier) "tzvp" ()) ")" (compound_statement) "{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}" ({) "{" (declaration) "uint64_t t = HAL_GetTick();" (primitive_type) "uint64_t" (init_declarator) "t = HAL_GetTick()" (identifier) "t" (=) "=" (call_expression) "HAL_GetTick()" (identifier) "HAL_GetTick" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "tv->tv_sec = t / 1000;" (assignment_expression) "tv->tv_sec = t / 1000" (field_expression) "tv->tv_sec" (identifier) "tv" (->) "->" (field_identifier) "tv_sec" (=) "=" (binary_expression) "t / 1000" (identifier) "t" (/) "/" (number_literal) "1000" (;) ";" (comment) "// convert to seconds" (expression_statement) "tv->tv_usec = t * 1000;" (assignment_expression) "tv->tv_usec = t * 1000" (field_expression) "tv->tv_usec" (identifier) "tv" (->) "->" (field_identifier) "tv_usec" (=) "=" (binary_expression) "t * 1000" (identifier) "t" (*) "*" (number_literal) "1000" (;) ";" (comment) "// get remaining microseconds" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* of __unix__ */"
498
0
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 18.39, "nodes": 330, "errors": 0, "source_hash": "143dbcb213bb51e10d859ae056948e667bb3b7c0da326807a319872b521827ab", "categorized_nodes": 232}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __linux\n/* Linux needs this for POSIX compatibility */\n#ifndef _POSIX_C_SOURCE\n#define _POSIX_C_SOURCE 199506L\n#endif /* of !_POSIX_C_SOURCE */\n#endif", "parent": null, "children": [1, 2, 3, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 1, "type": "#ifdef", "text": "#ifdef", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 2, "type": "identifier", "text": "__linux", "parent": 0, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 14}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef _POSIX_C_SOURCE\n#define _POSIX_C_SOURCE 199506L\n#endif", "parent": 0, "children": [4, 5, 6, 10], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "identifier", "text": "_POSIX_C_SOURCE", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 6, "type": "preproc_def", "text": "#define _POSIX_C_SOURCE 199506L\n", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 8, "type": "identifier", "text": "_POSIX_C_SOURCE", "parent": 6, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 23}}, {"id": 9, "type": "preproc_arg", "text": "199506L", "parent": 6, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 31}}, {"id": 10, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 11, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 12, "type": "preproc_ifdef", "text": "#ifdef __unix__\n#include <sys/types.h>\n#include <time.h>\n\n\nint\np_delay(unsigned int seconds)\n{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)seconds;\n t.tv_nsec = 0;\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n struct timespec t;\n int result;\n\n if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n#else\n\n\n#include \"FreeRTOS.h\"\n#include \"task.h\"\n#include \"semphr.h\"\n\nextern uint32_t HAL_GetTick(void);\n\nint\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}\n\nunsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}\n\n#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif\n\n#ifndef HZ\n#define HZ 100\n#endif\n\nunsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}\n\n#include <sys/time.h>\n\nint _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}\n\n\n#endif", "parent": null, "children": [13, 14, 15, 18, 21, 67, 154, 329], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 109, "column": 6}}, {"id": 13, "type": "#ifdef", "text": "#ifdef", "parent": 12, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 14, "type": "identifier", "text": "__unix__", "parent": 12, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 15}}, {"id": 15, "type": "preproc_include", "text": "#include <sys/types.h>\n", "parent": 12, "children": [16, 17], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<sys/types.h>", "parent": 15, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <time.h>\n", "parent": 12, "children": [19, 20], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<time.h>", "parent": 18, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 17}}, {"id": 21, "type": "function_definition", "text": "int\np_delay(unsigned int seconds)\n{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)seconds;\n t.tv_nsec = 0;\n\n result = nanosleep(&t, NULL);\n return (result);\n}", "parent": 12, "children": [22, 23], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 23, "type": "function_declarator", "text": "p_delay(unsigned int seconds)", "parent": 21, "children": [24, 25], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 29}}, {"id": 24, "type": "identifier", "text": "p_delay", "parent": 23, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 25, "type": "parameter_list", "text": "(unsigned int seconds)", "parent": 23, "children": [26], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 29}}, {"id": 26, "type": "parameter_declaration", "text": "unsigned int seconds", "parent": 25, "children": [27, 30], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 28}}, {"id": 27, "type": "sized_type_specifier", "text": "unsigned int", "parent": 26, "children": [28, 29], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 20}}, {"id": 28, "type": "unsigned", "text": "unsigned", "parent": 27, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 29, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 20}}, {"id": 30, "type": "identifier", "text": "seconds", "parent": 26, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 28}}, {"id": 31, "type": "declaration", "text": "struct timespec t;", "parent": 21, "children": [32, 35], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 22}}, {"id": 32, "type": "struct_specifier", "text": "struct timespec", "parent": 31, "children": [33, 34], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 19}}, {"id": 33, "type": "struct", "text": "struct", "parent": 32, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 34, "type": "type_identifier", "text": "timespec", "parent": 32, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 19}}, {"id": 35, "type": "identifier", "text": "t", "parent": 31, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 36, "type": "declaration", "text": "int result;", "parent": 21, "children": [37, 38], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 7}}, {"id": 38, "type": "identifier", "text": "result", "parent": 36, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 14}}, {"id": 39, "type": "assignment_expression", "text": "t.tv_sec = (time_t)seconds", "parent": 21, "children": [40, 43, 44], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 30}}, {"id": 40, "type": "field_expression", "text": "t.tv_sec", "parent": 39, "children": [41, 42], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 41, "type": "identifier", "text": "t", "parent": 40, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 5}}, {"id": 42, "type": "field_identifier", "text": "tv_sec", "parent": 40, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 12}}, {"id": 43, "type": "=", "text": "=", "parent": 39, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 44, "type": "cast_expression", "text": "(time_t)seconds", "parent": 39, "children": [45, 47], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 30}}, {"id": 45, "type": "type_descriptor", "text": "time_t", "parent": 44, "children": [46], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 22}}, {"id": 46, "type": "type_identifier", "text": "time_t", "parent": 45, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 22}}, {"id": 47, "type": "identifier", "text": "seconds", "parent": 44, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 30}}, {"id": 48, "type": "assignment_expression", "text": "t.tv_nsec = 0", "parent": 21, "children": [49, 52, 53], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 17}}, {"id": 49, "type": "field_expression", "text": "t.tv_nsec", "parent": 48, "children": [50, 51], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 13}}, {"id": 50, "type": "identifier", "text": "t", "parent": 49, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 5}}, {"id": 51, "type": "field_identifier", "text": "tv_nsec", "parent": 49, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 13}}, {"id": 52, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 15}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 48, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 54, "type": "assignment_expression", "text": "result = nanosleep(&t, NULL)", "parent": 21, "children": [55, 56, 57], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 32}}, {"id": 55, "type": "identifier", "text": "result", "parent": 54, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 12}}, {"id": 57, "type": "call_expression", "text": "nanosleep(&t, NULL)", "parent": 54, "children": [58, 59], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 32}}, {"id": 58, "type": "identifier", "text": "nanosleep", "parent": 57, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 22}}, {"id": 59, "type": "argument_list", "text": "(&t, NULL)", "parent": 57, "children": [60, 62], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 32}}, {"id": 60, "type": "pointer_expression", "text": "&t", "parent": 59, "children": [61], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 25}}, {"id": 61, "type": "identifier", "text": "t", "parent": 60, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 62, "type": "null", "text": "NULL", "parent": 59, "children": [63], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 31}}, {"id": 63, "type": "NULL", "text": "NULL", "parent": 62, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 31}}, {"id": 64, "type": "return_statement", "text": "return (result);", "parent": 21, "children": [65], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 20}}, {"id": 65, "type": "parenthesized_expression", "text": "(result)", "parent": 64, "children": [66], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 19}}, {"id": 66, "type": "identifier", "text": "result", "parent": 65, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 18}}, {"id": 67, "type": "function_definition", "text": "int\np_mdelay(unsigned int milliseconds)\n{\n struct timespec t;\n int result;\n\n if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }\n\n result = nanosleep(&t, NULL);\n return (result);\n}", "parent": 12, "children": [68, 69], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 69, "type": "function_declarator", "text": "p_mdelay(unsigned int milliseconds)", "parent": 67, "children": [70, 71], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 35}}, {"id": 70, "type": "identifier", "text": "p_mdelay", "parent": 69, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 71, "type": "parameter_list", "text": "(unsigned int milliseconds)", "parent": 69, "children": [72], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 35}}, {"id": 72, "type": "parameter_declaration", "text": "unsigned int milliseconds", "parent": 71, "children": [73, 76], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 34}}, {"id": 73, "type": "sized_type_specifier", "text": "unsigned int", "parent": 72, "children": [74, 75], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 21}}, {"id": 74, "type": "unsigned", "text": "unsigned", "parent": 73, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 17}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 73, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 21}}, {"id": 76, "type": "identifier", "text": "milliseconds", "parent": 72, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 34}}, {"id": 77, "type": "declaration", "text": "struct timespec t;", "parent": 67, "children": [78, 81], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 22}}, {"id": 78, "type": "struct_specifier", "text": "struct timespec", "parent": 77, "children": [79, 80], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 19}}, {"id": 79, "type": "struct", "text": "struct", "parent": 78, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 10}}, {"id": 80, "type": "type_identifier", "text": "timespec", "parent": 78, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 19}}, {"id": 81, "type": "identifier", "text": "t", "parent": 77, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 21}}, {"id": 82, "type": "declaration", "text": "int result;", "parent": 67, "children": [83, 84], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 7}}, {"id": 84, "type": "identifier", "text": "result", "parent": 82, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 85, "type": "if_statement", "text": "if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }", "parent": 67, "children": [86, 110], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 45, "column": 5}}, {"id": 86, "type": "parenthesized_expression", "text": "(milliseconds < 1000)", "parent": 85, "children": [87], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 28}}, {"id": 87, "type": "binary_expression", "text": "milliseconds < 1000", "parent": 86, "children": [88, 89, 90], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 27}}, {"id": 88, "type": "identifier", "text": "milliseconds", "parent": 87, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 20}}, {"id": 89, "type": "<", "text": "<", "parent": 87, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 90, "type": "number_literal", "text": "1000", "parent": 87, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 27}}, {"id": 91, "type": "assignment_expression", "text": "t.tv_sec = 0", "parent": 85, "children": [92, 95, 96], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 20}}, {"id": 92, "type": "field_expression", "text": "t.tv_sec", "parent": 91, "children": [93, 94], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 16}}, {"id": 93, "type": "identifier", "text": "t", "parent": 92, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 9}}, {"id": 94, "type": "field_identifier", "text": "tv_sec", "parent": 92, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 16}}, {"id": 95, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 18}}, {"id": 96, "type": "number_literal", "text": "0", "parent": 91, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 20}}, {"id": 97, "type": "assignment_expression", "text": "t.tv_nsec = (long)milliseconds * 1000000", "parent": 85, "children": [98, 101, 102], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 48}}, {"id": 98, "type": "field_expression", "text": "t.tv_nsec", "parent": 97, "children": [99, 100], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 17}}, {"id": 99, "type": "identifier", "text": "t", "parent": 98, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 100, "type": "field_identifier", "text": "tv_nsec", "parent": 98, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 17}}, {"id": 101, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 102, "type": "binary_expression", "text": "(long)milliseconds * 1000000", "parent": 97, "children": [103, 108, 109], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 48}}, {"id": 103, "type": "cast_expression", "text": "(long)milliseconds", "parent": 102, "children": [104, 107], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 38}}, {"id": 104, "type": "type_descriptor", "text": "long", "parent": 103, "children": [105], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 25}}, {"id": 105, "type": "sized_type_specifier", "text": "long", "parent": 104, "children": [106], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 25}}, {"id": 106, "type": "long", "text": "long", "parent": 105, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 25}}, {"id": 107, "type": "identifier", "text": "milliseconds", "parent": 103, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 38}}, {"id": 108, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 40}}, {"id": 109, "type": "number_literal", "text": "1000000", "parent": 102, "children": [], "start_point": {"row": 41, "column": 41}, "end_point": {"row": 41, "column": 48}}, {"id": 110, "type": "else_clause", "text": "else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }", "parent": 85, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 45, "column": 5}}, {"id": 111, "type": "assignment_expression", "text": "t.tv_sec = (time_t)(milliseconds / 1000)", "parent": 110, "children": [112, 115, 116], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 48}}, {"id": 112, "type": "field_expression", "text": "t.tv_sec", "parent": 111, "children": [113, 114], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 113, "type": "identifier", "text": "t", "parent": 112, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 9}}, {"id": 114, "type": "field_identifier", "text": "tv_sec", "parent": 112, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 16}}, {"id": 115, "type": "=", "text": "=", "parent": 111, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 18}}, {"id": 116, "type": "call_expression", "text": "(time_t)(milliseconds / 1000)", "parent": 111, "children": [117, 119], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 48}}, {"id": 117, "type": "parenthesized_expression", "text": "(time_t)", "parent": 116, "children": [118], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 27}}, {"id": 118, "type": "identifier", "text": "time_t", "parent": 117, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 26}}, {"id": 119, "type": "argument_list", "text": "(milliseconds / 1000)", "parent": 116, "children": [120], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 48}}, {"id": 120, "type": "binary_expression", "text": "milliseconds / 1000", "parent": 119, "children": [121, 122, 123], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 47}}, {"id": 121, "type": "identifier", "text": "milliseconds", "parent": 120, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 40}}, {"id": 122, "type": "/", "text": "/", "parent": 120, "children": [], "start_point": {"row": 43, "column": 41}, "end_point": {"row": 43, "column": 42}}, {"id": 123, "type": "number_literal", "text": "1000", "parent": 120, "children": [], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 43, "column": 47}}, {"id": 124, "type": "assignment_expression", "text": "t.tv_nsec = (long)(milliseconds % 1000) * 1000000", "parent": 110, "children": [125, 128, 129], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 57}}, {"id": 125, "type": "field_expression", "text": "t.tv_nsec", "parent": 124, "children": [126, 127], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 17}}, {"id": 126, "type": "identifier", "text": "t", "parent": 125, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 127, "type": "field_identifier", "text": "tv_nsec", "parent": 125, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 17}}, {"id": 128, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 19}}, {"id": 129, "type": "binary_expression", "text": "(long)(milliseconds % 1000) * 1000000", "parent": 124, "children": [130, 139, 140], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 57}}, {"id": 130, "type": "cast_expression", "text": "(long)(milliseconds % 1000)", "parent": 129, "children": [131, 134], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 47}}, {"id": 131, "type": "type_descriptor", "text": "long", "parent": 130, "children": [132], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 25}}, {"id": 132, "type": "sized_type_specifier", "text": "long", "parent": 131, "children": [133], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 25}}, {"id": 133, "type": "long", "text": "long", "parent": 132, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 25}}, {"id": 134, "type": "parenthesized_expression", "text": "(milliseconds % 1000)", "parent": 130, "children": [135], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 47}}, {"id": 135, "type": "binary_expression", "text": "milliseconds % 1000", "parent": 134, "children": [136, 137, 138], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 46}}, {"id": 136, "type": "identifier", "text": "milliseconds", "parent": 135, "children": [], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 39}}, {"id": 137, "type": "%", "text": "%", "parent": 135, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 41}}, {"id": 138, "type": "number_literal", "text": "1000", "parent": 135, "children": [], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 46}}, {"id": 139, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 49}}, {"id": 140, "type": "number_literal", "text": "1000000", "parent": 129, "children": [], "start_point": {"row": 44, "column": 50}, "end_point": {"row": 44, "column": 57}}, {"id": 141, "type": "assignment_expression", "text": "result = nanosleep(&t, NULL)", "parent": 67, "children": [142, 143, 144], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 32}}, {"id": 142, "type": "identifier", "text": "result", "parent": 141, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 10}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 144, "type": "call_expression", "text": "nanosleep(&t, NULL)", "parent": 141, "children": [145, 146], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 32}}, {"id": 145, "type": "identifier", "text": "nanosleep", "parent": 144, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 22}}, {"id": 146, "type": "argument_list", "text": "(&t, NULL)", "parent": 144, "children": [147, 149], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 32}}, {"id": 147, "type": "pointer_expression", "text": "&t", "parent": 146, "children": [148], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 25}}, {"id": 148, "type": "identifier", "text": "t", "parent": 147, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 25}}, {"id": 149, "type": "null", "text": "NULL", "parent": 146, "children": [150], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 31}}, {"id": 150, "type": "NULL", "text": "NULL", "parent": 149, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 31}}, {"id": 151, "type": "return_statement", "text": "return (result);", "parent": 67, "children": [152], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 20}}, {"id": 152, "type": "parenthesized_expression", "text": "(result)", "parent": 151, "children": [153], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 19}}, {"id": 153, "type": "identifier", "text": "result", "parent": 152, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 154, "type": "preproc_else", "text": "#else\n\n\n#include \"FreeRTOS.h\"\n#include \"task.h\"\n#include \"semphr.h\"\n\nextern uint32_t HAL_GetTick(void);\n\nint\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}\n\nunsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}\n\n#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif\n\n#ifndef HZ\n#define HZ 100\n#endif\n\nunsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}\n\n#include <sys/time.h>\n\nint _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}", "parent": 12, "children": [155, 156, 159, 162, 165, 174, 205, 221, 239, 247, 255, 281, 284], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 155, "type": "#else", "text": "#else", "parent": 154, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 5}}, {"id": 156, "type": "preproc_include", "text": "#include \"FreeRTOS.h\"\n", "parent": 154, "children": [157, 158], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 157, "type": "#include", "text": "#include", "parent": 156, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 8}}, {"id": 158, "type": "string_literal", "text": "\"FreeRTOS.h\"", "parent": 156, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 21}}, {"id": 159, "type": "preproc_include", "text": "#include \"task.h\"\n", "parent": 154, "children": [160, 161], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 160, "type": "#include", "text": "#include", "parent": 159, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 8}}, {"id": 161, "type": "string_literal", "text": "\"task.h\"", "parent": 159, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 17}}, {"id": 162, "type": "preproc_include", "text": "#include \"semphr.h\"\n", "parent": 154, "children": [163, 164], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 163, "type": "#include", "text": "#include", "parent": 162, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 8}}, {"id": 164, "type": "string_literal", "text": "\"semphr.h\"", "parent": 162, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 19}}, {"id": 165, "type": "declaration", "text": "extern uint32_t HAL_GetTick(void);", "parent": 154, "children": [166, 168, 169], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 34}}, {"id": 166, "type": "storage_class_specifier", "text": "extern", "parent": 165, "children": [167], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 167, "type": "extern", "text": "extern", "parent": 166, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 168, "type": "primitive_type", "text": "uint32_t", "parent": 165, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 15}}, {"id": 169, "type": "function_declarator", "text": "HAL_GetTick(void)", "parent": 165, "children": [170, 171], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 33}}, {"id": 170, "type": "identifier", "text": "HAL_GetTick", "parent": 169, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 27}}, {"id": 171, "type": "parameter_list", "text": "(void)", "parent": 169, "children": [172], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 33}}, {"id": 172, "type": "parameter_declaration", "text": "void", "parent": 171, "children": [173], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 32}}, {"id": 173, "type": "primitive_type", "text": "void", "parent": 172, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 32}}, {"id": 174, "type": "function_definition", "text": "int\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}", "parent": 154, "children": [175, 176], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 175, "type": "primitive_type", "text": "int", "parent": 174, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 3}}, {"id": 176, "type": "function_declarator", "text": "p_delay(unsigned int seconds)", "parent": 174, "children": [177, 178], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 29}}, {"id": 177, "type": "identifier", "text": "p_delay", "parent": 176, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 178, "type": "parameter_list", "text": "(unsigned int seconds)", "parent": 176, "children": [179], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 29}}, {"id": 179, "type": "parameter_declaration", "text": "unsigned int seconds", "parent": 178, "children": [180, 183], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 28}}, {"id": 180, "type": "sized_type_specifier", "text": "unsigned int", "parent": 179, "children": [181, 182], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 20}}, {"id": 181, "type": "unsigned", "text": "unsigned", "parent": 180, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 16}}, {"id": 182, "type": "primitive_type", "text": "int", "parent": 180, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 20}}, {"id": 183, "type": "identifier", "text": "seconds", "parent": 179, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 28}}, {"id": 184, "type": "declaration", "text": "int i;", "parent": 174, "children": [185, 186], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 10}}, {"id": 185, "type": "primitive_type", "text": "int", "parent": 184, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 7}}, {"id": 186, "type": "identifier", "text": "i", "parent": 184, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 187, "type": "for_statement", "text": "for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }", "parent": 174, "children": [188, 192, 196], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 66, "column": 5}}, {"id": 188, "type": "assignment_expression", "text": "i=0", "parent": 187, "children": [189, 190, 191], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 11}}, {"id": 189, "type": "identifier", "text": "i", "parent": 188, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 190, "type": "=", "text": "=", "parent": 188, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 10}}, {"id": 191, "type": "number_literal", "text": "0", "parent": 188, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 192, "type": "binary_expression", "text": "i<seconds", "parent": 187, "children": [193, 194, 195], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 21}}, {"id": 193, "type": "identifier", "text": "i", "parent": 192, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 194, "type": "<", "text": "<", "parent": 192, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 14}}, {"id": 195, "type": "identifier", "text": "seconds", "parent": 192, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 21}}, {"id": 196, "type": "update_expression", "text": "i++", "parent": 187, "children": [197, 198], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 25}}, {"id": 197, "type": "identifier", "text": "i", "parent": 196, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 23}}, {"id": 198, "type": "++", "text": "++", "parent": 196, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 25}}, {"id": 199, "type": "call_expression", "text": "vTaskDelay(1000)", "parent": 187, "children": [200, 201], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 24}}, {"id": 200, "type": "identifier", "text": "vTaskDelay", "parent": 199, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 18}}, {"id": 201, "type": "argument_list", "text": "(1000)", "parent": 199, "children": [202], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 24}}, {"id": 202, "type": "number_literal", "text": "1000", "parent": 201, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 23}}, {"id": 203, "type": "return_statement", "text": "return 0;", "parent": 174, "children": [204], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 13}}, {"id": 204, "type": "number_literal", "text": "0", "parent": 203, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 12}}, {"id": 205, "type": "function_definition", "text": "int\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}", "parent": 154, "children": [206, 207], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 206, "type": "primitive_type", "text": "int", "parent": 205, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 3}}, {"id": 207, "type": "function_declarator", "text": "p_mdelay(unsigned int milliseconds)", "parent": 205, "children": [208, 209], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 35}}, {"id": 208, "type": "identifier", "text": "p_mdelay", "parent": 207, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 8}}, {"id": 209, "type": "parameter_list", "text": "(unsigned int milliseconds)", "parent": 207, "children": [210], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 35}}, {"id": 210, "type": "parameter_declaration", "text": "unsigned int milliseconds", "parent": 209, "children": [211, 214], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 34}}, {"id": 211, "type": "sized_type_specifier", "text": "unsigned int", "parent": 210, "children": [212, 213], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 21}}, {"id": 212, "type": "unsigned", "text": "unsigned", "parent": 211, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 17}}, {"id": 213, "type": "primitive_type", "text": "int", "parent": 211, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 21}}, {"id": 214, "type": "identifier", "text": "milliseconds", "parent": 210, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 34}}, {"id": 215, "type": "call_expression", "text": "vTaskDelay(milliseconds)", "parent": 205, "children": [216, 217], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 28}}, {"id": 216, "type": "identifier", "text": "vTaskDelay", "parent": 215, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 14}}, {"id": 217, "type": "argument_list", "text": "(milliseconds)", "parent": 215, "children": [218], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 28}}, {"id": 218, "type": "identifier", "text": "milliseconds", "parent": 217, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 27}}, {"id": 219, "type": "return_statement", "text": "return 0;", "parent": 205, "children": [220], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 13}}, {"id": 220, "type": "number_literal", "text": "0", "parent": 219, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 12}}, {"id": 221, "type": "function_definition", "text": "unsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}", "parent": 154, "children": [222, 225], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 222, "type": "sized_type_specifier", "text": "unsigned int", "parent": 221, "children": [223, 224], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 12}}, {"id": 223, "type": "unsigned", "text": "unsigned", "parent": 222, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 8}}, {"id": 224, "type": "primitive_type", "text": "int", "parent": 222, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 12}}, {"id": 225, "type": "function_declarator", "text": "sys_now(void)", "parent": 221, "children": [226, 227], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 13}}, {"id": 226, "type": "identifier", "text": "sys_now", "parent": 225, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 7}}, {"id": 227, "type": "parameter_list", "text": "(void)", "parent": 225, "children": [228], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 13}}, {"id": 228, "type": "parameter_declaration", "text": "void", "parent": 227, "children": [229], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 12}}, {"id": 229, "type": "primitive_type", "text": "void", "parent": 228, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 12}}, {"id": 230, "type": "return_statement", "text": "return (unsigned int)HAL_GetTick();", "parent": 221, "children": [231], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 37}}, {"id": 231, "type": "cast_expression", "text": "(unsigned int)HAL_GetTick()", "parent": 230, "children": [232, 236], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 36}}, {"id": 232, "type": "type_descriptor", "text": "unsigned int", "parent": 231, "children": [233], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 22}}, {"id": 233, "type": "sized_type_specifier", "text": "unsigned int", "parent": 232, "children": [234, 235], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 22}}, {"id": 234, "type": "unsigned", "text": "unsigned", "parent": 233, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 18}}, {"id": 235, "type": "primitive_type", "text": "int", "parent": 233, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 22}}, {"id": 236, "type": "call_expression", "text": "HAL_GetTick()", "parent": 231, "children": [237, 238], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 36}}, {"id": 237, "type": "identifier", "text": "HAL_GetTick", "parent": 236, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 34}}, {"id": 238, "type": "argument_list", "text": "()", "parent": 236, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 36}}, {"id": 239, "type": "preproc_ifdef", "text": "#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif", "parent": 154, "children": [240, 241, 242, 246], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 86, "column": 6}}, {"id": 240, "type": "#ifndef", "text": "#ifndef", "parent": 239, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 7}}, {"id": 241, "type": "identifier", "text": "MAX_JIFFY_OFFSET", "parent": 239, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 24}}, {"id": 242, "type": "preproc_def", "text": "#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n", "parent": 239, "children": [243, 244, 245], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 86, "column": 0}}, {"id": 243, "type": "#define", "text": "#define", "parent": 242, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 7}}, {"id": 244, "type": "identifier", "text": "MAX_JIFFY_OFFSET", "parent": 242, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 24}}, {"id": 245, "type": "preproc_arg", "text": "((~0U >> 1)-1)", "parent": 242, "children": [], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 39}}, {"id": 246, "type": "#endif", "text": "#endif", "parent": 239, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 6}}, {"id": 247, "type": "preproc_ifdef", "text": "#ifndef HZ\n#define HZ 100\n#endif", "parent": 154, "children": [248, 249, 250, 254], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 90, "column": 6}}, {"id": 248, "type": "#ifndef", "text": "#ifndef", "parent": 247, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 7}}, {"id": 249, "type": "identifier", "text": "HZ", "parent": 247, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 10}}, {"id": 250, "type": "preproc_def", "text": "#define HZ 100\n", "parent": 247, "children": [251, 252, 253], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 90, "column": 0}}, {"id": 251, "type": "#define", "text": "#define", "parent": 250, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 7}}, {"id": 252, "type": "identifier", "text": "HZ", "parent": 250, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 10}}, {"id": 253, "type": "preproc_arg", "text": "100", "parent": 250, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 14}}, {"id": 254, "type": "#endif", "text": "#endif", "parent": 247, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 6}}, {"id": 255, "type": "function_definition", "text": "unsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}", "parent": 154, "children": [256, 259], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 256, "type": "sized_type_specifier", "text": "unsigned int", "parent": 255, "children": [257, 258], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 12}}, {"id": 257, "type": "unsigned", "text": "unsigned", "parent": 256, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 8}}, {"id": 258, "type": "primitive_type", "text": "int", "parent": 256, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 12}}, {"id": 259, "type": "function_declarator", "text": "sys_jiffies(void)", "parent": 255, "children": [260, 261], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 17}}, {"id": 260, "type": "identifier", "text": "sys_jiffies", "parent": 259, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 11}}, {"id": 261, "type": "parameter_list", "text": "(void)", "parent": 259, "children": [262], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 17}}, {"id": 262, "type": "parameter_declaration", "text": "void", "parent": 261, "children": [263], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 16}}, {"id": 263, "type": "primitive_type", "text": "void", "parent": 262, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 16}}, {"id": 264, "type": "return_statement", "text": "return (unsigned int)(HAL_GetTick()/(1000/HZ));", "parent": 255, "children": [265], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 51}}, {"id": 265, "type": "cast_expression", "text": "(unsigned int)(HAL_GetTick()/(1000/HZ))", "parent": 264, "children": [266, 270], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 50}}, {"id": 266, "type": "type_descriptor", "text": "unsigned int", "parent": 265, "children": [267], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 24}}, {"id": 267, "type": "sized_type_specifier", "text": "unsigned int", "parent": 266, "children": [268, 269], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 24}}, {"id": 268, "type": "unsigned", "text": "unsigned", "parent": 267, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 20}}, {"id": 269, "type": "primitive_type", "text": "int", "parent": 267, "children": [], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 24}}, {"id": 270, "type": "parenthesized_expression", "text": "(HAL_GetTick()/(1000/HZ))", "parent": 265, "children": [271], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 50}}, {"id": 271, "type": "binary_expression", "text": "HAL_GetTick()/(1000/HZ)", "parent": 270, "children": [272, 275, 276], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 49}}, {"id": 272, "type": "call_expression", "text": "HAL_GetTick()", "parent": 271, "children": [273, 274], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 39}}, {"id": 273, "type": "identifier", "text": "HAL_GetTick", "parent": 272, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 37}}, {"id": 274, "type": "argument_list", "text": "()", "parent": 272, "children": [], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 39}}, {"id": 275, "type": "/", "text": "/", "parent": 271, "children": [], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 40}}, {"id": 276, "type": "parenthesized_expression", "text": "(1000/HZ)", "parent": 271, "children": [277], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 49}}, {"id": 277, "type": "binary_expression", "text": "1000/HZ", "parent": 276, "children": [278, 279, 280], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 48}}, {"id": 278, "type": "number_literal", "text": "1000", "parent": 277, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 45}}, {"id": 279, "type": "/", "text": "/", "parent": 277, "children": [], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 46}}, {"id": 280, "type": "identifier", "text": "HZ", "parent": 277, "children": [], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 48}}, {"id": 281, "type": "preproc_include", "text": "#include <sys/time.h>\n", "parent": 154, "children": [282, 283], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 282, "type": "#include", "text": "#include", "parent": 281, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 8}}, {"id": 283, "type": "system_lib_string", "text": "<sys/time.h>", "parent": 281, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 21}}, {"id": 284, "type": "function_definition", "text": "int _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}", "parent": 154, "children": [285, 286], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 285, "type": "primitive_type", "text": "int", "parent": 284, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 3}}, {"id": 286, "type": "function_declarator", "text": "_gettimeofday( struct timeval *tv, void *tzvp )", "parent": 284, "children": [287, 288], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 51}}, {"id": 287, "type": "identifier", "text": "_gettimeofday", "parent": 286, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 17}}, {"id": 288, "type": "parameter_list", "text": "( struct timeval *tv, void *tzvp )", "parent": 286, "children": [289, 296], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 51}}, {"id": 289, "type": "parameter_declaration", "text": "struct timeval *tv", "parent": 288, "children": [290, 293], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 37}}, {"id": 290, "type": "struct_specifier", "text": "struct timeval", "parent": 289, "children": [291, 292], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 33}}, {"id": 291, "type": "struct", "text": "struct", "parent": 290, "children": [], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 25}}, {"id": 292, "type": "type_identifier", "text": "timeval", "parent": 290, "children": [], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 33}}, {"id": 293, "type": "pointer_declarator", "text": "*tv", "parent": 289, "children": [294, 295], "start_point": {"row": 100, "column": 34}, "end_point": {"row": 100, "column": 37}}, {"id": 294, "type": "*", "text": "*", "parent": 293, "children": [], "start_point": {"row": 100, "column": 34}, "end_point": {"row": 100, "column": 35}}, {"id": 295, "type": "identifier", "text": "tv", "parent": 293, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 37}}, {"id": 296, "type": "parameter_declaration", "text": "void *tzvp", "parent": 288, "children": [297, 298], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 49}}, {"id": 297, "type": "primitive_type", "text": "void", "parent": 296, "children": [], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 43}}, {"id": 298, "type": "pointer_declarator", "text": "*tzvp", "parent": 296, "children": [299, 300], "start_point": {"row": 100, "column": 44}, "end_point": {"row": 100, "column": 49}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 100, "column": 44}, "end_point": {"row": 100, "column": 45}}, {"id": 300, "type": "identifier", "text": "tzvp", "parent": 298, "children": [], "start_point": {"row": 100, "column": 45}, "end_point": {"row": 100, "column": 49}}, {"id": 301, "type": "declaration", "text": "uint64_t t = HAL_GetTick();", "parent": 284, "children": [302, 303], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 31}}, {"id": 302, "type": "primitive_type", "text": "uint64_t", "parent": 301, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 12}}, {"id": 303, "type": "init_declarator", "text": "t = HAL_GetTick()", "parent": 301, "children": [304, 305, 306], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 30}}, {"id": 304, "type": "identifier", "text": "t", "parent": 303, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 14}}, {"id": 305, "type": "=", "text": "=", "parent": 303, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 16}}, {"id": 306, "type": "call_expression", "text": "HAL_GetTick()", "parent": 303, "children": [307, 308], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 30}}, {"id": 307, "type": "identifier", "text": "HAL_GetTick", "parent": 306, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 28}}, {"id": 308, "type": "argument_list", "text": "()", "parent": 306, "children": [], "start_point": {"row": 102, "column": 28}, "end_point": {"row": 102, "column": 30}}, {"id": 309, "type": "assignment_expression", "text": "tv->tv_sec = t / 1000", "parent": 284, "children": [310, 313, 314], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 25}}, {"id": 310, "type": "field_expression", "text": "tv->tv_sec", "parent": 309, "children": [311, 312], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 14}}, {"id": 311, "type": "identifier", "text": "tv", "parent": 310, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 6}}, {"id": 312, "type": "field_identifier", "text": "tv_sec", "parent": 310, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 14}}, {"id": 313, "type": "=", "text": "=", "parent": 309, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 16}}, {"id": 314, "type": "binary_expression", "text": "t / 1000", "parent": 309, "children": [315, 316, 317], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 25}}, {"id": 315, "type": "identifier", "text": "t", "parent": 314, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 316, "type": "/", "text": "/", "parent": 314, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 20}}, {"id": 317, "type": "number_literal", "text": "1000", "parent": 314, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 25}}, {"id": 318, "type": "assignment_expression", "text": "tv->tv_usec = t * 1000", "parent": 284, "children": [319, 322, 323], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 26}}, {"id": 319, "type": "field_expression", "text": "tv->tv_usec", "parent": 318, "children": [320, 321], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 15}}, {"id": 320, "type": "identifier", "text": "tv", "parent": 319, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 6}}, {"id": 321, "type": "field_identifier", "text": "tv_usec", "parent": 319, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 15}}, {"id": 322, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 17}}, {"id": 323, "type": "binary_expression", "text": "t * 1000", "parent": 318, "children": [324, 325, 326], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 26}}, {"id": 324, "type": "identifier", "text": "t", "parent": 323, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 19}}, {"id": 325, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 326, "type": "number_literal", "text": "1000", "parent": 323, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 26}}, {"id": 327, "type": "return_statement", "text": "return 0;", "parent": 284, "children": [328], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 13}}, {"id": 328, "type": "number_literal", "text": "0", "parent": 327, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 12}}, {"id": 329, "type": "#endif", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 23, 67, 69, 169, 174, 176, 205, 207, 221, 225, 255, 259, 284, 286], "variables": [26, 31, 36, 72, 77, 82, 165, 172, 179, 184, 210, 228, 262, 289, 296, 301], "classes": [32, 33, 78, 79, 166, 290, 291], "imports": [15, 16, 18, 19, 156, 157, 159, 160, 162, 163, 281, 282], "modules": [], "enums": []}, "statements": {"expressions": [40, 44, 49, 57, 60, 65, 86, 87, 92, 98, 102, 103, 112, 116, 117, 120, 125, 129, 130, 134, 135, 144, 147, 152, 192, 196, 199, 215, 231, 236, 265, 270, 271, 272, 276, 277, 306, 310, 314, 319, 323], "assignments": [39, 48, 54, 91, 97, 111, 124, 141, 188, 309, 318], "loops": [187], "conditionals": [0, 1, 2, 3, 4, 5, 8, 10, 11, 12, 13, 14, 24, 27, 30, 34, 35, 38, 41, 42, 46, 47, 50, 51, 55, 58, 61, 66, 70, 73, 76, 80, 81, 84, 85, 88, 93, 94, 99, 100, 105, 107, 113, 114, 118, 121, 126, 127, 132, 136, 142, 145, 148, 153, 170, 177, 180, 183, 186, 189, 193, 195, 197, 200, 208, 211, 214, 216, 218, 222, 226, 233, 237, 239, 240, 241, 244, 246, 247, 248, 249, 252, 254, 256, 260, 267, 273, 280, 287, 292, 295, 300, 304, 307, 311, 312, 315, 320, 321, 324, 329], "returns": [64, 151, 203, 219, 230, 264, 327], "exceptions": []}, "expressions": {"calls": [], "literals": [17, 20, 53, 90, 96, 109, 123, 138, 140, 158, 161, 164, 191, 202, 204, 220, 278, 283, 317, 326, 328], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "p_delay", "text_snippet": "int\np_delay(unsigned int seconds)\n{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)s"}, {"node_id": 23, "universal_type": "function", "name": "seconds)", "text_snippet": "p_delay(unsigned int seconds)"}, {"node_id": 67, "universal_type": "function", "name": "p_mdelay", "text_snippet": "int\np_mdelay(unsigned int milliseconds)\n{\n struct timespec t;\n int result;\n\n if (millisecon"}, {"node_id": 69, "universal_type": "function", "name": "milliseconds)", "text_snippet": "p_mdelay(unsigned int milliseconds)"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "HAL_GetTick(void)"}, {"node_id": 174, "universal_type": "function", "name": "p_delay", "text_snippet": "int\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);"}, {"node_id": 176, "universal_type": "function", "name": "seconds)", "text_snippet": "p_delay(unsigned int seconds)"}, {"node_id": 205, "universal_type": "function", "name": "p_mdelay", "text_snippet": "int\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}"}, {"node_id": 207, "universal_type": "function", "name": "milliseconds)", "text_snippet": "p_mdelay(unsigned int milliseconds)"}, {"node_id": 221, "universal_type": "function", "name": "sys_now", "text_snippet": "unsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}"}, {"node_id": 225, "universal_type": "function", "name": "unknown", "text_snippet": "sys_now(void)"}, {"node_id": 255, "universal_type": "function", "name": "sys_jiffies", "text_snippet": "unsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "sys_jiffies(void)"}, {"node_id": 284, "universal_type": "function", "name": "_gettimeofday", "text_snippet": "int _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec"}, {"node_id": 286, "universal_type": "function", "name": "timeval", "text_snippet": "_gettimeofday( struct timeval *tv, void *tzvp )"}], "class_declarations": [{"node_id": 32, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 33, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 78, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 166, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 290, "universal_type": "class", "name": "timeval", "text_snippet": "struct timeval"}, {"node_id": 291, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 15, "text": "#include <sys/types.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <time.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 156, "text": "#include \"FreeRTOS.h\"\n"}, {"node_id": 157, "text": "#include"}, {"node_id": 159, "text": "#include \"task.h\"\n"}, {"node_id": 160, "text": "#include"}, {"node_id": 162, "text": "#include \"semphr.h\"\n"}, {"node_id": 163, "text": "#include"}, {"node_id": 281, "text": "#include <sys/time.h>\n"}, {"node_id": 282, "text": "#include"}]}, "original_source_code": "/*!\n * @file portable_delay.c\n * @brief Portable Delay/Sleep functions\n * @author <NAME>\n * @date 2014/12/20\n */\n\n#ifdef __linux\n/* Linux needs this for POSIX compatibility */\n#ifndef _POSIX_C_SOURCE\n#define _POSIX_C_SOURCE 199506L\n#endif /* of !_POSIX_C_SOURCE */\n#endif /* of __linux */\n\n#ifdef __unix__\n#include <sys/types.h>\n#include <time.h>\n\n\nint\np_delay(unsigned int seconds)\n{\n struct timespec t;\n int result;\n\n t.tv_sec = (time_t)seconds;\n t.tv_nsec = 0;\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n struct timespec t;\n int result;\n\n if (milliseconds < 1000) {\n t.tv_sec = 0;\n t.tv_nsec = (long)milliseconds * 1000000;\n } else {\n t.tv_sec = (time_t)(milliseconds / 1000);\n t.tv_nsec = (long)(milliseconds % 1000) * 1000000;\n }\n\n result = nanosleep(&t, NULL);\n return (result);\n}\n\n#else\n\n\n#include \"FreeRTOS.h\"\n#include \"task.h\"\n#include \"semphr.h\"\n\nextern uint32_t HAL_GetTick(void);\n\nint\np_delay(unsigned int seconds)\n{\n int i;\n for(i=0;i<seconds;i++){\n vTaskDelay(1000);\n }\n return 0;\n}\n\n\nint\np_mdelay(unsigned int milliseconds)\n{\n vTaskDelay(milliseconds);\n return 0;\n}\n\nunsigned int\nsys_now(void)\n{\n return (unsigned int)HAL_GetTick();\n}\n\n#ifndef MAX_JIFFY_OFFSET\n#define MAX_JIFFY_OFFSET ((~0U >> 1)-1)\n#endif\n\n#ifndef HZ\n#define HZ 100\n#endif\n\nunsigned int\nsys_jiffies(void)\n{\n return (unsigned int)(HAL_GetTick()/(1000/HZ));\n}\n\n#include <sys/time.h>\n\nint _gettimeofday( struct timeval *tv, void *tzvp )\n{\n uint64_t t = HAL_GetTick();\n tv->tv_sec = t / 1000; // convert to seconds\n tv->tv_usec = t * 1000; // get remaining microseconds\n return 0;\n}\n\n\n#endif /* of __unix__ */\n"}
80,478
c
#ifndef PITCHANDROLL_H #define PITCHANDROLL_H #include "vector.h" /** * The purpose of this class is to calculate the pitch and roll after a number * of rotations around the X, Y and Z axis. The class also accepts a vector * describing "up" and a weight. The purpose of the "up" vector is to address * the drift caused by the rotations not being zero for a true zero rotation. * * The coordinate system is a ENU fixed on the platform (aircraft); it is not * earth referenced: * * | Positive direction | Positive rotation * --|--------------------|------------------------------------------- * X | Right | Nose down * Y | Forward | Right side down * Z | Up | Counter clockwise when seen from above * * Units are degrees and degrees per second. * */ class PitchAndRoll { public: PitchAndRoll(); /** * Provide rotations around the axis of the platform. * * @param gx Pitch in deg/s. Positive when nose up. * @param gy Roll in deg/s. Positive when right side down. * @param gz Yaw in deg/s. Positive CCW. * @param dt The time in seconds since the last Put. May not be negative. */ void Put(float gx, float gy, float gz, float dt); /** * Adjust the perception of "up" by a weighted vector. A weight of zero has * no impact. A weight of one will reset the perception of "up" with the * provided vector. * * @param x X value of the "up" vector. * @param y Y value of the "up" vector. * @param z Z value of the "up" vector. * @param gain The weight to attach to the provided vector. Must be in the * range 0.0 - 1.0 inclusive. Values outside this range will be * clamped. */ void Adjust(float x, float y, float z, float weight); float Roll(); float Pitch(); private: void Calculate(); private: /* * Normalized vector in the platform coordinate system pointing to earth "up". */ Vector m_up; float m_roll; // Degrees, positive right side down float m_pitch; // Degrees, positive nose up. }; #endif
31.32
65
(translation_unit) "#ifndef PITCHANDROLL_H\n#define PITCHANDROLL_H\n\n#include "vector.h"\n\n/**\n * The purpose of this class is to calculate the pitch and roll after a number\n * of rotations around the X, Y and Z axis. The class also accepts a vector\n * describing "up" and a weight. The purpose of the "up" vector is to address\n * the drift caused by the rotations not being zero for a true zero rotation.\n * \n * The coordinate system is a ENU fixed on the platform (aircraft); it is not\n * earth referenced:\n * \n * | Positive direction | Positive rotation\n * --|--------------------|-------------------------------------------\n * X | Right | Nose down\n * Y | Forward | Right side down\n * Z | Up | Counter clockwise when seen from above\n * \n * Units are degrees and degrees per second.\n * \n */\nclass PitchAndRoll {\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */\n void Put(float gx, float gy, float gz, float dt);\n \n /**\n * Adjust the perception of "up" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of "up" with the\n * provided vector.\n * \n * @param x X value of the "up" vector.\n * @param y Y value of the "up" vector.\n * @param z Z value of the "up" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */\n void Adjust(float x, float y, float z, float weight);\n \n float Roll();\n float Pitch();\n \nprivate:\n void Calculate();\n \nprivate:\n /*\n * Normalized vector in the platform coordinate system pointing to earth "up".\n */\n Vector m_up;\n \n float m_roll; // Degrees, positive right side down\n float m_pitch; // Degrees, positive nose up.\n};\n\n#endif\n" (preproc_ifdef) "#ifndef PITCHANDROLL_H\n#define PITCHANDROLL_H\n\n#include "vector.h"\n\n/**\n * The purpose of this class is to calculate the pitch and roll after a number\n * of rotations around the X, Y and Z axis. The class also accepts a vector\n * describing "up" and a weight. The purpose of the "up" vector is to address\n * the drift caused by the rotations not being zero for a true zero rotation.\n * \n * The coordinate system is a ENU fixed on the platform (aircraft); it is not\n * earth referenced:\n * \n * | Positive direction | Positive rotation\n * --|--------------------|-------------------------------------------\n * X | Right | Nose down\n * Y | Forward | Right side down\n * Z | Up | Counter clockwise when seen from above\n * \n * Units are degrees and degrees per second.\n * \n */\nclass PitchAndRoll {\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */\n void Put(float gx, float gy, float gz, float dt);\n \n /**\n * Adjust the perception of "up" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of "up" with the\n * provided vector.\n * \n * @param x X value of the "up" vector.\n * @param y Y value of the "up" vector.\n * @param z Z value of the "up" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */\n void Adjust(float x, float y, float z, float weight);\n \n float Roll();\n float Pitch();\n \nprivate:\n void Calculate();\n \nprivate:\n /*\n * Normalized vector in the platform coordinate system pointing to earth "up".\n */\n Vector m_up;\n \n float m_roll; // Degrees, positive right side down\n float m_pitch; // Degrees, positive nose up.\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "PITCHANDROLL_H" (preproc_def) "#define PITCHANDROLL_H\n" (#define) "#define" (identifier) "PITCHANDROLL_H" (preproc_include) "#include "vector.h"\n" (#include) "#include" (string_literal) ""vector.h"" (") """ (string_content) "vector.h" (") """ (comment) "/**\n * The purpose of this class is to calculate the pitch and roll after a number\n * of rotations around the X, Y and Z axis. The class also accepts a vector\n * describing "up" and a weight. The purpose of the "up" vector is to address\n * the drift caused by the rotations not being zero for a true zero rotation.\n * \n * The coordinate system is a ENU fixed on the platform (aircraft); it is not\n * earth referenced:\n * \n * | Positive direction | Positive rotation\n * --|--------------------|-------------------------------------------\n * X | Right | Nose down\n * Y | Forward | Right side down\n * Z | Up | Counter clockwise when seen from above\n * \n * Units are degrees and degrees per second.\n * \n */" (function_definition) "class PitchAndRoll {\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */\n void Put(float gx, float gy, float gz, float dt);\n \n /**\n * Adjust the perception of "up" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of "up" with the\n * provided vector.\n * \n * @param x X value of the "up" vector.\n * @param y Y value of the "up" vector.\n * @param z Z value of the "up" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */\n void Adjust(float x, float y, float z, float weight);\n \n float Roll();\n float Pitch();\n \nprivate:\n void Calculate();\n \nprivate:\n /*\n * Normalized vector in the platform coordinate system pointing to earth "up".\n */\n Vector m_up;\n \n float m_roll; // Degrees, positive right side down\n float m_pitch; // Degrees, positive nose up.\n}" (type_identifier) "class" (identifier) "PitchAndRoll" (compound_statement) "{\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */\n void Put(float gx, float gy, float gz, float dt);\n \n /**\n * Adjust the perception of "up" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of "up" with the\n * provided vector.\n * \n * @param x X value of the "up" vector.\n * @param y Y value of the "up" vector.\n * @param z Z value of the "up" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */\n void Adjust(float x, float y, float z, float weight);\n \n float Roll();\n float Pitch();\n \nprivate:\n void Calculate();\n \nprivate:\n /*\n * Normalized vector in the platform coordinate system pointing to earth "up".\n */\n Vector m_up;\n \n float m_roll; // Degrees, positive right side down\n float m_pitch; // Degrees, positive nose up.\n}" ({) "{" (labeled_statement) "public:\n PitchAndRoll();" (statement_identifier) "public" (:) ":" (expression_statement) "PitchAndRoll();" (call_expression) "PitchAndRoll()" (identifier) "PitchAndRoll" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */" (declaration) "void Put(float gx, float gy, float gz, float dt);" (primitive_type) "void" (function_declarator) "Put(float gx, float gy, float gz, float dt)" (identifier) "Put" (parameter_list) "(float gx, float gy, float gz, float dt)" (() "(" (parameter_declaration) "float gx" (primitive_type) "float" (identifier) "gx" (,) "," (parameter_declaration) "float gy" (primitive_type) "float" (identifier) "gy" (,) "," (parameter_declaration) "float gz" (primitive_type) "float" (identifier) "gz" (,) "," (parameter_declaration) "float dt" (primitive_type) "float" (identifier) "dt" ()) ")" (;) ";" (comment) "/**\n * Adjust the perception of "up" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of "up" with the\n * provided vector.\n * \n * @param x X value of the "up" vector.\n * @param y Y value of the "up" vector.\n * @param z Z value of the "up" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */" (declaration) "void Adjust(float x, float y, float z, float weight);" (primitive_type) "void" (function_declarator) "Adjust(float x, float y, float z, float weight)" (identifier) "Adjust" (parameter_list) "(float x, float y, float z, float weight)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" (,) "," (parameter_declaration) "float y" (primitive_type) "float" (identifier) "y" (,) "," (parameter_declaration) "float z" (primitive_type) "float" (identifier) "z" (,) "," (parameter_declaration) "float weight" (primitive_type) "float" (identifier) "weight" ()) ")" (;) ";" (declaration) "float Roll();" (primitive_type) "float" (function_declarator) "Roll()" (identifier) "Roll" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "float Pitch();" (primitive_type) "float" (function_declarator) "Pitch()" (identifier) "Pitch" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n void Calculate();" (statement_identifier) "private" (:) ":" (declaration) "void Calculate();" (primitive_type) "void" (function_declarator) "Calculate()" (identifier) "Calculate" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n /*\n * Normalized vector in the platform coordinate system pointing to earth "up".\n */\n Vector m_up;" (statement_identifier) "private" (:) ":" (comment) "/*\n * Normalized vector in the platform coordinate system pointing to earth "up".\n */" (declaration) "Vector m_up;" (type_identifier) "Vector" (identifier) "m_up" (;) ";" (declaration) "float m_roll;" (primitive_type) "float" (identifier) "m_roll" (;) ";" (comment) "// Degrees, positive right side down" (declaration) "float m_pitch;" (primitive_type) "float" (identifier) "m_pitch" (;) ";" (comment) "// Degrees, positive nose up." (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
126
0
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 31.32, "nodes": 76, "errors": 0, "source_hash": "f7a0c047e562fbeed589ef9b3acab7043fe2696f342fd0ad15082814248da741", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PITCHANDROLL_H\n#define PITCHANDROLL_H\n\n#include \"vector.h\"\n\n/**\n * The purpose of this class is to calculate the pitch and roll after a number\n * of rotations around the X, Y and Z axis. The class also accepts a vector\n * describing \"up\" and a weight. The purpose of the \"up\" vector is to address\n * the drift caused by the rotations not being zero for a true zero rotation.\n * \n * The coordinate system is a ENU fixed on the platform (aircraft); it is not\n * earth referenced:\n * \n * | Positive direction | Positive rotation\n * --|--------------------|-------------------------------------------\n * X | Right | Nose down\n * Y | Forward | Right side down\n * Z | Up | Counter clockwise when seen from above\n * \n * Units are degrees and degrees per second.\n * \n */\nclass PitchAndRoll {\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */\n void Put(float gx, float gy, float gz, float dt);\n \n /**\n * Adjust the perception of \"up\" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of \"up\" with the\n * provided vector.\n * \n * @param x X value of the \"up\" vector.\n * @param y Y value of the \"up\" vector.\n * @param z Z value of the \"up\" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */\n void Adjust(float x, float y, float z, float weight);\n \n float Roll();\n float Pitch();\n \nprivate:\n void Calculate();\n \nprivate:\n /*\n * Normalized vector in the platform coordinate system pointing to earth \"up\".\n */\n Vector m_up;\n \n float m_roll; // Degrees, positive right side down\n float m_pitch; // Degrees, positive nose up.\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 75], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "PITCHANDROLL_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define PITCHANDROLL_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": "PITCHANDROLL_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"vector.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": "\"vector.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "function_definition", "text": "class PitchAndRoll {\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */\n void Put(float gx, float gy, float gz, float dt);\n \n /**\n * Adjust the perception of \"up\" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of \"up\" with the\n * provided vector.\n * \n * @param x X value of the \"up\" vector.\n * @param y Y value of the \"up\" vector.\n * @param z Z value of the \"up\" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */\n void Adjust(float x, float y, float z, float weight);\n \n float Roll();\n float Pitch();\n \nprivate:\n void Calculate();\n \nprivate:\n /*\n * Normalized vector in the platform coordinate system pointing to earth \"up\".\n */\n Vector m_up;\n \n float m_roll; // Degrees, positive right side down\n float m_pitch; // Degrees, positive nose up.\n}", "parent": 0, "children": [10], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 10, "type": "identifier", "text": "PitchAndRoll", "parent": 9, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 18}}, {"id": 11, "type": "labeled_statement", "text": "public:\n PitchAndRoll();", "parent": 9, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 17}}, {"id": 12, "type": "call_expression", "text": "PitchAndRoll()", "parent": 11, "children": [13, 14], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 16}}, {"id": 13, "type": "identifier", "text": "PitchAndRoll", "parent": 12, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 14}}, {"id": 14, "type": "argument_list", "text": "()", "parent": 12, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 16}}, {"id": 15, "type": "declaration", "text": "void Put(float gx, float gy, float gz, float dt);", "parent": 9, "children": [16, 17], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 51}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 6}}, {"id": 17, "type": "function_declarator", "text": "Put(float gx, float gy, float gz, float dt)", "parent": 15, "children": [18, 19], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 50}}, {"id": 18, "type": "identifier", "text": "Put", "parent": 17, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 10}}, {"id": 19, "type": "parameter_list", "text": "(float gx, float gy, float gz, float dt)", "parent": 17, "children": [20, 23, 26, 29], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 50}}, {"id": 20, "type": "parameter_declaration", "text": "float gx", "parent": 19, "children": [21, 22], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 19}}, {"id": 21, "type": "primitive_type", "text": "float", "parent": 20, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 16}}, {"id": 22, "type": "identifier", "text": "gx", "parent": 20, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 19}}, {"id": 23, "type": "parameter_declaration", "text": "float gy", "parent": 19, "children": [24, 25], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 29}}, {"id": 24, "type": "primitive_type", "text": "float", "parent": 23, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 26}}, {"id": 25, "type": "identifier", "text": "gy", "parent": 23, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 29}}, {"id": 26, "type": "parameter_declaration", "text": "float gz", "parent": 19, "children": [27, 28], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 39}}, {"id": 27, "type": "primitive_type", "text": "float", "parent": 26, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 36}}, {"id": 28, "type": "identifier", "text": "gz", "parent": 26, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 39}}, {"id": 29, "type": "parameter_declaration", "text": "float dt", "parent": 19, "children": [30, 31], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 49}}, {"id": 30, "type": "primitive_type", "text": "float", "parent": 29, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 46}}, {"id": 31, "type": "identifier", "text": "dt", "parent": 29, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 49}}, {"id": 32, "type": "declaration", "text": "void Adjust(float x, float y, float z, float weight);", "parent": 9, "children": [33, 34], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 55}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 6}}, {"id": 34, "type": "function_declarator", "text": "Adjust(float x, float y, float z, float weight)", "parent": 32, "children": [35, 36], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 54}}, {"id": 35, "type": "identifier", "text": "Adjust", "parent": 34, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 13}}, {"id": 36, "type": "parameter_list", "text": "(float x, float y, float z, float weight)", "parent": 34, "children": [37, 40, 43, 46], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 54}}, {"id": 37, "type": "parameter_declaration", "text": "float x", "parent": 36, "children": [38, 39], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 21}}, {"id": 38, "type": "primitive_type", "text": "float", "parent": 37, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 19}}, {"id": 39, "type": "identifier", "text": "x", "parent": 37, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 40, "type": "parameter_declaration", "text": "float y", "parent": 36, "children": [41, 42], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 30}}, {"id": 41, "type": "primitive_type", "text": "float", "parent": 40, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 28}}, {"id": 42, "type": "identifier", "text": "y", "parent": 40, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 30}}, {"id": 43, "type": "parameter_declaration", "text": "float z", "parent": 36, "children": [44, 45], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 39}}, {"id": 44, "type": "primitive_type", "text": "float", "parent": 43, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 37}}, {"id": 45, "type": "identifier", "text": "z", "parent": 43, "children": [], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 49, "column": 39}}, {"id": 46, "type": "parameter_declaration", "text": "float weight", "parent": 36, "children": [47, 48], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 53}}, {"id": 47, "type": "primitive_type", "text": "float", "parent": 46, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 46}}, {"id": 48, "type": "identifier", "text": "weight", "parent": 46, "children": [], "start_point": {"row": 49, "column": 47}, "end_point": {"row": 49, "column": 53}}, {"id": 49, "type": "declaration", "text": "float Roll();", "parent": 9, "children": [50, 51], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 15}}, {"id": 50, "type": "primitive_type", "text": "float", "parent": 49, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 7}}, {"id": 51, "type": "function_declarator", "text": "Roll()", "parent": 49, "children": [52, 53], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 14}}, {"id": 52, "type": "identifier", "text": "Roll", "parent": 51, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 12}}, {"id": 53, "type": "parameter_list", "text": "()", "parent": 51, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 14}}, {"id": 54, "type": "declaration", "text": "float Pitch();", "parent": 9, "children": [55, 56], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 16}}, {"id": 55, "type": "primitive_type", "text": "float", "parent": 54, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 7}}, {"id": 56, "type": "function_declarator", "text": "Pitch()", "parent": 54, "children": [57, 58], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 15}}, {"id": 57, "type": "identifier", "text": "Pitch", "parent": 56, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 13}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 15}}, {"id": 59, "type": "labeled_statement", "text": "private:\n void Calculate();", "parent": 9, "children": [60], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 19}}, {"id": 60, "type": "declaration", "text": "void Calculate();", "parent": 59, "children": [61, 62], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 19}}, {"id": 61, "type": "primitive_type", "text": "void", "parent": 60, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 6}}, {"id": 62, "type": "function_declarator", "text": "Calculate()", "parent": 60, "children": [63, 64], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 18}}, {"id": 63, "type": "identifier", "text": "Calculate", "parent": 62, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 16}}, {"id": 64, "type": "parameter_list", "text": "()", "parent": 62, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 18}}, {"id": 65, "type": "labeled_statement", "text": "private:\n /*\n * Normalized vector in the platform coordinate system pointing to earth \"up\".\n */\n Vector m_up;", "parent": 9, "children": [66], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 61, "column": 14}}, {"id": 66, "type": "declaration", "text": "Vector m_up;", "parent": 65, "children": [67, 68], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 14}}, {"id": 67, "type": "type_identifier", "text": "Vector", "parent": 66, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 8}}, {"id": 68, "type": "identifier", "text": "m_up", "parent": 66, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 13}}, {"id": 69, "type": "declaration", "text": "float m_roll;", "parent": 9, "children": [70, 71], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 15}}, {"id": 70, "type": "primitive_type", "text": "float", "parent": 69, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 7}}, {"id": 71, "type": "identifier", "text": "m_roll", "parent": 69, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 72, "type": "declaration", "text": "float m_pitch;", "parent": 9, "children": [73, 74], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 16}}, {"id": 73, "type": "primitive_type", "text": "float", "parent": 72, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 7}}, {"id": 74, "type": "identifier", "text": "m_pitch", "parent": 72, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 15}}, {"id": 75, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 17, 34, 51, 56, 62], "variables": [15, 20, 23, 26, 29, 32, 37, 40, 43, 46, 49, 54, 60, 66, 69, 72], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [12], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 13, 18, 22, 25, 28, 31, 35, 39, 42, 45, 48, 52, 57, 63, 67, 68, 71, 74, 75], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "PitchAndRoll", "text_snippet": "class PitchAndRoll {\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of th"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "Put(float gx, float gy, float gz, float dt)"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "Adjust(float x, float y, float z, float weight)"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "Roll()"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "Pitch()"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "Calculate()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"vector.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef PITCHANDROLL_H\n#define PITCHANDROLL_H\n\n#include \"vector.h\"\n\n/**\n * The purpose of this class is to calculate the pitch and roll after a number\n * of rotations around the X, Y and Z axis. The class also accepts a vector\n * describing \"up\" and a weight. The purpose of the \"up\" vector is to address\n * the drift caused by the rotations not being zero for a true zero rotation.\n * \n * The coordinate system is a ENU fixed on the platform (aircraft); it is not\n * earth referenced:\n * \n * | Positive direction | Positive rotation\n * --|--------------------|-------------------------------------------\n * X | Right | Nose down\n * Y | Forward | Right side down\n * Z | Up | Counter clockwise when seen from above\n * \n * Units are degrees and degrees per second.\n * \n */\nclass PitchAndRoll {\npublic:\n PitchAndRoll();\n \n /**\n * Provide rotations around the axis of the platform.\n * \n * @param gx Pitch in deg/s. Positive when nose up.\n * @param gy Roll in deg/s. Positive when right side down.\n * @param gz Yaw in deg/s. Positive CCW.\n * @param dt The time in seconds since the last Put. May not be negative.\n */\n void Put(float gx, float gy, float gz, float dt);\n \n /**\n * Adjust the perception of \"up\" by a weighted vector. A weight of zero has\n * no impact. A weight of one will reset the perception of \"up\" with the\n * provided vector.\n * \n * @param x X value of the \"up\" vector.\n * @param y Y value of the \"up\" vector.\n * @param z Z value of the \"up\" vector.\n * @param gain The weight to attach to the provided vector. Must be in the\n * range 0.0 - 1.0 inclusive. Values outside this range will be\n * clamped.\n */\n void Adjust(float x, float y, float z, float weight);\n \n float Roll();\n float Pitch();\n \nprivate:\n void Calculate();\n \nprivate:\n /*\n * Normalized vector in the platform coordinate system pointing to earth \"up\".\n */\n Vector m_up;\n \n float m_roll; // Degrees, positive right side down\n float m_pitch; // Degrees, positive nose up.\n};\n\n#endif\n"}
80,479
c
/* -*- C++ -*- */ // Signal router. #ifndef _EVENT_ANALYZER_H #define _EVENT_ANALYZER_H #include "ace/Stream.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "ace/Module.h" #include "ace/Task.h" #if defined (ACE_HAS_THREADS) class Event_Analyzer : public ACE_Task<ACE_MT_SYNCH> { public: virtual int open (void *a = 0); virtual int close (u_long flags = 0); virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0); // Dynamic linking hooks. virtual int init (int argc, ACE_TCHAR *argv[]); virtual int fini (void); virtual int info (ACE_TCHAR **info_string, size_t length) const; private: virtual int control (ACE_Message_Block *); }; #endif /* ACE_HAS_THREADS */ #endif /* _EVENT_ANALYZER_H */
22.11
35
(translation_unit) "/* -*- C++ -*- */ \n// Signal router. \n \n#ifndef _EVENT_ANALYZER_H \n#define _EVENT_ANALYZER_H \n \n#include "ace/Stream.h" \n \n#if !defined (ACE_LACKS_PRAGMA_ONCE) \n# pragma once \n#endif /* ACE_LACKS_PRAGMA_ONCE */ \n \n#include "ace/Module.h" \n#include "ace/Task.h" \n \n#if defined (ACE_HAS_THREADS) \n \nclass Event_Analyzer : public ACE_Task<ACE_MT_SYNCH> \n{ \npublic: \n virtual int open (void *a = 0); \n virtual int close (u_long flags = 0); \n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0); \n \n // Dynamic linking hooks. \n virtual int init (int argc, ACE_TCHAR *argv[]); \n virtual int fini (void); \n virtual int info (ACE_TCHAR **info_string, size_t length) const; \n \nprivate: \n virtual int control (ACE_Message_Block *); \n}; \n \n#endif /* ACE_HAS_THREADS */ \n#endif /* _EVENT_ANALYZER_H */ \n" (comment) "/* -*- C++ -*- */" (comment) "// Signal router. " (preproc_ifdef) "#ifndef _EVENT_ANALYZER_H \n#define _EVENT_ANALYZER_H \n \n#include "ace/Stream.h" \n \n#if !defined (ACE_LACKS_PRAGMA_ONCE) \n# pragma once \n#endif /* ACE_LACKS_PRAGMA_ONCE */ \n \n#include "ace/Module.h" \n#include "ace/Task.h" \n \n#if defined (ACE_HAS_THREADS) \n \nclass Event_Analyzer : public ACE_Task<ACE_MT_SYNCH> \n{ \npublic: \n virtual int open (void *a = 0); \n virtual int close (u_long flags = 0); \n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0); \n \n // Dynamic linking hooks. \n virtual int init (int argc, ACE_TCHAR *argv[]); \n virtual int fini (void); \n virtual int info (ACE_TCHAR **info_string, size_t length) const; \n \nprivate: \n virtual int control (ACE_Message_Block *); \n}; \n \n#endif /* ACE_HAS_THREADS */ \n#endif" (#ifndef) "#ifndef" (identifier) "_EVENT_ANALYZER_H" (preproc_def) "#define _EVENT_ANALYZER_H \n" (#define) "#define" (identifier) "_EVENT_ANALYZER_H" (preproc_include) "#include "ace/Stream.h" \n" (#include) "#include" (string_literal) ""ace/Stream.h"" (") """ (string_content) "ace/Stream.h" (") """ (preproc_if) "#if !defined (ACE_LACKS_PRAGMA_ONCE) \n# pragma once \n#endif" (#if) "#if" (unary_expression) "!defined (ACE_LACKS_PRAGMA_ONCE)" (!) "!" (preproc_defined) "defined (ACE_LACKS_PRAGMA_ONCE)" (defined) "defined" (() "(" (identifier) "ACE_LACKS_PRAGMA_ONCE" ()) ")" ( ) "\n" (preproc_call) "# pragma once \n" (preproc_directive) "# pragma" (preproc_arg) "once " (#endif) "#endif" (comment) "/* ACE_LACKS_PRAGMA_ONCE */" (preproc_include) "#include "ace/Module.h" \n" (#include) "#include" (string_literal) ""ace/Module.h"" (") """ (string_content) "ace/Module.h" (") """ (preproc_include) "#include "ace/Task.h" \n" (#include) "#include" (string_literal) ""ace/Task.h"" (") """ (string_content) "ace/Task.h" (") """ (preproc_if) "#if defined (ACE_HAS_THREADS) \n \nclass Event_Analyzer : public ACE_Task<ACE_MT_SYNCH> \n{ \npublic: \n virtual int open (void *a = 0); \n virtual int close (u_long flags = 0); \n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0); \n \n // Dynamic linking hooks. \n virtual int init (int argc, ACE_TCHAR *argv[]); \n virtual int fini (void); \n virtual int info (ACE_TCHAR **info_string, size_t length) const; \n \nprivate: \n virtual int control (ACE_Message_Block *); \n}; \n \n#endif" (#if) "#if" (preproc_defined) "defined (ACE_HAS_THREADS)" (defined) "defined" (() "(" (identifier) "ACE_HAS_THREADS" ()) ")" ( ) "\n" (function_definition) "class Event_Analyzer : public ACE_Task<ACE_MT_SYNCH> \n{ \npublic: \n virtual int open (void *a = 0); \n virtual int close (u_long flags = 0); \n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0); \n \n // Dynamic linking hooks. \n virtual int init (int argc, ACE_TCHAR *argv[]); \n virtual int fini (void); \n virtual int info (ACE_TCHAR **info_string, size_t length) const; \n \nprivate: \n virtual int control (ACE_Message_Block *); \n}" (type_identifier) "class" (identifier) "Event_Analyzer" (ERROR) ": public ACE_Task<ACE_MT_SYNCH>" (:) ":" (identifier) "public" (identifier) "ACE_Task" (<) "<" (identifier) "ACE_MT_SYNCH" (>) ">" (compound_statement) "{ \npublic: \n virtual int open (void *a = 0); \n virtual int close (u_long flags = 0); \n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0); \n \n // Dynamic linking hooks. \n virtual int init (int argc, ACE_TCHAR *argv[]); \n virtual int fini (void); \n virtual int info (ACE_TCHAR **info_string, size_t length) const; \n \nprivate: \n virtual int control (ACE_Message_Block *); \n}" ({) "{" (labeled_statement) "public: \n virtual int" (statement_identifier) "public" (:) ":" (declaration) "virtual int" (type_identifier) "virtual" (identifier) "int" (;) "" (expression_statement) "open (void *a = 0);" (call_expression) "open (void *a = 0)" (identifier) "open" (argument_list) "(void *a = 0)" (() "(" (binary_expression) "void *a = 0" (identifier) "void" (*) "*" (assignment_expression) "a = 0" (identifier) "a" (=) "=" (number_literal) "0" ()) ")" (;) ";" (declaration) "virtual int close (u_long flags = 0);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (init_declarator) "close (u_long flags = 0" (function_declarator) "close (u_long flags" (identifier) "close" (parameter_list) "(u_long flags" (() "(" (parameter_declaration) "u_long flags" (type_identifier) "u_long" (identifier) "flags" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (declaration) "virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (init_declarator) "put (ACE_Message_Block *msg, ACE_Time_Value * = 0" (function_declarator) "put (ACE_Message_Block *msg, ACE_Time_Value *" (identifier) "put" (parameter_list) "(ACE_Message_Block *msg, ACE_Time_Value *" (() "(" (parameter_declaration) "ACE_Message_Block *msg" (type_identifier) "ACE_Message_Block" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" (,) "," (parameter_declaration) "ACE_Time_Value *" (type_identifier) "ACE_Time_Value" (abstract_pointer_declarator) "*" (*) "*" ()) "" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (comment) "// Dynamic linking hooks. " (declaration) "virtual int init (int argc, ACE_TCHAR *argv[]);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "init (int argc, ACE_TCHAR *argv[])" (identifier) "init" (parameter_list) "(int argc, ACE_TCHAR *argv[])" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "ACE_TCHAR *argv[]" (type_identifier) "ACE_TCHAR" (pointer_declarator) "*argv[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" ()) ")" (;) ";" (declaration) "virtual int fini (void);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "fini (void)" (identifier) "fini" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (ERROR) "virtual int info (ACE_TCHAR **info_string, size_t length) const" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "info (ACE_TCHAR **info_string, size_t length) const" (identifier) "info" (parameter_list) "(ACE_TCHAR **info_string, size_t length)" (() "(" (parameter_declaration) "ACE_TCHAR **info_string" (type_identifier) "ACE_TCHAR" (pointer_declarator) "**info_string" (*) "*" (pointer_declarator) "*info_string" (*) "*" (identifier) "info_string" (,) "," (parameter_declaration) "size_t length" (primitive_type) "size_t" (identifier) "length" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "private: \n virtual int control (ACE_Message_Block *);" (statement_identifier) "private" (:) ":" (declaration) "virtual int control (ACE_Message_Block *);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "control (ACE_Message_Block *)" (identifier) "control" (parameter_list) "(ACE_Message_Block *)" (() "(" (parameter_declaration) "ACE_Message_Block *" (type_identifier) "ACE_Message_Block" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/* ACE_HAS_THREADS */" (#endif) "#endif" (comment) "/* _EVENT_ANALYZER_H */"
208
10
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 22.11, "nodes": 142, "errors": 0, "source_hash": "897825acb74eb35eb098296774b383f2aa0430d625f7b46409dd846b61f90e02", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _EVENT_ANALYZER_H\r\n#define _EVENT_ANALYZER_H\r\n\r\n#include \"ace/Stream.h\"\r\n\r\n#if !defined (ACE_LACKS_PRAGMA_ONCE)\r\n# pragma once\r\n#endif /* ACE_LACKS_PRAGMA_ONCE */\r\n\r\n#include \"ace/Module.h\"\r\n#include \"ace/Task.h\"\r\n\r\n#if defined (ACE_HAS_THREADS)\r\n\r\nclass Event_Analyzer : public ACE_Task<ACE_MT_SYNCH>\r\n{\r\npublic:\r\n virtual int open (void *a = 0);\r\n virtual int close (u_long flags = 0);\r\n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);\r\n\r\n // Dynamic linking hooks.\r\n virtual int init (int argc, ACE_TCHAR *argv[]);\r\n virtual int fini (void);\r\n virtual int info (ACE_TCHAR **info_string, size_t length) const;\r\n\r\nprivate:\r\n virtual int control (ACE_Message_Block *);\r\n};\r\n\r\n#endif /* ACE_HAS_THREADS */\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 21, 24, 27, 141], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "identifier", "text": "_EVENT_ANALYZER_H", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define _EVENT_ANALYZER_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 5, "type": "identifier", "text": "_EVENT_ANALYZER_H", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include \"ace/Stream.h\"\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"ace/Stream.h\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 23}}, {"id": 9, "type": "preproc_if", "text": "#if !defined (ACE_LACKS_PRAGMA_ONCE)\r\n# pragma once\r\n#endif", "parent": 0, "children": [10, 11, 16, 17, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 10, "type": "#if", "text": "#if", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 11, "type": "unary_expression", "text": "!defined (ACE_LACKS_PRAGMA_ONCE)", "parent": 9, "children": [12, 13], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 36}}, {"id": 12, "type": "!", "text": "!", "parent": 11, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 13, "type": "preproc_defined", "text": "defined (ACE_LACKS_PRAGMA_ONCE)", "parent": 11, "children": [14, 15], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 36}}, {"id": 14, "type": "defined", "text": "defined", "parent": 13, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 12}}, {"id": 15, "type": "identifier", "text": "ACE_LACKS_PRAGMA_ONCE", "parent": 13, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 35}}, {"id": 16, "type": "\n", "text": "\n", "parent": 9, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 9, "column": 0}}, {"id": 17, "type": "preproc_call", "text": "# pragma once\r\n", "parent": 9, "children": [18, 19], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 18, "type": "preproc_directive", "text": "# pragma", "parent": 17, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 19, "type": "preproc_arg", "text": "once\r", "parent": 17, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 14}}, {"id": 20, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 21, "type": "preproc_include", "text": "#include \"ace/Module.h\"\r\n", "parent": 0, "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": "\"ace/Module.h\"", "parent": 21, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 23}}, {"id": 24, "type": "preproc_include", "text": "#include \"ace/Task.h\"\r\n", "parent": 0, "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": "\"ace/Task.h\"", "parent": 24, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 27, "type": "preproc_if", "text": "#if defined (ACE_HAS_THREADS)\r\n\r\nclass Event_Analyzer : public ACE_Task<ACE_MT_SYNCH>\r\n{\r\npublic:\r\n virtual int open (void *a = 0);\r\n virtual int close (u_long flags = 0);\r\n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);\r\n\r\n // Dynamic linking hooks.\r\n virtual int init (int argc, ACE_TCHAR *argv[]);\r\n virtual int fini (void);\r\n virtual int info (ACE_TCHAR **info_string, size_t length) const;\r\n\r\nprivate:\r\n virtual int control (ACE_Message_Block *);\r\n};\r\n\r\n#endif", "parent": 0, "children": [28, 29, 32, 33, 140], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 28, "type": "#if", "text": "#if", "parent": 27, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 3}}, {"id": 29, "type": "preproc_defined", "text": "defined (ACE_HAS_THREADS)", "parent": 27, "children": [30, 31], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 29}}, {"id": 30, "type": "defined", "text": "defined", "parent": 29, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 11}}, {"id": 31, "type": "identifier", "text": "ACE_HAS_THREADS", "parent": 29, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 28}}, {"id": 32, "type": "\n", "text": "\n", "parent": 27, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 16, "column": 0}}, {"id": 33, "type": "function_definition", "text": "class Event_Analyzer : public ACE_Task<ACE_MT_SYNCH>\r\n{\r\npublic:\r\n virtual int open (void *a = 0);\r\n virtual int close (u_long flags = 0);\r\n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);\r\n\r\n // Dynamic linking hooks.\r\n virtual int init (int argc, ACE_TCHAR *argv[]);\r\n virtual int fini (void);\r\n virtual int info (ACE_TCHAR **info_string, size_t length) const;\r\n\r\nprivate:\r\n virtual int control (ACE_Message_Block *);\r\n}", "parent": 27, "children": [34, 35], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 34, "type": "identifier", "text": "Event_Analyzer", "parent": 33, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 20}}, {"id": 35, "type": "ERROR", "text": ": public ACE_Task<ACE_MT_SYNCH>", "parent": 33, "children": [36, 37, 38, 39], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 52}}, {"id": 36, "type": "identifier", "text": "ACE_Task", "parent": 35, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 38}}, {"id": 37, "type": "<", "text": "<", "parent": 35, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 39}}, {"id": 38, "type": "identifier", "text": "ACE_MT_SYNCH", "parent": 35, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 51}}, {"id": 39, "type": ">", "text": ">", "parent": 35, "children": [], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 52}}, {"id": 40, "type": "labeled_statement", "text": "public:\r\n virtual int", "parent": 33, "children": [41], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 13}}, {"id": 41, "type": "declaration", "text": "virtual int", "parent": 40, "children": [42, 43], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 13}}, {"id": 42, "type": "type_identifier", "text": "virtual", "parent": 41, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 9}}, {"id": 43, "type": "identifier", "text": "int", "parent": 41, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 13}}, {"id": 44, "type": "call_expression", "text": "open (void *a = 0)", "parent": 33, "children": [45, 46], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 32}}, {"id": 45, "type": "identifier", "text": "open", "parent": 44, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 18}}, {"id": 46, "type": "argument_list", "text": "(void *a = 0)", "parent": 44, "children": [47], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 32}}, {"id": 47, "type": "binary_expression", "text": "void *a = 0", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 31}}, {"id": 48, "type": "identifier", "text": "void", "parent": 47, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 24}}, {"id": 49, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 26}}, {"id": 50, "type": "assignment_expression", "text": "a = 0", "parent": 47, "children": [51, 52, 53], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 31}}, {"id": 51, "type": "identifier", "text": "a", "parent": 50, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 27}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 29}}, {"id": 53, "type": "number_literal", "text": "0", "parent": 50, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 31}}, {"id": 54, "type": "declaration", "text": "virtual int close (u_long flags = 0);", "parent": 33, "children": [55, 56, 58], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 39}}, {"id": 55, "type": "type_identifier", "text": "virtual", "parent": 54, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 9}}, {"id": 56, "type": "ERROR", "text": "int", "parent": 54, "children": [57], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 13}}, {"id": 57, "type": "identifier", "text": "int", "parent": 56, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 13}}, {"id": 58, "type": "init_declarator", "text": "close (u_long flags = 0", "parent": 54, "children": [59, 65, 66], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 37}}, {"id": 59, "type": "function_declarator", "text": "close (u_long flags", "parent": 58, "children": [60, 61], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 33}}, {"id": 60, "type": "identifier", "text": "close", "parent": 59, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 19}}, {"id": 61, "type": "parameter_list", "text": "(u_long flags", "parent": 59, "children": [62], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 33}}, {"id": 62, "type": "parameter_declaration", "text": "u_long flags", "parent": 61, "children": [63, 64], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 33}}, {"id": 63, "type": "type_identifier", "text": "u_long", "parent": 62, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 27}}, {"id": 64, "type": "identifier", "text": "flags", "parent": 62, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 33}}, {"id": 65, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 35}}, {"id": 66, "type": "number_literal", "text": "0", "parent": 58, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 37}}, {"id": 67, "type": "declaration", "text": "virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);", "parent": 33, "children": [68, 69, 71], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 65}}, {"id": 68, "type": "type_identifier", "text": "virtual", "parent": 67, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 69, "type": "ERROR", "text": "int", "parent": 67, "children": [70], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 13}}, {"id": 70, "type": "identifier", "text": "int", "parent": 69, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 13}}, {"id": 71, "type": "init_declarator", "text": "put (ACE_Message_Block *msg, ACE_Time_Value * = 0", "parent": 67, "children": [72, 84, 85], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 63}}, {"id": 72, "type": "function_declarator", "text": "put (ACE_Message_Block *msg, ACE_Time_Value *", "parent": 71, "children": [73, 74], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 59}}, {"id": 73, "type": "identifier", "text": "put", "parent": 72, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 17}}, {"id": 74, "type": "parameter_list", "text": "(ACE_Message_Block *msg, ACE_Time_Value *", "parent": 72, "children": [75, 80], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 59}}, {"id": 75, "type": "parameter_declaration", "text": "ACE_Message_Block *msg", "parent": 74, "children": [76, 77], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 41}}, {"id": 76, "type": "type_identifier", "text": "ACE_Message_Block", "parent": 75, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 36}}, {"id": 77, "type": "pointer_declarator", "text": "*msg", "parent": 75, "children": [78, 79], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 41}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 38}}, {"id": 79, "type": "identifier", "text": "msg", "parent": 77, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 41}}, {"id": 80, "type": "parameter_declaration", "text": "ACE_Time_Value *", "parent": 74, "children": [81, 82], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 59}}, {"id": 81, "type": "type_identifier", "text": "ACE_Time_Value", "parent": 80, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 57}}, {"id": 82, "type": "abstract_pointer_declarator", "text": "*", "parent": 80, "children": [83], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 59}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 59}}, {"id": 84, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 22, "column": 60}, "end_point": {"row": 22, "column": 61}}, {"id": 85, "type": "number_literal", "text": "0", "parent": 71, "children": [], "start_point": {"row": 22, "column": 62}, "end_point": {"row": 22, "column": 63}}, {"id": 86, "type": "declaration", "text": "virtual int init (int argc, ACE_TCHAR *argv[]);", "parent": 33, "children": [87, 88, 90], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 49}}, {"id": 87, "type": "type_identifier", "text": "virtual", "parent": 86, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 9}}, {"id": 88, "type": "ERROR", "text": "int", "parent": 86, "children": [89], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 13}}, {"id": 89, "type": "identifier", "text": "int", "parent": 88, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 13}}, {"id": 90, "type": "function_declarator", "text": "init (int argc, ACE_TCHAR *argv[])", "parent": 86, "children": [91, 92], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 48}}, {"id": 91, "type": "identifier", "text": "init", "parent": 90, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 18}}, {"id": 92, "type": "parameter_list", "text": "(int argc, ACE_TCHAR *argv[])", "parent": 90, "children": [93, 96], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 48}}, {"id": 93, "type": "parameter_declaration", "text": "int argc", "parent": 92, "children": [94, 95], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 28}}, {"id": 94, "type": "primitive_type", "text": "int", "parent": 93, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 23}}, {"id": 95, "type": "identifier", "text": "argc", "parent": 93, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 28}}, {"id": 96, "type": "parameter_declaration", "text": "ACE_TCHAR *argv[]", "parent": 92, "children": [97, 98], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 47}}, {"id": 97, "type": "type_identifier", "text": "ACE_TCHAR", "parent": 96, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 39}}, {"id": 98, "type": "pointer_declarator", "text": "*argv[]", "parent": 96, "children": [99, 100], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 47}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 41}}, {"id": 100, "type": "array_declarator", "text": "argv[]", "parent": 98, "children": [101], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 47}}, {"id": 101, "type": "identifier", "text": "argv", "parent": 100, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 45}}, {"id": 102, "type": "declaration", "text": "virtual int fini (void);", "parent": 33, "children": [103, 104, 106], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 26}}, {"id": 103, "type": "type_identifier", "text": "virtual", "parent": 102, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 9}}, {"id": 104, "type": "ERROR", "text": "int", "parent": 102, "children": [105], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 13}}, {"id": 105, "type": "identifier", "text": "int", "parent": 104, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 13}}, {"id": 106, "type": "function_declarator", "text": "fini (void)", "parent": 102, "children": [107, 108], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 25}}, {"id": 107, "type": "identifier", "text": "fini", "parent": 106, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 18}}, {"id": 108, "type": "parameter_list", "text": "(void)", "parent": 106, "children": [109], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 25}}, {"id": 109, "type": "parameter_declaration", "text": "void", "parent": 108, "children": [110], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 24}}, {"id": 110, "type": "primitive_type", "text": "void", "parent": 109, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 24}}, {"id": 111, "type": "ERROR", "text": "virtual int info (ACE_TCHAR **info_string, size_t length) const", "parent": 33, "children": [112, 113, 115], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 65}}, {"id": 112, "type": "type_identifier", "text": "virtual", "parent": 111, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 9}}, {"id": 113, "type": "ERROR", "text": "int", "parent": 111, "children": [114], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 13}}, {"id": 114, "type": "identifier", "text": "int", "parent": 113, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 13}}, {"id": 115, "type": "function_declarator", "text": "info (ACE_TCHAR **info_string, size_t length) const", "parent": 111, "children": [116, 117], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 65}}, {"id": 116, "type": "identifier", "text": "info", "parent": 115, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 18}}, {"id": 117, "type": "parameter_list", "text": "(ACE_TCHAR **info_string, size_t length)", "parent": 115, "children": [118, 125], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 59}}, {"id": 118, "type": "parameter_declaration", "text": "ACE_TCHAR **info_string", "parent": 117, "children": [119, 120], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 43}}, {"id": 119, "type": "type_identifier", "text": "ACE_TCHAR", "parent": 118, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 29}}, {"id": 120, "type": "pointer_declarator", "text": "**info_string", "parent": 118, "children": [121, 122], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 43}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 31}}, {"id": 122, "type": "pointer_declarator", "text": "*info_string", "parent": 120, "children": [123, 124], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 43}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 32}}, {"id": 124, "type": "identifier", "text": "info_string", "parent": 122, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 43}}, {"id": 125, "type": "parameter_declaration", "text": "size_t length", "parent": 117, "children": [126, 127], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 58}}, {"id": 126, "type": "primitive_type", "text": "size_t", "parent": 125, "children": [], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 51}}, {"id": 127, "type": "identifier", "text": "length", "parent": 125, "children": [], "start_point": {"row": 27, "column": 52}, "end_point": {"row": 27, "column": 58}}, {"id": 128, "type": "labeled_statement", "text": "private:\r\n virtual int control (ACE_Message_Block *);", "parent": 33, "children": [129], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 44}}, {"id": 129, "type": "declaration", "text": "virtual int control (ACE_Message_Block *);", "parent": 128, "children": [130, 131, 133], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 44}}, {"id": 130, "type": "type_identifier", "text": "virtual", "parent": 129, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 131, "type": "ERROR", "text": "int", "parent": 129, "children": [132], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 13}}, {"id": 132, "type": "identifier", "text": "int", "parent": 131, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 13}}, {"id": 133, "type": "function_declarator", "text": "control (ACE_Message_Block *)", "parent": 129, "children": [134, 135], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 43}}, {"id": 134, "type": "identifier", "text": "control", "parent": 133, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 21}}, {"id": 135, "type": "parameter_list", "text": "(ACE_Message_Block *)", "parent": 133, "children": [136], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 43}}, {"id": 136, "type": "parameter_declaration", "text": "ACE_Message_Block *", "parent": 135, "children": [137, 138], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 42}}, {"id": 137, "type": "type_identifier", "text": "ACE_Message_Block", "parent": 136, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 40}}, {"id": 138, "type": "abstract_pointer_declarator", "text": "*", "parent": 136, "children": [139], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 42}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 42}}, {"id": 140, "type": "#endif", "text": "#endif", "parent": 27, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 141, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}]}, "node_categories": {"declarations": {"functions": [33, 59, 72, 90, 106, 115, 133], "variables": [41, 54, 62, 67, 75, 80, 86, 93, 96, 102, 109, 118, 125, 129, 136], "classes": [], "imports": [6, 7, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [11, 44, 47], "assignments": [50], "loops": [], "conditionals": [0, 1, 2, 5, 9, 10, 15, 20, 27, 28, 31, 34, 36, 38, 42, 43, 45, 48, 51, 55, 57, 60, 63, 64, 68, 70, 73, 76, 79, 81, 87, 89, 91, 95, 97, 101, 103, 105, 107, 112, 114, 116, 119, 124, 127, 130, 132, 134, 137, 140, 141], "returns": [], "exceptions": []}, "expressions": {"calls": [17], "literals": [8, 23, 26, 53, 66, 85], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 33, "universal_type": "function", "name": "Event_Analyzer", "text_snippet": "class Event_Analyzer : public ACE_Task<ACE_MT_SYNCH>\r\n{\r\npublic:\r\n virtual int open (void *a = 0);\r"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "close (u_long flags"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "put (ACE_Message_Block *msg, ACE_Time_Value *"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "init (int argc, ACE_TCHAR *argv[])"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "fini (void)"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "info (ACE_TCHAR **info_string, size_t length) const"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "control (ACE_Message_Block *)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"ace/Stream.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 21, "text": "#include \"ace/Module.h\"\r\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"ace/Task.h\"\r\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "/* -*- C++ -*- */\r\n// Signal router.\r\n\r\n#ifndef _EVENT_ANALYZER_H\r\n#define _EVENT_ANALYZER_H\r\n\r\n#include \"ace/Stream.h\"\r\n\r\n#if !defined (ACE_LACKS_PRAGMA_ONCE)\r\n# pragma once\r\n#endif /* ACE_LACKS_PRAGMA_ONCE */\r\n\r\n#include \"ace/Module.h\"\r\n#include \"ace/Task.h\"\r\n\r\n#if defined (ACE_HAS_THREADS)\r\n\r\nclass Event_Analyzer : public ACE_Task<ACE_MT_SYNCH>\r\n{\r\npublic:\r\n virtual int open (void *a = 0);\r\n virtual int close (u_long flags = 0);\r\n virtual int put (ACE_Message_Block *msg, ACE_Time_Value * = 0);\r\n\r\n // Dynamic linking hooks.\r\n virtual int init (int argc, ACE_TCHAR *argv[]);\r\n virtual int fini (void);\r\n virtual int info (ACE_TCHAR **info_string, size_t length) const;\r\n\r\nprivate:\r\n virtual int control (ACE_Message_Block *);\r\n};\r\n\r\n#endif /* ACE_HAS_THREADS */\r\n#endif /* _EVENT_ANALYZER_H */\r\n"}
80,480
c
#pragma once #include <cstdint> uint32_t murmur_hash(const void * key, int len, uint32_t seed); uint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed);
41
4
(translation_unit) "#pragma once\n\n#include <cstdint>\n\nuint32_t murmur_hash(const void * key, int len, uint32_t seed);\nuint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed);\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <cstdint>\n" (#include) "#include" (system_lib_string) "<cstdint>" (declaration) "uint32_t murmur_hash(const void * key, int len, uint32_t seed);" (primitive_type) "uint32_t" (function_declarator) "murmur_hash(const void * key, int len, uint32_t seed)" (identifier) "murmur_hash" (parameter_list) "(const void * key, int len, uint32_t seed)" (() "(" (parameter_declaration) "const void * key" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* key" (*) "*" (identifier) "key" (,) "," (parameter_declaration) "int len" (primitive_type) "int" (identifier) "len" (,) "," (parameter_declaration) "uint32_t seed" (primitive_type) "uint32_t" (identifier) "seed" ()) ")" (;) ";" (declaration) "uint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed);" (primitive_type) "uint64_t" (function_declarator) "murmur_hash_64(const void * key, uint32_t len, uint64_t seed)" (identifier) "murmur_hash_64" (parameter_list) "(const void * key, uint32_t len, uint64_t seed)" (() "(" (parameter_declaration) "const void * key" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* key" (*) "*" (identifier) "key" (,) "," (parameter_declaration) "uint32_t len" (primitive_type) "uint32_t" (identifier) "len" (,) "," (parameter_declaration) "uint64_t seed" (primitive_type) "uint64_t" (identifier) "seed" ()) ")" (;) ";"
53
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 41.0, "nodes": 38, "errors": 0, "source_hash": "17afa03bda2ff8a01404daf80a183867cc40ad86a861af8280fb34465800a199", "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": 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 <cstdint>\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": "<cstdint>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 6, "type": "declaration", "text": "uint32_t murmur_hash(const void * key, int len, uint32_t seed);", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 63}}, {"id": 7, "type": "primitive_type", "text": "uint32_t", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "function_declarator", "text": "murmur_hash(const void * key, int len, uint32_t seed)", "parent": 6, "children": [9, 10], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 62}}, {"id": 9, "type": "identifier", "text": "murmur_hash", "parent": 8, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 10, "type": "parameter_list", "text": "(const void * key, int len, uint32_t seed)", "parent": 8, "children": [11, 16, 19], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 4, "column": 62}}, {"id": 11, "type": "parameter_declaration", "text": "const void * key", "parent": 10, "children": [12, 13], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 37}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 4, "column": 27}, "end_point": {"row": 4, "column": 31}}, {"id": 13, "type": "pointer_declarator", "text": "* key", "parent": 11, "children": [14, 15], "start_point": {"row": 4, "column": 32}, "end_point": {"row": 4, "column": 37}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 4, "column": 32}, "end_point": {"row": 4, "column": 33}}, {"id": 15, "type": "identifier", "text": "key", "parent": 13, "children": [], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 37}}, {"id": 16, "type": "parameter_declaration", "text": "int len", "parent": 10, "children": [17, 18], "start_point": {"row": 4, "column": 39}, "end_point": {"row": 4, "column": 46}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 4, "column": 39}, "end_point": {"row": 4, "column": 42}}, {"id": 18, "type": "identifier", "text": "len", "parent": 16, "children": [], "start_point": {"row": 4, "column": 43}, "end_point": {"row": 4, "column": 46}}, {"id": 19, "type": "parameter_declaration", "text": "uint32_t seed", "parent": 10, "children": [20, 21], "start_point": {"row": 4, "column": 48}, "end_point": {"row": 4, "column": 61}}, {"id": 20, "type": "primitive_type", "text": "uint32_t", "parent": 19, "children": [], "start_point": {"row": 4, "column": 48}, "end_point": {"row": 4, "column": 56}}, {"id": 21, "type": "identifier", "text": "seed", "parent": 19, "children": [], "start_point": {"row": 4, "column": 57}, "end_point": {"row": 4, "column": 61}}, {"id": 22, "type": "declaration", "text": "uint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed);", "parent": null, "children": [23, 24], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 71}}, {"id": 23, "type": "primitive_type", "text": "uint64_t", "parent": 22, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 24, "type": "function_declarator", "text": "murmur_hash_64(const void * key, uint32_t len, uint64_t seed)", "parent": 22, "children": [25, 26], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 70}}, {"id": 25, "type": "identifier", "text": "murmur_hash_64", "parent": 24, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 23}}, {"id": 26, "type": "parameter_list", "text": "(const void * key, uint32_t len, uint64_t seed)", "parent": 24, "children": [27, 32, 35], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 70}}, {"id": 27, "type": "parameter_declaration", "text": "const void * key", "parent": 26, "children": [28, 29], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 40}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 5, "column": 30}, "end_point": {"row": 5, "column": 34}}, {"id": 29, "type": "pointer_declarator", "text": "* key", "parent": 27, "children": [30, 31], "start_point": {"row": 5, "column": 35}, "end_point": {"row": 5, "column": 40}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 5, "column": 35}, "end_point": {"row": 5, "column": 36}}, {"id": 31, "type": "identifier", "text": "key", "parent": 29, "children": [], "start_point": {"row": 5, "column": 37}, "end_point": {"row": 5, "column": 40}}, {"id": 32, "type": "parameter_declaration", "text": "uint32_t len", "parent": 26, "children": [33, 34], "start_point": {"row": 5, "column": 42}, "end_point": {"row": 5, "column": 54}}, {"id": 33, "type": "primitive_type", "text": "uint32_t", "parent": 32, "children": [], "start_point": {"row": 5, "column": 42}, "end_point": {"row": 5, "column": 50}}, {"id": 34, "type": "identifier", "text": "len", "parent": 32, "children": [], "start_point": {"row": 5, "column": 51}, "end_point": {"row": 5, "column": 54}}, {"id": 35, "type": "parameter_declaration", "text": "uint64_t seed", "parent": 26, "children": [36, 37], "start_point": {"row": 5, "column": 56}, "end_point": {"row": 5, "column": 69}}, {"id": 36, "type": "primitive_type", "text": "uint64_t", "parent": 35, "children": [], "start_point": {"row": 5, "column": 56}, "end_point": {"row": 5, "column": 64}}, {"id": 37, "type": "identifier", "text": "seed", "parent": 35, "children": [], "start_point": {"row": 5, "column": 65}, "end_point": {"row": 5, "column": 69}}]}, "node_categories": {"declarations": {"functions": [8, 24], "variables": [6, 11, 16, 19, 22, 27, 32, 35], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [9, 15, 18, 21, 25, 31, 34, 37], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "*", "text_snippet": "murmur_hash(const void * key, int len, uint32_t seed)"}, {"node_id": 24, "universal_type": "function", "name": "*", "text_snippet": "murmur_hash_64(const void * key, uint32_t len, uint64_t seed)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <cstdint>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <cstdint>\n\nuint32_t murmur_hash(const void * key, int len, uint32_t seed);\nuint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed);\n"}
80,481
c
#include <assert.h> #include <math.h> #include <stdlib.h> #include "vector.h" Vector * vector_new (double x, double y, double z) { Vector *new = malloc (sizeof (Vector)); new->x = x; new->y = y; new->z = z; return new; } Vector * vector_copy (Vector *a) { Vector *new = malloc (sizeof (Vector)); new->x = a->x; new->y = a->y; new->z = a->z; return new; } Vector * vector_cross (Vector *a, Vector *b) { Vector *new = malloc (sizeof (Vector)); new->x = a->y * b->z - a->z * b->y; new->y = a->z * b->x - a->x * b->z; new->z = a->x * b->y - a->y * b->x; return new; } void vector_set (Vector *self, double x, double y, double z) { self->x = x; self->y = y; self->z = z; } double vector_dot (Vector *self, Vector *other) { return self->x * other->x + self->y * other->y + self->z * other->z; } void vector_add (Vector *self, Vector *other) { self->x += other->x; self->y += other->y; self->z += other->z; } void vector_subtract (Vector *self, Vector *other) { self->x -= other->x; self->y -= other->y; self->z -= other->z; } void vector_multiply (Vector *self, double factor) { self->x *= factor; self->y *= factor; self->z *= factor; } double vector_magnitude (Vector *self) { return sqrt(self->x*self->x + self->y*self->y + self->z*self->z); } double vector_angle (Vector *self, Vector *other) { assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0); return acos (vector_dot (self, other) / (vector_magnitude (self) * vector_magnitude (other))); } void vector_free (Vector *self) { if (self) free (self); }
18.31
83
(translation_unit) "#include <assert.h>\n#include <math.h>\n#include <stdlib.h>\n\n#include "vector.h"\n\nVector *\nvector_new (double x, double y, double z)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = x;\n new->y = y;\n new->z = z;\n\n return new;\n}\n\nVector *\nvector_copy (Vector *a)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = a->x;\n new->y = a->y;\n new->z = a->z;\n\n return new;\n}\n\nVector *\nvector_cross (Vector *a, Vector *b)\n{\n Vector *new = malloc (sizeof (Vector));\n \n new->x = a->y * b->z - a->z * b->y;\n new->y = a->z * b->x - a->x * b->z;\n new->z = a->x * b->y - a->y * b->x;\n\n return new;\n}\n\nvoid\nvector_set (Vector *self, double x, double y, double z)\n{\n self->x = x;\n self->y = y;\n self->z = z;\n}\n\ndouble\nvector_dot (Vector *self, Vector *other)\n{\n return self->x * other->x + self->y * other->y + self->z * other->z;\n}\n\nvoid\nvector_add (Vector *self, Vector *other)\n{\n self->x += other->x;\n self->y += other->y;\n self->z += other->z;\n}\n\nvoid\nvector_subtract (Vector *self, Vector *other)\n{\n self->x -= other->x;\n self->y -= other->y;\n self->z -= other->z;\n}\n\nvoid\nvector_multiply (Vector *self, double factor)\n{\n self->x *= factor;\n self->y *= factor;\n self->z *= factor;\n}\n\ndouble\nvector_magnitude (Vector *self)\n{\n return sqrt(self->x*self->x + self->y*self->y + self->z*self->z);\n}\n\ndouble\nvector_angle (Vector *self, Vector *other)\n{\n assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0);\n\n return acos (vector_dot (self, other) / (vector_magnitude (self) \n * vector_magnitude (other)));\n}\n\nvoid\nvector_free (Vector *self)\n{\n if (self)\n free (self);\n}\n" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include "vector.h"\n" (#include) "#include" (string_literal) ""vector.h"" (") """ (string_content) "vector.h" (") """ (function_definition) "Vector *\nvector_new (double x, double y, double z)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = x;\n new->y = y;\n new->z = z;\n\n return new;\n}" (type_identifier) "Vector" (pointer_declarator) "*\nvector_new (double x, double y, double z)" (*) "*" (function_declarator) "vector_new (double x, double y, double z)" (identifier) "vector_new" (parameter_list) "(double x, double y, double z)" (() "(" (parameter_declaration) "double x" (primitive_type) "double" (identifier) "x" (,) "," (parameter_declaration) "double y" (primitive_type) "double" (identifier) "y" (,) "," (parameter_declaration) "double z" (primitive_type) "double" (identifier) "z" ()) ")" (compound_statement) "{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = x;\n new->y = y;\n new->z = z;\n\n return new;\n}" ({) "{" (declaration) "Vector *new = malloc (sizeof (Vector));" (type_identifier) "Vector" (init_declarator) "*new = malloc (sizeof (Vector))" (pointer_declarator) "*new" (*) "*" (identifier) "new" (=) "=" (call_expression) "malloc (sizeof (Vector))" (identifier) "malloc" (argument_list) "(sizeof (Vector))" (() "(" (sizeof_expression) "sizeof (Vector)" (sizeof) "sizeof" (parenthesized_expression) "(Vector)" (() "(" (identifier) "Vector" ()) ")" ()) ")" (;) ";" (expression_statement) "new->x = x;" (assignment_expression) "new->x = x" (field_expression) "new->x" (identifier) "new" (->) "->" (field_identifier) "x" (=) "=" (identifier) "x" (;) ";" (expression_statement) "new->y = y;" (assignment_expression) "new->y = y" (field_expression) "new->y" (identifier) "new" (->) "->" (field_identifier) "y" (=) "=" (identifier) "y" (;) ";" (expression_statement) "new->z = z;" (assignment_expression) "new->z = z" (field_expression) "new->z" (identifier) "new" (->) "->" (field_identifier) "z" (=) "=" (identifier) "z" (;) ";" (return_statement) "return new;" (return) "return" (identifier) "new" (;) ";" (}) "}" (function_definition) "Vector *\nvector_copy (Vector *a)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = a->x;\n new->y = a->y;\n new->z = a->z;\n\n return new;\n}" (type_identifier) "Vector" (pointer_declarator) "*\nvector_copy (Vector *a)" (*) "*" (function_declarator) "vector_copy (Vector *a)" (identifier) "vector_copy" (parameter_list) "(Vector *a)" (() "(" (parameter_declaration) "Vector *a" (type_identifier) "Vector" (pointer_declarator) "*a" (*) "*" (identifier) "a" ()) ")" (compound_statement) "{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = a->x;\n new->y = a->y;\n new->z = a->z;\n\n return new;\n}" ({) "{" (declaration) "Vector *new = malloc (sizeof (Vector));" (type_identifier) "Vector" (init_declarator) "*new = malloc (sizeof (Vector))" (pointer_declarator) "*new" (*) "*" (identifier) "new" (=) "=" (call_expression) "malloc (sizeof (Vector))" (identifier) "malloc" (argument_list) "(sizeof (Vector))" (() "(" (sizeof_expression) "sizeof (Vector)" (sizeof) "sizeof" (parenthesized_expression) "(Vector)" (() "(" (identifier) "Vector" ()) ")" ()) ")" (;) ";" (expression_statement) "new->x = a->x;" (assignment_expression) "new->x = a->x" (field_expression) "new->x" (identifier) "new" (->) "->" (field_identifier) "x" (=) "=" (field_expression) "a->x" (identifier) "a" (->) "->" (field_identifier) "x" (;) ";" (expression_statement) "new->y = a->y;" (assignment_expression) "new->y = a->y" (field_expression) "new->y" (identifier) "new" (->) "->" (field_identifier) "y" (=) "=" (field_expression) "a->y" (identifier) "a" (->) "->" (field_identifier) "y" (;) ";" (expression_statement) "new->z = a->z;" (assignment_expression) "new->z = a->z" (field_expression) "new->z" (identifier) "new" (->) "->" (field_identifier) "z" (=) "=" (field_expression) "a->z" (identifier) "a" (->) "->" (field_identifier) "z" (;) ";" (return_statement) "return new;" (return) "return" (identifier) "new" (;) ";" (}) "}" (function_definition) "Vector *\nvector_cross (Vector *a, Vector *b)\n{\n Vector *new = malloc (sizeof (Vector));\n \n new->x = a->y * b->z - a->z * b->y;\n new->y = a->z * b->x - a->x * b->z;\n new->z = a->x * b->y - a->y * b->x;\n\n return new;\n}" (type_identifier) "Vector" (pointer_declarator) "*\nvector_cross (Vector *a, Vector *b)" (*) "*" (function_declarator) "vector_cross (Vector *a, Vector *b)" (identifier) "vector_cross" (parameter_list) "(Vector *a, Vector *b)" (() "(" (parameter_declaration) "Vector *a" (type_identifier) "Vector" (pointer_declarator) "*a" (*) "*" (identifier) "a" (,) "," (parameter_declaration) "Vector *b" (type_identifier) "Vector" (pointer_declarator) "*b" (*) "*" (identifier) "b" ()) ")" (compound_statement) "{\n Vector *new = malloc (sizeof (Vector));\n \n new->x = a->y * b->z - a->z * b->y;\n new->y = a->z * b->x - a->x * b->z;\n new->z = a->x * b->y - a->y * b->x;\n\n return new;\n}" ({) "{" (declaration) "Vector *new = malloc (sizeof (Vector));" (type_identifier) "Vector" (init_declarator) "*new = malloc (sizeof (Vector))" (pointer_declarator) "*new" (*) "*" (identifier) "new" (=) "=" (call_expression) "malloc (sizeof (Vector))" (identifier) "malloc" (argument_list) "(sizeof (Vector))" (() "(" (sizeof_expression) "sizeof (Vector)" (sizeof) "sizeof" (parenthesized_expression) "(Vector)" (() "(" (identifier) "Vector" ()) ")" ()) ")" (;) ";" (expression_statement) "new->x = a->y * b->z - a->z * b->y;" (assignment_expression) "new->x = a->y * b->z - a->z * b->y" (field_expression) "new->x" (identifier) "new" (->) "->" (field_identifier) "x" (=) "=" (binary_expression) "a->y * b->z - a->z * b->y" (binary_expression) "a->y * b->z" (field_expression) "a->y" (identifier) "a" (->) "->" (field_identifier) "y" (*) "*" (field_expression) "b->z" (identifier) "b" (->) "->" (field_identifier) "z" (-) "-" (binary_expression) "a->z * b->y" (field_expression) "a->z" (identifier) "a" (->) "->" (field_identifier) "z" (*) "*" (field_expression) "b->y" (identifier) "b" (->) "->" (field_identifier) "y" (;) ";" (expression_statement) "new->y = a->z * b->x - a->x * b->z;" (assignment_expression) "new->y = a->z * b->x - a->x * b->z" (field_expression) "new->y" (identifier) "new" (->) "->" (field_identifier) "y" (=) "=" (binary_expression) "a->z * b->x - a->x * b->z" (binary_expression) "a->z * b->x" (field_expression) "a->z" (identifier) "a" (->) "->" (field_identifier) "z" (*) "*" (field_expression) "b->x" (identifier) "b" (->) "->" (field_identifier) "x" (-) "-" (binary_expression) "a->x * b->z" (field_expression) "a->x" (identifier) "a" (->) "->" (field_identifier) "x" (*) "*" (field_expression) "b->z" (identifier) "b" (->) "->" (field_identifier) "z" (;) ";" (expression_statement) "new->z = a->x * b->y - a->y * b->x;" (assignment_expression) "new->z = a->x * b->y - a->y * b->x" (field_expression) "new->z" (identifier) "new" (->) "->" (field_identifier) "z" (=) "=" (binary_expression) "a->x * b->y - a->y * b->x" (binary_expression) "a->x * b->y" (field_expression) "a->x" (identifier) "a" (->) "->" (field_identifier) "x" (*) "*" (field_expression) "b->y" (identifier) "b" (->) "->" (field_identifier) "y" (-) "-" (binary_expression) "a->y * b->x" (field_expression) "a->y" (identifier) "a" (->) "->" (field_identifier) "y" (*) "*" (field_expression) "b->x" (identifier) "b" (->) "->" (field_identifier) "x" (;) ";" (return_statement) "return new;" (return) "return" (identifier) "new" (;) ";" (}) "}" (function_definition) "void\nvector_set (Vector *self, double x, double y, double z)\n{\n self->x = x;\n self->y = y;\n self->z = z;\n}" (primitive_type) "void" (function_declarator) "vector_set (Vector *self, double x, double y, double z)" (identifier) "vector_set" (parameter_list) "(Vector *self, double x, double y, double z)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "double x" (primitive_type) "double" (identifier) "x" (,) "," (parameter_declaration) "double y" (primitive_type) "double" (identifier) "y" (,) "," (parameter_declaration) "double z" (primitive_type) "double" (identifier) "z" ()) ")" (compound_statement) "{\n self->x = x;\n self->y = y;\n self->z = z;\n}" ({) "{" (expression_statement) "self->x = x;" (assignment_expression) "self->x = x" (field_expression) "self->x" (identifier) "self" (->) "->" (field_identifier) "x" (=) "=" (identifier) "x" (;) ";" (expression_statement) "self->y = y;" (assignment_expression) "self->y = y" (field_expression) "self->y" (identifier) "self" (->) "->" (field_identifier) "y" (=) "=" (identifier) "y" (;) ";" (expression_statement) "self->z = z;" (assignment_expression) "self->z = z" (field_expression) "self->z" (identifier) "self" (->) "->" (field_identifier) "z" (=) "=" (identifier) "z" (;) ";" (}) "}" (function_definition) "double\nvector_dot (Vector *self, Vector *other)\n{\n return self->x * other->x + self->y * other->y + self->z * other->z;\n}" (primitive_type) "double" (function_declarator) "vector_dot (Vector *self, Vector *other)" (identifier) "vector_dot" (parameter_list) "(Vector *self, Vector *other)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "Vector *other" (type_identifier) "Vector" (pointer_declarator) "*other" (*) "*" (identifier) "other" ()) ")" (compound_statement) "{\n return self->x * other->x + self->y * other->y + self->z * other->z;\n}" ({) "{" (return_statement) "return self->x * other->x + self->y * other->y + self->z * other->z;" (return) "return" (binary_expression) "self->x * other->x + self->y * other->y + self->z * other->z" (binary_expression) "self->x * other->x + self->y * other->y" (binary_expression) "self->x * other->x" (field_expression) "self->x" (identifier) "self" (->) "->" (field_identifier) "x" (*) "*" (field_expression) "other->x" (identifier) "other" (->) "->" (field_identifier) "x" (+) "+" (binary_expression) "self->y * other->y" (field_expression) "self->y" (identifier) "self" (->) "->" (field_identifier) "y" (*) "*" (field_expression) "other->y" (identifier) "other" (->) "->" (field_identifier) "y" (+) "+" (binary_expression) "self->z * other->z" (field_expression) "self->z" (identifier) "self" (->) "->" (field_identifier) "z" (*) "*" (field_expression) "other->z" (identifier) "other" (->) "->" (field_identifier) "z" (;) ";" (}) "}" (function_definition) "void\nvector_add (Vector *self, Vector *other)\n{\n self->x += other->x;\n self->y += other->y;\n self->z += other->z;\n}" (primitive_type) "void" (function_declarator) "vector_add (Vector *self, Vector *other)" (identifier) "vector_add" (parameter_list) "(Vector *self, Vector *other)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "Vector *other" (type_identifier) "Vector" (pointer_declarator) "*other" (*) "*" (identifier) "other" ()) ")" (compound_statement) "{\n self->x += other->x;\n self->y += other->y;\n self->z += other->z;\n}" ({) "{" (expression_statement) "self->x += other->x;" (assignment_expression) "self->x += other->x" (field_expression) "self->x" (identifier) "self" (->) "->" (field_identifier) "x" (+=) "+=" (field_expression) "other->x" (identifier) "other" (->) "->" (field_identifier) "x" (;) ";" (expression_statement) "self->y += other->y;" (assignment_expression) "self->y += other->y" (field_expression) "self->y" (identifier) "self" (->) "->" (field_identifier) "y" (+=) "+=" (field_expression) "other->y" (identifier) "other" (->) "->" (field_identifier) "y" (;) ";" (expression_statement) "self->z += other->z;" (assignment_expression) "self->z += other->z" (field_expression) "self->z" (identifier) "self" (->) "->" (field_identifier) "z" (+=) "+=" (field_expression) "other->z" (identifier) "other" (->) "->" (field_identifier) "z" (;) ";" (}) "}" (function_definition) "void\nvector_subtract (Vector *self, Vector *other)\n{\n self->x -= other->x;\n self->y -= other->y;\n self->z -= other->z;\n}" (primitive_type) "void" (function_declarator) "vector_subtract (Vector *self, Vector *other)" (identifier) "vector_subtract" (parameter_list) "(Vector *self, Vector *other)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "Vector *other" (type_identifier) "Vector" (pointer_declarator) "*other" (*) "*" (identifier) "other" ()) ")" (compound_statement) "{\n self->x -= other->x;\n self->y -= other->y;\n self->z -= other->z;\n}" ({) "{" (expression_statement) "self->x -= other->x;" (assignment_expression) "self->x -= other->x" (field_expression) "self->x" (identifier) "self" (->) "->" (field_identifier) "x" (-=) "-=" (field_expression) "other->x" (identifier) "other" (->) "->" (field_identifier) "x" (;) ";" (expression_statement) "self->y -= other->y;" (assignment_expression) "self->y -= other->y" (field_expression) "self->y" (identifier) "self" (->) "->" (field_identifier) "y" (-=) "-=" (field_expression) "other->y" (identifier) "other" (->) "->" (field_identifier) "y" (;) ";" (expression_statement) "self->z -= other->z;" (assignment_expression) "self->z -= other->z" (field_expression) "self->z" (identifier) "self" (->) "->" (field_identifier) "z" (-=) "-=" (field_expression) "other->z" (identifier) "other" (->) "->" (field_identifier) "z" (;) ";" (}) "}" (function_definition) "void\nvector_multiply (Vector *self, double factor)\n{\n self->x *= factor;\n self->y *= factor;\n self->z *= factor;\n}" (primitive_type) "void" (function_declarator) "vector_multiply (Vector *self, double factor)" (identifier) "vector_multiply" (parameter_list) "(Vector *self, double factor)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "double factor" (primitive_type) "double" (identifier) "factor" ()) ")" (compound_statement) "{\n self->x *= factor;\n self->y *= factor;\n self->z *= factor;\n}" ({) "{" (expression_statement) "self->x *= factor;" (assignment_expression) "self->x *= factor" (field_expression) "self->x" (identifier) "self" (->) "->" (field_identifier) "x" (*=) "*=" (identifier) "factor" (;) ";" (expression_statement) "self->y *= factor;" (assignment_expression) "self->y *= factor" (field_expression) "self->y" (identifier) "self" (->) "->" (field_identifier) "y" (*=) "*=" (identifier) "factor" (;) ";" (expression_statement) "self->z *= factor;" (assignment_expression) "self->z *= factor" (field_expression) "self->z" (identifier) "self" (->) "->" (field_identifier) "z" (*=) "*=" (identifier) "factor" (;) ";" (}) "}" (function_definition) "double\nvector_magnitude (Vector *self)\n{\n return sqrt(self->x*self->x + self->y*self->y + self->z*self->z);\n}" (primitive_type) "double" (function_declarator) "vector_magnitude (Vector *self)" (identifier) "vector_magnitude" (parameter_list) "(Vector *self)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (compound_statement) "{\n return sqrt(self->x*self->x + self->y*self->y + self->z*self->z);\n}" ({) "{" (return_statement) "return sqrt(self->x*self->x + self->y*self->y + self->z*self->z);" (return) "return" (call_expression) "sqrt(self->x*self->x + self->y*self->y + self->z*self->z)" (identifier) "sqrt" (argument_list) "(self->x*self->x + self->y*self->y + self->z*self->z)" (() "(" (binary_expression) "self->x*self->x + self->y*self->y + self->z*self->z" (binary_expression) "self->x*self->x + self->y*self->y" (binary_expression) "self->x*self->x" (field_expression) "self->x" (identifier) "self" (->) "->" (field_identifier) "x" (*) "*" (field_expression) "self->x" (identifier) "self" (->) "->" (field_identifier) "x" (+) "+" (binary_expression) "self->y*self->y" (field_expression) "self->y" (identifier) "self" (->) "->" (field_identifier) "y" (*) "*" (field_expression) "self->y" (identifier) "self" (->) "->" (field_identifier) "y" (+) "+" (binary_expression) "self->z*self->z" (field_expression) "self->z" (identifier) "self" (->) "->" (field_identifier) "z" (*) "*" (field_expression) "self->z" (identifier) "self" (->) "->" (field_identifier) "z" ()) ")" (;) ";" (}) "}" (function_definition) "double\nvector_angle (Vector *self, Vector *other)\n{\n assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0);\n\n return acos (vector_dot (self, other) / (vector_magnitude (self) \n * vector_magnitude (other)));\n}" (primitive_type) "double" (function_declarator) "vector_angle (Vector *self, Vector *other)" (identifier) "vector_angle" (parameter_list) "(Vector *self, Vector *other)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "Vector *other" (type_identifier) "Vector" (pointer_declarator) "*other" (*) "*" (identifier) "other" ()) ")" (compound_statement) "{\n assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0);\n\n return acos (vector_dot (self, other) / (vector_magnitude (self) \n * vector_magnitude (other)));\n}" ({) "{" (expression_statement) "assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0);" (call_expression) "assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0)" (identifier) "assert" (argument_list) "(vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0)" (() "(" (binary_expression) "vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0" (binary_expression) "vector_magnitude (self) > 0.0" (call_expression) "vector_magnitude (self)" (identifier) "vector_magnitude" (argument_list) "(self)" (() "(" (identifier) "self" ()) ")" (>) ">" (number_literal) "0.0" (&&) "&&" (binary_expression) "vector_magnitude (other) > 0.0" (call_expression) "vector_magnitude (other)" (identifier) "vector_magnitude" (argument_list) "(other)" (() "(" (identifier) "other" ()) ")" (>) ">" (number_literal) "0.0" ()) ")" (;) ";" (return_statement) "return acos (vector_dot (self, other) / (vector_magnitude (self) \n * vector_magnitude (other)));" (return) "return" (call_expression) "acos (vector_dot (self, other) / (vector_magnitude (self) \n * vector_magnitude (other)))" (identifier) "acos" (argument_list) "(vector_dot (self, other) / (vector_magnitude (self) \n * vector_magnitude (other)))" (() "(" (binary_expression) "vector_dot (self, other) / (vector_magnitude (self) \n * vector_magnitude (other))" (call_expression) "vector_dot (self, other)" (identifier) "vector_dot" (argument_list) "(self, other)" (() "(" (identifier) "self" (,) "," (identifier) "other" ()) ")" (/) "/" (parenthesized_expression) "(vector_magnitude (self) \n * vector_magnitude (other))" (() "(" (binary_expression) "vector_magnitude (self) \n * vector_magnitude (other)" (call_expression) "vector_magnitude (self)" (identifier) "vector_magnitude" (argument_list) "(self)" (() "(" (identifier) "self" ()) ")" (*) "*" (call_expression) "vector_magnitude (other)" (identifier) "vector_magnitude" (argument_list) "(other)" (() "(" (identifier) "other" ()) ")" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void\nvector_free (Vector *self)\n{\n if (self)\n free (self);\n}" (primitive_type) "void" (function_declarator) "vector_free (Vector *self)" (identifier) "vector_free" (parameter_list) "(Vector *self)" (() "(" (parameter_declaration) "Vector *self" (type_identifier) "Vector" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (compound_statement) "{\n if (self)\n free (self);\n}" ({) "{" (if_statement) "if (self)\n free (self);" (if) "if" (parenthesized_expression) "(self)" (() "(" (identifier) "self" ()) ")" (expression_statement) "free (self);" (call_expression) "free (self)" (identifier) "free" (argument_list) "(self)" (() "(" (identifier) "self" ()) ")" (;) ";" (}) "}"
742
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 18.31, "nodes": 503, "errors": 0, "source_hash": "ae255721b985c77cb18bf5859d35fabe5342acaf86e8af2b00c764a1c7ec4b33", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <assert.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": "<assert.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <math.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": "<math.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 17}}, {"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 \"vector.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": "\"vector.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 12, "type": "function_definition", "text": "Vector *\nvector_new (double x, double y, double z)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = x;\n new->y = y;\n new->z = z;\n\n return new;\n}", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "Vector", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "pointer_declarator", "text": "*\nvector_new (double x, double y, double z)", "parent": 12, "children": [15, 16], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 7, "column": 41}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 8}}, {"id": 16, "type": "function_declarator", "text": "vector_new (double x, double y, double z)", "parent": 14, "children": [17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 41}}, {"id": 17, "type": "identifier", "text": "vector_new", "parent": 16, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 10}}, {"id": 18, "type": "parameter_list", "text": "(double x, double y, double z)", "parent": 16, "children": [19, 22, 25], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 41}}, {"id": 19, "type": "parameter_declaration", "text": "double x", "parent": 18, "children": [20, 21], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 20}}, {"id": 20, "type": "primitive_type", "text": "double", "parent": 19, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 18}}, {"id": 21, "type": "identifier", "text": "x", "parent": 19, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 20}}, {"id": 22, "type": "parameter_declaration", "text": "double y", "parent": 18, "children": [23, 24], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 30}}, {"id": 23, "type": "primitive_type", "text": "double", "parent": 22, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 28}}, {"id": 24, "type": "identifier", "text": "y", "parent": 22, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 30}}, {"id": 25, "type": "parameter_declaration", "text": "double z", "parent": 18, "children": [26, 27], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 40}}, {"id": 26, "type": "primitive_type", "text": "double", "parent": 25, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 38}}, {"id": 27, "type": "identifier", "text": "z", "parent": 25, "children": [], "start_point": {"row": 7, "column": 39}, "end_point": {"row": 7, "column": 40}}, {"id": 28, "type": "declaration", "text": "Vector *new = malloc (sizeof (Vector));", "parent": 12, "children": [29, 30], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 41}}, {"id": 29, "type": "type_identifier", "text": "Vector", "parent": 28, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 8}}, {"id": 30, "type": "init_declarator", "text": "*new = malloc (sizeof (Vector))", "parent": 28, "children": [31, 33, 34], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 40}}, {"id": 31, "type": "pointer_declarator", "text": "*new", "parent": 30, "children": [32], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 13}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 10}}, {"id": 33, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 15}}, {"id": 34, "type": "call_expression", "text": "malloc (sizeof (Vector))", "parent": 30, "children": [35, 36], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 40}}, {"id": 35, "type": "identifier", "text": "malloc", "parent": 34, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 22}}, {"id": 36, "type": "argument_list", "text": "(sizeof (Vector))", "parent": 34, "children": [37], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 40}}, {"id": 37, "type": "sizeof_expression", "text": "sizeof (Vector)", "parent": 36, "children": [38], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 39}}, {"id": 38, "type": "parenthesized_expression", "text": "(Vector)", "parent": 37, "children": [39], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 39}}, {"id": 39, "type": "identifier", "text": "Vector", "parent": 38, "children": [], "start_point": {"row": 9, "column": 32}, "end_point": {"row": 9, "column": 38}}, {"id": 40, "type": "assignment_expression", "text": "new->x = x", "parent": 12, "children": [41, 43, 44], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 12}}, {"id": 41, "type": "field_expression", "text": "new->x", "parent": 40, "children": [42], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 8}}, {"id": 42, "type": "field_identifier", "text": "x", "parent": 41, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 8}}, {"id": 43, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 44, "type": "identifier", "text": "x", "parent": 40, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 12}}, {"id": 45, "type": "assignment_expression", "text": "new->y = y", "parent": 12, "children": [46, 48, 49], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 12}}, {"id": 46, "type": "field_expression", "text": "new->y", "parent": 45, "children": [47], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 8}}, {"id": 47, "type": "field_identifier", "text": "y", "parent": 46, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 8}}, {"id": 48, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 49, "type": "identifier", "text": "y", "parent": 45, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 12}}, {"id": 50, "type": "assignment_expression", "text": "new->z = z", "parent": 12, "children": [51, 53, 54], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 12}}, {"id": 51, "type": "field_expression", "text": "new->z", "parent": 50, "children": [52], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 52, "type": "field_identifier", "text": "z", "parent": 51, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 53, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 54, "type": "identifier", "text": "z", "parent": 50, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 55, "type": "return_statement", "text": "return new;", "parent": 12, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 13}}, {"id": 56, "type": "function_definition", "text": "Vector *\nvector_copy (Vector *a)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = a->x;\n new->y = a->y;\n new->z = a->z;\n\n return new;\n}", "parent": null, "children": [57, 58], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 57, "type": "type_identifier", "text": "Vector", "parent": 56, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 58, "type": "pointer_declarator", "text": "*\nvector_copy (Vector *a)", "parent": 56, "children": [59, 60], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 19, "column": 23}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 8}}, {"id": 60, "type": "function_declarator", "text": "vector_copy (Vector *a)", "parent": 58, "children": [61, 62], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 23}}, {"id": 61, "type": "identifier", "text": "vector_copy", "parent": 60, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 11}}, {"id": 62, "type": "parameter_list", "text": "(Vector *a)", "parent": 60, "children": [63], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 23}}, {"id": 63, "type": "parameter_declaration", "text": "Vector *a", "parent": 62, "children": [64, 65], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 22}}, {"id": 64, "type": "type_identifier", "text": "Vector", "parent": 63, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 19}}, {"id": 65, "type": "pointer_declarator", "text": "*a", "parent": 63, "children": [66, 67], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 22}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 67, "type": "identifier", "text": "a", "parent": 65, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 68, "type": "declaration", "text": "Vector *new = malloc (sizeof (Vector));", "parent": 56, "children": [69, 70], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 41}}, {"id": 69, "type": "type_identifier", "text": "Vector", "parent": 68, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 70, "type": "init_declarator", "text": "*new = malloc (sizeof (Vector))", "parent": 68, "children": [71, 73, 74], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 40}}, {"id": 71, "type": "pointer_declarator", "text": "*new", "parent": 70, "children": [72], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 10}}, {"id": 73, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 15}}, {"id": 74, "type": "call_expression", "text": "malloc (sizeof (Vector))", "parent": 70, "children": [75, 76], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 40}}, {"id": 75, "type": "identifier", "text": "malloc", "parent": 74, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 22}}, {"id": 76, "type": "argument_list", "text": "(sizeof (Vector))", "parent": 74, "children": [77], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 40}}, {"id": 77, "type": "sizeof_expression", "text": "sizeof (Vector)", "parent": 76, "children": [78], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 39}}, {"id": 78, "type": "parenthesized_expression", "text": "(Vector)", "parent": 77, "children": [79], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 39}}, {"id": 79, "type": "identifier", "text": "Vector", "parent": 78, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 38}}, {"id": 80, "type": "assignment_expression", "text": "new->x = a->x", "parent": 56, "children": [81, 83, 84], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 15}}, {"id": 81, "type": "field_expression", "text": "new->x", "parent": 80, "children": [82], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 8}}, {"id": 82, "type": "field_identifier", "text": "x", "parent": 81, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 8}}, {"id": 83, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 10}}, {"id": 84, "type": "field_expression", "text": "a->x", "parent": 80, "children": [85, 86], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 15}}, {"id": 85, "type": "identifier", "text": "a", "parent": 84, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 86, "type": "field_identifier", "text": "x", "parent": 84, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 15}}, {"id": 87, "type": "assignment_expression", "text": "new->y = a->y", "parent": 56, "children": [88, 90, 91], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 15}}, {"id": 88, "type": "field_expression", "text": "new->y", "parent": 87, "children": [89], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 8}}, {"id": 89, "type": "field_identifier", "text": "y", "parent": 88, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 8}}, {"id": 90, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 91, "type": "field_expression", "text": "a->y", "parent": 87, "children": [92, 93], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 15}}, {"id": 92, "type": "identifier", "text": "a", "parent": 91, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 93, "type": "field_identifier", "text": "y", "parent": 91, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 94, "type": "assignment_expression", "text": "new->z = a->z", "parent": 56, "children": [95, 97, 98], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 15}}, {"id": 95, "type": "field_expression", "text": "new->z", "parent": 94, "children": [96], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 8}}, {"id": 96, "type": "field_identifier", "text": "z", "parent": 95, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 8}}, {"id": 97, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 10}}, {"id": 98, "type": "field_expression", "text": "a->z", "parent": 94, "children": [99, 100], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 15}}, {"id": 99, "type": "identifier", "text": "a", "parent": 98, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 100, "type": "field_identifier", "text": "z", "parent": 98, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 15}}, {"id": 101, "type": "return_statement", "text": "return new;", "parent": 56, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 13}}, {"id": 102, "type": "function_definition", "text": "Vector *\nvector_cross (Vector *a, Vector *b)\n{\n Vector *new = malloc (sizeof (Vector));\n \n new->x = a->y * b->z - a->z * b->y;\n new->y = a->z * b->x - a->x * b->z;\n new->z = a->x * b->y - a->y * b->x;\n\n return new;\n}", "parent": null, "children": [103, 104], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 103, "type": "type_identifier", "text": "Vector", "parent": 102, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 104, "type": "pointer_declarator", "text": "*\nvector_cross (Vector *a, Vector *b)", "parent": 102, "children": [105, 106], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 31, "column": 35}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 8}}, {"id": 106, "type": "function_declarator", "text": "vector_cross (Vector *a, Vector *b)", "parent": 104, "children": [107, 108], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 35}}, {"id": 107, "type": "identifier", "text": "vector_cross", "parent": 106, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 12}}, {"id": 108, "type": "parameter_list", "text": "(Vector *a, Vector *b)", "parent": 106, "children": [109, 114], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 35}}, {"id": 109, "type": "parameter_declaration", "text": "Vector *a", "parent": 108, "children": [110, 111], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 23}}, {"id": 110, "type": "type_identifier", "text": "Vector", "parent": 109, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 20}}, {"id": 111, "type": "pointer_declarator", "text": "*a", "parent": 109, "children": [112, 113], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 23}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 22}}, {"id": 113, "type": "identifier", "text": "a", "parent": 111, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 114, "type": "parameter_declaration", "text": "Vector *b", "parent": 108, "children": [115, 116], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 34}}, {"id": 115, "type": "type_identifier", "text": "Vector", "parent": 114, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 31}}, {"id": 116, "type": "pointer_declarator", "text": "*b", "parent": 114, "children": [117, 118], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 34}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 33}}, {"id": 118, "type": "identifier", "text": "b", "parent": 116, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 34}}, {"id": 119, "type": "declaration", "text": "Vector *new = malloc (sizeof (Vector));", "parent": 102, "children": [120, 121], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 41}}, {"id": 120, "type": "type_identifier", "text": "Vector", "parent": 119, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 121, "type": "init_declarator", "text": "*new = malloc (sizeof (Vector))", "parent": 119, "children": [122, 124, 125], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 40}}, {"id": 122, "type": "pointer_declarator", "text": "*new", "parent": 121, "children": [123], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 13}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 124, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 15}}, {"id": 125, "type": "call_expression", "text": "malloc (sizeof (Vector))", "parent": 121, "children": [126, 127], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 40}}, {"id": 126, "type": "identifier", "text": "malloc", "parent": 125, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 22}}, {"id": 127, "type": "argument_list", "text": "(sizeof (Vector))", "parent": 125, "children": [128], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 40}}, {"id": 128, "type": "sizeof_expression", "text": "sizeof (Vector)", "parent": 127, "children": [129], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 39}}, {"id": 129, "type": "parenthesized_expression", "text": "(Vector)", "parent": 128, "children": [130], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 39}}, {"id": 130, "type": "identifier", "text": "Vector", "parent": 129, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 38}}, {"id": 131, "type": "assignment_expression", "text": "new->x = a->y * b->z - a->z * b->y", "parent": 102, "children": [132, 134, 135], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 36}}, {"id": 132, "type": "field_expression", "text": "new->x", "parent": 131, "children": [133], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 133, "type": "field_identifier", "text": "x", "parent": 132, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 8}}, {"id": 134, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 10}}, {"id": 135, "type": "binary_expression", "text": "a->y * b->z - a->z * b->y", "parent": 131, "children": [136, 144, 145], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 36}}, {"id": 136, "type": "binary_expression", "text": "a->y * b->z", "parent": 135, "children": [137, 140, 141], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 22}}, {"id": 137, "type": "field_expression", "text": "a->y", "parent": 136, "children": [138, 139], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 15}}, {"id": 138, "type": "identifier", "text": "a", "parent": 137, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 12}}, {"id": 139, "type": "field_identifier", "text": "y", "parent": 137, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 140, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 17}}, {"id": 141, "type": "field_expression", "text": "b->z", "parent": 136, "children": [142, 143], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 22}}, {"id": 142, "type": "identifier", "text": "b", "parent": 141, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 19}}, {"id": 143, "type": "field_identifier", "text": "z", "parent": 141, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 22}}, {"id": 144, "type": "-", "text": "-", "parent": 135, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 24}}, {"id": 145, "type": "binary_expression", "text": "a->z * b->y", "parent": 135, "children": [146, 149, 150], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 36}}, {"id": 146, "type": "field_expression", "text": "a->z", "parent": 145, "children": [147, 148], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 29}}, {"id": 147, "type": "identifier", "text": "a", "parent": 146, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 26}}, {"id": 148, "type": "field_identifier", "text": "z", "parent": 146, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 29}}, {"id": 149, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 150, "type": "field_expression", "text": "b->y", "parent": 145, "children": [151, 152], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 36}}, {"id": 151, "type": "identifier", "text": "b", "parent": 150, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 33}}, {"id": 152, "type": "field_identifier", "text": "y", "parent": 150, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 36}}, {"id": 153, "type": "assignment_expression", "text": "new->y = a->z * b->x - a->x * b->z", "parent": 102, "children": [154, 156, 157], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 36}}, {"id": 154, "type": "field_expression", "text": "new->y", "parent": 153, "children": [155], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 8}}, {"id": 155, "type": "field_identifier", "text": "y", "parent": 154, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 8}}, {"id": 156, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 10}}, {"id": 157, "type": "binary_expression", "text": "a->z * b->x - a->x * b->z", "parent": 153, "children": [158, 166, 167], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 36}}, {"id": 158, "type": "binary_expression", "text": "a->z * b->x", "parent": 157, "children": [159, 162, 163], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 22}}, {"id": 159, "type": "field_expression", "text": "a->z", "parent": 158, "children": [160, 161], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 15}}, {"id": 160, "type": "identifier", "text": "a", "parent": 159, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 12}}, {"id": 161, "type": "field_identifier", "text": "z", "parent": 159, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 15}}, {"id": 162, "type": "*", "text": "*", "parent": 158, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 17}}, {"id": 163, "type": "field_expression", "text": "b->x", "parent": 158, "children": [164, 165], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 22}}, {"id": 164, "type": "identifier", "text": "b", "parent": 163, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 19}}, {"id": 165, "type": "field_identifier", "text": "x", "parent": 163, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 166, "type": "-", "text": "-", "parent": 157, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 24}}, {"id": 167, "type": "binary_expression", "text": "a->x * b->z", "parent": 157, "children": [168, 171, 172], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 36}}, {"id": 168, "type": "field_expression", "text": "a->x", "parent": 167, "children": [169, 170], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 29}}, {"id": 169, "type": "identifier", "text": "a", "parent": 168, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 26}}, {"id": 170, "type": "field_identifier", "text": "x", "parent": 168, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 29}}, {"id": 171, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 31}}, {"id": 172, "type": "field_expression", "text": "b->z", "parent": 167, "children": [173, 174], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 36}}, {"id": 173, "type": "identifier", "text": "b", "parent": 172, "children": [], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 33}}, {"id": 174, "type": "field_identifier", "text": "z", "parent": 172, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 36}}, {"id": 175, "type": "assignment_expression", "text": "new->z = a->x * b->y - a->y * b->x", "parent": 102, "children": [176, 178, 179], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 36}}, {"id": 176, "type": "field_expression", "text": "new->z", "parent": 175, "children": [177], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 8}}, {"id": 177, "type": "field_identifier", "text": "z", "parent": 176, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 8}}, {"id": 178, "type": "=", "text": "=", "parent": 175, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 10}}, {"id": 179, "type": "binary_expression", "text": "a->x * b->y - a->y * b->x", "parent": 175, "children": [180, 188, 189], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 36}}, {"id": 180, "type": "binary_expression", "text": "a->x * b->y", "parent": 179, "children": [181, 184, 185], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 22}}, {"id": 181, "type": "field_expression", "text": "a->x", "parent": 180, "children": [182, 183], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 15}}, {"id": 182, "type": "identifier", "text": "a", "parent": 181, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 12}}, {"id": 183, "type": "field_identifier", "text": "x", "parent": 181, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 15}}, {"id": 184, "type": "*", "text": "*", "parent": 180, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 185, "type": "field_expression", "text": "b->y", "parent": 180, "children": [186, 187], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 22}}, {"id": 186, "type": "identifier", "text": "b", "parent": 185, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 187, "type": "field_identifier", "text": "y", "parent": 185, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 22}}, {"id": 188, "type": "-", "text": "-", "parent": 179, "children": [], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 24}}, {"id": 189, "type": "binary_expression", "text": "a->y * b->x", "parent": 179, "children": [190, 193, 194], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 36}}, {"id": 190, "type": "field_expression", "text": "a->y", "parent": 189, "children": [191, 192], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 29}}, {"id": 191, "type": "identifier", "text": "a", "parent": 190, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 26}}, {"id": 192, "type": "field_identifier", "text": "y", "parent": 190, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 29}}, {"id": 193, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 31}}, {"id": 194, "type": "field_expression", "text": "b->x", "parent": 189, "children": [195, 196], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 36}}, {"id": 195, "type": "identifier", "text": "b", "parent": 194, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 33}}, {"id": 196, "type": "field_identifier", "text": "x", "parent": 194, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 36}}, {"id": 197, "type": "return_statement", "text": "return new;", "parent": 102, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 13}}, {"id": 198, "type": "function_definition", "text": "void\nvector_set (Vector *self, double x, double y, double z)\n{\n self->x = x;\n self->y = y;\n self->z = z;\n}", "parent": null, "children": [199, 200], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 199, "type": "primitive_type", "text": "void", "parent": 198, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 200, "type": "function_declarator", "text": "vector_set (Vector *self, double x, double y, double z)", "parent": 198, "children": [201, 202], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 55}}, {"id": 201, "type": "identifier", "text": "vector_set", "parent": 200, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 10}}, {"id": 202, "type": "parameter_list", "text": "(Vector *self, double x, double y, double z)", "parent": 200, "children": [203, 208, 211, 214], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 55}}, {"id": 203, "type": "parameter_declaration", "text": "Vector *self", "parent": 202, "children": [204, 205], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 24}}, {"id": 204, "type": "type_identifier", "text": "Vector", "parent": 203, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 18}}, {"id": 205, "type": "pointer_declarator", "text": "*self", "parent": 203, "children": [206, 207], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 24}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 20}}, {"id": 207, "type": "identifier", "text": "self", "parent": 205, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 24}}, {"id": 208, "type": "parameter_declaration", "text": "double x", "parent": 202, "children": [209, 210], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 34}}, {"id": 209, "type": "primitive_type", "text": "double", "parent": 208, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 32}}, {"id": 210, "type": "identifier", "text": "x", "parent": 208, "children": [], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 34}}, {"id": 211, "type": "parameter_declaration", "text": "double y", "parent": 202, "children": [212, 213], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 44}}, {"id": 212, "type": "primitive_type", "text": "double", "parent": 211, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 42}}, {"id": 213, "type": "identifier", "text": "y", "parent": 211, "children": [], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 43, "column": 44}}, {"id": 214, "type": "parameter_declaration", "text": "double z", "parent": 202, "children": [215, 216], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 43, "column": 54}}, {"id": 215, "type": "primitive_type", "text": "double", "parent": 214, "children": [], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 43, "column": 52}}, {"id": 216, "type": "identifier", "text": "z", "parent": 214, "children": [], "start_point": {"row": 43, "column": 53}, "end_point": {"row": 43, "column": 54}}, {"id": 217, "type": "assignment_expression", "text": "self->x = x", "parent": 198, "children": [218, 221, 222], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 13}}, {"id": 218, "type": "field_expression", "text": "self->x", "parent": 217, "children": [219, 220], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 219, "type": "identifier", "text": "self", "parent": 218, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 6}}, {"id": 220, "type": "field_identifier", "text": "x", "parent": 218, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 9}}, {"id": 221, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 11}}, {"id": 222, "type": "identifier", "text": "x", "parent": 217, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 223, "type": "assignment_expression", "text": "self->y = y", "parent": 198, "children": [224, 227, 228], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 13}}, {"id": 224, "type": "field_expression", "text": "self->y", "parent": 223, "children": [225, 226], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 9}}, {"id": 225, "type": "identifier", "text": "self", "parent": 224, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 226, "type": "field_identifier", "text": "y", "parent": 224, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 9}}, {"id": 227, "type": "=", "text": "=", "parent": 223, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 228, "type": "identifier", "text": "y", "parent": 223, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 229, "type": "assignment_expression", "text": "self->z = z", "parent": 198, "children": [230, 233, 234], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 13}}, {"id": 230, "type": "field_expression", "text": "self->z", "parent": 229, "children": [231, 232], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 9}}, {"id": 231, "type": "identifier", "text": "self", "parent": 230, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 6}}, {"id": 232, "type": "field_identifier", "text": "z", "parent": 230, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 233, "type": "=", "text": "=", "parent": 229, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 11}}, {"id": 234, "type": "identifier", "text": "z", "parent": 229, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 235, "type": "function_definition", "text": "double\nvector_dot (Vector *self, Vector *other)\n{\n return self->x * other->x + self->y * other->y + self->z * other->z;\n}", "parent": null, "children": [236, 237], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 236, "type": "primitive_type", "text": "double", "parent": 235, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 237, "type": "function_declarator", "text": "vector_dot (Vector *self, Vector *other)", "parent": 235, "children": [238, 239], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 40}}, {"id": 238, "type": "identifier", "text": "vector_dot", "parent": 237, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 10}}, {"id": 239, "type": "parameter_list", "text": "(Vector *self, Vector *other)", "parent": 237, "children": [240, 245], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 40}}, {"id": 240, "type": "parameter_declaration", "text": "Vector *self", "parent": 239, "children": [241, 242], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 24}}, {"id": 241, "type": "type_identifier", "text": "Vector", "parent": 240, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 18}}, {"id": 242, "type": "pointer_declarator", "text": "*self", "parent": 240, "children": [243, 244], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 24}}, {"id": 243, "type": "*", "text": "*", "parent": 242, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 244, "type": "identifier", "text": "self", "parent": 242, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 24}}, {"id": 245, "type": "parameter_declaration", "text": "Vector *other", "parent": 239, "children": [246, 247], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 39}}, {"id": 246, "type": "type_identifier", "text": "Vector", "parent": 245, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 32}}, {"id": 247, "type": "pointer_declarator", "text": "*other", "parent": 245, "children": [248, 249], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 39}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 34}}, {"id": 249, "type": "identifier", "text": "other", "parent": 247, "children": [], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 39}}, {"id": 250, "type": "return_statement", "text": "return self->x * other->x + self->y * other->y + self->z * other->z;", "parent": 235, "children": [251], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 70}}, {"id": 251, "type": "binary_expression", "text": "self->x * other->x + self->y * other->y + self->z * other->z", "parent": 250, "children": [252, 270, 271], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 69}}, {"id": 252, "type": "binary_expression", "text": "self->x * other->x + self->y * other->y", "parent": 251, "children": [253, 261, 262], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 48}}, {"id": 253, "type": "binary_expression", "text": "self->x * other->x", "parent": 252, "children": [254, 257, 258], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 27}}, {"id": 254, "type": "field_expression", "text": "self->x", "parent": 253, "children": [255, 256], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 16}}, {"id": 255, "type": "identifier", "text": "self", "parent": 254, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 256, "type": "field_identifier", "text": "x", "parent": 254, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 257, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 258, "type": "field_expression", "text": "other->x", "parent": 253, "children": [259, 260], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 27}}, {"id": 259, "type": "identifier", "text": "other", "parent": 258, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 24}}, {"id": 260, "type": "field_identifier", "text": "x", "parent": 258, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 27}}, {"id": 261, "type": "+", "text": "+", "parent": 252, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 29}}, {"id": 262, "type": "binary_expression", "text": "self->y * other->y", "parent": 252, "children": [263, 266, 267], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 48}}, {"id": 263, "type": "field_expression", "text": "self->y", "parent": 262, "children": [264, 265], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 37}}, {"id": 264, "type": "identifier", "text": "self", "parent": 263, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 34}}, {"id": 265, "type": "field_identifier", "text": "y", "parent": 263, "children": [], "start_point": {"row": 53, "column": 36}, "end_point": {"row": 53, "column": 37}}, {"id": 266, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 39}}, {"id": 267, "type": "field_expression", "text": "other->y", "parent": 262, "children": [268, 269], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 48}}, {"id": 268, "type": "identifier", "text": "other", "parent": 267, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 45}}, {"id": 269, "type": "field_identifier", "text": "y", "parent": 267, "children": [], "start_point": {"row": 53, "column": 47}, "end_point": {"row": 53, "column": 48}}, {"id": 270, "type": "+", "text": "+", "parent": 251, "children": [], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 50}}, {"id": 271, "type": "binary_expression", "text": "self->z * other->z", "parent": 251, "children": [272, 275, 276], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 69}}, {"id": 272, "type": "field_expression", "text": "self->z", "parent": 271, "children": [273, 274], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 58}}, {"id": 273, "type": "identifier", "text": "self", "parent": 272, "children": [], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 55}}, {"id": 274, "type": "field_identifier", "text": "z", "parent": 272, "children": [], "start_point": {"row": 53, "column": 57}, "end_point": {"row": 53, "column": 58}}, {"id": 275, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 60}}, {"id": 276, "type": "field_expression", "text": "other->z", "parent": 271, "children": [277, 278], "start_point": {"row": 53, "column": 61}, "end_point": {"row": 53, "column": 69}}, {"id": 277, "type": "identifier", "text": "other", "parent": 276, "children": [], "start_point": {"row": 53, "column": 61}, "end_point": {"row": 53, "column": 66}}, {"id": 278, "type": "field_identifier", "text": "z", "parent": 276, "children": [], "start_point": {"row": 53, "column": 68}, "end_point": {"row": 53, "column": 69}}, {"id": 279, "type": "function_definition", "text": "void\nvector_add (Vector *self, Vector *other)\n{\n self->x += other->x;\n self->y += other->y;\n self->z += other->z;\n}", "parent": null, "children": [280, 281], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 280, "type": "primitive_type", "text": "void", "parent": 279, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 281, "type": "function_declarator", "text": "vector_add (Vector *self, Vector *other)", "parent": 279, "children": [282, 283], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 40}}, {"id": 282, "type": "identifier", "text": "vector_add", "parent": 281, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 10}}, {"id": 283, "type": "parameter_list", "text": "(Vector *self, Vector *other)", "parent": 281, "children": [284, 289], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 40}}, {"id": 284, "type": "parameter_declaration", "text": "Vector *self", "parent": 283, "children": [285, 286], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 24}}, {"id": 285, "type": "type_identifier", "text": "Vector", "parent": 284, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 18}}, {"id": 286, "type": "pointer_declarator", "text": "*self", "parent": 284, "children": [287, 288], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 24}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 20}}, {"id": 288, "type": "identifier", "text": "self", "parent": 286, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 24}}, {"id": 289, "type": "parameter_declaration", "text": "Vector *other", "parent": 283, "children": [290, 291], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 39}}, {"id": 290, "type": "type_identifier", "text": "Vector", "parent": 289, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 32}}, {"id": 291, "type": "pointer_declarator", "text": "*other", "parent": 289, "children": [292, 293], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 39}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 34}}, {"id": 293, "type": "identifier", "text": "other", "parent": 291, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 39}}, {"id": 294, "type": "assignment_expression", "text": "self->x += other->x", "parent": 279, "children": [295, 298, 299], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 21}}, {"id": 295, "type": "field_expression", "text": "self->x", "parent": 294, "children": [296, 297], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 9}}, {"id": 296, "type": "identifier", "text": "self", "parent": 295, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 6}}, {"id": 297, "type": "field_identifier", "text": "x", "parent": 295, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 9}}, {"id": 298, "type": "+=", "text": "+=", "parent": 294, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 12}}, {"id": 299, "type": "field_expression", "text": "other->x", "parent": 294, "children": [300, 301], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 21}}, {"id": 300, "type": "identifier", "text": "other", "parent": 299, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 18}}, {"id": 301, "type": "field_identifier", "text": "x", "parent": 299, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 21}}, {"id": 302, "type": "assignment_expression", "text": "self->y += other->y", "parent": 279, "children": [303, 306, 307], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 21}}, {"id": 303, "type": "field_expression", "text": "self->y", "parent": 302, "children": [304, 305], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 9}}, {"id": 304, "type": "identifier", "text": "self", "parent": 303, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 6}}, {"id": 305, "type": "field_identifier", "text": "y", "parent": 303, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 306, "type": "+=", "text": "+=", "parent": 302, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 12}}, {"id": 307, "type": "field_expression", "text": "other->y", "parent": 302, "children": [308, 309], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 21}}, {"id": 308, "type": "identifier", "text": "other", "parent": 307, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 18}}, {"id": 309, "type": "field_identifier", "text": "y", "parent": 307, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 310, "type": "assignment_expression", "text": "self->z += other->z", "parent": 279, "children": [311, 314, 315], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 21}}, {"id": 311, "type": "field_expression", "text": "self->z", "parent": 310, "children": [312, 313], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 9}}, {"id": 312, "type": "identifier", "text": "self", "parent": 311, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 313, "type": "field_identifier", "text": "z", "parent": 311, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 314, "type": "+=", "text": "+=", "parent": 310, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 12}}, {"id": 315, "type": "field_expression", "text": "other->z", "parent": 310, "children": [316, 317], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 21}}, {"id": 316, "type": "identifier", "text": "other", "parent": 315, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 18}}, {"id": 317, "type": "field_identifier", "text": "z", "parent": 315, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 318, "type": "function_definition", "text": "void\nvector_subtract (Vector *self, Vector *other)\n{\n self->x -= other->x;\n self->y -= other->y;\n self->z -= other->z;\n}", "parent": null, "children": [319, 320], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 319, "type": "primitive_type", "text": "void", "parent": 318, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 320, "type": "function_declarator", "text": "vector_subtract (Vector *self, Vector *other)", "parent": 318, "children": [321, 322], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 45}}, {"id": 321, "type": "identifier", "text": "vector_subtract", "parent": 320, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 15}}, {"id": 322, "type": "parameter_list", "text": "(Vector *self, Vector *other)", "parent": 320, "children": [323, 328], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 45}}, {"id": 323, "type": "parameter_declaration", "text": "Vector *self", "parent": 322, "children": [324, 325], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 29}}, {"id": 324, "type": "type_identifier", "text": "Vector", "parent": 323, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 23}}, {"id": 325, "type": "pointer_declarator", "text": "*self", "parent": 323, "children": [326, 327], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 29}}, {"id": 326, "type": "*", "text": "*", "parent": 325, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 25}}, {"id": 327, "type": "identifier", "text": "self", "parent": 325, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 29}}, {"id": 328, "type": "parameter_declaration", "text": "Vector *other", "parent": 322, "children": [329, 330], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 44}}, {"id": 329, "type": "type_identifier", "text": "Vector", "parent": 328, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 37}}, {"id": 330, "type": "pointer_declarator", "text": "*other", "parent": 328, "children": [331, 332], "start_point": {"row": 65, "column": 38}, "end_point": {"row": 65, "column": 44}}, {"id": 331, "type": "*", "text": "*", "parent": 330, "children": [], "start_point": {"row": 65, "column": 38}, "end_point": {"row": 65, "column": 39}}, {"id": 332, "type": "identifier", "text": "other", "parent": 330, "children": [], "start_point": {"row": 65, "column": 39}, "end_point": {"row": 65, "column": 44}}, {"id": 333, "type": "assignment_expression", "text": "self->x -= other->x", "parent": 318, "children": [334, 337, 338], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 21}}, {"id": 334, "type": "field_expression", "text": "self->x", "parent": 333, "children": [335, 336], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 9}}, {"id": 335, "type": "identifier", "text": "self", "parent": 334, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 6}}, {"id": 336, "type": "field_identifier", "text": "x", "parent": 334, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 337, "type": "-=", "text": "-=", "parent": 333, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 12}}, {"id": 338, "type": "field_expression", "text": "other->x", "parent": 333, "children": [339, 340], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 21}}, {"id": 339, "type": "identifier", "text": "other", "parent": 338, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 18}}, {"id": 340, "type": "field_identifier", "text": "x", "parent": 338, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 21}}, {"id": 341, "type": "assignment_expression", "text": "self->y -= other->y", "parent": 318, "children": [342, 345, 346], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 21}}, {"id": 342, "type": "field_expression", "text": "self->y", "parent": 341, "children": [343, 344], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 9}}, {"id": 343, "type": "identifier", "text": "self", "parent": 342, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 6}}, {"id": 344, "type": "field_identifier", "text": "y", "parent": 342, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 345, "type": "-=", "text": "-=", "parent": 341, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 12}}, {"id": 346, "type": "field_expression", "text": "other->y", "parent": 341, "children": [347, 348], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 21}}, {"id": 347, "type": "identifier", "text": "other", "parent": 346, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 18}}, {"id": 348, "type": "field_identifier", "text": "y", "parent": 346, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 21}}, {"id": 349, "type": "assignment_expression", "text": "self->z -= other->z", "parent": 318, "children": [350, 353, 354], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 21}}, {"id": 350, "type": "field_expression", "text": "self->z", "parent": 349, "children": [351, 352], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 9}}, {"id": 351, "type": "identifier", "text": "self", "parent": 350, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 6}}, {"id": 352, "type": "field_identifier", "text": "z", "parent": 350, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 353, "type": "-=", "text": "-=", "parent": 349, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 12}}, {"id": 354, "type": "field_expression", "text": "other->z", "parent": 349, "children": [355, 356], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 21}}, {"id": 355, "type": "identifier", "text": "other", "parent": 354, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 18}}, {"id": 356, "type": "field_identifier", "text": "z", "parent": 354, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 21}}, {"id": 357, "type": "function_definition", "text": "void\nvector_multiply (Vector *self, double factor)\n{\n self->x *= factor;\n self->y *= factor;\n self->z *= factor;\n}", "parent": null, "children": [358, 359], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 358, "type": "primitive_type", "text": "void", "parent": 357, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 4}}, {"id": 359, "type": "function_declarator", "text": "vector_multiply (Vector *self, double factor)", "parent": 357, "children": [360, 361], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 45}}, {"id": 360, "type": "identifier", "text": "vector_multiply", "parent": 359, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 15}}, {"id": 361, "type": "parameter_list", "text": "(Vector *self, double factor)", "parent": 359, "children": [362, 367], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 45}}, {"id": 362, "type": "parameter_declaration", "text": "Vector *self", "parent": 361, "children": [363, 364], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 29}}, {"id": 363, "type": "type_identifier", "text": "Vector", "parent": 362, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 23}}, {"id": 364, "type": "pointer_declarator", "text": "*self", "parent": 362, "children": [365, 366], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 29}}, {"id": 365, "type": "*", "text": "*", "parent": 364, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 25}}, {"id": 366, "type": "identifier", "text": "self", "parent": 364, "children": [], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 29}}, {"id": 367, "type": "parameter_declaration", "text": "double factor", "parent": 361, "children": [368, 369], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 44}}, {"id": 368, "type": "primitive_type", "text": "double", "parent": 367, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 37}}, {"id": 369, "type": "identifier", "text": "factor", "parent": 367, "children": [], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 44}}, {"id": 370, "type": "assignment_expression", "text": "self->x *= factor", "parent": 357, "children": [371, 374, 375], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 19}}, {"id": 371, "type": "field_expression", "text": "self->x", "parent": 370, "children": [372, 373], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 9}}, {"id": 372, "type": "identifier", "text": "self", "parent": 371, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 6}}, {"id": 373, "type": "field_identifier", "text": "x", "parent": 371, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 9}}, {"id": 374, "type": "*=", "text": "*=", "parent": 370, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 12}}, {"id": 375, "type": "identifier", "text": "factor", "parent": 370, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 19}}, {"id": 376, "type": "assignment_expression", "text": "self->y *= factor", "parent": 357, "children": [377, 380, 381], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 19}}, {"id": 377, "type": "field_expression", "text": "self->y", "parent": 376, "children": [378, 379], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 9}}, {"id": 378, "type": "identifier", "text": "self", "parent": 377, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 379, "type": "field_identifier", "text": "y", "parent": 377, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 380, "type": "*=", "text": "*=", "parent": 376, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 12}}, {"id": 381, "type": "identifier", "text": "factor", "parent": 376, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 19}}, {"id": 382, "type": "assignment_expression", "text": "self->z *= factor", "parent": 357, "children": [383, 386, 387], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 19}}, {"id": 383, "type": "field_expression", "text": "self->z", "parent": 382, "children": [384, 385], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 9}}, {"id": 384, "type": "identifier", "text": "self", "parent": 383, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 385, "type": "field_identifier", "text": "z", "parent": 383, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 9}}, {"id": 386, "type": "*=", "text": "*=", "parent": 382, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 12}}, {"id": 387, "type": "identifier", "text": "factor", "parent": 382, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 19}}, {"id": 388, "type": "function_definition", "text": "double\nvector_magnitude (Vector *self)\n{\n return sqrt(self->x*self->x + self->y*self->y + self->z*self->z);\n}", "parent": null, "children": [389, 390], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 389, "type": "primitive_type", "text": "double", "parent": 388, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 6}}, {"id": 390, "type": "function_declarator", "text": "vector_magnitude (Vector *self)", "parent": 388, "children": [391, 392], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 31}}, {"id": 391, "type": "identifier", "text": "vector_magnitude", "parent": 390, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 16}}, {"id": 392, "type": "parameter_list", "text": "(Vector *self)", "parent": 390, "children": [393], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 31}}, {"id": 393, "type": "parameter_declaration", "text": "Vector *self", "parent": 392, "children": [394, 395], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 30}}, {"id": 394, "type": "type_identifier", "text": "Vector", "parent": 393, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 24}}, {"id": 395, "type": "pointer_declarator", "text": "*self", "parent": 393, "children": [396, 397], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 30}}, {"id": 396, "type": "*", "text": "*", "parent": 395, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 26}}, {"id": 397, "type": "identifier", "text": "self", "parent": 395, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 30}}, {"id": 398, "type": "return_statement", "text": "return sqrt(self->x*self->x + self->y*self->y + self->z*self->z);", "parent": 388, "children": [399], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 67}}, {"id": 399, "type": "call_expression", "text": "sqrt(self->x*self->x + self->y*self->y + self->z*self->z)", "parent": 398, "children": [400, 401], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 66}}, {"id": 400, "type": "identifier", "text": "sqrt", "parent": 399, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 13}}, {"id": 401, "type": "argument_list", "text": "(self->x*self->x + self->y*self->y + self->z*self->z)", "parent": 399, "children": [402], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 66}}, {"id": 402, "type": "binary_expression", "text": "self->x*self->x + self->y*self->y + self->z*self->z", "parent": 401, "children": [403, 421, 422], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 65}}, {"id": 403, "type": "binary_expression", "text": "self->x*self->x + self->y*self->y", "parent": 402, "children": [404, 412, 413], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 47}}, {"id": 404, "type": "binary_expression", "text": "self->x*self->x", "parent": 403, "children": [405, 408, 409], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 29}}, {"id": 405, "type": "field_expression", "text": "self->x", "parent": 404, "children": [406, 407], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 21}}, {"id": 406, "type": "identifier", "text": "self", "parent": 405, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 18}}, {"id": 407, "type": "field_identifier", "text": "x", "parent": 405, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 408, "type": "*", "text": "*", "parent": 404, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 22}}, {"id": 409, "type": "field_expression", "text": "self->x", "parent": 404, "children": [410, 411], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 29}}, {"id": 410, "type": "identifier", "text": "self", "parent": 409, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 26}}, {"id": 411, "type": "field_identifier", "text": "x", "parent": 409, "children": [], "start_point": {"row": 83, "column": 28}, "end_point": {"row": 83, "column": 29}}, {"id": 412, "type": "+", "text": "+", "parent": 403, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 31}}, {"id": 413, "type": "binary_expression", "text": "self->y*self->y", "parent": 403, "children": [414, 417, 418], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 47}}, {"id": 414, "type": "field_expression", "text": "self->y", "parent": 413, "children": [415, 416], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 39}}, {"id": 415, "type": "identifier", "text": "self", "parent": 414, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 36}}, {"id": 416, "type": "field_identifier", "text": "y", "parent": 414, "children": [], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 39}}, {"id": 417, "type": "*", "text": "*", "parent": 413, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 40}}, {"id": 418, "type": "field_expression", "text": "self->y", "parent": 413, "children": [419, 420], "start_point": {"row": 83, "column": 40}, "end_point": {"row": 83, "column": 47}}, {"id": 419, "type": "identifier", "text": "self", "parent": 418, "children": [], "start_point": {"row": 83, "column": 40}, "end_point": {"row": 83, "column": 44}}, {"id": 420, "type": "field_identifier", "text": "y", "parent": 418, "children": [], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 47}}, {"id": 421, "type": "+", "text": "+", "parent": 402, "children": [], "start_point": {"row": 83, "column": 48}, "end_point": {"row": 83, "column": 49}}, {"id": 422, "type": "binary_expression", "text": "self->z*self->z", "parent": 402, "children": [423, 426, 427], "start_point": {"row": 83, "column": 50}, "end_point": {"row": 83, "column": 65}}, {"id": 423, "type": "field_expression", "text": "self->z", "parent": 422, "children": [424, 425], "start_point": {"row": 83, "column": 50}, "end_point": {"row": 83, "column": 57}}, {"id": 424, "type": "identifier", "text": "self", "parent": 423, "children": [], "start_point": {"row": 83, "column": 50}, "end_point": {"row": 83, "column": 54}}, {"id": 425, "type": "field_identifier", "text": "z", "parent": 423, "children": [], "start_point": {"row": 83, "column": 56}, "end_point": {"row": 83, "column": 57}}, {"id": 426, "type": "*", "text": "*", "parent": 422, "children": [], "start_point": {"row": 83, "column": 57}, "end_point": {"row": 83, "column": 58}}, {"id": 427, "type": "field_expression", "text": "self->z", "parent": 422, "children": [428, 429], "start_point": {"row": 83, "column": 58}, "end_point": {"row": 83, "column": 65}}, {"id": 428, "type": "identifier", "text": "self", "parent": 427, "children": [], "start_point": {"row": 83, "column": 58}, "end_point": {"row": 83, "column": 62}}, {"id": 429, "type": "field_identifier", "text": "z", "parent": 427, "children": [], "start_point": {"row": 83, "column": 64}, "end_point": {"row": 83, "column": 65}}, {"id": 430, "type": "function_definition", "text": "double\nvector_angle (Vector *self, Vector *other)\n{\n assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0);\n\n return acos (vector_dot (self, other) / (vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other)));\n}", "parent": null, "children": [431, 432], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 431, "type": "primitive_type", "text": "double", "parent": 430, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 6}}, {"id": 432, "type": "function_declarator", "text": "vector_angle (Vector *self, Vector *other)", "parent": 430, "children": [433, 434], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 42}}, {"id": 433, "type": "identifier", "text": "vector_angle", "parent": 432, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 12}}, {"id": 434, "type": "parameter_list", "text": "(Vector *self, Vector *other)", "parent": 432, "children": [435, 440], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 42}}, {"id": 435, "type": "parameter_declaration", "text": "Vector *self", "parent": 434, "children": [436, 437], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 26}}, {"id": 436, "type": "type_identifier", "text": "Vector", "parent": 435, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 20}}, {"id": 437, "type": "pointer_declarator", "text": "*self", "parent": 435, "children": [438, 439], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 26}}, {"id": 438, "type": "*", "text": "*", "parent": 437, "children": [], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 22}}, {"id": 439, "type": "identifier", "text": "self", "parent": 437, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 26}}, {"id": 440, "type": "parameter_declaration", "text": "Vector *other", "parent": 434, "children": [441, 442], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 41}}, {"id": 441, "type": "type_identifier", "text": "Vector", "parent": 440, "children": [], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 34}}, {"id": 442, "type": "pointer_declarator", "text": "*other", "parent": 440, "children": [443, 444], "start_point": {"row": 87, "column": 35}, "end_point": {"row": 87, "column": 41}}, {"id": 443, "type": "*", "text": "*", "parent": 442, "children": [], "start_point": {"row": 87, "column": 35}, "end_point": {"row": 87, "column": 36}}, {"id": 444, "type": "identifier", "text": "other", "parent": 442, "children": [], "start_point": {"row": 87, "column": 36}, "end_point": {"row": 87, "column": 41}}, {"id": 445, "type": "call_expression", "text": "assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0)", "parent": 430, "children": [446, 447], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 74}}, {"id": 446, "type": "identifier", "text": "assert", "parent": 445, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 8}}, {"id": 447, "type": "argument_list", "text": "(vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0)", "parent": 445, "children": [448], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 74}}, {"id": 448, "type": "binary_expression", "text": "vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0", "parent": 447, "children": [449, 456, 457], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 73}}, {"id": 449, "type": "binary_expression", "text": "vector_magnitude (self) > 0.0", "parent": 448, "children": [450, 454, 455], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 39}}, {"id": 450, "type": "call_expression", "text": "vector_magnitude (self)", "parent": 449, "children": [451, 452], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 33}}, {"id": 451, "type": "identifier", "text": "vector_magnitude", "parent": 450, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 26}}, {"id": 452, "type": "argument_list", "text": "(self)", "parent": 450, "children": [453], "start_point": {"row": 89, "column": 27}, "end_point": {"row": 89, "column": 33}}, {"id": 453, "type": "identifier", "text": "self", "parent": 452, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 32}}, {"id": 454, "type": ">", "text": ">", "parent": 449, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 35}}, {"id": 455, "type": "number_literal", "text": "0.0", "parent": 449, "children": [], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 39}}, {"id": 456, "type": "&&", "text": "&&", "parent": 448, "children": [], "start_point": {"row": 89, "column": 40}, "end_point": {"row": 89, "column": 42}}, {"id": 457, "type": "binary_expression", "text": "vector_magnitude (other) > 0.0", "parent": 448, "children": [458, 462, 463], "start_point": {"row": 89, "column": 43}, "end_point": {"row": 89, "column": 73}}, {"id": 458, "type": "call_expression", "text": "vector_magnitude (other)", "parent": 457, "children": [459, 460], "start_point": {"row": 89, "column": 43}, "end_point": {"row": 89, "column": 67}}, {"id": 459, "type": "identifier", "text": "vector_magnitude", "parent": 458, "children": [], "start_point": {"row": 89, "column": 43}, "end_point": {"row": 89, "column": 59}}, {"id": 460, "type": "argument_list", "text": "(other)", "parent": 458, "children": [461], "start_point": {"row": 89, "column": 60}, "end_point": {"row": 89, "column": 67}}, {"id": 461, "type": "identifier", "text": "other", "parent": 460, "children": [], "start_point": {"row": 89, "column": 61}, "end_point": {"row": 89, "column": 66}}, {"id": 462, "type": ">", "text": ">", "parent": 457, "children": [], "start_point": {"row": 89, "column": 68}, "end_point": {"row": 89, "column": 69}}, {"id": 463, "type": "number_literal", "text": "0.0", "parent": 457, "children": [], "start_point": {"row": 89, "column": 70}, "end_point": {"row": 89, "column": 73}}, {"id": 464, "type": "return_statement", "text": "return acos (vector_dot (self, other) / (vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other)));", "parent": 430, "children": [465], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 92, "column": 37}}, {"id": 465, "type": "call_expression", "text": "acos (vector_dot (self, other) / (vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other)))", "parent": 464, "children": [466, 467], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 92, "column": 36}}, {"id": 466, "type": "identifier", "text": "acos", "parent": 465, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 13}}, {"id": 467, "type": "argument_list", "text": "(vector_dot (self, other) / (vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other)))", "parent": 465, "children": [468], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 92, "column": 36}}, {"id": 468, "type": "binary_expression", "text": "vector_dot (self, other) / (vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other))", "parent": 467, "children": [469, 474, 475], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 92, "column": 35}}, {"id": 469, "type": "call_expression", "text": "vector_dot (self, other)", "parent": 468, "children": [470, 471], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 39}}, {"id": 470, "type": "identifier", "text": "vector_dot", "parent": 469, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 25}}, {"id": 471, "type": "argument_list", "text": "(self, other)", "parent": 469, "children": [472, 473], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 39}}, {"id": 472, "type": "identifier", "text": "self", "parent": 471, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 31}}, {"id": 473, "type": "identifier", "text": "other", "parent": 471, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 38}}, {"id": 474, "type": "/", "text": "/", "parent": 468, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 41}}, {"id": 475, "type": "parenthesized_expression", "text": "(vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other))", "parent": 468, "children": [476], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 92, "column": 35}}, {"id": 476, "type": "binary_expression", "text": "vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other)", "parent": 475, "children": [477, 481, 482], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 92, "column": 34}}, {"id": 477, "type": "call_expression", "text": "vector_magnitude (self)", "parent": 476, "children": [478, 479], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 66}}, {"id": 478, "type": "identifier", "text": "vector_magnitude", "parent": 477, "children": [], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 59}}, {"id": 479, "type": "argument_list", "text": "(self)", "parent": 477, "children": [480], "start_point": {"row": 91, "column": 60}, "end_point": {"row": 91, "column": 66}}, {"id": 480, "type": "identifier", "text": "self", "parent": 479, "children": [], "start_point": {"row": 91, "column": 61}, "end_point": {"row": 91, "column": 65}}, {"id": 481, "type": "*", "text": "*", "parent": 476, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 9}}, {"id": 482, "type": "call_expression", "text": "vector_magnitude (other)", "parent": 476, "children": [483, 484], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 34}}, {"id": 483, "type": "identifier", "text": "vector_magnitude", "parent": 482, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 26}}, {"id": 484, "type": "argument_list", "text": "(other)", "parent": 482, "children": [485], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 34}}, {"id": 485, "type": "identifier", "text": "other", "parent": 484, "children": [], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 33}}, {"id": 486, "type": "function_definition", "text": "void\nvector_free (Vector *self)\n{\n if (self)\n free (self);\n}", "parent": null, "children": [487, 488], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 487, "type": "primitive_type", "text": "void", "parent": 486, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 4}}, {"id": 488, "type": "function_declarator", "text": "vector_free (Vector *self)", "parent": 486, "children": [489, 490], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 26}}, {"id": 489, "type": "identifier", "text": "vector_free", "parent": 488, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 11}}, {"id": 490, "type": "parameter_list", "text": "(Vector *self)", "parent": 488, "children": [491], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 26}}, {"id": 491, "type": "parameter_declaration", "text": "Vector *self", "parent": 490, "children": [492, 493], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 25}}, {"id": 492, "type": "type_identifier", "text": "Vector", "parent": 491, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 19}}, {"id": 493, "type": "pointer_declarator", "text": "*self", "parent": 491, "children": [494, 495], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 25}}, {"id": 494, "type": "*", "text": "*", "parent": 493, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 21}}, {"id": 495, "type": "identifier", "text": "self", "parent": 493, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 25}}, {"id": 496, "type": "if_statement", "text": "if (self)\n free (self);", "parent": 486, "children": [497], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 99, "column": 16}}, {"id": 497, "type": "parenthesized_expression", "text": "(self)", "parent": 496, "children": [498], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 11}}, {"id": 498, "type": "identifier", "text": "self", "parent": 497, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 10}}, {"id": 499, "type": "call_expression", "text": "free (self)", "parent": 496, "children": [500, 501], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 15}}, {"id": 500, "type": "identifier", "text": "free", "parent": 499, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 8}}, {"id": 501, "type": "argument_list", "text": "(self)", "parent": 499, "children": [502], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 15}}, {"id": 502, "type": "identifier", "text": "self", "parent": 501, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 14}}]}, "node_categories": {"declarations": {"functions": [12, 16, 56, 60, 102, 106, 198, 200, 235, 237, 279, 281, 318, 320, 357, 359, 388, 390, 430, 432, 486, 488], "variables": [19, 22, 25, 28, 63, 68, 109, 114, 119, 203, 208, 211, 214, 240, 245, 284, 289, 323, 328, 362, 367, 393, 435, 440, 491], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [34, 37, 38, 41, 46, 51, 74, 77, 78, 81, 84, 88, 91, 95, 98, 125, 128, 129, 132, 135, 136, 137, 141, 145, 146, 150, 154, 157, 158, 159, 163, 167, 168, 172, 176, 179, 180, 181, 185, 189, 190, 194, 218, 224, 230, 251, 252, 253, 254, 258, 262, 263, 267, 271, 272, 276, 295, 299, 303, 307, 311, 315, 334, 338, 342, 346, 350, 354, 371, 377, 383, 399, 402, 403, 404, 405, 409, 413, 414, 418, 422, 423, 427, 445, 448, 449, 450, 457, 458, 465, 468, 469, 475, 476, 477, 482, 497, 499], "assignments": [40, 45, 50, 80, 87, 94, 131, 153, 175, 217, 223, 229, 294, 302, 310, 333, 341, 349, 370, 376, 382], "loops": [], "conditionals": [13, 17, 21, 24, 27, 29, 35, 39, 42, 44, 47, 49, 52, 54, 57, 61, 64, 67, 69, 75, 79, 82, 85, 86, 89, 92, 93, 96, 99, 100, 103, 107, 110, 113, 115, 118, 120, 126, 130, 133, 138, 139, 142, 143, 147, 148, 151, 152, 155, 160, 161, 164, 165, 169, 170, 173, 174, 177, 182, 183, 186, 187, 191, 192, 195, 196, 201, 204, 207, 210, 213, 216, 219, 220, 222, 225, 226, 228, 231, 232, 234, 238, 241, 244, 246, 249, 255, 256, 259, 260, 264, 265, 268, 269, 273, 274, 277, 278, 282, 285, 288, 290, 293, 296, 297, 300, 301, 304, 305, 308, 309, 312, 313, 316, 317, 321, 324, 327, 329, 332, 335, 336, 339, 340, 343, 344, 347, 348, 351, 352, 355, 356, 360, 363, 366, 369, 372, 373, 375, 378, 379, 381, 384, 385, 387, 391, 394, 397, 400, 406, 407, 410, 411, 415, 416, 419, 420, 424, 425, 428, 429, 433, 436, 439, 441, 444, 446, 451, 453, 459, 461, 466, 470, 472, 473, 478, 480, 483, 485, 489, 492, 495, 496, 498, 500, 502], "returns": [55, 101, 197, 250, 398, 464], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 455, 463], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "unknown", "text_snippet": "Vector *\nvector_new (double x, double y, double z)\n{\n Vector *new = malloc (sizeof (Vector));\n\n ne"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "vector_new (double x, double y, double z)"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "Vector *\nvector_copy (Vector *a)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = a->x;\n new"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "vector_copy (Vector *a)"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "Vector *\nvector_cross (Vector *a, Vector *b)\n{\n Vector *new = malloc (sizeof (Vector));\n \n new->x"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "vector_cross (Vector *a, Vector *b)"}, {"node_id": 198, "universal_type": "function", "name": "vector_set", "text_snippet": "void\nvector_set (Vector *self, double x, double y, double z)\n{\n self->x = x;\n self->y = y;\n self-"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "vector_set (Vector *self, double x, double y, double z)"}, {"node_id": 235, "universal_type": "function", "name": "unknown", "text_snippet": "double\nvector_dot (Vector *self, Vector *other)\n{\n return self->x * other->x + self->y * other->y +"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "vector_dot (Vector *self, Vector *other)"}, {"node_id": 279, "universal_type": "function", "name": "vector_add", "text_snippet": "void\nvector_add (Vector *self, Vector *other)\n{\n self->x += other->x;\n self->y += other->y;\n self"}, {"node_id": 281, "universal_type": "function", "name": "unknown", "text_snippet": "vector_add (Vector *self, Vector *other)"}, {"node_id": 318, "universal_type": "function", "name": "vector_subtract", "text_snippet": "void\nvector_subtract (Vector *self, Vector *other)\n{\n self->x -= other->x;\n self->y -= other->y;\n "}, {"node_id": 320, "universal_type": "function", "name": "unknown", "text_snippet": "vector_subtract (Vector *self, Vector *other)"}, {"node_id": 357, "universal_type": "function", "name": "vector_multiply", "text_snippet": "void\nvector_multiply (Vector *self, double factor)\n{\n self->x *= factor;\n self->y *= factor;\n sel"}, {"node_id": 359, "universal_type": "function", "name": "unknown", "text_snippet": "vector_multiply (Vector *self, double factor)"}, {"node_id": 388, "universal_type": "function", "name": "unknown", "text_snippet": "double\nvector_magnitude (Vector *self)\n{\n return sqrt(self->x*self->x + self->y*self->y + self->z*s"}, {"node_id": 390, "universal_type": "function", "name": "unknown", "text_snippet": "vector_magnitude (Vector *self)"}, {"node_id": 430, "universal_type": "function", "name": "unknown", "text_snippet": "double\nvector_angle (Vector *self, Vector *other)\n{\n assert (vector_magnitude (self) > 0.0 && vecto"}, {"node_id": 432, "universal_type": "function", "name": "unknown", "text_snippet": "vector_angle (Vector *self, Vector *other)"}, {"node_id": 486, "universal_type": "function", "name": "vector_free", "text_snippet": "void\nvector_free (Vector *self)\n{\n if (self)\n free (self);\n}"}, {"node_id": 488, "universal_type": "function", "name": "unknown", "text_snippet": "vector_free (Vector *self)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <assert.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <math.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 \"vector.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <assert.h>\n#include <math.h>\n#include <stdlib.h>\n\n#include \"vector.h\"\n\nVector *\nvector_new (double x, double y, double z)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = x;\n new->y = y;\n new->z = z;\n\n return new;\n}\n\nVector *\nvector_copy (Vector *a)\n{\n Vector *new = malloc (sizeof (Vector));\n\n new->x = a->x;\n new->y = a->y;\n new->z = a->z;\n\n return new;\n}\n\nVector *\nvector_cross (Vector *a, Vector *b)\n{\n Vector *new = malloc (sizeof (Vector));\n \n new->x = a->y * b->z - a->z * b->y;\n new->y = a->z * b->x - a->x * b->z;\n new->z = a->x * b->y - a->y * b->x;\n\n return new;\n}\n\nvoid\nvector_set (Vector *self, double x, double y, double z)\n{\n self->x = x;\n self->y = y;\n self->z = z;\n}\n\ndouble\nvector_dot (Vector *self, Vector *other)\n{\n return self->x * other->x + self->y * other->y + self->z * other->z;\n}\n\nvoid\nvector_add (Vector *self, Vector *other)\n{\n self->x += other->x;\n self->y += other->y;\n self->z += other->z;\n}\n\nvoid\nvector_subtract (Vector *self, Vector *other)\n{\n self->x -= other->x;\n self->y -= other->y;\n self->z -= other->z;\n}\n\nvoid\nvector_multiply (Vector *self, double factor)\n{\n self->x *= factor;\n self->y *= factor;\n self->z *= factor;\n}\n\ndouble\nvector_magnitude (Vector *self)\n{\n return sqrt(self->x*self->x + self->y*self->y + self->z*self->z);\n}\n\ndouble\nvector_angle (Vector *self, Vector *other)\n{\n assert (vector_magnitude (self) > 0.0 && vector_magnitude (other) > 0.0);\n\n return acos (vector_dot (self, other) / (vector_magnitude (self) \n\t\t\t\t\t * vector_magnitude (other)));\n}\n\nvoid\nvector_free (Vector *self)\n{\n if (self)\n free (self);\n}\n"}
80,482
c
#pragma once #include "LiberoMath.h" #include <string> // - 40 for windowed mode #define WINDOWED_VERTICAL_CUTOFF 40 #define MENUBAR_VERTICAL_CUTOFF 20 namespace Libero { namespace CoreSettings { static std::string m_VersionName = "v1.0"; static std::string m_WindowName = "Libero Engine " + m_VersionName; static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f }; static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF }; static Vector2ui m_GameDimensions = { 720, 640 }; static Vector2ui m_GameWindowTopLeft = { size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)), size_t(MENUBAR_VERTICAL_CUTOFF) }; } }
33.6
20
(translation_unit) "#pragma once\n#include "LiberoMath.h"\n#include <string>\n\n// - 40 for windowed mode\n#define WINDOWED_VERTICAL_CUTOFF 40\n#define MENUBAR_VERTICAL_CUTOFF 20\n\nnamespace Libero\n{\n namespace CoreSettings\n {\n static std::string m_VersionName = "v1.0";\n static std::string m_WindowName = "Libero Engine " + m_VersionName;\n static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n static Vector2ui m_GameDimensions = { 720, 640 };\n static Vector2ui m_GameWindowTopLeft = {\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) };\n\n }\n}\n\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "LiberoMath.h"\n" (#include) "#include" (string_literal) ""LiberoMath.h"" (") """ (string_content) "LiberoMath.h" (") """ (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (comment) "// - 40 for windowed mode" (preproc_def) "#define WINDOWED_VERTICAL_CUTOFF 40\n" (#define) "#define" (identifier) "WINDOWED_VERTICAL_CUTOFF" (preproc_arg) "40" (preproc_def) "#define MENUBAR_VERTICAL_CUTOFF 20\n" (#define) "#define" (identifier) "MENUBAR_VERTICAL_CUTOFF" (preproc_arg) "20" (function_definition) "namespace Libero\n{\n namespace CoreSettings\n {\n static std::string m_VersionName = "v1.0";\n static std::string m_WindowName = "Libero Engine " + m_VersionName;\n static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n static Vector2ui m_GameDimensions = { 720, 640 };\n static Vector2ui m_GameWindowTopLeft = {\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) };\n\n }\n}" (type_identifier) "namespace" (identifier) "Libero" (compound_statement) "{\n namespace CoreSettings\n {\n static std::string m_VersionName = "v1.0";\n static std::string m_WindowName = "Libero Engine " + m_VersionName;\n static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n static Vector2ui m_GameDimensions = { 720, 640 };\n static Vector2ui m_GameWindowTopLeft = {\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) };\n\n }\n}" ({) "{" (function_definition) "namespace CoreSettings\n {\n static std::string m_VersionName = "v1.0";\n static std::string m_WindowName = "Libero Engine " + m_VersionName;\n static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n static Vector2ui m_GameDimensions = { 720, 640 };\n static Vector2ui m_GameWindowTopLeft = {\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) };\n\n }" (type_identifier) "namespace" (identifier) "CoreSettings" (compound_statement) "{\n static std::string m_VersionName = "v1.0";\n static std::string m_WindowName = "Libero Engine " + m_VersionName;\n static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n static Vector2ui m_GameDimensions = { 720, 640 };\n static Vector2ui m_GameWindowTopLeft = {\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) };\n\n }" ({) "{" (declaration) "static std::string m_VersionName = "v1.0";" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (init_declarator) "m_VersionName = "v1.0"" (identifier) "m_VersionName" (=) "=" (string_literal) ""v1.0"" (") """ (string_content) "v1.0" (") """ (;) ";" (declaration) "static std::string m_WindowName = "Libero Engine " + m_VersionName;" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (init_declarator) "m_WindowName = "Libero Engine " + m_VersionName" (identifier) "m_WindowName" (=) "=" (binary_expression) ""Libero Engine " + m_VersionName" (string_literal) ""Libero Engine "" (") """ (string_content) "Libero Engine " (") """ (+) "+" (identifier) "m_VersionName" (;) ";" (declaration) "static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };" (storage_class_specifier) "static" (static) "static" (type_identifier) "ColorRGBA" (init_declarator) "m_ClearColor = { 63.f, 0.f, 0.0f, 255.f }" (identifier) "m_ClearColor" (=) "=" (initializer_list) "{ 63.f, 0.f, 0.0f, 255.f }" ({) "{" (number_literal) "63.f" (,) "," (number_literal) "0.f" (,) "," (number_literal) "0.0f" (,) "," (number_literal) "255.f" (}) "}" (;) ";" (declaration) "static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector2ui" (init_declarator) "m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF }" (identifier) "m_ApplicationDimensions" (=) "=" (initializer_list) "{ 1920, 1080 - WINDOWED_VERTICAL_CUTOFF }" ({) "{" (number_literal) "1920" (,) "," (binary_expression) "1080 - WINDOWED_VERTICAL_CUTOFF" (number_literal) "1080" (-) "-" (identifier) "WINDOWED_VERTICAL_CUTOFF" (}) "}" (;) ";" (declaration) "static Vector2ui m_GameDimensions = { 720, 640 };" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector2ui" (init_declarator) "m_GameDimensions = { 720, 640 }" (identifier) "m_GameDimensions" (=) "=" (initializer_list) "{ 720, 640 }" ({) "{" (number_literal) "720" (,) "," (number_literal) "640" (}) "}" (;) ";" (declaration) "static Vector2ui m_GameWindowTopLeft = {\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) };" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector2ui" (init_declarator) "m_GameWindowTopLeft = {\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) }" (identifier) "m_GameWindowTopLeft" (=) "=" (initializer_list) "{\n size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n size_t(MENUBAR_VERTICAL_CUTOFF) }" ({) "{" (call_expression) "size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f))" (identifier) "size_t" (argument_list) "((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f))" (() "(" (cast_expression) "(float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)" (() "(" (type_descriptor) "float(m_ApplicationDimensions.x)" (primitive_type) "float" (abstract_function_declarator) "(m_ApplicationDimensions.x)" (parameter_list) "(m_ApplicationDimensions.x)" (() "(" (parameter_declaration) "m_ApplicationDimensions.x" (type_identifier) "m_ApplicationDimensions" (ERROR) "." (.) "." (identifier) "x" ()) ")" (ERROR) "/ 2.f" (/) "/" (number_literal) "2.f" ()) ")" (unary_expression) "- (float(m_GameDimensions.x) / 2.f)" (-) "-" (parenthesized_expression) "(float(m_GameDimensions.x) / 2.f)" (() "(" (ERROR) "float(m_GameDimensions.x) /" (type_descriptor) "float(m_GameDimensions.x)" (primitive_type) "float" (abstract_function_declarator) "(m_GameDimensions.x)" (parameter_list) "(m_GameDimensions.x)" (() "(" (parameter_declaration) "m_GameDimensions.x" (type_identifier) "m_GameDimensions" (ERROR) "." (.) "." (identifier) "x" ()) ")" (/) "/" (number_literal) "2.f" ()) ")" ()) ")" (,) "," (call_expression) "size_t(MENUBAR_VERTICAL_CUTOFF)" (identifier) "size_t" (argument_list) "(MENUBAR_VERTICAL_CUTOFF)" (() "(" (identifier) "MENUBAR_VERTICAL_CUTOFF" ()) ")" (}) "}" (;) ";" (}) "}" (}) "}"
177
6
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 33.6, "nodes": 108, "errors": 0, "source_hash": "bae08609fce1bbfd1eb834d2672aa8f80ac60257aecef99dfc7fe4ef3a0654c0", "categorized_nodes": 67}, "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 \"LiberoMath.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": "\"LiberoMath.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\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>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 9, "type": "preproc_def", "text": "#define WINDOWED_VERTICAL_CUTOFF 40\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": "WINDOWED_VERTICAL_CUTOFF", "parent": 9, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 32}}, {"id": 12, "type": "preproc_arg", "text": "40", "parent": 9, "children": [], "start_point": {"row": 5, "column": 33}, "end_point": {"row": 5, "column": 35}}, {"id": 13, "type": "preproc_def", "text": "#define MENUBAR_VERTICAL_CUTOFF 20\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": "MENUBAR_VERTICAL_CUTOFF", "parent": 13, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 31}}, {"id": 16, "type": "preproc_arg", "text": "20", "parent": 13, "children": [], "start_point": {"row": 6, "column": 32}, "end_point": {"row": 6, "column": 34}}, {"id": 17, "type": "function_definition", "text": "namespace Libero\n{\n\tnamespace CoreSettings\n\t{\n\t\tstatic std::string m_VersionName = \"v1.0\";\n\t\tstatic std::string m_WindowName = \"Libero Engine \" + m_VersionName;\n\t\tstatic ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n\t\tstatic Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n\t\tstatic Vector2ui m_GameDimensions = { 720, 640 };\n\t\tstatic Vector2ui m_GameWindowTopLeft = {\n\t\t\t\tsize_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n\t\t\t\tsize_t(MENUBAR_VERTICAL_CUTOFF) };\n\n\t}\n}", "parent": null, "children": [18, 19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 18, "type": "type_identifier", "text": "namespace", "parent": 17, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 19, "type": "identifier", "text": "Libero", "parent": 17, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 16}}, {"id": 20, "type": "function_definition", "text": "namespace CoreSettings\n\t{\n\t\tstatic std::string m_VersionName = \"v1.0\";\n\t\tstatic std::string m_WindowName = \"Libero Engine \" + m_VersionName;\n\t\tstatic ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n\t\tstatic Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n\t\tstatic Vector2ui m_GameDimensions = { 720, 640 };\n\t\tstatic Vector2ui m_GameWindowTopLeft = {\n\t\t\t\tsize_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n\t\t\t\tsize_t(MENUBAR_VERTICAL_CUTOFF) };\n\n\t}", "parent": 17, "children": [21, 22], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 22, "column": 2}}, {"id": 21, "type": "type_identifier", "text": "namespace", "parent": 20, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 22, "type": "identifier", "text": "CoreSettings", "parent": 20, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 23}}, {"id": 23, "type": "declaration", "text": "static std::string m_VersionName = \"v1.0\";", "parent": 20, "children": [24, 25, 27], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 44}}, {"id": 24, "type": "type_identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 25, "type": "ERROR", "text": "::string", "parent": 23, "children": [26], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 20}}, {"id": 26, "type": "identifier", "text": "string", "parent": 25, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 20}}, {"id": 27, "type": "init_declarator", "text": "m_VersionName = \"v1.0\"", "parent": 23, "children": [28, 29, 30], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 43}}, {"id": 28, "type": "identifier", "text": "m_VersionName", "parent": 27, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 34}}, {"id": 29, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 36}}, {"id": 30, "type": "string_literal", "text": "\"v1.0\"", "parent": 27, "children": [], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 43}}, {"id": 31, "type": "declaration", "text": "static std::string m_WindowName = \"Libero Engine \" + m_VersionName;", "parent": 20, "children": [32, 33, 35], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 69}}, {"id": 32, "type": "type_identifier", "text": "std", "parent": 31, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 12}}, {"id": 33, "type": "ERROR", "text": "::string", "parent": 31, "children": [34], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 20}}, {"id": 34, "type": "identifier", "text": "string", "parent": 33, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 20}}, {"id": 35, "type": "init_declarator", "text": "m_WindowName = \"Libero Engine \" + m_VersionName", "parent": 31, "children": [36, 37, 38], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 68}}, {"id": 36, "type": "identifier", "text": "m_WindowName", "parent": 35, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 33}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 35}}, {"id": 38, "type": "binary_expression", "text": "\"Libero Engine \" + m_VersionName", "parent": 35, "children": [39, 40, 41], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 68}}, {"id": 39, "type": "string_literal", "text": "\"Libero Engine \"", "parent": 38, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 52}}, {"id": 40, "type": "+", "text": "+", "parent": 38, "children": [], "start_point": {"row": 13, "column": 53}, "end_point": {"row": 13, "column": 54}}, {"id": 41, "type": "identifier", "text": "m_VersionName", "parent": 38, "children": [], "start_point": {"row": 13, "column": 55}, "end_point": {"row": 13, "column": 68}}, {"id": 42, "type": "declaration", "text": "static ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };", "parent": 20, "children": [43, 44], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 61}}, {"id": 43, "type": "type_identifier", "text": "ColorRGBA", "parent": 42, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 18}}, {"id": 44, "type": "init_declarator", "text": "m_ClearColor = { 63.f, 0.f, 0.0f, 255.f }", "parent": 42, "children": [45, 46, 47], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 60}}, {"id": 45, "type": "identifier", "text": "m_ClearColor", "parent": 44, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 31}}, {"id": 46, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 33}}, {"id": 47, "type": "initializer_list", "text": "{ 63.f, 0.f, 0.0f, 255.f }", "parent": 44, "children": [48, 49, 50, 51], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 60}}, {"id": 48, "type": "number_literal", "text": "63.f", "parent": 47, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 40}}, {"id": 49, "type": "number_literal", "text": "0.f", "parent": 47, "children": [], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 45}}, {"id": 50, "type": "number_literal", "text": "0.0f", "parent": 47, "children": [], "start_point": {"row": 14, "column": 47}, "end_point": {"row": 14, "column": 51}}, {"id": 51, "type": "number_literal", "text": "255.f", "parent": 47, "children": [], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 58}}, {"id": 52, "type": "declaration", "text": "static Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };", "parent": 20, "children": [53, 54], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 87}}, {"id": 53, "type": "type_identifier", "text": "Vector2ui", "parent": 52, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 18}}, {"id": 54, "type": "init_declarator", "text": "m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF }", "parent": 52, "children": [55, 56, 57], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 86}}, {"id": 55, "type": "identifier", "text": "m_ApplicationDimensions", "parent": 54, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 42}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 16, "column": 43}, "end_point": {"row": 16, "column": 44}}, {"id": 57, "type": "initializer_list", "text": "{ 1920, 1080 - WINDOWED_VERTICAL_CUTOFF }", "parent": 54, "children": [58, 59], "start_point": {"row": 16, "column": 45}, "end_point": {"row": 16, "column": 86}}, {"id": 58, "type": "number_literal", "text": "1920", "parent": 57, "children": [], "start_point": {"row": 16, "column": 47}, "end_point": {"row": 16, "column": 51}}, {"id": 59, "type": "binary_expression", "text": "1080 - WINDOWED_VERTICAL_CUTOFF", "parent": 57, "children": [60, 61, 62], "start_point": {"row": 16, "column": 53}, "end_point": {"row": 16, "column": 84}}, {"id": 60, "type": "number_literal", "text": "1080", "parent": 59, "children": [], "start_point": {"row": 16, "column": 53}, "end_point": {"row": 16, "column": 57}}, {"id": 61, "type": "-", "text": "-", "parent": 59, "children": [], "start_point": {"row": 16, "column": 58}, "end_point": {"row": 16, "column": 59}}, {"id": 62, "type": "identifier", "text": "WINDOWED_VERTICAL_CUTOFF", "parent": 59, "children": [], "start_point": {"row": 16, "column": 60}, "end_point": {"row": 16, "column": 84}}, {"id": 63, "type": "declaration", "text": "static Vector2ui m_GameDimensions = { 720, 640 };", "parent": 20, "children": [64, 65], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 51}}, {"id": 64, "type": "type_identifier", "text": "Vector2ui", "parent": 63, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 18}}, {"id": 65, "type": "init_declarator", "text": "m_GameDimensions = { 720, 640 }", "parent": 63, "children": [66, 67, 68], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 50}}, {"id": 66, "type": "identifier", "text": "m_GameDimensions", "parent": 65, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 35}}, {"id": 67, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 37}}, {"id": 68, "type": "initializer_list", "text": "{ 720, 640 }", "parent": 65, "children": [69, 70], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 50}}, {"id": 69, "type": "number_literal", "text": "720", "parent": 68, "children": [], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 43}}, {"id": 70, "type": "number_literal", "text": "640", "parent": 68, "children": [], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 48}}, {"id": 71, "type": "declaration", "text": "static Vector2ui m_GameWindowTopLeft = {\n\t\t\t\tsize_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n\t\t\t\tsize_t(MENUBAR_VERTICAL_CUTOFF) };", "parent": 20, "children": [72, 73], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 20, "column": 38}}, {"id": 72, "type": "type_identifier", "text": "Vector2ui", "parent": 71, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 18}}, {"id": 73, "type": "init_declarator", "text": "m_GameWindowTopLeft = {\n\t\t\t\tsize_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n\t\t\t\tsize_t(MENUBAR_VERTICAL_CUTOFF) }", "parent": 71, "children": [74, 75, 76], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 20, "column": 37}}, {"id": 74, "type": "identifier", "text": "m_GameWindowTopLeft", "parent": 73, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 38}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 40}}, {"id": 76, "type": "initializer_list", "text": "{\n\t\t\t\tsize_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n\t\t\t\tsize_t(MENUBAR_VERTICAL_CUTOFF) }", "parent": 73, "children": [77, 104], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 20, "column": 37}}, {"id": 77, "type": "call_expression", "text": "size_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f))", "parent": 76, "children": [78, 79], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 88}}, {"id": 78, "type": "identifier", "text": "size_t", "parent": 77, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 79, "type": "argument_list", "text": "((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f))", "parent": 77, "children": [80], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 88}}, {"id": 80, "type": "cast_expression", "text": "(float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)", "parent": 79, "children": [81, 88, 91], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 87}}, {"id": 81, "type": "type_descriptor", "text": "float(m_ApplicationDimensions.x)", "parent": 80, "children": [82, 83], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 44}}, {"id": 82, "type": "primitive_type", "text": "float", "parent": 81, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 17}}, {"id": 83, "type": "abstract_function_declarator", "text": "(m_ApplicationDimensions.x)", "parent": 81, "children": [84], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 44}}, {"id": 84, "type": "parameter_list", "text": "(m_ApplicationDimensions.x)", "parent": 83, "children": [85], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 44}}, {"id": 85, "type": "parameter_declaration", "text": "m_ApplicationDimensions.x", "parent": 84, "children": [86, 87], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 43}}, {"id": 86, "type": "type_identifier", "text": "m_ApplicationDimensions", "parent": 85, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 41}}, {"id": 87, "type": "identifier", "text": "x", "parent": 85, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 43}}, {"id": 88, "type": "ERROR", "text": "/ 2.f", "parent": 80, "children": [89, 90], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 50}}, {"id": 89, "type": "/", "text": "/", "parent": 88, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 46}}, {"id": 90, "type": "number_literal", "text": "2.f", "parent": 88, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 50}}, {"id": 91, "type": "unary_expression", "text": "- (float(m_GameDimensions.x) / 2.f)", "parent": 80, "children": [92, 93], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 87}}, {"id": 92, "type": "-", "text": "-", "parent": 91, "children": [], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 53}}, {"id": 93, "type": "parenthesized_expression", "text": "(float(m_GameDimensions.x) / 2.f)", "parent": 91, "children": [94, 103], "start_point": {"row": 19, "column": 54}, "end_point": {"row": 19, "column": 87}}, {"id": 94, "type": "ERROR", "text": "float(m_GameDimensions.x) /", "parent": 93, "children": [95, 102], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 82}}, {"id": 95, "type": "type_descriptor", "text": "float(m_GameDimensions.x)", "parent": 94, "children": [96, 97], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 80}}, {"id": 96, "type": "primitive_type", "text": "float", "parent": 95, "children": [], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 60}}, {"id": 97, "type": "abstract_function_declarator", "text": "(m_GameDimensions.x)", "parent": 95, "children": [98], "start_point": {"row": 19, "column": 60}, "end_point": {"row": 19, "column": 80}}, {"id": 98, "type": "parameter_list", "text": "(m_GameDimensions.x)", "parent": 97, "children": [99], "start_point": {"row": 19, "column": 60}, "end_point": {"row": 19, "column": 80}}, {"id": 99, "type": "parameter_declaration", "text": "m_GameDimensions.x", "parent": 98, "children": [100, 101], "start_point": {"row": 19, "column": 61}, "end_point": {"row": 19, "column": 79}}, {"id": 100, "type": "type_identifier", "text": "m_GameDimensions", "parent": 99, "children": [], "start_point": {"row": 19, "column": 61}, "end_point": {"row": 19, "column": 77}}, {"id": 101, "type": "identifier", "text": "x", "parent": 99, "children": [], "start_point": {"row": 19, "column": 78}, "end_point": {"row": 19, "column": 79}}, {"id": 102, "type": "/", "text": "/", "parent": 94, "children": [], "start_point": {"row": 19, "column": 81}, "end_point": {"row": 19, "column": 82}}, {"id": 103, "type": "number_literal", "text": "2.f", "parent": 93, "children": [], "start_point": {"row": 19, "column": 83}, "end_point": {"row": 19, "column": 86}}, {"id": 104, "type": "call_expression", "text": "size_t(MENUBAR_VERTICAL_CUTOFF)", "parent": 76, "children": [105, 106], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 35}}, {"id": 105, "type": "identifier", "text": "size_t", "parent": 104, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 106, "type": "argument_list", "text": "(MENUBAR_VERTICAL_CUTOFF)", "parent": 104, "children": [107], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 35}}, {"id": 107, "type": "identifier", "text": "MENUBAR_VERTICAL_CUTOFF", "parent": 106, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 34}}]}, "node_categories": {"declarations": {"functions": [17, 20, 83, 97], "variables": [23, 31, 42, 52, 63, 71, 85, 99], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [38, 59, 77, 80, 91, 93, 104], "assignments": [], "loops": [], "conditionals": [11, 15, 18, 19, 21, 22, 24, 26, 28, 32, 34, 36, 41, 43, 45, 53, 55, 62, 64, 66, 72, 74, 78, 86, 87, 100, 101, 105, 107], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 30, 39, 48, 49, 50, 51, 58, 60, 69, 70, 90, 103], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "namespace Libero\n{\n\tnamespace CoreSettings\n\t{\n\t\tstatic std::string m_VersionName = \"v1.0\";\n\t\tstatic "}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "namespace CoreSettings\n\t{\n\t\tstatic std::string m_VersionName = \"v1.0\";\n\t\tstatic std::string m_Window"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "(m_ApplicationDimensions.x)"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "(m_GameDimensions.x)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"LiberoMath.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"LiberoMath.h\"\n#include <string>\n\n// - 40 for windowed mode\n#define WINDOWED_VERTICAL_CUTOFF 40\n#define MENUBAR_VERTICAL_CUTOFF 20\n\nnamespace Libero\n{\n\tnamespace CoreSettings\n\t{\n\t\tstatic std::string m_VersionName = \"v1.0\";\n\t\tstatic std::string m_WindowName = \"Libero Engine \" + m_VersionName;\n\t\tstatic ColorRGBA m_ClearColor = { 63.f, 0.f, 0.0f, 255.f };\n\n\t\tstatic Vector2ui m_ApplicationDimensions = { 1920, 1080 - WINDOWED_VERTICAL_CUTOFF };\n\t\tstatic Vector2ui m_GameDimensions = { 720, 640 };\n\t\tstatic Vector2ui m_GameWindowTopLeft = {\n\t\t\t\tsize_t((float(m_ApplicationDimensions.x) / 2.f) - (float(m_GameDimensions.x) / 2.f)),\n\t\t\t\tsize_t(MENUBAR_VERTICAL_CUTOFF) };\n\n\t}\n}\n\n\n"}
80,483
c
#pragma once #include "VertexProcessor.h" #include "Renderer.h" #include "Vertex.h" class ConstColorVP : public VertexProcessor { void updateTransforms(Renderer &renderer) { _mvMat = renderer.getModelViewMatrix(); _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat; _vpMat = renderer.getViewportMatrix(); } void line(Vec3f *v, Vec3f *c, Vertex *vert) { for (int i = 0; i < 2; i = i + 1) { (vert + i)->vert = _mvpMat * (Vec4f(*(v + i))); (vert + i)->color = *(c + i); } } void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) { for (int i = 0; i < 3; i = i + 1) { (vert + i)->vert = _mvpMat * (Vec4f(*(v + i))); // calculate normal and color (vert + i)->normal = *(n + i); (vert + i)->color = *(c + i); (vert + i)->vEye = _mvMat * (*(v + i)); if (t != NULL) { (vert + i)->texCoord.x = (t + i)->x; (vert + i)->texCoord.y = (t + i)->y; } } } };
35.87
30
(translation_unit) "#pragma once\n\n#include "VertexProcessor.h"\n#include "Renderer.h"\n#include "Vertex.h"\n\nclass ConstColorVP : public VertexProcessor {\n void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }\n\n void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }\n\n void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "VertexProcessor.h"\n" (#include) "#include" (string_literal) ""VertexProcessor.h"" (") """ (string_content) "VertexProcessor.h" (") """ (preproc_include) "#include "Renderer.h"\n" (#include) "#include" (string_literal) ""Renderer.h"" (") """ (string_content) "Renderer.h" (") """ (preproc_include) "#include "Vertex.h"\n" (#include) "#include" (string_literal) ""Vertex.h"" (") """ (string_content) "Vertex.h" (") """ (function_definition) "class ConstColorVP : public VertexProcessor {\n void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }\n\n void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }\n\n void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }\n}" (type_identifier) "class" (ERROR) "ConstColorVP : public" (identifier) "ConstColorVP" (:) ":" (identifier) "public" (identifier) "VertexProcessor" (compound_statement) "{\n void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }\n\n void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }\n\n void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }\n}" ({) "{" (function_definition) "void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }" (primitive_type) "void" (function_declarator) "updateTransforms(Renderer &renderer)" (identifier) "updateTransforms" (parameter_list) "(Renderer &renderer)" (() "(" (parameter_declaration) "Renderer &renderer" (type_identifier) "Renderer" (ERROR) "&" (&) "&" (identifier) "renderer" ()) ")" (compound_statement) "{\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }" ({) "{" (expression_statement) "_mvMat = renderer.getModelViewMatrix();" (assignment_expression) "_mvMat = renderer.getModelViewMatrix()" (identifier) "_mvMat" (=) "=" (call_expression) "renderer.getModelViewMatrix()" (field_expression) "renderer.getModelViewMatrix" (identifier) "renderer" (.) "." (field_identifier) "getModelViewMatrix" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "_mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;" (assignment_expression) "_mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat" (identifier) "_mvpMat" (=) "=" (binary_expression) "renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat" (binary_expression) "renderer.getViewportMatrix() * renderer.getProjectionMatrix()" (call_expression) "renderer.getViewportMatrix()" (field_expression) "renderer.getViewportMatrix" (identifier) "renderer" (.) "." (field_identifier) "getViewportMatrix" (argument_list) "()" (() "(" ()) ")" (*) "*" (call_expression) "renderer.getProjectionMatrix()" (field_expression) "renderer.getProjectionMatrix" (identifier) "renderer" (.) "." (field_identifier) "getProjectionMatrix" (argument_list) "()" (() "(" ()) ")" (*) "*" (identifier) "_mvMat" (;) ";" (expression_statement) "_vpMat = renderer.getViewportMatrix();" (assignment_expression) "_vpMat = renderer.getViewportMatrix()" (identifier) "_vpMat" (=) "=" (call_expression) "renderer.getViewportMatrix()" (field_expression) "renderer.getViewportMatrix" (identifier) "renderer" (.) "." (field_identifier) "getViewportMatrix" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }" (primitive_type) "void" (function_declarator) "line(Vec3f *v, Vec3f *c, Vertex *vert)" (identifier) "line" (parameter_list) "(Vec3f *v, Vec3f *c, Vertex *vert)" (() "(" (parameter_declaration) "Vec3f *v" (type_identifier) "Vec3f" (pointer_declarator) "*v" (*) "*" (identifier) "v" (,) "," (parameter_declaration) "Vec3f *c" (type_identifier) "Vec3f" (pointer_declarator) "*c" (*) "*" (identifier) "c" (,) "," (parameter_declaration) "Vertex *vert" (type_identifier) "Vertex" (pointer_declarator) "*vert" (*) "*" (identifier) "vert" ()) ")" (compound_statement) "{\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }" ({) "{" (for_statement) "for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 2" (identifier) "i" (<) "<" (number_literal) "2" (;) ";" (assignment_expression) "i = i + 1" (identifier) "i" (=) "=" (binary_expression) "i + 1" (identifier) "i" (+) "+" (number_literal) "1" ()) ")" (compound_statement) "{\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }" ({) "{" (expression_statement) "(vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));" (assignment_expression) "(vert + i)->vert = _mvpMat * (Vec4f(*(v + i)))" (field_expression) "(vert + i)->vert" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "vert" (=) "=" (binary_expression) "_mvpMat * (Vec4f(*(v + i)))" (identifier) "_mvpMat" (*) "*" (parenthesized_expression) "(Vec4f(*(v + i)))" (() "(" (call_expression) "Vec4f(*(v + i))" (identifier) "Vec4f" (argument_list) "(*(v + i))" (() "(" (pointer_expression) "*(v + i)" (*) "*" (parenthesized_expression) "(v + i)" (() "(" (binary_expression) "v + i" (identifier) "v" (+) "+" (identifier) "i" ()) ")" ()) ")" ()) ")" (;) ";" (expression_statement) "(vert + i)->color = *(c + i);" (assignment_expression) "(vert + i)->color = *(c + i)" (field_expression) "(vert + i)->color" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "color" (=) "=" (pointer_expression) "*(c + i)" (*) "*" (parenthesized_expression) "(c + i)" (() "(" (binary_expression) "c + i" (identifier) "c" (+) "+" (identifier) "i" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }" (primitive_type) "void" (function_declarator) "triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert)" (identifier) "triangle" (parameter_list) "(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert)" (() "(" (parameter_declaration) "Vec3f *v" (type_identifier) "Vec3f" (pointer_declarator) "*v" (*) "*" (identifier) "v" (,) "," (parameter_declaration) "Vec3f *n" (type_identifier) "Vec3f" (pointer_declarator) "*n" (*) "*" (identifier) "n" (,) "," (parameter_declaration) "Vec3f *c" (type_identifier) "Vec3f" (pointer_declarator) "*c" (*) "*" (identifier) "c" (,) "," (parameter_declaration) "Vec3f *t" (type_identifier) "Vec3f" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (parameter_declaration) "Vertex *vert" (type_identifier) "Vertex" (pointer_declarator) "*vert" (*) "*" (identifier) "vert" ()) ")" (compound_statement) "{\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }" ({) "{" (for_statement) "for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 3" (identifier) "i" (<) "<" (number_literal) "3" (;) ";" (assignment_expression) "i = i + 1" (identifier) "i" (=) "=" (binary_expression) "i + 1" (identifier) "i" (+) "+" (number_literal) "1" ()) ")" (compound_statement) "{\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }" ({) "{" (expression_statement) "(vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));" (assignment_expression) "(vert + i)->vert = _mvpMat * (Vec4f(*(v + i)))" (field_expression) "(vert + i)->vert" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "vert" (=) "=" (binary_expression) "_mvpMat * (Vec4f(*(v + i)))" (identifier) "_mvpMat" (*) "*" (parenthesized_expression) "(Vec4f(*(v + i)))" (() "(" (call_expression) "Vec4f(*(v + i))" (identifier) "Vec4f" (argument_list) "(*(v + i))" (() "(" (pointer_expression) "*(v + i)" (*) "*" (parenthesized_expression) "(v + i)" (() "(" (binary_expression) "v + i" (identifier) "v" (+) "+" (identifier) "i" ()) ")" ()) ")" ()) ")" (;) ";" (comment) "// calculate normal and color" (expression_statement) "(vert + i)->normal = *(n + i);" (assignment_expression) "(vert + i)->normal = *(n + i)" (field_expression) "(vert + i)->normal" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "normal" (=) "=" (pointer_expression) "*(n + i)" (*) "*" (parenthesized_expression) "(n + i)" (() "(" (binary_expression) "n + i" (identifier) "n" (+) "+" (identifier) "i" ()) ")" (;) ";" (expression_statement) "(vert + i)->color = *(c + i);" (assignment_expression) "(vert + i)->color = *(c + i)" (field_expression) "(vert + i)->color" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "color" (=) "=" (pointer_expression) "*(c + i)" (*) "*" (parenthesized_expression) "(c + i)" (() "(" (binary_expression) "c + i" (identifier) "c" (+) "+" (identifier) "i" ()) ")" (;) ";" (expression_statement) "(vert + i)->vEye = _mvMat * (*(v + i));" (assignment_expression) "(vert + i)->vEye = _mvMat * (*(v + i))" (field_expression) "(vert + i)->vEye" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "vEye" (=) "=" (binary_expression) "_mvMat * (*(v + i))" (identifier) "_mvMat" (*) "*" (parenthesized_expression) "(*(v + i))" (() "(" (pointer_expression) "*(v + i)" (*) "*" (parenthesized_expression) "(v + i)" (() "(" (binary_expression) "v + i" (identifier) "v" (+) "+" (identifier) "i" ()) ")" ()) ")" (;) ";" (if_statement) "if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }" (if) "if" (parenthesized_expression) "(t != NULL)" (() "(" (binary_expression) "t != NULL" (identifier) "t" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }" ({) "{" (expression_statement) "(vert + i)->texCoord.x = (t + i)->x;" (assignment_expression) "(vert + i)->texCoord.x = (t + i)->x" (field_expression) "(vert + i)->texCoord.x" (field_expression) "(vert + i)->texCoord" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "texCoord" (.) "." (field_identifier) "x" (=) "=" (field_expression) "(t + i)->x" (parenthesized_expression) "(t + i)" (() "(" (binary_expression) "t + i" (identifier) "t" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "x" (;) ";" (expression_statement) "(vert + i)->texCoord.y = (t + i)->y;" (assignment_expression) "(vert + i)->texCoord.y = (t + i)->y" (field_expression) "(vert + i)->texCoord.y" (field_expression) "(vert + i)->texCoord" (parenthesized_expression) "(vert + i)" (() "(" (binary_expression) "vert + i" (identifier) "vert" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "texCoord" (.) "." (field_identifier) "y" (=) "=" (field_expression) "(t + i)->y" (parenthesized_expression) "(t + i)" (() "(" (binary_expression) "t + i" (identifier) "t" (+) "+" (identifier) "i" ()) ")" (->) "->" (field_identifier) "y" (;) ";" (}) "}" (}) "}" (}) "}" (}) "}" (expression_statement) ";" (;) ";"
453
2
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 35.87, "nodes": 301, "errors": 0, "source_hash": "ad87e8d441bad323864384d898ca52c6fc624445b765af276ab1d3333212c3c4", "categorized_nodes": 217}, "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 \"VertexProcessor.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": "\"VertexProcessor.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include \"Renderer.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": "\"Renderer.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"Vertex.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": "\"Vertex.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 12, "type": "function_definition", "text": "class ConstColorVP : public VertexProcessor {\n void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }\n\n void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }\n\n void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }\n}", "parent": null, "children": [13, 15], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 13, "type": "ERROR", "text": "ConstColorVP : public", "parent": 12, "children": [14], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 27}}, {"id": 14, "type": "identifier", "text": "ConstColorVP", "parent": 13, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 18}}, {"id": 15, "type": "identifier", "text": "VertexProcessor", "parent": 12, "children": [], "start_point": {"row": 6, "column": 28}, "end_point": {"row": 6, "column": 43}}, {"id": 16, "type": "function_definition", "text": "void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }", "parent": 12, "children": [17, 18], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 11, "column": 5}}, {"id": 17, "type": "primitive_type", "text": "void", "parent": 16, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 8}}, {"id": 18, "type": "function_declarator", "text": "updateTransforms(Renderer &renderer)", "parent": 16, "children": [19, 20], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 45}}, {"id": 19, "type": "identifier", "text": "updateTransforms", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 25}}, {"id": 20, "type": "parameter_list", "text": "(Renderer &renderer)", "parent": 18, "children": [21], "start_point": {"row": 7, "column": 25}, "end_point": {"row": 7, "column": 45}}, {"id": 21, "type": "parameter_declaration", "text": "Renderer &renderer", "parent": 20, "children": [22, 23], "start_point": {"row": 7, "column": 26}, "end_point": {"row": 7, "column": 44}}, {"id": 22, "type": "type_identifier", "text": "Renderer", "parent": 21, "children": [], "start_point": {"row": 7, "column": 26}, "end_point": {"row": 7, "column": 34}}, {"id": 23, "type": "identifier", "text": "renderer", "parent": 21, "children": [], "start_point": {"row": 7, "column": 36}, "end_point": {"row": 7, "column": 44}}, {"id": 24, "type": "assignment_expression", "text": "_mvMat = renderer.getModelViewMatrix()", "parent": 16, "children": [25, 26, 27], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 46}}, {"id": 25, "type": "identifier", "text": "_mvMat", "parent": 24, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 14}}, {"id": 26, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 16}}, {"id": 27, "type": "call_expression", "text": "renderer.getModelViewMatrix()", "parent": 24, "children": [28, 31], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 46}}, {"id": 28, "type": "field_expression", "text": "renderer.getModelViewMatrix", "parent": 27, "children": [29, 30], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 44}}, {"id": 29, "type": "identifier", "text": "renderer", "parent": 28, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 25}}, {"id": 30, "type": "field_identifier", "text": "getModelViewMatrix", "parent": 28, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 44}}, {"id": 31, "type": "argument_list", "text": "()", "parent": 27, "children": [], "start_point": {"row": 8, "column": 44}, "end_point": {"row": 8, "column": 46}}, {"id": 32, "type": "assignment_expression", "text": "_mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat", "parent": 16, "children": [33, 34, 35], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 88}}, {"id": 33, "type": "identifier", "text": "_mvpMat", "parent": 32, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 15}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 17}}, {"id": 35, "type": "binary_expression", "text": "renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat", "parent": 32, "children": [36, 48, 49], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 88}}, {"id": 36, "type": "binary_expression", "text": "renderer.getViewportMatrix() * renderer.getProjectionMatrix()", "parent": 35, "children": [37, 42, 43], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 79}}, {"id": 37, "type": "call_expression", "text": "renderer.getViewportMatrix()", "parent": 36, "children": [38, 41], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 46}}, {"id": 38, "type": "field_expression", "text": "renderer.getViewportMatrix", "parent": 37, "children": [39, 40], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 44}}, {"id": 39, "type": "identifier", "text": "renderer", "parent": 38, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 26}}, {"id": 40, "type": "field_identifier", "text": "getViewportMatrix", "parent": 38, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 44}}, {"id": 41, "type": "argument_list", "text": "()", "parent": 37, "children": [], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 46}}, {"id": 42, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 9, "column": 47}, "end_point": {"row": 9, "column": 48}}, {"id": 43, "type": "call_expression", "text": "renderer.getProjectionMatrix()", "parent": 36, "children": [44, 47], "start_point": {"row": 9, "column": 49}, "end_point": {"row": 9, "column": 79}}, {"id": 44, "type": "field_expression", "text": "renderer.getProjectionMatrix", "parent": 43, "children": [45, 46], "start_point": {"row": 9, "column": 49}, "end_point": {"row": 9, "column": 77}}, {"id": 45, "type": "identifier", "text": "renderer", "parent": 44, "children": [], "start_point": {"row": 9, "column": 49}, "end_point": {"row": 9, "column": 57}}, {"id": 46, "type": "field_identifier", "text": "getProjectionMatrix", "parent": 44, "children": [], "start_point": {"row": 9, "column": 58}, "end_point": {"row": 9, "column": 77}}, {"id": 47, "type": "argument_list", "text": "()", "parent": 43, "children": [], "start_point": {"row": 9, "column": 77}, "end_point": {"row": 9, "column": 79}}, {"id": 48, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 9, "column": 80}, "end_point": {"row": 9, "column": 81}}, {"id": 49, "type": "identifier", "text": "_mvMat", "parent": 35, "children": [], "start_point": {"row": 9, "column": 82}, "end_point": {"row": 9, "column": 88}}, {"id": 50, "type": "assignment_expression", "text": "_vpMat = renderer.getViewportMatrix()", "parent": 16, "children": [51, 52, 53], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 45}}, {"id": 51, "type": "identifier", "text": "_vpMat", "parent": 50, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 52, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 53, "type": "call_expression", "text": "renderer.getViewportMatrix()", "parent": 50, "children": [54, 57], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 45}}, {"id": 54, "type": "field_expression", "text": "renderer.getViewportMatrix", "parent": 53, "children": [55, 56], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 43}}, {"id": 55, "type": "identifier", "text": "renderer", "parent": 54, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 25}}, {"id": 56, "type": "field_identifier", "text": "getViewportMatrix", "parent": 54, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 43}}, {"id": 57, "type": "argument_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 45}}, {"id": 58, "type": "function_definition", "text": "void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }", "parent": 12, "children": [59, 60], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 18, "column": 5}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 58, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 8}}, {"id": 60, "type": "function_declarator", "text": "line(Vec3f *v, Vec3f *c, Vertex *vert)", "parent": 58, "children": [61, 62], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 47}}, {"id": 61, "type": "identifier", "text": "line", "parent": 60, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 13}}, {"id": 62, "type": "parameter_list", "text": "(Vec3f *v, Vec3f *c, Vertex *vert)", "parent": 60, "children": [63, 68, 73], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 47}}, {"id": 63, "type": "parameter_declaration", "text": "Vec3f *v", "parent": 62, "children": [64, 65], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 22}}, {"id": 64, "type": "type_identifier", "text": "Vec3f", "parent": 63, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 19}}, {"id": 65, "type": "pointer_declarator", "text": "*v", "parent": 63, "children": [66, 67], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 22}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 21}}, {"id": 67, "type": "identifier", "text": "v", "parent": 65, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 68, "type": "parameter_declaration", "text": "Vec3f *c", "parent": 62, "children": [69, 70], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 32}}, {"id": 69, "type": "type_identifier", "text": "Vec3f", "parent": 68, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 29}}, {"id": 70, "type": "pointer_declarator", "text": "*c", "parent": 68, "children": [71, 72], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 32}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 31}}, {"id": 72, "type": "identifier", "text": "c", "parent": 70, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 32}}, {"id": 73, "type": "parameter_declaration", "text": "Vertex *vert", "parent": 62, "children": [74, 75], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 46}}, {"id": 74, "type": "type_identifier", "text": "Vertex", "parent": 73, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 40}}, {"id": 75, "type": "pointer_declarator", "text": "*vert", "parent": 73, "children": [76, 77], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 46}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 42}}, {"id": 77, "type": "identifier", "text": "vert", "parent": 75, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 46}}, {"id": 78, "type": "for_statement", "text": "for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }", "parent": 58, "children": [79, 85, 89], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 79, "type": "declaration", "text": "int i = 0;", "parent": 78, "children": [80, 81], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 23}}, {"id": 80, "type": "primitive_type", "text": "int", "parent": 79, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 16}}, {"id": 81, "type": "init_declarator", "text": "i = 0", "parent": 79, "children": [82, 83, 84], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 22}}, {"id": 82, "type": "identifier", "text": "i", "parent": 81, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 20}}, {"id": 84, "type": "number_literal", "text": "0", "parent": 81, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 22}}, {"id": 85, "type": "binary_expression", "text": "i < 2", "parent": 78, "children": [86, 87, 88], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 29}}, {"id": 86, "type": "identifier", "text": "i", "parent": 85, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 25}}, {"id": 87, "type": "<", "text": "<", "parent": 85, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 88, "type": "number_literal", "text": "2", "parent": 85, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 29}}, {"id": 89, "type": "assignment_expression", "text": "i = i + 1", "parent": 78, "children": [90, 91, 92], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 40}}, {"id": 90, "type": "identifier", "text": "i", "parent": 89, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 32}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 34}}, {"id": 92, "type": "binary_expression", "text": "i + 1", "parent": 89, "children": [93, 94, 95], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 40}}, {"id": 93, "type": "identifier", "text": "i", "parent": 92, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 36}}, {"id": 94, "type": "+", "text": "+", "parent": 92, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 38}}, {"id": 95, "type": "number_literal", "text": "1", "parent": 92, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 40}}, {"id": 96, "type": "assignment_expression", "text": "(vert + i)->vert = _mvpMat * (Vec4f(*(v + i)))", "parent": 78, "children": [97, 104, 105], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 58}}, {"id": 97, "type": "field_expression", "text": "(vert + i)->vert", "parent": 96, "children": [98, 103], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 28}}, {"id": 98, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 97, "children": [99], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 22}}, {"id": 99, "type": "binary_expression", "text": "vert + i", "parent": 98, "children": [100, 101, 102], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 21}}, {"id": 100, "type": "identifier", "text": "vert", "parent": 99, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 17}}, {"id": 101, "type": "+", "text": "+", "parent": 99, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 102, "type": "identifier", "text": "i", "parent": 99, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 21}}, {"id": 103, "type": "field_identifier", "text": "vert", "parent": 97, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 28}}, {"id": 104, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 30}}, {"id": 105, "type": "binary_expression", "text": "_mvpMat * (Vec4f(*(v + i)))", "parent": 96, "children": [106, 107, 108], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 58}}, {"id": 106, "type": "identifier", "text": "_mvpMat", "parent": 105, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 38}}, {"id": 107, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 40}}, {"id": 108, "type": "parenthesized_expression", "text": "(Vec4f(*(v + i)))", "parent": 105, "children": [109], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 58}}, {"id": 109, "type": "call_expression", "text": "Vec4f(*(v + i))", "parent": 108, "children": [110, 111], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 57}}, {"id": 110, "type": "identifier", "text": "Vec4f", "parent": 109, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 47}}, {"id": 111, "type": "argument_list", "text": "(*(v + i))", "parent": 109, "children": [112], "start_point": {"row": 15, "column": 47}, "end_point": {"row": 15, "column": 57}}, {"id": 112, "type": "pointer_expression", "text": "*(v + i)", "parent": 111, "children": [113, 114], "start_point": {"row": 15, "column": 48}, "end_point": {"row": 15, "column": 56}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 15, "column": 48}, "end_point": {"row": 15, "column": 49}}, {"id": 114, "type": "parenthesized_expression", "text": "(v + i)", "parent": 112, "children": [115], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 56}}, {"id": 115, "type": "binary_expression", "text": "v + i", "parent": 114, "children": [116, 117, 118], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 55}}, {"id": 116, "type": "identifier", "text": "v", "parent": 115, "children": [], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 51}}, {"id": 117, "type": "+", "text": "+", "parent": 115, "children": [], "start_point": {"row": 15, "column": 52}, "end_point": {"row": 15, "column": 53}}, {"id": 118, "type": "identifier", "text": "i", "parent": 115, "children": [], "start_point": {"row": 15, "column": 54}, "end_point": {"row": 15, "column": 55}}, {"id": 119, "type": "assignment_expression", "text": "(vert + i)->color = *(c + i)", "parent": 78, "children": [120, 127, 128], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 40}}, {"id": 120, "type": "field_expression", "text": "(vert + i)->color", "parent": 119, "children": [121, 126], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 29}}, {"id": 121, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 120, "children": [122], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 22}}, {"id": 122, "type": "binary_expression", "text": "vert + i", "parent": 121, "children": [123, 124, 125], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 21}}, {"id": 123, "type": "identifier", "text": "vert", "parent": 122, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 17}}, {"id": 124, "type": "+", "text": "+", "parent": 122, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 125, "type": "identifier", "text": "i", "parent": 122, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 21}}, {"id": 126, "type": "field_identifier", "text": "color", "parent": 120, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 29}}, {"id": 127, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 31}}, {"id": 128, "type": "pointer_expression", "text": "*(c + i)", "parent": 119, "children": [129, 130], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 40}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 33}}, {"id": 130, "type": "parenthesized_expression", "text": "(c + i)", "parent": 128, "children": [131], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 40}}, {"id": 131, "type": "binary_expression", "text": "c + i", "parent": 130, "children": [132, 133, 134], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 39}}, {"id": 132, "type": "identifier", "text": "c", "parent": 131, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 35}}, {"id": 133, "type": "+", "text": "+", "parent": 131, "children": [], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 37}}, {"id": 134, "type": "identifier", "text": "i", "parent": 131, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 39}}, {"id": 135, "type": "function_definition", "text": "void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }", "parent": 12, "children": [136, 137], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 32, "column": 5}}, {"id": 136, "type": "primitive_type", "text": "void", "parent": 135, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 137, "type": "function_declarator", "text": "triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert)", "parent": 135, "children": [138, 139], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 71}}, {"id": 138, "type": "identifier", "text": "triangle", "parent": 137, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 17}}, {"id": 139, "type": "parameter_list", "text": "(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert)", "parent": 137, "children": [140, 145, 150, 155, 160], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 71}}, {"id": 140, "type": "parameter_declaration", "text": "Vec3f *v", "parent": 139, "children": [141, 142], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 26}}, {"id": 141, "type": "type_identifier", "text": "Vec3f", "parent": 140, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 23}}, {"id": 142, "type": "pointer_declarator", "text": "*v", "parent": 140, "children": [143, 144], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 26}}, {"id": 143, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 144, "type": "identifier", "text": "v", "parent": 142, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 26}}, {"id": 145, "type": "parameter_declaration", "text": "Vec3f *n", "parent": 139, "children": [146, 147], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 36}}, {"id": 146, "type": "type_identifier", "text": "Vec3f", "parent": 145, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 33}}, {"id": 147, "type": "pointer_declarator", "text": "*n", "parent": 145, "children": [148, 149], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 36}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 35}}, {"id": 149, "type": "identifier", "text": "n", "parent": 147, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 36}}, {"id": 150, "type": "parameter_declaration", "text": "Vec3f *c", "parent": 139, "children": [151, 152], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 46}}, {"id": 151, "type": "type_identifier", "text": "Vec3f", "parent": 150, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 43}}, {"id": 152, "type": "pointer_declarator", "text": "*c", "parent": 150, "children": [153, 154], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 46}}, {"id": 153, "type": "*", "text": "*", "parent": 152, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 45}}, {"id": 154, "type": "identifier", "text": "c", "parent": 152, "children": [], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 20, "column": 46}}, {"id": 155, "type": "parameter_declaration", "text": "Vec3f *t", "parent": 139, "children": [156, 157], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 56}}, {"id": 156, "type": "type_identifier", "text": "Vec3f", "parent": 155, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 53}}, {"id": 157, "type": "pointer_declarator", "text": "*t", "parent": 155, "children": [158, 159], "start_point": {"row": 20, "column": 54}, "end_point": {"row": 20, "column": 56}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 20, "column": 54}, "end_point": {"row": 20, "column": 55}}, {"id": 159, "type": "identifier", "text": "t", "parent": 157, "children": [], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 56}}, {"id": 160, "type": "parameter_declaration", "text": "Vertex *vert", "parent": 139, "children": [161, 162], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 70}}, {"id": 161, "type": "type_identifier", "text": "Vertex", "parent": 160, "children": [], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 64}}, {"id": 162, "type": "pointer_declarator", "text": "*vert", "parent": 160, "children": [163, 164], "start_point": {"row": 20, "column": 65}, "end_point": {"row": 20, "column": 70}}, {"id": 163, "type": "*", "text": "*", "parent": 162, "children": [], "start_point": {"row": 20, "column": 65}, "end_point": {"row": 20, "column": 66}}, {"id": 164, "type": "identifier", "text": "vert", "parent": 162, "children": [], "start_point": {"row": 20, "column": 66}, "end_point": {"row": 20, "column": 70}}, {"id": 165, "type": "for_statement", "text": "for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }", "parent": 135, "children": [166, 172, 176], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 31, "column": 9}}, {"id": 166, "type": "declaration", "text": "int i = 0;", "parent": 165, "children": [167, 168], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 23}}, {"id": 167, "type": "primitive_type", "text": "int", "parent": 166, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 16}}, {"id": 168, "type": "init_declarator", "text": "i = 0", "parent": 166, "children": [169, 170, 171], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 22}}, {"id": 169, "type": "identifier", "text": "i", "parent": 168, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 18}}, {"id": 170, "type": "=", "text": "=", "parent": 168, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 171, "type": "number_literal", "text": "0", "parent": 168, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 22}}, {"id": 172, "type": "binary_expression", "text": "i < 3", "parent": 165, "children": [173, 174, 175], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 29}}, {"id": 173, "type": "identifier", "text": "i", "parent": 172, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 25}}, {"id": 174, "type": "<", "text": "<", "parent": 172, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 27}}, {"id": 175, "type": "number_literal", "text": "3", "parent": 172, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 29}}, {"id": 176, "type": "assignment_expression", "text": "i = i + 1", "parent": 165, "children": [177, 178, 179], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 40}}, {"id": 177, "type": "identifier", "text": "i", "parent": 176, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 32}}, {"id": 178, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 34}}, {"id": 179, "type": "binary_expression", "text": "i + 1", "parent": 176, "children": [180, 181, 182], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 40}}, {"id": 180, "type": "identifier", "text": "i", "parent": 179, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 36}}, {"id": 181, "type": "+", "text": "+", "parent": 179, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 38}}, {"id": 182, "type": "number_literal", "text": "1", "parent": 179, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 40}}, {"id": 183, "type": "assignment_expression", "text": "(vert + i)->vert = _mvpMat * (Vec4f(*(v + i)))", "parent": 165, "children": [184, 191, 192], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 58}}, {"id": 184, "type": "field_expression", "text": "(vert + i)->vert", "parent": 183, "children": [185, 190], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 28}}, {"id": 185, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 184, "children": [186], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 22}}, {"id": 186, "type": "binary_expression", "text": "vert + i", "parent": 185, "children": [187, 188, 189], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 21}}, {"id": 187, "type": "identifier", "text": "vert", "parent": 186, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 17}}, {"id": 188, "type": "+", "text": "+", "parent": 186, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 19}}, {"id": 189, "type": "identifier", "text": "i", "parent": 186, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 190, "type": "field_identifier", "text": "vert", "parent": 184, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 28}}, {"id": 191, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 192, "type": "binary_expression", "text": "_mvpMat * (Vec4f(*(v + i)))", "parent": 183, "children": [193, 194, 195], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 58}}, {"id": 193, "type": "identifier", "text": "_mvpMat", "parent": 192, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 38}}, {"id": 194, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 40}}, {"id": 195, "type": "parenthesized_expression", "text": "(Vec4f(*(v + i)))", "parent": 192, "children": [196], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 58}}, {"id": 196, "type": "call_expression", "text": "Vec4f(*(v + i))", "parent": 195, "children": [197, 198], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 57}}, {"id": 197, "type": "identifier", "text": "Vec4f", "parent": 196, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 47}}, {"id": 198, "type": "argument_list", "text": "(*(v + i))", "parent": 196, "children": [199], "start_point": {"row": 22, "column": 47}, "end_point": {"row": 22, "column": 57}}, {"id": 199, "type": "pointer_expression", "text": "*(v + i)", "parent": 198, "children": [200, 201], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 56}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 49}}, {"id": 201, "type": "parenthesized_expression", "text": "(v + i)", "parent": 199, "children": [202], "start_point": {"row": 22, "column": 49}, "end_point": {"row": 22, "column": 56}}, {"id": 202, "type": "binary_expression", "text": "v + i", "parent": 201, "children": [203, 204, 205], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 55}}, {"id": 203, "type": "identifier", "text": "v", "parent": 202, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 51}}, {"id": 204, "type": "+", "text": "+", "parent": 202, "children": [], "start_point": {"row": 22, "column": 52}, "end_point": {"row": 22, "column": 53}}, {"id": 205, "type": "identifier", "text": "i", "parent": 202, "children": [], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 22, "column": 55}}, {"id": 206, "type": "assignment_expression", "text": "(vert + i)->normal = *(n + i)", "parent": 165, "children": [207, 214, 215], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 41}}, {"id": 207, "type": "field_expression", "text": "(vert + i)->normal", "parent": 206, "children": [208, 213], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 30}}, {"id": 208, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 207, "children": [209], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 22}}, {"id": 209, "type": "binary_expression", "text": "vert + i", "parent": 208, "children": [210, 211, 212], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 21}}, {"id": 210, "type": "identifier", "text": "vert", "parent": 209, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 17}}, {"id": 211, "type": "+", "text": "+", "parent": 209, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 19}}, {"id": 212, "type": "identifier", "text": "i", "parent": 209, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 213, "type": "field_identifier", "text": "normal", "parent": 207, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 30}}, {"id": 214, "type": "=", "text": "=", "parent": 206, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 32}}, {"id": 215, "type": "pointer_expression", "text": "*(n + i)", "parent": 206, "children": [216, 217], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 41}}, {"id": 216, "type": "*", "text": "*", "parent": 215, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 34}}, {"id": 217, "type": "parenthesized_expression", "text": "(n + i)", "parent": 215, "children": [218], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 41}}, {"id": 218, "type": "binary_expression", "text": "n + i", "parent": 217, "children": [219, 220, 221], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 40}}, {"id": 219, "type": "identifier", "text": "n", "parent": 218, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 36}}, {"id": 220, "type": "+", "text": "+", "parent": 218, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 38}}, {"id": 221, "type": "identifier", "text": "i", "parent": 218, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 40}}, {"id": 222, "type": "assignment_expression", "text": "(vert + i)->color = *(c + i)", "parent": 165, "children": [223, 230, 231], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 40}}, {"id": 223, "type": "field_expression", "text": "(vert + i)->color", "parent": 222, "children": [224, 229], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 29}}, {"id": 224, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 223, "children": [225], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 22}}, {"id": 225, "type": "binary_expression", "text": "vert + i", "parent": 224, "children": [226, 227, 228], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 21}}, {"id": 226, "type": "identifier", "text": "vert", "parent": 225, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 17}}, {"id": 227, "type": "+", "text": "+", "parent": 225, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 228, "type": "identifier", "text": "i", "parent": 225, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 21}}, {"id": 229, "type": "field_identifier", "text": "color", "parent": 223, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 29}}, {"id": 230, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 31}}, {"id": 231, "type": "pointer_expression", "text": "*(c + i)", "parent": 222, "children": [232, 233], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 40}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 33}}, {"id": 233, "type": "parenthesized_expression", "text": "(c + i)", "parent": 231, "children": [234], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 40}}, {"id": 234, "type": "binary_expression", "text": "c + i", "parent": 233, "children": [235, 236, 237], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 39}}, {"id": 235, "type": "identifier", "text": "c", "parent": 234, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 35}}, {"id": 236, "type": "+", "text": "+", "parent": 234, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 37}}, {"id": 237, "type": "identifier", "text": "i", "parent": 234, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 39}}, {"id": 238, "type": "assignment_expression", "text": "(vert + i)->vEye = _mvMat * (*(v + i))", "parent": 165, "children": [239, 246, 247], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 50}}, {"id": 239, "type": "field_expression", "text": "(vert + i)->vEye", "parent": 238, "children": [240, 245], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 28}}, {"id": 240, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 239, "children": [241], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 241, "type": "binary_expression", "text": "vert + i", "parent": 240, "children": [242, 243, 244], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 21}}, {"id": 242, "type": "identifier", "text": "vert", "parent": 241, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 17}}, {"id": 243, "type": "+", "text": "+", "parent": 241, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 19}}, {"id": 244, "type": "identifier", "text": "i", "parent": 241, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 21}}, {"id": 245, "type": "field_identifier", "text": "vEye", "parent": 239, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 28}}, {"id": 246, "type": "=", "text": "=", "parent": 238, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 30}}, {"id": 247, "type": "binary_expression", "text": "_mvMat * (*(v + i))", "parent": 238, "children": [248, 249, 250], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 50}}, {"id": 248, "type": "identifier", "text": "_mvMat", "parent": 247, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 37}}, {"id": 249, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 39}}, {"id": 250, "type": "parenthesized_expression", "text": "(*(v + i))", "parent": 247, "children": [251], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 50}}, {"id": 251, "type": "pointer_expression", "text": "*(v + i)", "parent": 250, "children": [252, 253], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 49}}, {"id": 252, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 42}}, {"id": 253, "type": "parenthesized_expression", "text": "(v + i)", "parent": 251, "children": [254], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 49}}, {"id": 254, "type": "binary_expression", "text": "v + i", "parent": 253, "children": [255, 256, 257], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 48}}, {"id": 255, "type": "identifier", "text": "v", "parent": 254, "children": [], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 44}}, {"id": 256, "type": "+", "text": "+", "parent": 254, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 46}}, {"id": 257, "type": "identifier", "text": "i", "parent": 254, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 48}}, {"id": 258, "type": "if_statement", "text": "if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }", "parent": 165, "children": [259], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 259, "type": "parenthesized_expression", "text": "(t != NULL)", "parent": 258, "children": [260], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 26}}, {"id": 260, "type": "binary_expression", "text": "t != NULL", "parent": 259, "children": [261, 262, 263], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 25}}, {"id": 261, "type": "identifier", "text": "t", "parent": 260, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 17}}, {"id": 262, "type": "!=", "text": "!=", "parent": 260, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 20}}, {"id": 263, "type": "null", "text": "NULL", "parent": 260, "children": [264], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 25}}, {"id": 264, "type": "NULL", "text": "NULL", "parent": 263, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 25}}, {"id": 265, "type": "assignment_expression", "text": "(vert + i)->texCoord.x = (t + i)->x", "parent": 258, "children": [266, 275, 276], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 51}}, {"id": 266, "type": "field_expression", "text": "(vert + i)->texCoord.x", "parent": 265, "children": [267, 274], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 38}}, {"id": 267, "type": "field_expression", "text": "(vert + i)->texCoord", "parent": 266, "children": [268, 273], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 36}}, {"id": 268, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 267, "children": [269], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 26}}, {"id": 269, "type": "binary_expression", "text": "vert + i", "parent": 268, "children": [270, 271, 272], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 25}}, {"id": 270, "type": "identifier", "text": "vert", "parent": 269, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 21}}, {"id": 271, "type": "+", "text": "+", "parent": 269, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 23}}, {"id": 272, "type": "identifier", "text": "i", "parent": 269, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 273, "type": "field_identifier", "text": "texCoord", "parent": 267, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 36}}, {"id": 274, "type": "field_identifier", "text": "x", "parent": 266, "children": [], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 38}}, {"id": 275, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 40}}, {"id": 276, "type": "field_expression", "text": "(t + i)->x", "parent": 265, "children": [277, 282], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 51}}, {"id": 277, "type": "parenthesized_expression", "text": "(t + i)", "parent": 276, "children": [278], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 48}}, {"id": 278, "type": "binary_expression", "text": "t + i", "parent": 277, "children": [279, 280, 281], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 47}}, {"id": 279, "type": "identifier", "text": "t", "parent": 278, "children": [], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 28, "column": 43}}, {"id": 280, "type": "+", "text": "+", "parent": 278, "children": [], "start_point": {"row": 28, "column": 44}, "end_point": {"row": 28, "column": 45}}, {"id": 281, "type": "identifier", "text": "i", "parent": 278, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 47}}, {"id": 282, "type": "field_identifier", "text": "x", "parent": 276, "children": [], "start_point": {"row": 28, "column": 50}, "end_point": {"row": 28, "column": 51}}, {"id": 283, "type": "assignment_expression", "text": "(vert + i)->texCoord.y = (t + i)->y", "parent": 258, "children": [284, 293, 294], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 51}}, {"id": 284, "type": "field_expression", "text": "(vert + i)->texCoord.y", "parent": 283, "children": [285, 292], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 38}}, {"id": 285, "type": "field_expression", "text": "(vert + i)->texCoord", "parent": 284, "children": [286, 291], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 36}}, {"id": 286, "type": "parenthesized_expression", "text": "(vert + i)", "parent": 285, "children": [287], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 26}}, {"id": 287, "type": "binary_expression", "text": "vert + i", "parent": 286, "children": [288, 289, 290], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 25}}, {"id": 288, "type": "identifier", "text": "vert", "parent": 287, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 21}}, {"id": 289, "type": "+", "text": "+", "parent": 287, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 23}}, {"id": 290, "type": "identifier", "text": "i", "parent": 287, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 25}}, {"id": 291, "type": "field_identifier", "text": "texCoord", "parent": 285, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 36}}, {"id": 292, "type": "field_identifier", "text": "y", "parent": 284, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 38}}, {"id": 293, "type": "=", "text": "=", "parent": 283, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 40}}, {"id": 294, "type": "field_expression", "text": "(t + i)->y", "parent": 283, "children": [295, 300], "start_point": {"row": 29, "column": 41}, "end_point": {"row": 29, "column": 51}}, {"id": 295, "type": "parenthesized_expression", "text": "(t + i)", "parent": 294, "children": [296], "start_point": {"row": 29, "column": 41}, "end_point": {"row": 29, "column": 48}}, {"id": 296, "type": "binary_expression", "text": "t + i", "parent": 295, "children": [297, 298, 299], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 47}}, {"id": 297, "type": "identifier", "text": "t", "parent": 296, "children": [], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 43}}, {"id": 298, "type": "+", "text": "+", "parent": 296, "children": [], "start_point": {"row": 29, "column": 44}, "end_point": {"row": 29, "column": 45}}, {"id": 299, "type": "identifier", "text": "i", "parent": 296, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 47}}, {"id": 300, "type": "field_identifier", "text": "y", "parent": 294, "children": [], "start_point": {"row": 29, "column": 50}, "end_point": {"row": 29, "column": 51}}]}, "node_categories": {"declarations": {"functions": [12, 16, 18, 58, 60, 135, 137], "variables": [21, 63, 68, 73, 79, 140, 145, 150, 155, 160, 166], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [27, 28, 35, 36, 37, 38, 43, 44, 53, 54, 85, 92, 97, 98, 99, 105, 108, 109, 112, 114, 115, 120, 121, 122, 128, 130, 131, 172, 179, 184, 185, 186, 192, 195, 196, 199, 201, 202, 207, 208, 209, 215, 217, 218, 223, 224, 225, 231, 233, 234, 239, 240, 241, 247, 250, 251, 253, 254, 259, 260, 266, 267, 268, 269, 276, 277, 278, 284, 285, 286, 287, 294, 295, 296], "assignments": [24, 32, 50, 89, 96, 119, 176, 183, 206, 222, 238, 265, 283], "loops": [78, 165], "conditionals": [14, 15, 19, 22, 23, 25, 29, 30, 33, 39, 40, 45, 46, 49, 51, 55, 56, 61, 64, 67, 69, 72, 74, 77, 82, 86, 90, 93, 100, 102, 103, 106, 110, 116, 118, 123, 125, 126, 132, 134, 138, 141, 144, 146, 149, 151, 154, 156, 159, 161, 164, 169, 173, 177, 180, 187, 189, 190, 193, 197, 203, 205, 210, 212, 213, 219, 221, 226, 228, 229, 235, 237, 242, 244, 245, 248, 255, 257, 258, 261, 270, 272, 273, 274, 279, 281, 282, 288, 290, 291, 292, 297, 299, 300], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 84, 88, 95, 171, 175, 182], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "ConstColorVP", "text_snippet": "class ConstColorVP : public VertexProcessor {\n void updateTransforms(Renderer &renderer) {\n "}, {"node_id": 16, "universal_type": "function", "name": "updateTransforms", "text_snippet": "void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n "}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "updateTransforms(Renderer &renderer)"}, {"node_id": 58, "universal_type": "function", "name": "line", "text_snippet": "void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n "}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "line(Vec3f *v, Vec3f *c, Vertex *vert)"}, {"node_id": 135, "universal_type": "function", "name": "triangle", "text_snippet": "void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3;"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"VertexProcessor.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Renderer.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Vertex.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"VertexProcessor.h\"\n#include \"Renderer.h\"\n#include \"Vertex.h\"\n\nclass ConstColorVP : public VertexProcessor {\n void updateTransforms(Renderer &renderer) {\n _mvMat = renderer.getModelViewMatrix();\n _mvpMat = renderer.getViewportMatrix() * renderer.getProjectionMatrix() * _mvMat;\n _vpMat = renderer.getViewportMatrix();\n }\n\n void line(Vec3f *v, Vec3f *c, Vertex *vert) {\n for (int i = 0; i < 2; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n (vert + i)->color = *(c + i);\n }\n }\n\n void triangle(Vec3f *v, Vec3f *n, Vec3f *c, Vec3f *t, Vertex *vert) {\n for (int i = 0; i < 3; i = i + 1) {\n (vert + i)->vert = _mvpMat * (Vec4f(*(v + i)));\n // calculate normal and color\n (vert + i)->normal = *(n + i);\n (vert + i)->color = *(c + i);\n (vert + i)->vEye = _mvMat * (*(v + i));\n if (t != NULL) {\n (vert + i)->texCoord.x = (t + i)->x;\n (vert + i)->texCoord.y = (t + i)->y;\n }\n }\n }\n};"}
80,484
c
/* * Copyright (c) 2013, The University of Oxford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of the University of Oxford nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef TCPCONNECTIONMANAGER_H #define TCPCONNECTIONMANAGER_H /** * @file TCPConnectionManager.h */ #include <QtNetwork/QTcpServer> #include <QtCore/QObject> #include <QtCore/QString> #include <QtCore/QMutex> #include <QtCore/QList> #include <QtCore/QSet> #include <QtCore/QMap> #include "utility/ConfigNode.h" namespace pelican { class AbstractProtocol; class DataBlob; /** * @ingroup c_output * * @class TCPConnectionManager * * @brief * TCP Connection Management thread * @details * */ class TCPConnectionManager : public QObject { Q_OBJECT public: TCPConnectionManager(quint16 port=0, QObject *parent = 0); ~TCPConnectionManager(); quint16 serverPort() const; int clientsForStream(const QString&) const; // stop listening for new connections, but preserve state void stop(); // start listening for new connections, after a stop() void listen(); protected: virtual void run(); void _killClient(QTcpSocket*); const QSet<QString>& types() const; void _sendNewDataTypes(); bool _processIncomming(QTcpSocket*); public slots: void send(const QString& streamName, const DataBlob* incoming); private: typedef QList<QTcpSocket*> clients_t; quint16 _port; QMap<QString, clients_t > _clients; QTcpServer* _tcpServer; QMutex _mutex; // controls access to _clients QMutex _sendMutex; // controls access to send method AbstractProtocol* _protocol; // Record of what types have been seen (via send() ) QSet<QString> _seenTypes; // The name of the subscription stream for data support requests const QString _dataSupportStream; private slots: void connectionError(QAbstractSocket::SocketError socketError); void acceptClientConnection(); void _incomingFromClient(); signals: void sent(const DataBlob*); }; } // namespace pelican #endif // TCPCONNECTIONMANAGER_H
37.49
94
(translation_unit) "/*\n * Copyright (c) 2013, The University of Oxford\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * 1. Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n * 3. Neither the name of the University of Oxford nor the names of its\n * contributors may be used to endorse or promote products derived from this\n * software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef TCPCONNECTIONMANAGER_H\n#define TCPCONNECTIONMANAGER_H\n\n/**\n * @file TCPConnectionManager.h\n */\n\n#include <QtNetwork/QTcpServer>\n#include <QtCore/QObject>\n#include <QtCore/QString>\n#include <QtCore/QMutex>\n#include <QtCore/QList>\n#include <QtCore/QSet>\n#include <QtCore/QMap>\n\n#include "utility/ConfigNode.h"\n\nnamespace pelican {\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */\n\nclass TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n};\n\n} // namespace pelican\n#endif // TCPCONNECTIONMANAGER_H\n" (comment) "/*\n * Copyright (c) 2013, The University of Oxford\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * 1. Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n * 3. Neither the name of the University of Oxford nor the names of its\n * contributors may be used to endorse or promote products derived from this\n * software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */" (preproc_ifdef) "#ifndef TCPCONNECTIONMANAGER_H\n#define TCPCONNECTIONMANAGER_H\n\n/**\n * @file TCPConnectionManager.h\n */\n\n#include <QtNetwork/QTcpServer>\n#include <QtCore/QObject>\n#include <QtCore/QString>\n#include <QtCore/QMutex>\n#include <QtCore/QList>\n#include <QtCore/QSet>\n#include <QtCore/QMap>\n\n#include "utility/ConfigNode.h"\n\nnamespace pelican {\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */\n\nclass TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n};\n\n} // namespace pelican\n#endif" (#ifndef) "#ifndef" (identifier) "TCPCONNECTIONMANAGER_H" (preproc_def) "#define TCPCONNECTIONMANAGER_H\n" (#define) "#define" (identifier) "TCPCONNECTIONMANAGER_H" (comment) "/**\n * @file TCPConnectionManager.h\n */" (preproc_include) "#include <QtNetwork/QTcpServer>\n" (#include) "#include" (system_lib_string) "<QtNetwork/QTcpServer>" (preproc_include) "#include <QtCore/QObject>\n" (#include) "#include" (system_lib_string) "<QtCore/QObject>" (preproc_include) "#include <QtCore/QString>\n" (#include) "#include" (system_lib_string) "<QtCore/QString>" (preproc_include) "#include <QtCore/QMutex>\n" (#include) "#include" (system_lib_string) "<QtCore/QMutex>" (preproc_include) "#include <QtCore/QList>\n" (#include) "#include" (system_lib_string) "<QtCore/QList>" (preproc_include) "#include <QtCore/QSet>\n" (#include) "#include" (system_lib_string) "<QtCore/QSet>" (preproc_include) "#include <QtCore/QMap>\n" (#include) "#include" (system_lib_string) "<QtCore/QMap>" (preproc_include) "#include "utility/ConfigNode.h"\n" (#include) "#include" (string_literal) ""utility/ConfigNode.h"" (") """ (string_content) "utility/ConfigNode.h" (") """ (function_definition) "namespace pelican {\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */\n\nclass TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n};\n\n}" (type_identifier) "namespace" (identifier) "pelican" (compound_statement) "{\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */\n\nclass TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n};\n\n}" ({) "{" (declaration) "class AbstractProtocol;" (type_identifier) "class" (identifier) "AbstractProtocol" (;) ";" (declaration) "class DataBlob;" (type_identifier) "class" (identifier) "DataBlob" (;) ";" (comment) "/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */" (function_definition) "class TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n}" (type_identifier) "class" (identifier) "TCPConnectionManager" (ERROR) ": public QObject" (:) ":" (identifier) "public" (identifier) "QObject" (compound_statement) "{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n}" ({) "{" (declaration) "Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);" (type_identifier) "Q_OBJECT" (ERROR) "public:" (identifier) "public" (:) ":" (init_declarator) "TCPConnectionManager(quint16 port=0" (function_declarator) "TCPConnectionManager(quint16 port" (identifier) "TCPConnectionManager" (parameter_list) "(quint16 port" (() "(" (parameter_declaration) "quint16 port" (type_identifier) "quint16" (identifier) "port" ()) "" (=) "=" (number_literal) "0" (,) "," (ERROR) "QObject" (identifier) "QObject" (init_declarator) "*parent = 0" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "~TCPConnectionManager();" (unary_expression) "~TCPConnectionManager()" (~) "~" (call_expression) "TCPConnectionManager()" (identifier) "TCPConnectionManager" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);" (type_identifier) "quint16" (function_declarator) "serverPort()" (identifier) "serverPort" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "int" (ERROR) "clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void" (function_declarator) "clientsForStream(const QString&) const" (identifier) "clientsForStream" (parameter_list) "(const QString&)" (() "(" (parameter_declaration) "const QString" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" ()) ")" (identifier) "const" (;) ";" (comment) "// stop listening for new connections, but preserve state" (primitive_type) "void" (function_declarator) "stop()" (identifier) "stop" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// start listening for new connections, after a stop()" (declaration) "void listen();" (primitive_type) "void" (function_declarator) "listen()" (identifier) "listen" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "protected:\n virtual void run();" (type_identifier) "protected" (ERROR) ":\n virtual void" (:) ":" (identifier) "virtual" (identifier) "void" (function_declarator) "run()" (identifier) "run" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void _killClient(QTcpSocket*);" (primitive_type) "void" (function_declarator) "_killClient(QTcpSocket*)" (identifier) "_killClient" (parameter_list) "(QTcpSocket*)" (() "(" (parameter_declaration) "QTcpSocket*" (type_identifier) "QTcpSocket" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "const QSet<QString>& types() const;\n void _sendNewDataTypes();" (type_qualifier) "const" (const) "const" (type_identifier) "QSet" (ERROR) "<QString>& types() const;\n void" (<) "<" (identifier) "QString" (>) ">" (&) "&" (function_declarator) "types() const" (identifier) "types" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "_sendNewDataTypes()" (identifier) "_sendNewDataTypes" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool _processIncomming(QTcpSocket*);" (primitive_type) "bool" (function_declarator) "_processIncomming(QTcpSocket*)" (identifier) "_processIncomming" (parameter_list) "(QTcpSocket*)" (() "(" (parameter_declaration) "QTcpSocket*" (type_identifier) "QTcpSocket" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (ERROR) "public slots:" (type_identifier) "public" (identifier) "slots" (:) ":" (declaration) "void send(const QString& streamName, const DataBlob* incoming);" (primitive_type) "void" (function_declarator) "send(const QString& streamName, const DataBlob* incoming)" (identifier) "send" (parameter_list) "(const QString& streamName, const DataBlob* incoming)" (() "(" (parameter_declaration) "const QString& streamName" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "streamName" (,) "," (parameter_declaration) "const DataBlob* incoming" (type_qualifier) "const" (const) "const" (type_identifier) "DataBlob" (pointer_declarator) "* incoming" (*) "*" (identifier) "incoming" ()) ")" (;) ";" (declaration) "private:\n typedef QList<QTcpSocket*> clients_t;" (type_identifier) "private" (ERROR) ":\n typedef QList<QTcpSocket*>" (:) ":" (typedef) "typedef" (identifier) "QList" (<) "<" (identifier) "QTcpSocket" (*) "*" (>) ">" (identifier) "clients_t" (;) ";" (declaration) "quint16 _port;" (type_identifier) "quint16" (identifier) "_port" (;) ";" (declaration) "QMap<QString, clients_t > _clients;" (type_identifier) "QMap" (ERROR) "<" (<) "<" (identifier) "QString" (,) "," (identifier) "clients_t" (ERROR) "> _clients" (>) ">" (identifier) "_clients" (;) ";" (declaration) "QTcpServer* _tcpServer;" (type_identifier) "QTcpServer" (pointer_declarator) "* _tcpServer" (*) "*" (identifier) "_tcpServer" (;) ";" (declaration) "QMutex _mutex;" (type_identifier) "QMutex" (identifier) "_mutex" (;) ";" (comment) "// controls access to _clients" (declaration) "QMutex _sendMutex;" (type_identifier) "QMutex" (identifier) "_sendMutex" (;) ";" (comment) "// controls access to send method" (declaration) "AbstractProtocol* _protocol;" (type_identifier) "AbstractProtocol" (pointer_declarator) "* _protocol" (*) "*" (identifier) "_protocol" (;) ";" (comment) "// Record of what types have been seen (via send() )" (declaration) "QSet<QString> _seenTypes;" (type_identifier) "QSet" (ERROR) "<QString>" (<) "<" (identifier) "QString" (>) ">" (identifier) "_seenTypes" (;) ";" (comment) "// The name of the subscription stream for data support requests" (declaration) "const QString _dataSupportStream;" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (identifier) "_dataSupportStream" (;) ";" (ERROR) "private slots:" (type_identifier) "private" (identifier) "slots" (:) ":" (declaration) "void connectionError(QAbstractSocket::SocketError socketError);" (primitive_type) "void" (function_declarator) "connectionError(QAbstractSocket::SocketError socketError)" (identifier) "connectionError" (parameter_list) "(QAbstractSocket::SocketError socketError)" (() "(" (parameter_declaration) "QAbstractSocket::SocketError socketError" (type_identifier) "QAbstractSocket" (ERROR) "::SocketError" (:) ":" (:) ":" (identifier) "SocketError" (identifier) "socketError" ()) ")" (;) ";" (declaration) "void acceptClientConnection();" (primitive_type) "void" (function_declarator) "acceptClientConnection()" (identifier) "acceptClientConnection" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void _incomingFromClient();" (primitive_type) "void" (function_declarator) "_incomingFromClient()" (identifier) "_incomingFromClient" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "signals:" (type_identifier) "signals" (:) ":" (declaration) "void sent(const DataBlob*);" (primitive_type) "void" (function_declarator) "sent(const DataBlob*)" (identifier) "sent" (parameter_list) "(const DataBlob*)" (() "(" (parameter_declaration) "const DataBlob*" (type_qualifier) "const" (const) "const" (type_identifier) "DataBlob" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace pelican" (#endif) "#endif" (comment) "// TCPCONNECTIONMANAGER_H"
350
19
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 37.49, "nodes": 222, "errors": 0, "source_hash": "449eb829ba61a74d896aacf262de0c7aad82e8a59c3cfce3662de611c917a724", "categorized_nodes": 149}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TCPCONNECTIONMANAGER_H\n#define TCPCONNECTIONMANAGER_H\n\n/**\n * @file TCPConnectionManager.h\n */\n\n#include <QtNetwork/QTcpServer>\n#include <QtCore/QObject>\n#include <QtCore/QString>\n#include <QtCore/QMutex>\n#include <QtCore/QList>\n#include <QtCore/QSet>\n#include <QtCore/QMap>\n\n#include \"utility/ConfigNode.h\"\n\nnamespace pelican {\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */\n\nclass TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n};\n\n} // namespace pelican\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 221], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 109, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 2, "type": "identifier", "text": "TCPCONNECTIONMANAGER_H", "parent": 0, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 30}}, {"id": 3, "type": "preproc_def", "text": "#define TCPCONNECTIONMANAGER_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 5, "type": "identifier", "text": "TCPCONNECTIONMANAGER_H", "parent": 3, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include <QtNetwork/QTcpServer>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<QtNetwork/QTcpServer>", "parent": 6, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 31}}, {"id": 9, "type": "preproc_include", "text": "#include <QtCore/QObject>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<QtCore/QObject>", "parent": 9, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 25}}, {"id": 12, "type": "preproc_include", "text": "#include <QtCore/QString>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<QtCore/QString>", "parent": 12, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 25}}, {"id": 15, "type": "preproc_include", "text": "#include <QtCore/QMutex>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<QtCore/QMutex>", "parent": 15, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 24}}, {"id": 18, "type": "preproc_include", "text": "#include <QtCore/QList>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<QtCore/QList>", "parent": 18, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 23}}, {"id": 21, "type": "preproc_include", "text": "#include <QtCore/QSet>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<QtCore/QSet>", "parent": 21, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include <QtCore/QMap>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<QtCore/QMap>", "parent": 24, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 22}}, {"id": 27, "type": "preproc_include", "text": "#include \"utility/ConfigNode.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"utility/ConfigNode.h\"", "parent": 27, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 31}}, {"id": 30, "type": "function_definition", "text": "namespace pelican {\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */\n\nclass TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n};\n\n}", "parent": 0, "children": [31, 32], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 31, "type": "type_identifier", "text": "namespace", "parent": 30, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 9}}, {"id": 32, "type": "identifier", "text": "pelican", "parent": 30, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 17}}, {"id": 33, "type": "declaration", "text": "class AbstractProtocol;", "parent": 30, "children": [34], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 23}}, {"id": 34, "type": "identifier", "text": "AbstractProtocol", "parent": 33, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 22}}, {"id": 35, "type": "declaration", "text": "class DataBlob;", "parent": 30, "children": [36], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 15}}, {"id": 36, "type": "identifier", "text": "DataBlob", "parent": 35, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 14}}, {"id": 37, "type": "function_definition", "text": "class TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n}", "parent": 30, "children": [38, 39], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 38, "type": "identifier", "text": "TCPConnectionManager", "parent": 37, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 26}}, {"id": 39, "type": "ERROR", "text": ": public QObject", "parent": 37, "children": [40], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 43}}, {"id": 40, "type": "identifier", "text": "QObject", "parent": 39, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 43}}, {"id": 41, "type": "declaration", "text": "Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);", "parent": 37, "children": [42, 43, 44, 53, 55], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 66, "column": 66}}, {"id": 42, "type": "type_identifier", "text": "Q_OBJECT", "parent": 41, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 12}}, {"id": 43, "type": "ERROR", "text": "public:", "parent": 41, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 11}}, {"id": 44, "type": "init_declarator", "text": "TCPConnectionManager(quint16 port=0", "parent": 41, "children": [45, 51, 52], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 43}}, {"id": 45, "type": "function_declarator", "text": "TCPConnectionManager(quint16 port", "parent": 44, "children": [46, 47], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 41}}, {"id": 46, "type": "identifier", "text": "TCPConnectionManager", "parent": 45, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 28}}, {"id": 47, "type": "parameter_list", "text": "(quint16 port", "parent": 45, "children": [48], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 41}}, {"id": 48, "type": "parameter_declaration", "text": "quint16 port", "parent": 47, "children": [49, 50], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 41}}, {"id": 49, "type": "type_identifier", "text": "quint16", "parent": 48, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 36}}, {"id": 50, "type": "identifier", "text": "port", "parent": 48, "children": [], "start_point": {"row": 66, "column": 37}, "end_point": {"row": 66, "column": 41}}, {"id": 51, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 66, "column": 41}, "end_point": {"row": 66, "column": 42}}, {"id": 52, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 66, "column": 42}, "end_point": {"row": 66, "column": 43}}, {"id": 53, "type": "ERROR", "text": "QObject", "parent": 41, "children": [54], "start_point": {"row": 66, "column": 45}, "end_point": {"row": 66, "column": 52}}, {"id": 54, "type": "identifier", "text": "QObject", "parent": 53, "children": [], "start_point": {"row": 66, "column": 45}, "end_point": {"row": 66, "column": 52}}, {"id": 55, "type": "init_declarator", "text": "*parent = 0", "parent": 41, "children": [56, 59, 60], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 64}}, {"id": 56, "type": "pointer_declarator", "text": "*parent", "parent": 55, "children": [57, 58], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 60}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 54}}, {"id": 58, "type": "identifier", "text": "parent", "parent": 56, "children": [], "start_point": {"row": 66, "column": 54}, "end_point": {"row": 66, "column": 60}}, {"id": 59, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 66, "column": 61}, "end_point": {"row": 66, "column": 62}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 55, "children": [], "start_point": {"row": 66, "column": 63}, "end_point": {"row": 66, "column": 64}}, {"id": 61, "type": "unary_expression", "text": "~TCPConnectionManager()", "parent": 37, "children": [62, 63], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 31}}, {"id": 62, "type": "~", "text": "~", "parent": 61, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 63, "type": "call_expression", "text": "TCPConnectionManager()", "parent": 61, "children": [64, 65], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 31}}, {"id": 64, "type": "identifier", "text": "TCPConnectionManager", "parent": 63, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 29}}, {"id": 65, "type": "argument_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 31}}, {"id": 66, "type": "ERROR", "text": "quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);", "parent": 37, "children": [67, 68, 71, 83, 88, 95, 104, 117, 126, 128, 141, 150, 153, 162, 167, 170, 173, 178, 185, 188, 190, 200, 205, 210, 212], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 104, "column": 35}}, {"id": 67, "type": "type_identifier", "text": "quint16", "parent": 66, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 15}}, {"id": 68, "type": "function_declarator", "text": "serverPort()", "parent": 66, "children": [69, 70], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 28}}, {"id": 69, "type": "identifier", "text": "serverPort", "parent": 68, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 26}}, {"id": 70, "type": "parameter_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 28}}, {"id": 71, "type": "declaration", "text": "const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();", "parent": 66, "children": [72, 73, 80], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 71, "column": 20}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 11}}, {"id": 73, "type": "ERROR", "text": "clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void", "parent": 71, "children": [74, 79], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 71, "column": 12}}, {"id": 74, "type": "function_declarator", "text": "clientsForStream(const QString&) const", "parent": 73, "children": [75, 76], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 50}}, {"id": 75, "type": "identifier", "text": "clientsForStream", "parent": 74, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 28}}, {"id": 76, "type": "parameter_list", "text": "(const QString&)", "parent": 74, "children": [77], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 44}}, {"id": 77, "type": "parameter_declaration", "text": "const QString", "parent": 76, "children": [78], "start_point": {"row": 69, "column": 29}, "end_point": {"row": 69, "column": 42}}, {"id": 78, "type": "type_identifier", "text": "QString", "parent": 77, "children": [], "start_point": {"row": 69, "column": 35}, "end_point": {"row": 69, "column": 42}}, {"id": 79, "type": "primitive_type", "text": "void", "parent": 73, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 12}}, {"id": 80, "type": "function_declarator", "text": "stop()", "parent": 71, "children": [81, 82], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 19}}, {"id": 81, "type": "identifier", "text": "stop", "parent": 80, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 17}}, {"id": 82, "type": "parameter_list", "text": "()", "parent": 80, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 19}}, {"id": 83, "type": "declaration", "text": "void listen();", "parent": 66, "children": [84, 85], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 22}}, {"id": 84, "type": "primitive_type", "text": "void", "parent": 83, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 12}}, {"id": 85, "type": "function_declarator", "text": "listen()", "parent": 83, "children": [86, 87], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 21}}, {"id": 86, "type": "identifier", "text": "listen", "parent": 85, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 19}}, {"id": 87, "type": "parameter_list", "text": "()", "parent": 85, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 21}}, {"id": 88, "type": "declaration", "text": "protected:\n virtual void run();", "parent": 66, "children": [89, 92], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 76, "column": 27}}, {"id": 89, "type": "ERROR", "text": ":\n virtual void", "parent": 88, "children": [90, 91], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 76, "column": 20}}, {"id": 90, "type": "identifier", "text": "virtual", "parent": 89, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 15}}, {"id": 91, "type": "identifier", "text": "void", "parent": 89, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 20}}, {"id": 92, "type": "function_declarator", "text": "run()", "parent": 88, "children": [93, 94], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 26}}, {"id": 93, "type": "identifier", "text": "run", "parent": 92, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 24}}, {"id": 94, "type": "parameter_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 26}}, {"id": 95, "type": "declaration", "text": "void _killClient(QTcpSocket*);", "parent": 66, "children": [96, 97], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 38}}, {"id": 96, "type": "primitive_type", "text": "void", "parent": 95, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 12}}, {"id": 97, "type": "function_declarator", "text": "_killClient(QTcpSocket*)", "parent": 95, "children": [98, 99], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 37}}, {"id": 98, "type": "identifier", "text": "_killClient", "parent": 97, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 24}}, {"id": 99, "type": "parameter_list", "text": "(QTcpSocket*)", "parent": 97, "children": [100], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 37}}, {"id": 100, "type": "parameter_declaration", "text": "QTcpSocket*", "parent": 99, "children": [101, 102], "start_point": {"row": 77, "column": 25}, "end_point": {"row": 77, "column": 36}}, {"id": 101, "type": "type_identifier", "text": "QTcpSocket", "parent": 100, "children": [], "start_point": {"row": 77, "column": 25}, "end_point": {"row": 77, "column": 35}}, {"id": 102, "type": "abstract_pointer_declarator", "text": "*", "parent": 100, "children": [103], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 36}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 36}}, {"id": 104, "type": "declaration", "text": "const QSet<QString>& types() const;\n void _sendNewDataTypes();", "parent": 66, "children": [105, 106, 114], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 79, "column": 33}}, {"id": 105, "type": "type_identifier", "text": "QSet", "parent": 104, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 18}}, {"id": 106, "type": "ERROR", "text": "<QString>& types() const;\n void", "parent": 104, "children": [107, 108, 109, 110, 113], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 79, "column": 12}}, {"id": 107, "type": "<", "text": "<", "parent": 106, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 19}}, {"id": 108, "type": "identifier", "text": "QString", "parent": 106, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 26}}, {"id": 109, "type": ">", "text": ">", "parent": 106, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 27}}, {"id": 110, "type": "function_declarator", "text": "types() const", "parent": 106, "children": [111, 112], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 42}}, {"id": 111, "type": "identifier", "text": "types", "parent": 110, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 34}}, {"id": 112, "type": "parameter_list", "text": "()", "parent": 110, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 36}}, {"id": 113, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 12}}, {"id": 114, "type": "function_declarator", "text": "_sendNewDataTypes()", "parent": 104, "children": [115, 116], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 32}}, {"id": 115, "type": "identifier", "text": "_sendNewDataTypes", "parent": 114, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 30}}, {"id": 116, "type": "parameter_list", "text": "()", "parent": 114, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 32}}, {"id": 117, "type": "declaration", "text": "bool _processIncomming(QTcpSocket*);", "parent": 66, "children": [118, 119], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 44}}, {"id": 118, "type": "primitive_type", "text": "bool", "parent": 117, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 12}}, {"id": 119, "type": "function_declarator", "text": "_processIncomming(QTcpSocket*)", "parent": 117, "children": [120, 121], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 43}}, {"id": 120, "type": "identifier", "text": "_processIncomming", "parent": 119, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 30}}, {"id": 121, "type": "parameter_list", "text": "(QTcpSocket*)", "parent": 119, "children": [122], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 43}}, {"id": 122, "type": "parameter_declaration", "text": "QTcpSocket*", "parent": 121, "children": [123, 124], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 42}}, {"id": 123, "type": "type_identifier", "text": "QTcpSocket", "parent": 122, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 41}}, {"id": 124, "type": "abstract_pointer_declarator", "text": "*", "parent": 122, "children": [125], "start_point": {"row": 80, "column": 41}, "end_point": {"row": 80, "column": 42}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 80, "column": 41}, "end_point": {"row": 80, "column": 42}}, {"id": 126, "type": "ERROR", "text": "public slots:", "parent": 66, "children": [127], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 17}}, {"id": 127, "type": "identifier", "text": "slots", "parent": 126, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 16}}, {"id": 128, "type": "declaration", "text": "void send(const QString& streamName, const DataBlob* incoming);", "parent": 66, "children": [129, 130], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 71}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 12}}, {"id": 130, "type": "function_declarator", "text": "send(const QString& streamName, const DataBlob* incoming)", "parent": 128, "children": [131, 132], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 70}}, {"id": 131, "type": "identifier", "text": "send", "parent": 130, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 17}}, {"id": 132, "type": "parameter_list", "text": "(const QString& streamName, const DataBlob* incoming)", "parent": 130, "children": [133, 136], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 70}}, {"id": 133, "type": "parameter_declaration", "text": "const QString& streamName", "parent": 132, "children": [134, 135], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 43}}, {"id": 134, "type": "type_identifier", "text": "QString", "parent": 133, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 31}}, {"id": 135, "type": "identifier", "text": "streamName", "parent": 133, "children": [], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 43}}, {"id": 136, "type": "parameter_declaration", "text": "const DataBlob* incoming", "parent": 132, "children": [137, 138], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 69}}, {"id": 137, "type": "type_identifier", "text": "DataBlob", "parent": 136, "children": [], "start_point": {"row": 83, "column": 51}, "end_point": {"row": 83, "column": 59}}, {"id": 138, "type": "pointer_declarator", "text": "* incoming", "parent": 136, "children": [139, 140], "start_point": {"row": 83, "column": 59}, "end_point": {"row": 83, "column": 69}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 83, "column": 59}, "end_point": {"row": 83, "column": 60}}, {"id": 140, "type": "identifier", "text": "incoming", "parent": 138, "children": [], "start_point": {"row": 83, "column": 61}, "end_point": {"row": 83, "column": 69}}, {"id": 141, "type": "declaration", "text": "private:\n typedef QList<QTcpSocket*> clients_t;", "parent": 66, "children": [142, 149], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 86, "column": 45}}, {"id": 142, "type": "ERROR", "text": ":\n typedef QList<QTcpSocket*>", "parent": 141, "children": [143, 144, 145, 146, 147, 148], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 86, "column": 34}}, {"id": 143, "type": "typedef", "text": "typedef", "parent": 142, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 15}}, {"id": 144, "type": "identifier", "text": "QList", "parent": 142, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 21}}, {"id": 145, "type": "<", "text": "<", "parent": 142, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 22}}, {"id": 146, "type": "identifier", "text": "QTcpSocket", "parent": 142, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 32}}, {"id": 147, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 33}}, {"id": 148, "type": ">", "text": ">", "parent": 142, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 34}}, {"id": 149, "type": "identifier", "text": "clients_t", "parent": 141, "children": [], "start_point": {"row": 86, "column": 35}, "end_point": {"row": 86, "column": 44}}, {"id": 150, "type": "declaration", "text": "quint16 _port;", "parent": 66, "children": [151, 152], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 22}}, {"id": 151, "type": "type_identifier", "text": "quint16", "parent": 150, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 15}}, {"id": 152, "type": "identifier", "text": "_port", "parent": 150, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 21}}, {"id": 153, "type": "declaration", "text": "QMap<QString, clients_t > _clients;", "parent": 66, "children": [154, 155, 157, 158, 159], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 43}}, {"id": 154, "type": "type_identifier", "text": "QMap", "parent": 153, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 12}}, {"id": 155, "type": "ERROR", "text": "<", "parent": 153, "children": [156], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 13}}, {"id": 156, "type": "<", "text": "<", "parent": 155, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 13}}, {"id": 157, "type": "identifier", "text": "QString", "parent": 153, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 20}}, {"id": 158, "type": "identifier", "text": "clients_t", "parent": 153, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 31}}, {"id": 159, "type": "ERROR", "text": "> _clients", "parent": 153, "children": [160, 161], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 42}}, {"id": 160, "type": ">", "text": ">", "parent": 159, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 33}}, {"id": 161, "type": "identifier", "text": "_clients", "parent": 159, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 42}}, {"id": 162, "type": "declaration", "text": "QTcpServer* _tcpServer;", "parent": 66, "children": [163, 164], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 31}}, {"id": 163, "type": "type_identifier", "text": "QTcpServer", "parent": 162, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 18}}, {"id": 164, "type": "pointer_declarator", "text": "* _tcpServer", "parent": 162, "children": [165, 166], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 30}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 19}}, {"id": 166, "type": "identifier", "text": "_tcpServer", "parent": 164, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 30}}, {"id": 167, "type": "declaration", "text": "QMutex _mutex;", "parent": 66, "children": [168, 169], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 22}}, {"id": 168, "type": "type_identifier", "text": "QMutex", "parent": 167, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 14}}, {"id": 169, "type": "identifier", "text": "_mutex", "parent": 167, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 21}}, {"id": 170, "type": "declaration", "text": "QMutex _sendMutex;", "parent": 66, "children": [171, 172], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 26}}, {"id": 171, "type": "type_identifier", "text": "QMutex", "parent": 170, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 14}}, {"id": 172, "type": "identifier", "text": "_sendMutex", "parent": 170, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 25}}, {"id": 173, "type": "declaration", "text": "AbstractProtocol* _protocol;", "parent": 66, "children": [174, 175], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 36}}, {"id": 174, "type": "type_identifier", "text": "AbstractProtocol", "parent": 173, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 24}}, {"id": 175, "type": "pointer_declarator", "text": "* _protocol", "parent": 173, "children": [176, 177], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 35}}, {"id": 176, "type": "*", "text": "*", "parent": 175, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 25}}, {"id": 177, "type": "identifier", "text": "_protocol", "parent": 175, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 35}}, {"id": 178, "type": "declaration", "text": "QSet<QString> _seenTypes;", "parent": 66, "children": [179, 180, 184], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 33}}, {"id": 179, "type": "type_identifier", "text": "QSet", "parent": 178, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 12}}, {"id": 180, "type": "ERROR", "text": "<QString>", "parent": 178, "children": [181, 182, 183], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 21}}, {"id": 181, "type": "<", "text": "<", "parent": 180, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 13}}, {"id": 182, "type": "identifier", "text": "QString", "parent": 180, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 20}}, {"id": 183, "type": ">", "text": ">", "parent": 180, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 21}}, {"id": 184, "type": "identifier", "text": "_seenTypes", "parent": 178, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 32}}, {"id": 185, "type": "declaration", "text": "const QString _dataSupportStream;", "parent": 66, "children": [186, 187], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 41}}, {"id": 186, "type": "type_identifier", "text": "QString", "parent": 185, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 21}}, {"id": 187, "type": "identifier", "text": "_dataSupportStream", "parent": 185, "children": [], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 40}}, {"id": 188, "type": "ERROR", "text": "private slots:", "parent": 66, "children": [189], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 18}}, {"id": 189, "type": "identifier", "text": "slots", "parent": 188, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 17}}, {"id": 190, "type": "declaration", "text": "void connectionError(QAbstractSocket::SocketError socketError);", "parent": 66, "children": [191, 192], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 71}}, {"id": 191, "type": "primitive_type", "text": "void", "parent": 190, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 12}}, {"id": 192, "type": "function_declarator", "text": "connectionError(QAbstractSocket::SocketError socketError)", "parent": 190, "children": [193, 194], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 70}}, {"id": 193, "type": "identifier", "text": "connectionError", "parent": 192, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 28}}, {"id": 194, "type": "parameter_list", "text": "(QAbstractSocket::SocketError socketError)", "parent": 192, "children": [195], "start_point": {"row": 99, "column": 28}, "end_point": {"row": 99, "column": 70}}, {"id": 195, "type": "parameter_declaration", "text": "QAbstractSocket::SocketError socketError", "parent": 194, "children": [196, 197, 199], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 69}}, {"id": 196, "type": "type_identifier", "text": "QAbstractSocket", "parent": 195, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 44}}, {"id": 197, "type": "ERROR", "text": "::SocketError", "parent": 195, "children": [198], "start_point": {"row": 99, "column": 44}, "end_point": {"row": 99, "column": 57}}, {"id": 198, "type": "identifier", "text": "SocketError", "parent": 197, "children": [], "start_point": {"row": 99, "column": 46}, "end_point": {"row": 99, "column": 57}}, {"id": 199, "type": "identifier", "text": "socketError", "parent": 195, "children": [], "start_point": {"row": 99, "column": 58}, "end_point": {"row": 99, "column": 69}}, {"id": 200, "type": "declaration", "text": "void acceptClientConnection();", "parent": 66, "children": [201, 202], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 38}}, {"id": 201, "type": "primitive_type", "text": "void", "parent": 200, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 12}}, {"id": 202, "type": "function_declarator", "text": "acceptClientConnection()", "parent": 200, "children": [203, 204], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 37}}, {"id": 203, "type": "identifier", "text": "acceptClientConnection", "parent": 202, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 35}}, {"id": 204, "type": "parameter_list", "text": "()", "parent": 202, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 37}}, {"id": 205, "type": "declaration", "text": "void _incomingFromClient();", "parent": 66, "children": [206, 207], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 35}}, {"id": 206, "type": "primitive_type", "text": "void", "parent": 205, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 12}}, {"id": 207, "type": "function_declarator", "text": "_incomingFromClient()", "parent": 205, "children": [208, 209], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 34}}, {"id": 208, "type": "identifier", "text": "_incomingFromClient", "parent": 207, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 32}}, {"id": 209, "type": "parameter_list", "text": "()", "parent": 207, "children": [], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 34}}, {"id": 210, "type": "ERROR", "text": "signals:", "parent": 66, "children": [211], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 12}}, {"id": 211, "type": "type_identifier", "text": "signals", "parent": 210, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 11}}, {"id": 212, "type": "declaration", "text": "void sent(const DataBlob*);", "parent": 66, "children": [213, 214], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 35}}, {"id": 213, "type": "primitive_type", "text": "void", "parent": 212, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 12}}, {"id": 214, "type": "function_declarator", "text": "sent(const DataBlob*)", "parent": 212, "children": [215, 216], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 34}}, {"id": 215, "type": "identifier", "text": "sent", "parent": 214, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 17}}, {"id": 216, "type": "parameter_list", "text": "(const DataBlob*)", "parent": 214, "children": [217], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 34}}, {"id": 217, "type": "parameter_declaration", "text": "const DataBlob*", "parent": 216, "children": [218, 219], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 33}}, {"id": 218, "type": "type_identifier", "text": "DataBlob", "parent": 217, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 32}}, {"id": 219, "type": "abstract_pointer_declarator", "text": "*", "parent": 217, "children": [220], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 33}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 33}}, {"id": 221, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 6}}]}, "node_categories": {"declarations": {"functions": [30, 37, 45, 68, 74, 80, 85, 92, 97, 110, 114, 119, 130, 192, 202, 207, 214], "variables": [33, 35, 41, 48, 71, 77, 83, 88, 95, 100, 104, 117, 122, 128, 133, 136, 141, 150, 153, 162, 167, 170, 173, 178, 185, 190, 195, 200, 205, 212, 217], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [61, 63], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 31, 32, 34, 36, 38, 40, 42, 46, 49, 50, 54, 58, 64, 67, 69, 75, 78, 81, 86, 90, 91, 93, 98, 101, 105, 108, 111, 115, 120, 123, 127, 131, 134, 135, 137, 140, 144, 146, 149, 151, 152, 154, 157, 158, 161, 163, 166, 168, 169, 171, 172, 174, 177, 179, 182, 184, 186, 187, 189, 193, 196, 198, 199, 203, 208, 211, 215, 218, 221], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 52, 60], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "AbstractProtocol;", "text_snippet": "namespace pelican {\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class "}, {"node_id": 37, "universal_type": "function", "name": "TCPConnectionManager", "text_snippet": "class TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "TCPConnectionManager(quint16 port"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "serverPort()"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "clientsForStream(const QString&) const"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "stop()"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "listen()"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "run()"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "_killClient(QTcpSocket*)"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "types() const"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "_sendNewDataTypes()"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "_processIncomming(QTcpSocket*)"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "send(const QString& streamName, const DataBlob* incoming)"}, {"node_id": 192, "universal_type": "function", "name": "unknown", "text_snippet": "connectionError(QAbstractSocket::SocketError socketError)"}, {"node_id": 202, "universal_type": "function", "name": "unknown", "text_snippet": "acceptClientConnection()"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "_incomingFromClient()"}, {"node_id": 214, "universal_type": "function", "name": "unknown", "text_snippet": "sent(const DataBlob*)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QtNetwork/QTcpServer>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QtCore/QObject>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <QtCore/QString>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <QtCore/QMutex>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <QtCore/QList>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <QtCore/QSet>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <QtCore/QMap>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"utility/ConfigNode.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2013, The University of Oxford\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * 1. Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n * 3. Neither the name of the University of Oxford nor the names of its\n * contributors may be used to endorse or promote products derived from this\n * software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef TCPCONNECTIONMANAGER_H\n#define TCPCONNECTIONMANAGER_H\n\n/**\n * @file TCPConnectionManager.h\n */\n\n#include <QtNetwork/QTcpServer>\n#include <QtCore/QObject>\n#include <QtCore/QString>\n#include <QtCore/QMutex>\n#include <QtCore/QList>\n#include <QtCore/QSet>\n#include <QtCore/QMap>\n\n#include \"utility/ConfigNode.h\"\n\nnamespace pelican {\n\nclass AbstractProtocol;\nclass DataBlob;\n\n/**\n * @ingroup c_output\n *\n * @class TCPConnectionManager\n *\n * @brief\n * TCP Connection Management thread\n * @details\n *\n */\n\nclass TCPConnectionManager : public QObject\n{\n Q_OBJECT\n\n public:\n TCPConnectionManager(quint16 port=0, QObject *parent = 0);\n ~TCPConnectionManager();\n quint16 serverPort() const;\n int clientsForStream(const QString&) const;\n // stop listening for new connections, but preserve state\n void stop();\n // start listening for new connections, after a stop()\n void listen();\n\n protected:\n virtual void run();\n void _killClient(QTcpSocket*);\n const QSet<QString>& types() const;\n void _sendNewDataTypes();\n bool _processIncomming(QTcpSocket*);\n\n public slots:\n void send(const QString& streamName, const DataBlob* incoming);\n\n private:\n typedef QList<QTcpSocket*> clients_t;\n quint16 _port;\n QMap<QString, clients_t > _clients;\n QTcpServer* _tcpServer;\n QMutex _mutex; // controls access to _clients\n QMutex _sendMutex; // controls access to send method\n AbstractProtocol* _protocol;\n // Record of what types have been seen (via send() )\n QSet<QString> _seenTypes;\n // The name of the subscription stream for data support requests\n const QString _dataSupportStream;\n\n private slots:\n void connectionError(QAbstractSocket::SocketError socketError);\n void acceptClientConnection();\n void _incomingFromClient();\n\n signals:\n void sent(const DataBlob*);\n\n};\n\n} // namespace pelican\n#endif // TCPCONNECTIONMANAGER_H\n"}
80,485
c
#ifndef _GENCANONICALBASIS_GF2N_H #define _GENCANONICALBASIS_GF2N_H #include "matrix_gf2n.h" void PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec); #endif
24.43
7
(translation_unit) "#ifndef _GENCANONICALBASIS_GF2N_H\n#define _GENCANONICALBASIS_GF2N_H\n#include "matrix_gf2n.h"\n\n\n\nvoid PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec);\n\n\n#endif\n" (preproc_ifdef) "#ifndef _GENCANONICALBASIS_GF2N_H\n#define _GENCANONICALBASIS_GF2N_H\n#include "matrix_gf2n.h"\n\n\n\nvoid PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec);\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "_GENCANONICALBASIS_GF2N_H" (preproc_def) "#define _GENCANONICALBASIS_GF2N_H\n" (#define) "#define" (identifier) "_GENCANONICALBASIS_GF2N_H" (preproc_include) "#include "matrix_gf2n.h"\n" (#include) "#include" (string_literal) ""matrix_gf2n.h"" (") """ (string_content) "matrix_gf2n.h" (") """ (declaration) "void PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec);" (primitive_type) "void" (function_declarator) "PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec)" (identifier) "PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n" (parameter_list) "(vec_gf2n alpha_vec)" (() "(" (parameter_declaration) "vec_gf2n alpha_vec" (type_identifier) "vec_gf2n" (identifier) "alpha_vec" ()) ")" (;) ";" (#endif) "#endif"
25
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 24.43, "nodes": 18, "errors": 0, "source_hash": "0646a59a7ef769479047b9ceb0d58e378548c65a8907c1e02e377c93084f1545", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _GENCANONICALBASIS_GF2N_H\n#define _GENCANONICALBASIS_GF2N_H\n#include \"matrix_gf2n.h\"\n\n\n\nvoid PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec);\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 17], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 9, "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": "_GENCANONICALBASIS_GF2N_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 33}}, {"id": 3, "type": "preproc_def", "text": "#define _GENCANONICALBASIS_GF2N_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": "_GENCANONICALBASIS_GF2N_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 33}}, {"id": 6, "type": "preproc_include", "text": "#include \"matrix_gf2n.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"matrix_gf2n.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 24}}, {"id": 9, "type": "declaration", "text": "void PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec);", "parent": 0, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 75}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec)", "parent": 9, "children": [12, 13], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 74}}, {"id": 12, "type": "identifier", "text": "PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n", "parent": 11, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 54}}, {"id": 13, "type": "parameter_list", "text": "(vec_gf2n alpha_vec)", "parent": 11, "children": [14], "start_point": {"row": 6, "column": 54}, "end_point": {"row": 6, "column": 74}}, {"id": 14, "type": "parameter_declaration", "text": "vec_gf2n alpha_vec", "parent": 13, "children": [15, 16], "start_point": {"row": 6, "column": 55}, "end_point": {"row": 6, "column": 73}}, {"id": 15, "type": "type_identifier", "text": "vec_gf2n", "parent": 14, "children": [], "start_point": {"row": 6, "column": 55}, "end_point": {"row": 6, "column": 63}}, {"id": 16, "type": "identifier", "text": "alpha_vec", "parent": 14, "children": [], "start_point": {"row": 6, "column": 64}, "end_point": {"row": 6, "column": 73}}, {"id": 17, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [9, 14], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 15, 16, 17], "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": "PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"matrix_gf2n.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef _GENCANONICALBASIS_GF2N_H\n#define _GENCANONICALBASIS_GF2N_H\n#include \"matrix_gf2n.h\"\n\n\n\nvoid PQCLEAN_GEMSSBLUE128_CLEAN_genCanonicalBasis_gf2n(vec_gf2n alpha_vec);\n\n\n#endif\n"}
80,486
c
/* * Copyright (c) 2020, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <AK/String.h> namespace Web { class Origin { public: Origin() { } Origin(const String& protocol, const String& host, u16 port) : m_protocol(protocol) , m_host(host) , m_port(port) { } bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; } const String& protocol() const { return m_protocol; } const String& host() const { return m_host; } u16 port() const { return m_port; } bool is_same(const Origin& other) const { return protocol() == other.protocol() && host() == other.host() && port() == other.port(); } bool operator==(Origin const& other) const { return is_same(other); } bool operator!=(Origin const& other) const { return !is_same(other); } private: String m_protocol; String m_host; u16 m_port { 0 }; }; } namespace AK { template<> struct Traits<Web::Origin> : public GenericTraits<Web::Origin> { static unsigned hash(Web::Origin const& origin) { return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash())); } }; } // namespace AK
27.95
44
(translation_unit) "/*\n * Copyright (c) 2020, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <AK/String.h>\n\nnamespace Web {\n\nclass Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n};\n\n}\n\nnamespace AK {\ntemplate<>\nstruct Traits<Web::Origin> : public GenericTraits<Web::Origin> {\n static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }\n};\n} // namespace AK\n" (comment) "/*\n * Copyright (c) 2020, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <AK/String.h>\n" (#include) "#include" (system_lib_string) "<AK/String.h>" (function_definition) "namespace Web {\n\nclass Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n};\n\n}" (type_identifier) "namespace" (identifier) "Web" (compound_statement) "{\n\nclass Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n};\n\n}" ({) "{" (function_definition) "class Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n}" (type_identifier) "class" (identifier) "Origin" (compound_statement) "{\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n}" ({) "{" (labeled_statement) "public:\n Origin() { }" (statement_identifier) "public" (:) ":" (ERROR) "Origin()" (call_expression) "Origin()" (identifier) "Origin" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{ }" ({) "{" (}) "}" (expression_statement) "Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)" (comma_expression) "Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)" (binary_expression) "Origin(const String& protocol" (identifier) "Origin" (ERROR) "(const String" (() "(" (type_descriptor) "const String" (type_qualifier) "const" (const) "const" (type_identifier) "String" (&) "&" (identifier) "protocol" (,) "," (ERROR) "const" (identifier) "const" (comma_expression) "String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)" (binary_expression) "String& host" (identifier) "String" (&) "&" (identifier) "host" (,) "," (ERROR) "u16 port)\n :" (identifier) "u16" (identifier) "port" ()) ")" (:) ":" (comma_expression) "m_protocol(protocol)\n , m_host(host)\n , m_port(port)" (call_expression) "m_protocol(protocol)" (identifier) "m_protocol" (argument_list) "(protocol)" (() "(" (identifier) "protocol" ()) ")" (,) "," (comma_expression) "m_host(host)\n , m_port(port)" (call_expression) "m_host(host)" (identifier) "m_host" (argument_list) "(host)" (() "(" (identifier) "host" ()) ")" (,) "," (call_expression) "m_port(port)" (identifier) "m_port" (argument_list) "(port)" (() "(" (identifier) "port" ()) ")" (;) "" (compound_statement) "{\n }" ({) "{" (}) "}" (ERROR) "bool is_null() const" (primitive_type) "bool" (function_declarator) "is_null()" (identifier) "is_null" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_protocol.is_null() && m_host.is_null() && !m_port; }" ({) "{" (return_statement) "return m_protocol.is_null() && m_host.is_null() && !m_port;" (return) "return" (binary_expression) "m_protocol.is_null() && m_host.is_null() && !m_port" (binary_expression) "m_protocol.is_null() && m_host.is_null()" (call_expression) "m_protocol.is_null()" (field_expression) "m_protocol.is_null" (identifier) "m_protocol" (.) "." (field_identifier) "is_null" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (call_expression) "m_host.is_null()" (field_expression) "m_host.is_null" (identifier) "m_host" (.) "." (field_identifier) "is_null" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (unary_expression) "!m_port" (!) "!" (identifier) "m_port" (;) ";" (}) "}" (ERROR) "const String& protocol() const" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (function_declarator) "protocol()" (identifier) "protocol" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_protocol; }" ({) "{" (return_statement) "return m_protocol;" (return) "return" (identifier) "m_protocol" (;) ";" (}) "}" (ERROR) "const String& host() const" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (function_declarator) "host()" (identifier) "host" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_host; }" ({) "{" (return_statement) "return m_host;" (return) "return" (identifier) "m_host" (;) ";" (}) "}" (ERROR) "u16 port() const" (type_identifier) "u16" (function_declarator) "port()" (identifier) "port" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_port; }" ({) "{" (return_statement) "return m_port;" (return) "return" (identifier) "m_port" (;) ";" (}) "}" (function_definition) "bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }" (primitive_type) "bool" (function_declarator) "is_same(const Origin& other) const" (identifier) "is_same" (parameter_list) "(const Origin& other)" (() "(" (parameter_declaration) "const Origin& other" (type_qualifier) "const" (const) "const" (type_identifier) "Origin" (ERROR) "&" (&) "&" (identifier) "other" ()) ")" (identifier) "const" (compound_statement) "{\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }" ({) "{" (return_statement) "return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();" (return) "return" (binary_expression) "protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port()" (binary_expression) "protocol() == other.protocol()\n && host() == other.host()" (binary_expression) "protocol() == other.protocol()" (call_expression) "protocol()" (identifier) "protocol" (argument_list) "()" (() "(" ()) ")" (==) "==" (call_expression) "other.protocol()" (field_expression) "other.protocol" (identifier) "other" (.) "." (field_identifier) "protocol" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (binary_expression) "host() == other.host()" (call_expression) "host()" (identifier) "host" (argument_list) "()" (() "(" ()) ")" (==) "==" (call_expression) "other.host()" (field_expression) "other.host" (identifier) "other" (.) "." (field_identifier) "host" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (binary_expression) "port() == other.port()" (call_expression) "port()" (identifier) "port" (argument_list) "()" (() "(" ()) ")" (==) "==" (call_expression) "other.port()" (field_expression) "other.port" (identifier) "other" (.) "." (field_identifier) "port" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "bool operator==(Origin const& other) const { return is_same(other); }" (primitive_type) "bool" (identifier) "operator" (ERROR) "==(Origin const& other) const" (==) "==" (() "(" (identifier) "Origin" (const) "const" (&) "&" (identifier) "other" ()) ")" (const) "const" (compound_statement) "{ return is_same(other); }" ({) "{" (return_statement) "return is_same(other);" (return) "return" (call_expression) "is_same(other)" (identifier) "is_same" (argument_list) "(other)" (() "(" (identifier) "other" ()) ")" (;) ";" (}) "}" (function_definition) "bool operator!=(Origin const& other) const { return !is_same(other); }" (primitive_type) "bool" (identifier) "operator" (ERROR) "!=(Origin const& other) const" (!=) "!=" (() "(" (identifier) "Origin" (const) "const" (&) "&" (identifier) "other" ()) ")" (const) "const" (compound_statement) "{ return !is_same(other); }" ({) "{" (return_statement) "return !is_same(other);" (return) "return" (unary_expression) "!is_same(other)" (!) "!" (call_expression) "is_same(other)" (identifier) "is_same" (argument_list) "(other)" (() "(" (identifier) "other" ()) ")" (;) ";" (}) "}" (labeled_statement) "private:\n String m_protocol;" (statement_identifier) "private" (:) ":" (declaration) "String m_protocol;" (type_identifier) "String" (identifier) "m_protocol" (;) ";" (declaration) "String m_host;" (type_identifier) "String" (identifier) "m_host" (;) ";" (function_definition) "u16 m_port { 0 }" (type_identifier) "u16" (identifier) "m_port" (compound_statement) "{ 0 }" ({) "{" (ERROR) "0" (number_literal) "0" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (function_definition) "namespace AK {\ntemplate<>\nstruct Traits<Web::Origin> : public GenericTraits<Web::Origin> {\n static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }\n};\n}" (type_identifier) "namespace" (identifier) "AK" (compound_statement) "{\ntemplate<>\nstruct Traits<Web::Origin> : public GenericTraits<Web::Origin> {\n static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }\n};\n}" ({) "{" (ERROR) "template<>" (identifier) "template" (<) "<" (>) ">" (declaration) "struct Traits<Web::Origin> : public" (struct_specifier) "struct Traits" (struct) "struct" (type_identifier) "Traits" (ERROR) "<Web::Origin> :" (<) "<" (identifier) "Web" (:) ":" (:) ":" (identifier) "Origin" (>) ">" (:) ":" (identifier) "public" (;) "" (ERROR) "GenericTraits<Web::Origin>" (binary_expression) "GenericTraits<Web" (identifier) "GenericTraits" (<) "<" (identifier) "Web" (ERROR) "::Origin" (:) ":" (:) ":" (identifier) "Origin" (>) ">" (compound_statement) "{\n static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }\n}" ({) "{" (function_definition) "static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (function_declarator) "hash(Web::Origin const& origin)" (identifier) "hash" (parameter_list) "(Web::Origin const& origin)" (() "(" (parameter_declaration) "Web::Origin const& origin" (type_identifier) "Web" (ERROR) "::Origin const&" (:) ":" (:) ":" (identifier) "Origin" (identifier) "const" (&) "&" (identifier) "origin" ()) ")" (compound_statement) "{\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }" ({) "{" (return_statement) "return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));" (return) "return" (call_expression) "pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()))" (identifier) "pair_int_hash" (argument_list) "(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()))" (() "(" (call_expression) "origin.protocol().hash()" (field_expression) "origin.protocol().hash" (call_expression) "origin.protocol()" (field_expression) "origin.protocol" (identifier) "origin" (.) "." (field_identifier) "protocol" (argument_list) "()" (() "(" ()) ")" (.) "." (field_identifier) "hash" (argument_list) "()" (() "(" ()) ")" (,) "," (call_expression) "pair_int_hash(int_hash(origin.port()), origin.host().hash())" (identifier) "pair_int_hash" (argument_list) "(int_hash(origin.port()), origin.host().hash())" (() "(" (call_expression) "int_hash(origin.port())" (identifier) "int_hash" (argument_list) "(origin.port())" (() "(" (call_expression) "origin.port()" (field_expression) "origin.port" (identifier) "origin" (.) "." (field_identifier) "port" (argument_list) "()" (() "(" ()) ")" ()) ")" (,) "," (call_expression) "origin.host().hash()" (field_expression) "origin.host().hash" (call_expression) "origin.host()" (field_expression) "origin.host" (identifier) "origin" (.) "." (field_identifier) "host" (argument_list) "()" (() "(" ()) ")" (.) "." (field_identifier) "hash" (argument_list) "()" (() "(" ()) ")" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace AK"
441
19
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 27.95, "nodes": 237, "errors": 0, "source_hash": "ae656f6d1b3dfcdd9dc1cf7612825fe20693985ce140f227d61c7b960fb5d8e6", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <AK/String.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<AK/String.h>", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 22}}, {"id": 6, "type": "function_definition", "text": "namespace Web {\n\nclass Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n};\n\n}", "parent": null, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 8, "type": "identifier", "text": "Web", "parent": 6, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 13}}, {"id": 9, "type": "function_definition", "text": "class Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n}", "parent": 6, "children": [10], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 10, "type": "identifier", "text": "Origin", "parent": 9, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 12}}, {"id": 11, "type": "labeled_statement", "text": "public:\n Origin() { }", "parent": 9, "children": [12], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 16}}, {"id": 12, "type": "ERROR", "text": "Origin()", "parent": 11, "children": [13], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 13, "type": "call_expression", "text": "Origin()", "parent": 12, "children": [14, 15], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 14, "type": "identifier", "text": "Origin", "parent": 13, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 15, "type": "argument_list", "text": "()", "parent": 13, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 12}}, {"id": 16, "type": "comma_expression", "text": "Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)", "parent": 9, "children": [17, 23], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 18, "column": 22}}, {"id": 17, "type": "binary_expression", "text": "Origin(const String& protocol", "parent": 16, "children": [18, 19, 22], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 33}}, {"id": 18, "type": "identifier", "text": "Origin", "parent": 17, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 19, "type": "ERROR", "text": "(const String", "parent": 17, "children": [20], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 23}}, {"id": 20, "type": "type_descriptor", "text": "const String", "parent": 19, "children": [21], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 23}}, {"id": 21, "type": "type_identifier", "text": "String", "parent": 20, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 23}}, {"id": 22, "type": "identifier", "text": "protocol", "parent": 17, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 33}}, {"id": 23, "type": "comma_expression", "text": "String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)", "parent": 16, "children": [24, 27, 30], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 18, "column": 22}}, {"id": 24, "type": "binary_expression", "text": "String& host", "parent": 23, "children": [25, 26], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 53}}, {"id": 25, "type": "identifier", "text": "String", "parent": 24, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 47}}, {"id": 26, "type": "identifier", "text": "host", "parent": 24, "children": [], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 53}}, {"id": 27, "type": "ERROR", "text": "u16 port)\n :", "parent": 23, "children": [28, 29], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 16, "column": 9}}, {"id": 28, "type": "identifier", "text": "u16", "parent": 27, "children": [], "start_point": {"row": 15, "column": 55}, "end_point": {"row": 15, "column": 58}}, {"id": 29, "type": "identifier", "text": "port", "parent": 27, "children": [], "start_point": {"row": 15, "column": 59}, "end_point": {"row": 15, "column": 63}}, {"id": 30, "type": "comma_expression", "text": "m_protocol(protocol)\n , m_host(host)\n , m_port(port)", "parent": 23, "children": [31, 35], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 18, "column": 22}}, {"id": 31, "type": "call_expression", "text": "m_protocol(protocol)", "parent": 30, "children": [32, 33], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 30}}, {"id": 32, "type": "identifier", "text": "m_protocol", "parent": 31, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 20}}, {"id": 33, "type": "argument_list", "text": "(protocol)", "parent": 31, "children": [34], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 30}}, {"id": 34, "type": "identifier", "text": "protocol", "parent": 33, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 29}}, {"id": 35, "type": "comma_expression", "text": "m_host(host)\n , m_port(port)", "parent": 30, "children": [36, 40], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 18, "column": 22}}, {"id": 36, "type": "call_expression", "text": "m_host(host)", "parent": 35, "children": [37, 38], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 22}}, {"id": 37, "type": "identifier", "text": "m_host", "parent": 36, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 16}}, {"id": 38, "type": "argument_list", "text": "(host)", "parent": 36, "children": [39], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 22}}, {"id": 39, "type": "identifier", "text": "host", "parent": 38, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 21}}, {"id": 40, "type": "call_expression", "text": "m_port(port)", "parent": 35, "children": [41, 42], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 22}}, {"id": 41, "type": "identifier", "text": "m_port", "parent": 40, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 16}}, {"id": 42, "type": "argument_list", "text": "(port)", "parent": 40, "children": [43], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 22}}, {"id": 43, "type": "identifier", "text": "port", "parent": 42, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 21}}, {"id": 44, "type": "ERROR", "text": "bool is_null() const", "parent": 9, "children": [45, 46], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 24}}, {"id": 45, "type": "primitive_type", "text": "bool", "parent": 44, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 46, "type": "function_declarator", "text": "is_null()", "parent": 44, "children": [47, 48], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 18}}, {"id": 47, "type": "identifier", "text": "is_null", "parent": 46, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 16}}, {"id": 48, "type": "parameter_list", "text": "()", "parent": 46, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 18}}, {"id": 49, "type": "return_statement", "text": "return m_protocol.is_null() && m_host.is_null() && !m_port;", "parent": 9, "children": [50], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 86}}, {"id": 50, "type": "binary_expression", "text": "m_protocol.is_null() && m_host.is_null() && !m_port", "parent": 49, "children": [51, 63, 64], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 85}}, {"id": 51, "type": "binary_expression", "text": "m_protocol.is_null() && m_host.is_null()", "parent": 50, "children": [52, 57, 58], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 74}}, {"id": 52, "type": "call_expression", "text": "m_protocol.is_null()", "parent": 51, "children": [53, 56], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 54}}, {"id": 53, "type": "field_expression", "text": "m_protocol.is_null", "parent": 52, "children": [54, 55], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 52}}, {"id": 54, "type": "identifier", "text": "m_protocol", "parent": 53, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 44}}, {"id": 55, "type": "field_identifier", "text": "is_null", "parent": 53, "children": [], "start_point": {"row": 22, "column": 45}, "end_point": {"row": 22, "column": 52}}, {"id": 56, "type": "argument_list", "text": "()", "parent": 52, "children": [], "start_point": {"row": 22, "column": 52}, "end_point": {"row": 22, "column": 54}}, {"id": 57, "type": "&&", "text": "&&", "parent": 51, "children": [], "start_point": {"row": 22, "column": 55}, "end_point": {"row": 22, "column": 57}}, {"id": 58, "type": "call_expression", "text": "m_host.is_null()", "parent": 51, "children": [59, 62], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 74}}, {"id": 59, "type": "field_expression", "text": "m_host.is_null", "parent": 58, "children": [60, 61], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 72}}, {"id": 60, "type": "identifier", "text": "m_host", "parent": 59, "children": [], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 64}}, {"id": 61, "type": "field_identifier", "text": "is_null", "parent": 59, "children": [], "start_point": {"row": 22, "column": 65}, "end_point": {"row": 22, "column": 72}}, {"id": 62, "type": "argument_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 22, "column": 72}, "end_point": {"row": 22, "column": 74}}, {"id": 63, "type": "&&", "text": "&&", "parent": 50, "children": [], "start_point": {"row": 22, "column": 75}, "end_point": {"row": 22, "column": 77}}, {"id": 64, "type": "unary_expression", "text": "!m_port", "parent": 50, "children": [65, 66], "start_point": {"row": 22, "column": 78}, "end_point": {"row": 22, "column": 85}}, {"id": 65, "type": "!", "text": "!", "parent": 64, "children": [], "start_point": {"row": 22, "column": 78}, "end_point": {"row": 22, "column": 79}}, {"id": 66, "type": "identifier", "text": "m_port", "parent": 64, "children": [], "start_point": {"row": 22, "column": 79}, "end_point": {"row": 22, "column": 85}}, {"id": 67, "type": "ERROR", "text": "const String& protocol() const", "parent": 9, "children": [68, 69], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 34}}, {"id": 68, "type": "type_identifier", "text": "String", "parent": 67, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 16}}, {"id": 69, "type": "function_declarator", "text": "protocol()", "parent": 67, "children": [70, 71], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 28}}, {"id": 70, "type": "identifier", "text": "protocol", "parent": 69, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 26}}, {"id": 71, "type": "parameter_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 28}}, {"id": 72, "type": "return_statement", "text": "return m_protocol;", "parent": 9, "children": [73], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 55}}, {"id": 73, "type": "identifier", "text": "m_protocol", "parent": 72, "children": [], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 54}}, {"id": 74, "type": "ERROR", "text": "const String& host() const", "parent": 9, "children": [75, 76], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 30}}, {"id": 75, "type": "type_identifier", "text": "String", "parent": 74, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 16}}, {"id": 76, "type": "function_declarator", "text": "host()", "parent": 74, "children": [77, 78], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 24}}, {"id": 77, "type": "identifier", "text": "host", "parent": 76, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 22}}, {"id": 78, "type": "parameter_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 24}}, {"id": 79, "type": "return_statement", "text": "return m_host;", "parent": 9, "children": [80], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 47}}, {"id": 80, "type": "identifier", "text": "m_host", "parent": 79, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 46}}, {"id": 81, "type": "ERROR", "text": "u16 port() const", "parent": 9, "children": [82, 83], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 20}}, {"id": 82, "type": "type_identifier", "text": "u16", "parent": 81, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 83, "type": "function_declarator", "text": "port()", "parent": 81, "children": [84, 85], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 14}}, {"id": 84, "type": "identifier", "text": "port", "parent": 83, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 12}}, {"id": 85, "type": "parameter_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 14}}, {"id": 86, "type": "return_statement", "text": "return m_port;", "parent": 9, "children": [87], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 37}}, {"id": 87, "type": "identifier", "text": "m_port", "parent": 86, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 36}}, {"id": 88, "type": "function_definition", "text": "bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }", "parent": 9, "children": [89, 90], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 33, "column": 5}}, {"id": 89, "type": "primitive_type", "text": "bool", "parent": 88, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 90, "type": "function_declarator", "text": "is_same(const Origin& other) const", "parent": 88, "children": [91, 92], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 43}}, {"id": 91, "type": "identifier", "text": "is_same", "parent": 90, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 16}}, {"id": 92, "type": "parameter_list", "text": "(const Origin& other)", "parent": 90, "children": [93], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 37}}, {"id": 93, "type": "parameter_declaration", "text": "const Origin& other", "parent": 92, "children": [94, 95], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 36}}, {"id": 94, "type": "type_identifier", "text": "Origin", "parent": 93, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 29}}, {"id": 95, "type": "identifier", "text": "other", "parent": 93, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 36}}, {"id": 96, "type": "return_statement", "text": "return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();", "parent": 88, "children": [97], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 32, "column": 38}}, {"id": 97, "type": "binary_expression", "text": "protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port()", "parent": 96, "children": [98, 120, 121], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 32, "column": 37}}, {"id": 98, "type": "binary_expression", "text": "protocol() == other.protocol()\n && host() == other.host()", "parent": 97, "children": [99, 109, 110], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 31, "column": 37}}, {"id": 99, "type": "binary_expression", "text": "protocol() == other.protocol()", "parent": 98, "children": [100, 103, 104], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 45}}, {"id": 100, "type": "call_expression", "text": "protocol()", "parent": 99, "children": [101, 102], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 25}}, {"id": 101, "type": "identifier", "text": "protocol", "parent": 100, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 23}}, {"id": 102, "type": "argument_list", "text": "()", "parent": 100, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 25}}, {"id": 103, "type": "==", "text": "==", "parent": 99, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 28}}, {"id": 104, "type": "call_expression", "text": "other.protocol()", "parent": 99, "children": [105, 108], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 45}}, {"id": 105, "type": "field_expression", "text": "other.protocol", "parent": 104, "children": [106, 107], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 43}}, {"id": 106, "type": "identifier", "text": "other", "parent": 105, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 34}}, {"id": 107, "type": "field_identifier", "text": "protocol", "parent": 105, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 43}}, {"id": 108, "type": "argument_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 45}}, {"id": 109, "type": "&&", "text": "&&", "parent": 98, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 14}}, {"id": 110, "type": "binary_expression", "text": "host() == other.host()", "parent": 98, "children": [111, 114, 115], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 37}}, {"id": 111, "type": "call_expression", "text": "host()", "parent": 110, "children": [112, 113], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 21}}, {"id": 112, "type": "identifier", "text": "host", "parent": 111, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 19}}, {"id": 113, "type": "argument_list", "text": "()", "parent": 111, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 21}}, {"id": 114, "type": "==", "text": "==", "parent": 110, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 24}}, {"id": 115, "type": "call_expression", "text": "other.host()", "parent": 110, "children": [116, 119], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 37}}, {"id": 116, "type": "field_expression", "text": "other.host", "parent": 115, "children": [117, 118], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 35}}, {"id": 117, "type": "identifier", "text": "other", "parent": 116, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 30}}, {"id": 118, "type": "field_identifier", "text": "host", "parent": 116, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 35}}, {"id": 119, "type": "argument_list", "text": "()", "parent": 115, "children": [], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 37}}, {"id": 120, "type": "&&", "text": "&&", "parent": 97, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 14}}, {"id": 121, "type": "binary_expression", "text": "port() == other.port()", "parent": 97, "children": [122, 125, 126], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 37}}, {"id": 122, "type": "call_expression", "text": "port()", "parent": 121, "children": [123, 124], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 21}}, {"id": 123, "type": "identifier", "text": "port", "parent": 122, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 19}}, {"id": 124, "type": "argument_list", "text": "()", "parent": 122, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 21}}, {"id": 125, "type": "==", "text": "==", "parent": 121, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 24}}, {"id": 126, "type": "call_expression", "text": "other.port()", "parent": 121, "children": [127, 130], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 37}}, {"id": 127, "type": "field_expression", "text": "other.port", "parent": 126, "children": [128, 129], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 35}}, {"id": 128, "type": "identifier", "text": "other", "parent": 127, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 30}}, {"id": 129, "type": "field_identifier", "text": "port", "parent": 127, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 35}}, {"id": 130, "type": "argument_list", "text": "()", "parent": 126, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 37}}, {"id": 131, "type": "function_definition", "text": "bool operator==(Origin const& other) const { return is_same(other); }", "parent": 9, "children": [132, 133, 134], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 73}}, {"id": 132, "type": "primitive_type", "text": "bool", "parent": 131, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 8}}, {"id": 133, "type": "identifier", "text": "operator", "parent": 131, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 17}}, {"id": 134, "type": "ERROR", "text": "==(Origin const& other) const", "parent": 131, "children": [135, 136, 137], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 46}}, {"id": 135, "type": "==", "text": "==", "parent": 134, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 19}}, {"id": 136, "type": "identifier", "text": "Origin", "parent": 134, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 26}}, {"id": 137, "type": "identifier", "text": "other", "parent": 134, "children": [], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 39}}, {"id": 138, "type": "return_statement", "text": "return is_same(other);", "parent": 131, "children": [139], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 71}}, {"id": 139, "type": "call_expression", "text": "is_same(other)", "parent": 138, "children": [140, 141], "start_point": {"row": 35, "column": 56}, "end_point": {"row": 35, "column": 70}}, {"id": 140, "type": "identifier", "text": "is_same", "parent": 139, "children": [], "start_point": {"row": 35, "column": 56}, "end_point": {"row": 35, "column": 63}}, {"id": 141, "type": "argument_list", "text": "(other)", "parent": 139, "children": [142], "start_point": {"row": 35, "column": 63}, "end_point": {"row": 35, "column": 70}}, {"id": 142, "type": "identifier", "text": "other", "parent": 141, "children": [], "start_point": {"row": 35, "column": 64}, "end_point": {"row": 35, "column": 69}}, {"id": 143, "type": "function_definition", "text": "bool operator!=(Origin const& other) const { return !is_same(other); }", "parent": 9, "children": [144, 145, 146], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 74}}, {"id": 144, "type": "primitive_type", "text": "bool", "parent": 143, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 145, "type": "identifier", "text": "operator", "parent": 143, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 17}}, {"id": 146, "type": "ERROR", "text": "!=(Origin const& other) const", "parent": 143, "children": [147, 148, 149], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 46}}, {"id": 147, "type": "!=", "text": "!=", "parent": 146, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 19}}, {"id": 148, "type": "identifier", "text": "Origin", "parent": 146, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 26}}, {"id": 149, "type": "identifier", "text": "other", "parent": 146, "children": [], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 39}}, {"id": 150, "type": "return_statement", "text": "return !is_same(other);", "parent": 143, "children": [151], "start_point": {"row": 36, "column": 49}, "end_point": {"row": 36, "column": 72}}, {"id": 151, "type": "unary_expression", "text": "!is_same(other)", "parent": 150, "children": [152, 153], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 71}}, {"id": 152, "type": "!", "text": "!", "parent": 151, "children": [], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 57}}, {"id": 153, "type": "call_expression", "text": "is_same(other)", "parent": 151, "children": [154, 155], "start_point": {"row": 36, "column": 57}, "end_point": {"row": 36, "column": 71}}, {"id": 154, "type": "identifier", "text": "is_same", "parent": 153, "children": [], "start_point": {"row": 36, "column": 57}, "end_point": {"row": 36, "column": 64}}, {"id": 155, "type": "argument_list", "text": "(other)", "parent": 153, "children": [156], "start_point": {"row": 36, "column": 64}, "end_point": {"row": 36, "column": 71}}, {"id": 156, "type": "identifier", "text": "other", "parent": 155, "children": [], "start_point": {"row": 36, "column": 65}, "end_point": {"row": 36, "column": 70}}, {"id": 157, "type": "labeled_statement", "text": "private:\n String m_protocol;", "parent": 9, "children": [158], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 22}}, {"id": 158, "type": "declaration", "text": "String m_protocol;", "parent": 157, "children": [159, 160], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 22}}, {"id": 159, "type": "type_identifier", "text": "String", "parent": 158, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 160, "type": "identifier", "text": "m_protocol", "parent": 158, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 21}}, {"id": 161, "type": "declaration", "text": "String m_host;", "parent": 9, "children": [162, 163], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 18}}, {"id": 162, "type": "type_identifier", "text": "String", "parent": 161, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 10}}, {"id": 163, "type": "identifier", "text": "m_host", "parent": 161, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 17}}, {"id": 164, "type": "function_definition", "text": "u16 m_port { 0 }", "parent": 9, "children": [165, 166], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 20}}, {"id": 165, "type": "type_identifier", "text": "u16", "parent": 164, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 166, "type": "identifier", "text": "m_port", "parent": 164, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 14}}, {"id": 167, "type": "ERROR", "text": "0", "parent": 164, "children": [168], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 18}}, {"id": 168, "type": "number_literal", "text": "0", "parent": 167, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 18}}, {"id": 169, "type": "function_definition", "text": "namespace AK {\ntemplate<>\nstruct Traits<Web::Origin> : public GenericTraits<Web::Origin> {\n static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }\n};\n}", "parent": null, "children": [170, 171], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 170, "type": "type_identifier", "text": "namespace", "parent": 169, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 9}}, {"id": 171, "type": "identifier", "text": "AK", "parent": 169, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 12}}, {"id": 172, "type": "ERROR", "text": "template<>", "parent": 169, "children": [173, 174, 175], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 10}}, {"id": 173, "type": "identifier", "text": "template", "parent": 172, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 174, "type": "<", "text": "<", "parent": 172, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 175, "type": ">", "text": ">", "parent": 172, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 10}}, {"id": 176, "type": "declaration", "text": "struct Traits<Web::Origin> : public", "parent": 169, "children": [177, 180], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 35}}, {"id": 177, "type": "struct_specifier", "text": "struct Traits", "parent": 176, "children": [178, 179], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 13}}, {"id": 178, "type": "struct", "text": "struct", "parent": 177, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 179, "type": "type_identifier", "text": "Traits", "parent": 177, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 13}}, {"id": 180, "type": "ERROR", "text": "<Web::Origin> :", "parent": 176, "children": [181, 182, 183, 184], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 28}}, {"id": 181, "type": "<", "text": "<", "parent": 180, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 14}}, {"id": 182, "type": "identifier", "text": "Web", "parent": 180, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 17}}, {"id": 183, "type": "identifier", "text": "Origin", "parent": 180, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 25}}, {"id": 184, "type": ">", "text": ">", "parent": 180, "children": [], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 48, "column": 26}}, {"id": 185, "type": "ERROR", "text": "GenericTraits<Web::Origin>", "parent": 169, "children": [186, 190, 192], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 62}}, {"id": 186, "type": "binary_expression", "text": "GenericTraits<Web", "parent": 185, "children": [187, 188, 189], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 53}}, {"id": 187, "type": "identifier", "text": "GenericTraits", "parent": 186, "children": [], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 49}}, {"id": 188, "type": "<", "text": "<", "parent": 186, "children": [], "start_point": {"row": 48, "column": 49}, "end_point": {"row": 48, "column": 50}}, {"id": 189, "type": "identifier", "text": "Web", "parent": 186, "children": [], "start_point": {"row": 48, "column": 50}, "end_point": {"row": 48, "column": 53}}, {"id": 190, "type": "ERROR", "text": "::Origin", "parent": 185, "children": [191], "start_point": {"row": 48, "column": 53}, "end_point": {"row": 48, "column": 61}}, {"id": 191, "type": "identifier", "text": "Origin", "parent": 190, "children": [], "start_point": {"row": 48, "column": 55}, "end_point": {"row": 48, "column": 61}}, {"id": 192, "type": ">", "text": ">", "parent": 185, "children": [], "start_point": {"row": 48, "column": 61}, "end_point": {"row": 48, "column": 62}}, {"id": 193, "type": "function_definition", "text": "static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }", "parent": 169, "children": [194, 196], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 52, "column": 5}}, {"id": 194, "type": "sized_type_specifier", "text": "unsigned", "parent": 193, "children": [195], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 19}}, {"id": 195, "type": "unsigned", "text": "unsigned", "parent": 194, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 19}}, {"id": 196, "type": "function_declarator", "text": "hash(Web::Origin const& origin)", "parent": 193, "children": [197, 198], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 51}}, {"id": 197, "type": "identifier", "text": "hash", "parent": 196, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 24}}, {"id": 198, "type": "parameter_list", "text": "(Web::Origin const& origin)", "parent": 196, "children": [199], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 51}}, {"id": 199, "type": "parameter_declaration", "text": "Web::Origin const& origin", "parent": 198, "children": [200, 201, 203], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 50}}, {"id": 200, "type": "type_identifier", "text": "Web", "parent": 199, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 28}}, {"id": 201, "type": "ERROR", "text": "::Origin const&", "parent": 199, "children": [202], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 43}}, {"id": 202, "type": "identifier", "text": "Origin", "parent": 201, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 36}}, {"id": 203, "type": "identifier", "text": "origin", "parent": 199, "children": [], "start_point": {"row": 49, "column": 44}, "end_point": {"row": 49, "column": 50}}, {"id": 204, "type": "return_statement", "text": "return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));", "parent": 193, "children": [205], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 117}}, {"id": 205, "type": "call_expression", "text": "pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()))", "parent": 204, "children": [206, 207], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 116}}, {"id": 206, "type": "identifier", "text": "pair_int_hash", "parent": 205, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 28}}, {"id": 207, "type": "argument_list", "text": "(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()))", "parent": 205, "children": [208, 217], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 116}}, {"id": 208, "type": "call_expression", "text": "origin.protocol().hash()", "parent": 207, "children": [209, 216], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 53}}, {"id": 209, "type": "field_expression", "text": "origin.protocol().hash", "parent": 208, "children": [210, 215], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 51}}, {"id": 210, "type": "call_expression", "text": "origin.protocol()", "parent": 209, "children": [211, 214], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 46}}, {"id": 211, "type": "field_expression", "text": "origin.protocol", "parent": 210, "children": [212, 213], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 44}}, {"id": 212, "type": "identifier", "text": "origin", "parent": 211, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 35}}, {"id": 213, "type": "field_identifier", "text": "protocol", "parent": 211, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 44}}, {"id": 214, "type": "argument_list", "text": "()", "parent": 210, "children": [], "start_point": {"row": 51, "column": 44}, "end_point": {"row": 51, "column": 46}}, {"id": 215, "type": "field_identifier", "text": "hash", "parent": 209, "children": [], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 51, "column": 51}}, {"id": 216, "type": "argument_list", "text": "()", "parent": 208, "children": [], "start_point": {"row": 51, "column": 51}, "end_point": {"row": 51, "column": 53}}, {"id": 217, "type": "call_expression", "text": "pair_int_hash(int_hash(origin.port()), origin.host().hash())", "parent": 207, "children": [218, 219], "start_point": {"row": 51, "column": 55}, "end_point": {"row": 51, "column": 115}}, {"id": 218, "type": "identifier", "text": "pair_int_hash", "parent": 217, "children": [], "start_point": {"row": 51, "column": 55}, "end_point": {"row": 51, "column": 68}}, {"id": 219, "type": "argument_list", "text": "(int_hash(origin.port()), origin.host().hash())", "parent": 217, "children": [220, 228], "start_point": {"row": 51, "column": 68}, "end_point": {"row": 51, "column": 115}}, {"id": 220, "type": "call_expression", "text": "int_hash(origin.port())", "parent": 219, "children": [221, 222], "start_point": {"row": 51, "column": 69}, "end_point": {"row": 51, "column": 92}}, {"id": 221, "type": "identifier", "text": "int_hash", "parent": 220, "children": [], "start_point": {"row": 51, "column": 69}, "end_point": {"row": 51, "column": 77}}, {"id": 222, "type": "argument_list", "text": "(origin.port())", "parent": 220, "children": [223], "start_point": {"row": 51, "column": 77}, "end_point": {"row": 51, "column": 92}}, {"id": 223, "type": "call_expression", "text": "origin.port()", "parent": 222, "children": [224, 227], "start_point": {"row": 51, "column": 78}, "end_point": {"row": 51, "column": 91}}, {"id": 224, "type": "field_expression", "text": "origin.port", "parent": 223, "children": [225, 226], "start_point": {"row": 51, "column": 78}, "end_point": {"row": 51, "column": 89}}, {"id": 225, "type": "identifier", "text": "origin", "parent": 224, "children": [], "start_point": {"row": 51, "column": 78}, "end_point": {"row": 51, "column": 84}}, {"id": 226, "type": "field_identifier", "text": "port", "parent": 224, "children": [], "start_point": {"row": 51, "column": 85}, "end_point": {"row": 51, "column": 89}}, {"id": 227, "type": "argument_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 51, "column": 89}, "end_point": {"row": 51, "column": 91}}, {"id": 228, "type": "call_expression", "text": "origin.host().hash()", "parent": 219, "children": [229, 236], "start_point": {"row": 51, "column": 94}, "end_point": {"row": 51, "column": 114}}, {"id": 229, "type": "field_expression", "text": "origin.host().hash", "parent": 228, "children": [230, 235], "start_point": {"row": 51, "column": 94}, "end_point": {"row": 51, "column": 112}}, {"id": 230, "type": "call_expression", "text": "origin.host()", "parent": 229, "children": [231, 234], "start_point": {"row": 51, "column": 94}, "end_point": {"row": 51, "column": 107}}, {"id": 231, "type": "field_expression", "text": "origin.host", "parent": 230, "children": [232, 233], "start_point": {"row": 51, "column": 94}, "end_point": {"row": 51, "column": 105}}, {"id": 232, "type": "identifier", "text": "origin", "parent": 231, "children": [], "start_point": {"row": 51, "column": 94}, "end_point": {"row": 51, "column": 100}}, {"id": 233, "type": "field_identifier", "text": "host", "parent": 231, "children": [], "start_point": {"row": 51, "column": 101}, "end_point": {"row": 51, "column": 105}}, {"id": 234, "type": "argument_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 51, "column": 105}, "end_point": {"row": 51, "column": 107}}, {"id": 235, "type": "field_identifier", "text": "hash", "parent": 229, "children": [], "start_point": {"row": 51, "column": 108}, "end_point": {"row": 51, "column": 112}}, {"id": 236, "type": "argument_list", "text": "()", "parent": 228, "children": [], "start_point": {"row": 51, "column": 112}, "end_point": {"row": 51, "column": 114}}]}, "node_categories": {"declarations": {"functions": [6, 9, 46, 69, 76, 83, 88, 90, 131, 143, 164, 169, 193, 196], "variables": [93, 158, 161, 176, 199], "classes": [177, 178], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [13, 16, 17, 23, 24, 30, 31, 35, 36, 40, 50, 51, 52, 53, 58, 59, 64, 97, 98, 99, 100, 104, 105, 110, 111, 115, 116, 121, 122, 126, 127, 139, 151, 153, 186, 205, 208, 209, 210, 211, 217, 220, 223, 224, 228, 229, 230, 231], "assignments": [], "loops": [], "conditionals": [7, 8, 10, 14, 18, 21, 22, 25, 26, 28, 29, 32, 34, 37, 39, 41, 43, 47, 54, 55, 60, 61, 66, 68, 70, 73, 75, 77, 80, 82, 84, 87, 91, 94, 95, 101, 106, 107, 112, 117, 118, 123, 128, 129, 133, 136, 137, 140, 142, 145, 148, 149, 154, 156, 159, 160, 162, 163, 165, 166, 170, 171, 173, 179, 182, 183, 187, 189, 191, 194, 197, 200, 202, 203, 206, 212, 213, 215, 218, 221, 225, 226, 232, 233, 235], "returns": [49, 72, 79, 86, 96, 138, 150, 204], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 168], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "Origin", "text_snippet": "namespace Web {\n\nclass Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const St"}, {"node_id": 9, "universal_type": "function", "name": "Origin", "text_snippet": "class Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 p"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "is_null()"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "protocol()"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "host()"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "port()"}, {"node_id": 88, "universal_type": "function", "name": "is_same", "text_snippet": "bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n "}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "is_same(const Origin& other) const"}, {"node_id": 131, "universal_type": "function", "name": "operator==", "text_snippet": "bool operator==(Origin const& other) const { return is_same(other); }"}, {"node_id": 143, "universal_type": "function", "name": "operator!=", "text_snippet": "bool operator!=(Origin const& other) const { return !is_same(other); }"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "u16 m_port { 0 }"}, {"node_id": 169, "universal_type": "function", "name": "Traits<Web::Origin>", "text_snippet": "namespace AK {\ntemplate<>\nstruct Traits<Web::Origin> : public GenericTraits<Web::Origin> {\n stati"}, {"node_id": 193, "universal_type": "function", "name": "unknown", "text_snippet": "static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol()"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "hash(Web::Origin const& origin)"}], "class_declarations": [{"node_id": 177, "universal_type": "class", "name": "Traits", "text_snippet": "struct Traits"}, {"node_id": 178, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <AK/String.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2020, <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#pragma once\n\n#include <AK/String.h>\n\nnamespace Web {\n\nclass Origin {\npublic:\n Origin() { }\n Origin(const String& protocol, const String& host, u16 port)\n : m_protocol(protocol)\n , m_host(host)\n , m_port(port)\n {\n }\n\n bool is_null() const { return m_protocol.is_null() && m_host.is_null() && !m_port; }\n\n const String& protocol() const { return m_protocol; }\n const String& host() const { return m_host; }\n u16 port() const { return m_port; }\n\n bool is_same(const Origin& other) const\n {\n return protocol() == other.protocol()\n && host() == other.host()\n && port() == other.port();\n }\n\n bool operator==(Origin const& other) const { return is_same(other); }\n bool operator!=(Origin const& other) const { return !is_same(other); }\n\nprivate:\n String m_protocol;\n String m_host;\n u16 m_port { 0 };\n};\n\n}\n\nnamespace AK {\ntemplate<>\nstruct Traits<Web::Origin> : public GenericTraits<Web::Origin> {\n static unsigned hash(Web::Origin const& origin)\n {\n return pair_int_hash(origin.protocol().hash(), pair_int_hash(int_hash(origin.port()), origin.host().hash()));\n }\n};\n} // namespace AK\n"}
80,487
c
#pragma once #include "LayerDx11.h" class ResizeLayerDx11 : public ResizeLayer,public LayerDx11 { public: ResizeLayerDx11(); ~ResizeLayerDx11(); protected: virtual void onParametChange(ResizeParamet oldT) override; virtual bool initHlsl() override; virtual void onInitLayer() override; };
23.5
12
(translation_unit) "#pragma once\n#include "LayerDx11.h"\n\nclass ResizeLayerDx11 : public ResizeLayer,public LayerDx11\n{\npublic:\n ResizeLayerDx11();\n ~ResizeLayerDx11();\nprotected:\n virtual void onParametChange(ResizeParamet oldT) override;\n virtual bool initHlsl() override;\n virtual void onInitLayer() override;\n};\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "LayerDx11.h"\n" (#include) "#include" (string_literal) ""LayerDx11.h"" (") """ (string_content) "LayerDx11.h" (") """ (ERROR) "class ResizeLayerDx11 : public ResizeLayer,public LayerDx11" (type_identifier) "class" (identifier) "ResizeLayerDx11" (ERROR) ": public ResizeLayer" (:) ":" (identifier) "public" (identifier) "ResizeLayer" (,) "," (identifier) "public" (identifier) "LayerDx11" (compound_statement) "{\npublic:\n ResizeLayerDx11();\n ~ResizeLayerDx11();\nprotected:\n virtual void onParametChange(ResizeParamet oldT) override;\n virtual bool initHlsl() override;\n virtual void onInitLayer() override;\n}" ({) "{" (labeled_statement) "public:\n ResizeLayerDx11();" (statement_identifier) "public" (:) ":" (expression_statement) "ResizeLayerDx11();" (call_expression) "ResizeLayerDx11()" (identifier) "ResizeLayerDx11" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~ResizeLayerDx11();" (unary_expression) "~ResizeLayerDx11()" (~) "~" (call_expression) "ResizeLayerDx11()" (identifier) "ResizeLayerDx11" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "protected:\n virtual void onParametChange(ResizeParamet oldT) override;" (statement_identifier) "protected" (:) ":" (ERROR) "virtual void onParametChange(ResizeParamet oldT) override" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "onParametChange(ResizeParamet oldT) override" (identifier) "onParametChange" (parameter_list) "(ResizeParamet oldT)" (() "(" (parameter_declaration) "ResizeParamet oldT" (type_identifier) "ResizeParamet" (identifier) "oldT" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "virtual bool initHlsl() override;\n virtual void onInitLayer() override" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "initHlsl()" (identifier) "initHlsl" (parameter_list) "()" (() "(" ()) ")" (declaration) "override;" (type_identifier) "override" (identifier) "" (;) ";" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "onInitLayer() override" (identifier) "onInitLayer" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
86
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 23.5, "nodes": 49, "errors": 0, "source_hash": "1be1b64d06355e598930954f237d06905fe086cb87d3f723001a308aac08867c", "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 \"LayerDx11.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": "\"LayerDx11.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 22}}, {"id": 6, "type": "ERROR", "text": "class ResizeLayerDx11 : public ResizeLayer,public LayerDx11", "parent": null, "children": [7, 8, 10], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 59}}, {"id": 7, "type": "identifier", "text": "ResizeLayerDx11", "parent": 6, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 21}}, {"id": 8, "type": "ERROR", "text": ": public ResizeLayer", "parent": 6, "children": [9], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 42}}, {"id": 9, "type": "identifier", "text": "ResizeLayer", "parent": 8, "children": [], "start_point": {"row": 3, "column": 31}, "end_point": {"row": 3, "column": 42}}, {"id": 10, "type": "identifier", "text": "LayerDx11", "parent": 6, "children": [], "start_point": {"row": 3, "column": 50}, "end_point": {"row": 3, "column": 59}}, {"id": 11, "type": "labeled_statement", "text": "public:\n\tResizeLayerDx11();", "parent": null, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 19}}, {"id": 12, "type": "call_expression", "text": "ResizeLayerDx11()", "parent": 11, "children": [13, 14], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 18}}, {"id": 13, "type": "identifier", "text": "ResizeLayerDx11", "parent": 12, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 16}}, {"id": 14, "type": "argument_list", "text": "()", "parent": 12, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 18}}, {"id": 15, "type": "unary_expression", "text": "~ResizeLayerDx11()", "parent": null, "children": [16, 17], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 19}}, {"id": 16, "type": "~", "text": "~", "parent": 15, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 2}}, {"id": 17, "type": "call_expression", "text": "ResizeLayerDx11()", "parent": 15, "children": [18, 19], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 19}}, {"id": 18, "type": "identifier", "text": "ResizeLayerDx11", "parent": 17, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 17}}, {"id": 19, "type": "argument_list", "text": "()", "parent": 17, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 19}}, {"id": 20, "type": "labeled_statement", "text": "protected:\n\tvirtual void onParametChange(ResizeParamet oldT) override;", "parent": null, "children": [21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 59}}, {"id": 21, "type": "ERROR", "text": "virtual void onParametChange(ResizeParamet oldT) override", "parent": 20, "children": [22, 23, 25], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 58}}, {"id": 22, "type": "type_identifier", "text": "virtual", "parent": 21, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 8}}, {"id": 23, "type": "ERROR", "text": "void", "parent": 21, "children": [24], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 13}}, {"id": 24, "type": "identifier", "text": "void", "parent": 23, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 13}}, {"id": 25, "type": "function_declarator", "text": "onParametChange(ResizeParamet oldT) override", "parent": 21, "children": [26, 27, 31], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 58}}, {"id": 26, "type": "identifier", "text": "onParametChange", "parent": 25, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 29}}, {"id": 27, "type": "parameter_list", "text": "(ResizeParamet oldT)", "parent": 25, "children": [28], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 49}}, {"id": 28, "type": "parameter_declaration", "text": "ResizeParamet oldT", "parent": 27, "children": [29, 30], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 48}}, {"id": 29, "type": "type_identifier", "text": "ResizeParamet", "parent": 28, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 43}}, {"id": 30, "type": "identifier", "text": "oldT", "parent": 28, "children": [], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 48}}, {"id": 31, "type": "identifier", "text": "override", "parent": 25, "children": [], "start_point": {"row": 9, "column": 50}, "end_point": {"row": 9, "column": 58}}, {"id": 32, "type": "ERROR", "text": "virtual bool initHlsl() override;\n\tvirtual void onInitLayer() override", "parent": null, "children": [33, 34, 36, 39, 42, 43, 45], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 11, "column": 36}}, {"id": 33, "type": "type_identifier", "text": "virtual", "parent": 32, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 8}}, {"id": 34, "type": "ERROR", "text": "bool", "parent": 32, "children": [35], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 13}}, {"id": 35, "type": "identifier", "text": "bool", "parent": 34, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 13}}, {"id": 36, "type": "function_declarator", "text": "initHlsl()", "parent": 32, "children": [37, 38], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 24}}, {"id": 37, "type": "identifier", "text": "initHlsl", "parent": 36, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 22}}, {"id": 38, "type": "parameter_list", "text": "()", "parent": 36, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 24}}, {"id": 39, "type": "declaration", "text": "override;", "parent": 32, "children": [40, 41], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 34}}, {"id": 40, "type": "type_identifier", "text": "override", "parent": 39, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 33}}, {"id": 41, "type": "identifier", "text": "", "parent": 39, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 33}}, {"id": 42, "type": "type_identifier", "text": "virtual", "parent": 32, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 8}}, {"id": 43, "type": "ERROR", "text": "void", "parent": 32, "children": [44], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 13}}, {"id": 44, "type": "identifier", "text": "void", "parent": 43, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 13}}, {"id": 45, "type": "function_declarator", "text": "onInitLayer() override", "parent": 32, "children": [46, 47, 48], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 36}}, {"id": 46, "type": "identifier", "text": "onInitLayer", "parent": 45, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 25}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 27}}, {"id": 48, "type": "identifier", "text": "override", "parent": 45, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 36}}]}, "node_categories": {"declarations": {"functions": [25, 36, 45], "variables": [28, 39], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [12, 15, 17], "assignments": [], "loops": [], "conditionals": [7, 9, 10, 13, 18, 22, 24, 26, 29, 30, 31, 33, 35, 37, 40, 41, 42, 44, 46, 48], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "onParametChange(ResizeParamet oldT) override"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "initHlsl()"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "onInitLayer() override"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"LayerDx11.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"LayerDx11.h\"\n\nclass ResizeLayerDx11 : public ResizeLayer,public LayerDx11\n{\npublic:\n\tResizeLayerDx11();\n\t~ResizeLayerDx11();\nprotected:\n\tvirtual void onParametChange(ResizeParamet oldT) override;\n\tvirtual bool initHlsl() override;\n\tvirtual void onInitLayer() override;\n};\n\n"}
80,488
c
#ifndef _OPENGL_FONT_ENGINE_DEFAULT_H_ #define _OPENGL_FONT_ENGINE_DEFAULT_H_ #include "font_engine.h" #include <cstdint> #include <memory> namespace opengl { class FontEngineDefault final : public FontEngine { public: virtual ~FontEngineDefault( ) noexcept; virtual bool Initialize( ) noexcept override; virtual bool SetFont( const std::string & font_filename ) noexcept override; virtual bool SetFont( const std::string & font_filename, const uint32_t size ) noexcept override; virtual std::string GetFont( ) const noexcept override; virtual bool SetSize( const uint32_t size ) noexcept override; virtual uint32_t GetSize( ) const noexcept override; virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; virtual int32_t GetGlyphMaxTop( ) const noexcept override; virtual double GetVerticalAdvance( ) const noexcept override; virtual const Metric * GetGlyphMetric( const uint32_t character ) noexcept override; virtual TextureMap GetGlyphTextureMap( ) noexcept override; private: std::shared_ptr< const uint8_t [] > texture_map_; }; } // namespace opengl #endif // _OPENGL_FONT_ENGINE_DEFAULT_H_
25.76
49
(translation_unit) "#ifndef _OPENGL_FONT_ENGINE_DEFAULT_H_ \n#define _OPENGL_FONT_ENGINE_DEFAULT_H_ \n \n#include "font_engine.h" \n \n#include <cstdint> \n#include <memory> \n \nnamespace opengl \n{ \n \nclass FontEngineDefault final : \n public FontEngine \n{ \npublic: \n virtual ~FontEngineDefault( ) noexcept; \n \n virtual bool Initialize( ) noexcept override; \n \n virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override; \n \n virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_; \n \n}; \n \n} // namespace opengl \n \n#endif // _OPENGL_FONT_ENGINE_DEFAULT_H_ \n" (preproc_ifdef) "#ifndef _OPENGL_FONT_ENGINE_DEFAULT_H_ \n#define _OPENGL_FONT_ENGINE_DEFAULT_H_ \n \n#include "font_engine.h" \n \n#include <cstdint> \n#include <memory> \n \nnamespace opengl \n{ \n \nclass FontEngineDefault final : \n public FontEngine \n{ \npublic: \n virtual ~FontEngineDefault( ) noexcept; \n \n virtual bool Initialize( ) noexcept override; \n \n virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override; \n \n virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_; \n \n}; \n \n} // namespace opengl \n \n#endif" (#ifndef) "#ifndef" (identifier) "_OPENGL_FONT_ENGINE_DEFAULT_H_" (preproc_def) "#define _OPENGL_FONT_ENGINE_DEFAULT_H_ \n" (#define) "#define" (identifier) "_OPENGL_FONT_ENGINE_DEFAULT_H_" (preproc_include) "#include "font_engine.h" \n" (#include) "#include" (string_literal) ""font_engine.h"" (") """ (string_content) "font_engine.h" (") """ (preproc_include) "#include <cstdint> \n" (#include) "#include" (system_lib_string) "<cstdint>" (preproc_include) "#include <memory> \n" (#include) "#include" (system_lib_string) "<memory>" (function_definition) "namespace opengl \n{ \n \nclass FontEngineDefault final : \n public FontEngine \n{ \npublic: \n virtual ~FontEngineDefault( ) noexcept; \n \n virtual bool Initialize( ) noexcept override; \n \n virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override; \n \n virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_; \n \n}; \n \n}" (type_identifier) "namespace" (identifier) "opengl" (compound_statement) "{ \n \nclass FontEngineDefault final : \n public FontEngine \n{ \npublic: \n virtual ~FontEngineDefault( ) noexcept; \n \n virtual bool Initialize( ) noexcept override; \n \n virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override; \n \n virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_; \n \n}; \n \n}" ({) "{" (declaration) "class FontEngineDefault" (type_identifier) "class" (identifier) "FontEngineDefault" (;) "" (labeled_statement) "final : \n public FontEngine \n{ \npublic: \n virtual ~FontEngineDefault( ) noexcept; \n \n virtual bool Initialize( ) noexcept override; \n \n virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override; \n \n virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_; \n \n}" (statement_identifier) "final" (:) ":" (ERROR) "public FontEngine" (type_identifier) "public" (identifier) "FontEngine" (compound_statement) "{ \npublic: \n virtual ~FontEngineDefault( ) noexcept; \n \n virtual bool Initialize( ) noexcept override; \n \n virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override; \n \n virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_; \n \n}" ({) "{" (labeled_statement) "public: \n virtual ~FontEngineDefault( ) noexcept;" (statement_identifier) "public" (:) ":" (ERROR) "virtual ~FontEngineDefault( ) noexcept" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "FontEngineDefault( ) noexcept" (identifier) "FontEngineDefault" (parameter_list) "( )" (() "(" ()) ")" (identifier) "noexcept" (expression_statement) ";" (;) ";" (ERROR) "virtual bool Initialize( ) noexcept override; \n \n virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override; \n \n virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "Initialize( )" (identifier) "Initialize" (parameter_list) "( )" (() "(" ()) ")" (declaration) "noexcept override;" (type_identifier) "noexcept" (identifier) "override" (;) ";" (declaration) "virtual bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override; \n \n virtual" (type_identifier) "virtual" (ERROR) "bool SetFont( \n const std::string & font_filename ) noexcept override; \n virtual bool SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override; \n virtual std::string GetFont( ) const noexcept override; \n \n virtual bool SetSize( \n const uint32_t size ) noexcept override; \n virtual uint32_t GetSize( ) const noexcept override; \n \n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override; \n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override; \n virtual int32_t GetGlyphMaxTop( ) const noexcept override; \n virtual double GetVerticalAdvance( ) const noexcept override;" (identifier) "bool" (function_declarator) "SetFont( \n const std::string & font_filename ) noexcept override" (identifier) "SetFont" (parameter_list) "( \n const std::string & font_filename )" (() "(" (parameter_declaration) "const std::string & font_filename" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "font_filename" ()) ")" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "bool" (function_declarator) "SetFont( \n const std::string & font_filename, \n const uint32_t size ) noexcept override" (identifier) "SetFont" (parameter_list) "( \n const std::string & font_filename, \n const uint32_t size )" (() "(" (parameter_declaration) "const std::string & font_filename" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "font_filename" (,) "," (parameter_declaration) "const uint32_t size" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (identifier) "size" ()) ")" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "GetFont( ) const noexcept override" (identifier) "GetFont" (parameter_list) "( )" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "bool" (function_declarator) "SetSize( \n const uint32_t size ) noexcept override" (identifier) "SetSize" (parameter_list) "( \n const uint32_t size )" (() "(" (parameter_declaration) "const uint32_t size" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (identifier) "size" ()) ")" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "uint32_t" (function_declarator) "GetSize( ) const noexcept override" (identifier) "GetSize" (parameter_list) "( )" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "uint32_t" (function_declarator) "GetGlyphMaxWidth( ) const noexcept override" (identifier) "GetGlyphMaxWidth" (parameter_list) "( )" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "uint32_t" (function_declarator) "GetGlyphMaxHeight( ) const noexcept override" (identifier) "GetGlyphMaxHeight" (parameter_list) "( )" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "int32_t" (function_declarator) "GetGlyphMaxTop( ) const noexcept override" (identifier) "GetGlyphMaxTop" (parameter_list) "( )" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "double" (function_declarator) "GetVerticalAdvance( ) const noexcept override" (identifier) "GetVerticalAdvance" (parameter_list) "( )" (() "(" ()) ")" (identifier) "const" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "virtual" (;) "" (declaration) "const Metric * GetGlyphMetric( \n const uint32_t character ) noexcept override;" (type_qualifier) "const" (const) "const" (type_identifier) "Metric" (pointer_declarator) "* GetGlyphMetric( \n const uint32_t character ) noexcept override" (*) "*" (function_declarator) "GetGlyphMetric( \n const uint32_t character ) noexcept override" (identifier) "GetGlyphMetric" (parameter_list) "( \n const uint32_t character )" (() "(" (parameter_declaration) "const uint32_t character" (type_qualifier) "const" (const) "const" (primitive_type) "uint32_t" (identifier) "character" ()) ")" (identifier) "noexcept" (identifier) "override" (;) ";" (declaration) "virtual TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] > \n texture_map_;" (type_identifier) "virtual" (ERROR) "TextureMap GetGlyphTextureMap( ) noexcept override; \n \nprivate: \n std::shared_ptr< const uint8_t [] >" (identifier) "TextureMap" (function_declarator) "GetGlyphTextureMap( ) noexcept override" (identifier) "GetGlyphTextureMap" (parameter_list) "( )" (() "(" ()) ")" (identifier) "noexcept" (identifier) "override" (;) ";" (identifier) "private" (:) ":" (identifier) "std" (:) ":" (:) ":" (array_declarator) "shared_ptr< const uint8_t []" (identifier) "shared_ptr" (ERROR) "< const uint8_t" (<) "<" (const) "const" (primitive_type) "uint8_t" ([) "[" (]) "]" (>) ">" (identifier) "texture_map_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace opengl " (#endif) "#endif" (comment) "// _OPENGL_FONT_ENGINE_DEFAULT_H_ "
252
10
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 25.76, "nodes": 156, "errors": 0, "source_hash": "a75be9d214baa8e97a3f4df77506b4bf7b6cfbd9cec64f35a6e9f0700821f817", "categorized_nodes": 119}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _OPENGL_FONT_ENGINE_DEFAULT_H_\r\n#define _OPENGL_FONT_ENGINE_DEFAULT_H_\r\n\r\n#include \"font_engine.h\"\r\n\r\n#include <cstdint>\r\n#include <memory>\r\n\r\nnamespace opengl\r\n{\r\n\r\nclass FontEngineDefault final :\r\n public FontEngine\r\n{\r\npublic:\r\n virtual ~FontEngineDefault( ) noexcept;\r\n\r\n virtual bool Initialize( ) noexcept override;\r\n\r\n virtual bool SetFont(\r\n const std::string & font_filename ) noexcept override;\r\n virtual bool SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override;\r\n virtual std::string GetFont( ) const noexcept override;\r\n\r\n virtual bool SetSize(\r\n const uint32_t size ) noexcept override;\r\n virtual uint32_t GetSize( ) const noexcept override;\r\n\r\n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override;\r\n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override;\r\n virtual int32_t GetGlyphMaxTop( ) const noexcept override;\r\n virtual double GetVerticalAdvance( ) const noexcept override;\r\n\r\n virtual const Metric * GetGlyphMetric(\r\n const uint32_t character ) noexcept override;\r\n\r\n virtual TextureMap GetGlyphTextureMap( ) noexcept override;\r\n\r\nprivate:\r\n std::shared_ptr< const uint8_t [] >\r\n texture_map_;\r\n\r\n};\r\n\r\n} // namespace opengl\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 155], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 48, "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": "_OPENGL_FONT_ENGINE_DEFAULT_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 38}}, {"id": 3, "type": "preproc_def", "text": "#define _OPENGL_FONT_ENGINE_DEFAULT_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": "_OPENGL_FONT_ENGINE_DEFAULT_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 38}}, {"id": 6, "type": "preproc_include", "text": "#include \"font_engine.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": "\"font_engine.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include <cstdint>\r\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<cstdint>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <memory>\r\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<memory>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 15, "type": "function_definition", "text": "namespace opengl\r\n{\r\n\r\nclass FontEngineDefault final :\r\n public FontEngine\r\n{\r\npublic:\r\n virtual ~FontEngineDefault( ) noexcept;\r\n\r\n virtual bool Initialize( ) noexcept override;\r\n\r\n virtual bool SetFont(\r\n const std::string & font_filename ) noexcept override;\r\n virtual bool SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override;\r\n virtual std::string GetFont( ) const noexcept override;\r\n\r\n virtual bool SetSize(\r\n const uint32_t size ) noexcept override;\r\n virtual uint32_t GetSize( ) const noexcept override;\r\n\r\n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override;\r\n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override;\r\n virtual int32_t GetGlyphMaxTop( ) const noexcept override;\r\n virtual double GetVerticalAdvance( ) const noexcept override;\r\n\r\n virtual const Metric * GetGlyphMetric(\r\n const uint32_t character ) noexcept override;\r\n\r\n virtual TextureMap GetGlyphTextureMap( ) noexcept override;\r\n\r\nprivate:\r\n std::shared_ptr< const uint8_t [] >\r\n texture_map_;\r\n\r\n};\r\n\r\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 17, "type": "identifier", "text": "opengl", "parent": 15, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 16}}, {"id": 18, "type": "declaration", "text": "class FontEngineDefault", "parent": 15, "children": [19], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 23}}, {"id": 19, "type": "identifier", "text": "FontEngineDefault", "parent": 18, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 23}}, {"id": 20, "type": "labeled_statement", "text": "final :\r\n public FontEngine\r\n{\r\npublic:\r\n virtual ~FontEngineDefault( ) noexcept;\r\n\r\n virtual bool Initialize( ) noexcept override;\r\n\r\n virtual bool SetFont(\r\n const std::string & font_filename ) noexcept override;\r\n virtual bool SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override;\r\n virtual std::string GetFont( ) const noexcept override;\r\n\r\n virtual bool SetSize(\r\n const uint32_t size ) noexcept override;\r\n virtual uint32_t GetSize( ) const noexcept override;\r\n\r\n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override;\r\n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override;\r\n virtual int32_t GetGlyphMaxTop( ) const noexcept override;\r\n virtual double GetVerticalAdvance( ) const noexcept override;\r\n\r\n virtual const Metric * GetGlyphMetric(\r\n const uint32_t character ) noexcept override;\r\n\r\n virtual TextureMap GetGlyphTextureMap( ) noexcept override;\r\n\r\nprivate:\r\n std::shared_ptr< const uint8_t [] >\r\n texture_map_;\r\n\r\n}", "parent": 15, "children": [21, 22], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 44, "column": 1}}, {"id": 21, "type": "statement_identifier", "text": "final", "parent": 20, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 29}}, {"id": 22, "type": "ERROR", "text": "public FontEngine", "parent": 20, "children": [23], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 20}}, {"id": 23, "type": "identifier", "text": "FontEngine", "parent": 22, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 20}}, {"id": 24, "type": "labeled_statement", "text": "public:\r\n virtual ~FontEngineDefault( ) noexcept;", "parent": 20, "children": [25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 42}}, {"id": 25, "type": "ERROR", "text": "virtual ~FontEngineDefault( ) noexcept", "parent": 24, "children": [26, 27, 29], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 41}}, {"id": 26, "type": "type_identifier", "text": "virtual", "parent": 25, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 10}}, {"id": 27, "type": "ERROR", "text": "~", "parent": 25, "children": [28], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 28, "type": "~", "text": "~", "parent": 27, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 29, "type": "function_declarator", "text": "FontEngineDefault( ) noexcept", "parent": 25, "children": [30, 31, 32], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 41}}, {"id": 30, "type": "identifier", "text": "FontEngineDefault", "parent": 29, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 29}}, {"id": 31, "type": "parameter_list", "text": "( )", "parent": 29, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 32}}, {"id": 32, "type": "identifier", "text": "noexcept", "parent": 29, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 41}}, {"id": 33, "type": "ERROR", "text": "virtual bool Initialize( ) noexcept override;\r\n\r\n virtual bool SetFont(\r\n const std::string & font_filename ) noexcept override;\r\n virtual bool SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override;\r\n virtual std::string GetFont( ) const noexcept override;\r\n\r\n virtual bool SetSize(\r\n const uint32_t size ) noexcept override;\r\n virtual uint32_t GetSize( ) const noexcept override;\r\n\r\n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override;\r\n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override;\r\n virtual int32_t GetGlyphMaxTop( ) const noexcept override;\r\n virtual double GetVerticalAdvance( ) const noexcept override;\r\n\r\n virtual const Metric * GetGlyphMetric(\r\n const uint32_t character ) noexcept override;\r\n\r\n virtual TextureMap GetGlyphTextureMap( ) noexcept override;\r\n\r\nprivate:\r\n std::shared_ptr< const uint8_t [] >\r\n texture_map_;", "parent": 20, "children": [34, 35, 37, 40, 43, 126, 138], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 42, "column": 19}}, {"id": 34, "type": "type_identifier", "text": "virtual", "parent": 33, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 10}}, {"id": 35, "type": "ERROR", "text": "bool", "parent": 33, "children": [36], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 36, "type": "identifier", "text": "bool", "parent": 35, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 15}}, {"id": 37, "type": "function_declarator", "text": "Initialize( )", "parent": 33, "children": [38, 39], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 29}}, {"id": 38, "type": "identifier", "text": "Initialize", "parent": 37, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 26}}, {"id": 39, "type": "parameter_list", "text": "( )", "parent": 37, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 29}}, {"id": 40, "type": "declaration", "text": "noexcept override;", "parent": 33, "children": [41, 42], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 48}}, {"id": 41, "type": "type_identifier", "text": "noexcept", "parent": 40, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 38}}, {"id": 42, "type": "identifier", "text": "override", "parent": 40, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 47}}, {"id": 43, "type": "declaration", "text": "virtual bool SetFont(\r\n const std::string & font_filename ) noexcept override;\r\n virtual bool SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override;\r\n virtual std::string GetFont( ) const noexcept override;\r\n\r\n virtual bool SetSize(\r\n const uint32_t size ) noexcept override;\r\n virtual uint32_t GetSize( ) const noexcept override;\r\n\r\n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override;\r\n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override;\r\n virtual int32_t GetGlyphMaxTop( ) const noexcept override;\r\n virtual double GetVerticalAdvance( ) const noexcept override;\r\n\r\n virtual", "parent": 33, "children": [44, 45, 125], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 35, "column": 10}}, {"id": 44, "type": "type_identifier", "text": "virtual", "parent": 43, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 10}}, {"id": 45, "type": "ERROR", "text": "bool SetFont(\r\n const std::string & font_filename ) noexcept override;\r\n virtual bool SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override;\r\n virtual std::string GetFont( ) const noexcept override;\r\n\r\n virtual bool SetSize(\r\n const uint32_t size ) noexcept override;\r\n virtual uint32_t GetSize( ) const noexcept override;\r\n\r\n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override;\r\n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override;\r\n virtual int32_t GetGlyphMaxTop( ) const noexcept override;\r\n virtual double GetVerticalAdvance( ) const noexcept override;", "parent": 43, "children": [46, 47, 57, 58, 59, 72, 73, 74, 75, 80, 81, 82, 90, 91, 92, 97, 98, 99, 104, 105, 106, 111, 112, 113, 118, 119, 120], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 33, "column": 64}}, {"id": 46, "type": "identifier", "text": "bool", "parent": 45, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 15}}, {"id": 47, "type": "function_declarator", "text": "SetFont(\r\n const std::string & font_filename ) noexcept override", "parent": 45, "children": [48, 49, 55, 56], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 20, "column": 59}}, {"id": 48, "type": "identifier", "text": "SetFont", "parent": 47, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 23}}, {"id": 49, "type": "parameter_list", "text": "(\r\n const std::string & font_filename )", "parent": 47, "children": [50], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 20, "column": 41}}, {"id": 50, "type": "parameter_declaration", "text": "const std::string & font_filename", "parent": 49, "children": [51, 52, 54], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 39}}, {"id": 51, "type": "type_identifier", "text": "std", "parent": 50, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 15}}, {"id": 52, "type": "ERROR", "text": "::string &", "parent": 50, "children": [53], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 25}}, {"id": 53, "type": "identifier", "text": "string", "parent": 52, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 23}}, {"id": 54, "type": "identifier", "text": "font_filename", "parent": 50, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 39}}, {"id": 55, "type": "identifier", "text": "noexcept", "parent": 47, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 50}}, {"id": 56, "type": "identifier", "text": "override", "parent": 47, "children": [], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 59}}, {"id": 57, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 10}}, {"id": 58, "type": "identifier", "text": "bool", "parent": 45, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 15}}, {"id": 59, "type": "function_declarator", "text": "SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override", "parent": 45, "children": [60, 61, 70, 71], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 23, "column": 45}}, {"id": 60, "type": "identifier", "text": "SetFont", "parent": 59, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 23}}, {"id": 61, "type": "parameter_list", "text": "(\r\n const std::string & font_filename,\r\n const uint32_t size )", "parent": 59, "children": [62, 67], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 23, "column": 27}}, {"id": 62, "type": "parameter_declaration", "text": "const std::string & font_filename", "parent": 61, "children": [63, 64, 66], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 39}}, {"id": 63, "type": "type_identifier", "text": "std", "parent": 62, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 64, "type": "ERROR", "text": "::string &", "parent": 62, "children": [65], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 25}}, {"id": 65, "type": "identifier", "text": "string", "parent": 64, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 23}}, {"id": 66, "type": "identifier", "text": "font_filename", "parent": 62, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 39}}, {"id": 67, "type": "parameter_declaration", "text": "const uint32_t size", "parent": 61, "children": [68, 69], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 25}}, {"id": 68, "type": "primitive_type", "text": "uint32_t", "parent": 67, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 20}}, {"id": 69, "type": "identifier", "text": "size", "parent": 67, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 25}}, {"id": 70, "type": "identifier", "text": "noexcept", "parent": 59, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 36}}, {"id": 71, "type": "identifier", "text": "override", "parent": 59, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 45}}, {"id": 72, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 10}}, {"id": 73, "type": "identifier", "text": "std", "parent": 45, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 14}}, {"id": 74, "type": "identifier", "text": "string", "parent": 45, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 75, "type": "function_declarator", "text": "GetFont( ) const noexcept override", "parent": 45, "children": [76, 77, 78, 79], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 57}}, {"id": 76, "type": "identifier", "text": "GetFont", "parent": 75, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 30}}, {"id": 77, "type": "parameter_list", "text": "( )", "parent": 75, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 33}}, {"id": 78, "type": "identifier", "text": "noexcept", "parent": 75, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 48}}, {"id": 79, "type": "identifier", "text": "override", "parent": 75, "children": [], "start_point": {"row": 24, "column": 49}, "end_point": {"row": 24, "column": 57}}, {"id": 80, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 10}}, {"id": 81, "type": "identifier", "text": "bool", "parent": 45, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 15}}, {"id": 82, "type": "function_declarator", "text": "SetSize(\r\n const uint32_t size ) noexcept override", "parent": 45, "children": [83, 84, 88, 89], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 27, "column": 45}}, {"id": 83, "type": "identifier", "text": "SetSize", "parent": 82, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 23}}, {"id": 84, "type": "parameter_list", "text": "(\r\n const uint32_t size )", "parent": 82, "children": [85], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 27, "column": 27}}, {"id": 85, "type": "parameter_declaration", "text": "const uint32_t size", "parent": 84, "children": [86, 87], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 25}}, {"id": 86, "type": "primitive_type", "text": "uint32_t", "parent": 85, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 20}}, {"id": 87, "type": "identifier", "text": "size", "parent": 85, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 25}}, {"id": 88, "type": "identifier", "text": "noexcept", "parent": 82, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 36}}, {"id": 89, "type": "identifier", "text": "override", "parent": 82, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 45}}, {"id": 90, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 10}}, {"id": 91, "type": "identifier", "text": "uint32_t", "parent": 45, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 19}}, {"id": 92, "type": "function_declarator", "text": "GetSize( ) const noexcept override", "parent": 45, "children": [93, 94, 95, 96], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 54}}, {"id": 93, "type": "identifier", "text": "GetSize", "parent": 92, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 27}}, {"id": 94, "type": "parameter_list", "text": "( )", "parent": 92, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 30}}, {"id": 95, "type": "identifier", "text": "noexcept", "parent": 92, "children": [], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 45}}, {"id": 96, "type": "identifier", "text": "override", "parent": 92, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 54}}, {"id": 97, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 10}}, {"id": 98, "type": "identifier", "text": "uint32_t", "parent": 45, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 19}}, {"id": 99, "type": "function_declarator", "text": "GetGlyphMaxWidth( ) const noexcept override", "parent": 45, "children": [100, 101, 102, 103], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 63}}, {"id": 100, "type": "identifier", "text": "GetGlyphMaxWidth", "parent": 99, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 36}}, {"id": 101, "type": "parameter_list", "text": "( )", "parent": 99, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 39}}, {"id": 102, "type": "identifier", "text": "noexcept", "parent": 99, "children": [], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 54}}, {"id": 103, "type": "identifier", "text": "override", "parent": 99, "children": [], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 63}}, {"id": 104, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 10}}, {"id": 105, "type": "identifier", "text": "uint32_t", "parent": 45, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 19}}, {"id": 106, "type": "function_declarator", "text": "GetGlyphMaxHeight( ) const noexcept override", "parent": 45, "children": [107, 108, 109, 110], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 64}}, {"id": 107, "type": "identifier", "text": "GetGlyphMaxHeight", "parent": 106, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 37}}, {"id": 108, "type": "parameter_list", "text": "( )", "parent": 106, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 40}}, {"id": 109, "type": "identifier", "text": "noexcept", "parent": 106, "children": [], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 55}}, {"id": 110, "type": "identifier", "text": "override", "parent": 106, "children": [], "start_point": {"row": 31, "column": 56}, "end_point": {"row": 31, "column": 64}}, {"id": 111, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 10}}, {"id": 112, "type": "identifier", "text": "int32_t", "parent": 45, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 18}}, {"id": 113, "type": "function_declarator", "text": "GetGlyphMaxTop( ) const noexcept override", "parent": 45, "children": [114, 115, 116, 117], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 60}}, {"id": 114, "type": "identifier", "text": "GetGlyphMaxTop", "parent": 113, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 33}}, {"id": 115, "type": "parameter_list", "text": "( )", "parent": 113, "children": [], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 36}}, {"id": 116, "type": "identifier", "text": "noexcept", "parent": 113, "children": [], "start_point": {"row": 32, "column": 43}, "end_point": {"row": 32, "column": 51}}, {"id": 117, "type": "identifier", "text": "override", "parent": 113, "children": [], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 60}}, {"id": 118, "type": "identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 10}}, {"id": 119, "type": "identifier", "text": "double", "parent": 45, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 17}}, {"id": 120, "type": "function_declarator", "text": "GetVerticalAdvance( ) const noexcept override", "parent": 45, "children": [121, 122, 123, 124], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 63}}, {"id": 121, "type": "identifier", "text": "GetVerticalAdvance", "parent": 120, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 36}}, {"id": 122, "type": "parameter_list", "text": "( )", "parent": 120, "children": [], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 39}}, {"id": 123, "type": "identifier", "text": "noexcept", "parent": 120, "children": [], "start_point": {"row": 33, "column": 46}, "end_point": {"row": 33, "column": 54}}, {"id": 124, "type": "identifier", "text": "override", "parent": 120, "children": [], "start_point": {"row": 33, "column": 55}, "end_point": {"row": 33, "column": 63}}, {"id": 125, "type": "identifier", "text": "virtual", "parent": 43, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 10}}, {"id": 126, "type": "declaration", "text": "const Metric * GetGlyphMetric(\r\n const uint32_t character ) noexcept override;", "parent": 33, "children": [127, 128], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 36, "column": 51}}, {"id": 127, "type": "type_identifier", "text": "Metric", "parent": 126, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 23}}, {"id": 128, "type": "pointer_declarator", "text": "* GetGlyphMetric(\r\n const uint32_t character ) noexcept override", "parent": 126, "children": [129, 130], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 36, "column": 50}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 25}}, {"id": 130, "type": "function_declarator", "text": "GetGlyphMetric(\r\n const uint32_t character ) noexcept override", "parent": 128, "children": [131, 132, 136, 137], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 36, "column": 50}}, {"id": 131, "type": "identifier", "text": "GetGlyphMetric", "parent": 130, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 40}}, {"id": 132, "type": "parameter_list", "text": "(\r\n const uint32_t character )", "parent": 130, "children": [133], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 36, "column": 32}}, {"id": 133, "type": "parameter_declaration", "text": "const uint32_t character", "parent": 132, "children": [134, 135], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 30}}, {"id": 134, "type": "primitive_type", "text": "uint32_t", "parent": 133, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 20}}, {"id": 135, "type": "identifier", "text": "character", "parent": 133, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 30}}, {"id": 136, "type": "identifier", "text": "noexcept", "parent": 130, "children": [], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 41}}, {"id": 137, "type": "identifier", "text": "override", "parent": 130, "children": [], "start_point": {"row": 36, "column": 42}, "end_point": {"row": 36, "column": 50}}, {"id": 138, "type": "declaration", "text": "virtual TextureMap GetGlyphTextureMap( ) noexcept override;\r\n\r\nprivate:\r\n std::shared_ptr< const uint8_t [] >\r\n texture_map_;", "parent": 33, "children": [139, 140, 154], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 42, "column": 19}}, {"id": 139, "type": "type_identifier", "text": "virtual", "parent": 138, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 10}}, {"id": 140, "type": "ERROR", "text": "TextureMap GetGlyphTextureMap( ) noexcept override;\r\n\r\nprivate:\r\n std::shared_ptr< const uint8_t [] >", "parent": 138, "children": [141, 142, 147, 148, 153], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 41, "column": 38}}, {"id": 141, "type": "identifier", "text": "TextureMap", "parent": 140, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 21}}, {"id": 142, "type": "function_declarator", "text": "GetGlyphTextureMap( ) noexcept override", "parent": 140, "children": [143, 144, 145, 146], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 61}}, {"id": 143, "type": "identifier", "text": "GetGlyphTextureMap", "parent": 142, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 40}}, {"id": 144, "type": "parameter_list", "text": "( )", "parent": 142, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 43}}, {"id": 145, "type": "identifier", "text": "noexcept", "parent": 142, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 52}}, {"id": 146, "type": "identifier", "text": "override", "parent": 142, "children": [], "start_point": {"row": 38, "column": 53}, "end_point": {"row": 38, "column": 61}}, {"id": 147, "type": "identifier", "text": "std", "parent": 140, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 6}}, {"id": 148, "type": "array_declarator", "text": "shared_ptr< const uint8_t []", "parent": 140, "children": [149, 150], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 36}}, {"id": 149, "type": "identifier", "text": "shared_ptr", "parent": 148, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 18}}, {"id": 150, "type": "ERROR", "text": "< const uint8_t", "parent": 148, "children": [151, 152], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 33}}, {"id": 151, "type": "<", "text": "<", "parent": 150, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 152, "type": "primitive_type", "text": "uint8_t", "parent": 150, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 33}}, {"id": 153, "type": ">", "text": ">", "parent": 140, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 38}}, {"id": 154, "type": "identifier", "text": "texture_map_", "parent": 138, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 18}}, {"id": 155, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 29, 37, 47, 59, 75, 82, 92, 99, 106, 113, 120, 130, 142], "variables": [18, 40, 43, 50, 62, 67, 85, 126, 133, 138], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 21, 23, 26, 30, 32, 34, 36, 38, 41, 42, 44, 46, 48, 51, 53, 54, 55, 56, 57, 58, 60, 63, 65, 66, 69, 70, 71, 72, 73, 74, 76, 78, 79, 80, 81, 83, 87, 88, 89, 90, 91, 93, 95, 96, 97, 98, 100, 102, 103, 104, 105, 107, 109, 110, 111, 112, 114, 116, 117, 118, 119, 121, 123, 124, 125, 127, 131, 135, 136, 137, 139, 141, 143, 145, 146, 147, 149, 154, 155], "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": "FontEngineDefault", "text_snippet": "namespace opengl\r\n{\r\n\r\nclass FontEngineDefault final :\r\n public FontEngine\r\n{\r\npublic:\r\n virtual"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "FontEngineDefault( ) noexcept"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "Initialize( )"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "SetFont(\r\n const std::string & font_filename ) noexcept override"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "GetFont( ) const noexcept override"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "SetSize(\r\n const uint32_t size ) noexcept override"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "GetSize( ) const noexcept override"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlyphMaxWidth( ) const noexcept override"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlyphMaxHeight( ) const noexcept override"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlyphMaxTop( ) const noexcept override"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "GetVerticalAdvance( ) const noexcept override"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlyphMetric(\r\n const uint32_t character ) noexcept override"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlyphTextureMap( ) noexcept override"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"font_engine.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <cstdint>\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <memory>\r\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef _OPENGL_FONT_ENGINE_DEFAULT_H_\r\n#define _OPENGL_FONT_ENGINE_DEFAULT_H_\r\n\r\n#include \"font_engine.h\"\r\n\r\n#include <cstdint>\r\n#include <memory>\r\n\r\nnamespace opengl\r\n{\r\n\r\nclass FontEngineDefault final :\r\n public FontEngine\r\n{\r\npublic:\r\n virtual ~FontEngineDefault( ) noexcept;\r\n\r\n virtual bool Initialize( ) noexcept override;\r\n\r\n virtual bool SetFont(\r\n const std::string & font_filename ) noexcept override;\r\n virtual bool SetFont(\r\n const std::string & font_filename,\r\n const uint32_t size ) noexcept override;\r\n virtual std::string GetFont( ) const noexcept override;\r\n\r\n virtual bool SetSize(\r\n const uint32_t size ) noexcept override;\r\n virtual uint32_t GetSize( ) const noexcept override;\r\n\r\n virtual uint32_t GetGlyphMaxWidth( ) const noexcept override;\r\n virtual uint32_t GetGlyphMaxHeight( ) const noexcept override;\r\n virtual int32_t GetGlyphMaxTop( ) const noexcept override;\r\n virtual double GetVerticalAdvance( ) const noexcept override;\r\n\r\n virtual const Metric * GetGlyphMetric(\r\n const uint32_t character ) noexcept override;\r\n\r\n virtual TextureMap GetGlyphTextureMap( ) noexcept override;\r\n\r\nprivate:\r\n std::shared_ptr< const uint8_t [] >\r\n texture_map_;\r\n\r\n};\r\n\r\n} // namespace opengl\r\n\r\n#endif // _OPENGL_FONT_ENGINE_DEFAULT_H_\r\n"}
80,489
c
/************************************************************************* * COPYRIGHT (C) Mylex Corporation 1992-1998 * * * * This software is furnished under a license and may be used and copied * * only in accordance with the terms and conditions of such license and * * with inclusion of the above copyright notice. This software or any * * other copies thereof may not be provided or otherwise made available * * to any other person. No title to, nor ownership of the software is * * hereby transferred. * * * * The information in this software is subject to change without notices * * and should not be construed as a commitment by Mylex Corporation * * * **************************************************************************/ #ifndef _MLXDISK_H #define _MLXDISK_H #define INQUIRY_DATA_SIZE 2048 #define MAX_MLX_DISK_DEVICES 256 // Per Partition Information #define MLX_DISK_DEVICE_STATE_INITIALIZED 0x00000001 typedef struct _MLX_DISK_EXTENSION { PDEVICE_OBJECT DeviceObject; PDEVICE_OBJECT TargetDeviceObject; PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K ULONG (*ReadWrite)(); ULONG Reserved[2]; LARGE_INTEGER StartingOffset; LARGE_INTEGER PartitionLength; PIRP IrpQueHead; PIRP IrpQueTail; ULONG IrpCount; ULONG Reserved2; // @For 64bit alignment KEVENT PagingPathCountEvent; // @For Win2K ULONG PagingPathCount; // @For Win2K ULONG Reserved3; // @For 64bit alignment u32bits State; u08bits ControllerNo; u08bits PathId; u08bits TargetId; u08bits Reserved4; // @For 64bit alignment u32bits PartitionNo; u08bits LastPartitionNo; u08bits DiskNo; u08bits PartitionType; u08bits SectorShift; u32bits BytesPerSector; u32bits BytesPerSectorMask; } MLXDISK_DEVICE_EXTENSION, *PMLXDISK_DEVICE_EXTENSION; typedef struct _MIOC_REQ_HEADER { SRB_IO_CONTROL SrbIoctl; ULONG Command; } MIOC_REQ_HEADER, *PMIOC_REQ_HEADER; #define MLX_REQ_DATA_SIZE 1024 typedef struct _MLX_REQ { MIOC_REQ_HEADER MiocReqHeader; UCHAR Data[MLX_REQ_DATA_SIZE]; } MLX_REQ; typedef struct _MLX_COMPLETION_CONTEXT { SCSI_REQUEST_BLOCK Srb; MDL Mdl; ULONG Pages[4]; KEVENT Event; IO_STATUS_BLOCK IoStatusBlock; union _generic_buffer { DISK_GEOMETRY DiskGeometry; PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; MLX_REQ MlxIoctlRequest; } buf; } MLX_COMPLETION_CONTEXT, *PMLX_COMPLETION_CONTEXT; #define MAX_MLX_CTRL 32 #define MLX_CTRL_STATE_ENLISTED 0x00000001 #define MLX_CTRL_STATE_INITIALIZED 0x00000002 typedef struct { ULONG State; ULONG ControllerNo; ULONG PortNumber; } MLX_CTRL_INFO; typedef struct { PVOID CtrlPtr; PVOID AdpObj; UCHAR CtrlNo; UCHAR MaxMapReg; USHORT Reserved; // mdac_req_t *FreeReqList; // mdac_req_t *CompReqHead; // PIRP IrpQueHead; // PIRP IrpQueTail; // PKDPC Dpc; } MLX_MDAC_INFO, *PMLX_MDAC_INFO; #define MLX_MAX_REQ_BUF 512 // Per Controller #define MLX_MAX_IRP_TRACE 0x1000 #define MLX_MAX_IRP_TRACE_MASK (MLX_MAX_IRP_TRACE -1) typedef struct { ULONG Tx1; ULONG Tx2; ULONG Tx3; ULONG Rx; } IRP_TRACE_INFO; #endif // _MLXDISK_H
30.18
129
(translation_unit) "/************************************************************************* \n * COPYRIGHT (C) Mylex Corporation 1992-1998 * \n * * \n * This software is furnished under a license and may be used and copied * \n * only in accordance with the terms and conditions of such license and * \n * with inclusion of the above copyright notice. This software or any * \n * other copies thereof may not be provided or otherwise made available * \n * to any other person. No title to, nor ownership of the software is * \n * hereby transferred. * \n * * \n * The information in this software is subject to change without notices * \n * and should not be construed as a commitment by Mylex Corporation * \n * * \n **************************************************************************/ \n \n#ifndef _MLXDISK_H \n \n#define _MLXDISK_H \n \n \n#define INQUIRY_DATA_SIZE 2048 \n#define MAX_MLX_DISK_DEVICES 256 \n \n// Per Partition Information \n \n#define MLX_DISK_DEVICE_STATE_INITIALIZED 0x00000001 \n \ntypedef struct _MLX_DISK_EXTENSION { \n \n PDEVICE_OBJECT DeviceObject; \n PDEVICE_OBJECT TargetDeviceObject; \n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K \n ULONG (*ReadWrite)(); \n ULONG Reserved[2]; \n \n LARGE_INTEGER StartingOffset; \n LARGE_INTEGER PartitionLength; \n PIRP IrpQueHead; \n PIRP IrpQueTail; \n ULONG IrpCount; \n ULONG Reserved2; // @For 64bit alignment \n \n KEVENT PagingPathCountEvent; // @For Win2K \n ULONG PagingPathCount; // @For Win2K \n ULONG Reserved3; // @For 64bit alignment \n \n u32bits State; \n u08bits ControllerNo; \n u08bits PathId; \n u08bits TargetId; \n u08bits Reserved4; // @For 64bit alignment \n \n u32bits PartitionNo; \n u08bits LastPartitionNo; \n u08bits DiskNo; \n u08bits PartitionType; \n u08bits SectorShift; \n \n u32bits BytesPerSector; \n u32bits BytesPerSectorMask; \n \n} MLXDISK_DEVICE_EXTENSION, *PMLXDISK_DEVICE_EXTENSION; \n \ntypedef struct _MIOC_REQ_HEADER { \n \n SRB_IO_CONTROL SrbIoctl; \n ULONG Command; \n \n} MIOC_REQ_HEADER, *PMIOC_REQ_HEADER; \n \n#define MLX_REQ_DATA_SIZE 1024 \ntypedef struct _MLX_REQ { \n MIOC_REQ_HEADER MiocReqHeader; \n UCHAR Data[MLX_REQ_DATA_SIZE]; \n} MLX_REQ; \n \ntypedef struct _MLX_COMPLETION_CONTEXT { \n SCSI_REQUEST_BLOCK Srb; \n MDL Mdl; \n ULONG Pages[4]; \n KEVENT Event; \n IO_STATUS_BLOCK IoStatusBlock; \n union _generic_buffer { \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n } buf; \n \n} MLX_COMPLETION_CONTEXT, *PMLX_COMPLETION_CONTEXT; \n \n#define MAX_MLX_CTRL 32 \n \n#define MLX_CTRL_STATE_ENLISTED 0x00000001 \n#define MLX_CTRL_STATE_INITIALIZED 0x00000002 \n \ntypedef struct { \n ULONG State; \n ULONG ControllerNo; \n ULONG PortNumber; \n} MLX_CTRL_INFO; \n \ntypedef struct { \n PVOID CtrlPtr; \n PVOID AdpObj; \n UCHAR CtrlNo; \n UCHAR MaxMapReg; \n USHORT Reserved; \n// mdac_req_t *FreeReqList; \n// mdac_req_t *CompReqHead; \n// PIRP IrpQueHead; \n// PIRP IrpQueTail; \n// PKDPC Dpc; \n} MLX_MDAC_INFO, *PMLX_MDAC_INFO; \n \n#define MLX_MAX_REQ_BUF 512 // Per Controller \n \n#define MLX_MAX_IRP_TRACE 0x1000 \n#define MLX_MAX_IRP_TRACE_MASK (MLX_MAX_IRP_TRACE -1) \ntypedef struct { \n ULONG Tx1; \n ULONG Tx2; \n ULONG Tx3; \n ULONG Rx; \n} IRP_TRACE_INFO; \n \n#endif // _MLXDISK_H \n" (comment) "/************************************************************************* \n * COPYRIGHT (C) Mylex Corporation 1992-1998 * \n * * \n * This software is furnished under a license and may be used and copied * \n * only in accordance with the terms and conditions of such license and * \n * with inclusion of the above copyright notice. This software or any * \n * other copies thereof may not be provided or otherwise made available * \n * to any other person. No title to, nor ownership of the software is * \n * hereby transferred. * \n * * \n * The information in this software is subject to change without notices * \n * and should not be construed as a commitment by Mylex Corporation * \n * * \n **************************************************************************/" (preproc_ifdef) "#ifndef _MLXDISK_H \n \n#define _MLXDISK_H \n \n \n#define INQUIRY_DATA_SIZE 2048 \n#define MAX_MLX_DISK_DEVICES 256 \n \n// Per Partition Information \n \n#define MLX_DISK_DEVICE_STATE_INITIALIZED 0x00000001 \n \ntypedef struct _MLX_DISK_EXTENSION { \n \n PDEVICE_OBJECT DeviceObject; \n PDEVICE_OBJECT TargetDeviceObject; \n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K \n ULONG (*ReadWrite)(); \n ULONG Reserved[2]; \n \n LARGE_INTEGER StartingOffset; \n LARGE_INTEGER PartitionLength; \n PIRP IrpQueHead; \n PIRP IrpQueTail; \n ULONG IrpCount; \n ULONG Reserved2; // @For 64bit alignment \n \n KEVENT PagingPathCountEvent; // @For Win2K \n ULONG PagingPathCount; // @For Win2K \n ULONG Reserved3; // @For 64bit alignment \n \n u32bits State; \n u08bits ControllerNo; \n u08bits PathId; \n u08bits TargetId; \n u08bits Reserved4; // @For 64bit alignment \n \n u32bits PartitionNo; \n u08bits LastPartitionNo; \n u08bits DiskNo; \n u08bits PartitionType; \n u08bits SectorShift; \n \n u32bits BytesPerSector; \n u32bits BytesPerSectorMask; \n \n} MLXDISK_DEVICE_EXTENSION, *PMLXDISK_DEVICE_EXTENSION; \n \ntypedef struct _MIOC_REQ_HEADER { \n \n SRB_IO_CONTROL SrbIoctl; \n ULONG Command; \n \n} MIOC_REQ_HEADER, *PMIOC_REQ_HEADER; \n \n#define MLX_REQ_DATA_SIZE 1024 \ntypedef struct _MLX_REQ { \n MIOC_REQ_HEADER MiocReqHeader; \n UCHAR Data[MLX_REQ_DATA_SIZE]; \n} MLX_REQ; \n \ntypedef struct _MLX_COMPLETION_CONTEXT { \n SCSI_REQUEST_BLOCK Srb; \n MDL Mdl; \n ULONG Pages[4]; \n KEVENT Event; \n IO_STATUS_BLOCK IoStatusBlock; \n union _generic_buffer { \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n } buf; \n \n} MLX_COMPLETION_CONTEXT, *PMLX_COMPLETION_CONTEXT; \n \n#define MAX_MLX_CTRL 32 \n \n#define MLX_CTRL_STATE_ENLISTED 0x00000001 \n#define MLX_CTRL_STATE_INITIALIZED 0x00000002 \n \ntypedef struct { \n ULONG State; \n ULONG ControllerNo; \n ULONG PortNumber; \n} MLX_CTRL_INFO; \n \ntypedef struct { \n PVOID CtrlPtr; \n PVOID AdpObj; \n UCHAR CtrlNo; \n UCHAR MaxMapReg; \n USHORT Reserved; \n// mdac_req_t *FreeReqList; \n// mdac_req_t *CompReqHead; \n// PIRP IrpQueHead; \n// PIRP IrpQueTail; \n// PKDPC Dpc; \n} MLX_MDAC_INFO, *PMLX_MDAC_INFO; \n \n#define MLX_MAX_REQ_BUF 512 // Per Controller \n \n#define MLX_MAX_IRP_TRACE 0x1000 \n#define MLX_MAX_IRP_TRACE_MASK (MLX_MAX_IRP_TRACE -1) \ntypedef struct { \n ULONG Tx1; \n ULONG Tx2; \n ULONG Tx3; \n ULONG Rx; \n} IRP_TRACE_INFO; \n \n#endif" (#ifndef) "#ifndef" (identifier) "_MLXDISK_H" (preproc_def) "#define _MLXDISK_H \n" (#define) "#define" (identifier) "_MLXDISK_H" (preproc_def) "#define INQUIRY_DATA_SIZE 2048 \n" (#define) "#define" (identifier) "INQUIRY_DATA_SIZE" (preproc_arg) "2048 " (preproc_def) "#define MAX_MLX_DISK_DEVICES 256 \n" (#define) "#define" (identifier) "MAX_MLX_DISK_DEVICES" (preproc_arg) "256 " (comment) "// Per Partition Information " (preproc_def) "#define MLX_DISK_DEVICE_STATE_INITIALIZED 0x00000001 \n" (#define) "#define" (identifier) "MLX_DISK_DEVICE_STATE_INITIALIZED" (preproc_arg) "0x00000001 " (type_definition) "typedef struct _MLX_DISK_EXTENSION { \n \n PDEVICE_OBJECT DeviceObject; \n PDEVICE_OBJECT TargetDeviceObject; \n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K \n ULONG (*ReadWrite)(); \n ULONG Reserved[2]; \n \n LARGE_INTEGER StartingOffset; \n LARGE_INTEGER PartitionLength; \n PIRP IrpQueHead; \n PIRP IrpQueTail; \n ULONG IrpCount; \n ULONG Reserved2; // @For 64bit alignment \n \n KEVENT PagingPathCountEvent; // @For Win2K \n ULONG PagingPathCount; // @For Win2K \n ULONG Reserved3; // @For 64bit alignment \n \n u32bits State; \n u08bits ControllerNo; \n u08bits PathId; \n u08bits TargetId; \n u08bits Reserved4; // @For 64bit alignment \n \n u32bits PartitionNo; \n u08bits LastPartitionNo; \n u08bits DiskNo; \n u08bits PartitionType; \n u08bits SectorShift; \n \n u32bits BytesPerSector; \n u32bits BytesPerSectorMask; \n \n} MLXDISK_DEVICE_EXTENSION, *PMLXDISK_DEVICE_EXTENSION;" (typedef) "typedef" (struct_specifier) "struct _MLX_DISK_EXTENSION { \n \n PDEVICE_OBJECT DeviceObject; \n PDEVICE_OBJECT TargetDeviceObject; \n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K \n ULONG (*ReadWrite)(); \n ULONG Reserved[2]; \n \n LARGE_INTEGER StartingOffset; \n LARGE_INTEGER PartitionLength; \n PIRP IrpQueHead; \n PIRP IrpQueTail; \n ULONG IrpCount; \n ULONG Reserved2; // @For 64bit alignment \n \n KEVENT PagingPathCountEvent; // @For Win2K \n ULONG PagingPathCount; // @For Win2K \n ULONG Reserved3; // @For 64bit alignment \n \n u32bits State; \n u08bits ControllerNo; \n u08bits PathId; \n u08bits TargetId; \n u08bits Reserved4; // @For 64bit alignment \n \n u32bits PartitionNo; \n u08bits LastPartitionNo; \n u08bits DiskNo; \n u08bits PartitionType; \n u08bits SectorShift; \n \n u32bits BytesPerSector; \n u32bits BytesPerSectorMask; \n \n}" (struct) "struct" (type_identifier) "_MLX_DISK_EXTENSION" (field_declaration_list) "{ \n \n PDEVICE_OBJECT DeviceObject; \n PDEVICE_OBJECT TargetDeviceObject; \n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K \n ULONG (*ReadWrite)(); \n ULONG Reserved[2]; \n \n LARGE_INTEGER StartingOffset; \n LARGE_INTEGER PartitionLength; \n PIRP IrpQueHead; \n PIRP IrpQueTail; \n ULONG IrpCount; \n ULONG Reserved2; // @For 64bit alignment \n \n KEVENT PagingPathCountEvent; // @For Win2K \n ULONG PagingPathCount; // @For Win2K \n ULONG Reserved3; // @For 64bit alignment \n \n u32bits State; \n u08bits ControllerNo; \n u08bits PathId; \n u08bits TargetId; \n u08bits Reserved4; // @For 64bit alignment \n \n u32bits PartitionNo; \n u08bits LastPartitionNo; \n u08bits DiskNo; \n u08bits PartitionType; \n u08bits SectorShift; \n \n u32bits BytesPerSector; \n u32bits BytesPerSectorMask; \n \n}" ({) "{" (field_declaration) "PDEVICE_OBJECT DeviceObject;" (type_identifier) "PDEVICE_OBJECT" (field_identifier) "DeviceObject" (;) ";" (field_declaration) "PDEVICE_OBJECT TargetDeviceObject;" (type_identifier) "PDEVICE_OBJECT" (field_identifier) "TargetDeviceObject" (;) ";" (field_declaration) "PDEVICE_OBJECT PhysicalDeviceObject;" (type_identifier) "PDEVICE_OBJECT" (field_identifier) "PhysicalDeviceObject" (;) ";" (comment) "// PDO @For Win2K " (field_declaration) "ULONG (*ReadWrite)();" (type_identifier) "ULONG" (function_declarator) "(*ReadWrite)()" (parenthesized_declarator) "(*ReadWrite)" (() "(" (pointer_declarator) "*ReadWrite" (*) "*" (field_identifier) "ReadWrite" ()) ")" (parameter_list) "()" (() "(" ()) ")" (;) ";" (field_declaration) "ULONG Reserved[2];" (type_identifier) "ULONG" (array_declarator) "Reserved[2]" (field_identifier) "Reserved" ([) "[" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "LARGE_INTEGER StartingOffset;" (type_identifier) "LARGE_INTEGER" (field_identifier) "StartingOffset" (;) ";" (field_declaration) "LARGE_INTEGER PartitionLength;" (type_identifier) "LARGE_INTEGER" (field_identifier) "PartitionLength" (;) ";" (field_declaration) "PIRP IrpQueHead;" (type_identifier) "PIRP" (field_identifier) "IrpQueHead" (;) ";" (field_declaration) "PIRP IrpQueTail;" (type_identifier) "PIRP" (field_identifier) "IrpQueTail" (;) ";" (field_declaration) "ULONG IrpCount;" (type_identifier) "ULONG" (field_identifier) "IrpCount" (;) ";" (field_declaration) "ULONG Reserved2;" (type_identifier) "ULONG" (field_identifier) "Reserved2" (;) ";" (comment) "// @For 64bit alignment " (field_declaration) "KEVENT PagingPathCountEvent;" (type_identifier) "KEVENT" (field_identifier) "PagingPathCountEvent" (;) ";" (comment) "// @For Win2K " (field_declaration) "ULONG PagingPathCount;" (type_identifier) "ULONG" (field_identifier) "PagingPathCount" (;) ";" (comment) "// @For Win2K " (field_declaration) "ULONG Reserved3;" (type_identifier) "ULONG" (field_identifier) "Reserved3" (;) ";" (comment) "// @For 64bit alignment " (field_declaration) "u32bits State;" (type_identifier) "u32bits" (field_identifier) "State" (;) ";" (field_declaration) "u08bits ControllerNo;" (type_identifier) "u08bits" (field_identifier) "ControllerNo" (;) ";" (field_declaration) "u08bits PathId;" (type_identifier) "u08bits" (field_identifier) "PathId" (;) ";" (field_declaration) "u08bits TargetId;" (type_identifier) "u08bits" (field_identifier) "TargetId" (;) ";" (field_declaration) "u08bits Reserved4;" (type_identifier) "u08bits" (field_identifier) "Reserved4" (;) ";" (comment) "// @For 64bit alignment " (field_declaration) "u32bits PartitionNo;" (type_identifier) "u32bits" (field_identifier) "PartitionNo" (;) ";" (field_declaration) "u08bits LastPartitionNo;" (type_identifier) "u08bits" (field_identifier) "LastPartitionNo" (;) ";" (field_declaration) "u08bits DiskNo;" (type_identifier) "u08bits" (field_identifier) "DiskNo" (;) ";" (field_declaration) "u08bits PartitionType;" (type_identifier) "u08bits" (field_identifier) "PartitionType" (;) ";" (field_declaration) "u08bits SectorShift;" (type_identifier) "u08bits" (field_identifier) "SectorShift" (;) ";" (field_declaration) "u32bits BytesPerSector;" (type_identifier) "u32bits" (field_identifier) "BytesPerSector" (;) ";" (field_declaration) "u32bits BytesPerSectorMask;" (type_identifier) "u32bits" (field_identifier) "BytesPerSectorMask" (;) ";" (}) "}" (type_identifier) "MLXDISK_DEVICE_EXTENSION" (,) "," (pointer_declarator) "*PMLXDISK_DEVICE_EXTENSION" (*) "*" (type_identifier) "PMLXDISK_DEVICE_EXTENSION" (;) ";" (type_definition) "typedef struct _MIOC_REQ_HEADER { \n \n SRB_IO_CONTROL SrbIoctl; \n ULONG Command; \n \n} MIOC_REQ_HEADER, *PMIOC_REQ_HEADER;" (typedef) "typedef" (struct_specifier) "struct _MIOC_REQ_HEADER { \n \n SRB_IO_CONTROL SrbIoctl; \n ULONG Command; \n \n}" (struct) "struct" (type_identifier) "_MIOC_REQ_HEADER" (field_declaration_list) "{ \n \n SRB_IO_CONTROL SrbIoctl; \n ULONG Command; \n \n}" ({) "{" (field_declaration) "SRB_IO_CONTROL SrbIoctl;" (type_identifier) "SRB_IO_CONTROL" (field_identifier) "SrbIoctl" (;) ";" (field_declaration) "ULONG Command;" (type_identifier) "ULONG" (field_identifier) "Command" (;) ";" (}) "}" (type_identifier) "MIOC_REQ_HEADER" (,) "," (pointer_declarator) "*PMIOC_REQ_HEADER" (*) "*" (type_identifier) "PMIOC_REQ_HEADER" (;) ";" (preproc_def) "#define MLX_REQ_DATA_SIZE 1024 \n" (#define) "#define" (identifier) "MLX_REQ_DATA_SIZE" (preproc_arg) "1024 " (type_definition) "typedef struct _MLX_REQ { \n MIOC_REQ_HEADER MiocReqHeader; \n UCHAR Data[MLX_REQ_DATA_SIZE]; \n} MLX_REQ;" (typedef) "typedef" (struct_specifier) "struct _MLX_REQ { \n MIOC_REQ_HEADER MiocReqHeader; \n UCHAR Data[MLX_REQ_DATA_SIZE]; \n}" (struct) "struct" (type_identifier) "_MLX_REQ" (field_declaration_list) "{ \n MIOC_REQ_HEADER MiocReqHeader; \n UCHAR Data[MLX_REQ_DATA_SIZE]; \n}" ({) "{" (field_declaration) "MIOC_REQ_HEADER MiocReqHeader;" (type_identifier) "MIOC_REQ_HEADER" (field_identifier) "MiocReqHeader" (;) ";" (field_declaration) "UCHAR Data[MLX_REQ_DATA_SIZE];" (type_identifier) "UCHAR" (array_declarator) "Data[MLX_REQ_DATA_SIZE]" (field_identifier) "Data" ([) "[" (identifier) "MLX_REQ_DATA_SIZE" (]) "]" (;) ";" (}) "}" (type_identifier) "MLX_REQ" (;) ";" (type_definition) "typedef struct _MLX_COMPLETION_CONTEXT { \n SCSI_REQUEST_BLOCK Srb; \n MDL Mdl; \n ULONG Pages[4]; \n KEVENT Event; \n IO_STATUS_BLOCK IoStatusBlock; \n union _generic_buffer { \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n } buf; \n \n} MLX_COMPLETION_CONTEXT, *PMLX_COMPLETION_CONTEXT;" (typedef) "typedef" (struct_specifier) "struct _MLX_COMPLETION_CONTEXT { \n SCSI_REQUEST_BLOCK Srb; \n MDL Mdl; \n ULONG Pages[4]; \n KEVENT Event; \n IO_STATUS_BLOCK IoStatusBlock; \n union _generic_buffer { \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n } buf; \n \n}" (struct) "struct" (type_identifier) "_MLX_COMPLETION_CONTEXT" (field_declaration_list) "{ \n SCSI_REQUEST_BLOCK Srb; \n MDL Mdl; \n ULONG Pages[4]; \n KEVENT Event; \n IO_STATUS_BLOCK IoStatusBlock; \n union _generic_buffer { \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n } buf; \n \n}" ({) "{" (field_declaration) "SCSI_REQUEST_BLOCK Srb;" (type_identifier) "SCSI_REQUEST_BLOCK" (field_identifier) "Srb" (;) ";" (field_declaration) "MDL Mdl;" (type_identifier) "MDL" (field_identifier) "Mdl" (;) ";" (field_declaration) "ULONG Pages[4];" (type_identifier) "ULONG" (array_declarator) "Pages[4]" (field_identifier) "Pages" ([) "[" (number_literal) "4" (]) "]" (;) ";" (field_declaration) "KEVENT Event;" (type_identifier) "KEVENT" (field_identifier) "Event" (;) ";" (field_declaration) "IO_STATUS_BLOCK IoStatusBlock;" (type_identifier) "IO_STATUS_BLOCK" (field_identifier) "IoStatusBlock" (;) ";" (field_declaration) "union _generic_buffer { \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n } buf;" (union_specifier) "union _generic_buffer { \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n }" (union) "union" (type_identifier) "_generic_buffer" (field_declaration_list) "{ \n DISK_GEOMETRY DiskGeometry; \n PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1]; \n UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE]; \n UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]; \n UCHAR ScsiBusData[INQUIRY_DATA_SIZE]; \n MLX_REQ MlxIoctlRequest; \n }" ({) "{" (field_declaration) "DISK_GEOMETRY DiskGeometry;" (type_identifier) "DISK_GEOMETRY" (field_identifier) "DiskGeometry" (;) ";" (field_declaration) "PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];" (type_identifier) "PARTITION_INFORMATION" (array_declarator) "PartitionInformation[MAX_MLX_DISK_DEVICES + 1]" (field_identifier) "PartitionInformation" ([) "[" (binary_expression) "MAX_MLX_DISK_DEVICES + 1" (identifier) "MAX_MLX_DISK_DEVICES" (+) "+" (number_literal) "1" (]) "]" (;) ";" (field_declaration) "UCHAR InquiryDataPtr[INQUIRYDATABUFFERSIZE];" (type_identifier) "UCHAR" (array_declarator) "InquiryDataPtr[INQUIRYDATABUFFERSIZE]" (field_identifier) "InquiryDataPtr" ([) "[" (identifier) "INQUIRYDATABUFFERSIZE" (]) "]" (;) ";" (field_declaration) "UCHAR ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];" (type_identifier) "UCHAR" (array_declarator) "ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]" (field_identifier) "ReadCapacityBuffer" ([) "[" (sizeof_expression) "sizeof(READ_CAPACITY_DATA)" (sizeof) "sizeof" (parenthesized_expression) "(READ_CAPACITY_DATA)" (() "(" (identifier) "READ_CAPACITY_DATA" ()) ")" (]) "]" (;) ";" (field_declaration) "UCHAR ScsiBusData[INQUIRY_DATA_SIZE];" (type_identifier) "UCHAR" (array_declarator) "ScsiBusData[INQUIRY_DATA_SIZE]" (field_identifier) "ScsiBusData" ([) "[" (identifier) "INQUIRY_DATA_SIZE" (]) "]" (;) ";" (field_declaration) "MLX_REQ MlxIoctlRequest;" (type_identifier) "MLX_REQ" (field_identifier) "MlxIoctlRequest" (;) ";" (}) "}" (field_identifier) "buf" (;) ";" (}) "}" (type_identifier) "MLX_COMPLETION_CONTEXT" (,) "," (pointer_declarator) "*PMLX_COMPLETION_CONTEXT" (*) "*" (type_identifier) "PMLX_COMPLETION_CONTEXT" (;) ";" (preproc_def) "#define MAX_MLX_CTRL 32 \n" (#define) "#define" (identifier) "MAX_MLX_CTRL" (preproc_arg) "32 " (preproc_def) "#define MLX_CTRL_STATE_ENLISTED 0x00000001 \n" (#define) "#define" (identifier) "MLX_CTRL_STATE_ENLISTED" (preproc_arg) "0x00000001 " (preproc_def) "#define MLX_CTRL_STATE_INITIALIZED 0x00000002 \n" (#define) "#define" (identifier) "MLX_CTRL_STATE_INITIALIZED" (preproc_arg) "0x00000002 " (type_definition) "typedef struct { \n ULONG State; \n ULONG ControllerNo; \n ULONG PortNumber; \n} MLX_CTRL_INFO;" (typedef) "typedef" (struct_specifier) "struct { \n ULONG State; \n ULONG ControllerNo; \n ULONG PortNumber; \n}" (struct) "struct" (field_declaration_list) "{ \n ULONG State; \n ULONG ControllerNo; \n ULONG PortNumber; \n}" ({) "{" (field_declaration) "ULONG State;" (type_identifier) "ULONG" (field_identifier) "State" (;) ";" (field_declaration) "ULONG ControllerNo;" (type_identifier) "ULONG" (field_identifier) "ControllerNo" (;) ";" (field_declaration) "ULONG PortNumber;" (type_identifier) "ULONG" (field_identifier) "PortNumber" (;) ";" (}) "}" (type_identifier) "MLX_CTRL_INFO" (;) ";" (type_definition) "typedef struct { \n PVOID CtrlPtr; \n PVOID AdpObj; \n UCHAR CtrlNo; \n UCHAR MaxMapReg; \n USHORT Reserved; \n// mdac_req_t *FreeReqList; \n// mdac_req_t *CompReqHead; \n// PIRP IrpQueHead; \n// PIRP IrpQueTail; \n// PKDPC Dpc; \n} MLX_MDAC_INFO, *PMLX_MDAC_INFO;" (typedef) "typedef" (struct_specifier) "struct { \n PVOID CtrlPtr; \n PVOID AdpObj; \n UCHAR CtrlNo; \n UCHAR MaxMapReg; \n USHORT Reserved; \n// mdac_req_t *FreeReqList; \n// mdac_req_t *CompReqHead; \n// PIRP IrpQueHead; \n// PIRP IrpQueTail; \n// PKDPC Dpc; \n}" (struct) "struct" (field_declaration_list) "{ \n PVOID CtrlPtr; \n PVOID AdpObj; \n UCHAR CtrlNo; \n UCHAR MaxMapReg; \n USHORT Reserved; \n// mdac_req_t *FreeReqList; \n// mdac_req_t *CompReqHead; \n// PIRP IrpQueHead; \n// PIRP IrpQueTail; \n// PKDPC Dpc; \n}" ({) "{" (field_declaration) "PVOID CtrlPtr;" (type_identifier) "PVOID" (field_identifier) "CtrlPtr" (;) ";" (field_declaration) "PVOID AdpObj;" (type_identifier) "PVOID" (field_identifier) "AdpObj" (;) ";" (field_declaration) "UCHAR CtrlNo;" (type_identifier) "UCHAR" (field_identifier) "CtrlNo" (;) ";" (field_declaration) "UCHAR MaxMapReg;" (type_identifier) "UCHAR" (field_identifier) "MaxMapReg" (;) ";" (field_declaration) "USHORT Reserved;" (type_identifier) "USHORT" (field_identifier) "Reserved" (;) ";" (comment) "// mdac_req_t *FreeReqList; " (comment) "// mdac_req_t *CompReqHead; " (comment) "// PIRP IrpQueHead; " (comment) "// PIRP IrpQueTail; " (comment) "// PKDPC Dpc; " (}) "}" (type_identifier) "MLX_MDAC_INFO" (,) "," (pointer_declarator) "*PMLX_MDAC_INFO" (*) "*" (type_identifier) "PMLX_MDAC_INFO" (;) ";" (preproc_def) "#define MLX_MAX_REQ_BUF 512 // Per Controller \n" (#define) "#define" (identifier) "MLX_MAX_REQ_BUF" (preproc_arg) "512 // Per Controller " (preproc_def) "#define MLX_MAX_IRP_TRACE 0x1000 \n" (#define) "#define" (identifier) "MLX_MAX_IRP_TRACE" (preproc_arg) "0x1000 " (preproc_def) "#define MLX_MAX_IRP_TRACE_MASK (MLX_MAX_IRP_TRACE -1) \n" (#define) "#define" (identifier) "MLX_MAX_IRP_TRACE_MASK" (preproc_arg) "(MLX_MAX_IRP_TRACE -1) " (type_definition) "typedef struct { \n ULONG Tx1; \n ULONG Tx2; \n ULONG Tx3; \n ULONG Rx; \n} IRP_TRACE_INFO;" (typedef) "typedef" (struct_specifier) "struct { \n ULONG Tx1; \n ULONG Tx2; \n ULONG Tx3; \n ULONG Rx; \n}" (struct) "struct" (field_declaration_list) "{ \n ULONG Tx1; \n ULONG Tx2; \n ULONG Tx3; \n ULONG Rx; \n}" ({) "{" (field_declaration) "ULONG Tx1;" (type_identifier) "ULONG" (field_identifier) "Tx1" (;) ";" (field_declaration) "ULONG Tx2;" (type_identifier) "ULONG" (field_identifier) "Tx2" (;) ";" (field_declaration) "ULONG Tx3;" (type_identifier) "ULONG" (field_identifier) "Tx3" (;) ";" (field_declaration) "ULONG Rx;" (type_identifier) "ULONG" (field_identifier) "Rx" (;) ";" (}) "}" (type_identifier) "IRP_TRACE_INFO" (;) ";" (#endif) "#endif" (comment) "// _MLXDISK_H "
411
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 30.18, "nodes": 286, "errors": 0, "source_hash": "a1541e9a3eafcf9b2625c7932f9b5d726a2abe9e6c4fa29341db7856e37479dc", "categorized_nodes": 227}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _MLXDISK_H\r\n\r\n#define _MLXDISK_H\r\n\r\n\r\n#define INQUIRY_DATA_SIZE\t2048\r\n#define MAX_MLX_DISK_DEVICES\t256\r\n\r\n// Per Partition Information\r\n\r\n#define MLX_DISK_DEVICE_STATE_INITIALIZED\t0x00000001\r\n\r\ntypedef struct _MLX_DISK_EXTENSION {\r\n\r\n\tPDEVICE_OBJECT DeviceObject;\r\n\tPDEVICE_OBJECT TargetDeviceObject;\r\n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K\r\n ULONG (*ReadWrite)();\r\n\tULONG\t Reserved[2];\r\n\r\n\tLARGE_INTEGER StartingOffset;\r\n\tLARGE_INTEGER PartitionLength;\r\n\tPIRP\t\t IrpQueHead;\r\n\tPIRP\t\t IrpQueTail;\r\n\tULONG\t\t IrpCount;\r\n\tULONG\t\t Reserved2; // @For 64bit alignment\r\n\r\n KEVENT PagingPathCountEvent; // @For Win2K\r\n ULONG PagingPathCount; // @For Win2K\r\n ULONG Reserved3; // @For 64bit alignment\r\n\r\n\tu32bits State;\r\n\tu08bits ControllerNo;\r\n\tu08bits PathId;\r\n\tu08bits TargetId;\r\n\tu08bits Reserved4; // @For 64bit alignment\r\n\r\n\tu32bits PartitionNo;\r\n\tu08bits LastPartitionNo;\r\n\tu08bits DiskNo;\r\n\tu08bits PartitionType;\r\n\tu08bits SectorShift;\r\n\r\n\tu32bits BytesPerSector;\r\n\tu32bits BytesPerSectorMask;\r\n\r\n} MLXDISK_DEVICE_EXTENSION, *PMLXDISK_DEVICE_EXTENSION;\r\n\r\ntypedef struct _MIOC_REQ_HEADER {\r\n\r\n SRB_IO_CONTROL SrbIoctl;\r\n ULONG\t\tCommand;\r\n\r\n} MIOC_REQ_HEADER, *PMIOC_REQ_HEADER;\r\n\r\n#define\tMLX_REQ_DATA_SIZE 1024\r\ntypedef struct _MLX_REQ {\r\n MIOC_REQ_HEADER MiocReqHeader;\r\n UCHAR Data[MLX_REQ_DATA_SIZE];\r\n} MLX_REQ;\r\n\r\ntypedef struct _MLX_COMPLETION_CONTEXT {\r\n SCSI_REQUEST_BLOCK Srb;\r\n MDL\t Mdl;\r\n ULONG\t\tPages[4];\r\n KEVENT\t\tEvent;\r\n IO_STATUS_BLOCK\tIoStatusBlock;\r\n union _generic_buffer {\r\n\tDISK_GEOMETRY\tDiskGeometry;\r\n\tPARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];\r\n\tUCHAR\t\tInquiryDataPtr[INQUIRYDATABUFFERSIZE];\r\n\tUCHAR\t\tReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];\r\n\tUCHAR ScsiBusData[INQUIRY_DATA_SIZE];\r\n\tMLX_REQ\t\tMlxIoctlRequest;\r\n } buf;\r\n\r\n} MLX_COMPLETION_CONTEXT, *PMLX_COMPLETION_CONTEXT;\r\n\r\n#define MAX_MLX_CTRL\t32\r\n\r\n#define MLX_CTRL_STATE_ENLISTED 0x00000001\r\n#define MLX_CTRL_STATE_INITIALIZED\t0x00000002\r\n\r\ntypedef struct {\r\n ULONG State;\r\n ULONG ControllerNo;\r\n ULONG PortNumber;\r\n} MLX_CTRL_INFO;\r\n\r\ntypedef struct {\r\n PVOID CtrlPtr;\r\n PVOID AdpObj;\r\n UCHAR CtrlNo;\r\n UCHAR MaxMapReg;\r\n USHORT Reserved;\r\n// mdac_req_t *FreeReqList;\r\n// mdac_req_t *CompReqHead;\r\n// PIRP IrpQueHead;\r\n// PIRP IrpQueTail;\r\n// PKDPC Dpc;\r\n} MLX_MDAC_INFO, *PMLX_MDAC_INFO;\r\n\r\n#define\tMLX_MAX_REQ_BUF\t512\t\t// Per Controller\r\n\r\n#define\tMLX_MAX_IRP_TRACE\t0x1000\r\n#define\tMLX_MAX_IRP_TRACE_MASK\t(MLX_MAX_IRP_TRACE -1)\r\ntypedef\tstruct {\r\n\tULONG Tx1;\r\n\tULONG Tx2;\r\n\tULONG Tx3;\r\n\tULONG Rx;\r\n} IRP_TRACE_INFO;\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 18, 112, 127, 131, 145, 207, 211, 215, 219, 233, 256, 260, 264, 268, 285], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 128, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 2, "type": "identifier", "text": "_MLXDISK_H", "parent": 0, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define _MLXDISK_H\r\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": "_MLXDISK_H", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 18}}, {"id": 6, "type": "preproc_def", "text": "#define INQUIRY_DATA_SIZE\t2048\r\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 8, "type": "identifier", "text": "INQUIRY_DATA_SIZE", "parent": 6, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 25}}, {"id": 9, "type": "preproc_arg", "text": "2048\r", "parent": 6, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 31}}, {"id": 10, "type": "preproc_def", "text": "#define MAX_MLX_DISK_DEVICES\t256\r\n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 12, "type": "identifier", "text": "MAX_MLX_DISK_DEVICES", "parent": 10, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 28}}, {"id": 13, "type": "preproc_arg", "text": "256\r", "parent": 10, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 33}}, {"id": 14, "type": "preproc_def", "text": "#define MLX_DISK_DEVICE_STATE_INITIALIZED\t0x00000001\r\n", "parent": 0, "children": [15, 16, 17], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 16, "type": "identifier", "text": "MLX_DISK_DEVICE_STATE_INITIALIZED", "parent": 14, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 41}}, {"id": 17, "type": "preproc_arg", "text": "0x00000001\r", "parent": 14, "children": [], "start_point": {"row": 25, "column": 42}, "end_point": {"row": 25, "column": 53}}, {"id": 18, "type": "type_definition", "text": "typedef struct _MLX_DISK_EXTENSION {\r\n\r\n\tPDEVICE_OBJECT DeviceObject;\r\n\tPDEVICE_OBJECT TargetDeviceObject;\r\n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K\r\n ULONG (*ReadWrite)();\r\n\tULONG\t Reserved[2];\r\n\r\n\tLARGE_INTEGER StartingOffset;\r\n\tLARGE_INTEGER PartitionLength;\r\n\tPIRP\t\t IrpQueHead;\r\n\tPIRP\t\t IrpQueTail;\r\n\tULONG\t\t IrpCount;\r\n\tULONG\t\t Reserved2; // @For 64bit alignment\r\n\r\n KEVENT PagingPathCountEvent; // @For Win2K\r\n ULONG PagingPathCount; // @For Win2K\r\n ULONG Reserved3; // @For 64bit alignment\r\n\r\n\tu32bits State;\r\n\tu08bits ControllerNo;\r\n\tu08bits PathId;\r\n\tu08bits TargetId;\r\n\tu08bits Reserved4; // @For 64bit alignment\r\n\r\n\tu32bits PartitionNo;\r\n\tu08bits LastPartitionNo;\r\n\tu08bits DiskNo;\r\n\tu08bits PartitionType;\r\n\tu08bits SectorShift;\r\n\r\n\tu32bits BytesPerSector;\r\n\tu32bits BytesPerSectorMask;\r\n\r\n} MLXDISK_DEVICE_EXTENSION, *PMLXDISK_DEVICE_EXTENSION;", "parent": 0, "children": [19, 20, 108, 109], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 61, "column": 55}}, {"id": 19, "type": "typedef", "text": "typedef", "parent": 18, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 20, "type": "struct_specifier", "text": "struct _MLX_DISK_EXTENSION {\r\n\r\n\tPDEVICE_OBJECT DeviceObject;\r\n\tPDEVICE_OBJECT TargetDeviceObject;\r\n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K\r\n ULONG (*ReadWrite)();\r\n\tULONG\t Reserved[2];\r\n\r\n\tLARGE_INTEGER StartingOffset;\r\n\tLARGE_INTEGER PartitionLength;\r\n\tPIRP\t\t IrpQueHead;\r\n\tPIRP\t\t IrpQueTail;\r\n\tULONG\t\t IrpCount;\r\n\tULONG\t\t Reserved2; // @For 64bit alignment\r\n\r\n KEVENT PagingPathCountEvent; // @For Win2K\r\n ULONG PagingPathCount; // @For Win2K\r\n ULONG Reserved3; // @For 64bit alignment\r\n\r\n\tu32bits State;\r\n\tu08bits ControllerNo;\r\n\tu08bits PathId;\r\n\tu08bits TargetId;\r\n\tu08bits Reserved4; // @For 64bit alignment\r\n\r\n\tu32bits PartitionNo;\r\n\tu08bits LastPartitionNo;\r\n\tu08bits DiskNo;\r\n\tu08bits PartitionType;\r\n\tu08bits SectorShift;\r\n\r\n\tu32bits BytesPerSector;\r\n\tu32bits BytesPerSectorMask;\r\n\r\n}", "parent": 18, "children": [21, 22], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 61, "column": 1}}, {"id": 21, "type": "struct", "text": "struct", "parent": 20, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 14}}, {"id": 22, "type": "type_identifier", "text": "_MLX_DISK_EXTENSION", "parent": 20, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 34}}, {"id": 23, "type": "field_declaration", "text": "PDEVICE_OBJECT DeviceObject;", "parent": 20, "children": [24, 25], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 29}}, {"id": 24, "type": "type_identifier", "text": "PDEVICE_OBJECT", "parent": 23, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 15}}, {"id": 25, "type": "field_identifier", "text": "DeviceObject", "parent": 23, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 28}}, {"id": 26, "type": "field_declaration", "text": "PDEVICE_OBJECT TargetDeviceObject;", "parent": 20, "children": [27, 28], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 35}}, {"id": 27, "type": "type_identifier", "text": "PDEVICE_OBJECT", "parent": 26, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 15}}, {"id": 28, "type": "field_identifier", "text": "TargetDeviceObject", "parent": 26, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 34}}, {"id": 29, "type": "field_declaration", "text": "PDEVICE_OBJECT PhysicalDeviceObject;", "parent": 20, "children": [30, 31], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 40}}, {"id": 30, "type": "type_identifier", "text": "PDEVICE_OBJECT", "parent": 29, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 18}}, {"id": 31, "type": "field_identifier", "text": "PhysicalDeviceObject", "parent": 29, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 39}}, {"id": 32, "type": "field_declaration", "text": "ULONG (*ReadWrite)();", "parent": 20, "children": [33, 34], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 34}}, {"id": 33, "type": "type_identifier", "text": "ULONG", "parent": 32, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 9}}, {"id": 34, "type": "function_declarator", "text": "(*ReadWrite)()", "parent": 32, "children": [35, 39], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 33}}, {"id": 35, "type": "parenthesized_declarator", "text": "(*ReadWrite)", "parent": 34, "children": [36], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 31}}, {"id": 36, "type": "pointer_declarator", "text": "*ReadWrite", "parent": 35, "children": [37, 38], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 30}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 21}}, {"id": 38, "type": "field_identifier", "text": "ReadWrite", "parent": 36, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 30}}, {"id": 39, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 33}}, {"id": 40, "type": "field_declaration", "text": "ULONG\t Reserved[2];", "parent": 20, "children": [41, 42], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 26}}, {"id": 41, "type": "type_identifier", "text": "ULONG", "parent": 40, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 6}}, {"id": 42, "type": "array_declarator", "text": "Reserved[2]", "parent": 40, "children": [43, 44], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 25}}, {"id": 43, "type": "field_identifier", "text": "Reserved", "parent": 42, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 22}}, {"id": 44, "type": "number_literal", "text": "2", "parent": 42, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 24}}, {"id": 45, "type": "field_declaration", "text": "LARGE_INTEGER StartingOffset;", "parent": 20, "children": [46, 47], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 31}}, {"id": 46, "type": "type_identifier", "text": "LARGE_INTEGER", "parent": 45, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 14}}, {"id": 47, "type": "field_identifier", "text": "StartingOffset", "parent": 45, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 30}}, {"id": 48, "type": "field_declaration", "text": "LARGE_INTEGER PartitionLength;", "parent": 20, "children": [49, 50], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 32}}, {"id": 49, "type": "type_identifier", "text": "LARGE_INTEGER", "parent": 48, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 14}}, {"id": 50, "type": "field_identifier", "text": "PartitionLength", "parent": 48, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 31}}, {"id": 51, "type": "field_declaration", "text": "PIRP\t\t IrpQueHead;", "parent": 20, "children": [52, 53], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 21}}, {"id": 52, "type": "type_identifier", "text": "PIRP", "parent": 51, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 5}}, {"id": 53, "type": "field_identifier", "text": "IrpQueHead", "parent": 51, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 20}}, {"id": 54, "type": "field_declaration", "text": "PIRP\t\t IrpQueTail;", "parent": 20, "children": [55, 56], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 21}}, {"id": 55, "type": "type_identifier", "text": "PIRP", "parent": 54, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 56, "type": "field_identifier", "text": "IrpQueTail", "parent": 54, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 20}}, {"id": 57, "type": "field_declaration", "text": "ULONG\t\t IrpCount;", "parent": 20, "children": [58, 59], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 20}}, {"id": 58, "type": "type_identifier", "text": "ULONG", "parent": 57, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 6}}, {"id": 59, "type": "field_identifier", "text": "IrpCount", "parent": 57, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 19}}, {"id": 60, "type": "field_declaration", "text": "ULONG\t\t Reserved2;", "parent": 20, "children": [61, 62], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 21}}, {"id": 61, "type": "type_identifier", "text": "ULONG", "parent": 60, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 6}}, {"id": 62, "type": "field_identifier", "text": "Reserved2", "parent": 60, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 20}}, {"id": 63, "type": "field_declaration", "text": "KEVENT PagingPathCountEvent;", "parent": 20, "children": [64, 65], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 40}}, {"id": 64, "type": "type_identifier", "text": "KEVENT", "parent": 63, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 65, "type": "field_identifier", "text": "PagingPathCountEvent", "parent": 63, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 39}}, {"id": 66, "type": "field_declaration", "text": "ULONG PagingPathCount;", "parent": 20, "children": [67, 68], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 35}}, {"id": 67, "type": "type_identifier", "text": "ULONG", "parent": 66, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 9}}, {"id": 68, "type": "field_identifier", "text": "PagingPathCount", "parent": 66, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 34}}, {"id": 69, "type": "field_declaration", "text": "ULONG Reserved3;", "parent": 20, "children": [70, 71], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 29}}, {"id": 70, "type": "type_identifier", "text": "ULONG", "parent": 69, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 9}}, {"id": 71, "type": "field_identifier", "text": "Reserved3", "parent": 69, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 28}}, {"id": 72, "type": "field_declaration", "text": "u32bits State;", "parent": 20, "children": [73, 74], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 22}}, {"id": 73, "type": "type_identifier", "text": "u32bits", "parent": 72, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 8}}, {"id": 74, "type": "field_identifier", "text": "State", "parent": 72, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 21}}, {"id": 75, "type": "field_declaration", "text": "u08bits ControllerNo;", "parent": 20, "children": [76, 77], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 29}}, {"id": 76, "type": "type_identifier", "text": "u08bits", "parent": 75, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 8}}, {"id": 77, "type": "field_identifier", "text": "ControllerNo", "parent": 75, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 28}}, {"id": 78, "type": "field_declaration", "text": "u08bits PathId;", "parent": 20, "children": [79, 80], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 23}}, {"id": 79, "type": "type_identifier", "text": "u08bits", "parent": 78, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 8}}, {"id": 80, "type": "field_identifier", "text": "PathId", "parent": 78, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 22}}, {"id": 81, "type": "field_declaration", "text": "u08bits TargetId;", "parent": 20, "children": [82, 83], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 25}}, {"id": 82, "type": "type_identifier", "text": "u08bits", "parent": 81, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 8}}, {"id": 83, "type": "field_identifier", "text": "TargetId", "parent": 81, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 24}}, {"id": 84, "type": "field_declaration", "text": "u08bits Reserved4;", "parent": 20, "children": [85, 86], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 26}}, {"id": 85, "type": "type_identifier", "text": "u08bits", "parent": 84, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 8}}, {"id": 86, "type": "field_identifier", "text": "Reserved4", "parent": 84, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 25}}, {"id": 87, "type": "field_declaration", "text": "u32bits PartitionNo;", "parent": 20, "children": [88, 89], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 28}}, {"id": 88, "type": "type_identifier", "text": "u32bits", "parent": 87, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 8}}, {"id": 89, "type": "field_identifier", "text": "PartitionNo", "parent": 87, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 27}}, {"id": 90, "type": "field_declaration", "text": "u08bits LastPartitionNo;", "parent": 20, "children": [91, 92], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 32}}, {"id": 91, "type": "type_identifier", "text": "u08bits", "parent": 90, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 8}}, {"id": 92, "type": "field_identifier", "text": "LastPartitionNo", "parent": 90, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 31}}, {"id": 93, "type": "field_declaration", "text": "u08bits DiskNo;", "parent": 20, "children": [94, 95], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 23}}, {"id": 94, "type": "type_identifier", "text": "u08bits", "parent": 93, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 8}}, {"id": 95, "type": "field_identifier", "text": "DiskNo", "parent": 93, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 22}}, {"id": 96, "type": "field_declaration", "text": "u08bits PartitionType;", "parent": 20, "children": [97, 98], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 30}}, {"id": 97, "type": "type_identifier", "text": "u08bits", "parent": 96, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 8}}, {"id": 98, "type": "field_identifier", "text": "PartitionType", "parent": 96, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 29}}, {"id": 99, "type": "field_declaration", "text": "u08bits SectorShift;", "parent": 20, "children": [100, 101], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 28}}, {"id": 100, "type": "type_identifier", "text": "u08bits", "parent": 99, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 8}}, {"id": 101, "type": "field_identifier", "text": "SectorShift", "parent": 99, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 27}}, {"id": 102, "type": "field_declaration", "text": "u32bits BytesPerSector;", "parent": 20, "children": [103, 104], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 31}}, {"id": 103, "type": "type_identifier", "text": "u32bits", "parent": 102, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 8}}, {"id": 104, "type": "field_identifier", "text": "BytesPerSector", "parent": 102, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 30}}, {"id": 105, "type": "field_declaration", "text": "u32bits BytesPerSectorMask;", "parent": 20, "children": [106, 107], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 35}}, {"id": 106, "type": "type_identifier", "text": "u32bits", "parent": 105, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 8}}, {"id": 107, "type": "field_identifier", "text": "BytesPerSectorMask", "parent": 105, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 34}}, {"id": 108, "type": "type_identifier", "text": "MLXDISK_DEVICE_EXTENSION", "parent": 18, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 26}}, {"id": 109, "type": "pointer_declarator", "text": "*PMLXDISK_DEVICE_EXTENSION", "parent": 18, "children": [110, 111], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 54}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 29}}, {"id": 111, "type": "type_identifier", "text": "PMLXDISK_DEVICE_EXTENSION", "parent": 109, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 54}}, {"id": 112, "type": "type_definition", "text": "typedef struct _MIOC_REQ_HEADER {\r\n\r\n SRB_IO_CONTROL SrbIoctl;\r\n ULONG\t\tCommand;\r\n\r\n} MIOC_REQ_HEADER, *PMIOC_REQ_HEADER;", "parent": 0, "children": [113, 114, 123, 124], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 68, "column": 37}}, {"id": 113, "type": "typedef", "text": "typedef", "parent": 112, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 114, "type": "struct_specifier", "text": "struct _MIOC_REQ_HEADER {\r\n\r\n SRB_IO_CONTROL SrbIoctl;\r\n ULONG\t\tCommand;\r\n\r\n}", "parent": 112, "children": [115, 116], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 68, "column": 1}}, {"id": 115, "type": "struct", "text": "struct", "parent": 114, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 116, "type": "type_identifier", "text": "_MIOC_REQ_HEADER", "parent": 114, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 31}}, {"id": 117, "type": "field_declaration", "text": "SRB_IO_CONTROL SrbIoctl;", "parent": 114, "children": [118, 119], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 33}}, {"id": 118, "type": "type_identifier", "text": "SRB_IO_CONTROL", "parent": 117, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 22}}, {"id": 119, "type": "field_identifier", "text": "SrbIoctl", "parent": 117, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 32}}, {"id": 120, "type": "field_declaration", "text": "ULONG\t\tCommand;", "parent": 114, "children": [121, 122], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 23}}, {"id": 121, "type": "type_identifier", "text": "ULONG", "parent": 120, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 13}}, {"id": 122, "type": "field_identifier", "text": "Command", "parent": 120, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 22}}, {"id": 123, "type": "type_identifier", "text": "MIOC_REQ_HEADER", "parent": 112, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 17}}, {"id": 124, "type": "pointer_declarator", "text": "*PMIOC_REQ_HEADER", "parent": 112, "children": [125, 126], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 36}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 20}}, {"id": 126, "type": "type_identifier", "text": "PMIOC_REQ_HEADER", "parent": 124, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 36}}, {"id": 127, "type": "preproc_def", "text": "#define\tMLX_REQ_DATA_SIZE 1024\r\n", "parent": 0, "children": [128, 129, 130], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 128, "type": "#define", "text": "#define", "parent": 127, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 7}}, {"id": 129, "type": "identifier", "text": "MLX_REQ_DATA_SIZE", "parent": 127, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 25}}, {"id": 130, "type": "preproc_arg", "text": "1024\r", "parent": 127, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 31}}, {"id": 131, "type": "type_definition", "text": "typedef struct _MLX_REQ {\r\n MIOC_REQ_HEADER MiocReqHeader;\r\n UCHAR Data[MLX_REQ_DATA_SIZE];\r\n} MLX_REQ;", "parent": 0, "children": [132, 133, 144], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 74, "column": 10}}, {"id": 132, "type": "typedef", "text": "typedef", "parent": 131, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 133, "type": "struct_specifier", "text": "struct _MLX_REQ {\r\n MIOC_REQ_HEADER MiocReqHeader;\r\n UCHAR Data[MLX_REQ_DATA_SIZE];\r\n}", "parent": 131, "children": [134, 135], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 74, "column": 1}}, {"id": 134, "type": "struct", "text": "struct", "parent": 133, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 135, "type": "type_identifier", "text": "_MLX_REQ", "parent": 133, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 23}}, {"id": 136, "type": "field_declaration", "text": "MIOC_REQ_HEADER MiocReqHeader;", "parent": 133, "children": [137, 138], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 34}}, {"id": 137, "type": "type_identifier", "text": "MIOC_REQ_HEADER", "parent": 136, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 19}}, {"id": 138, "type": "field_identifier", "text": "MiocReqHeader", "parent": 136, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 33}}, {"id": 139, "type": "field_declaration", "text": "UCHAR Data[MLX_REQ_DATA_SIZE];", "parent": 133, "children": [140, 141], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 34}}, {"id": 140, "type": "type_identifier", "text": "UCHAR", "parent": 139, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 9}}, {"id": 141, "type": "array_declarator", "text": "Data[MLX_REQ_DATA_SIZE]", "parent": 139, "children": [142, 143], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 33}}, {"id": 142, "type": "field_identifier", "text": "Data", "parent": 141, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 14}}, {"id": 143, "type": "identifier", "text": "MLX_REQ_DATA_SIZE", "parent": 141, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 32}}, {"id": 144, "type": "type_identifier", "text": "MLX_REQ", "parent": 131, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 9}}, {"id": 145, "type": "type_definition", "text": "typedef struct _MLX_COMPLETION_CONTEXT {\r\n SCSI_REQUEST_BLOCK Srb;\r\n MDL\t Mdl;\r\n ULONG\t\tPages[4];\r\n KEVENT\t\tEvent;\r\n IO_STATUS_BLOCK\tIoStatusBlock;\r\n union _generic_buffer {\r\n\tDISK_GEOMETRY\tDiskGeometry;\r\n\tPARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];\r\n\tUCHAR\t\tInquiryDataPtr[INQUIRYDATABUFFERSIZE];\r\n\tUCHAR\t\tReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];\r\n\tUCHAR ScsiBusData[INQUIRY_DATA_SIZE];\r\n\tMLX_REQ\t\tMlxIoctlRequest;\r\n } buf;\r\n\r\n} MLX_COMPLETION_CONTEXT, *PMLX_COMPLETION_CONTEXT;", "parent": 0, "children": [146, 147, 203, 204], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 91, "column": 51}}, {"id": 146, "type": "typedef", "text": "typedef", "parent": 145, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 7}}, {"id": 147, "type": "struct_specifier", "text": "struct _MLX_COMPLETION_CONTEXT {\r\n SCSI_REQUEST_BLOCK Srb;\r\n MDL\t Mdl;\r\n ULONG\t\tPages[4];\r\n KEVENT\t\tEvent;\r\n IO_STATUS_BLOCK\tIoStatusBlock;\r\n union _generic_buffer {\r\n\tDISK_GEOMETRY\tDiskGeometry;\r\n\tPARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];\r\n\tUCHAR\t\tInquiryDataPtr[INQUIRYDATABUFFERSIZE];\r\n\tUCHAR\t\tReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];\r\n\tUCHAR ScsiBusData[INQUIRY_DATA_SIZE];\r\n\tMLX_REQ\t\tMlxIoctlRequest;\r\n } buf;\r\n\r\n}", "parent": 145, "children": [148, 149], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 91, "column": 1}}, {"id": 148, "type": "struct", "text": "struct", "parent": 147, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 14}}, {"id": 149, "type": "type_identifier", "text": "_MLX_COMPLETION_CONTEXT", "parent": 147, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 38}}, {"id": 150, "type": "field_declaration", "text": "SCSI_REQUEST_BLOCK Srb;", "parent": 147, "children": [151, 152], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 28}}, {"id": 151, "type": "type_identifier", "text": "SCSI_REQUEST_BLOCK", "parent": 150, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 22}}, {"id": 152, "type": "field_identifier", "text": "Srb", "parent": 150, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 27}}, {"id": 153, "type": "field_declaration", "text": "MDL\t Mdl;", "parent": 147, "children": [154, 155], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 28}}, {"id": 154, "type": "type_identifier", "text": "MDL", "parent": 153, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 7}}, {"id": 155, "type": "field_identifier", "text": "Mdl", "parent": 153, "children": [], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 27}}, {"id": 156, "type": "field_declaration", "text": "ULONG\t\tPages[4];", "parent": 147, "children": [157, 158], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 20}}, {"id": 157, "type": "type_identifier", "text": "ULONG", "parent": 156, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 9}}, {"id": 158, "type": "array_declarator", "text": "Pages[4]", "parent": 156, "children": [159, 160], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 19}}, {"id": 159, "type": "field_identifier", "text": "Pages", "parent": 158, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 16}}, {"id": 160, "type": "number_literal", "text": "4", "parent": 158, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 18}}, {"id": 161, "type": "field_declaration", "text": "KEVENT\t\tEvent;", "parent": 147, "children": [162, 163], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 18}}, {"id": 162, "type": "type_identifier", "text": "KEVENT", "parent": 161, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 10}}, {"id": 163, "type": "field_identifier", "text": "Event", "parent": 161, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 17}}, {"id": 164, "type": "field_declaration", "text": "IO_STATUS_BLOCK\tIoStatusBlock;", "parent": 147, "children": [165, 166], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 34}}, {"id": 165, "type": "type_identifier", "text": "IO_STATUS_BLOCK", "parent": 164, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 19}}, {"id": 166, "type": "field_identifier", "text": "IoStatusBlock", "parent": 164, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 33}}, {"id": 167, "type": "field_declaration", "text": "union _generic_buffer {\r\n\tDISK_GEOMETRY\tDiskGeometry;\r\n\tPARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];\r\n\tUCHAR\t\tInquiryDataPtr[INQUIRYDATABUFFERSIZE];\r\n\tUCHAR\t\tReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];\r\n\tUCHAR ScsiBusData[INQUIRY_DATA_SIZE];\r\n\tMLX_REQ\t\tMlxIoctlRequest;\r\n } buf;", "parent": 147, "children": [168, 202], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 89, "column": 10}}, {"id": 168, "type": "union_specifier", "text": "union _generic_buffer {\r\n\tDISK_GEOMETRY\tDiskGeometry;\r\n\tPARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];\r\n\tUCHAR\t\tInquiryDataPtr[INQUIRYDATABUFFERSIZE];\r\n\tUCHAR\t\tReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];\r\n\tUCHAR ScsiBusData[INQUIRY_DATA_SIZE];\r\n\tMLX_REQ\t\tMlxIoctlRequest;\r\n }", "parent": 167, "children": [169, 170], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 89, "column": 5}}, {"id": 169, "type": "union", "text": "union", "parent": 168, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 9}}, {"id": 170, "type": "type_identifier", "text": "_generic_buffer", "parent": 168, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 25}}, {"id": 171, "type": "field_declaration", "text": "DISK_GEOMETRY\tDiskGeometry;", "parent": 168, "children": [172, 173], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 28}}, {"id": 172, "type": "type_identifier", "text": "DISK_GEOMETRY", "parent": 171, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 14}}, {"id": 173, "type": "field_identifier", "text": "DiskGeometry", "parent": 171, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 27}}, {"id": 174, "type": "field_declaration", "text": "PARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];", "parent": 168, "children": [175, 176], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 70}}, {"id": 175, "type": "type_identifier", "text": "PARTITION_INFORMATION", "parent": 174, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 22}}, {"id": 176, "type": "array_declarator", "text": "PartitionInformation[MAX_MLX_DISK_DEVICES + 1]", "parent": 174, "children": [177, 178], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 69}}, {"id": 177, "type": "field_identifier", "text": "PartitionInformation", "parent": 176, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 43}}, {"id": 178, "type": "binary_expression", "text": "MAX_MLX_DISK_DEVICES + 1", "parent": 176, "children": [179, 180, 181], "start_point": {"row": 84, "column": 44}, "end_point": {"row": 84, "column": 68}}, {"id": 179, "type": "identifier", "text": "MAX_MLX_DISK_DEVICES", "parent": 178, "children": [], "start_point": {"row": 84, "column": 44}, "end_point": {"row": 84, "column": 64}}, {"id": 180, "type": "+", "text": "+", "parent": 178, "children": [], "start_point": {"row": 84, "column": 65}, "end_point": {"row": 84, "column": 66}}, {"id": 181, "type": "number_literal", "text": "1", "parent": 178, "children": [], "start_point": {"row": 84, "column": 67}, "end_point": {"row": 84, "column": 68}}, {"id": 182, "type": "field_declaration", "text": "UCHAR\t\tInquiryDataPtr[INQUIRYDATABUFFERSIZE];", "parent": 168, "children": [183, 184], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 46}}, {"id": 183, "type": "type_identifier", "text": "UCHAR", "parent": 182, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 6}}, {"id": 184, "type": "array_declarator", "text": "InquiryDataPtr[INQUIRYDATABUFFERSIZE]", "parent": 182, "children": [185, 186], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 45}}, {"id": 185, "type": "field_identifier", "text": "InquiryDataPtr", "parent": 184, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 22}}, {"id": 186, "type": "identifier", "text": "INQUIRYDATABUFFERSIZE", "parent": 184, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 44}}, {"id": 187, "type": "field_declaration", "text": "UCHAR\t\tReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];", "parent": 168, "children": [188, 189], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 55}}, {"id": 188, "type": "type_identifier", "text": "UCHAR", "parent": 187, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 6}}, {"id": 189, "type": "array_declarator", "text": "ReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)]", "parent": 187, "children": [190, 191], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 54}}, {"id": 190, "type": "field_identifier", "text": "ReadCapacityBuffer", "parent": 189, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 26}}, {"id": 191, "type": "sizeof_expression", "text": "sizeof(READ_CAPACITY_DATA)", "parent": 189, "children": [192], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 53}}, {"id": 192, "type": "parenthesized_expression", "text": "(READ_CAPACITY_DATA)", "parent": 191, "children": [193], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 53}}, {"id": 193, "type": "identifier", "text": "READ_CAPACITY_DATA", "parent": 192, "children": [], "start_point": {"row": 86, "column": 34}, "end_point": {"row": 86, "column": 52}}, {"id": 194, "type": "field_declaration", "text": "UCHAR ScsiBusData[INQUIRY_DATA_SIZE];", "parent": 168, "children": [195, 196], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 48}}, {"id": 195, "type": "type_identifier", "text": "UCHAR", "parent": 194, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 6}}, {"id": 196, "type": "array_declarator", "text": "ScsiBusData[INQUIRY_DATA_SIZE]", "parent": 194, "children": [197, 198], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 47}}, {"id": 197, "type": "field_identifier", "text": "ScsiBusData", "parent": 196, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 28}}, {"id": 198, "type": "identifier", "text": "INQUIRY_DATA_SIZE", "parent": 196, "children": [], "start_point": {"row": 87, "column": 29}, "end_point": {"row": 87, "column": 46}}, {"id": 199, "type": "field_declaration", "text": "MLX_REQ\t\tMlxIoctlRequest;", "parent": 168, "children": [200, 201], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 26}}, {"id": 200, "type": "type_identifier", "text": "MLX_REQ", "parent": 199, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 8}}, {"id": 201, "type": "field_identifier", "text": "MlxIoctlRequest", "parent": 199, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 25}}, {"id": 202, "type": "field_identifier", "text": "buf", "parent": 167, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 9}}, {"id": 203, "type": "type_identifier", "text": "MLX_COMPLETION_CONTEXT", "parent": 145, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 24}}, {"id": 204, "type": "pointer_declarator", "text": "*PMLX_COMPLETION_CONTEXT", "parent": 145, "children": [205, 206], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 50}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 27}}, {"id": 206, "type": "type_identifier", "text": "PMLX_COMPLETION_CONTEXT", "parent": 204, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 50}}, {"id": 207, "type": "preproc_def", "text": "#define MAX_MLX_CTRL\t32\r\n", "parent": 0, "children": [208, 209, 210], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 208, "type": "#define", "text": "#define", "parent": 207, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 7}}, {"id": 209, "type": "identifier", "text": "MAX_MLX_CTRL", "parent": 207, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 20}}, {"id": 210, "type": "preproc_arg", "text": "32\r", "parent": 207, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 24}}, {"id": 211, "type": "preproc_def", "text": "#define MLX_CTRL_STATE_ENLISTED 0x00000001\r\n", "parent": 0, "children": [212, 213, 214], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 0}}, {"id": 212, "type": "#define", "text": "#define", "parent": 211, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 213, "type": "identifier", "text": "MLX_CTRL_STATE_ENLISTED", "parent": 211, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 31}}, {"id": 214, "type": "preproc_arg", "text": "0x00000001\r", "parent": 211, "children": [], "start_point": {"row": 95, "column": 36}, "end_point": {"row": 95, "column": 47}}, {"id": 215, "type": "preproc_def", "text": "#define MLX_CTRL_STATE_INITIALIZED\t0x00000002\r\n", "parent": 0, "children": [216, 217, 218], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 216, "type": "#define", "text": "#define", "parent": 215, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 7}}, {"id": 217, "type": "identifier", "text": "MLX_CTRL_STATE_INITIALIZED", "parent": 215, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 34}}, {"id": 218, "type": "preproc_arg", "text": "0x00000002\r", "parent": 215, "children": [], "start_point": {"row": 96, "column": 35}, "end_point": {"row": 96, "column": 46}}, {"id": 219, "type": "type_definition", "text": "typedef struct {\r\n ULONG State;\r\n ULONG ControllerNo;\r\n ULONG PortNumber;\r\n} MLX_CTRL_INFO;", "parent": 0, "children": [220, 221, 232], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 102, "column": 16}}, {"id": 220, "type": "typedef", "text": "typedef", "parent": 219, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 221, "type": "struct_specifier", "text": "struct {\r\n ULONG State;\r\n ULONG ControllerNo;\r\n ULONG PortNumber;\r\n}", "parent": 219, "children": [222], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 102, "column": 1}}, {"id": 222, "type": "struct", "text": "struct", "parent": 221, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 223, "type": "field_declaration", "text": "ULONG State;", "parent": 221, "children": [224, 225], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 16}}, {"id": 224, "type": "type_identifier", "text": "ULONG", "parent": 223, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 9}}, {"id": 225, "type": "field_identifier", "text": "State", "parent": 223, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 15}}, {"id": 226, "type": "field_declaration", "text": "ULONG ControllerNo;", "parent": 221, "children": [227, 228], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 23}}, {"id": 227, "type": "type_identifier", "text": "ULONG", "parent": 226, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 9}}, {"id": 228, "type": "field_identifier", "text": "ControllerNo", "parent": 226, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 22}}, {"id": 229, "type": "field_declaration", "text": "ULONG PortNumber;", "parent": 221, "children": [230, 231], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 21}}, {"id": 230, "type": "type_identifier", "text": "ULONG", "parent": 229, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 9}}, {"id": 231, "type": "field_identifier", "text": "PortNumber", "parent": 229, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 20}}, {"id": 232, "type": "type_identifier", "text": "MLX_CTRL_INFO", "parent": 219, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 15}}, {"id": 233, "type": "type_definition", "text": "typedef struct {\r\n PVOID CtrlPtr;\r\n PVOID AdpObj;\r\n UCHAR CtrlNo;\r\n UCHAR MaxMapReg;\r\n USHORT Reserved;\r\n// mdac_req_t *FreeReqList;\r\n// mdac_req_t *CompReqHead;\r\n// PIRP IrpQueHead;\r\n// PIRP IrpQueTail;\r\n// PKDPC Dpc;\r\n} MLX_MDAC_INFO, *PMLX_MDAC_INFO;", "parent": 0, "children": [234, 235, 252, 253], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 115, "column": 33}}, {"id": 234, "type": "typedef", "text": "typedef", "parent": 233, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 7}}, {"id": 235, "type": "struct_specifier", "text": "struct {\r\n PVOID CtrlPtr;\r\n PVOID AdpObj;\r\n UCHAR CtrlNo;\r\n UCHAR MaxMapReg;\r\n USHORT Reserved;\r\n// mdac_req_t *FreeReqList;\r\n// mdac_req_t *CompReqHead;\r\n// PIRP IrpQueHead;\r\n// PIRP IrpQueTail;\r\n// PKDPC Dpc;\r\n}", "parent": 233, "children": [236], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 115, "column": 1}}, {"id": 236, "type": "struct", "text": "struct", "parent": 235, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 14}}, {"id": 237, "type": "field_declaration", "text": "PVOID CtrlPtr;", "parent": 235, "children": [238, 239], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 18}}, {"id": 238, "type": "type_identifier", "text": "PVOID", "parent": 237, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 9}}, {"id": 239, "type": "field_identifier", "text": "CtrlPtr", "parent": 237, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 17}}, {"id": 240, "type": "field_declaration", "text": "PVOID AdpObj;", "parent": 235, "children": [241, 242], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 17}}, {"id": 241, "type": "type_identifier", "text": "PVOID", "parent": 240, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 9}}, {"id": 242, "type": "field_identifier", "text": "AdpObj", "parent": 240, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 16}}, {"id": 243, "type": "field_declaration", "text": "UCHAR CtrlNo;", "parent": 235, "children": [244, 245], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 17}}, {"id": 244, "type": "type_identifier", "text": "UCHAR", "parent": 243, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 9}}, {"id": 245, "type": "field_identifier", "text": "CtrlNo", "parent": 243, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 16}}, {"id": 246, "type": "field_declaration", "text": "UCHAR MaxMapReg;", "parent": 235, "children": [247, 248], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 20}}, {"id": 247, "type": "type_identifier", "text": "UCHAR", "parent": 246, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 9}}, {"id": 248, "type": "field_identifier", "text": "MaxMapReg", "parent": 246, "children": [], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 19}}, {"id": 249, "type": "field_declaration", "text": "USHORT Reserved;", "parent": 235, "children": [250, 251], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 20}}, {"id": 250, "type": "type_identifier", "text": "USHORT", "parent": 249, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 10}}, {"id": 251, "type": "field_identifier", "text": "Reserved", "parent": 249, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 19}}, {"id": 252, "type": "type_identifier", "text": "MLX_MDAC_INFO", "parent": 233, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 15}}, {"id": 253, "type": "pointer_declarator", "text": "*PMLX_MDAC_INFO", "parent": 233, "children": [254, 255], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 32}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 18}}, {"id": 255, "type": "type_identifier", "text": "PMLX_MDAC_INFO", "parent": 253, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 32}}, {"id": 256, "type": "preproc_def", "text": "#define\tMLX_MAX_REQ_BUF\t512\t\t// Per Controller\r\n", "parent": 0, "children": [257, 258, 259], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 257, "type": "#define", "text": "#define", "parent": 256, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 258, "type": "identifier", "text": "MLX_MAX_REQ_BUF", "parent": 256, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 23}}, {"id": 259, "type": "preproc_arg", "text": "512\t\t// Per Controller\r", "parent": 256, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 47}}, {"id": 260, "type": "preproc_def", "text": "#define\tMLX_MAX_IRP_TRACE\t0x1000\r\n", "parent": 0, "children": [261, 262, 263], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 120, "column": 0}}, {"id": 261, "type": "#define", "text": "#define", "parent": 260, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 7}}, {"id": 262, "type": "identifier", "text": "MLX_MAX_IRP_TRACE", "parent": 260, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 25}}, {"id": 263, "type": "preproc_arg", "text": "0x1000\r", "parent": 260, "children": [], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 33}}, {"id": 264, "type": "preproc_def", "text": "#define\tMLX_MAX_IRP_TRACE_MASK\t(MLX_MAX_IRP_TRACE -1)\r\n", "parent": 0, "children": [265, 266, 267], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 121, "column": 0}}, {"id": 265, "type": "#define", "text": "#define", "parent": 264, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 7}}, {"id": 266, "type": "identifier", "text": "MLX_MAX_IRP_TRACE_MASK", "parent": 264, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 30}}, {"id": 267, "type": "preproc_arg", "text": "(MLX_MAX_IRP_TRACE -1)\r", "parent": 264, "children": [], "start_point": {"row": 120, "column": 31}, "end_point": {"row": 120, "column": 54}}, {"id": 268, "type": "type_definition", "text": "typedef\tstruct {\r\n\tULONG Tx1;\r\n\tULONG Tx2;\r\n\tULONG Tx3;\r\n\tULONG Rx;\r\n} IRP_TRACE_INFO;", "parent": 0, "children": [269, 270, 284], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 126, "column": 17}}, {"id": 269, "type": "typedef", "text": "typedef", "parent": 268, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 7}}, {"id": 270, "type": "struct_specifier", "text": "struct {\r\n\tULONG Tx1;\r\n\tULONG Tx2;\r\n\tULONG Tx3;\r\n\tULONG Rx;\r\n}", "parent": 268, "children": [271], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 126, "column": 1}}, {"id": 271, "type": "struct", "text": "struct", "parent": 270, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 14}}, {"id": 272, "type": "field_declaration", "text": "ULONG Tx1;", "parent": 270, "children": [273, 274], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 11}}, {"id": 273, "type": "type_identifier", "text": "ULONG", "parent": 272, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 6}}, {"id": 274, "type": "field_identifier", "text": "Tx1", "parent": 272, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 10}}, {"id": 275, "type": "field_declaration", "text": "ULONG Tx2;", "parent": 270, "children": [276, 277], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 11}}, {"id": 276, "type": "type_identifier", "text": "ULONG", "parent": 275, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 6}}, {"id": 277, "type": "field_identifier", "text": "Tx2", "parent": 275, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 10}}, {"id": 278, "type": "field_declaration", "text": "ULONG Tx3;", "parent": 270, "children": [279, 280], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 11}}, {"id": 279, "type": "type_identifier", "text": "ULONG", "parent": 278, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 6}}, {"id": 280, "type": "field_identifier", "text": "Tx3", "parent": 278, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 10}}, {"id": 281, "type": "field_declaration", "text": "ULONG Rx;", "parent": 270, "children": [282, 283], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 10}}, {"id": 282, "type": "type_identifier", "text": "ULONG", "parent": 281, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 6}}, {"id": 283, "type": "field_identifier", "text": "Rx", "parent": 281, "children": [], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 9}}, {"id": 284, "type": "type_identifier", "text": "IRP_TRACE_INFO", "parent": 268, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 16}}, {"id": 285, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 6}}]}, "node_categories": {"declarations": {"functions": [34], "variables": [18, 23, 26, 29, 32, 40, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 99, 102, 105, 112, 117, 120, 131, 136, 139, 145, 150, 153, 156, 161, 164, 167, 171, 174, 182, 187, 194, 199, 219, 223, 226, 229, 233, 237, 240, 243, 246, 249, 268, 272, 275, 278, 281], "classes": [20, 21, 114, 115, 133, 134, 147, 148, 168, 169, 221, 222, 235, 236, 270, 271], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [178, 191, 192], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 16, 22, 24, 25, 27, 28, 30, 31, 33, 38, 41, 43, 46, 47, 49, 50, 52, 53, 55, 56, 58, 59, 61, 62, 64, 65, 67, 68, 70, 71, 73, 74, 76, 77, 79, 80, 82, 83, 85, 86, 88, 89, 91, 92, 94, 95, 97, 98, 100, 101, 103, 104, 106, 107, 108, 111, 116, 118, 119, 121, 122, 123, 126, 129, 135, 137, 138, 140, 142, 143, 144, 149, 151, 152, 154, 155, 157, 159, 162, 163, 165, 166, 170, 172, 173, 175, 177, 179, 183, 185, 186, 188, 190, 193, 195, 197, 198, 200, 201, 202, 203, 206, 209, 213, 217, 224, 225, 227, 228, 230, 231, 232, 238, 239, 241, 242, 244, 245, 247, 248, 250, 251, 252, 255, 258, 262, 266, 273, 274, 276, 277, 279, 280, 282, 283, 284, 285], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [44, 160, 181], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "(*ReadWrite)()"}], "class_declarations": [{"node_id": 20, "universal_type": "class", "name": "_MLX_DISK_EXTENSION", "text_snippet": "struct _MLX_DISK_EXTENSION {\r\n\r\n\tPDEVICE_OBJECT DeviceObject;\r\n\tPDEVICE_OBJECT TargetDeviceObject;\r\n"}, {"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 114, "universal_type": "class", "name": "_MIOC_REQ_HEADER", "text_snippet": "struct _MIOC_REQ_HEADER {\r\n\r\n SRB_IO_CONTROL SrbIoctl;\r\n ULONG\t\tCommand;\r\n\r\n}"}, {"node_id": 115, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 133, "universal_type": "class", "name": "_MLX_REQ", "text_snippet": "struct _MLX_REQ {\r\n MIOC_REQ_HEADER MiocReqHeader;\r\n UCHAR Data[MLX_REQ_DATA_SIZE];\r\n}"}, {"node_id": 134, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 147, "universal_type": "class", "name": "_MLX_COMPLETION_CONTEXT", "text_snippet": "struct _MLX_COMPLETION_CONTEXT {\r\n SCSI_REQUEST_BLOCK Srb;\r\n MDL\t Mdl;\r\n UL"}, {"node_id": 148, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 168, "universal_type": "class", "name": "_generic_buffer", "text_snippet": "union _generic_buffer {\r\n\tDISK_GEOMETRY\tDiskGeometry;\r\n\tPARTITION_INFORMATION PartitionInformation[M"}, {"node_id": 169, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 221, "universal_type": "class", "name": "{", "text_snippet": "struct {\r\n ULONG State;\r\n ULONG ControllerNo;\r\n ULONG PortNumber;\r\n}"}, {"node_id": 222, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 235, "universal_type": "class", "name": "{", "text_snippet": "struct {\r\n PVOID CtrlPtr;\r\n PVOID AdpObj;\r\n UCHAR CtrlNo;\r\n UCHAR MaxMapReg;\r\n USHORT"}, {"node_id": 236, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 270, "universal_type": "class", "name": "{", "text_snippet": "struct {\r\n\tULONG Tx1;\r\n\tULONG Tx2;\r\n\tULONG Tx3;\r\n\tULONG Rx;\r\n}"}, {"node_id": 271, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": " /*************************************************************************\r\n * COPYRIGHT (C) Mylex Corporation 1992-1998 *\r\n * *\r\n * This software is furnished under a license and may be used and copied * \r\n * only in accordance with the terms and conditions of such license and * \r\n * with inclusion of the above copyright notice. This software or any * \r\n * other copies thereof may not be provided or otherwise made available * \r\n * to any other person. No title to, nor ownership of the software is * \r\n * hereby transferred. *\r\n * *\r\n * The information in this software is subject to change without notices *\r\n * and should not be construed as a commitment by Mylex Corporation *\r\n * *\r\n **************************************************************************/\r\n\r\n#ifndef _MLXDISK_H\r\n\r\n#define _MLXDISK_H\r\n\r\n\r\n#define INQUIRY_DATA_SIZE\t2048\r\n#define MAX_MLX_DISK_DEVICES\t256\r\n\r\n// Per Partition Information\r\n\r\n#define MLX_DISK_DEVICE_STATE_INITIALIZED\t0x00000001\r\n\r\ntypedef struct _MLX_DISK_EXTENSION {\r\n\r\n\tPDEVICE_OBJECT DeviceObject;\r\n\tPDEVICE_OBJECT TargetDeviceObject;\r\n PDEVICE_OBJECT PhysicalDeviceObject; // PDO @For Win2K\r\n ULONG (*ReadWrite)();\r\n\tULONG\t Reserved[2];\r\n\r\n\tLARGE_INTEGER StartingOffset;\r\n\tLARGE_INTEGER PartitionLength;\r\n\tPIRP\t\t IrpQueHead;\r\n\tPIRP\t\t IrpQueTail;\r\n\tULONG\t\t IrpCount;\r\n\tULONG\t\t Reserved2; // @For 64bit alignment\r\n\r\n KEVENT PagingPathCountEvent; // @For Win2K\r\n ULONG PagingPathCount; // @For Win2K\r\n ULONG Reserved3; // @For 64bit alignment\r\n\r\n\tu32bits State;\r\n\tu08bits ControllerNo;\r\n\tu08bits PathId;\r\n\tu08bits TargetId;\r\n\tu08bits Reserved4; // @For 64bit alignment\r\n\r\n\tu32bits PartitionNo;\r\n\tu08bits LastPartitionNo;\r\n\tu08bits DiskNo;\r\n\tu08bits PartitionType;\r\n\tu08bits SectorShift;\r\n\r\n\tu32bits BytesPerSector;\r\n\tu32bits BytesPerSectorMask;\r\n\r\n} MLXDISK_DEVICE_EXTENSION, *PMLXDISK_DEVICE_EXTENSION;\r\n\r\ntypedef struct _MIOC_REQ_HEADER {\r\n\r\n SRB_IO_CONTROL SrbIoctl;\r\n ULONG\t\tCommand;\r\n\r\n} MIOC_REQ_HEADER, *PMIOC_REQ_HEADER;\r\n\r\n#define\tMLX_REQ_DATA_SIZE 1024\r\ntypedef struct _MLX_REQ {\r\n MIOC_REQ_HEADER MiocReqHeader;\r\n UCHAR Data[MLX_REQ_DATA_SIZE];\r\n} MLX_REQ;\r\n\r\ntypedef struct _MLX_COMPLETION_CONTEXT {\r\n SCSI_REQUEST_BLOCK Srb;\r\n MDL\t Mdl;\r\n ULONG\t\tPages[4];\r\n KEVENT\t\tEvent;\r\n IO_STATUS_BLOCK\tIoStatusBlock;\r\n union _generic_buffer {\r\n\tDISK_GEOMETRY\tDiskGeometry;\r\n\tPARTITION_INFORMATION PartitionInformation[MAX_MLX_DISK_DEVICES + 1];\r\n\tUCHAR\t\tInquiryDataPtr[INQUIRYDATABUFFERSIZE];\r\n\tUCHAR\t\tReadCapacityBuffer[sizeof(READ_CAPACITY_DATA)];\r\n\tUCHAR ScsiBusData[INQUIRY_DATA_SIZE];\r\n\tMLX_REQ\t\tMlxIoctlRequest;\r\n } buf;\r\n\r\n} MLX_COMPLETION_CONTEXT, *PMLX_COMPLETION_CONTEXT;\r\n\r\n#define MAX_MLX_CTRL\t32\r\n\r\n#define MLX_CTRL_STATE_ENLISTED 0x00000001\r\n#define MLX_CTRL_STATE_INITIALIZED\t0x00000002\r\n\r\ntypedef struct {\r\n ULONG State;\r\n ULONG ControllerNo;\r\n ULONG PortNumber;\r\n} MLX_CTRL_INFO;\r\n\r\ntypedef struct {\r\n PVOID CtrlPtr;\r\n PVOID AdpObj;\r\n UCHAR CtrlNo;\r\n UCHAR MaxMapReg;\r\n USHORT Reserved;\r\n// mdac_req_t *FreeReqList;\r\n// mdac_req_t *CompReqHead;\r\n// PIRP IrpQueHead;\r\n// PIRP IrpQueTail;\r\n// PKDPC Dpc;\r\n} MLX_MDAC_INFO, *PMLX_MDAC_INFO;\r\n\r\n#define\tMLX_MAX_REQ_BUF\t512\t\t// Per Controller\r\n\r\n#define\tMLX_MAX_IRP_TRACE\t0x1000\r\n#define\tMLX_MAX_IRP_TRACE_MASK\t(MLX_MAX_IRP_TRACE -1)\r\ntypedef\tstruct {\r\n\tULONG Tx1;\r\n\tULONG Tx2;\r\n\tULONG Tx3;\r\n\tULONG Rx;\r\n} IRP_TRACE_INFO;\r\n\r\n#endif // _MLXDISK_H\r\n"}
80,490
c
#pragma once // Example showing swapped elements: // temp | list(5, 4, 3, 2, 1) // -------------------------- // 5 | 4 <-> 5, 3, 2, 1 // 5 | 4, 3 <-> 5, 2, 1 // 5 | 4, 3, 2 <-> 5, 1 // 5 | 4, 3, 2, 1 <-> 5 // 4 | 3 <-> 4, 2, 1, 5 // 4 | 3, 2 <-> 4, 1, 5 // 4 | 3, 2, 1 <-> 4, 5 // 3 | 2 <-> 3, 1, 4, 5 // 3 | 2, 1 <-> 3, 4, 5 // 2 | 1 <-> 2, 3, 4, 5 // - | 1, 2, 3, 4, 5 template<typename Iterator> void bubbleSort(const Iterator begin, const Iterator end) { // Everything right of done is sorted and won't be moved again Iterator done = end; for (bool swapOcccured = true; swapOcccured; --done) { swapOcccured = false; for (Iterator it = (begin + 1); it < done; ++it) { if (*it < *(it - 1)) { swapOcccured = true; auto temp = *(it - 1); *(it - 1) = *it; *it = temp; } } } }
28.6
35
(translation_unit) "#pragma once\n\n// Example showing swapped elements:\n// temp | list(5, 4, 3, 2, 1)\n// --------------------------\n// 5 | 4 <-> 5, 3, 2, 1\n// 5 | 4, 3 <-> 5, 2, 1\n// 5 | 4, 3, 2 <-> 5, 1\n// 5 | 4, 3, 2, 1 <-> 5\n// 4 | 3 <-> 4, 2, 1, 5\n// 4 | 3, 2 <-> 4, 1, 5\n// 4 | 3, 2, 1 <-> 4, 5\n// 3 | 2 <-> 3, 1, 4, 5\n// 3 | 2, 1 <-> 3, 4, 5\n// 2 | 1 <-> 2, 3, 4, 5\n// - | 1, 2, 3, 4, 5\ntemplate<typename Iterator>\nvoid bubbleSort(const Iterator begin, const Iterator end)\n{\n // Everything right of done is sorted and won't be moved again\n Iterator done = end;\n for (bool swapOcccured = true; swapOcccured; --done)\n {\n swapOcccured = false;\n\n for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }\n }\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "// Example showing swapped elements:" (comment) "// temp | list(5, 4, 3, 2, 1)" (comment) "// --------------------------" (comment) "// 5 | 4 <-> 5, 3, 2, 1" (comment) "// 5 | 4, 3 <-> 5, 2, 1" (comment) "// 5 | 4, 3, 2 <-> 5, 1" (comment) "// 5 | 4, 3, 2, 1 <-> 5" (comment) "// 4 | 3 <-> 4, 2, 1, 5" (comment) "// 4 | 3, 2 <-> 4, 1, 5" (comment) "// 4 | 3, 2, 1 <-> 4, 5" (comment) "// 3 | 2 <-> 3, 1, 4, 5" (comment) "// 3 | 2, 1 <-> 3, 4, 5" (comment) "// 2 | 1 <-> 2, 3, 4, 5" (comment) "// - | 1, 2, 3, 4, 5" (ERROR) "template<typename Iterator>\nvoid bubbleSort(const Iterator begin, const Iterator end)" (binary_expression) "template<typename Iterator>\nvoid bubbleSort(const Iterator begin, const Iterator end)" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Iterator" (identifier) "Iterator" (>) ">" (ERROR) "void" (identifier) "void" (call_expression) "bubbleSort(const Iterator begin, const Iterator end)" (identifier) "bubbleSort" (argument_list) "(const Iterator begin, const Iterator end)" (() "(" (identifier) "const" (ERROR) "Iterator begin" (identifier) "Iterator" (identifier) "begin" (,) "," (identifier) "const" (ERROR) "Iterator end" (identifier) "Iterator" (identifier) "end" ()) ")" (compound_statement) "{\n // Everything right of done is sorted and won't be moved again\n Iterator done = end;\n for (bool swapOcccured = true; swapOcccured; --done)\n {\n swapOcccured = false;\n\n for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }\n }\n}" ({) "{" (comment) "// Everything right of done is sorted and won't be moved again" (declaration) "Iterator done = end;" (type_identifier) "Iterator" (init_declarator) "done = end" (identifier) "done" (=) "=" (identifier) "end" (;) ";" (for_statement) "for (bool swapOcccured = true; swapOcccured; --done)\n {\n swapOcccured = false;\n\n for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }\n }" (for) "for" (() "(" (declaration) "bool swapOcccured = true;" (primitive_type) "bool" (init_declarator) "swapOcccured = true" (identifier) "swapOcccured" (=) "=" (true) "true" (;) ";" (identifier) "swapOcccured" (;) ";" (update_expression) "--done" (--) "--" (identifier) "done" ()) ")" (compound_statement) "{\n swapOcccured = false;\n\n for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }\n }" ({) "{" (expression_statement) "swapOcccured = false;" (assignment_expression) "swapOcccured = false" (identifier) "swapOcccured" (=) "=" (false) "false" (;) ";" (for_statement) "for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }" (for) "for" (() "(" (declaration) "Iterator it = (begin + 1);" (type_identifier) "Iterator" (init_declarator) "it = (begin + 1)" (identifier) "it" (=) "=" (parenthesized_expression) "(begin + 1)" (() "(" (binary_expression) "begin + 1" (identifier) "begin" (+) "+" (number_literal) "1" ()) ")" (;) ";" (binary_expression) "it < done" (identifier) "it" (<) "<" (identifier) "done" (;) ";" (update_expression) "++it" (++) "++" (identifier) "it" ()) ")" (compound_statement) "{\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }" ({) "{" (if_statement) "if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }" (if) "if" (parenthesized_expression) "(*it < *(it - 1))" (() "(" (binary_expression) "*it < *(it - 1)" (pointer_expression) "*it" (*) "*" (identifier) "it" (<) "<" (pointer_expression) "*(it - 1)" (*) "*" (parenthesized_expression) "(it - 1)" (() "(" (binary_expression) "it - 1" (identifier) "it" (-) "-" (number_literal) "1" ()) ")" ()) ")" (compound_statement) "{\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }" ({) "{" (expression_statement) "swapOcccured = true;" (assignment_expression) "swapOcccured = true" (identifier) "swapOcccured" (=) "=" (true) "true" (;) ";" (declaration) "auto temp = *(it - 1);" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "temp" (init_declarator) " = *(it - 1)" (identifier) "" (=) "=" (pointer_expression) "*(it - 1)" (*) "*" (parenthesized_expression) "(it - 1)" (() "(" (binary_expression) "it - 1" (identifier) "it" (-) "-" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "*(it - 1) = *it;" (assignment_expression) "*(it - 1) = *it" (pointer_expression) "*(it - 1)" (*) "*" (parenthesized_expression) "(it - 1)" (() "(" (binary_expression) "it - 1" (identifier) "it" (-) "-" (number_literal) "1" ()) ")" (=) "=" (pointer_expression) "*it" (*) "*" (identifier) "it" (;) ";" (expression_statement) "*it = temp;" (assignment_expression) "*it = temp" (pointer_expression) "*it" (*) "*" (identifier) "it" (=) "=" (identifier) "temp" (;) ";" (}) "}" (}) "}" (}) "}" (}) "}"
176
5
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 28.6, "nodes": 108, "errors": 0, "source_hash": "926b3a046c55e04ee287e974fd83331ff57a88aefb72fc0b73bec7d48efcb37b", "categorized_nodes": 67}, "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 Iterator>\nvoid bubbleSort(const Iterator begin, const Iterator end)", "parent": null, "children": [4], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 57}}, {"id": 4, "type": "binary_expression", "text": "template<typename Iterator>\nvoid bubbleSort(const Iterator begin, const Iterator end)", "parent": 3, "children": [5, 9, 11, 12, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 57}}, {"id": 5, "type": "binary_expression", "text": "template<typename", "parent": 4, "children": [6, 7, 8], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 17}}, {"id": 6, "type": "identifier", "text": "template", "parent": 5, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 7, "type": "<", "text": "<", "parent": 5, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}, {"id": 8, "type": "identifier", "text": "typename", "parent": 5, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 17}}, {"id": 9, "type": "ERROR", "text": "Iterator", "parent": 4, "children": [10], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 26}}, {"id": 10, "type": "identifier", "text": "Iterator", "parent": 9, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 26}}, {"id": 11, "type": ">", "text": ">", "parent": 4, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 12, "type": "ERROR", "text": "void", "parent": 4, "children": [13], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 13, "type": "identifier", "text": "void", "parent": 12, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 14, "type": "call_expression", "text": "bubbleSort(const Iterator begin, const Iterator end)", "parent": 4, "children": [15, 16], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 57}}, {"id": 15, "type": "identifier", "text": "bubbleSort", "parent": 14, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 15}}, {"id": 16, "type": "argument_list", "text": "(const Iterator begin, const Iterator end)", "parent": 14, "children": [17, 19], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 57}}, {"id": 17, "type": "ERROR", "text": "Iterator begin", "parent": 16, "children": [18], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 36}}, {"id": 18, "type": "identifier", "text": "Iterator", "parent": 17, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 30}}, {"id": 19, "type": "ERROR", "text": "Iterator end", "parent": 16, "children": [20], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 56}}, {"id": 20, "type": "identifier", "text": "Iterator", "parent": 19, "children": [], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 52}}, {"id": 21, "type": "declaration", "text": "Iterator done = end;", "parent": null, "children": [22, 23], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 24}}, {"id": 22, "type": "type_identifier", "text": "Iterator", "parent": 21, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 12}}, {"id": 23, "type": "init_declarator", "text": "done = end", "parent": 21, "children": [24, 25], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 23}}, {"id": 24, "type": "identifier", "text": "done", "parent": 23, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 17}}, {"id": 25, "type": "=", "text": "=", "parent": 23, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 19}}, {"id": 26, "type": "for_statement", "text": "for (bool swapOcccured = true; swapOcccured; --done)\n {\n swapOcccured = false;\n\n for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }\n }", "parent": null, "children": [27, 33, 34], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 35, "column": 5}}, {"id": 27, "type": "declaration", "text": "bool swapOcccured = true;", "parent": 26, "children": [28, 29], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 34}}, {"id": 28, "type": "primitive_type", "text": "bool", "parent": 27, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 29, "type": "init_declarator", "text": "swapOcccured = true", "parent": 27, "children": [30, 31, 32], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 33}}, {"id": 30, "type": "identifier", "text": "swapOcccured", "parent": 29, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 26}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 28}}, {"id": 32, "type": "true", "text": "true", "parent": 29, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 33}}, {"id": 33, "type": "identifier", "text": "swapOcccured", "parent": 26, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 47}}, {"id": 34, "type": "update_expression", "text": "--done", "parent": 26, "children": [35, 36], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 55}}, {"id": 35, "type": "--", "text": "--", "parent": 34, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 51}}, {"id": 36, "type": "identifier", "text": "done", "parent": 34, "children": [], "start_point": {"row": 21, "column": 51}, "end_point": {"row": 21, "column": 55}}, {"id": 37, "type": "assignment_expression", "text": "swapOcccured = false", "parent": 26, "children": [38, 39, 40], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 28}}, {"id": 38, "type": "identifier", "text": "swapOcccured", "parent": 37, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 20}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 22}}, {"id": 40, "type": "false", "text": "false", "parent": 37, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 28}}, {"id": 41, "type": "for_statement", "text": "for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }", "parent": 26, "children": [42, 51, 55], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 34, "column": 9}}, {"id": 42, "type": "declaration", "text": "Iterator it = (begin + 1);", "parent": 41, "children": [43, 44], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 39}}, {"id": 43, "type": "type_identifier", "text": "Iterator", "parent": 42, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 21}}, {"id": 44, "type": "init_declarator", "text": "it = (begin + 1)", "parent": 42, "children": [45, 46, 47], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 38}}, {"id": 45, "type": "identifier", "text": "it", "parent": 44, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 24}}, {"id": 46, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 26}}, {"id": 47, "type": "parenthesized_expression", "text": "(begin + 1)", "parent": 44, "children": [48], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 38}}, {"id": 48, "type": "binary_expression", "text": "begin + 1", "parent": 47, "children": [49, 50], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 37}}, {"id": 49, "type": "+", "text": "+", "parent": 48, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 35}}, {"id": 50, "type": "number_literal", "text": "1", "parent": 48, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 37}}, {"id": 51, "type": "binary_expression", "text": "it < done", "parent": 41, "children": [52, 53, 54], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 49}}, {"id": 52, "type": "identifier", "text": "it", "parent": 51, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 42}}, {"id": 53, "type": "<", "text": "<", "parent": 51, "children": [], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 44}}, {"id": 54, "type": "identifier", "text": "done", "parent": 51, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 49}}, {"id": 55, "type": "update_expression", "text": "++it", "parent": 41, "children": [56, 57], "start_point": {"row": 25, "column": 51}, "end_point": {"row": 25, "column": 55}}, {"id": 56, "type": "++", "text": "++", "parent": 55, "children": [], "start_point": {"row": 25, "column": 51}, "end_point": {"row": 25, "column": 53}}, {"id": 57, "type": "identifier", "text": "it", "parent": 55, "children": [], "start_point": {"row": 25, "column": 53}, "end_point": {"row": 25, "column": 55}}, {"id": 58, "type": "if_statement", "text": "if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }", "parent": 41, "children": [59], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 59, "type": "parenthesized_expression", "text": "(*it < *(it - 1))", "parent": 58, "children": [60], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 32}}, {"id": 60, "type": "binary_expression", "text": "*it < *(it - 1)", "parent": 59, "children": [61, 64, 65], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 31}}, {"id": 61, "type": "pointer_expression", "text": "*it", "parent": 60, "children": [62, 63], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 19}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 17}}, {"id": 63, "type": "identifier", "text": "it", "parent": 61, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 19}}, {"id": 64, "type": "<", "text": "<", "parent": 60, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 65, "type": "pointer_expression", "text": "*(it - 1)", "parent": 60, "children": [66, 67], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 31}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 67, "type": "parenthesized_expression", "text": "(it - 1)", "parent": 65, "children": [68], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 31}}, {"id": 68, "type": "binary_expression", "text": "it - 1", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 30}}, {"id": 69, "type": "identifier", "text": "it", "parent": 68, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 26}}, {"id": 70, "type": "-", "text": "-", "parent": 68, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 28}}, {"id": 71, "type": "number_literal", "text": "1", "parent": 68, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 30}}, {"id": 72, "type": "assignment_expression", "text": "swapOcccured = true", "parent": 58, "children": [73, 74, 75], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 35}}, {"id": 73, "type": "identifier", "text": "swapOcccured", "parent": 72, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 28}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 30}}, {"id": 75, "type": "true", "text": "true", "parent": 72, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 35}}, {"id": 76, "type": "declaration", "text": "auto temp = *(it - 1);", "parent": 58, "children": [77, 79, 80], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 38}}, {"id": 77, "type": "storage_class_specifier", "text": "auto", "parent": 76, "children": [78], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 78, "type": "auto", "text": "auto", "parent": 77, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 79, "type": "type_identifier", "text": "temp", "parent": 76, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 25}}, {"id": 80, "type": "init_declarator", "text": " = *(it - 1)", "parent": 76, "children": [81, 82, 83], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 37}}, {"id": 81, "type": "identifier", "text": "", "parent": 80, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 25}}, {"id": 82, "type": "=", "text": "=", "parent": 80, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 27}}, {"id": 83, "type": "pointer_expression", "text": "*(it - 1)", "parent": 80, "children": [84, 85], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 37}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 29}}, {"id": 85, "type": "parenthesized_expression", "text": "(it - 1)", "parent": 83, "children": [86], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 37}}, {"id": 86, "type": "binary_expression", "text": "it - 1", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 36}}, {"id": 87, "type": "identifier", "text": "it", "parent": 86, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 32}}, {"id": 88, "type": "-", "text": "-", "parent": 86, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 34}}, {"id": 89, "type": "number_literal", "text": "1", "parent": 86, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 36}}, {"id": 90, "type": "assignment_expression", "text": "*(it - 1) = *it", "parent": 58, "children": [91, 98, 99], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 31}}, {"id": 91, "type": "pointer_expression", "text": "*(it - 1)", "parent": 90, "children": [92, 93], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 25}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 93, "type": "parenthesized_expression", "text": "(it - 1)", "parent": 91, "children": [94], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 25}}, {"id": 94, "type": "binary_expression", "text": "it - 1", "parent": 93, "children": [95, 96, 97], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 24}}, {"id": 95, "type": "identifier", "text": "it", "parent": 94, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 20}}, {"id": 96, "type": "-", "text": "-", "parent": 94, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 22}}, {"id": 97, "type": "number_literal", "text": "1", "parent": 94, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 24}}, {"id": 98, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 27}}, {"id": 99, "type": "pointer_expression", "text": "*it", "parent": 90, "children": [100, 101], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 31}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 29}}, {"id": 101, "type": "identifier", "text": "it", "parent": 99, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 31}}, {"id": 102, "type": "assignment_expression", "text": "*it = temp", "parent": 58, "children": [103, 106, 107], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 26}}, {"id": 103, "type": "pointer_expression", "text": "*it", "parent": 102, "children": [104, 105], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 19}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 105, "type": "identifier", "text": "it", "parent": 103, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 19}}, {"id": 106, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 21}}, {"id": 107, "type": "identifier", "text": "temp", "parent": 102, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 26}}]}, "node_categories": {"declarations": {"functions": [], "variables": [21, 27, 42, 76], "classes": [77], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [4, 5, 14, 34, 47, 48, 51, 55, 59, 60, 61, 65, 67, 68, 83, 85, 86, 91, 93, 94, 99, 103], "assignments": [37, 72, 90, 102], "loops": [26, 41], "conditionals": [6, 8, 10, 13, 15, 18, 20, 22, 24, 30, 33, 36, 38, 43, 45, 52, 54, 57, 58, 63, 69, 73, 79, 81, 87, 95, 101, 105, 107], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [50, 71, 89, 97], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 77, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": []}, "original_source_code": "#pragma once\n\n// Example showing swapped elements:\n// temp | list(5, 4, 3, 2, 1)\n// --------------------------\n// 5 | 4 <-> 5, 3, 2, 1\n// 5 | 4, 3 <-> 5, 2, 1\n// 5 | 4, 3, 2 <-> 5, 1\n// 5 | 4, 3, 2, 1 <-> 5\n// 4 | 3 <-> 4, 2, 1, 5\n// 4 | 3, 2 <-> 4, 1, 5\n// 4 | 3, 2, 1 <-> 4, 5\n// 3 | 2 <-> 3, 1, 4, 5\n// 3 | 2, 1 <-> 3, 4, 5\n// 2 | 1 <-> 2, 3, 4, 5\n// - | 1, 2, 3, 4, 5\ntemplate<typename Iterator>\nvoid bubbleSort(const Iterator begin, const Iterator end)\n{\n // Everything right of done is sorted and won't be moved again\n Iterator done = end;\n for (bool swapOcccured = true; swapOcccured; --done)\n {\n swapOcccured = false;\n\n for (Iterator it = (begin + 1); it < done; ++it)\n {\n if (*it < *(it - 1))\n {\n swapOcccured = true;\n auto temp = *(it - 1);\n *(it - 1) = *it;\n *it = temp;\n }\n }\n }\n}\n"}
80,491
c
#ifndef TIMERCOMMON_H_INCLUDED #define TIMERCOMMON_H_INCLUDED #include "detail/_time.h" #ifdef WIN32 #include <objbase.h> #else #include <uuid/uuid.h> #endif typedef struct stConfigTimer { int servId; int msgId; struct timeval_a tmBegin; int invl; int type; char addr[128]; public: bool operator<( const stConfigTimer& oComp ) const { return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId); } bool operator==( const stConfigTimer& oComp ) const { return this->servId == oComp.servId && this->msgId == oComp.msgId; } } SConfigTimer; typedef struct stTimerMsg { struct timeval_a tmStart; char guid[64]; public: stTimerMsg() { gettimeofday_a(&tmStart,0); uuid_t uu; #ifdef WIN32 if (S_OK == ::CoCreateGuid(&uu)) { snprintf(guid, sizeof(guid),"%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X", uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]); } #else uuid_generate( uu ); snprintf(guid, sizeof(guid), "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X", uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7], uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]); #endif } struct timeval_a calcInteval() { struct timeval_a now; gettimeofday_a(&now,0); struct timeval_a diff; timersub(&now, &tmStart, &diff); return diff; } } STimerMsg; const unsigned int SERVICE_ID = 41646; #endif // TIMERCOMMON_H_INCLUDED
28.03
59
(translation_unit) "#ifndef TIMERCOMMON_H_INCLUDED\n#define TIMERCOMMON_H_INCLUDED\n#include "detail/_time.h"\n#ifdef WIN32\n#include <objbase.h>\n#else\n#include <uuid/uuid.h>\n#endif\n\ntypedef struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }\n bool operator==( const stConfigTimer& oComp ) const\n {\n return this->servId == oComp.servId && this->msgId == oComp.msgId;\n }\n} SConfigTimer;\n\ntypedef struct stTimerMsg\n{\n struct timeval_a tmStart;\n char guid[64];\npublic:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);\n\n uuid_t uu;\n #ifdef WIN32\n if (S_OK == ::CoCreateGuid(&uu))\n {\n snprintf(guid, sizeof(guid),"%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]);\n }\n #else\n uuid_generate( uu );\n snprintf(guid, sizeof(guid), "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);\n #endif\n }\n struct timeval_a calcInteval()\n {\n struct timeval_a now;\n gettimeofday_a(&now,0);\n\n struct timeval_a diff;\n timersub(&now, &tmStart, &diff);\n return diff;\n }\n} STimerMsg;\n\nconst unsigned int SERVICE_ID = 41646;\n\n#endif // TIMERCOMMON_H_INCLUDED\n" (preproc_ifdef) "#ifndef TIMERCOMMON_H_INCLUDED\n#define TIMERCOMMON_H_INCLUDED\n#include "detail/_time.h"\n#ifdef WIN32\n#include <objbase.h>\n#else\n#include <uuid/uuid.h>\n#endif\n\ntypedef struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }\n bool operator==( const stConfigTimer& oComp ) const\n {\n return this->servId == oComp.servId && this->msgId == oComp.msgId;\n }\n} SConfigTimer;\n\ntypedef struct stTimerMsg\n{\n struct timeval_a tmStart;\n char guid[64];\npublic:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);\n\n uuid_t uu;\n #ifdef WIN32\n if (S_OK == ::CoCreateGuid(&uu))\n {\n snprintf(guid, sizeof(guid),"%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]);\n }\n #else\n uuid_generate( uu );\n snprintf(guid, sizeof(guid), "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);\n #endif" (#ifndef) "#ifndef" (identifier) "TIMERCOMMON_H_INCLUDED" (preproc_def) "#define TIMERCOMMON_H_INCLUDED\n" (#define) "#define" (identifier) "TIMERCOMMON_H_INCLUDED" (preproc_include) "#include "detail/_time.h"\n" (#include) "#include" (string_literal) ""detail/_time.h"" (") """ (string_content) "detail/_time.h" (") """ (preproc_ifdef) "#ifdef WIN32\n#include <objbase.h>\n#else\n#include <uuid/uuid.h>\n#endif" (#ifdef) "#ifdef" (identifier) "WIN32" (preproc_include) "#include <objbase.h>\n" (#include) "#include" (system_lib_string) "<objbase.h>" (preproc_else) "#else\n#include <uuid/uuid.h>\n" (#else) "#else" (preproc_include) "#include <uuid/uuid.h>\n" (#include) "#include" (system_lib_string) "<uuid/uuid.h>" (#endif) "#endif" (type_definition) "typedef struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }\n bool" (typedef) "typedef" (struct_specifier) "struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }" (struct) "struct" (type_identifier) "stConfigTimer" (field_declaration_list) "{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }" ({) "{" (field_declaration) "int servId;" (primitive_type) "int" (field_identifier) "servId" (;) ";" (field_declaration) "int msgId;" (primitive_type) "int" (field_identifier) "msgId" (;) ";" (field_declaration) "struct timeval_a tmBegin;" (struct_specifier) "struct timeval_a" (struct) "struct" (type_identifier) "timeval_a" (field_identifier) "tmBegin" (;) ";" (field_declaration) "int invl;" (primitive_type) "int" (field_identifier) "invl" (;) ";" (field_declaration) "int type;" (primitive_type) "int" (field_identifier) "type" (;) ";" (field_declaration) "char addr[128];" (primitive_type) "char" (array_declarator) "addr[128]" (field_identifier) "addr" ([) "[" (number_literal) "128" (]) "]" (;) ";" (ERROR) "public:\n bool operator<( const stConfigTimer& oComp )" (type_identifier) "public" (:) ":" (primitive_type) "bool" (field_identifier) "operator" (<) "<" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "stConfigTimer" (ERROR) "&" (&) "&" (field_identifier) "oComp" ()) ")" (field_declaration) "const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);" (type_qualifier) "const" (const) "const" (ERROR) "{\n return" ({) "{" (return) "return" (type_identifier) "this" (ERROR) "->servId < oComp." (->) "->" (field_identifier) "servId" (<) "<" (field_identifier) "oComp" (.) "." (function_declarator) "servId || (this->servId == oComp.servId && this->msgId < oComp.msgId)" (field_identifier) "servId" (ERROR) "||" (||) "||" (parameter_list) "(this->servId == oComp.servId && this->msgId < oComp.msgId)" (() "(" (parameter_declaration) "this->servId == oComp.servId && this->msgId < oComp.msgId" (type_identifier) "this" (ERROR) "->servId == oComp.servId && this->msgId < oComp." (->) "->" (identifier) "servId" (==) "==" (identifier) "oComp" (.) "." (identifier) "servId" (&&) "&&" (identifier) "this" (->) "->" (identifier) "msgId" (<) "<" (identifier) "oComp" (.) "." (identifier) "msgId" ()) ")" (;) ";" (}) "}" (primitive_type) "bool" (;) "" (ERROR) "operator==( const stConfigTimer& oComp ) const" (binary_expression) "operator==( const stConfigTimer& oComp )" (identifier) "operator" (==) "==" (parenthesized_expression) "( const stConfigTimer& oComp )" (() "(" (ERROR) "const stConfigTimer" (type_descriptor) "const stConfigTimer" (type_qualifier) "const" (const) "const" (type_identifier) "stConfigTimer" (pointer_expression) "& oComp" (&) "&" (identifier) "oComp" ()) ")" (identifier) "const" (compound_statement) "{\n return this->servId == oComp.servId && this->msgId == oComp.msgId;\n }" ({) "{" (return_statement) "return this->servId == oComp.servId && this->msgId == oComp.msgId;" (return) "return" (binary_expression) "this->servId == oComp.servId && this->msgId == oComp.msgId" (binary_expression) "this->servId == oComp.servId" (field_expression) "this->servId" (identifier) "this" (->) "->" (field_identifier) "servId" (==) "==" (field_expression) "oComp.servId" (identifier) "oComp" (.) "." (field_identifier) "servId" (&&) "&&" (binary_expression) "this->msgId == oComp.msgId" (field_expression) "this->msgId" (identifier) "this" (->) "->" (field_identifier) "msgId" (==) "==" (field_expression) "oComp.msgId" (identifier) "oComp" (.) "." (field_identifier) "msgId" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) "SConfigTimer;" (identifier) "SConfigTimer" (;) ";" (ERROR) "typedef struct stTimerMsg\n{\n struct timeval_a tmStart;\n char guid[64];\npublic:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);\n\n uuid_t uu;\n #ifdef WIN32\n if (S_OK == ::CoCreateGuid(&uu))\n {\n snprintf(guid, sizeof(guid)," (typedef) "typedef" (struct) "struct" (identifier) "stTimerMsg" ({) "{" (field_declaration) "struct timeval_a tmStart;" (struct_specifier) "struct timeval_a" (struct) "struct" (type_identifier) "timeval_a" (field_identifier) "tmStart" (;) ";" (field_declaration) "char guid[64];" (primitive_type) "char" (array_declarator) "guid[64]" (field_identifier) "guid" ([) "[" (number_literal) "64" (]) "]" (;) ";" (field_declaration) "public:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);" (type_identifier) "public" (ERROR) ":\n stTimerMsg()\n {" (:) ":" (function_declarator) "stTimerMsg()" (field_identifier) "stTimerMsg" (parameter_list) "()" (() "(" ()) ")" ({) "{" (function_declarator) "gettimeofday_a(&tmStart,0)" (field_identifier) "gettimeofday_a" (parameter_list) "(&tmStart,0)" (() "(" (ERROR) "&" (&) "&" (parameter_declaration) "tmStart" (type_identifier) "tmStart" (ERROR) ",0" (,) "," (number_literal) "0" ()) ")" (;) ";" (field_declaration) "uuid_t uu;" (type_identifier) "uuid_t" (field_identifier) "uu" (;) ";" (#ifdef) "#ifdef" (identifier) "WIN32" (macro_type_specifier) "if (S_OK == ::CoCreateGuid(&uu)" (identifier) "if" (() "(" (type_descriptor) "S_OK" (type_identifier) "S_OK" (ERROR) "== ::CoCreateGuid(&uu" (==) "==" (:) ":" (:) ":" (identifier) "CoCreateGuid" (() "(" (&) "&" (identifier) "uu" ()) ")" (ERROR) ")\n {" ()) ")" ({) "{" (field_identifier) "snprintf" (() "(" (parameter_declaration) "guid" (type_identifier) "guid" (,) "," (parameter_declaration) "sizeof(guid)" (type_identifier) "sizeof" (abstract_function_declarator) "(guid)" (parameter_list) "(guid)" (() "(" (parameter_declaration) "guid" (type_identifier) "guid" ()) ")" (,) "," (expression_statement) ""%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]);" (comma_expression) ""%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (string_literal) ""%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X"" (") """ (string_content) "%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X" (") """ (,) "," (comma_expression) "uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (field_expression) "uu.Data1" (identifier) "uu" (.) "." (field_identifier) "Data1" (,) "," (comma_expression) "uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (field_expression) "uu.Data2" (identifier) "uu" (.) "." (field_identifier) "Data2" (,) "," (comma_expression) "uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (field_expression) "uu.Data3" (identifier) "uu" (.) "." (field_identifier) "Data3" (,) "," (comma_expression) "uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (subscript_expression) "uu.Data4[0]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "0" (]) "]" (,) "," (comma_expression) "uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (subscript_expression) "uu.Data4[1]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "1" (]) "]" (,) "," (comma_expression) "uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (subscript_expression) "uu.Data4[2]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "2" (]) "]" (,) "," (comma_expression) "uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (subscript_expression) "uu.Data4[3]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "3" (]) "]" (,) "," (comma_expression) "uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]" (subscript_expression) "uu.Data4[4]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "4" (]) "]" (,) "," (comma_expression) "uu.Data4[5],uu.Data4[6],uu.Data4[7]" (subscript_expression) "uu.Data4[5]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "5" (]) "]" (,) "," (comma_expression) "uu.Data4[6],uu.Data4[7]" (subscript_expression) "uu.Data4[6]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "6" (]) "]" (,) "," (subscript_expression) "uu.Data4[7]" (field_expression) "uu.Data4" (identifier) "uu" (.) "." (field_identifier) "Data4" ([) "[" (number_literal) "7" (]) "]" (ERROR) ")" ()) ")" (;) ";" (ERROR) "}" (}) "}" (preproc_else) "#else\n uuid_generate( uu );\n snprintf(guid, sizeof(guid), "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);" (#else) "#else" (expression_statement) "uuid_generate( uu );" (call_expression) "uuid_generate( uu )" (identifier) "uuid_generate" (argument_list) "( uu )" (() "(" (identifier) "uu" ()) ")" (;) ";" (expression_statement) "snprintf(guid, sizeof(guid), "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);" (call_expression) "snprintf(guid, sizeof(guid), "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15])" (identifier) "snprintf" (argument_list) "(guid, sizeof(guid), "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15])" (() "(" (identifier) "guid" (,) "," (sizeof_expression) "sizeof(guid)" (sizeof) "sizeof" (parenthesized_expression) "(guid)" (() "(" (identifier) "guid" ()) ")" (,) "," (string_literal) ""%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X"" (") """ (string_content) "%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X" (") """ (,) "," (subscript_expression) "uu[0]" (identifier) "uu" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "uu[1]" (identifier) "uu" ([) "[" (number_literal) "1" (]) "]" (,) "," (subscript_expression) "uu[2]" (identifier) "uu" ([) "[" (number_literal) "2" (]) "]" (,) "," (subscript_expression) "uu[3]" (identifier) "uu" ([) "[" (number_literal) "3" (]) "]" (,) "," (subscript_expression) "uu[4]" (identifier) "uu" ([) "[" (number_literal) "4" (]) "]" (,) "," (subscript_expression) "uu[5]" (identifier) "uu" ([) "[" (number_literal) "5" (]) "]" (,) "," (subscript_expression) "uu[6]" (identifier) "uu" ([) "[" (number_literal) "6" (]) "]" (,) "," (subscript_expression) "uu[7]" (identifier) "uu" ([) "[" (number_literal) "7" (]) "]" (,) "," (subscript_expression) "uu[8]" (identifier) "uu" ([) "[" (number_literal) "8" (]) "]" (,) "," (subscript_expression) "uu[9]" (identifier) "uu" ([) "[" (number_literal) "9" (]) "]" (,) "," (subscript_expression) "uu[10]" (identifier) "uu" ([) "[" (number_literal) "10" (]) "]" (,) "," (subscript_expression) "uu[11]" (identifier) "uu" ([) "[" (number_literal) "11" (]) "]" (,) "," (subscript_expression) "uu[12]" (identifier) "uu" ([) "[" (number_literal) "12" (]) "]" (,) "," (subscript_expression) "uu[13]" (identifier) "uu" ([) "[" (number_literal) "13" (]) "]" (,) "," (subscript_expression) "uu[14]" (identifier) "uu" ([) "[" (number_literal) "14" (]) "]" (,) "," (subscript_expression) "uu[15]" (identifier) "uu" ([) "[" (number_literal) "15" (]) "]" ()) ")" (;) ";" (#endif) "#endif" (ERROR) "}" (}) "}" (function_definition) "struct timeval_a calcInteval()\n {\n struct timeval_a now;\n gettimeofday_a(&now,0);\n\n struct timeval_a diff;\n timersub(&now, &tmStart, &diff);\n return diff;\n }" (struct_specifier) "struct timeval_a" (struct) "struct" (type_identifier) "timeval_a" (function_declarator) "calcInteval()" (identifier) "calcInteval" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n struct timeval_a now;\n gettimeofday_a(&now,0);\n\n struct timeval_a diff;\n timersub(&now, &tmStart, &diff);\n return diff;\n }" ({) "{" (declaration) "struct timeval_a now;" (struct_specifier) "struct timeval_a" (struct) "struct" (type_identifier) "timeval_a" (identifier) "now" (;) ";" (expression_statement) "gettimeofday_a(&now,0);" (call_expression) "gettimeofday_a(&now,0)" (identifier) "gettimeofday_a" (argument_list) "(&now,0)" (() "(" (pointer_expression) "&now" (&) "&" (identifier) "now" (,) "," (number_literal) "0" ()) ")" (;) ";" (declaration) "struct timeval_a diff;" (struct_specifier) "struct timeval_a" (struct) "struct" (type_identifier) "timeval_a" (identifier) "diff" (;) ";" (expression_statement) "timersub(&now, &tmStart, &diff);" (call_expression) "timersub(&now, &tmStart, &diff)" (identifier) "timersub" (argument_list) "(&now, &tmStart, &diff)" (() "(" (pointer_expression) "&now" (&) "&" (identifier) "now" (,) "," (pointer_expression) "&tmStart" (&) "&" (identifier) "tmStart" (,) "," (pointer_expression) "&diff" (&) "&" (identifier) "diff" ()) ")" (;) ";" (return_statement) "return diff;" (return) "return" (identifier) "diff" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) "STimerMsg;" (identifier) "STimerMsg" (;) ";" (declaration) "const unsigned int SERVICE_ID = 41646;" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "SERVICE_ID = 41646" (identifier) "SERVICE_ID" (=) "=" (number_literal) "41646" (;) ";" (preproc_call) "#endif // TIMERCOMMON_H_INCLUDED\n" (preproc_directive) "#endif" (comment) "// TIMERCOMMON_H_INCLUDED"
559
19
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.03, "nodes": 326, "errors": 0, "source_hash": "b5e4d18990185374c5fe65f4a80ebd57bd505a318e16a154cd10a438aa701adf", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TIMERCOMMON_H_INCLUDED\n#define TIMERCOMMON_H_INCLUDED\n#include \"detail/_time.h\"\n#ifdef WIN32\n#include <objbase.h>\n#else\n#include <uuid/uuid.h>\n#endif\n\ntypedef struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }\n bool operator==( const stConfigTimer& oComp ) const\n {\n return this->servId == oComp.servId && this->msgId == oComp.msgId;\n }\n} SConfigTimer;\n\ntypedef struct stTimerMsg\n{\n struct timeval_a tmStart;\n char guid[64];\npublic:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);\n\n uuid_t uu;\n #ifdef WIN32\n if (S_OK == ::CoCreateGuid(&uu))\n {\n\t\tsnprintf(guid, sizeof(guid),\"%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]);\n }\n #else\n uuid_generate( uu );\n snprintf(guid, sizeof(guid), \"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);\n #endif", "parent": null, "children": [1, 2, 3, 6, 9, 21, 80, 110, 218, 280], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 49, "column": 14}}, {"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": "TIMERCOMMON_H_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 30}}, {"id": 3, "type": "preproc_def", "text": "#define TIMERCOMMON_H_INCLUDED\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "TIMERCOMMON_H_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"detail/_time.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"detail/_time.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 25}}, {"id": 9, "type": "preproc_ifdef", "text": "#ifdef WIN32\n#include <objbase.h>\n#else\n#include <uuid/uuid.h>\n#endif", "parent": 0, "children": [10, 11, 12, 15, 20], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 10, "type": "#ifdef", "text": "#ifdef", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 11, "type": "identifier", "text": "WIN32", "parent": 9, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 12}}, {"id": 12, "type": "preproc_include", "text": "#include <objbase.h>\n", "parent": 9, "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": "<objbase.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 15, "type": "preproc_else", "text": "#else\n#include <uuid/uuid.h>\n", "parent": 9, "children": [16, 17], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#else", "text": "#else", "parent": 15, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 5}}, {"id": 17, "type": "preproc_include", "text": "#include <uuid/uuid.h>\n", "parent": 15, "children": [18, 19], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 19, "type": "system_lib_string", "text": "<uuid/uuid.h>", "parent": 17, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 22}}, {"id": 20, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 21, "type": "type_definition", "text": "typedef struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }\n bool", "parent": 0, "children": [22, 23, 79], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 22, "type": "typedef", "text": "typedef", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 23, "type": "struct_specifier", "text": "struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }", "parent": 21, "children": [24, 25], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 21, "column": 5}}, {"id": 24, "type": "struct", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 25, "type": "type_identifier", "text": "stConfigTimer", "parent": 23, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 28}}, {"id": 26, "type": "field_declaration", "text": "int servId;", "parent": 23, "children": [27, 28], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 15}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 7}}, {"id": 28, "type": "field_identifier", "text": "servId", "parent": 26, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 29, "type": "field_declaration", "text": "int msgId;", "parent": 23, "children": [30, 31], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 14}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 7}}, {"id": 31, "type": "field_identifier", "text": "msgId", "parent": 29, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 13}}, {"id": 32, "type": "field_declaration", "text": "struct timeval_a tmBegin;", "parent": 23, "children": [33, 36], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 29}}, {"id": 33, "type": "struct_specifier", "text": "struct timeval_a", "parent": 32, "children": [34, 35], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 20}}, {"id": 34, "type": "struct", "text": "struct", "parent": 33, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 35, "type": "type_identifier", "text": "timeval_a", "parent": 33, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 36, "type": "field_identifier", "text": "tmBegin", "parent": 32, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 28}}, {"id": 37, "type": "field_declaration", "text": "int invl;", "parent": 23, "children": [38, 39], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 13}}, {"id": 38, "type": "primitive_type", "text": "int", "parent": 37, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 39, "type": "field_identifier", "text": "invl", "parent": 37, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 40, "type": "field_declaration", "text": "int type;", "parent": 23, "children": [41, 42], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 13}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 7}}, {"id": 42, "type": "field_identifier", "text": "type", "parent": 40, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 12}}, {"id": 43, "type": "field_declaration", "text": "char addr[128];", "parent": 23, "children": [44, 45], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 19}}, {"id": 44, "type": "primitive_type", "text": "char", "parent": 43, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 45, "type": "array_declarator", "text": "addr[128]", "parent": 43, "children": [46, 47], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 18}}, {"id": 46, "type": "field_identifier", "text": "addr", "parent": 45, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 47, "type": "number_literal", "text": "128", "parent": 45, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 17}}, {"id": 48, "type": "ERROR", "text": "public:\n bool operator<( const stConfigTimer& oComp )", "parent": 23, "children": [49, 50, 51, 52, 53], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 48}}, {"id": 49, "type": "primitive_type", "text": "bool", "parent": 48, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 50, "type": "field_identifier", "text": "operator", "parent": 48, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 17}}, {"id": 51, "type": "<", "text": "<", "parent": 48, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 18}}, {"id": 52, "type": "type_identifier", "text": "stConfigTimer", "parent": 48, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 39}}, {"id": 53, "type": "field_identifier", "text": "oComp", "parent": 48, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 46}}, {"id": 54, "type": "field_declaration", "text": "const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);", "parent": 23, "children": [55, 56, 57, 61], "start_point": {"row": 18, "column": 49}, "end_point": {"row": 20, "column": 102}}, {"id": 55, "type": "ERROR", "text": "{\n return", "parent": 54, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 56, "type": "type_identifier", "text": "this", "parent": 54, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 15}}, {"id": 57, "type": "ERROR", "text": "->servId < oComp.", "parent": 54, "children": [58, 59, 60], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 32}}, {"id": 58, "type": "field_identifier", "text": "servId", "parent": 57, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 23}}, {"id": 59, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 60, "type": "field_identifier", "text": "oComp", "parent": 57, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 31}}, {"id": 61, "type": "function_declarator", "text": "servId || (this->servId == oComp.servId && this->msgId < oComp.msgId)", "parent": 54, "children": [62, 63, 65], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 101}}, {"id": 62, "type": "field_identifier", "text": "servId", "parent": 61, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 38}}, {"id": 63, "type": "ERROR", "text": "||", "parent": 61, "children": [64], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 41}}, {"id": 64, "type": "||", "text": "||", "parent": 63, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 41}}, {"id": 65, "type": "parameter_list", "text": "(this->servId == oComp.servId && this->msgId < oComp.msgId)", "parent": 61, "children": [66], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 101}}, {"id": 66, "type": "parameter_declaration", "text": "this->servId == oComp.servId && this->msgId < oComp.msgId", "parent": 65, "children": [67, 68, 78], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 100}}, {"id": 67, "type": "type_identifier", "text": "this", "parent": 66, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 47}}, {"id": 68, "type": "ERROR", "text": "->servId == oComp.servId && this->msgId < oComp.", "parent": 66, "children": [69, 70, 71, 72, 73, 74, 75, 76, 77], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 95}}, {"id": 69, "type": "identifier", "text": "servId", "parent": 68, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 55}}, {"id": 70, "type": "==", "text": "==", "parent": 68, "children": [], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 20, "column": 58}}, {"id": 71, "type": "identifier", "text": "oComp", "parent": 68, "children": [], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 64}}, {"id": 72, "type": "identifier", "text": "servId", "parent": 68, "children": [], "start_point": {"row": 20, "column": 65}, "end_point": {"row": 20, "column": 71}}, {"id": 73, "type": "&&", "text": "&&", "parent": 68, "children": [], "start_point": {"row": 20, "column": 72}, "end_point": {"row": 20, "column": 74}}, {"id": 74, "type": "identifier", "text": "this", "parent": 68, "children": [], "start_point": {"row": 20, "column": 75}, "end_point": {"row": 20, "column": 79}}, {"id": 75, "type": "identifier", "text": "msgId", "parent": 68, "children": [], "start_point": {"row": 20, "column": 81}, "end_point": {"row": 20, "column": 86}}, {"id": 76, "type": "<", "text": "<", "parent": 68, "children": [], "start_point": {"row": 20, "column": 87}, "end_point": {"row": 20, "column": 88}}, {"id": 77, "type": "identifier", "text": "oComp", "parent": 68, "children": [], "start_point": {"row": 20, "column": 89}, "end_point": {"row": 20, "column": 94}}, {"id": 78, "type": "identifier", "text": "msgId", "parent": 66, "children": [], "start_point": {"row": 20, "column": 95}, "end_point": {"row": 20, "column": 100}}, {"id": 79, "type": "primitive_type", "text": "bool", "parent": 21, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 80, "type": "ERROR", "text": "operator==( const stConfigTimer& oComp ) const", "parent": 0, "children": [81], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 55}}, {"id": 81, "type": "binary_expression", "text": "operator==( const stConfigTimer& oComp )", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 49}}, {"id": 82, "type": "identifier", "text": "operator", "parent": 81, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 17}}, {"id": 83, "type": "==", "text": "==", "parent": 81, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 19}}, {"id": 84, "type": "parenthesized_expression", "text": "( const stConfigTimer& oComp )", "parent": 81, "children": [85, 88], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 49}}, {"id": 85, "type": "ERROR", "text": "const stConfigTimer", "parent": 84, "children": [86], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 40}}, {"id": 86, "type": "type_descriptor", "text": "const stConfigTimer", "parent": 85, "children": [87], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 40}}, {"id": 87, "type": "type_identifier", "text": "stConfigTimer", "parent": 86, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 40}}, {"id": 88, "type": "pointer_expression", "text": "& oComp", "parent": 84, "children": [89], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 47}}, {"id": 89, "type": "identifier", "text": "oComp", "parent": 88, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 47}}, {"id": 90, "type": "return_statement", "text": "return this->servId == oComp.servId && this->msgId == oComp.msgId;", "parent": 0, "children": [91], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 70}}, {"id": 91, "type": "binary_expression", "text": "this->servId == oComp.servId && this->msgId == oComp.msgId", "parent": 90, "children": [92, 100, 101], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 69}}, {"id": 92, "type": "binary_expression", "text": "this->servId == oComp.servId", "parent": 91, "children": [93, 96, 97], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 39}}, {"id": 93, "type": "field_expression", "text": "this->servId", "parent": 92, "children": [94, 95], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 23}}, {"id": 94, "type": "identifier", "text": "this", "parent": 93, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 15}}, {"id": 95, "type": "field_identifier", "text": "servId", "parent": 93, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 23}}, {"id": 96, "type": "==", "text": "==", "parent": 92, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 26}}, {"id": 97, "type": "field_expression", "text": "oComp.servId", "parent": 92, "children": [98, 99], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 39}}, {"id": 98, "type": "identifier", "text": "oComp", "parent": 97, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 32}}, {"id": 99, "type": "field_identifier", "text": "servId", "parent": 97, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 39}}, {"id": 100, "type": "&&", "text": "&&", "parent": 91, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 42}}, {"id": 101, "type": "binary_expression", "text": "this->msgId == oComp.msgId", "parent": 91, "children": [102, 105, 106], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 69}}, {"id": 102, "type": "field_expression", "text": "this->msgId", "parent": 101, "children": [103, 104], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 54}}, {"id": 103, "type": "identifier", "text": "this", "parent": 102, "children": [], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 47}}, {"id": 104, "type": "field_identifier", "text": "msgId", "parent": 102, "children": [], "start_point": {"row": 24, "column": 49}, "end_point": {"row": 24, "column": 54}}, {"id": 105, "type": "==", "text": "==", "parent": 101, "children": [], "start_point": {"row": 24, "column": 55}, "end_point": {"row": 24, "column": 57}}, {"id": 106, "type": "field_expression", "text": "oComp.msgId", "parent": 101, "children": [107, 108], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 69}}, {"id": 107, "type": "identifier", "text": "oComp", "parent": 106, "children": [], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 63}}, {"id": 108, "type": "field_identifier", "text": "msgId", "parent": 106, "children": [], "start_point": {"row": 24, "column": 64}, "end_point": {"row": 24, "column": 69}}, {"id": 109, "type": "identifier", "text": "SConfigTimer", "parent": 0, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 14}}, {"id": 110, "type": "ERROR", "text": "typedef struct stTimerMsg\n{\n struct timeval_a tmStart;\n char guid[64];\npublic:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);\n\n uuid_t uu;\n #ifdef WIN32\n if (S_OK == ::CoCreateGuid(&uu))\n {\n\t\tsnprintf(guid, sizeof(guid),", "parent": 0, "children": [111, 112, 113, 114, 119, 124, 136, 139, 140, 141, 148, 149, 150, 152], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 41, "column": 30}}, {"id": 111, "type": "typedef", "text": "typedef", "parent": 110, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 112, "type": "struct", "text": "struct", "parent": 110, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 14}}, {"id": 113, "type": "identifier", "text": "stTimerMsg", "parent": 110, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 25}}, {"id": 114, "type": "field_declaration", "text": "struct timeval_a tmStart;", "parent": 110, "children": [115, 118], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 29}}, {"id": 115, "type": "struct_specifier", "text": "struct timeval_a", "parent": 114, "children": [116, 117], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 20}}, {"id": 116, "type": "struct", "text": "struct", "parent": 115, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 117, "type": "type_identifier", "text": "timeval_a", "parent": 115, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 20}}, {"id": 118, "type": "field_identifier", "text": "tmStart", "parent": 114, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 28}}, {"id": 119, "type": "field_declaration", "text": "char guid[64];", "parent": 110, "children": [120, 121], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 18}}, {"id": 120, "type": "primitive_type", "text": "char", "parent": 119, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 121, "type": "array_declarator", "text": "guid[64]", "parent": 119, "children": [122, 123], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 17}}, {"id": 122, "type": "field_identifier", "text": "guid", "parent": 121, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 13}}, {"id": 123, "type": "number_literal", "text": "64", "parent": 121, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 16}}, {"id": 124, "type": "field_declaration", "text": "public:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);", "parent": 110, "children": [125, 129], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 35, "column": 35}}, {"id": 125, "type": "ERROR", "text": ":\n stTimerMsg()\n {", "parent": 124, "children": [126], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 34, "column": 5}}, {"id": 126, "type": "function_declarator", "text": "stTimerMsg()", "parent": 125, "children": [127, 128], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 16}}, {"id": 127, "type": "field_identifier", "text": "stTimerMsg", "parent": 126, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 14}}, {"id": 128, "type": "parameter_list", "text": "()", "parent": 126, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 16}}, {"id": 129, "type": "function_declarator", "text": "gettimeofday_a(&tmStart,0)", "parent": 124, "children": [130, 131], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 34}}, {"id": 130, "type": "field_identifier", "text": "gettimeofday_a", "parent": 129, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 22}}, {"id": 131, "type": "parameter_list", "text": "(&tmStart,0)", "parent": 129, "children": [132, 134], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 34}}, {"id": 132, "type": "parameter_declaration", "text": "tmStart", "parent": 131, "children": [133], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 31}}, {"id": 133, "type": "type_identifier", "text": "tmStart", "parent": 132, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 31}}, {"id": 134, "type": "ERROR", "text": ",0", "parent": 131, "children": [135], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 33}}, {"id": 135, "type": "number_literal", "text": "0", "parent": 134, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 33}}, {"id": 136, "type": "field_declaration", "text": "uuid_t uu;", "parent": 110, "children": [137, 138], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 18}}, {"id": 137, "type": "type_identifier", "text": "uuid_t", "parent": 136, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 138, "type": "field_identifier", "text": "uu", "parent": 136, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 17}}, {"id": 139, "type": "#ifdef", "text": "#ifdef", "parent": 110, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 14}}, {"id": 140, "type": "identifier", "text": "WIN32", "parent": 110, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 20}}, {"id": 141, "type": "macro_type_specifier", "text": "if (S_OK == ::CoCreateGuid(&uu)", "parent": 110, "children": [142, 144], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 39}}, {"id": 142, "type": "type_descriptor", "text": "S_OK", "parent": 141, "children": [143], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 16}}, {"id": 143, "type": "type_identifier", "text": "S_OK", "parent": 142, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 16}}, {"id": 144, "type": "ERROR", "text": "== ::CoCreateGuid(&uu", "parent": 141, "children": [145, 146, 147], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 38}}, {"id": 145, "type": "==", "text": "==", "parent": 144, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 19}}, {"id": 146, "type": "identifier", "text": "CoCreateGuid", "parent": 144, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 34}}, {"id": 147, "type": "identifier", "text": "uu", "parent": 144, "children": [], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 38}}, {"id": 148, "type": "ERROR", "text": ")\n {", "parent": 110, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 40, "column": 9}}, {"id": 149, "type": "field_identifier", "text": "snprintf", "parent": 110, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 10}}, {"id": 150, "type": "parameter_declaration", "text": "guid", "parent": 110, "children": [151], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 15}}, {"id": 151, "type": "type_identifier", "text": "guid", "parent": 150, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 15}}, {"id": 152, "type": "parameter_declaration", "text": "sizeof(guid)", "parent": 110, "children": [153], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 29}}, {"id": 153, "type": "abstract_function_declarator", "text": "(guid)", "parent": 152, "children": [154], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 29}}, {"id": 154, "type": "parameter_list", "text": "(guid)", "parent": 153, "children": [155], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 29}}, {"id": 155, "type": "parameter_declaration", "text": "guid", "parent": 154, "children": [156], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 28}}, {"id": 156, "type": "type_identifier", "text": "guid", "parent": 155, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 28}}, {"id": 157, "type": "comma_expression", "text": "\"%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 0, "children": [158, 159], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 42, "column": 134}}, {"id": 158, "type": "string_literal", "text": "\"%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X\"", "parent": 157, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 70}}, {"id": 159, "type": "comma_expression", "text": "uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 157, "children": [160, 163], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 134}}, {"id": 160, "type": "field_expression", "text": "uu.Data1", "parent": 159, "children": [161, 162], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 20}}, {"id": 161, "type": "identifier", "text": "uu", "parent": 160, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 14}}, {"id": 162, "type": "field_identifier", "text": "Data1", "parent": 160, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 20}}, {"id": 163, "type": "comma_expression", "text": "uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 159, "children": [164, 167], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 134}}, {"id": 164, "type": "field_expression", "text": "uu.Data2", "parent": 163, "children": [165, 166], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 29}}, {"id": 165, "type": "identifier", "text": "uu", "parent": 164, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 23}}, {"id": 166, "type": "field_identifier", "text": "Data2", "parent": 164, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 29}}, {"id": 167, "type": "comma_expression", "text": "uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 163, "children": [168, 171], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 134}}, {"id": 168, "type": "field_expression", "text": "uu.Data3", "parent": 167, "children": [169, 170], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 38}}, {"id": 169, "type": "identifier", "text": "uu", "parent": 168, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 32}}, {"id": 170, "type": "field_identifier", "text": "Data3", "parent": 168, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 38}}, {"id": 171, "type": "comma_expression", "text": "uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 167, "children": [172, 177], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 134}}, {"id": 172, "type": "subscript_expression", "text": "uu.Data4[0]", "parent": 171, "children": [173, 176], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 50}}, {"id": 173, "type": "field_expression", "text": "uu.Data4", "parent": 172, "children": [174, 175], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 47}}, {"id": 174, "type": "identifier", "text": "uu", "parent": 173, "children": [], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 41}}, {"id": 175, "type": "field_identifier", "text": "Data4", "parent": 173, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 47}}, {"id": 176, "type": "number_literal", "text": "0", "parent": 172, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 49}}, {"id": 177, "type": "comma_expression", "text": "uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 171, "children": [178, 183], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 134}}, {"id": 178, "type": "subscript_expression", "text": "uu.Data4[1]", "parent": 177, "children": [179, 182], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 62}}, {"id": 179, "type": "field_expression", "text": "uu.Data4", "parent": 178, "children": [180, 181], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 59}}, {"id": 180, "type": "identifier", "text": "uu", "parent": 179, "children": [], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 53}}, {"id": 181, "type": "field_identifier", "text": "Data4", "parent": 179, "children": [], "start_point": {"row": 42, "column": 54}, "end_point": {"row": 42, "column": 59}}, {"id": 182, "type": "number_literal", "text": "1", "parent": 178, "children": [], "start_point": {"row": 42, "column": 60}, "end_point": {"row": 42, "column": 61}}, {"id": 183, "type": "comma_expression", "text": "uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 177, "children": [184, 189], "start_point": {"row": 42, "column": 63}, "end_point": {"row": 42, "column": 134}}, {"id": 184, "type": "subscript_expression", "text": "uu.Data4[2]", "parent": 183, "children": [185, 188], "start_point": {"row": 42, "column": 63}, "end_point": {"row": 42, "column": 74}}, {"id": 185, "type": "field_expression", "text": "uu.Data4", "parent": 184, "children": [186, 187], "start_point": {"row": 42, "column": 63}, "end_point": {"row": 42, "column": 71}}, {"id": 186, "type": "identifier", "text": "uu", "parent": 185, "children": [], "start_point": {"row": 42, "column": 63}, "end_point": {"row": 42, "column": 65}}, {"id": 187, "type": "field_identifier", "text": "Data4", "parent": 185, "children": [], "start_point": {"row": 42, "column": 66}, "end_point": {"row": 42, "column": 71}}, {"id": 188, "type": "number_literal", "text": "2", "parent": 184, "children": [], "start_point": {"row": 42, "column": 72}, "end_point": {"row": 42, "column": 73}}, {"id": 189, "type": "comma_expression", "text": "uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 183, "children": [190, 195], "start_point": {"row": 42, "column": 75}, "end_point": {"row": 42, "column": 134}}, {"id": 190, "type": "subscript_expression", "text": "uu.Data4[3]", "parent": 189, "children": [191, 194], "start_point": {"row": 42, "column": 75}, "end_point": {"row": 42, "column": 86}}, {"id": 191, "type": "field_expression", "text": "uu.Data4", "parent": 190, "children": [192, 193], "start_point": {"row": 42, "column": 75}, "end_point": {"row": 42, "column": 83}}, {"id": 192, "type": "identifier", "text": "uu", "parent": 191, "children": [], "start_point": {"row": 42, "column": 75}, "end_point": {"row": 42, "column": 77}}, {"id": 193, "type": "field_identifier", "text": "Data4", "parent": 191, "children": [], "start_point": {"row": 42, "column": 78}, "end_point": {"row": 42, "column": 83}}, {"id": 194, "type": "number_literal", "text": "3", "parent": 190, "children": [], "start_point": {"row": 42, "column": 84}, "end_point": {"row": 42, "column": 85}}, {"id": 195, "type": "comma_expression", "text": "uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 189, "children": [196, 201], "start_point": {"row": 42, "column": 87}, "end_point": {"row": 42, "column": 134}}, {"id": 196, "type": "subscript_expression", "text": "uu.Data4[4]", "parent": 195, "children": [197, 200], "start_point": {"row": 42, "column": 87}, "end_point": {"row": 42, "column": 98}}, {"id": 197, "type": "field_expression", "text": "uu.Data4", "parent": 196, "children": [198, 199], "start_point": {"row": 42, "column": 87}, "end_point": {"row": 42, "column": 95}}, {"id": 198, "type": "identifier", "text": "uu", "parent": 197, "children": [], "start_point": {"row": 42, "column": 87}, "end_point": {"row": 42, "column": 89}}, {"id": 199, "type": "field_identifier", "text": "Data4", "parent": 197, "children": [], "start_point": {"row": 42, "column": 90}, "end_point": {"row": 42, "column": 95}}, {"id": 200, "type": "number_literal", "text": "4", "parent": 196, "children": [], "start_point": {"row": 42, "column": 96}, "end_point": {"row": 42, "column": 97}}, {"id": 201, "type": "comma_expression", "text": "uu.Data4[5],uu.Data4[6],uu.Data4[7]", "parent": 195, "children": [202, 207], "start_point": {"row": 42, "column": 99}, "end_point": {"row": 42, "column": 134}}, {"id": 202, "type": "subscript_expression", "text": "uu.Data4[5]", "parent": 201, "children": [203, 206], "start_point": {"row": 42, "column": 99}, "end_point": {"row": 42, "column": 110}}, {"id": 203, "type": "field_expression", "text": "uu.Data4", "parent": 202, "children": [204, 205], "start_point": {"row": 42, "column": 99}, "end_point": {"row": 42, "column": 107}}, {"id": 204, "type": "identifier", "text": "uu", "parent": 203, "children": [], "start_point": {"row": 42, "column": 99}, "end_point": {"row": 42, "column": 101}}, {"id": 205, "type": "field_identifier", "text": "Data4", "parent": 203, "children": [], "start_point": {"row": 42, "column": 102}, "end_point": {"row": 42, "column": 107}}, {"id": 206, "type": "number_literal", "text": "5", "parent": 202, "children": [], "start_point": {"row": 42, "column": 108}, "end_point": {"row": 42, "column": 109}}, {"id": 207, "type": "comma_expression", "text": "uu.Data4[6],uu.Data4[7]", "parent": 201, "children": [208, 213], "start_point": {"row": 42, "column": 111}, "end_point": {"row": 42, "column": 134}}, {"id": 208, "type": "subscript_expression", "text": "uu.Data4[6]", "parent": 207, "children": [209, 212], "start_point": {"row": 42, "column": 111}, "end_point": {"row": 42, "column": 122}}, {"id": 209, "type": "field_expression", "text": "uu.Data4", "parent": 208, "children": [210, 211], "start_point": {"row": 42, "column": 111}, "end_point": {"row": 42, "column": 119}}, {"id": 210, "type": "identifier", "text": "uu", "parent": 209, "children": [], "start_point": {"row": 42, "column": 111}, "end_point": {"row": 42, "column": 113}}, {"id": 211, "type": "field_identifier", "text": "Data4", "parent": 209, "children": [], "start_point": {"row": 42, "column": 114}, "end_point": {"row": 42, "column": 119}}, {"id": 212, "type": "number_literal", "text": "6", "parent": 208, "children": [], "start_point": {"row": 42, "column": 120}, "end_point": {"row": 42, "column": 121}}, {"id": 213, "type": "subscript_expression", "text": "uu.Data4[7]", "parent": 207, "children": [214, 217], "start_point": {"row": 42, "column": 123}, "end_point": {"row": 42, "column": 134}}, {"id": 214, "type": "field_expression", "text": "uu.Data4", "parent": 213, "children": [215, 216], "start_point": {"row": 42, "column": 123}, "end_point": {"row": 42, "column": 131}}, {"id": 215, "type": "identifier", "text": "uu", "parent": 214, "children": [], "start_point": {"row": 42, "column": 123}, "end_point": {"row": 42, "column": 125}}, {"id": 216, "type": "field_identifier", "text": "Data4", "parent": 214, "children": [], "start_point": {"row": 42, "column": 126}, "end_point": {"row": 42, "column": 131}}, {"id": 217, "type": "number_literal", "text": "7", "parent": 213, "children": [], "start_point": {"row": 42, "column": 132}, "end_point": {"row": 42, "column": 133}}, {"id": 218, "type": "preproc_else", "text": "#else\n uuid_generate( uu );\n snprintf(guid, sizeof(guid), \"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);", "parent": 0, "children": [219], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 48, "column": 82}}, {"id": 219, "type": "#else", "text": "#else", "parent": 218, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 13}}, {"id": 220, "type": "call_expression", "text": "uuid_generate( uu )", "parent": 218, "children": [221, 222], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 31}}, {"id": 221, "type": "identifier", "text": "uuid_generate", "parent": 220, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 25}}, {"id": 222, "type": "argument_list", "text": "( uu )", "parent": 220, "children": [223], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 31}}, {"id": 223, "type": "identifier", "text": "uu", "parent": 222, "children": [], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 29}}, {"id": 224, "type": "call_expression", "text": "snprintf(guid, sizeof(guid), \"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15])", "parent": 218, "children": [225, 226], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 48, "column": 81}}, {"id": 225, "type": "identifier", "text": "snprintf", "parent": 224, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 20}}, {"id": 226, "type": "argument_list", "text": "(guid, sizeof(guid), \"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15])", "parent": 224, "children": [227, 228, 231, 232, 235, 238, 241, 244, 247, 250, 253, 256, 259, 262, 265, 268, 271, 274, 277], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 48, "column": 81}}, {"id": 227, "type": "identifier", "text": "guid", "parent": 226, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 25}}, {"id": 228, "type": "sizeof_expression", "text": "sizeof(guid)", "parent": 226, "children": [229], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 39}}, {"id": 229, "type": "parenthesized_expression", "text": "(guid)", "parent": 228, "children": [230], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 39}}, {"id": 230, "type": "identifier", "text": "guid", "parent": 229, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 38}}, {"id": 231, "type": "string_literal", "text": "\"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\"", "parent": 226, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 107}}, {"id": 232, "type": "subscript_expression", "text": "uu[0]", "parent": 226, "children": [233, 234], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 25}}, {"id": 233, "type": "identifier", "text": "uu", "parent": 232, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 22}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 232, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 24}}, {"id": 235, "type": "subscript_expression", "text": "uu[1]", "parent": 226, "children": [236, 237], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 32}}, {"id": 236, "type": "identifier", "text": "uu", "parent": 235, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 29}}, {"id": 237, "type": "number_literal", "text": "1", "parent": 235, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 31}}, {"id": 238, "type": "subscript_expression", "text": "uu[2]", "parent": 226, "children": [239, 240], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 39}}, {"id": 239, "type": "identifier", "text": "uu", "parent": 238, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 36}}, {"id": 240, "type": "number_literal", "text": "2", "parent": 238, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 38}}, {"id": 241, "type": "subscript_expression", "text": "uu[3]", "parent": 226, "children": [242, 243], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 47}}, {"id": 242, "type": "identifier", "text": "uu", "parent": 241, "children": [], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 44}}, {"id": 243, "type": "number_literal", "text": "3", "parent": 241, "children": [], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 46}}, {"id": 244, "type": "subscript_expression", "text": "uu[4]", "parent": 226, "children": [245, 246], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 55}}, {"id": 245, "type": "identifier", "text": "uu", "parent": 244, "children": [], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 52}}, {"id": 246, "type": "number_literal", "text": "4", "parent": 244, "children": [], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 54}}, {"id": 247, "type": "subscript_expression", "text": "uu[5]", "parent": 226, "children": [248, 249], "start_point": {"row": 47, "column": 58}, "end_point": {"row": 47, "column": 63}}, {"id": 248, "type": "identifier", "text": "uu", "parent": 247, "children": [], "start_point": {"row": 47, "column": 58}, "end_point": {"row": 47, "column": 60}}, {"id": 249, "type": "number_literal", "text": "5", "parent": 247, "children": [], "start_point": {"row": 47, "column": 61}, "end_point": {"row": 47, "column": 62}}, {"id": 250, "type": "subscript_expression", "text": "uu[6]", "parent": 226, "children": [251, 252], "start_point": {"row": 47, "column": 66}, "end_point": {"row": 47, "column": 71}}, {"id": 251, "type": "identifier", "text": "uu", "parent": 250, "children": [], "start_point": {"row": 47, "column": 66}, "end_point": {"row": 47, "column": 68}}, {"id": 252, "type": "number_literal", "text": "6", "parent": 250, "children": [], "start_point": {"row": 47, "column": 69}, "end_point": {"row": 47, "column": 70}}, {"id": 253, "type": "subscript_expression", "text": "uu[7]", "parent": 226, "children": [254, 255], "start_point": {"row": 47, "column": 74}, "end_point": {"row": 47, "column": 79}}, {"id": 254, "type": "identifier", "text": "uu", "parent": 253, "children": [], "start_point": {"row": 47, "column": 74}, "end_point": {"row": 47, "column": 76}}, {"id": 255, "type": "number_literal", "text": "7", "parent": 253, "children": [], "start_point": {"row": 47, "column": 77}, "end_point": {"row": 47, "column": 78}}, {"id": 256, "type": "subscript_expression", "text": "uu[8]", "parent": 226, "children": [257, 258], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 25}}, {"id": 257, "type": "identifier", "text": "uu", "parent": 256, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 22}}, {"id": 258, "type": "number_literal", "text": "8", "parent": 256, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 24}}, {"id": 259, "type": "subscript_expression", "text": "uu[9]", "parent": 226, "children": [260, 261], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 32}}, {"id": 260, "type": "identifier", "text": "uu", "parent": 259, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 29}}, {"id": 261, "type": "number_literal", "text": "9", "parent": 259, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 31}}, {"id": 262, "type": "subscript_expression", "text": "uu[10]", "parent": 226, "children": [263, 264], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 40}}, {"id": 263, "type": "identifier", "text": "uu", "parent": 262, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 36}}, {"id": 264, "type": "number_literal", "text": "10", "parent": 262, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 39}}, {"id": 265, "type": "subscript_expression", "text": "uu[11]", "parent": 226, "children": [266, 267], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 48}}, {"id": 266, "type": "identifier", "text": "uu", "parent": 265, "children": [], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 44}}, {"id": 267, "type": "number_literal", "text": "11", "parent": 265, "children": [], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 47}}, {"id": 268, "type": "subscript_expression", "text": "uu[12]", "parent": 226, "children": [269, 270], "start_point": {"row": 48, "column": 50}, "end_point": {"row": 48, "column": 56}}, {"id": 269, "type": "identifier", "text": "uu", "parent": 268, "children": [], "start_point": {"row": 48, "column": 50}, "end_point": {"row": 48, "column": 52}}, {"id": 270, "type": "number_literal", "text": "12", "parent": 268, "children": [], "start_point": {"row": 48, "column": 53}, "end_point": {"row": 48, "column": 55}}, {"id": 271, "type": "subscript_expression", "text": "uu[13]", "parent": 226, "children": [272, 273], "start_point": {"row": 48, "column": 58}, "end_point": {"row": 48, "column": 64}}, {"id": 272, "type": "identifier", "text": "uu", "parent": 271, "children": [], "start_point": {"row": 48, "column": 58}, "end_point": {"row": 48, "column": 60}}, {"id": 273, "type": "number_literal", "text": "13", "parent": 271, "children": [], "start_point": {"row": 48, "column": 61}, "end_point": {"row": 48, "column": 63}}, {"id": 274, "type": "subscript_expression", "text": "uu[14]", "parent": 226, "children": [275, 276], "start_point": {"row": 48, "column": 66}, "end_point": {"row": 48, "column": 72}}, {"id": 275, "type": "identifier", "text": "uu", "parent": 274, "children": [], "start_point": {"row": 48, "column": 66}, "end_point": {"row": 48, "column": 68}}, {"id": 276, "type": "number_literal", "text": "14", "parent": 274, "children": [], "start_point": {"row": 48, "column": 69}, "end_point": {"row": 48, "column": 71}}, {"id": 277, "type": "subscript_expression", "text": "uu[15]", "parent": 226, "children": [278, 279], "start_point": {"row": 48, "column": 74}, "end_point": {"row": 48, "column": 80}}, {"id": 278, "type": "identifier", "text": "uu", "parent": 277, "children": [], "start_point": {"row": 48, "column": 74}, "end_point": {"row": 48, "column": 76}}, {"id": 279, "type": "number_literal", "text": "15", "parent": 277, "children": [], "start_point": {"row": 48, "column": 77}, "end_point": {"row": 48, "column": 79}}, {"id": 280, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 14}}, {"id": 281, "type": "function_definition", "text": "struct timeval_a calcInteval()\n {\n struct timeval_a now;\n gettimeofday_a(&now,0);\n\n struct timeval_a diff;\n timersub(&now, &tmStart, &diff);\n return diff;\n }", "parent": null, "children": [282, 285], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 59, "column": 5}}, {"id": 282, "type": "struct_specifier", "text": "struct timeval_a", "parent": 281, "children": [283, 284], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 20}}, {"id": 283, "type": "struct", "text": "struct", "parent": 282, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 10}}, {"id": 284, "type": "type_identifier", "text": "timeval_a", "parent": 282, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 20}}, {"id": 285, "type": "function_declarator", "text": "calcInteval()", "parent": 281, "children": [286, 287], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 34}}, {"id": 286, "type": "identifier", "text": "calcInteval", "parent": 285, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 32}}, {"id": 287, "type": "parameter_list", "text": "()", "parent": 285, "children": [], "start_point": {"row": 51, "column": 32}, "end_point": {"row": 51, "column": 34}}, {"id": 288, "type": "declaration", "text": "struct timeval_a now;", "parent": 281, "children": [289, 292], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 29}}, {"id": 289, "type": "struct_specifier", "text": "struct timeval_a", "parent": 288, "children": [290, 291], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 24}}, {"id": 290, "type": "struct", "text": "struct", "parent": 289, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 14}}, {"id": 291, "type": "type_identifier", "text": "timeval_a", "parent": 289, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 24}}, {"id": 292, "type": "identifier", "text": "now", "parent": 288, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 28}}, {"id": 293, "type": "call_expression", "text": "gettimeofday_a(&now,0)", "parent": 281, "children": [294, 295], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 30}}, {"id": 294, "type": "identifier", "text": "gettimeofday_a", "parent": 293, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 22}}, {"id": 295, "type": "argument_list", "text": "(&now,0)", "parent": 293, "children": [296, 298], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 30}}, {"id": 296, "type": "pointer_expression", "text": "&now", "parent": 295, "children": [297], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 27}}, {"id": 297, "type": "identifier", "text": "now", "parent": 296, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 27}}, {"id": 298, "type": "number_literal", "text": "0", "parent": 295, "children": [], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 29}}, {"id": 299, "type": "declaration", "text": "struct timeval_a diff;", "parent": 281, "children": [300, 303], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 30}}, {"id": 300, "type": "struct_specifier", "text": "struct timeval_a", "parent": 299, "children": [301, 302], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 24}}, {"id": 301, "type": "struct", "text": "struct", "parent": 300, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 14}}, {"id": 302, "type": "type_identifier", "text": "timeval_a", "parent": 300, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 24}}, {"id": 303, "type": "identifier", "text": "diff", "parent": 299, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 29}}, {"id": 304, "type": "call_expression", "text": "timersub(&now, &tmStart, &diff)", "parent": 281, "children": [305, 306], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 39}}, {"id": 305, "type": "identifier", "text": "timersub", "parent": 304, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 16}}, {"id": 306, "type": "argument_list", "text": "(&now, &tmStart, &diff)", "parent": 304, "children": [307, 309, 311], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 39}}, {"id": 307, "type": "pointer_expression", "text": "&now", "parent": 306, "children": [308], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 21}}, {"id": 308, "type": "identifier", "text": "now", "parent": 307, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 21}}, {"id": 309, "type": "pointer_expression", "text": "&tmStart", "parent": 306, "children": [310], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 31}}, {"id": 310, "type": "identifier", "text": "tmStart", "parent": 309, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 31}}, {"id": 311, "type": "pointer_expression", "text": "&diff", "parent": 306, "children": [312], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 38}}, {"id": 312, "type": "identifier", "text": "diff", "parent": 311, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 38}}, {"id": 313, "type": "return_statement", "text": "return diff;", "parent": 281, "children": [314], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 20}}, {"id": 314, "type": "identifier", "text": "diff", "parent": 313, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 19}}, {"id": 315, "type": "identifier", "text": "STimerMsg", "parent": null, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 11}}, {"id": 316, "type": "declaration", "text": "const unsigned int SERVICE_ID = 41646;", "parent": null, "children": [317, 320], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 38}}, {"id": 317, "type": "sized_type_specifier", "text": "unsigned int", "parent": 316, "children": [318, 319], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 18}}, {"id": 318, "type": "unsigned", "text": "unsigned", "parent": 317, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 14}}, {"id": 319, "type": "primitive_type", "text": "int", "parent": 317, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 18}}, {"id": 320, "type": "init_declarator", "text": "SERVICE_ID = 41646", "parent": 316, "children": [321, 322, 323], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 37}}, {"id": 321, "type": "identifier", "text": "SERVICE_ID", "parent": 320, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 29}}, {"id": 322, "type": "=", "text": "=", "parent": 320, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 31}}, {"id": 323, "type": "number_literal", "text": "41646", "parent": 320, "children": [], "start_point": {"row": 62, "column": 32}, "end_point": {"row": 62, "column": 37}}, {"id": 324, "type": "preproc_call", "text": "#endif // TIMERCOMMON_H_INCLUDED\n", "parent": null, "children": [325], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 325, "type": "preproc_directive", "text": "#endif", "parent": 324, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}]}, "node_categories": {"declarations": {"functions": [61, 126, 129, 153, 281, 285], "variables": [21, 26, 29, 32, 37, 40, 43, 54, 66, 114, 119, 124, 132, 136, 150, 152, 155, 288, 299, 316], "classes": [23, 24, 33, 34, 112, 115, 116, 282, 283, 289, 290, 300, 301], "imports": [6, 7, 12, 13, 17, 18], "modules": [], "enums": []}, "statements": {"expressions": [81, 84, 88, 91, 92, 93, 97, 101, 102, 106, 157, 159, 160, 163, 164, 167, 168, 171, 172, 173, 177, 178, 179, 183, 184, 185, 189, 190, 191, 195, 196, 197, 201, 202, 203, 207, 208, 209, 213, 214, 220, 224, 228, 229, 232, 235, 238, 241, 244, 247, 250, 253, 256, 259, 262, 265, 268, 271, 274, 277, 293, 296, 304, 307, 309, 311], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 10, 11, 20, 25, 28, 31, 35, 36, 39, 42, 46, 50, 52, 53, 56, 58, 60, 62, 67, 69, 71, 72, 74, 75, 77, 78, 82, 87, 89, 94, 95, 98, 99, 103, 104, 107, 108, 109, 113, 117, 118, 122, 127, 130, 133, 137, 138, 139, 140, 141, 143, 146, 147, 149, 151, 156, 161, 162, 165, 166, 169, 170, 174, 175, 180, 181, 186, 187, 192, 193, 198, 199, 204, 205, 210, 211, 215, 216, 221, 223, 225, 227, 230, 233, 236, 239, 242, 245, 248, 251, 254, 257, 260, 263, 266, 269, 272, 275, 278, 280, 284, 286, 291, 292, 294, 297, 302, 303, 305, 308, 310, 312, 314, 315, 317, 321], "returns": [90, 313], "exceptions": []}, "expressions": {"calls": [324], "literals": [8, 14, 19, 47, 123, 135, 158, 176, 182, 188, 194, 200, 206, 212, 217, 231, 234, 237, 240, 243, 246, 249, 252, 255, 258, 261, 264, 267, 270, 273, 276, 279, 298, 323], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "servId || (this->servId == oComp.servId && this->msgId < oComp.msgId)"}, {"node_id": 126, "universal_type": "function", "name": "unknown", "text_snippet": "stTimerMsg()"}, {"node_id": 129, "universal_type": "function", "name": "unknown", "text_snippet": "gettimeofday_a(&tmStart,0)"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "(guid)"}, {"node_id": 281, "universal_type": "function", "name": "timeval_a", "text_snippet": "struct timeval_a calcInteval()\n {\n struct timeval_a now;\n gettimeofday_a(&now,0);\n\n"}, {"node_id": 285, "universal_type": "function", "name": "unknown", "text_snippet": "calcInteval()"}], "class_declarations": [{"node_id": 23, "universal_type": "class", "name": "stConfigTimer", "text_snippet": "struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n "}, {"node_id": 24, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 33, "universal_type": "class", "name": "timeval_a", "text_snippet": "struct timeval_a"}, {"node_id": 34, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 112, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 115, "universal_type": "class", "name": "timeval_a", "text_snippet": "struct timeval_a"}, {"node_id": 116, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 282, "universal_type": "class", "name": "timeval_a", "text_snippet": "struct timeval_a"}, {"node_id": 283, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 289, "universal_type": "class", "name": "timeval_a", "text_snippet": "struct timeval_a"}, {"node_id": 290, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 300, "universal_type": "class", "name": "timeval_a", "text_snippet": "struct timeval_a"}, {"node_id": 301, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"detail/_time.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 12, "text": "#include <objbase.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 17, "text": "#include <uuid/uuid.h>\n"}, {"node_id": 18, "text": "#include"}]}, "original_source_code": "#ifndef TIMERCOMMON_H_INCLUDED\n#define TIMERCOMMON_H_INCLUDED\n#include \"detail/_time.h\"\n#ifdef WIN32\n#include <objbase.h>\n#else\n#include <uuid/uuid.h>\n#endif\n\ntypedef struct stConfigTimer\n{\n int servId;\n int msgId;\n struct timeval_a tmBegin;\n int invl;\n int type;\n char addr[128];\npublic:\n bool operator<( const stConfigTimer& oComp ) const\n {\n return this->servId < oComp.servId || (this->servId == oComp.servId && this->msgId < oComp.msgId);\n }\n bool operator==( const stConfigTimer& oComp ) const\n {\n return this->servId == oComp.servId && this->msgId == oComp.msgId;\n }\n} SConfigTimer;\n\ntypedef struct stTimerMsg\n{\n struct timeval_a tmStart;\n char guid[64];\npublic:\n stTimerMsg()\n {\n gettimeofday_a(&tmStart,0);\n\n uuid_t uu;\n #ifdef WIN32\n if (S_OK == ::CoCreateGuid(&uu))\n {\n\t\tsnprintf(guid, sizeof(guid),\"%X%X%X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu.Data1,uu.Data2,uu.Data3,uu.Data4[0],uu.Data4[1],uu.Data4[2],uu.Data4[3],uu.Data4[4],uu.Data4[5],uu.Data4[6],uu.Data4[7]);\n }\n #else\n uuid_generate( uu );\n snprintf(guid, sizeof(guid), \"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X\",\n uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],\n uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);\n #endif\n }\n struct timeval_a calcInteval()\n {\n struct timeval_a now;\n gettimeofday_a(&now,0);\n\n struct timeval_a diff;\n timersub(&now, &tmStart, &diff);\n return diff;\n }\n} STimerMsg;\n\nconst unsigned int SERVICE_ID = 41646;\n\n#endif // TIMERCOMMON_H_INCLUDED\n"}
80,492
c
#ifndef SONG_FILE_H #define SONG_FILE_H #include "engine/audio_effect.h" #include "engine/song.h" class SongFile { Song *song; AudioEffectFactory *fx_factory; public: struct MissingPlugin { String provider; String id; }; Error save(const String &p_path); Error load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL); typedef void (*ExportWavPatternCallback)(int, void *); Error export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL); SongFile(Song *p_song, AudioEffectFactory *p_fx_factory); }; #endif // SONG_FILE_H
31.68
19
(translation_unit) "#ifndef SONG_FILE_H\n#define SONG_FILE_H\n\n#include "engine/audio_effect.h"\n#include "engine/song.h"\n\nclass SongFile {\n Song *song;\n AudioEffectFactory *fx_factory;\n\npublic:\n struct MissingPlugin {\n String provider;\n String id;\n };\n\n Error save(const String &p_path);\n Error load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);\n\n typedef void (*ExportWavPatternCallback)(int, void *);\n\n Error export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);\n\n SongFile(Song *p_song, AudioEffectFactory *p_fx_factory);\n};\n\n#endif // SONG_FILE_H\n" (preproc_ifdef) "#ifndef SONG_FILE_H\n#define SONG_FILE_H\n\n#include "engine/audio_effect.h"\n#include "engine/song.h"\n\nclass SongFile {\n Song *song;\n AudioEffectFactory *fx_factory;\n\npublic:\n struct MissingPlugin {\n String provider;\n String id;\n };\n\n Error save(const String &p_path);\n Error load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);\n\n typedef void (*ExportWavPatternCallback)(int, void *);\n\n Error export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);\n\n SongFile(Song *p_song, AudioEffectFactory *p_fx_factory);\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "SONG_FILE_H" (preproc_def) "#define SONG_FILE_H\n" (#define) "#define" (identifier) "SONG_FILE_H" (preproc_include) "#include "engine/audio_effect.h"\n" (#include) "#include" (string_literal) ""engine/audio_effect.h"" (") """ (string_content) "engine/audio_effect.h" (") """ (preproc_include) "#include "engine/song.h"\n" (#include) "#include" (string_literal) ""engine/song.h"" (") """ (string_content) "engine/song.h" (") """ (function_definition) "class SongFile {\n Song *song;\n AudioEffectFactory *fx_factory;\n\npublic:\n struct MissingPlugin {\n String provider;\n String id;\n };\n\n Error save(const String &p_path);\n Error load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);\n\n typedef void (*ExportWavPatternCallback)(int, void *);\n\n Error export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);\n\n SongFile(Song *p_song, AudioEffectFactory *p_fx_factory);\n}" (type_identifier) "class" (identifier) "SongFile" (compound_statement) "{\n Song *song;\n AudioEffectFactory *fx_factory;\n\npublic:\n struct MissingPlugin {\n String provider;\n String id;\n };\n\n Error save(const String &p_path);\n Error load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);\n\n typedef void (*ExportWavPatternCallback)(int, void *);\n\n Error export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);\n\n SongFile(Song *p_song, AudioEffectFactory *p_fx_factory);\n}" ({) "{" (declaration) "Song *song;" (type_identifier) "Song" (pointer_declarator) "*song" (*) "*" (identifier) "song" (;) ";" (declaration) "AudioEffectFactory *fx_factory;" (type_identifier) "AudioEffectFactory" (pointer_declarator) "*fx_factory" (*) "*" (identifier) "fx_factory" (;) ";" (labeled_statement) "public:\n struct MissingPlugin {\n String provider;\n String id;\n };" (statement_identifier) "public" (:) ":" (declaration) "struct MissingPlugin {\n String provider;\n String id;\n };" (struct_specifier) "struct MissingPlugin {\n String provider;\n String id;\n }" (struct) "struct" (type_identifier) "MissingPlugin" (field_declaration_list) "{\n String provider;\n String id;\n }" ({) "{" (field_declaration) "String provider;" (type_identifier) "String" (field_identifier) "provider" (;) ";" (field_declaration) "String id;" (type_identifier) "String" (field_identifier) "id" (;) ";" (}) "}" (identifier) "" (;) ";" (declaration) "Error save(const String &p_path);" (type_identifier) "Error" (function_declarator) "save(const String &p_path)" (identifier) "save" (parameter_list) "(const String &p_path)" (() "(" (parameter_declaration) "const String &p_path" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "p_path" ()) ")" (;) ";" (declaration) "Error load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);" (type_identifier) "Error" (init_declarator) "load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL" (function_declarator) "load(const String &p_path, List<MissingPlugin> *r_missing_plugins" (identifier) "load" (parameter_list) "(const String &p_path, List<MissingPlugin> *r_missing_plugins" (() "(" (parameter_declaration) "const String &p_path" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "p_path" (,) "," (parameter_declaration) "List<MissingPlugin> *r_missing_plugins" (type_identifier) "List" (ERROR) "<MissingPlugin>" (<) "<" (identifier) "MissingPlugin" (>) ">" (pointer_declarator) "*r_missing_plugins" (*) "*" (identifier) "r_missing_plugins" ()) "" (=) "=" (null) "NULL" (NULL) "NULL" (ERROR) ")" ()) ")" (;) ";" (type_definition) "typedef void (*ExportWavPatternCallback)(int, void *);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*ExportWavPatternCallback)(int, void *)" (parenthesized_declarator) "(*ExportWavPatternCallback)" (() "(" (pointer_declarator) "*ExportWavPatternCallback" (*) "*" (type_identifier) "ExportWavPatternCallback" ()) ")" (parameter_list) "(int, void *)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "Error export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);" (type_identifier) "Error" (init_declarator) "export_wav(const String &p_path, int p_export_hz = 96000" (function_declarator) "export_wav(const String &p_path, int p_export_hz" (identifier) "export_wav" (parameter_list) "(const String &p_path, int p_export_hz" (() "(" (parameter_declaration) "const String &p_path" (type_qualifier) "const" (const) "const" (type_identifier) "String" (ERROR) "&" (&) "&" (identifier) "p_path" (,) "," (parameter_declaration) "int p_export_hz" (primitive_type) "int" (identifier) "p_export_hz" ()) "" (=) "=" (number_literal) "96000" (,) "," (init_declarator) "ExportWavPatternCallback p_callback = NULL" (identifier) "ExportWavPatternCallback" (ERROR) "p_callback" (identifier) "p_callback" (=) "=" (null) "NULL" (NULL) "NULL" (,) "," (ERROR) "void" (identifier) "void" (init_declarator) "*p_userdata = NULL" (pointer_declarator) "*p_userdata" (*) "*" (identifier) "p_userdata" (=) "=" (null) "NULL" (NULL) "NULL" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "SongFile(Song *p_song, AudioEffectFactory *p_fx_factory);" (call_expression) "SongFile(Song *p_song, AudioEffectFactory *p_fx_factory)" (identifier) "SongFile" (argument_list) "(Song *p_song, AudioEffectFactory *p_fx_factory)" (() "(" (binary_expression) "Song *p_song" (identifier) "Song" (*) "*" (identifier) "p_song" (,) "," (binary_expression) "AudioEffectFactory *p_fx_factory" (identifier) "AudioEffectFactory" (*) "*" (identifier) "p_fx_factory" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// SONG_FILE_H"
186
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.68, "nodes": 122, "errors": 0, "source_hash": "f86e1c6718dabebade8f9cb92d0d8209dbf6b1fcd3d06508c41792d1975457e2", "categorized_nodes": 75}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SONG_FILE_H\n#define SONG_FILE_H\n\n#include \"engine/audio_effect.h\"\n#include \"engine/song.h\"\n\nclass SongFile {\n\tSong *song;\n\tAudioEffectFactory *fx_factory;\n\npublic:\n\tstruct MissingPlugin {\n\t\tString provider;\n\t\tString id;\n\t};\n\n\tError save(const String &p_path);\n\tError load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);\n\n\ttypedef void (*ExportWavPatternCallback)(int, void *);\n\n\tError export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);\n\n\tSongFile(Song *p_song, AudioEffectFactory *p_fx_factory);\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 121], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 26, "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": "SONG_FILE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define SONG_FILE_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": "SONG_FILE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"engine/audio_effect.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": "\"engine/audio_effect.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 32}}, {"id": 9, "type": "preproc_include", "text": "#include \"engine/song.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": "\"engine/song.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 12, "type": "function_definition", "text": "class SongFile {\n\tSong *song;\n\tAudioEffectFactory *fx_factory;\n\npublic:\n\tstruct MissingPlugin {\n\t\tString provider;\n\t\tString id;\n\t};\n\n\tError save(const String &p_path);\n\tError load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);\n\n\ttypedef void (*ExportWavPatternCallback)(int, void *);\n\n\tError export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);\n\n\tSongFile(Song *p_song, AudioEffectFactory *p_fx_factory);\n}", "parent": 0, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 13, "type": "identifier", "text": "SongFile", "parent": 12, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 14}}, {"id": 14, "type": "declaration", "text": "Song *song;", "parent": 12, "children": [15, 16], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 12}}, {"id": 15, "type": "type_identifier", "text": "Song", "parent": 14, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 5}}, {"id": 16, "type": "pointer_declarator", "text": "*song", "parent": 14, "children": [17, 18], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 11}}, {"id": 17, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 7}}, {"id": 18, "type": "identifier", "text": "song", "parent": 16, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 11}}, {"id": 19, "type": "declaration", "text": "AudioEffectFactory *fx_factory;", "parent": 12, "children": [20, 21], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 32}}, {"id": 20, "type": "type_identifier", "text": "AudioEffectFactory", "parent": 19, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 19}}, {"id": 21, "type": "pointer_declarator", "text": "*fx_factory", "parent": 19, "children": [22, 23], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 31}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 21}}, {"id": 23, "type": "identifier", "text": "fx_factory", "parent": 21, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 31}}, {"id": 24, "type": "labeled_statement", "text": "public:\n\tstruct MissingPlugin {\n\t\tString provider;\n\t\tString id;\n\t};", "parent": 12, "children": [25], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 3}}, {"id": 25, "type": "declaration", "text": "struct MissingPlugin {\n\t\tString provider;\n\t\tString id;\n\t};", "parent": 24, "children": [26, 35], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 14, "column": 3}}, {"id": 26, "type": "struct_specifier", "text": "struct MissingPlugin {\n\t\tString provider;\n\t\tString id;\n\t}", "parent": 25, "children": [27, 28], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 14, "column": 2}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 7}}, {"id": 28, "type": "type_identifier", "text": "MissingPlugin", "parent": 26, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 21}}, {"id": 29, "type": "field_declaration", "text": "String provider;", "parent": 26, "children": [30, 31], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 18}}, {"id": 30, "type": "type_identifier", "text": "String", "parent": 29, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 8}}, {"id": 31, "type": "field_identifier", "text": "provider", "parent": 29, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 32, "type": "field_declaration", "text": "String id;", "parent": 26, "children": [33, 34], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 12}}, {"id": 33, "type": "type_identifier", "text": "String", "parent": 32, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 34, "type": "field_identifier", "text": "id", "parent": 32, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 11}}, {"id": 35, "type": "identifier", "text": "", "parent": 25, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 2}}, {"id": 36, "type": "declaration", "text": "Error save(const String &p_path);", "parent": 12, "children": [37, 38], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 34}}, {"id": 37, "type": "type_identifier", "text": "Error", "parent": 36, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 6}}, {"id": 38, "type": "function_declarator", "text": "save(const String &p_path)", "parent": 36, "children": [39, 40], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 33}}, {"id": 39, "type": "identifier", "text": "save", "parent": 38, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 11}}, {"id": 40, "type": "parameter_list", "text": "(const String &p_path)", "parent": 38, "children": [41], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 33}}, {"id": 41, "type": "parameter_declaration", "text": "const String &p_path", "parent": 40, "children": [42, 43], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 32}}, {"id": 42, "type": "type_identifier", "text": "String", "parent": 41, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 24}}, {"id": 43, "type": "identifier", "text": "p_path", "parent": 41, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 32}}, {"id": 44, "type": "declaration", "text": "Error load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);", "parent": 12, "children": [45, 46], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 81}}, {"id": 45, "type": "type_identifier", "text": "Error", "parent": 44, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 6}}, {"id": 46, "type": "init_declarator", "text": "load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL", "parent": 44, "children": [47, 62, 63], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 79}}, {"id": 47, "type": "function_declarator", "text": "load(const String &p_path, List<MissingPlugin> *r_missing_plugins", "parent": 46, "children": [48, 49], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 72}}, {"id": 48, "type": "identifier", "text": "load", "parent": 47, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 11}}, {"id": 49, "type": "parameter_list", "text": "(const String &p_path, List<MissingPlugin> *r_missing_plugins", "parent": 47, "children": [50, 53], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 72}}, {"id": 50, "type": "parameter_declaration", "text": "const String &p_path", "parent": 49, "children": [51, 52], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 32}}, {"id": 51, "type": "type_identifier", "text": "String", "parent": 50, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 24}}, {"id": 52, "type": "identifier", "text": "p_path", "parent": 50, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 32}}, {"id": 53, "type": "parameter_declaration", "text": "List<MissingPlugin> *r_missing_plugins", "parent": 49, "children": [54, 55, 59], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 72}}, {"id": 54, "type": "type_identifier", "text": "List", "parent": 53, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 38}}, {"id": 55, "type": "ERROR", "text": "<MissingPlugin>", "parent": 53, "children": [56, 57, 58], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 53}}, {"id": 56, "type": "<", "text": "<", "parent": 55, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 39}}, {"id": 57, "type": "identifier", "text": "MissingPlugin", "parent": 55, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 52}}, {"id": 58, "type": ">", "text": ">", "parent": 55, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 53}}, {"id": 59, "type": "pointer_declarator", "text": "*r_missing_plugins", "parent": 53, "children": [60, 61], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 72}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 55}}, {"id": 61, "type": "identifier", "text": "r_missing_plugins", "parent": 59, "children": [], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 72}}, {"id": 62, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 17, "column": 73}, "end_point": {"row": 17, "column": 74}}, {"id": 63, "type": "null", "text": "NULL", "parent": 46, "children": [64], "start_point": {"row": 17, "column": 75}, "end_point": {"row": 17, "column": 79}}, {"id": 64, "type": "NULL", "text": "NULL", "parent": 63, "children": [], "start_point": {"row": 17, "column": 75}, "end_point": {"row": 17, "column": 79}}, {"id": 65, "type": "type_definition", "text": "typedef void (*ExportWavPatternCallback)(int, void *);", "parent": 12, "children": [66, 67, 68], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 55}}, {"id": 66, "type": "typedef", "text": "typedef", "parent": 65, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 67, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 13}}, {"id": 68, "type": "function_declarator", "text": "(*ExportWavPatternCallback)(int, void *)", "parent": 65, "children": [69, 73], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 54}}, {"id": 69, "type": "parenthesized_declarator", "text": "(*ExportWavPatternCallback)", "parent": 68, "children": [70], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 41}}, {"id": 70, "type": "pointer_declarator", "text": "*ExportWavPatternCallback", "parent": 69, "children": [71, 72], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 40}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 16}}, {"id": 72, "type": "type_identifier", "text": "ExportWavPatternCallback", "parent": 70, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 40}}, {"id": 73, "type": "parameter_list", "text": "(int, void *)", "parent": 68, "children": [74, 76], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 54}}, {"id": 74, "type": "parameter_declaration", "text": "int", "parent": 73, "children": [75], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 45}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 45}}, {"id": 76, "type": "parameter_declaration", "text": "void *", "parent": 73, "children": [77, 78], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 53}}, {"id": 77, "type": "primitive_type", "text": "void", "parent": 76, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 51}}, {"id": 78, "type": "abstract_pointer_declarator", "text": "*", "parent": 76, "children": [79], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 53}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 53}}, {"id": 80, "type": "declaration", "text": "Error export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);", "parent": 12, "children": [81, 82, 94, 101, 103], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 134}}, {"id": 81, "type": "type_identifier", "text": "Error", "parent": 80, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 6}}, {"id": 82, "type": "init_declarator", "text": "export_wav(const String &p_path, int p_export_hz = 96000", "parent": 80, "children": [83, 92, 93], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 63}}, {"id": 83, "type": "function_declarator", "text": "export_wav(const String &p_path, int p_export_hz", "parent": 82, "children": [84, 85], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 55}}, {"id": 84, "type": "identifier", "text": "export_wav", "parent": 83, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 17}}, {"id": 85, "type": "parameter_list", "text": "(const String &p_path, int p_export_hz", "parent": 83, "children": [86, 89], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 55}}, {"id": 86, "type": "parameter_declaration", "text": "const String &p_path", "parent": 85, "children": [87, 88], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 38}}, {"id": 87, "type": "type_identifier", "text": "String", "parent": 86, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 30}}, {"id": 88, "type": "identifier", "text": "p_path", "parent": 86, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 38}}, {"id": 89, "type": "parameter_declaration", "text": "int p_export_hz", "parent": 85, "children": [90, 91], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 55}}, {"id": 90, "type": "primitive_type", "text": "int", "parent": 89, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 43}}, {"id": 91, "type": "identifier", "text": "p_export_hz", "parent": 89, "children": [], "start_point": {"row": 21, "column": 44}, "end_point": {"row": 21, "column": 55}}, {"id": 92, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 21, "column": 56}, "end_point": {"row": 21, "column": 57}}, {"id": 93, "type": "number_literal", "text": "96000", "parent": 82, "children": [], "start_point": {"row": 21, "column": 58}, "end_point": {"row": 21, "column": 63}}, {"id": 94, "type": "init_declarator", "text": "ExportWavPatternCallback p_callback = NULL", "parent": 80, "children": [95, 96, 98, 99], "start_point": {"row": 21, "column": 65}, "end_point": {"row": 21, "column": 107}}, {"id": 95, "type": "identifier", "text": "ExportWavPatternCallback", "parent": 94, "children": [], "start_point": {"row": 21, "column": 65}, "end_point": {"row": 21, "column": 89}}, {"id": 96, "type": "ERROR", "text": "p_callback", "parent": 94, "children": [97], "start_point": {"row": 21, "column": 90}, "end_point": {"row": 21, "column": 100}}, {"id": 97, "type": "identifier", "text": "p_callback", "parent": 96, "children": [], "start_point": {"row": 21, "column": 90}, "end_point": {"row": 21, "column": 100}}, {"id": 98, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 21, "column": 101}, "end_point": {"row": 21, "column": 102}}, {"id": 99, "type": "null", "text": "NULL", "parent": 94, "children": [100], "start_point": {"row": 21, "column": 103}, "end_point": {"row": 21, "column": 107}}, {"id": 100, "type": "NULL", "text": "NULL", "parent": 99, "children": [], "start_point": {"row": 21, "column": 103}, "end_point": {"row": 21, "column": 107}}, {"id": 101, "type": "ERROR", "text": "void", "parent": 80, "children": [102], "start_point": {"row": 21, "column": 109}, "end_point": {"row": 21, "column": 113}}, {"id": 102, "type": "identifier", "text": "void", "parent": 101, "children": [], "start_point": {"row": 21, "column": 109}, "end_point": {"row": 21, "column": 113}}, {"id": 103, "type": "init_declarator", "text": "*p_userdata = NULL", "parent": 80, "children": [104, 107, 108], "start_point": {"row": 21, "column": 114}, "end_point": {"row": 21, "column": 132}}, {"id": 104, "type": "pointer_declarator", "text": "*p_userdata", "parent": 103, "children": [105, 106], "start_point": {"row": 21, "column": 114}, "end_point": {"row": 21, "column": 125}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 21, "column": 114}, "end_point": {"row": 21, "column": 115}}, {"id": 106, "type": "identifier", "text": "p_userdata", "parent": 104, "children": [], "start_point": {"row": 21, "column": 115}, "end_point": {"row": 21, "column": 125}}, {"id": 107, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 21, "column": 126}, "end_point": {"row": 21, "column": 127}}, {"id": 108, "type": "null", "text": "NULL", "parent": 103, "children": [109], "start_point": {"row": 21, "column": 128}, "end_point": {"row": 21, "column": 132}}, {"id": 109, "type": "NULL", "text": "NULL", "parent": 108, "children": [], "start_point": {"row": 21, "column": 128}, "end_point": {"row": 21, "column": 132}}, {"id": 110, "type": "call_expression", "text": "SongFile(Song *p_song, AudioEffectFactory *p_fx_factory)", "parent": 12, "children": [111, 112], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 57}}, {"id": 111, "type": "identifier", "text": "SongFile", "parent": 110, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 112, "type": "argument_list", "text": "(Song *p_song, AudioEffectFactory *p_fx_factory)", "parent": 110, "children": [113, 117], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 57}}, {"id": 113, "type": "binary_expression", "text": "Song *p_song", "parent": 112, "children": [114, 115, 116], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 22}}, {"id": 114, "type": "identifier", "text": "Song", "parent": 113, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 14}}, {"id": 115, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 116, "type": "identifier", "text": "p_song", "parent": 113, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 22}}, {"id": 117, "type": "binary_expression", "text": "AudioEffectFactory *p_fx_factory", "parent": 112, "children": [118, 119, 120], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 56}}, {"id": 118, "type": "identifier", "text": "AudioEffectFactory", "parent": 117, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 42}}, {"id": 119, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 44}}, {"id": 120, "type": "identifier", "text": "p_fx_factory", "parent": 117, "children": [], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 56}}, {"id": 121, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 38, 47, 68, 83], "variables": [14, 19, 25, 29, 32, 36, 41, 44, 50, 53, 65, 74, 76, 80, 86, 89], "classes": [26, 27], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [110, 113, 117], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 18, 20, 23, 28, 30, 31, 33, 34, 35, 37, 39, 42, 43, 45, 48, 51, 52, 54, 57, 61, 72, 81, 84, 87, 88, 91, 95, 97, 102, 106, 111, 114, 116, 118, 120, 121], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 93], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "SongFile", "text_snippet": "class SongFile {\n\tSong *song;\n\tAudioEffectFactory *fx_factory;\n\npublic:\n\tstruct MissingPlugin {\n\t\tSt"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "save(const String &p_path)"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "load(const String &p_path, List<MissingPlugin> *r_missing_plugins"}, {"node_id": 68, "universal_type": "function", "name": "*)", "text_snippet": "(*ExportWavPatternCallback)(int, void *)"}, {"node_id": 83, "universal_type": "function", "name": "p_export_hz", "text_snippet": "export_wav(const String &p_path, int p_export_hz"}], "class_declarations": [{"node_id": 26, "universal_type": "class", "name": "MissingPlugin", "text_snippet": "struct MissingPlugin {\n\t\tString provider;\n\t\tString id;\n\t}"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"engine/audio_effect.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"engine/song.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef SONG_FILE_H\n#define SONG_FILE_H\n\n#include \"engine/audio_effect.h\"\n#include \"engine/song.h\"\n\nclass SongFile {\n\tSong *song;\n\tAudioEffectFactory *fx_factory;\n\npublic:\n\tstruct MissingPlugin {\n\t\tString provider;\n\t\tString id;\n\t};\n\n\tError save(const String &p_path);\n\tError load(const String &p_path, List<MissingPlugin> *r_missing_plugins = NULL);\n\n\ttypedef void (*ExportWavPatternCallback)(int, void *);\n\n\tError export_wav(const String &p_path, int p_export_hz = 96000, ExportWavPatternCallback p_callback = NULL, void *p_userdata = NULL);\n\n\tSongFile(Song *p_song, AudioEffectFactory *p_fx_factory);\n};\n\n#endif // SONG_FILE_H\n"}
80,493
c
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted provided that the following conditions are * * met: * * * * 1. Redistributions of source code must retain the above copyright * * notice, this list of conditions and the following disclaimer. * * * * 2. Redistributions in binary form must reproduce the above copyright * * notice, this list of conditions and the following disclaimer in the * * documentation and/or other materials provided with the distribution. * * * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *************************************************************************/ // -------------------------------------------------------------------- // // gpath.h - contains the definitions of the following classes necessary // for file and directory browsing : // // class File - abstracts a file // class Directory - abstracts a directory (which is a file) // class HandleManager - Manages handles to Files for interation to external systems // class FilterList - abstracts a list of file filters // class Filter- abstracts a single file filter // // -------------------------------------------------------------------- #ifndef _path_h #define _path_h #ifndef vportINCLUDED #include <vport.h> #endif #ifndef vcharINCLUDED #include vcharHEADER #endif #ifndef vfsINCLUDED #include vfsHEADER #endif class File; class Directory; class FilterList; // -------------------------------------------------------------------- // Class HandleManager - manages handles to files used for integration // to external systems. // -------------------------------------------------------------------- class HandleManager { public: HandleManager (); ~HandleManager (); void UnregisterName(const vchar *name); long int RegisterFile (File *file); File *LookupFile (long int handle); File *LookupFile (const vchar *full_name); void Purge (); private: File ** filelist; unsigned int size; unsigned int count; unsigned int free_entries; }; // -------------------------------------------------------------------- // Class File - abstracts a file. // -------------------------------------------------------------------- class File { friend class Directory; public: File(const vchar* name); virtual ~File (); vbool Save (vfsFile *vfile, int level); File* Next (); void SetDirectory (Directory*); Directory* GetDirectory (); int IsDirectory (); static const vchar* GetGlobalBeforeFlags (); static const vchar* GetGlobalAfterFlags (); static void SetGlobalBeforeFlags (const vchar*); static void SetGlobalAfterFlags (const vchar*); static void SetCplusExtensions (const vchar* exts); static void SetCExtensions (const vchar* exts); static void SetCplusFlags (const vchar* flgs); static void SetCFlags (const vchar* flgs); const vchar* SetExcludeFlag(int flag); const vchar* GetExcludeFlag(); const vchar* GetFlags (); void SetFlags (const vchar*); const vchar* DetermineFlags (); void GenerateRules (vfsFile *outputFile); const vchar* Name (); const vchar* FullName (); virtual void Print(); public: static HandleManager handleManager; static vchar* globalBeforeFlags; static vchar* globalAfterFlags; static vchar* CplusFlags; static vchar* CFlags; static vchar* CplusExtensions; static vchar* CExtensions; long int handle; protected: Directory *directory; File *next; vchar *fullname; vchar *flags; int is_dir; int excluded; }; // -------------------------------------------------------------------- // Class Directory - abstracts a directory which is a subclass of File. // -------------------------------------------------------------------- class Directory : public File { public: Directory (const vchar* name); virtual ~Directory (); void Save (vchar *filename); vbool Save (vfsFile *vfile, int level); static File *Restore (vchar *filename); void Restore (vfsFile *vfile, int level); static vchar* GetGlobalFilter (); static void SetGlobalFilter (const vchar*); vchar* GetFilter (); void SetFilter (const vchar*); vchar* DetermineFilter (); FilterList* DetermineLocalFilter (); unsigned int CountPDFfiles(vchar *sourceRoot); void WritePDFFile (vchar *outputFile, vchar *projectName, vchar *sourceRoot, vchar *modelRoot); void GeneratePDF (vfsFile *outputFile, unsigned int level, FilterList *filters, vchar * physicalPath, vchar * logicalPath); void ReadDirectory (vbool displayAll); void RemoveFiles (); virtual void Print (); File *GetFirstFile(); File* FindFileFromPath (const vchar* path); private: int AddFile (vchar *fileName, File **newList); File* FindFile (vchar *name); File* InsertionSort (File* fileList); private: File* first; FilterList *filterList; static FilterList *globalFilterList; }; // -------------------------------------------------------------------- // Class Filter - abstracts a single File Filter. // -------------------------------------------------------------------- class Filter { public: Filter (vchar *filter); ~Filter (); vbool IsFiltered (vchar *fileName); void GeneratePDF (vfsFile *outputFile, unsigned int indent); private: vchar *filter; vbool wild; }; // -------------------------------------------------------------------- // Class FilterList - abstracts a list of File Filters. // -------------------------------------------------------------------- class FilterList { public: FilterList (const vchar *filterString); ~FilterList (); vbool IsFiltered (vchar *fileName); vchar *GetFilter (); void GeneratePDF (vfsFile *outputFile, unsigned int indent); private: vchar *filterstring; vchar *copyFilterstring; Filter **filterList; unsigned int size; }; #endif
34.66
213
(translation_unit) "/*************************************************************************\n* Copyright (c) 2015, Synopsys, Inc. *\n* All rights reserved. *\n* *\n* Redistribution and use in source and binary forms, with or without *\n* modification, are permitted provided that the following conditions are *\n* met: *\n* *\n* 1. Redistributions of source code must retain the above copyright *\n* notice, this list of conditions and the following disclaimer. *\n* *\n* 2. Redistributions in binary form must reproduce the above copyright *\n* notice, this list of conditions and the following disclaimer in the *\n* documentation and/or other materials provided with the distribution. *\n* *\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *\n* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *\n* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR *\n* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT *\n* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *\n* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *\n* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *\n* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *\n* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *\n* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE *\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *\n*************************************************************************/\n// --------------------------------------------------------------------\n//\n// gpath.h - contains the definitions of the following classes necessary\n// for file and directory browsing :\n//\n// class File - abstracts a file\n// class Directory - abstracts a directory (which is a file)\n// class HandleManager - Manages handles to Files for interation to external systems\n// class FilterList - abstracts a list of file filters\n// class Filter- abstracts a single file filter\n//\n// --------------------------------------------------------------------\n\n#ifndef _path_h\n#define _path_h\n\n#ifndef vportINCLUDED\n#include <vport.h>\n#endif\n\n#ifndef vcharINCLUDED\n#include vcharHEADER\n#endif\n\n#ifndef vfsINCLUDED\n#include vfsHEADER\n#endif\n\nclass File;\nclass Directory;\nclass FilterList;\n\n// --------------------------------------------------------------------\n// Class HandleManager - manages handles to files used for integration\n// to external systems.\n// --------------------------------------------------------------------\n\nclass HandleManager\n{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void UnregisterName(const vchar *name);\n long int RegisterFile (File *file);\n File *LookupFile (long int handle);\n File *LookupFile (const vchar *full_name);\n void Purge ();\n \n private:\n File ** filelist;\n unsigned int size;\n unsigned int count;\n unsigned int free_entries;\n};\n\n\n// --------------------------------------------------------------------\n// Class File - abstracts a file.\n// --------------------------------------------------------------------\n\nclass File \n{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n \n vbool Save (vfsFile *vfile, int level);\n \n File* Next ();\n \n void SetDirectory (Directory*);\n Directory* GetDirectory ();\n int IsDirectory ();\n \n static const vchar* GetGlobalBeforeFlags ();\n static const vchar* GetGlobalAfterFlags ();\n static void SetGlobalBeforeFlags (const vchar*);\n static void SetGlobalAfterFlags (const vchar*);\n static void SetCplusExtensions (const vchar* exts);\n static void SetCExtensions (const vchar* exts);\n static void SetCplusFlags (const vchar* flgs);\n static void SetCFlags (const vchar* flgs);\n\n \n const vchar* SetExcludeFlag(int flag);\n const vchar* GetExcludeFlag();\n const vchar* GetFlags ();\n void SetFlags (const vchar*);\n const vchar* DetermineFlags ();\n \n void GenerateRules (vfsFile *outputFile); \n \n const vchar* Name ();\n const vchar* FullName ();\n \n virtual void Print();\n \n public:\n static HandleManager handleManager;\n static vchar* globalBeforeFlags;\n static vchar* globalAfterFlags;\n static vchar* CplusFlags;\n static vchar* CFlags;\n static vchar* CplusExtensions;\n static vchar* CExtensions;\n long int handle;\n \n protected:\n Directory *directory;\n File *next;\n vchar *fullname;\n vchar *flags;\n int is_dir;\n int excluded;\n};\n\n// --------------------------------------------------------------------\n// Class Directory - abstracts a directory which is a subclass of File.\n// --------------------------------------------------------------------\n\nclass Directory : public File\n{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n \n void Save (vchar *filename);\n vbool Save (vfsFile *vfile, int level);\n static File *Restore (vchar *filename);\n void Restore (vfsFile *vfile, int level);\n \n static vchar* GetGlobalFilter ();\n static void SetGlobalFilter (const vchar*);\n vchar* GetFilter ();\n void SetFilter (const vchar*);\n vchar* DetermineFilter ();\n FilterList* DetermineLocalFilter ();\n\n unsigned int CountPDFfiles(vchar *sourceRoot);\n\n void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);\n\n void ReadDirectory (vbool displayAll);\n void RemoveFiles ();\n virtual void Print ();\n \n File *GetFirstFile();\n\n File* FindFileFromPath (const vchar* path);\n\nprivate:\n int AddFile (vchar *fileName, File **newList);\n File* FindFile (vchar *name);\n File* InsertionSort (File* fileList);\n\nprivate:\n File* first;\n FilterList *filterList;\n static FilterList *globalFilterList;\n};\n\n// --------------------------------------------------------------------\n// Class Filter - abstracts a single File Filter.\n// --------------------------------------------------------------------\n\nclass Filter\n{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filter;\n vbool wild;\n};\n\n// --------------------------------------------------------------------\n// Class FilterList - abstracts a list of File Filters.\n// --------------------------------------------------------------------\n\nclass FilterList\n{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFiltered (vchar *fileName);\n vchar *GetFilter ();\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filterstring;\n vchar *copyFilterstring;\n Filter **filterList;\n unsigned int size;\n};\n\n#endif\n\n\n\n" (comment) "/*************************************************************************\n* Copyright (c) 2015, Synopsys, Inc. *\n* All rights reserved. *\n* *\n* Redistribution and use in source and binary forms, with or without *\n* modification, are permitted provided that the following conditions are *\n* met: *\n* *\n* 1. Redistributions of source code must retain the above copyright *\n* notice, this list of conditions and the following disclaimer. *\n* *\n* 2. Redistributions in binary form must reproduce the above copyright *\n* notice, this list of conditions and the following disclaimer in the *\n* documentation and/or other materials provided with the distribution. *\n* *\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *\n* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *\n* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR *\n* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT *\n* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *\n* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *\n* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *\n* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *\n* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *\n* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE *\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *\n*************************************************************************/" (comment) "// --------------------------------------------------------------------" (comment) "//" (comment) "// gpath.h - contains the definitions of the following classes necessary" (comment) "// for file and directory browsing :" (comment) "//" (comment) "// class File - abstracts a file" (comment) "// class Directory - abstracts a directory (which is a file)" (comment) "// class HandleManager - Manages handles to Files for interation to external systems" (comment) "// class FilterList - abstracts a list of file filters" (comment) "// class Filter- abstracts a single file filter" (comment) "//" (comment) "// --------------------------------------------------------------------" (preproc_ifdef) "#ifndef _path_h\n#define _path_h\n\n#ifndef vportINCLUDED\n#include <vport.h>\n#endif\n\n#ifndef vcharINCLUDED\n#include vcharHEADER\n#endif\n\n#ifndef vfsINCLUDED\n#include vfsHEADER\n#endif\n\nclass File;\nclass Directory;\nclass FilterList;\n\n// --------------------------------------------------------------------\n// Class HandleManager - manages handles to files used for integration\n// to external systems.\n// --------------------------------------------------------------------\n\nclass HandleManager\n{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void UnregisterName(const vchar *name);\n long int RegisterFile (File *file);\n File *LookupFile (long int handle);\n File *LookupFile (const vchar *full_name);\n void Purge ();\n \n private:\n File ** filelist;\n unsigned int size;\n unsigned int count;\n unsigned int free_entries;\n};\n\n\n// --------------------------------------------------------------------\n// Class File - abstracts a file.\n// --------------------------------------------------------------------\n\nclass File \n{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n \n vbool Save (vfsFile *vfile, int level);\n \n File* Next ();\n \n void SetDirectory (Directory*);\n Directory* GetDirectory ();\n int IsDirectory ();\n \n static const vchar* GetGlobalBeforeFlags ();\n static const vchar* GetGlobalAfterFlags ();\n static void SetGlobalBeforeFlags (const vchar*);\n static void SetGlobalAfterFlags (const vchar*);\n static void SetCplusExtensions (const vchar* exts);\n static void SetCExtensions (const vchar* exts);\n static void SetCplusFlags (const vchar* flgs);\n static void SetCFlags (const vchar* flgs);\n\n \n const vchar* SetExcludeFlag(int flag);\n const vchar* GetExcludeFlag();\n const vchar* GetFlags ();\n void SetFlags (const vchar*);\n const vchar* DetermineFlags ();\n \n void GenerateRules (vfsFile *outputFile); \n \n const vchar* Name ();\n const vchar* FullName ();\n \n virtual void Print();\n \n public:\n static HandleManager handleManager;\n static vchar* globalBeforeFlags;\n static vchar* globalAfterFlags;\n static vchar* CplusFlags;\n static vchar* CFlags;\n static vchar* CplusExtensions;\n static vchar* CExtensions;\n long int handle;\n \n protected:\n Directory *directory;\n File *next;\n vchar *fullname;\n vchar *flags;\n int is_dir;\n int excluded;\n};\n\n// --------------------------------------------------------------------\n// Class Directory - abstracts a directory which is a subclass of File.\n// --------------------------------------------------------------------\n\nclass Directory : public File\n{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n \n void Save (vchar *filename);\n vbool Save (vfsFile *vfile, int level);\n static File *Restore (vchar *filename);\n void Restore (vfsFile *vfile, int level);\n \n static vchar* GetGlobalFilter ();\n static void SetGlobalFilter (const vchar*);\n vchar* GetFilter ();\n void SetFilter (const vchar*);\n vchar* DetermineFilter ();\n FilterList* DetermineLocalFilter ();\n\n unsigned int CountPDFfiles(vchar *sourceRoot);\n\n void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);\n\n void ReadDirectory (vbool displayAll);\n void RemoveFiles ();\n virtual void Print ();\n \n File *GetFirstFile();\n\n File* FindFileFromPath (const vchar* path);\n\nprivate:\n int AddFile (vchar *fileName, File **newList);\n File* FindFile (vchar *name);\n File* InsertionSort (File* fileList);\n\nprivate:\n File* first;\n FilterList *filterList;\n static FilterList *globalFilterList;\n};\n\n// --------------------------------------------------------------------\n// Class Filter - abstracts a single File Filter.\n// --------------------------------------------------------------------\n\nclass Filter\n{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filter;\n vbool wild;\n};\n\n// --------------------------------------------------------------------\n// Class FilterList - abstracts a list of File Filters.\n// --------------------------------------------------------------------\n\nclass FilterList\n{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFiltered (vchar *fileName);\n vchar *GetFilter ();\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filterstring;\n vchar *copyFilterstring;\n Filter **filterList;\n unsigned int size;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "_path_h" (preproc_def) "#define _path_h\n" (#define) "#define" (identifier) "_path_h" (preproc_ifdef) "#ifndef vportINCLUDED\n#include <vport.h>\n#endif" (#ifndef) "#ifndef" (identifier) "vportINCLUDED" (preproc_include) "#include <vport.h>\n" (#include) "#include" (system_lib_string) "<vport.h>" (#endif) "#endif" (preproc_ifdef) "#ifndef vcharINCLUDED\n#include vcharHEADER\n#endif" (#ifndef) "#ifndef" (identifier) "vcharINCLUDED" (preproc_include) "#include vcharHEADER\n" (#include) "#include" (identifier) "vcharHEADER" (#endif) "#endif" (preproc_ifdef) "#ifndef vfsINCLUDED\n#include vfsHEADER\n#endif" (#ifndef) "#ifndef" (identifier) "vfsINCLUDED" (preproc_include) "#include vfsHEADER\n" (#include) "#include" (identifier) "vfsHEADER" (#endif) "#endif" (declaration) "class File;" (type_identifier) "class" (identifier) "File" (;) ";" (declaration) "class Directory;" (type_identifier) "class" (identifier) "Directory" (;) ";" (declaration) "class FilterList;" (type_identifier) "class" (identifier) "FilterList" (;) ";" (comment) "// --------------------------------------------------------------------" (comment) "// Class HandleManager - manages handles to files used for integration" (comment) "// to external systems." (comment) "// --------------------------------------------------------------------" (function_definition) "class HandleManager\n{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void UnregisterName(const vchar *name);\n long int RegisterFile (File *file);\n File *LookupFile (long int handle);\n File *LookupFile (const vchar *full_name);\n void Purge ();\n \n private:\n File ** filelist;\n unsigned int size;\n unsigned int count;\n unsigned int free_entries;\n}" (type_identifier) "class" (identifier) "HandleManager" (compound_statement) "{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void UnregisterName(const vchar *name);\n long int RegisterFile (File *file);\n File *LookupFile (long int handle);\n File *LookupFile (const vchar *full_name);\n void Purge ();\n \n private:\n File ** filelist;\n unsigned int size;\n unsigned int count;\n unsigned int free_entries;\n}" ({) "{" (labeled_statement) "public:\n HandleManager ();" (statement_identifier) "public" (:) ":" (expression_statement) "HandleManager ();" (call_expression) "HandleManager ()" (identifier) "HandleManager" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~HandleManager ();" (unary_expression) "~HandleManager ()" (~) "~" (call_expression) "HandleManager ()" (identifier) "HandleManager" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void UnregisterName(const vchar *name);" (primitive_type) "void" (function_declarator) "UnregisterName(const vchar *name)" (identifier) "UnregisterName" (parameter_list) "(const vchar *name)" (() "(" (parameter_declaration) "const vchar *name" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "long int RegisterFile (File *file);" (sized_type_specifier) "long int" (long) "long" (primitive_type) "int" (function_declarator) "RegisterFile (File *file)" (identifier) "RegisterFile" (parameter_list) "(File *file)" (() "(" (parameter_declaration) "File *file" (type_identifier) "File" (pointer_declarator) "*file" (*) "*" (identifier) "file" ()) ")" (;) ";" (declaration) "File *LookupFile (long int handle);" (type_identifier) "File" (pointer_declarator) "*LookupFile (long int handle)" (*) "*" (function_declarator) "LookupFile (long int handle)" (identifier) "LookupFile" (parameter_list) "(long int handle)" (() "(" (parameter_declaration) "long int handle" (sized_type_specifier) "long int" (long) "long" (primitive_type) "int" (identifier) "handle" ()) ")" (;) ";" (declaration) "File *LookupFile (const vchar *full_name);" (type_identifier) "File" (pointer_declarator) "*LookupFile (const vchar *full_name)" (*) "*" (function_declarator) "LookupFile (const vchar *full_name)" (identifier) "LookupFile" (parameter_list) "(const vchar *full_name)" (() "(" (parameter_declaration) "const vchar *full_name" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "*full_name" (*) "*" (identifier) "full_name" ()) ")" (;) ";" (declaration) "void Purge ();" (primitive_type) "void" (function_declarator) "Purge ()" (identifier) "Purge" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n File ** filelist;" (statement_identifier) "private" (:) ":" (declaration) "File ** filelist;" (type_identifier) "File" (pointer_declarator) "** filelist" (*) "*" (pointer_declarator) "* filelist" (*) "*" (identifier) "filelist" (;) ";" (declaration) "unsigned int size;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "size" (;) ";" (declaration) "unsigned int count;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "count" (;) ";" (declaration) "unsigned int free_entries;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "free_entries" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// --------------------------------------------------------------------" (comment) "// Class File - abstracts a file." (comment) "// --------------------------------------------------------------------" (function_definition) "class File \n{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n \n vbool Save (vfsFile *vfile, int level);\n \n File* Next ();\n \n void SetDirectory (Directory*);\n Directory* GetDirectory ();\n int IsDirectory ();\n \n static const vchar* GetGlobalBeforeFlags ();\n static const vchar* GetGlobalAfterFlags ();\n static void SetGlobalBeforeFlags (const vchar*);\n static void SetGlobalAfterFlags (const vchar*);\n static void SetCplusExtensions (const vchar* exts);\n static void SetCExtensions (const vchar* exts);\n static void SetCplusFlags (const vchar* flgs);\n static void SetCFlags (const vchar* flgs);\n\n \n const vchar* SetExcludeFlag(int flag);\n const vchar* GetExcludeFlag();\n const vchar* GetFlags ();\n void SetFlags (const vchar*);\n const vchar* DetermineFlags ();\n \n void GenerateRules (vfsFile *outputFile); \n \n const vchar* Name ();\n const vchar* FullName ();\n \n virtual void Print();\n \n public:\n static HandleManager handleManager;\n static vchar* globalBeforeFlags;\n static vchar* globalAfterFlags;\n static vchar* CplusFlags;\n static vchar* CFlags;\n static vchar* CplusExtensions;\n static vchar* CExtensions;\n long int handle;\n \n protected:\n Directory *directory;\n File *next;\n vchar *fullname;\n vchar *flags;\n int is_dir;\n int excluded;\n}" (type_identifier) "class" (identifier) "File" (compound_statement) "{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n \n vbool Save (vfsFile *vfile, int level);\n \n File* Next ();\n \n void SetDirectory (Directory*);\n Directory* GetDirectory ();\n int IsDirectory ();\n \n static const vchar* GetGlobalBeforeFlags ();\n static const vchar* GetGlobalAfterFlags ();\n static void SetGlobalBeforeFlags (const vchar*);\n static void SetGlobalAfterFlags (const vchar*);\n static void SetCplusExtensions (const vchar* exts);\n static void SetCExtensions (const vchar* exts);\n static void SetCplusFlags (const vchar* flgs);\n static void SetCFlags (const vchar* flgs);\n\n \n const vchar* SetExcludeFlag(int flag);\n const vchar* GetExcludeFlag();\n const vchar* GetFlags ();\n void SetFlags (const vchar*);\n const vchar* DetermineFlags ();\n \n void GenerateRules (vfsFile *outputFile); \n \n const vchar* Name ();\n const vchar* FullName ();\n \n virtual void Print();\n \n public:\n static HandleManager handleManager;\n static vchar* globalBeforeFlags;\n static vchar* globalAfterFlags;\n static vchar* CplusFlags;\n static vchar* CFlags;\n static vchar* CplusExtensions;\n static vchar* CExtensions;\n long int handle;\n \n protected:\n Directory *directory;\n File *next;\n vchar *fullname;\n vchar *flags;\n int is_dir;\n int excluded;\n}" ({) "{" (declaration) "friend class Directory;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "Directory" (;) ";" (labeled_statement) "public:\n File(const vchar* name);\n virtual ~File ();" (statement_identifier) "public" (:) ":" (declaration) "File(const vchar* name);\n virtual ~File ();" (macro_type_specifier) "File(const vchar* name)" (identifier) "File" (() "(" (type_descriptor) "const vchar*" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "name" (identifier) "name" ()) ")" (ERROR) ";\n virtual ~" (;) ";" (identifier) "virtual" (~) "~" (function_declarator) "File ()" (identifier) "File" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "vbool Save (vfsFile *vfile, int level);" (type_identifier) "vbool" (function_declarator) "Save (vfsFile *vfile, int level)" (identifier) "Save" (parameter_list) "(vfsFile *vfile, int level)" (() "(" (parameter_declaration) "vfsFile *vfile" (type_identifier) "vfsFile" (pointer_declarator) "*vfile" (*) "*" (identifier) "vfile" (,) "," (parameter_declaration) "int level" (primitive_type) "int" (identifier) "level" ()) ")" (;) ";" (declaration) "File* Next ();" (type_identifier) "File" (pointer_declarator) "* Next ()" (*) "*" (function_declarator) "Next ()" (identifier) "Next" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetDirectory (Directory*);" (primitive_type) "void" (function_declarator) "SetDirectory (Directory*)" (identifier) "SetDirectory" (parameter_list) "(Directory*)" (() "(" (parameter_declaration) "Directory*" (type_identifier) "Directory" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "Directory* GetDirectory ();" (type_identifier) "Directory" (pointer_declarator) "* GetDirectory ()" (*) "*" (function_declarator) "GetDirectory ()" (identifier) "GetDirectory" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int IsDirectory ();" (primitive_type) "int" (function_declarator) "IsDirectory ()" (identifier) "IsDirectory" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static const vchar* GetGlobalBeforeFlags ();" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* GetGlobalBeforeFlags ()" (*) "*" (function_declarator) "GetGlobalBeforeFlags ()" (identifier) "GetGlobalBeforeFlags" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static const vchar* GetGlobalAfterFlags ();" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* GetGlobalAfterFlags ()" (*) "*" (function_declarator) "GetGlobalAfterFlags ()" (identifier) "GetGlobalAfterFlags" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static void SetGlobalBeforeFlags (const vchar*);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "SetGlobalBeforeFlags (const vchar*)" (identifier) "SetGlobalBeforeFlags" (parameter_list) "(const vchar*)" (() "(" (parameter_declaration) "const vchar*" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "static void SetGlobalAfterFlags (const vchar*);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "SetGlobalAfterFlags (const vchar*)" (identifier) "SetGlobalAfterFlags" (parameter_list) "(const vchar*)" (() "(" (parameter_declaration) "const vchar*" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "static void SetCplusExtensions (const vchar* exts);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "SetCplusExtensions (const vchar* exts)" (identifier) "SetCplusExtensions" (parameter_list) "(const vchar* exts)" (() "(" (parameter_declaration) "const vchar* exts" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* exts" (*) "*" (identifier) "exts" ()) ")" (;) ";" (declaration) "static void SetCExtensions (const vchar* exts);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "SetCExtensions (const vchar* exts)" (identifier) "SetCExtensions" (parameter_list) "(const vchar* exts)" (() "(" (parameter_declaration) "const vchar* exts" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* exts" (*) "*" (identifier) "exts" ()) ")" (;) ";" (declaration) "static void SetCplusFlags (const vchar* flgs);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "SetCplusFlags (const vchar* flgs)" (identifier) "SetCplusFlags" (parameter_list) "(const vchar* flgs)" (() "(" (parameter_declaration) "const vchar* flgs" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* flgs" (*) "*" (identifier) "flgs" ()) ")" (;) ";" (declaration) "static void SetCFlags (const vchar* flgs);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "SetCFlags (const vchar* flgs)" (identifier) "SetCFlags" (parameter_list) "(const vchar* flgs)" (() "(" (parameter_declaration) "const vchar* flgs" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* flgs" (*) "*" (identifier) "flgs" ()) ")" (;) ";" (declaration) "const vchar* SetExcludeFlag(int flag);" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* SetExcludeFlag(int flag)" (*) "*" (function_declarator) "SetExcludeFlag(int flag)" (identifier) "SetExcludeFlag" (parameter_list) "(int flag)" (() "(" (parameter_declaration) "int flag" (primitive_type) "int" (identifier) "flag" ()) ")" (;) ";" (declaration) "const vchar* GetExcludeFlag();" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* GetExcludeFlag()" (*) "*" (function_declarator) "GetExcludeFlag()" (identifier) "GetExcludeFlag" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "const vchar* GetFlags ();" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* GetFlags ()" (*) "*" (function_declarator) "GetFlags ()" (identifier) "GetFlags" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetFlags (const vchar*);" (primitive_type) "void" (function_declarator) "SetFlags (const vchar*)" (identifier) "SetFlags" (parameter_list) "(const vchar*)" (() "(" (parameter_declaration) "const vchar*" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "const vchar* DetermineFlags ();" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* DetermineFlags ()" (*) "*" (function_declarator) "DetermineFlags ()" (identifier) "DetermineFlags" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void GenerateRules (vfsFile *outputFile);" (primitive_type) "void" (function_declarator) "GenerateRules (vfsFile *outputFile)" (identifier) "GenerateRules" (parameter_list) "(vfsFile *outputFile)" (() "(" (parameter_declaration) "vfsFile *outputFile" (type_identifier) "vfsFile" (pointer_declarator) "*outputFile" (*) "*" (identifier) "outputFile" ()) ")" (;) ";" (declaration) "const vchar* Name ();" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* Name ()" (*) "*" (function_declarator) "Name ()" (identifier) "Name" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "const vchar* FullName ();" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* FullName ()" (*) "*" (function_declarator) "FullName ()" (identifier) "FullName" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void Print();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Print()" (identifier) "Print" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n static HandleManager handleManager;" (statement_identifier) "public" (:) ":" (declaration) "static HandleManager handleManager;" (storage_class_specifier) "static" (static) "static" (type_identifier) "HandleManager" (identifier) "handleManager" (;) ";" (declaration) "static vchar* globalBeforeFlags;" (storage_class_specifier) "static" (static) "static" (type_identifier) "vchar" (pointer_declarator) "* globalBeforeFlags" (*) "*" (identifier) "globalBeforeFlags" (;) ";" (declaration) "static vchar* globalAfterFlags;" (storage_class_specifier) "static" (static) "static" (type_identifier) "vchar" (pointer_declarator) "* globalAfterFlags" (*) "*" (identifier) "globalAfterFlags" (;) ";" (declaration) "static vchar* CplusFlags;" (storage_class_specifier) "static" (static) "static" (type_identifier) "vchar" (pointer_declarator) "* CplusFlags" (*) "*" (identifier) "CplusFlags" (;) ";" (declaration) "static vchar* CFlags;" (storage_class_specifier) "static" (static) "static" (type_identifier) "vchar" (pointer_declarator) "* CFlags" (*) "*" (identifier) "CFlags" (;) ";" (declaration) "static vchar* CplusExtensions;" (storage_class_specifier) "static" (static) "static" (type_identifier) "vchar" (pointer_declarator) "* CplusExtensions" (*) "*" (identifier) "CplusExtensions" (;) ";" (declaration) "static vchar* CExtensions;" (storage_class_specifier) "static" (static) "static" (type_identifier) "vchar" (pointer_declarator) "* CExtensions" (*) "*" (identifier) "CExtensions" (;) ";" (declaration) "long int handle;" (sized_type_specifier) "long int" (long) "long" (primitive_type) "int" (identifier) "handle" (;) ";" (labeled_statement) "protected:\n Directory *directory;" (statement_identifier) "protected" (:) ":" (declaration) "Directory *directory;" (type_identifier) "Directory" (pointer_declarator) "*directory" (*) "*" (identifier) "directory" (;) ";" (declaration) "File *next;" (type_identifier) "File" (pointer_declarator) "*next" (*) "*" (identifier) "next" (;) ";" (declaration) "vchar *fullname;" (type_identifier) "vchar" (pointer_declarator) "*fullname" (*) "*" (identifier) "fullname" (;) ";" (declaration) "vchar *flags;" (type_identifier) "vchar" (pointer_declarator) "*flags" (*) "*" (identifier) "flags" (;) ";" (declaration) "int is_dir;" (primitive_type) "int" (identifier) "is_dir" (;) ";" (declaration) "int excluded;" (primitive_type) "int" (identifier) "excluded" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// --------------------------------------------------------------------" (comment) "// Class Directory - abstracts a directory which is a subclass of File." (comment) "// --------------------------------------------------------------------" (function_definition) "class Directory : public File\n{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n \n void Save (vchar *filename);\n vbool Save (vfsFile *vfile, int level);\n static File *Restore (vchar *filename);\n void Restore (vfsFile *vfile, int level);\n \n static vchar* GetGlobalFilter ();\n static void SetGlobalFilter (const vchar*);\n vchar* GetFilter ();\n void SetFilter (const vchar*);\n vchar* DetermineFilter ();\n FilterList* DetermineLocalFilter ();\n\n unsigned int CountPDFfiles(vchar *sourceRoot);\n\n void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);\n\n void ReadDirectory (vbool displayAll);\n void RemoveFiles ();\n virtual void Print ();\n \n File *GetFirstFile();\n\n File* FindFileFromPath (const vchar* path);\n\nprivate:\n int AddFile (vchar *fileName, File **newList);\n File* FindFile (vchar *name);\n File* InsertionSort (File* fileList);\n\nprivate:\n File* first;\n FilterList *filterList;\n static FilterList *globalFilterList;\n}" (type_identifier) "class" (identifier) "Directory" (ERROR) ": public File" (:) ":" (identifier) "public" (identifier) "File" (compound_statement) "{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n \n void Save (vchar *filename);\n vbool Save (vfsFile *vfile, int level);\n static File *Restore (vchar *filename);\n void Restore (vfsFile *vfile, int level);\n \n static vchar* GetGlobalFilter ();\n static void SetGlobalFilter (const vchar*);\n vchar* GetFilter ();\n void SetFilter (const vchar*);\n vchar* DetermineFilter ();\n FilterList* DetermineLocalFilter ();\n\n unsigned int CountPDFfiles(vchar *sourceRoot);\n\n void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);\n\n void ReadDirectory (vbool displayAll);\n void RemoveFiles ();\n virtual void Print ();\n \n File *GetFirstFile();\n\n File* FindFileFromPath (const vchar* path);\n\nprivate:\n int AddFile (vchar *fileName, File **newList);\n File* FindFile (vchar *name);\n File* InsertionSort (File* fileList);\n\nprivate:\n File* first;\n FilterList *filterList;\n static FilterList *globalFilterList;\n}" ({) "{" (labeled_statement) "public:\n Directory (const vchar* name);\n virtual ~Directory ();" (statement_identifier) "public" (:) ":" (declaration) "Directory (const vchar* name);\n virtual ~Directory ();" (macro_type_specifier) "Directory (const vchar* name)" (identifier) "Directory" (() "(" (type_descriptor) "const vchar*" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "name" (identifier) "name" ()) ")" (ERROR) ";\n virtual ~" (;) ";" (identifier) "virtual" (~) "~" (function_declarator) "Directory ()" (identifier) "Directory" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void Save (vchar *filename);" (primitive_type) "void" (function_declarator) "Save (vchar *filename)" (identifier) "Save" (parameter_list) "(vchar *filename)" (() "(" (parameter_declaration) "vchar *filename" (type_identifier) "vchar" (pointer_declarator) "*filename" (*) "*" (identifier) "filename" ()) ")" (;) ";" (declaration) "vbool Save (vfsFile *vfile, int level);" (type_identifier) "vbool" (function_declarator) "Save (vfsFile *vfile, int level)" (identifier) "Save" (parameter_list) "(vfsFile *vfile, int level)" (() "(" (parameter_declaration) "vfsFile *vfile" (type_identifier) "vfsFile" (pointer_declarator) "*vfile" (*) "*" (identifier) "vfile" (,) "," (parameter_declaration) "int level" (primitive_type) "int" (identifier) "level" ()) ")" (;) ";" (declaration) "static File *Restore (vchar *filename);" (storage_class_specifier) "static" (static) "static" (type_identifier) "File" (pointer_declarator) "*Restore (vchar *filename)" (*) "*" (function_declarator) "Restore (vchar *filename)" (identifier) "Restore" (parameter_list) "(vchar *filename)" (() "(" (parameter_declaration) "vchar *filename" (type_identifier) "vchar" (pointer_declarator) "*filename" (*) "*" (identifier) "filename" ()) ")" (;) ";" (declaration) "void Restore (vfsFile *vfile, int level);" (primitive_type) "void" (function_declarator) "Restore (vfsFile *vfile, int level)" (identifier) "Restore" (parameter_list) "(vfsFile *vfile, int level)" (() "(" (parameter_declaration) "vfsFile *vfile" (type_identifier) "vfsFile" (pointer_declarator) "*vfile" (*) "*" (identifier) "vfile" (,) "," (parameter_declaration) "int level" (primitive_type) "int" (identifier) "level" ()) ")" (;) ";" (declaration) "static vchar* GetGlobalFilter ();" (storage_class_specifier) "static" (static) "static" (type_identifier) "vchar" (pointer_declarator) "* GetGlobalFilter ()" (*) "*" (function_declarator) "GetGlobalFilter ()" (identifier) "GetGlobalFilter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static void SetGlobalFilter (const vchar*);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "SetGlobalFilter (const vchar*)" (identifier) "SetGlobalFilter" (parameter_list) "(const vchar*)" (() "(" (parameter_declaration) "const vchar*" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "vchar* GetFilter ();" (type_identifier) "vchar" (pointer_declarator) "* GetFilter ()" (*) "*" (function_declarator) "GetFilter ()" (identifier) "GetFilter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetFilter (const vchar*);" (primitive_type) "void" (function_declarator) "SetFilter (const vchar*)" (identifier) "SetFilter" (parameter_list) "(const vchar*)" (() "(" (parameter_declaration) "const vchar*" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "vchar* DetermineFilter ();" (type_identifier) "vchar" (pointer_declarator) "* DetermineFilter ()" (*) "*" (function_declarator) "DetermineFilter ()" (identifier) "DetermineFilter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "FilterList* DetermineLocalFilter ();" (type_identifier) "FilterList" (pointer_declarator) "* DetermineLocalFilter ()" (*) "*" (function_declarator) "DetermineLocalFilter ()" (identifier) "DetermineLocalFilter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "unsigned int CountPDFfiles(vchar *sourceRoot);" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "CountPDFfiles(vchar *sourceRoot)" (identifier) "CountPDFfiles" (parameter_list) "(vchar *sourceRoot)" (() "(" (parameter_declaration) "vchar *sourceRoot" (type_identifier) "vchar" (pointer_declarator) "*sourceRoot" (*) "*" (identifier) "sourceRoot" ()) ")" (;) ";" (declaration) "void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);" (primitive_type) "void" (function_declarator) "WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot)" (identifier) "WritePDFFile" (parameter_list) "(vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot)" (() "(" (parameter_declaration) "vchar *outputFile" (type_identifier) "vchar" (pointer_declarator) "*outputFile" (*) "*" (identifier) "outputFile" (,) "," (parameter_declaration) "vchar *projectName" (type_identifier) "vchar" (pointer_declarator) "*projectName" (*) "*" (identifier) "projectName" (,) "," (parameter_declaration) "vchar *sourceRoot" (type_identifier) "vchar" (pointer_declarator) "*sourceRoot" (*) "*" (identifier) "sourceRoot" (,) "," (parameter_declaration) "vchar *modelRoot" (type_identifier) "vchar" (pointer_declarator) "*modelRoot" (*) "*" (identifier) "modelRoot" ()) ")" (;) ";" (declaration) "void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);" (primitive_type) "void" (function_declarator) "GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath)" (identifier) "GeneratePDF" (parameter_list) "(vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath)" (() "(" (parameter_declaration) "vfsFile *outputFile" (type_identifier) "vfsFile" (pointer_declarator) "*outputFile" (*) "*" (identifier) "outputFile" (,) "," (parameter_declaration) "unsigned int level" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "level" (,) "," (parameter_declaration) "FilterList *filters" (type_identifier) "FilterList" (pointer_declarator) "*filters" (*) "*" (identifier) "filters" (,) "," (parameter_declaration) "vchar * physicalPath" (type_identifier) "vchar" (pointer_declarator) "* physicalPath" (*) "*" (identifier) "physicalPath" (,) "," (parameter_declaration) "vchar * logicalPath" (type_identifier) "vchar" (pointer_declarator) "* logicalPath" (*) "*" (identifier) "logicalPath" ()) ")" (;) ";" (declaration) "void ReadDirectory (vbool displayAll);" (primitive_type) "void" (function_declarator) "ReadDirectory (vbool displayAll)" (identifier) "ReadDirectory" (parameter_list) "(vbool displayAll)" (() "(" (parameter_declaration) "vbool displayAll" (type_identifier) "vbool" (identifier) "displayAll" ()) ")" (;) ";" (declaration) "void RemoveFiles ();" (primitive_type) "void" (function_declarator) "RemoveFiles ()" (identifier) "RemoveFiles" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void Print ();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Print ()" (identifier) "Print" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "File *GetFirstFile();" (type_identifier) "File" (pointer_declarator) "*GetFirstFile()" (*) "*" (function_declarator) "GetFirstFile()" (identifier) "GetFirstFile" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "File* FindFileFromPath (const vchar* path);" (type_identifier) "File" (pointer_declarator) "* FindFileFromPath (const vchar* path)" (*) "*" (function_declarator) "FindFileFromPath (const vchar* path)" (identifier) "FindFileFromPath" (parameter_list) "(const vchar* path)" (() "(" (parameter_declaration) "const vchar* path" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (pointer_declarator) "* path" (*) "*" (identifier) "path" ()) ")" (;) ";" (labeled_statement) "private:\n int AddFile (vchar *fileName, File **newList);" (statement_identifier) "private" (:) ":" (declaration) "int AddFile (vchar *fileName, File **newList);" (primitive_type) "int" (function_declarator) "AddFile (vchar *fileName, File **newList)" (identifier) "AddFile" (parameter_list) "(vchar *fileName, File **newList)" (() "(" (parameter_declaration) "vchar *fileName" (type_identifier) "vchar" (pointer_declarator) "*fileName" (*) "*" (identifier) "fileName" (,) "," (parameter_declaration) "File **newList" (type_identifier) "File" (pointer_declarator) "**newList" (*) "*" (pointer_declarator) "*newList" (*) "*" (identifier) "newList" ()) ")" (;) ";" (declaration) "File* FindFile (vchar *name);" (type_identifier) "File" (pointer_declarator) "* FindFile (vchar *name)" (*) "*" (function_declarator) "FindFile (vchar *name)" (identifier) "FindFile" (parameter_list) "(vchar *name)" (() "(" (parameter_declaration) "vchar *name" (type_identifier) "vchar" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "File* InsertionSort (File* fileList);" (type_identifier) "File" (pointer_declarator) "* InsertionSort (File* fileList)" (*) "*" (function_declarator) "InsertionSort (File* fileList)" (identifier) "InsertionSort" (parameter_list) "(File* fileList)" (() "(" (parameter_declaration) "File* fileList" (type_identifier) "File" (pointer_declarator) "* fileList" (*) "*" (identifier) "fileList" ()) ")" (;) ";" (labeled_statement) "private:\n File* first;" (statement_identifier) "private" (:) ":" (declaration) "File* first;" (type_identifier) "File" (pointer_declarator) "* first" (*) "*" (identifier) "first" (;) ";" (declaration) "FilterList *filterList;" (type_identifier) "FilterList" (pointer_declarator) "*filterList" (*) "*" (identifier) "filterList" (;) ";" (declaration) "static FilterList *globalFilterList;" (storage_class_specifier) "static" (static) "static" (type_identifier) "FilterList" (pointer_declarator) "*globalFilterList" (*) "*" (identifier) "globalFilterList" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// --------------------------------------------------------------------" (comment) "// Class Filter - abstracts a single File Filter." (comment) "// --------------------------------------------------------------------" (function_definition) "class Filter\n{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filter;\n vbool wild;\n}" (type_identifier) "class" (identifier) "Filter" (compound_statement) "{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filter;\n vbool wild;\n}" ({) "{" (labeled_statement) "public:\n Filter (vchar *filter);" (statement_identifier) "public" (:) ":" (expression_statement) "Filter (vchar *filter);" (call_expression) "Filter (vchar *filter)" (identifier) "Filter" (argument_list) "(vchar *filter)" (() "(" (binary_expression) "vchar *filter" (identifier) "vchar" (*) "*" (identifier) "filter" ()) ")" (;) ";" (expression_statement) "~Filter ();" (unary_expression) "~Filter ()" (~) "~" (call_expression) "Filter ()" (identifier) "Filter" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "vbool IsFiltered (vchar *fileName);" (type_identifier) "vbool" (function_declarator) "IsFiltered (vchar *fileName)" (identifier) "IsFiltered" (parameter_list) "(vchar *fileName)" (() "(" (parameter_declaration) "vchar *fileName" (type_identifier) "vchar" (pointer_declarator) "*fileName" (*) "*" (identifier) "fileName" ()) ")" (;) ";" (declaration) "void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);" (primitive_type) "void" (function_declarator) "GeneratePDF (vfsFile *outputFile,\n unsigned int indent)" (identifier) "GeneratePDF" (parameter_list) "(vfsFile *outputFile,\n unsigned int indent)" (() "(" (parameter_declaration) "vfsFile *outputFile" (type_identifier) "vfsFile" (pointer_declarator) "*outputFile" (*) "*" (identifier) "outputFile" (,) "," (parameter_declaration) "unsigned int indent" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "indent" ()) ")" (;) ";" (labeled_statement) "private:\n vchar *filter;" (statement_identifier) "private" (:) ":" (declaration) "vchar *filter;" (type_identifier) "vchar" (pointer_declarator) "*filter" (*) "*" (identifier) "filter" (;) ";" (declaration) "vbool wild;" (type_identifier) "vbool" (identifier) "wild" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// --------------------------------------------------------------------" (comment) "// Class FilterList - abstracts a list of File Filters." (comment) "// --------------------------------------------------------------------" (function_definition) "class FilterList\n{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFiltered (vchar *fileName);\n vchar *GetFilter ();\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filterstring;\n vchar *copyFilterstring;\n Filter **filterList;\n unsigned int size;\n}" (type_identifier) "class" (identifier) "FilterList" (compound_statement) "{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFiltered (vchar *fileName);\n vchar *GetFilter ();\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filterstring;\n vchar *copyFilterstring;\n Filter **filterList;\n unsigned int size;\n}" ({) "{" (labeled_statement) "public:\n FilterList (const vchar *filterString);" (statement_identifier) "public" (:) ":" (declaration) "FilterList (const vchar *filterString);" (macro_type_specifier) "FilterList (const vchar *filterString)" (identifier) "FilterList" (() "(" (type_descriptor) "const vchar *" (type_qualifier) "const" (const) "const" (type_identifier) "vchar" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "filterString" (identifier) "filterString" ()) ")" (identifier) "" (;) ";" (expression_statement) "~FilterList ();" (unary_expression) "~FilterList ()" (~) "~" (call_expression) "FilterList ()" (identifier) "FilterList" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "vbool IsFiltered (vchar *fileName);" (type_identifier) "vbool" (function_declarator) "IsFiltered (vchar *fileName)" (identifier) "IsFiltered" (parameter_list) "(vchar *fileName)" (() "(" (parameter_declaration) "vchar *fileName" (type_identifier) "vchar" (pointer_declarator) "*fileName" (*) "*" (identifier) "fileName" ()) ")" (;) ";" (declaration) "vchar *GetFilter ();" (type_identifier) "vchar" (pointer_declarator) "*GetFilter ()" (*) "*" (function_declarator) "GetFilter ()" (identifier) "GetFilter" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);" (primitive_type) "void" (function_declarator) "GeneratePDF (vfsFile *outputFile,\n unsigned int indent)" (identifier) "GeneratePDF" (parameter_list) "(vfsFile *outputFile,\n unsigned int indent)" (() "(" (parameter_declaration) "vfsFile *outputFile" (type_identifier) "vfsFile" (pointer_declarator) "*outputFile" (*) "*" (identifier) "outputFile" (,) "," (parameter_declaration) "unsigned int indent" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "indent" ()) ")" (;) ";" (labeled_statement) "private:\n vchar *filterstring;" (statement_identifier) "private" (:) ":" (declaration) "vchar *filterstring;" (type_identifier) "vchar" (pointer_declarator) "*filterstring" (*) "*" (identifier) "filterstring" (;) ";" (declaration) "vchar *copyFilterstring;" (type_identifier) "vchar" (pointer_declarator) "*copyFilterstring" (*) "*" (identifier) "copyFilterstring" (;) ";" (declaration) "Filter **filterList;" (type_identifier) "Filter" (pointer_declarator) "**filterList" (*) "*" (pointer_declarator) "*filterList" (*) "*" (identifier) "filterList" (;) ";" (declaration) "unsigned int size;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "size" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
1,203
9
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 34.66, "nodes": 790, "errors": 0, "source_hash": "51c50f6d57f7e870a0dbc41f7b16b73dd14a1aa7f9f8583479791bfe7769af16", "categorized_nodes": 482}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _path_h\n#define _path_h\n\n#ifndef vportINCLUDED\n#include <vport.h>\n#endif\n\n#ifndef vcharINCLUDED\n#include vcharHEADER\n#endif\n\n#ifndef vfsINCLUDED\n#include vfsHEADER\n#endif\n\nclass File;\nclass Directory;\nclass FilterList;\n\n// --------------------------------------------------------------------\n// Class HandleManager - manages handles to files used for integration\n// to external systems.\n// --------------------------------------------------------------------\n\nclass HandleManager\n{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void UnregisterName(const vchar *name);\n long int RegisterFile (File *file);\n File *LookupFile (long int handle);\n File *LookupFile (const vchar *full_name);\n void Purge ();\n \n private:\n File ** filelist;\n unsigned int size;\n unsigned int count;\n unsigned int free_entries;\n};\n\n\n// --------------------------------------------------------------------\n// Class File - abstracts a file.\n// --------------------------------------------------------------------\n\nclass File \n{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n \n vbool Save (vfsFile *vfile, int level);\n \n File* Next ();\n \n void SetDirectory (Directory*);\n Directory* GetDirectory ();\n int IsDirectory ();\n \n static const vchar* GetGlobalBeforeFlags ();\n static const vchar* GetGlobalAfterFlags ();\n static void SetGlobalBeforeFlags (const vchar*);\n static void SetGlobalAfterFlags (const vchar*);\n static void SetCplusExtensions (const vchar* exts);\n static void SetCExtensions (const vchar* exts);\n static void SetCplusFlags (const vchar* flgs);\n static void SetCFlags (const vchar* flgs);\n\n \n const vchar* SetExcludeFlag(int flag);\n const vchar* GetExcludeFlag();\n const vchar* GetFlags ();\n void SetFlags (const vchar*);\n const vchar* DetermineFlags ();\n \n void GenerateRules (vfsFile *outputFile);\t\t \n \n const vchar* Name ();\n const vchar* FullName ();\n \n virtual void Print();\n \n public:\n static HandleManager handleManager;\n static vchar* globalBeforeFlags;\n static vchar* globalAfterFlags;\n static vchar* CplusFlags;\n static vchar* CFlags;\n static vchar* CplusExtensions;\n static vchar* CExtensions;\n long int handle;\n \n protected:\n Directory *directory;\n File *next;\n vchar *fullname;\n vchar *flags;\n int is_dir;\n int excluded;\n};\n\n// --------------------------------------------------------------------\n// Class Directory - abstracts a directory which is a subclass of File.\n// --------------------------------------------------------------------\n\nclass Directory : public File\n{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n \n void Save (vchar *filename);\n vbool Save (vfsFile *vfile, int level);\n static File *Restore (vchar *filename);\n void Restore (vfsFile *vfile, int level);\n \n static vchar* GetGlobalFilter ();\n static void SetGlobalFilter (const vchar*);\n vchar* GetFilter ();\n void SetFilter (const vchar*);\n vchar* DetermineFilter ();\n FilterList* DetermineLocalFilter ();\n\n unsigned int CountPDFfiles(vchar *sourceRoot);\n\n void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);\n\n void ReadDirectory (vbool displayAll);\n void RemoveFiles ();\n virtual void Print ();\n \n File *GetFirstFile();\n\n File* FindFileFromPath (const vchar* path);\n\nprivate:\n int AddFile (vchar *fileName, File **newList);\n File* FindFile (vchar *name);\n File* InsertionSort (File* fileList);\n\nprivate:\n File* first;\n FilterList *filterList;\n static FilterList *globalFilterList;\n};\n\n// --------------------------------------------------------------------\n// Class Filter - abstracts a single File Filter.\n// --------------------------------------------------------------------\n\nclass Filter\n{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filter;\n vbool wild;\n};\n\n// --------------------------------------------------------------------\n// Class FilterList - abstracts a list of File Filters.\n// --------------------------------------------------------------------\n\nclass FilterList\n{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFiltered (vchar *fileName);\n vchar *GetFilter ();\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filterstring;\n vchar *copyFilterstring;\n Filter **filterList;\n unsigned int size;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 13, 20, 27, 29, 31, 33, 118, 389, 667, 716, 789], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 245, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 2, "type": "identifier", "text": "_path_h", "parent": 0, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define _path_h\n", "parent": 0, "children": [4, 5], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 5, "type": "identifier", "text": "_path_h", "parent": 3, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 15}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifndef vportINCLUDED\n#include <vport.h>\n#endif", "parent": 0, "children": [7, 8, 9, 12], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 7, "type": "#ifndef", "text": "#ifndef", "parent": 6, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 8, "type": "identifier", "text": "vportINCLUDED", "parent": 6, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <vport.h>\n", "parent": 6, "children": [10, 11], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vport.h>", "parent": 9, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 18}}, {"id": 12, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 13, "type": "preproc_ifdef", "text": "#ifndef vcharINCLUDED\n#include vcharHEADER\n#endif", "parent": 0, "children": [14, 15, 16, 19], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 14, "type": "#ifndef", "text": "#ifndef", "parent": 13, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 15, "type": "identifier", "text": "vcharINCLUDED", "parent": 13, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 21}}, {"id": 16, "type": "preproc_include", "text": "#include vcharHEADER\n", "parent": 13, "children": [17, 18], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 18, "type": "identifier", "text": "vcharHEADER", "parent": 16, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 20}}, {"id": 19, "type": "#endif", "text": "#endif", "parent": 13, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 20, "type": "preproc_ifdef", "text": "#ifndef vfsINCLUDED\n#include vfsHEADER\n#endif", "parent": 0, "children": [21, 22, 23, 26], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 21, "type": "#ifndef", "text": "#ifndef", "parent": 20, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 22, "type": "identifier", "text": "vfsINCLUDED", "parent": 20, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 19}}, {"id": 23, "type": "preproc_include", "text": "#include vfsHEADER\n", "parent": 20, "children": [24, 25], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 8}}, {"id": 25, "type": "identifier", "text": "vfsHEADER", "parent": 23, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 18}}, {"id": 26, "type": "#endif", "text": "#endif", "parent": 20, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 27, "type": "declaration", "text": "class File;", "parent": 0, "children": [28], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 11}}, {"id": 28, "type": "identifier", "text": "File", "parent": 27, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 10}}, {"id": 29, "type": "declaration", "text": "class Directory;", "parent": 0, "children": [30], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 16}}, {"id": 30, "type": "identifier", "text": "Directory", "parent": 29, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 15}}, {"id": 31, "type": "declaration", "text": "class FilterList;", "parent": 0, "children": [32], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 17}}, {"id": 32, "type": "identifier", "text": "FilterList", "parent": 31, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 16}}, {"id": 33, "type": "function_definition", "text": "class HandleManager\n{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void UnregisterName(const vchar *name);\n long int RegisterFile (File *file);\n File *LookupFile (long int handle);\n File *LookupFile (const vchar *full_name);\n void Purge ();\n \n private:\n File ** filelist;\n unsigned int size;\n unsigned int count;\n unsigned int free_entries;\n}", "parent": 0, "children": [34], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 34, "type": "identifier", "text": "HandleManager", "parent": 33, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 19}}, {"id": 35, "type": "labeled_statement", "text": "public:\n HandleManager ();", "parent": 33, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 68, "column": 21}}, {"id": 36, "type": "call_expression", "text": "HandleManager ()", "parent": 35, "children": [37, 38], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 20}}, {"id": 37, "type": "identifier", "text": "HandleManager", "parent": 36, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 17}}, {"id": 38, "type": "argument_list", "text": "()", "parent": 36, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 20}}, {"id": 39, "type": "unary_expression", "text": "~HandleManager ()", "parent": 33, "children": [40, 41], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 21}}, {"id": 40, "type": "~", "text": "~", "parent": 39, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 5}}, {"id": 41, "type": "call_expression", "text": "HandleManager ()", "parent": 39, "children": [42, 43], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 21}}, {"id": 42, "type": "identifier", "text": "HandleManager", "parent": 41, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 18}}, {"id": 43, "type": "argument_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 21}}, {"id": 44, "type": "declaration", "text": "void UnregisterName(const vchar *name);", "parent": 33, "children": [45, 46], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 47}}, {"id": 45, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 46, "type": "function_declarator", "text": "UnregisterName(const vchar *name)", "parent": 44, "children": [47, 48], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 46}}, {"id": 47, "type": "identifier", "text": "UnregisterName", "parent": 46, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 27}}, {"id": 48, "type": "parameter_list", "text": "(const vchar *name)", "parent": 46, "children": [49], "start_point": {"row": 71, "column": 27}, "end_point": {"row": 71, "column": 46}}, {"id": 49, "type": "parameter_declaration", "text": "const vchar *name", "parent": 48, "children": [50, 51], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 45}}, {"id": 50, "type": "type_identifier", "text": "vchar", "parent": 49, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 39}}, {"id": 51, "type": "pointer_declarator", "text": "*name", "parent": 49, "children": [52, 53], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 45}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 41}}, {"id": 53, "type": "identifier", "text": "name", "parent": 51, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 45}}, {"id": 54, "type": "declaration", "text": "long int RegisterFile (File *file);", "parent": 33, "children": [55, 58], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 39}}, {"id": 55, "type": "sized_type_specifier", "text": "long int", "parent": 54, "children": [56, 57], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 12}}, {"id": 56, "type": "long", "text": "long", "parent": 55, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 8}}, {"id": 57, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 12}}, {"id": 58, "type": "function_declarator", "text": "RegisterFile (File *file)", "parent": 54, "children": [59, 60], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 38}}, {"id": 59, "type": "identifier", "text": "RegisterFile", "parent": 58, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 25}}, {"id": 60, "type": "parameter_list", "text": "(File *file)", "parent": 58, "children": [61], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 38}}, {"id": 61, "type": "parameter_declaration", "text": "File *file", "parent": 60, "children": [62, 63], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 37}}, {"id": 62, "type": "type_identifier", "text": "File", "parent": 61, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 31}}, {"id": 63, "type": "pointer_declarator", "text": "*file", "parent": 61, "children": [64, 65], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 37}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 33}}, {"id": 65, "type": "identifier", "text": "file", "parent": 63, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 37}}, {"id": 66, "type": "declaration", "text": "File *LookupFile (long int handle);", "parent": 33, "children": [67, 68], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 43}}, {"id": 67, "type": "type_identifier", "text": "File", "parent": 66, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 8}}, {"id": 68, "type": "pointer_declarator", "text": "*LookupFile (long int handle)", "parent": 66, "children": [69, 70], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 42}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 14}}, {"id": 70, "type": "function_declarator", "text": "LookupFile (long int handle)", "parent": 68, "children": [71, 72], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 42}}, {"id": 71, "type": "identifier", "text": "LookupFile", "parent": 70, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 24}}, {"id": 72, "type": "parameter_list", "text": "(long int handle)", "parent": 70, "children": [73], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 42}}, {"id": 73, "type": "parameter_declaration", "text": "long int handle", "parent": 72, "children": [74, 77], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 41}}, {"id": 74, "type": "sized_type_specifier", "text": "long int", "parent": 73, "children": [75, 76], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 34}}, {"id": 75, "type": "long", "text": "long", "parent": 74, "children": [], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 30}}, {"id": 76, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 34}}, {"id": 77, "type": "identifier", "text": "handle", "parent": 73, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 41}}, {"id": 78, "type": "declaration", "text": "File *LookupFile (const vchar *full_name);", "parent": 33, "children": [79, 80], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 50}}, {"id": 79, "type": "type_identifier", "text": "File", "parent": 78, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 8}}, {"id": 80, "type": "pointer_declarator", "text": "*LookupFile (const vchar *full_name)", "parent": 78, "children": [81, 82], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 49}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 14}}, {"id": 82, "type": "function_declarator", "text": "LookupFile (const vchar *full_name)", "parent": 80, "children": [83, 84], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 49}}, {"id": 83, "type": "identifier", "text": "LookupFile", "parent": 82, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 24}}, {"id": 84, "type": "parameter_list", "text": "(const vchar *full_name)", "parent": 82, "children": [85], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 49}}, {"id": 85, "type": "parameter_declaration", "text": "const vchar *full_name", "parent": 84, "children": [86, 87], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 48}}, {"id": 86, "type": "type_identifier", "text": "vchar", "parent": 85, "children": [], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 37}}, {"id": 87, "type": "pointer_declarator", "text": "*full_name", "parent": 85, "children": [88, 89], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 48}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 39}}, {"id": 89, "type": "identifier", "text": "full_name", "parent": 87, "children": [], "start_point": {"row": 74, "column": 39}, "end_point": {"row": 74, "column": 48}}, {"id": 90, "type": "declaration", "text": "void Purge ();", "parent": 33, "children": [91, 92], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 22}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 8}}, {"id": 92, "type": "function_declarator", "text": "Purge ()", "parent": 90, "children": [93, 94], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 21}}, {"id": 93, "type": "identifier", "text": "Purge", "parent": 92, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 18}}, {"id": 94, "type": "parameter_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 21}}, {"id": 95, "type": "labeled_statement", "text": "private:\n File ** filelist;", "parent": 33, "children": [96], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 78, "column": 22}}, {"id": 96, "type": "declaration", "text": "File ** filelist;", "parent": 95, "children": [97, 98], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 22}}, {"id": 97, "type": "type_identifier", "text": "File", "parent": 96, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 8}}, {"id": 98, "type": "pointer_declarator", "text": "** filelist", "parent": 96, "children": [99, 100], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 21}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 11}}, {"id": 100, "type": "pointer_declarator", "text": "* filelist", "parent": 98, "children": [101, 102], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 21}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 12}}, {"id": 102, "type": "identifier", "text": "filelist", "parent": 100, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 21}}, {"id": 103, "type": "declaration", "text": "unsigned int size;", "parent": 33, "children": [104, 107], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 22}}, {"id": 104, "type": "sized_type_specifier", "text": "unsigned int", "parent": 103, "children": [105, 106], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 16}}, {"id": 105, "type": "unsigned", "text": "unsigned", "parent": 104, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 12}}, {"id": 106, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 16}}, {"id": 107, "type": "identifier", "text": "size", "parent": 103, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 21}}, {"id": 108, "type": "declaration", "text": "unsigned int count;", "parent": 33, "children": [109, 112], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 23}}, {"id": 109, "type": "sized_type_specifier", "text": "unsigned int", "parent": 108, "children": [110, 111], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 16}}, {"id": 110, "type": "unsigned", "text": "unsigned", "parent": 109, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 12}}, {"id": 111, "type": "primitive_type", "text": "int", "parent": 109, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 16}}, {"id": 112, "type": "identifier", "text": "count", "parent": 108, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 22}}, {"id": 113, "type": "declaration", "text": "unsigned int free_entries;", "parent": 33, "children": [114, 117], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 30}}, {"id": 114, "type": "sized_type_specifier", "text": "unsigned int", "parent": 113, "children": [115, 116], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 16}}, {"id": 115, "type": "unsigned", "text": "unsigned", "parent": 114, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 12}}, {"id": 116, "type": "primitive_type", "text": "int", "parent": 114, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 16}}, {"id": 117, "type": "identifier", "text": "free_entries", "parent": 113, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 29}}, {"id": 118, "type": "function_definition", "text": "class File \n{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n \n vbool Save (vfsFile *vfile, int level);\n \n File* Next ();\n \n void SetDirectory (Directory*);\n Directory* GetDirectory ();\n int IsDirectory ();\n \n static const vchar* GetGlobalBeforeFlags ();\n static const vchar* GetGlobalAfterFlags ();\n static void SetGlobalBeforeFlags (const vchar*);\n static void SetGlobalAfterFlags (const vchar*);\n static void SetCplusExtensions (const vchar* exts);\n static void SetCExtensions (const vchar* exts);\n static void SetCplusFlags (const vchar* flgs);\n static void SetCFlags (const vchar* flgs);\n\n \n const vchar* SetExcludeFlag(int flag);\n const vchar* GetExcludeFlag();\n const vchar* GetFlags ();\n void SetFlags (const vchar*);\n const vchar* DetermineFlags ();\n \n void GenerateRules (vfsFile *outputFile);\t\t \n \n const vchar* Name ();\n const vchar* FullName ();\n \n virtual void Print();\n \n public:\n static HandleManager handleManager;\n static vchar* globalBeforeFlags;\n static vchar* globalAfterFlags;\n static vchar* CplusFlags;\n static vchar* CFlags;\n static vchar* CplusExtensions;\n static vchar* CExtensions;\n long int handle;\n \n protected:\n Directory *directory;\n File *next;\n vchar *fullname;\n vchar *flags;\n int is_dir;\n int excluded;\n}", "parent": 0, "children": [119], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 145, "column": 1}}, {"id": 119, "type": "identifier", "text": "File", "parent": 118, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 10}}, {"id": 120, "type": "declaration", "text": "friend class Directory;", "parent": 118, "children": [121, 122], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 23}}, {"id": 121, "type": "type_identifier", "text": "friend", "parent": 120, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 6}}, {"id": 122, "type": "identifier", "text": "Directory", "parent": 120, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 22}}, {"id": 123, "type": "labeled_statement", "text": "public:\n File(const vchar* name);\n virtual ~File ();", "parent": 118, "children": [124], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 95, "column": 21}}, {"id": 124, "type": "declaration", "text": "File(const vchar* name);\n virtual ~File ();", "parent": 123, "children": [125, 133, 136], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 95, "column": 21}}, {"id": 125, "type": "macro_type_specifier", "text": "File(const vchar* name)", "parent": 124, "children": [126, 127, 131], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 27}}, {"id": 126, "type": "identifier", "text": "File", "parent": 125, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 8}}, {"id": 127, "type": "type_descriptor", "text": "const vchar*", "parent": 125, "children": [128, 129], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 21}}, {"id": 128, "type": "type_identifier", "text": "vchar", "parent": 127, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 20}}, {"id": 129, "type": "abstract_pointer_declarator", "text": "*", "parent": 127, "children": [130], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 21}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 21}}, {"id": 131, "type": "ERROR", "text": "name", "parent": 125, "children": [132], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 26}}, {"id": 132, "type": "identifier", "text": "name", "parent": 131, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 26}}, {"id": 133, "type": "ERROR", "text": ";\n virtual ~", "parent": 124, "children": [134, 135], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 95, "column": 13}}, {"id": 134, "type": "identifier", "text": "virtual", "parent": 133, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 11}}, {"id": 135, "type": "~", "text": "~", "parent": 133, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 13}}, {"id": 136, "type": "function_declarator", "text": "File ()", "parent": 124, "children": [137, 138], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 20}}, {"id": 137, "type": "identifier", "text": "File", "parent": 136, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 17}}, {"id": 138, "type": "parameter_list", "text": "()", "parent": 136, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 20}}, {"id": 139, "type": "declaration", "text": "vbool Save (vfsFile *vfile, int level);", "parent": 118, "children": [140, 141], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 43}}, {"id": 140, "type": "type_identifier", "text": "vbool", "parent": 139, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 9}}, {"id": 141, "type": "function_declarator", "text": "Save (vfsFile *vfile, int level)", "parent": 139, "children": [142, 143], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 42}}, {"id": 142, "type": "identifier", "text": "Save", "parent": 141, "children": [], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 14}}, {"id": 143, "type": "parameter_list", "text": "(vfsFile *vfile, int level)", "parent": 141, "children": [144, 149], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 42}}, {"id": 144, "type": "parameter_declaration", "text": "vfsFile *vfile", "parent": 143, "children": [145, 146], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 30}}, {"id": 145, "type": "type_identifier", "text": "vfsFile", "parent": 144, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 23}}, {"id": 146, "type": "pointer_declarator", "text": "*vfile", "parent": 144, "children": [147, 148], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 30}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 25}}, {"id": 148, "type": "identifier", "text": "vfile", "parent": 146, "children": [], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 30}}, {"id": 149, "type": "parameter_declaration", "text": "int level", "parent": 143, "children": [150, 151], "start_point": {"row": 97, "column": 32}, "end_point": {"row": 97, "column": 41}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 97, "column": 32}, "end_point": {"row": 97, "column": 35}}, {"id": 151, "type": "identifier", "text": "level", "parent": 149, "children": [], "start_point": {"row": 97, "column": 36}, "end_point": {"row": 97, "column": 41}}, {"id": 152, "type": "declaration", "text": "File* Next ();", "parent": 118, "children": [153, 154], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 18}}, {"id": 153, "type": "type_identifier", "text": "File", "parent": 152, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 8}}, {"id": 154, "type": "pointer_declarator", "text": "* Next ()", "parent": 152, "children": [155, 156], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 17}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 9}}, {"id": 156, "type": "function_declarator", "text": "Next ()", "parent": 154, "children": [157, 158], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 17}}, {"id": 157, "type": "identifier", "text": "Next", "parent": 156, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 14}}, {"id": 158, "type": "parameter_list", "text": "()", "parent": 156, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 17}}, {"id": 159, "type": "declaration", "text": "void SetDirectory (Directory*);", "parent": 118, "children": [160, 161], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 35}}, {"id": 160, "type": "primitive_type", "text": "void", "parent": 159, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 8}}, {"id": 161, "type": "function_declarator", "text": "SetDirectory (Directory*)", "parent": 159, "children": [162, 163], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 34}}, {"id": 162, "type": "identifier", "text": "SetDirectory", "parent": 161, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 21}}, {"id": 163, "type": "parameter_list", "text": "(Directory*)", "parent": 161, "children": [164], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 34}}, {"id": 164, "type": "parameter_declaration", "text": "Directory*", "parent": 163, "children": [165, 166], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 33}}, {"id": 165, "type": "type_identifier", "text": "Directory", "parent": 164, "children": [], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 32}}, {"id": 166, "type": "abstract_pointer_declarator", "text": "*", "parent": 164, "children": [167], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 33}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 33}}, {"id": 168, "type": "declaration", "text": "Directory* GetDirectory ();", "parent": 118, "children": [169, 170], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 31}}, {"id": 169, "type": "type_identifier", "text": "Directory", "parent": 168, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 13}}, {"id": 170, "type": "pointer_declarator", "text": "* GetDirectory ()", "parent": 168, "children": [171, 172], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 30}}, {"id": 171, "type": "*", "text": "*", "parent": 170, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 14}}, {"id": 172, "type": "function_declarator", "text": "GetDirectory ()", "parent": 170, "children": [173, 174], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 30}}, {"id": 173, "type": "identifier", "text": "GetDirectory", "parent": 172, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 27}}, {"id": 174, "type": "parameter_list", "text": "()", "parent": 172, "children": [], "start_point": {"row": 102, "column": 28}, "end_point": {"row": 102, "column": 30}}, {"id": 175, "type": "declaration", "text": "int IsDirectory ();", "parent": 118, "children": [176, 177], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 23}}, {"id": 176, "type": "primitive_type", "text": "int", "parent": 175, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 7}}, {"id": 177, "type": "function_declarator", "text": "IsDirectory ()", "parent": 175, "children": [178, 179], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 22}}, {"id": 178, "type": "identifier", "text": "IsDirectory", "parent": 177, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 19}}, {"id": 179, "type": "parameter_list", "text": "()", "parent": 177, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 22}}, {"id": 180, "type": "declaration", "text": "static const vchar* GetGlobalBeforeFlags ();", "parent": 118, "children": [181, 182], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 48}}, {"id": 181, "type": "type_identifier", "text": "vchar", "parent": 180, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 22}}, {"id": 182, "type": "pointer_declarator", "text": "* GetGlobalBeforeFlags ()", "parent": 180, "children": [183, 184], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 47}}, {"id": 183, "type": "*", "text": "*", "parent": 182, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 23}}, {"id": 184, "type": "function_declarator", "text": "GetGlobalBeforeFlags ()", "parent": 182, "children": [185, 186], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 47}}, {"id": 185, "type": "identifier", "text": "GetGlobalBeforeFlags", "parent": 184, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 44}}, {"id": 186, "type": "parameter_list", "text": "()", "parent": 184, "children": [], "start_point": {"row": 105, "column": 45}, "end_point": {"row": 105, "column": 47}}, {"id": 187, "type": "declaration", "text": "static const vchar* GetGlobalAfterFlags ();", "parent": 118, "children": [188, 189], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 47}}, {"id": 188, "type": "type_identifier", "text": "vchar", "parent": 187, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 22}}, {"id": 189, "type": "pointer_declarator", "text": "* GetGlobalAfterFlags ()", "parent": 187, "children": [190, 191], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 46}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 23}}, {"id": 191, "type": "function_declarator", "text": "GetGlobalAfterFlags ()", "parent": 189, "children": [192, 193], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 46}}, {"id": 192, "type": "identifier", "text": "GetGlobalAfterFlags", "parent": 191, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 43}}, {"id": 193, "type": "parameter_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 106, "column": 44}, "end_point": {"row": 106, "column": 46}}, {"id": 194, "type": "declaration", "text": "static void SetGlobalBeforeFlags (const vchar*);", "parent": 118, "children": [195, 196], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 53}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 15}}, {"id": 196, "type": "function_declarator", "text": "SetGlobalBeforeFlags (const vchar*)", "parent": 194, "children": [197, 198], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 52}}, {"id": 197, "type": "identifier", "text": "SetGlobalBeforeFlags", "parent": 196, "children": [], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 37}}, {"id": 198, "type": "parameter_list", "text": "(const vchar*)", "parent": 196, "children": [199], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 52}}, {"id": 199, "type": "parameter_declaration", "text": "const vchar*", "parent": 198, "children": [200, 201], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 51}}, {"id": 200, "type": "type_identifier", "text": "vchar", "parent": 199, "children": [], "start_point": {"row": 107, "column": 45}, "end_point": {"row": 107, "column": 50}}, {"id": 201, "type": "abstract_pointer_declarator", "text": "*", "parent": 199, "children": [202], "start_point": {"row": 107, "column": 50}, "end_point": {"row": 107, "column": 51}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 107, "column": 50}, "end_point": {"row": 107, "column": 51}}, {"id": 203, "type": "declaration", "text": "static void SetGlobalAfterFlags (const vchar*);", "parent": 118, "children": [204, 205], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 52}}, {"id": 204, "type": "primitive_type", "text": "void", "parent": 203, "children": [], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 15}}, {"id": 205, "type": "function_declarator", "text": "SetGlobalAfterFlags (const vchar*)", "parent": 203, "children": [206, 207], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 51}}, {"id": 206, "type": "identifier", "text": "SetGlobalAfterFlags", "parent": 205, "children": [], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 36}}, {"id": 207, "type": "parameter_list", "text": "(const vchar*)", "parent": 205, "children": [208], "start_point": {"row": 108, "column": 37}, "end_point": {"row": 108, "column": 51}}, {"id": 208, "type": "parameter_declaration", "text": "const vchar*", "parent": 207, "children": [209, 210], "start_point": {"row": 108, "column": 38}, "end_point": {"row": 108, "column": 50}}, {"id": 209, "type": "type_identifier", "text": "vchar", "parent": 208, "children": [], "start_point": {"row": 108, "column": 44}, "end_point": {"row": 108, "column": 49}}, {"id": 210, "type": "abstract_pointer_declarator", "text": "*", "parent": 208, "children": [211], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 50}}, {"id": 211, "type": "*", "text": "*", "parent": 210, "children": [], "start_point": {"row": 108, "column": 49}, "end_point": {"row": 108, "column": 50}}, {"id": 212, "type": "declaration", "text": "static void SetCplusExtensions (const vchar* exts);", "parent": 118, "children": [213, 214], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 56}}, {"id": 213, "type": "primitive_type", "text": "void", "parent": 212, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 15}}, {"id": 214, "type": "function_declarator", "text": "SetCplusExtensions (const vchar* exts)", "parent": 212, "children": [215, 216], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 55}}, {"id": 215, "type": "identifier", "text": "SetCplusExtensions", "parent": 214, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 35}}, {"id": 216, "type": "parameter_list", "text": "(const vchar* exts)", "parent": 214, "children": [217], "start_point": {"row": 109, "column": 36}, "end_point": {"row": 109, "column": 55}}, {"id": 217, "type": "parameter_declaration", "text": "const vchar* exts", "parent": 216, "children": [218, 219], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 54}}, {"id": 218, "type": "type_identifier", "text": "vchar", "parent": 217, "children": [], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 48}}, {"id": 219, "type": "pointer_declarator", "text": "* exts", "parent": 217, "children": [220, 221], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 54}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 109, "column": 48}, "end_point": {"row": 109, "column": 49}}, {"id": 221, "type": "identifier", "text": "exts", "parent": 219, "children": [], "start_point": {"row": 109, "column": 50}, "end_point": {"row": 109, "column": 54}}, {"id": 222, "type": "declaration", "text": "static void SetCExtensions (const vchar* exts);", "parent": 118, "children": [223, 224], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 52}}, {"id": 223, "type": "primitive_type", "text": "void", "parent": 222, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 15}}, {"id": 224, "type": "function_declarator", "text": "SetCExtensions (const vchar* exts)", "parent": 222, "children": [225, 226], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 51}}, {"id": 225, "type": "identifier", "text": "SetCExtensions", "parent": 224, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 31}}, {"id": 226, "type": "parameter_list", "text": "(const vchar* exts)", "parent": 224, "children": [227], "start_point": {"row": 110, "column": 32}, "end_point": {"row": 110, "column": 51}}, {"id": 227, "type": "parameter_declaration", "text": "const vchar* exts", "parent": 226, "children": [228, 229], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 50}}, {"id": 228, "type": "type_identifier", "text": "vchar", "parent": 227, "children": [], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 44}}, {"id": 229, "type": "pointer_declarator", "text": "* exts", "parent": 227, "children": [230, 231], "start_point": {"row": 110, "column": 44}, "end_point": {"row": 110, "column": 50}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 110, "column": 44}, "end_point": {"row": 110, "column": 45}}, {"id": 231, "type": "identifier", "text": "exts", "parent": 229, "children": [], "start_point": {"row": 110, "column": 46}, "end_point": {"row": 110, "column": 50}}, {"id": 232, "type": "declaration", "text": "static void SetCplusFlags (const vchar* flgs);", "parent": 118, "children": [233, 234], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 51}}, {"id": 233, "type": "primitive_type", "text": "void", "parent": 232, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 15}}, {"id": 234, "type": "function_declarator", "text": "SetCplusFlags (const vchar* flgs)", "parent": 232, "children": [235, 236], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 50}}, {"id": 235, "type": "identifier", "text": "SetCplusFlags", "parent": 234, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 30}}, {"id": 236, "type": "parameter_list", "text": "(const vchar* flgs)", "parent": 234, "children": [237], "start_point": {"row": 111, "column": 31}, "end_point": {"row": 111, "column": 50}}, {"id": 237, "type": "parameter_declaration", "text": "const vchar* flgs", "parent": 236, "children": [238, 239], "start_point": {"row": 111, "column": 32}, "end_point": {"row": 111, "column": 49}}, {"id": 238, "type": "type_identifier", "text": "vchar", "parent": 237, "children": [], "start_point": {"row": 111, "column": 38}, "end_point": {"row": 111, "column": 43}}, {"id": 239, "type": "pointer_declarator", "text": "* flgs", "parent": 237, "children": [240, 241], "start_point": {"row": 111, "column": 43}, "end_point": {"row": 111, "column": 49}}, {"id": 240, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 111, "column": 43}, "end_point": {"row": 111, "column": 44}}, {"id": 241, "type": "identifier", "text": "flgs", "parent": 239, "children": [], "start_point": {"row": 111, "column": 45}, "end_point": {"row": 111, "column": 49}}, {"id": 242, "type": "declaration", "text": "static void SetCFlags (const vchar* flgs);", "parent": 118, "children": [243, 244], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 47}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 242, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 15}}, {"id": 244, "type": "function_declarator", "text": "SetCFlags (const vchar* flgs)", "parent": 242, "children": [245, 246], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 46}}, {"id": 245, "type": "identifier", "text": "SetCFlags", "parent": 244, "children": [], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 26}}, {"id": 246, "type": "parameter_list", "text": "(const vchar* flgs)", "parent": 244, "children": [247], "start_point": {"row": 112, "column": 27}, "end_point": {"row": 112, "column": 46}}, {"id": 247, "type": "parameter_declaration", "text": "const vchar* flgs", "parent": 246, "children": [248, 249], "start_point": {"row": 112, "column": 28}, "end_point": {"row": 112, "column": 45}}, {"id": 248, "type": "type_identifier", "text": "vchar", "parent": 247, "children": [], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 39}}, {"id": 249, "type": "pointer_declarator", "text": "* flgs", "parent": 247, "children": [250, 251], "start_point": {"row": 112, "column": 39}, "end_point": {"row": 112, "column": 45}}, {"id": 250, "type": "*", "text": "*", "parent": 249, "children": [], "start_point": {"row": 112, "column": 39}, "end_point": {"row": 112, "column": 40}}, {"id": 251, "type": "identifier", "text": "flgs", "parent": 249, "children": [], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 45}}, {"id": 252, "type": "declaration", "text": "const vchar* SetExcludeFlag(int flag);", "parent": 118, "children": [253, 254], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 43}}, {"id": 253, "type": "type_identifier", "text": "vchar", "parent": 252, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 16}}, {"id": 254, "type": "pointer_declarator", "text": "* SetExcludeFlag(int flag)", "parent": 252, "children": [255, 256], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 42}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 17}}, {"id": 256, "type": "function_declarator", "text": "SetExcludeFlag(int flag)", "parent": 254, "children": [257, 258], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 42}}, {"id": 257, "type": "identifier", "text": "SetExcludeFlag", "parent": 256, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 32}}, {"id": 258, "type": "parameter_list", "text": "(int flag)", "parent": 256, "children": [259], "start_point": {"row": 115, "column": 32}, "end_point": {"row": 115, "column": 42}}, {"id": 259, "type": "parameter_declaration", "text": "int flag", "parent": 258, "children": [260, 261], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 41}}, {"id": 260, "type": "primitive_type", "text": "int", "parent": 259, "children": [], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 36}}, {"id": 261, "type": "identifier", "text": "flag", "parent": 259, "children": [], "start_point": {"row": 115, "column": 37}, "end_point": {"row": 115, "column": 41}}, {"id": 262, "type": "declaration", "text": "const vchar* GetExcludeFlag();", "parent": 118, "children": [263, 264], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 35}}, {"id": 263, "type": "type_identifier", "text": "vchar", "parent": 262, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 16}}, {"id": 264, "type": "pointer_declarator", "text": "* GetExcludeFlag()", "parent": 262, "children": [265, 266], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 34}}, {"id": 265, "type": "*", "text": "*", "parent": 264, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 17}}, {"id": 266, "type": "function_declarator", "text": "GetExcludeFlag()", "parent": 264, "children": [267, 268], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 34}}, {"id": 267, "type": "identifier", "text": "GetExcludeFlag", "parent": 266, "children": [], "start_point": {"row": 116, "column": 18}, "end_point": {"row": 116, "column": 32}}, {"id": 268, "type": "parameter_list", "text": "()", "parent": 266, "children": [], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 34}}, {"id": 269, "type": "declaration", "text": "const vchar* GetFlags ();", "parent": 118, "children": [270, 271], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 30}}, {"id": 270, "type": "type_identifier", "text": "vchar", "parent": 269, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 16}}, {"id": 271, "type": "pointer_declarator", "text": "* GetFlags ()", "parent": 269, "children": [272, 273], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 29}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 17}}, {"id": 273, "type": "function_declarator", "text": "GetFlags ()", "parent": 271, "children": [274, 275], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 29}}, {"id": 274, "type": "identifier", "text": "GetFlags", "parent": 273, "children": [], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 26}}, {"id": 275, "type": "parameter_list", "text": "()", "parent": 273, "children": [], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 29}}, {"id": 276, "type": "declaration", "text": "void SetFlags (const vchar*);", "parent": 118, "children": [277, 278], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 35}}, {"id": 277, "type": "primitive_type", "text": "void", "parent": 276, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 8}}, {"id": 278, "type": "function_declarator", "text": "SetFlags (const vchar*)", "parent": 276, "children": [279, 280], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 34}}, {"id": 279, "type": "identifier", "text": "SetFlags", "parent": 278, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 19}}, {"id": 280, "type": "parameter_list", "text": "(const vchar*)", "parent": 278, "children": [281], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 34}}, {"id": 281, "type": "parameter_declaration", "text": "const vchar*", "parent": 280, "children": [282, 283], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 33}}, {"id": 282, "type": "type_identifier", "text": "vchar", "parent": 281, "children": [], "start_point": {"row": 118, "column": 27}, "end_point": {"row": 118, "column": 32}}, {"id": 283, "type": "abstract_pointer_declarator", "text": "*", "parent": 281, "children": [284], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 33}}, {"id": 284, "type": "*", "text": "*", "parent": 283, "children": [], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 33}}, {"id": 285, "type": "declaration", "text": "const vchar* DetermineFlags ();", "parent": 118, "children": [286, 287], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 36}}, {"id": 286, "type": "type_identifier", "text": "vchar", "parent": 285, "children": [], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 16}}, {"id": 287, "type": "pointer_declarator", "text": "* DetermineFlags ()", "parent": 285, "children": [288, 289], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 35}}, {"id": 288, "type": "*", "text": "*", "parent": 287, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 17}}, {"id": 289, "type": "function_declarator", "text": "DetermineFlags ()", "parent": 287, "children": [290, 291], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 35}}, {"id": 290, "type": "identifier", "text": "DetermineFlags", "parent": 289, "children": [], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 32}}, {"id": 291, "type": "parameter_list", "text": "()", "parent": 289, "children": [], "start_point": {"row": 119, "column": 33}, "end_point": {"row": 119, "column": 35}}, {"id": 292, "type": "declaration", "text": "void GenerateRules (vfsFile *outputFile);", "parent": 118, "children": [293, 294], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 45}}, {"id": 293, "type": "primitive_type", "text": "void", "parent": 292, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 8}}, {"id": 294, "type": "function_declarator", "text": "GenerateRules (vfsFile *outputFile)", "parent": 292, "children": [295, 296], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 44}}, {"id": 295, "type": "identifier", "text": "GenerateRules", "parent": 294, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 22}}, {"id": 296, "type": "parameter_list", "text": "(vfsFile *outputFile)", "parent": 294, "children": [297], "start_point": {"row": 121, "column": 23}, "end_point": {"row": 121, "column": 44}}, {"id": 297, "type": "parameter_declaration", "text": "vfsFile *outputFile", "parent": 296, "children": [298, 299], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 43}}, {"id": 298, "type": "type_identifier", "text": "vfsFile", "parent": 297, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 31}}, {"id": 299, "type": "pointer_declarator", "text": "*outputFile", "parent": 297, "children": [300, 301], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 43}}, {"id": 300, "type": "*", "text": "*", "parent": 299, "children": [], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 33}}, {"id": 301, "type": "identifier", "text": "outputFile", "parent": 299, "children": [], "start_point": {"row": 121, "column": 33}, "end_point": {"row": 121, "column": 43}}, {"id": 302, "type": "declaration", "text": "const vchar* Name ();", "parent": 118, "children": [303, 304], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 25}}, {"id": 303, "type": "type_identifier", "text": "vchar", "parent": 302, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 15}}, {"id": 304, "type": "pointer_declarator", "text": "* Name ()", "parent": 302, "children": [305, 306], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 24}}, {"id": 305, "type": "*", "text": "*", "parent": 304, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 16}}, {"id": 306, "type": "function_declarator", "text": "Name ()", "parent": 304, "children": [307, 308], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 24}}, {"id": 307, "type": "identifier", "text": "Name", "parent": 306, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 21}}, {"id": 308, "type": "parameter_list", "text": "()", "parent": 306, "children": [], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 24}}, {"id": 309, "type": "declaration", "text": "const vchar* FullName ();", "parent": 118, "children": [310, 311], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 29}}, {"id": 310, "type": "type_identifier", "text": "vchar", "parent": 309, "children": [], "start_point": {"row": 124, "column": 10}, "end_point": {"row": 124, "column": 15}}, {"id": 311, "type": "pointer_declarator", "text": "* FullName ()", "parent": 309, "children": [312, 313], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 28}}, {"id": 312, "type": "*", "text": "*", "parent": 311, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 16}}, {"id": 313, "type": "function_declarator", "text": "FullName ()", "parent": 311, "children": [314, 315], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 28}}, {"id": 314, "type": "identifier", "text": "FullName", "parent": 313, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 25}}, {"id": 315, "type": "parameter_list", "text": "()", "parent": 313, "children": [], "start_point": {"row": 124, "column": 26}, "end_point": {"row": 124, "column": 28}}, {"id": 316, "type": "declaration", "text": "virtual void Print();", "parent": 118, "children": [317, 318, 320], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 25}}, {"id": 317, "type": "type_identifier", "text": "virtual", "parent": 316, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 11}}, {"id": 318, "type": "ERROR", "text": "void", "parent": 316, "children": [319], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 16}}, {"id": 319, "type": "identifier", "text": "void", "parent": 318, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 16}}, {"id": 320, "type": "function_declarator", "text": "Print()", "parent": 316, "children": [321, 322], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 24}}, {"id": 321, "type": "identifier", "text": "Print", "parent": 320, "children": [], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 22}}, {"id": 322, "type": "parameter_list", "text": "()", "parent": 320, "children": [], "start_point": {"row": 126, "column": 22}, "end_point": {"row": 126, "column": 24}}, {"id": 323, "type": "labeled_statement", "text": "public:\n static HandleManager handleManager;", "parent": 118, "children": [324], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 129, "column": 39}}, {"id": 324, "type": "declaration", "text": "static HandleManager handleManager;", "parent": 323, "children": [325, 326], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 39}}, {"id": 325, "type": "type_identifier", "text": "HandleManager", "parent": 324, "children": [], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 24}}, {"id": 326, "type": "identifier", "text": "handleManager", "parent": 324, "children": [], "start_point": {"row": 129, "column": 25}, "end_point": {"row": 129, "column": 38}}, {"id": 327, "type": "declaration", "text": "static vchar* globalBeforeFlags;", "parent": 118, "children": [328, 329], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 43}}, {"id": 328, "type": "type_identifier", "text": "vchar", "parent": 327, "children": [], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 130, "column": 16}}, {"id": 329, "type": "pointer_declarator", "text": "* globalBeforeFlags", "parent": 327, "children": [330, 331], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 42}}, {"id": 330, "type": "*", "text": "*", "parent": 329, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 17}}, {"id": 331, "type": "identifier", "text": "globalBeforeFlags", "parent": 329, "children": [], "start_point": {"row": 130, "column": 25}, "end_point": {"row": 130, "column": 42}}, {"id": 332, "type": "declaration", "text": "static vchar* globalAfterFlags;", "parent": 118, "children": [333, 334], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 42}}, {"id": 333, "type": "type_identifier", "text": "vchar", "parent": 332, "children": [], "start_point": {"row": 131, "column": 11}, "end_point": {"row": 131, "column": 16}}, {"id": 334, "type": "pointer_declarator", "text": "* globalAfterFlags", "parent": 332, "children": [335, 336], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 41}}, {"id": 335, "type": "*", "text": "*", "parent": 334, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 17}}, {"id": 336, "type": "identifier", "text": "globalAfterFlags", "parent": 334, "children": [], "start_point": {"row": 131, "column": 25}, "end_point": {"row": 131, "column": 41}}, {"id": 337, "type": "declaration", "text": "static vchar* CplusFlags;", "parent": 118, "children": [338, 339], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 36}}, {"id": 338, "type": "type_identifier", "text": "vchar", "parent": 337, "children": [], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 16}}, {"id": 339, "type": "pointer_declarator", "text": "* CplusFlags", "parent": 337, "children": [340, 341], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 35}}, {"id": 340, "type": "*", "text": "*", "parent": 339, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 17}}, {"id": 341, "type": "identifier", "text": "CplusFlags", "parent": 339, "children": [], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 35}}, {"id": 342, "type": "declaration", "text": "static vchar* CFlags;", "parent": 118, "children": [343, 344], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 32}}, {"id": 343, "type": "type_identifier", "text": "vchar", "parent": 342, "children": [], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 133, "column": 16}}, {"id": 344, "type": "pointer_declarator", "text": "* CFlags", "parent": 342, "children": [345, 346], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 31}}, {"id": 345, "type": "*", "text": "*", "parent": 344, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 17}}, {"id": 346, "type": "identifier", "text": "CFlags", "parent": 344, "children": [], "start_point": {"row": 133, "column": 25}, "end_point": {"row": 133, "column": 31}}, {"id": 347, "type": "declaration", "text": "static vchar* CplusExtensions;", "parent": 118, "children": [348, 349], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 41}}, {"id": 348, "type": "type_identifier", "text": "vchar", "parent": 347, "children": [], "start_point": {"row": 134, "column": 11}, "end_point": {"row": 134, "column": 16}}, {"id": 349, "type": "pointer_declarator", "text": "* CplusExtensions", "parent": 347, "children": [350, 351], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 40}}, {"id": 350, "type": "*", "text": "*", "parent": 349, "children": [], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 17}}, {"id": 351, "type": "identifier", "text": "CplusExtensions", "parent": 349, "children": [], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 40}}, {"id": 352, "type": "declaration", "text": "static vchar* CExtensions;", "parent": 118, "children": [353, 354], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 37}}, {"id": 353, "type": "type_identifier", "text": "vchar", "parent": 352, "children": [], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 16}}, {"id": 354, "type": "pointer_declarator", "text": "* CExtensions", "parent": 352, "children": [355, 356], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 36}}, {"id": 355, "type": "*", "text": "*", "parent": 354, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 17}}, {"id": 356, "type": "identifier", "text": "CExtensions", "parent": 354, "children": [], "start_point": {"row": 135, "column": 25}, "end_point": {"row": 135, "column": 36}}, {"id": 357, "type": "declaration", "text": "long int handle;", "parent": 118, "children": [358, 361], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 32}}, {"id": 358, "type": "sized_type_specifier", "text": "long int", "parent": 357, "children": [359, 360], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 14}}, {"id": 359, "type": "long", "text": "long", "parent": 358, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 8}}, {"id": 360, "type": "primitive_type", "text": "int", "parent": 358, "children": [], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 14}}, {"id": 361, "type": "identifier", "text": "handle", "parent": 357, "children": [], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 31}}, {"id": 362, "type": "labeled_statement", "text": "protected:\n Directory *directory;", "parent": 118, "children": [363], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 139, "column": 25}}, {"id": 363, "type": "declaration", "text": "Directory *directory;", "parent": 362, "children": [364, 365], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 25}}, {"id": 364, "type": "type_identifier", "text": "Directory", "parent": 363, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 13}}, {"id": 365, "type": "pointer_declarator", "text": "*directory", "parent": 363, "children": [366, 367], "start_point": {"row": 139, "column": 14}, "end_point": {"row": 139, "column": 24}}, {"id": 366, "type": "*", "text": "*", "parent": 365, "children": [], "start_point": {"row": 139, "column": 14}, "end_point": {"row": 139, "column": 15}}, {"id": 367, "type": "identifier", "text": "directory", "parent": 365, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 24}}, {"id": 368, "type": "declaration", "text": "File *next;", "parent": 118, "children": [369, 370], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 16}}, {"id": 369, "type": "type_identifier", "text": "File", "parent": 368, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 8}}, {"id": 370, "type": "pointer_declarator", "text": "*next", "parent": 368, "children": [371, 372], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 15}}, {"id": 371, "type": "*", "text": "*", "parent": 370, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 11}}, {"id": 372, "type": "identifier", "text": "next", "parent": 370, "children": [], "start_point": {"row": 140, "column": 11}, "end_point": {"row": 140, "column": 15}}, {"id": 373, "type": "declaration", "text": "vchar *fullname;", "parent": 118, "children": [374, 375], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 20}}, {"id": 374, "type": "type_identifier", "text": "vchar", "parent": 373, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 9}}, {"id": 375, "type": "pointer_declarator", "text": "*fullname", "parent": 373, "children": [376, 377], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 19}}, {"id": 376, "type": "*", "text": "*", "parent": 375, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 11}}, {"id": 377, "type": "identifier", "text": "fullname", "parent": 375, "children": [], "start_point": {"row": 141, "column": 11}, "end_point": {"row": 141, "column": 19}}, {"id": 378, "type": "declaration", "text": "vchar *flags;", "parent": 118, "children": [379, 380], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 17}}, {"id": 379, "type": "type_identifier", "text": "vchar", "parent": 378, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 9}}, {"id": 380, "type": "pointer_declarator", "text": "*flags", "parent": 378, "children": [381, 382], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 16}}, {"id": 381, "type": "*", "text": "*", "parent": 380, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 11}}, {"id": 382, "type": "identifier", "text": "flags", "parent": 380, "children": [], "start_point": {"row": 142, "column": 11}, "end_point": {"row": 142, "column": 16}}, {"id": 383, "type": "declaration", "text": "int is_dir;", "parent": 118, "children": [384, 385], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 17}}, {"id": 384, "type": "primitive_type", "text": "int", "parent": 383, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 7}}, {"id": 385, "type": "identifier", "text": "is_dir", "parent": 383, "children": [], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 16}}, {"id": 386, "type": "declaration", "text": "int excluded;", "parent": 118, "children": [387, 388], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 19}}, {"id": 387, "type": "primitive_type", "text": "int", "parent": 386, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 7}}, {"id": 388, "type": "identifier", "text": "excluded", "parent": 386, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 18}}, {"id": 389, "type": "function_definition", "text": "class Directory : public File\n{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n \n void Save (vchar *filename);\n vbool Save (vfsFile *vfile, int level);\n static File *Restore (vchar *filename);\n void Restore (vfsFile *vfile, int level);\n \n static vchar* GetGlobalFilter ();\n static void SetGlobalFilter (const vchar*);\n vchar* GetFilter ();\n void SetFilter (const vchar*);\n vchar* DetermineFilter ();\n FilterList* DetermineLocalFilter ();\n\n unsigned int CountPDFfiles(vchar *sourceRoot);\n\n void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);\n\n void ReadDirectory (vbool displayAll);\n void RemoveFiles ();\n virtual void Print ();\n \n File *GetFirstFile();\n\n File* FindFileFromPath (const vchar* path);\n\nprivate:\n int AddFile (vchar *fileName, File **newList);\n File* FindFile (vchar *name);\n File* InsertionSort (File* fileList);\n\nprivate:\n File* first;\n FilterList *filterList;\n static FilterList *globalFilterList;\n}", "parent": 0, "children": [390, 391], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 200, "column": 1}}, {"id": 390, "type": "identifier", "text": "Directory", "parent": 389, "children": [], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 15}}, {"id": 391, "type": "ERROR", "text": ": public File", "parent": 389, "children": [392], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 29}}, {"id": 392, "type": "identifier", "text": "File", "parent": 391, "children": [], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 29}}, {"id": 393, "type": "labeled_statement", "text": "public:\n Directory (const vchar* name);\n virtual ~Directory ();", "parent": 389, "children": [394], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 156, "column": 24}}, {"id": 394, "type": "declaration", "text": "Directory (const vchar* name);\n virtual ~Directory ();", "parent": 393, "children": [395, 403, 406], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 156, "column": 24}}, {"id": 395, "type": "macro_type_specifier", "text": "Directory (const vchar* name)", "parent": 394, "children": [396, 397, 401], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 31}}, {"id": 396, "type": "identifier", "text": "Directory", "parent": 395, "children": [], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 11}}, {"id": 397, "type": "type_descriptor", "text": "const vchar*", "parent": 395, "children": [398, 399], "start_point": {"row": 155, "column": 13}, "end_point": {"row": 155, "column": 25}}, {"id": 398, "type": "type_identifier", "text": "vchar", "parent": 397, "children": [], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 24}}, {"id": 399, "type": "abstract_pointer_declarator", "text": "*", "parent": 397, "children": [400], "start_point": {"row": 155, "column": 24}, "end_point": {"row": 155, "column": 25}}, {"id": 400, "type": "*", "text": "*", "parent": 399, "children": [], "start_point": {"row": 155, "column": 24}, "end_point": {"row": 155, "column": 25}}, {"id": 401, "type": "ERROR", "text": "name", "parent": 395, "children": [402], "start_point": {"row": 155, "column": 26}, "end_point": {"row": 155, "column": 30}}, {"id": 402, "type": "identifier", "text": "name", "parent": 401, "children": [], "start_point": {"row": 155, "column": 26}, "end_point": {"row": 155, "column": 30}}, {"id": 403, "type": "ERROR", "text": ";\n virtual ~", "parent": 394, "children": [404, 405], "start_point": {"row": 155, "column": 31}, "end_point": {"row": 156, "column": 11}}, {"id": 404, "type": "identifier", "text": "virtual", "parent": 403, "children": [], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 9}}, {"id": 405, "type": "~", "text": "~", "parent": 403, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 11}}, {"id": 406, "type": "function_declarator", "text": "Directory ()", "parent": 394, "children": [407, 408], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 23}}, {"id": 407, "type": "identifier", "text": "Directory", "parent": 406, "children": [], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 20}}, {"id": 408, "type": "parameter_list", "text": "()", "parent": 406, "children": [], "start_point": {"row": 156, "column": 21}, "end_point": {"row": 156, "column": 23}}, {"id": 409, "type": "declaration", "text": "void Save (vchar *filename);", "parent": 389, "children": [410, 411], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 30}}, {"id": 410, "type": "primitive_type", "text": "void", "parent": 409, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 6}}, {"id": 411, "type": "function_declarator", "text": "Save (vchar *filename)", "parent": 409, "children": [412, 413], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 29}}, {"id": 412, "type": "identifier", "text": "Save", "parent": 411, "children": [], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 11}}, {"id": 413, "type": "parameter_list", "text": "(vchar *filename)", "parent": 411, "children": [414], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 29}}, {"id": 414, "type": "parameter_declaration", "text": "vchar *filename", "parent": 413, "children": [415, 416], "start_point": {"row": 158, "column": 13}, "end_point": {"row": 158, "column": 28}}, {"id": 415, "type": "type_identifier", "text": "vchar", "parent": 414, "children": [], "start_point": {"row": 158, "column": 13}, "end_point": {"row": 158, "column": 18}}, {"id": 416, "type": "pointer_declarator", "text": "*filename", "parent": 414, "children": [417, 418], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 28}}, {"id": 417, "type": "*", "text": "*", "parent": 416, "children": [], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 20}}, {"id": 418, "type": "identifier", "text": "filename", "parent": 416, "children": [], "start_point": {"row": 158, "column": 20}, "end_point": {"row": 158, "column": 28}}, {"id": 419, "type": "declaration", "text": "vbool Save (vfsFile *vfile, int level);", "parent": 389, "children": [420, 421], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 41}}, {"id": 420, "type": "type_identifier", "text": "vbool", "parent": 419, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 7}}, {"id": 421, "type": "function_declarator", "text": "Save (vfsFile *vfile, int level)", "parent": 419, "children": [422, 423], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 40}}, {"id": 422, "type": "identifier", "text": "Save", "parent": 421, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 12}}, {"id": 423, "type": "parameter_list", "text": "(vfsFile *vfile, int level)", "parent": 421, "children": [424, 429], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 40}}, {"id": 424, "type": "parameter_declaration", "text": "vfsFile *vfile", "parent": 423, "children": [425, 426], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 28}}, {"id": 425, "type": "type_identifier", "text": "vfsFile", "parent": 424, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 21}}, {"id": 426, "type": "pointer_declarator", "text": "*vfile", "parent": 424, "children": [427, 428], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 28}}, {"id": 427, "type": "*", "text": "*", "parent": 426, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 23}}, {"id": 428, "type": "identifier", "text": "vfile", "parent": 426, "children": [], "start_point": {"row": 159, "column": 23}, "end_point": {"row": 159, "column": 28}}, {"id": 429, "type": "parameter_declaration", "text": "int level", "parent": 423, "children": [430, 431], "start_point": {"row": 159, "column": 30}, "end_point": {"row": 159, "column": 39}}, {"id": 430, "type": "primitive_type", "text": "int", "parent": 429, "children": [], "start_point": {"row": 159, "column": 30}, "end_point": {"row": 159, "column": 33}}, {"id": 431, "type": "identifier", "text": "level", "parent": 429, "children": [], "start_point": {"row": 159, "column": 34}, "end_point": {"row": 159, "column": 39}}, {"id": 432, "type": "declaration", "text": "static File *Restore (vchar *filename);", "parent": 389, "children": [433, 434], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 41}}, {"id": 433, "type": "type_identifier", "text": "File", "parent": 432, "children": [], "start_point": {"row": 160, "column": 9}, "end_point": {"row": 160, "column": 13}}, {"id": 434, "type": "pointer_declarator", "text": "*Restore (vchar *filename)", "parent": 432, "children": [435, 436], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 40}}, {"id": 435, "type": "*", "text": "*", "parent": 434, "children": [], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 15}}, {"id": 436, "type": "function_declarator", "text": "Restore (vchar *filename)", "parent": 434, "children": [437, 438], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 40}}, {"id": 437, "type": "identifier", "text": "Restore", "parent": 436, "children": [], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 22}}, {"id": 438, "type": "parameter_list", "text": "(vchar *filename)", "parent": 436, "children": [439], "start_point": {"row": 160, "column": 23}, "end_point": {"row": 160, "column": 40}}, {"id": 439, "type": "parameter_declaration", "text": "vchar *filename", "parent": 438, "children": [440, 441], "start_point": {"row": 160, "column": 24}, "end_point": {"row": 160, "column": 39}}, {"id": 440, "type": "type_identifier", "text": "vchar", "parent": 439, "children": [], "start_point": {"row": 160, "column": 24}, "end_point": {"row": 160, "column": 29}}, {"id": 441, "type": "pointer_declarator", "text": "*filename", "parent": 439, "children": [442, 443], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 39}}, {"id": 442, "type": "*", "text": "*", "parent": 441, "children": [], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 31}}, {"id": 443, "type": "identifier", "text": "filename", "parent": 441, "children": [], "start_point": {"row": 160, "column": 31}, "end_point": {"row": 160, "column": 39}}, {"id": 444, "type": "declaration", "text": "void Restore (vfsFile *vfile, int level);", "parent": 389, "children": [445, 446], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 43}}, {"id": 445, "type": "primitive_type", "text": "void", "parent": 444, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 6}}, {"id": 446, "type": "function_declarator", "text": "Restore (vfsFile *vfile, int level)", "parent": 444, "children": [447, 448], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 42}}, {"id": 447, "type": "identifier", "text": "Restore", "parent": 446, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 14}}, {"id": 448, "type": "parameter_list", "text": "(vfsFile *vfile, int level)", "parent": 446, "children": [449, 454], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 42}}, {"id": 449, "type": "parameter_declaration", "text": "vfsFile *vfile", "parent": 448, "children": [450, 451], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 30}}, {"id": 450, "type": "type_identifier", "text": "vfsFile", "parent": 449, "children": [], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 23}}, {"id": 451, "type": "pointer_declarator", "text": "*vfile", "parent": 449, "children": [452, 453], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 30}}, {"id": 452, "type": "*", "text": "*", "parent": 451, "children": [], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 25}}, {"id": 453, "type": "identifier", "text": "vfile", "parent": 451, "children": [], "start_point": {"row": 161, "column": 25}, "end_point": {"row": 161, "column": 30}}, {"id": 454, "type": "parameter_declaration", "text": "int level", "parent": 448, "children": [455, 456], "start_point": {"row": 161, "column": 32}, "end_point": {"row": 161, "column": 41}}, {"id": 455, "type": "primitive_type", "text": "int", "parent": 454, "children": [], "start_point": {"row": 161, "column": 32}, "end_point": {"row": 161, "column": 35}}, {"id": 456, "type": "identifier", "text": "level", "parent": 454, "children": [], "start_point": {"row": 161, "column": 36}, "end_point": {"row": 161, "column": 41}}, {"id": 457, "type": "declaration", "text": "static vchar* GetGlobalFilter ();", "parent": 389, "children": [458, 459], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 35}}, {"id": 458, "type": "type_identifier", "text": "vchar", "parent": 457, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 14}}, {"id": 459, "type": "pointer_declarator", "text": "* GetGlobalFilter ()", "parent": 457, "children": [460, 461], "start_point": {"row": 163, "column": 14}, "end_point": {"row": 163, "column": 34}}, {"id": 460, "type": "*", "text": "*", "parent": 459, "children": [], "start_point": {"row": 163, "column": 14}, "end_point": {"row": 163, "column": 15}}, {"id": 461, "type": "function_declarator", "text": "GetGlobalFilter ()", "parent": 459, "children": [462, 463], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 34}}, {"id": 462, "type": "identifier", "text": "GetGlobalFilter", "parent": 461, "children": [], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 31}}, {"id": 463, "type": "parameter_list", "text": "()", "parent": 461, "children": [], "start_point": {"row": 163, "column": 32}, "end_point": {"row": 163, "column": 34}}, {"id": 464, "type": "declaration", "text": "static void SetGlobalFilter (const vchar*);", "parent": 389, "children": [465, 466], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 45}}, {"id": 465, "type": "primitive_type", "text": "void", "parent": 464, "children": [], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 13}}, {"id": 466, "type": "function_declarator", "text": "SetGlobalFilter (const vchar*)", "parent": 464, "children": [467, 468], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 44}}, {"id": 467, "type": "identifier", "text": "SetGlobalFilter", "parent": 466, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 29}}, {"id": 468, "type": "parameter_list", "text": "(const vchar*)", "parent": 466, "children": [469], "start_point": {"row": 164, "column": 30}, "end_point": {"row": 164, "column": 44}}, {"id": 469, "type": "parameter_declaration", "text": "const vchar*", "parent": 468, "children": [470, 471], "start_point": {"row": 164, "column": 31}, "end_point": {"row": 164, "column": 43}}, {"id": 470, "type": "type_identifier", "text": "vchar", "parent": 469, "children": [], "start_point": {"row": 164, "column": 37}, "end_point": {"row": 164, "column": 42}}, {"id": 471, "type": "abstract_pointer_declarator", "text": "*", "parent": 469, "children": [472], "start_point": {"row": 164, "column": 42}, "end_point": {"row": 164, "column": 43}}, {"id": 472, "type": "*", "text": "*", "parent": 471, "children": [], "start_point": {"row": 164, "column": 42}, "end_point": {"row": 164, "column": 43}}, {"id": 473, "type": "declaration", "text": "vchar* GetFilter ();", "parent": 389, "children": [474, 475], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 22}}, {"id": 474, "type": "type_identifier", "text": "vchar", "parent": 473, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 7}}, {"id": 475, "type": "pointer_declarator", "text": "* GetFilter ()", "parent": 473, "children": [476, 477], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 21}}, {"id": 476, "type": "*", "text": "*", "parent": 475, "children": [], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 8}}, {"id": 477, "type": "function_declarator", "text": "GetFilter ()", "parent": 475, "children": [478, 479], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 21}}, {"id": 478, "type": "identifier", "text": "GetFilter", "parent": 477, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 18}}, {"id": 479, "type": "parameter_list", "text": "()", "parent": 477, "children": [], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 21}}, {"id": 480, "type": "declaration", "text": "void SetFilter (const vchar*);", "parent": 389, "children": [481, 482], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 32}}, {"id": 481, "type": "primitive_type", "text": "void", "parent": 480, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 6}}, {"id": 482, "type": "function_declarator", "text": "SetFilter (const vchar*)", "parent": 480, "children": [483, 484], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 31}}, {"id": 483, "type": "identifier", "text": "SetFilter", "parent": 482, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 16}}, {"id": 484, "type": "parameter_list", "text": "(const vchar*)", "parent": 482, "children": [485], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 31}}, {"id": 485, "type": "parameter_declaration", "text": "const vchar*", "parent": 484, "children": [486, 487], "start_point": {"row": 166, "column": 18}, "end_point": {"row": 166, "column": 30}}, {"id": 486, "type": "type_identifier", "text": "vchar", "parent": 485, "children": [], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 29}}, {"id": 487, "type": "abstract_pointer_declarator", "text": "*", "parent": 485, "children": [488], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 30}}, {"id": 488, "type": "*", "text": "*", "parent": 487, "children": [], "start_point": {"row": 166, "column": 29}, "end_point": {"row": 166, "column": 30}}, {"id": 489, "type": "declaration", "text": "vchar* DetermineFilter ();", "parent": 389, "children": [490, 491], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 28}}, {"id": 490, "type": "type_identifier", "text": "vchar", "parent": 489, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 7}}, {"id": 491, "type": "pointer_declarator", "text": "* DetermineFilter ()", "parent": 489, "children": [492, 493], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 27}}, {"id": 492, "type": "*", "text": "*", "parent": 491, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 8}}, {"id": 493, "type": "function_declarator", "text": "DetermineFilter ()", "parent": 491, "children": [494, 495], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 27}}, {"id": 494, "type": "identifier", "text": "DetermineFilter", "parent": 493, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 24}}, {"id": 495, "type": "parameter_list", "text": "()", "parent": 493, "children": [], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 27}}, {"id": 496, "type": "declaration", "text": "FilterList* DetermineLocalFilter ();", "parent": 389, "children": [497, 498], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 38}}, {"id": 497, "type": "type_identifier", "text": "FilterList", "parent": 496, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 12}}, {"id": 498, "type": "pointer_declarator", "text": "* DetermineLocalFilter ()", "parent": 496, "children": [499, 500], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 37}}, {"id": 499, "type": "*", "text": "*", "parent": 498, "children": [], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 13}}, {"id": 500, "type": "function_declarator", "text": "DetermineLocalFilter ()", "parent": 498, "children": [501, 502], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 37}}, {"id": 501, "type": "identifier", "text": "DetermineLocalFilter", "parent": 500, "children": [], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 34}}, {"id": 502, "type": "parameter_list", "text": "()", "parent": 500, "children": [], "start_point": {"row": 168, "column": 35}, "end_point": {"row": 168, "column": 37}}, {"id": 503, "type": "declaration", "text": "unsigned int CountPDFfiles(vchar *sourceRoot);", "parent": 389, "children": [504, 507], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 49}}, {"id": 504, "type": "sized_type_specifier", "text": "unsigned int", "parent": 503, "children": [505, 506], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 14}}, {"id": 505, "type": "unsigned", "text": "unsigned", "parent": 504, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 10}}, {"id": 506, "type": "primitive_type", "text": "int", "parent": 504, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 14}}, {"id": 507, "type": "function_declarator", "text": "CountPDFfiles(vchar *sourceRoot)", "parent": 503, "children": [508, 509], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 48}}, {"id": 508, "type": "identifier", "text": "CountPDFfiles", "parent": 507, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 29}}, {"id": 509, "type": "parameter_list", "text": "(vchar *sourceRoot)", "parent": 507, "children": [510], "start_point": {"row": 170, "column": 29}, "end_point": {"row": 170, "column": 48}}, {"id": 510, "type": "parameter_declaration", "text": "vchar *sourceRoot", "parent": 509, "children": [511, 512], "start_point": {"row": 170, "column": 30}, "end_point": {"row": 170, "column": 47}}, {"id": 511, "type": "type_identifier", "text": "vchar", "parent": 510, "children": [], "start_point": {"row": 170, "column": 30}, "end_point": {"row": 170, "column": 35}}, {"id": 512, "type": "pointer_declarator", "text": "*sourceRoot", "parent": 510, "children": [513, 514], "start_point": {"row": 170, "column": 36}, "end_point": {"row": 170, "column": 47}}, {"id": 513, "type": "*", "text": "*", "parent": 512, "children": [], "start_point": {"row": 170, "column": 36}, "end_point": {"row": 170, "column": 37}}, {"id": 514, "type": "identifier", "text": "sourceRoot", "parent": 512, "children": [], "start_point": {"row": 170, "column": 37}, "end_point": {"row": 170, "column": 47}}, {"id": 515, "type": "declaration", "text": "void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);", "parent": 389, "children": [516, 517], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 175, "column": 39}}, {"id": 516, "type": "primitive_type", "text": "void", "parent": 515, "children": [], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 6}}, {"id": 517, "type": "function_declarator", "text": "WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot)", "parent": 515, "children": [518, 519], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 175, "column": 38}}, {"id": 518, "type": "identifier", "text": "WritePDFFile", "parent": 517, "children": [], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 172, "column": 19}}, {"id": 519, "type": "parameter_list", "text": "(vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot)", "parent": 517, "children": [520, 525, 530, 535], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 175, "column": 38}}, {"id": 520, "type": "parameter_declaration", "text": "vchar *outputFile", "parent": 519, "children": [521, 522], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 38}}, {"id": 521, "type": "type_identifier", "text": "vchar", "parent": 520, "children": [], "start_point": {"row": 172, "column": 21}, "end_point": {"row": 172, "column": 26}}, {"id": 522, "type": "pointer_declarator", "text": "*outputFile", "parent": 520, "children": [523, 524], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 38}}, {"id": 523, "type": "*", "text": "*", "parent": 522, "children": [], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 28}}, {"id": 524, "type": "identifier", "text": "outputFile", "parent": 522, "children": [], "start_point": {"row": 172, "column": 28}, "end_point": {"row": 172, "column": 38}}, {"id": 525, "type": "parameter_declaration", "text": "vchar *projectName", "parent": 519, "children": [526, 527], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 39}}, {"id": 526, "type": "type_identifier", "text": "vchar", "parent": 525, "children": [], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 26}}, {"id": 527, "type": "pointer_declarator", "text": "*projectName", "parent": 525, "children": [528, 529], "start_point": {"row": 173, "column": 27}, "end_point": {"row": 173, "column": 39}}, {"id": 528, "type": "*", "text": "*", "parent": 527, "children": [], "start_point": {"row": 173, "column": 27}, "end_point": {"row": 173, "column": 28}}, {"id": 529, "type": "identifier", "text": "projectName", "parent": 527, "children": [], "start_point": {"row": 173, "column": 28}, "end_point": {"row": 173, "column": 39}}, {"id": 530, "type": "parameter_declaration", "text": "vchar *sourceRoot", "parent": 519, "children": [531, 532], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 38}}, {"id": 531, "type": "type_identifier", "text": "vchar", "parent": 530, "children": [], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 26}}, {"id": 532, "type": "pointer_declarator", "text": "*sourceRoot", "parent": 530, "children": [533, 534], "start_point": {"row": 174, "column": 27}, "end_point": {"row": 174, "column": 38}}, {"id": 533, "type": "*", "text": "*", "parent": 532, "children": [], "start_point": {"row": 174, "column": 27}, "end_point": {"row": 174, "column": 28}}, {"id": 534, "type": "identifier", "text": "sourceRoot", "parent": 532, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 38}}, {"id": 535, "type": "parameter_declaration", "text": "vchar *modelRoot", "parent": 519, "children": [536, 537], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 37}}, {"id": 536, "type": "type_identifier", "text": "vchar", "parent": 535, "children": [], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 26}}, {"id": 537, "type": "pointer_declarator", "text": "*modelRoot", "parent": 535, "children": [538, 539], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 37}}, {"id": 538, "type": "*", "text": "*", "parent": 537, "children": [], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 28}}, {"id": 539, "type": "identifier", "text": "modelRoot", "parent": 537, "children": [], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 37}}, {"id": 540, "type": "declaration", "text": "void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);", "parent": 389, "children": [541, 542], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 181, "column": 41}}, {"id": 541, "type": "primitive_type", "text": "void", "parent": 540, "children": [], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 177, "column": 6}}, {"id": 542, "type": "function_declarator", "text": "GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath)", "parent": 540, "children": [543, 544], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 181, "column": 40}}, {"id": 543, "type": "identifier", "text": "GeneratePDF", "parent": 542, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 18}}, {"id": 544, "type": "parameter_list", "text": "(vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath)", "parent": 542, "children": [545, 550, 555, 560, 565], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 181, "column": 40}}, {"id": 545, "type": "parameter_declaration", "text": "vfsFile *outputFile", "parent": 544, "children": [546, 547], "start_point": {"row": 177, "column": 20}, "end_point": {"row": 177, "column": 39}}, {"id": 546, "type": "type_identifier", "text": "vfsFile", "parent": 545, "children": [], "start_point": {"row": 177, "column": 20}, "end_point": {"row": 177, "column": 27}}, {"id": 547, "type": "pointer_declarator", "text": "*outputFile", "parent": 545, "children": [548, 549], "start_point": {"row": 177, "column": 28}, "end_point": {"row": 177, "column": 39}}, {"id": 548, "type": "*", "text": "*", "parent": 547, "children": [], "start_point": {"row": 177, "column": 28}, "end_point": {"row": 177, "column": 29}}, {"id": 549, "type": "identifier", "text": "outputFile", "parent": 547, "children": [], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 39}}, {"id": 550, "type": "parameter_declaration", "text": "unsigned int level", "parent": 544, "children": [551, 554], "start_point": {"row": 178, "column": 20}, "end_point": {"row": 178, "column": 38}}, {"id": 551, "type": "sized_type_specifier", "text": "unsigned int", "parent": 550, "children": [552, 553], "start_point": {"row": 178, "column": 20}, "end_point": {"row": 178, "column": 32}}, {"id": 552, "type": "unsigned", "text": "unsigned", "parent": 551, "children": [], "start_point": {"row": 178, "column": 20}, "end_point": {"row": 178, "column": 28}}, {"id": 553, "type": "primitive_type", "text": "int", "parent": 551, "children": [], "start_point": {"row": 178, "column": 29}, "end_point": {"row": 178, "column": 32}}, {"id": 554, "type": "identifier", "text": "level", "parent": 550, "children": [], "start_point": {"row": 178, "column": 33}, "end_point": {"row": 178, "column": 38}}, {"id": 555, "type": "parameter_declaration", "text": "FilterList *filters", "parent": 544, "children": [556, 557], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 39}}, {"id": 556, "type": "type_identifier", "text": "FilterList", "parent": 555, "children": [], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 30}}, {"id": 557, "type": "pointer_declarator", "text": "*filters", "parent": 555, "children": [558, 559], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 39}}, {"id": 558, "type": "*", "text": "*", "parent": 557, "children": [], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 32}}, {"id": 559, "type": "identifier", "text": "filters", "parent": 557, "children": [], "start_point": {"row": 179, "column": 32}, "end_point": {"row": 179, "column": 39}}, {"id": 560, "type": "parameter_declaration", "text": "vchar * physicalPath", "parent": 544, "children": [561, 562], "start_point": {"row": 180, "column": 20}, "end_point": {"row": 180, "column": 40}}, {"id": 561, "type": "type_identifier", "text": "vchar", "parent": 560, "children": [], "start_point": {"row": 180, "column": 20}, "end_point": {"row": 180, "column": 25}}, {"id": 562, "type": "pointer_declarator", "text": "* physicalPath", "parent": 560, "children": [563, 564], "start_point": {"row": 180, "column": 26}, "end_point": {"row": 180, "column": 40}}, {"id": 563, "type": "*", "text": "*", "parent": 562, "children": [], "start_point": {"row": 180, "column": 26}, "end_point": {"row": 180, "column": 27}}, {"id": 564, "type": "identifier", "text": "physicalPath", "parent": 562, "children": [], "start_point": {"row": 180, "column": 28}, "end_point": {"row": 180, "column": 40}}, {"id": 565, "type": "parameter_declaration", "text": "vchar * logicalPath", "parent": 544, "children": [566, 567], "start_point": {"row": 181, "column": 20}, "end_point": {"row": 181, "column": 39}}, {"id": 566, "type": "type_identifier", "text": "vchar", "parent": 565, "children": [], "start_point": {"row": 181, "column": 20}, "end_point": {"row": 181, "column": 25}}, {"id": 567, "type": "pointer_declarator", "text": "* logicalPath", "parent": 565, "children": [568, 569], "start_point": {"row": 181, "column": 26}, "end_point": {"row": 181, "column": 39}}, {"id": 568, "type": "*", "text": "*", "parent": 567, "children": [], "start_point": {"row": 181, "column": 26}, "end_point": {"row": 181, "column": 27}}, {"id": 569, "type": "identifier", "text": "logicalPath", "parent": 567, "children": [], "start_point": {"row": 181, "column": 28}, "end_point": {"row": 181, "column": 39}}, {"id": 570, "type": "declaration", "text": "void ReadDirectory (vbool displayAll);", "parent": 389, "children": [571, 572], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 40}}, {"id": 571, "type": "primitive_type", "text": "void", "parent": 570, "children": [], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 6}}, {"id": 572, "type": "function_declarator", "text": "ReadDirectory (vbool displayAll)", "parent": 570, "children": [573, 574], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 39}}, {"id": 573, "type": "identifier", "text": "ReadDirectory", "parent": 572, "children": [], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 20}}, {"id": 574, "type": "parameter_list", "text": "(vbool displayAll)", "parent": 572, "children": [575], "start_point": {"row": 183, "column": 21}, "end_point": {"row": 183, "column": 39}}, {"id": 575, "type": "parameter_declaration", "text": "vbool displayAll", "parent": 574, "children": [576, 577], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 38}}, {"id": 576, "type": "type_identifier", "text": "vbool", "parent": 575, "children": [], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 27}}, {"id": 577, "type": "identifier", "text": "displayAll", "parent": 575, "children": [], "start_point": {"row": 183, "column": 28}, "end_point": {"row": 183, "column": 38}}, {"id": 578, "type": "declaration", "text": "void RemoveFiles ();", "parent": 389, "children": [579, 580], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 23}}, {"id": 579, "type": "primitive_type", "text": "void", "parent": 578, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 6}}, {"id": 580, "type": "function_declarator", "text": "RemoveFiles ()", "parent": 578, "children": [581, 582], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 22}}, {"id": 581, "type": "identifier", "text": "RemoveFiles", "parent": 580, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 19}}, {"id": 582, "type": "parameter_list", "text": "()", "parent": 580, "children": [], "start_point": {"row": 184, "column": 20}, "end_point": {"row": 184, "column": 22}}, {"id": 583, "type": "declaration", "text": "virtual void Print ();", "parent": 389, "children": [584, 585, 587], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 24}}, {"id": 584, "type": "type_identifier", "text": "virtual", "parent": 583, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 9}}, {"id": 585, "type": "ERROR", "text": "void", "parent": 583, "children": [586], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 14}}, {"id": 586, "type": "identifier", "text": "void", "parent": 585, "children": [], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 14}}, {"id": 587, "type": "function_declarator", "text": "Print ()", "parent": 583, "children": [588, 589], "start_point": {"row": 185, "column": 15}, "end_point": {"row": 185, "column": 23}}, {"id": 588, "type": "identifier", "text": "Print", "parent": 587, "children": [], "start_point": {"row": 185, "column": 15}, "end_point": {"row": 185, "column": 20}}, {"id": 589, "type": "parameter_list", "text": "()", "parent": 587, "children": [], "start_point": {"row": 185, "column": 21}, "end_point": {"row": 185, "column": 23}}, {"id": 590, "type": "declaration", "text": "File *GetFirstFile();", "parent": 389, "children": [591, 592], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 23}}, {"id": 591, "type": "type_identifier", "text": "File", "parent": 590, "children": [], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 187, "column": 6}}, {"id": 592, "type": "pointer_declarator", "text": "*GetFirstFile()", "parent": 590, "children": [593, 594], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 22}}, {"id": 593, "type": "*", "text": "*", "parent": 592, "children": [], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 8}}, {"id": 594, "type": "function_declarator", "text": "GetFirstFile()", "parent": 592, "children": [595, 596], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 22}}, {"id": 595, "type": "identifier", "text": "GetFirstFile", "parent": 594, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 20}}, {"id": 596, "type": "parameter_list", "text": "()", "parent": 594, "children": [], "start_point": {"row": 187, "column": 20}, "end_point": {"row": 187, "column": 22}}, {"id": 597, "type": "declaration", "text": "File* FindFileFromPath (const vchar* path);", "parent": 389, "children": [598, 599], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 45}}, {"id": 598, "type": "type_identifier", "text": "File", "parent": 597, "children": [], "start_point": {"row": 189, "column": 2}, "end_point": {"row": 189, "column": 6}}, {"id": 599, "type": "pointer_declarator", "text": "* FindFileFromPath (const vchar* path)", "parent": 597, "children": [600, 601], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 44}}, {"id": 600, "type": "*", "text": "*", "parent": 599, "children": [], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 7}}, {"id": 601, "type": "function_declarator", "text": "FindFileFromPath (const vchar* path)", "parent": 599, "children": [602, 603], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 44}}, {"id": 602, "type": "identifier", "text": "FindFileFromPath", "parent": 601, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 24}}, {"id": 603, "type": "parameter_list", "text": "(const vchar* path)", "parent": 601, "children": [604], "start_point": {"row": 189, "column": 25}, "end_point": {"row": 189, "column": 44}}, {"id": 604, "type": "parameter_declaration", "text": "const vchar* path", "parent": 603, "children": [605, 606], "start_point": {"row": 189, "column": 26}, "end_point": {"row": 189, "column": 43}}, {"id": 605, "type": "type_identifier", "text": "vchar", "parent": 604, "children": [], "start_point": {"row": 189, "column": 32}, "end_point": {"row": 189, "column": 37}}, {"id": 606, "type": "pointer_declarator", "text": "* path", "parent": 604, "children": [607, 608], "start_point": {"row": 189, "column": 37}, "end_point": {"row": 189, "column": 43}}, {"id": 607, "type": "*", "text": "*", "parent": 606, "children": [], "start_point": {"row": 189, "column": 37}, "end_point": {"row": 189, "column": 38}}, {"id": 608, "type": "identifier", "text": "path", "parent": 606, "children": [], "start_point": {"row": 189, "column": 39}, "end_point": {"row": 189, "column": 43}}, {"id": 609, "type": "labeled_statement", "text": "private:\n int AddFile (vchar *fileName, File **newList);", "parent": 389, "children": [610], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 192, "column": 48}}, {"id": 610, "type": "declaration", "text": "int AddFile (vchar *fileName, File **newList);", "parent": 609, "children": [611, 612], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 48}}, {"id": 611, "type": "primitive_type", "text": "int", "parent": 610, "children": [], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 5}}, {"id": 612, "type": "function_declarator", "text": "AddFile (vchar *fileName, File **newList)", "parent": 610, "children": [613, 614], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 47}}, {"id": 613, "type": "identifier", "text": "AddFile", "parent": 612, "children": [], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 13}}, {"id": 614, "type": "parameter_list", "text": "(vchar *fileName, File **newList)", "parent": 612, "children": [615, 620], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 47}}, {"id": 615, "type": "parameter_declaration", "text": "vchar *fileName", "parent": 614, "children": [616, 617], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 30}}, {"id": 616, "type": "type_identifier", "text": "vchar", "parent": 615, "children": [], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 20}}, {"id": 617, "type": "pointer_declarator", "text": "*fileName", "parent": 615, "children": [618, 619], "start_point": {"row": 192, "column": 21}, "end_point": {"row": 192, "column": 30}}, {"id": 618, "type": "*", "text": "*", "parent": 617, "children": [], "start_point": {"row": 192, "column": 21}, "end_point": {"row": 192, "column": 22}}, {"id": 619, "type": "identifier", "text": "fileName", "parent": 617, "children": [], "start_point": {"row": 192, "column": 22}, "end_point": {"row": 192, "column": 30}}, {"id": 620, "type": "parameter_declaration", "text": "File **newList", "parent": 614, "children": [621, 622], "start_point": {"row": 192, "column": 32}, "end_point": {"row": 192, "column": 46}}, {"id": 621, "type": "type_identifier", "text": "File", "parent": 620, "children": [], "start_point": {"row": 192, "column": 32}, "end_point": {"row": 192, "column": 36}}, {"id": 622, "type": "pointer_declarator", "text": "**newList", "parent": 620, "children": [623, 624], "start_point": {"row": 192, "column": 37}, "end_point": {"row": 192, "column": 46}}, {"id": 623, "type": "*", "text": "*", "parent": 622, "children": [], "start_point": {"row": 192, "column": 37}, "end_point": {"row": 192, "column": 38}}, {"id": 624, "type": "pointer_declarator", "text": "*newList", "parent": 622, "children": [625, 626], "start_point": {"row": 192, "column": 38}, "end_point": {"row": 192, "column": 46}}, {"id": 625, "type": "*", "text": "*", "parent": 624, "children": [], "start_point": {"row": 192, "column": 38}, "end_point": {"row": 192, "column": 39}}, {"id": 626, "type": "identifier", "text": "newList", "parent": 624, "children": [], "start_point": {"row": 192, "column": 39}, "end_point": {"row": 192, "column": 46}}, {"id": 627, "type": "declaration", "text": "File* FindFile (vchar *name);", "parent": 389, "children": [628, 629], "start_point": {"row": 193, "column": 2}, "end_point": {"row": 193, "column": 31}}, {"id": 628, "type": "type_identifier", "text": "File", "parent": 627, "children": [], "start_point": {"row": 193, "column": 2}, "end_point": {"row": 193, "column": 6}}, {"id": 629, "type": "pointer_declarator", "text": "* FindFile (vchar *name)", "parent": 627, "children": [630, 631], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 30}}, {"id": 630, "type": "*", "text": "*", "parent": 629, "children": [], "start_point": {"row": 193, "column": 6}, "end_point": {"row": 193, "column": 7}}, {"id": 631, "type": "function_declarator", "text": "FindFile (vchar *name)", "parent": 629, "children": [632, 633], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 30}}, {"id": 632, "type": "identifier", "text": "FindFile", "parent": 631, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 16}}, {"id": 633, "type": "parameter_list", "text": "(vchar *name)", "parent": 631, "children": [634], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 30}}, {"id": 634, "type": "parameter_declaration", "text": "vchar *name", "parent": 633, "children": [635, 636], "start_point": {"row": 193, "column": 18}, "end_point": {"row": 193, "column": 29}}, {"id": 635, "type": "type_identifier", "text": "vchar", "parent": 634, "children": [], "start_point": {"row": 193, "column": 18}, "end_point": {"row": 193, "column": 23}}, {"id": 636, "type": "pointer_declarator", "text": "*name", "parent": 634, "children": [637, 638], "start_point": {"row": 193, "column": 24}, "end_point": {"row": 193, "column": 29}}, {"id": 637, "type": "*", "text": "*", "parent": 636, "children": [], "start_point": {"row": 193, "column": 24}, "end_point": {"row": 193, "column": 25}}, {"id": 638, "type": "identifier", "text": "name", "parent": 636, "children": [], "start_point": {"row": 193, "column": 25}, "end_point": {"row": 193, "column": 29}}, {"id": 639, "type": "declaration", "text": "File* InsertionSort (File* fileList);", "parent": 389, "children": [640, 641], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 39}}, {"id": 640, "type": "type_identifier", "text": "File", "parent": 639, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 6}}, {"id": 641, "type": "pointer_declarator", "text": "* InsertionSort (File* fileList)", "parent": 639, "children": [642, 643], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 38}}, {"id": 642, "type": "*", "text": "*", "parent": 641, "children": [], "start_point": {"row": 194, "column": 6}, "end_point": {"row": 194, "column": 7}}, {"id": 643, "type": "function_declarator", "text": "InsertionSort (File* fileList)", "parent": 641, "children": [644, 645], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 38}}, {"id": 644, "type": "identifier", "text": "InsertionSort", "parent": 643, "children": [], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 21}}, {"id": 645, "type": "parameter_list", "text": "(File* fileList)", "parent": 643, "children": [646], "start_point": {"row": 194, "column": 22}, "end_point": {"row": 194, "column": 38}}, {"id": 646, "type": "parameter_declaration", "text": "File* fileList", "parent": 645, "children": [647, 648], "start_point": {"row": 194, "column": 23}, "end_point": {"row": 194, "column": 37}}, {"id": 647, "type": "type_identifier", "text": "File", "parent": 646, "children": [], "start_point": {"row": 194, "column": 23}, "end_point": {"row": 194, "column": 27}}, {"id": 648, "type": "pointer_declarator", "text": "* fileList", "parent": 646, "children": [649, 650], "start_point": {"row": 194, "column": 27}, "end_point": {"row": 194, "column": 37}}, {"id": 649, "type": "*", "text": "*", "parent": 648, "children": [], "start_point": {"row": 194, "column": 27}, "end_point": {"row": 194, "column": 28}}, {"id": 650, "type": "identifier", "text": "fileList", "parent": 648, "children": [], "start_point": {"row": 194, "column": 29}, "end_point": {"row": 194, "column": 37}}, {"id": 651, "type": "labeled_statement", "text": "private:\n File* first;", "parent": 389, "children": [652], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 197, "column": 14}}, {"id": 652, "type": "declaration", "text": "File* first;", "parent": 651, "children": [653, 654], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 14}}, {"id": 653, "type": "type_identifier", "text": "File", "parent": 652, "children": [], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 6}}, {"id": 654, "type": "pointer_declarator", "text": "* first", "parent": 652, "children": [655, 656], "start_point": {"row": 197, "column": 6}, "end_point": {"row": 197, "column": 13}}, {"id": 655, "type": "*", "text": "*", "parent": 654, "children": [], "start_point": {"row": 197, "column": 6}, "end_point": {"row": 197, "column": 7}}, {"id": 656, "type": "identifier", "text": "first", "parent": 654, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 13}}, {"id": 657, "type": "declaration", "text": "FilterList *filterList;", "parent": 389, "children": [658, 659], "start_point": {"row": 198, "column": 2}, "end_point": {"row": 198, "column": 25}}, {"id": 658, "type": "type_identifier", "text": "FilterList", "parent": 657, "children": [], "start_point": {"row": 198, "column": 2}, "end_point": {"row": 198, "column": 12}}, {"id": 659, "type": "pointer_declarator", "text": "*filterList", "parent": 657, "children": [660, 661], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 24}}, {"id": 660, "type": "*", "text": "*", "parent": 659, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 14}}, {"id": 661, "type": "identifier", "text": "filterList", "parent": 659, "children": [], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 24}}, {"id": 662, "type": "declaration", "text": "static FilterList *globalFilterList;", "parent": 389, "children": [663, 664], "start_point": {"row": 199, "column": 2}, "end_point": {"row": 199, "column": 38}}, {"id": 663, "type": "type_identifier", "text": "FilterList", "parent": 662, "children": [], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 19}}, {"id": 664, "type": "pointer_declarator", "text": "*globalFilterList", "parent": 662, "children": [665, 666], "start_point": {"row": 199, "column": 20}, "end_point": {"row": 199, "column": 37}}, {"id": 665, "type": "*", "text": "*", "parent": 664, "children": [], "start_point": {"row": 199, "column": 20}, "end_point": {"row": 199, "column": 21}}, {"id": 666, "type": "identifier", "text": "globalFilterList", "parent": 664, "children": [], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 37}}, {"id": 667, "type": "function_definition", "text": "class Filter\n{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filter;\n vbool wild;\n}", "parent": 0, "children": [668], "start_point": {"row": 206, "column": 0}, "end_point": {"row": 220, "column": 1}}, {"id": 668, "type": "identifier", "text": "Filter", "parent": 667, "children": [], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 12}}, {"id": 669, "type": "labeled_statement", "text": "public:\n Filter (vchar *filter);", "parent": 667, "children": [], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 210, "column": 25}}, {"id": 670, "type": "call_expression", "text": "Filter (vchar *filter)", "parent": 669, "children": [671, 672], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 24}}, {"id": 671, "type": "identifier", "text": "Filter", "parent": 670, "children": [], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 8}}, {"id": 672, "type": "argument_list", "text": "(vchar *filter)", "parent": 670, "children": [673], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 24}}, {"id": 673, "type": "binary_expression", "text": "vchar *filter", "parent": 672, "children": [674, 675, 676], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 23}}, {"id": 674, "type": "identifier", "text": "vchar", "parent": 673, "children": [], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 15}}, {"id": 675, "type": "*", "text": "*", "parent": 673, "children": [], "start_point": {"row": 210, "column": 16}, "end_point": {"row": 210, "column": 17}}, {"id": 676, "type": "identifier", "text": "filter", "parent": 673, "children": [], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 23}}, {"id": 677, "type": "unary_expression", "text": "~Filter ()", "parent": 667, "children": [678, 679], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 12}}, {"id": 678, "type": "~", "text": "~", "parent": 677, "children": [], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 3}}, {"id": 679, "type": "call_expression", "text": "Filter ()", "parent": 677, "children": [680, 681], "start_point": {"row": 211, "column": 3}, "end_point": {"row": 211, "column": 12}}, {"id": 680, "type": "identifier", "text": "Filter", "parent": 679, "children": [], "start_point": {"row": 211, "column": 3}, "end_point": {"row": 211, "column": 9}}, {"id": 681, "type": "argument_list", "text": "()", "parent": 679, "children": [], "start_point": {"row": 211, "column": 10}, "end_point": {"row": 211, "column": 12}}, {"id": 682, "type": "declaration", "text": "vbool IsFiltered (vchar *fileName);", "parent": 667, "children": [683, 684], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 37}}, {"id": 683, "type": "type_identifier", "text": "vbool", "parent": 682, "children": [], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 7}}, {"id": 684, "type": "function_declarator", "text": "IsFiltered (vchar *fileName)", "parent": 682, "children": [685, 686], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 36}}, {"id": 685, "type": "identifier", "text": "IsFiltered", "parent": 684, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 18}}, {"id": 686, "type": "parameter_list", "text": "(vchar *fileName)", "parent": 684, "children": [687], "start_point": {"row": 212, "column": 19}, "end_point": {"row": 212, "column": 36}}, {"id": 687, "type": "parameter_declaration", "text": "vchar *fileName", "parent": 686, "children": [688, 689], "start_point": {"row": 212, "column": 20}, "end_point": {"row": 212, "column": 35}}, {"id": 688, "type": "type_identifier", "text": "vchar", "parent": 687, "children": [], "start_point": {"row": 212, "column": 20}, "end_point": {"row": 212, "column": 25}}, {"id": 689, "type": "pointer_declarator", "text": "*fileName", "parent": 687, "children": [690, 691], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 35}}, {"id": 690, "type": "*", "text": "*", "parent": 689, "children": [], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 27}}, {"id": 691, "type": "identifier", "text": "fileName", "parent": 689, "children": [], "start_point": {"row": 212, "column": 27}, "end_point": {"row": 212, "column": 35}}, {"id": 692, "type": "declaration", "text": "void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);", "parent": 667, "children": [693, 694], "start_point": {"row": 214, "column": 2}, "end_point": {"row": 215, "column": 41}}, {"id": 693, "type": "primitive_type", "text": "void", "parent": 692, "children": [], "start_point": {"row": 214, "column": 2}, "end_point": {"row": 214, "column": 6}}, {"id": 694, "type": "function_declarator", "text": "GeneratePDF (vfsFile *outputFile,\n unsigned int indent)", "parent": 692, "children": [695, 696], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 215, "column": 40}}, {"id": 695, "type": "identifier", "text": "GeneratePDF", "parent": 694, "children": [], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 18}}, {"id": 696, "type": "parameter_list", "text": "(vfsFile *outputFile,\n unsigned int indent)", "parent": 694, "children": [697, 702], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 215, "column": 40}}, {"id": 697, "type": "parameter_declaration", "text": "vfsFile *outputFile", "parent": 696, "children": [698, 699], "start_point": {"row": 214, "column": 20}, "end_point": {"row": 214, "column": 39}}, {"id": 698, "type": "type_identifier", "text": "vfsFile", "parent": 697, "children": [], "start_point": {"row": 214, "column": 20}, "end_point": {"row": 214, "column": 27}}, {"id": 699, "type": "pointer_declarator", "text": "*outputFile", "parent": 697, "children": [700, 701], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 39}}, {"id": 700, "type": "*", "text": "*", "parent": 699, "children": [], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 29}}, {"id": 701, "type": "identifier", "text": "outputFile", "parent": 699, "children": [], "start_point": {"row": 214, "column": 29}, "end_point": {"row": 214, "column": 39}}, {"id": 702, "type": "parameter_declaration", "text": "unsigned int indent", "parent": 696, "children": [703, 706], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 39}}, {"id": 703, "type": "sized_type_specifier", "text": "unsigned int", "parent": 702, "children": [704, 705], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 32}}, {"id": 704, "type": "unsigned", "text": "unsigned", "parent": 703, "children": [], "start_point": {"row": 215, "column": 20}, "end_point": {"row": 215, "column": 28}}, {"id": 705, "type": "primitive_type", "text": "int", "parent": 703, "children": [], "start_point": {"row": 215, "column": 29}, "end_point": {"row": 215, "column": 32}}, {"id": 706, "type": "identifier", "text": "indent", "parent": 702, "children": [], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 39}}, {"id": 707, "type": "labeled_statement", "text": "private:\n vchar *filter;", "parent": 667, "children": [708], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 218, "column": 16}}, {"id": 708, "type": "declaration", "text": "vchar *filter;", "parent": 707, "children": [709, 710], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 16}}, {"id": 709, "type": "type_identifier", "text": "vchar", "parent": 708, "children": [], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 7}}, {"id": 710, "type": "pointer_declarator", "text": "*filter", "parent": 708, "children": [711, 712], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 218, "column": 15}}, {"id": 711, "type": "*", "text": "*", "parent": 710, "children": [], "start_point": {"row": 218, "column": 8}, "end_point": {"row": 218, "column": 9}}, {"id": 712, "type": "identifier", "text": "filter", "parent": 710, "children": [], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 15}}, {"id": 713, "type": "declaration", "text": "vbool wild;", "parent": 667, "children": [714, 715], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 13}}, {"id": 714, "type": "type_identifier", "text": "vbool", "parent": 713, "children": [], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 7}}, {"id": 715, "type": "identifier", "text": "wild", "parent": 713, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 12}}, {"id": 716, "type": "function_definition", "text": "class FilterList\n{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFiltered (vchar *fileName);\n vchar *GetFilter ();\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filterstring;\n vchar *copyFilterstring;\n Filter **filterList;\n unsigned int size;\n}", "parent": 0, "children": [717], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 243, "column": 1}}, {"id": 717, "type": "identifier", "text": "FilterList", "parent": 716, "children": [], "start_point": {"row": 226, "column": 6}, "end_point": {"row": 226, "column": 16}}, {"id": 718, "type": "labeled_statement", "text": "public:\n FilterList (const vchar *filterString);", "parent": 716, "children": [719], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 230, "column": 41}}, {"id": 719, "type": "declaration", "text": "FilterList (const vchar *filterString);", "parent": 718, "children": [720, 728], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 41}}, {"id": 720, "type": "macro_type_specifier", "text": "FilterList (const vchar *filterString)", "parent": 719, "children": [721, 722, 726], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 40}}, {"id": 721, "type": "identifier", "text": "FilterList", "parent": 720, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 12}}, {"id": 722, "type": "type_descriptor", "text": "const vchar *", "parent": 720, "children": [723, 724], "start_point": {"row": 230, "column": 14}, "end_point": {"row": 230, "column": 27}}, {"id": 723, "type": "type_identifier", "text": "vchar", "parent": 722, "children": [], "start_point": {"row": 230, "column": 20}, "end_point": {"row": 230, "column": 25}}, {"id": 724, "type": "abstract_pointer_declarator", "text": "*", "parent": 722, "children": [725], "start_point": {"row": 230, "column": 26}, "end_point": {"row": 230, "column": 27}}, {"id": 725, "type": "*", "text": "*", "parent": 724, "children": [], "start_point": {"row": 230, "column": 26}, "end_point": {"row": 230, "column": 27}}, {"id": 726, "type": "ERROR", "text": "filterString", "parent": 720, "children": [727], "start_point": {"row": 230, "column": 27}, "end_point": {"row": 230, "column": 39}}, {"id": 727, "type": "identifier", "text": "filterString", "parent": 726, "children": [], "start_point": {"row": 230, "column": 27}, "end_point": {"row": 230, "column": 39}}, {"id": 728, "type": "identifier", "text": "", "parent": 719, "children": [], "start_point": {"row": 230, "column": 40}, "end_point": {"row": 230, "column": 40}}, {"id": 729, "type": "unary_expression", "text": "~FilterList ()", "parent": 716, "children": [730, 731], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 16}}, {"id": 730, "type": "~", "text": "~", "parent": 729, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 3}}, {"id": 731, "type": "call_expression", "text": "FilterList ()", "parent": 729, "children": [732, 733], "start_point": {"row": 231, "column": 3}, "end_point": {"row": 231, "column": 16}}, {"id": 732, "type": "identifier", "text": "FilterList", "parent": 731, "children": [], "start_point": {"row": 231, "column": 3}, "end_point": {"row": 231, "column": 13}}, {"id": 733, "type": "argument_list", "text": "()", "parent": 731, "children": [], "start_point": {"row": 231, "column": 14}, "end_point": {"row": 231, "column": 16}}, {"id": 734, "type": "declaration", "text": "vbool IsFiltered (vchar *fileName);", "parent": 716, "children": [735, 736], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 37}}, {"id": 735, "type": "type_identifier", "text": "vbool", "parent": 734, "children": [], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 7}}, {"id": 736, "type": "function_declarator", "text": "IsFiltered (vchar *fileName)", "parent": 734, "children": [737, 738], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 36}}, {"id": 737, "type": "identifier", "text": "IsFiltered", "parent": 736, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 18}}, {"id": 738, "type": "parameter_list", "text": "(vchar *fileName)", "parent": 736, "children": [739], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 36}}, {"id": 739, "type": "parameter_declaration", "text": "vchar *fileName", "parent": 738, "children": [740, 741], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 35}}, {"id": 740, "type": "type_identifier", "text": "vchar", "parent": 739, "children": [], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 25}}, {"id": 741, "type": "pointer_declarator", "text": "*fileName", "parent": 739, "children": [742, 743], "start_point": {"row": 232, "column": 26}, "end_point": {"row": 232, "column": 35}}, {"id": 742, "type": "*", "text": "*", "parent": 741, "children": [], "start_point": {"row": 232, "column": 26}, "end_point": {"row": 232, "column": 27}}, {"id": 743, "type": "identifier", "text": "fileName", "parent": 741, "children": [], "start_point": {"row": 232, "column": 27}, "end_point": {"row": 232, "column": 35}}, {"id": 744, "type": "declaration", "text": "vchar *GetFilter ();", "parent": 716, "children": [745, 746], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 22}}, {"id": 745, "type": "type_identifier", "text": "vchar", "parent": 744, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 7}}, {"id": 746, "type": "pointer_declarator", "text": "*GetFilter ()", "parent": 744, "children": [747, 748], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 21}}, {"id": 747, "type": "*", "text": "*", "parent": 746, "children": [], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 9}}, {"id": 748, "type": "function_declarator", "text": "GetFilter ()", "parent": 746, "children": [749, 750], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 21}}, {"id": 749, "type": "identifier", "text": "GetFilter", "parent": 748, "children": [], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 18}}, {"id": 750, "type": "parameter_list", "text": "()", "parent": 748, "children": [], "start_point": {"row": 233, "column": 19}, "end_point": {"row": 233, "column": 21}}, {"id": 751, "type": "declaration", "text": "void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);", "parent": 716, "children": [752, 753], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 236, "column": 41}}, {"id": 752, "type": "primitive_type", "text": "void", "parent": 751, "children": [], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 6}}, {"id": 753, "type": "function_declarator", "text": "GeneratePDF (vfsFile *outputFile,\n unsigned int indent)", "parent": 751, "children": [754, 755], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 236, "column": 40}}, {"id": 754, "type": "identifier", "text": "GeneratePDF", "parent": 753, "children": [], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 18}}, {"id": 755, "type": "parameter_list", "text": "(vfsFile *outputFile,\n unsigned int indent)", "parent": 753, "children": [756, 761], "start_point": {"row": 235, "column": 19}, "end_point": {"row": 236, "column": 40}}, {"id": 756, "type": "parameter_declaration", "text": "vfsFile *outputFile", "parent": 755, "children": [757, 758], "start_point": {"row": 235, "column": 20}, "end_point": {"row": 235, "column": 39}}, {"id": 757, "type": "type_identifier", "text": "vfsFile", "parent": 756, "children": [], "start_point": {"row": 235, "column": 20}, "end_point": {"row": 235, "column": 27}}, {"id": 758, "type": "pointer_declarator", "text": "*outputFile", "parent": 756, "children": [759, 760], "start_point": {"row": 235, "column": 28}, "end_point": {"row": 235, "column": 39}}, {"id": 759, "type": "*", "text": "*", "parent": 758, "children": [], "start_point": {"row": 235, "column": 28}, "end_point": {"row": 235, "column": 29}}, {"id": 760, "type": "identifier", "text": "outputFile", "parent": 758, "children": [], "start_point": {"row": 235, "column": 29}, "end_point": {"row": 235, "column": 39}}, {"id": 761, "type": "parameter_declaration", "text": "unsigned int indent", "parent": 755, "children": [762, 765], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 39}}, {"id": 762, "type": "sized_type_specifier", "text": "unsigned int", "parent": 761, "children": [763, 764], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 32}}, {"id": 763, "type": "unsigned", "text": "unsigned", "parent": 762, "children": [], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 28}}, {"id": 764, "type": "primitive_type", "text": "int", "parent": 762, "children": [], "start_point": {"row": 236, "column": 29}, "end_point": {"row": 236, "column": 32}}, {"id": 765, "type": "identifier", "text": "indent", "parent": 761, "children": [], "start_point": {"row": 236, "column": 33}, "end_point": {"row": 236, "column": 39}}, {"id": 766, "type": "labeled_statement", "text": "private:\n vchar *filterstring;", "parent": 716, "children": [767], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 239, "column": 22}}, {"id": 767, "type": "declaration", "text": "vchar *filterstring;", "parent": 766, "children": [768, 769], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 22}}, {"id": 768, "type": "type_identifier", "text": "vchar", "parent": 767, "children": [], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 7}}, {"id": 769, "type": "pointer_declarator", "text": "*filterstring", "parent": 767, "children": [770, 771], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 21}}, {"id": 770, "type": "*", "text": "*", "parent": 769, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 9}}, {"id": 771, "type": "identifier", "text": "filterstring", "parent": 769, "children": [], "start_point": {"row": 239, "column": 9}, "end_point": {"row": 239, "column": 21}}, {"id": 772, "type": "declaration", "text": "vchar *copyFilterstring;", "parent": 716, "children": [773, 774], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 26}}, {"id": 773, "type": "type_identifier", "text": "vchar", "parent": 772, "children": [], "start_point": {"row": 240, "column": 2}, "end_point": {"row": 240, "column": 7}}, {"id": 774, "type": "pointer_declarator", "text": "*copyFilterstring", "parent": 772, "children": [775, 776], "start_point": {"row": 240, "column": 8}, "end_point": {"row": 240, "column": 25}}, {"id": 775, "type": "*", "text": "*", "parent": 774, "children": [], "start_point": {"row": 240, "column": 8}, "end_point": {"row": 240, "column": 9}}, {"id": 776, "type": "identifier", "text": "copyFilterstring", "parent": 774, "children": [], "start_point": {"row": 240, "column": 9}, "end_point": {"row": 240, "column": 25}}, {"id": 777, "type": "declaration", "text": "Filter **filterList;", "parent": 716, "children": [778, 779], "start_point": {"row": 241, "column": 2}, "end_point": {"row": 241, "column": 22}}, {"id": 778, "type": "type_identifier", "text": "Filter", "parent": 777, "children": [], "start_point": {"row": 241, "column": 2}, "end_point": {"row": 241, "column": 8}}, {"id": 779, "type": "pointer_declarator", "text": "**filterList", "parent": 777, "children": [780, 781], "start_point": {"row": 241, "column": 9}, "end_point": {"row": 241, "column": 21}}, {"id": 780, "type": "*", "text": "*", "parent": 779, "children": [], "start_point": {"row": 241, "column": 9}, "end_point": {"row": 241, "column": 10}}, {"id": 781, "type": "pointer_declarator", "text": "*filterList", "parent": 779, "children": [782, 783], "start_point": {"row": 241, "column": 10}, "end_point": {"row": 241, "column": 21}}, {"id": 782, "type": "*", "text": "*", "parent": 781, "children": [], "start_point": {"row": 241, "column": 10}, "end_point": {"row": 241, "column": 11}}, {"id": 783, "type": "identifier", "text": "filterList", "parent": 781, "children": [], "start_point": {"row": 241, "column": 11}, "end_point": {"row": 241, "column": 21}}, {"id": 784, "type": "declaration", "text": "unsigned int size;", "parent": 716, "children": [785, 788], "start_point": {"row": 242, "column": 2}, "end_point": {"row": 242, "column": 20}}, {"id": 785, "type": "sized_type_specifier", "text": "unsigned int", "parent": 784, "children": [786, 787], "start_point": {"row": 242, "column": 2}, "end_point": {"row": 242, "column": 14}}, {"id": 786, "type": "unsigned", "text": "unsigned", "parent": 785, "children": [], "start_point": {"row": 242, "column": 2}, "end_point": {"row": 242, "column": 10}}, {"id": 787, "type": "primitive_type", "text": "int", "parent": 785, "children": [], "start_point": {"row": 242, "column": 11}, "end_point": {"row": 242, "column": 14}}, {"id": 788, "type": "identifier", "text": "size", "parent": 784, "children": [], "start_point": {"row": 242, "column": 15}, "end_point": {"row": 242, "column": 19}}, {"id": 789, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 245, "column": 6}}]}, "node_categories": {"declarations": {"functions": [33, 46, 58, 70, 82, 92, 118, 136, 141, 156, 161, 172, 177, 184, 191, 196, 205, 214, 224, 234, 244, 256, 266, 273, 278, 289, 294, 306, 313, 320, 389, 406, 411, 421, 436, 446, 461, 466, 477, 482, 493, 500, 507, 517, 542, 572, 580, 587, 594, 601, 612, 631, 643, 667, 684, 694, 716, 736, 748, 753], "variables": [27, 29, 31, 44, 49, 54, 61, 66, 73, 78, 85, 90, 96, 103, 108, 113, 120, 124, 139, 144, 149, 152, 159, 164, 168, 175, 180, 187, 194, 199, 203, 208, 212, 217, 222, 227, 232, 237, 242, 247, 252, 259, 262, 269, 276, 281, 285, 292, 297, 302, 309, 316, 324, 327, 332, 337, 342, 347, 352, 357, 363, 368, 373, 378, 383, 386, 394, 409, 414, 419, 424, 429, 432, 439, 444, 449, 454, 457, 464, 469, 473, 480, 485, 489, 496, 503, 510, 515, 520, 525, 530, 535, 540, 545, 550, 555, 560, 565, 570, 575, 578, 583, 590, 597, 604, 610, 615, 620, 627, 634, 639, 646, 652, 657, 662, 682, 687, 692, 697, 702, 708, 713, 719, 734, 739, 744, 751, 756, 761, 767, 772, 777, 784], "classes": [], "imports": [9, 10, 16, 17, 23, 24], "modules": [], "enums": []}, "statements": {"expressions": [36, 39, 41, 670, 673, 677, 679, 729, 731], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 12, 13, 14, 15, 18, 19, 20, 21, 22, 25, 26, 28, 30, 32, 34, 37, 42, 47, 50, 53, 55, 59, 62, 65, 67, 71, 74, 77, 79, 83, 86, 89, 93, 97, 102, 104, 107, 109, 112, 114, 117, 119, 121, 122, 125, 126, 128, 132, 134, 137, 140, 142, 145, 148, 151, 153, 157, 162, 165, 169, 173, 178, 181, 185, 188, 192, 197, 200, 206, 209, 215, 218, 221, 225, 228, 231, 235, 238, 241, 245, 248, 251, 253, 257, 261, 263, 267, 270, 274, 279, 282, 286, 290, 295, 298, 301, 303, 307, 310, 314, 317, 319, 321, 325, 326, 328, 331, 333, 336, 338, 341, 343, 346, 348, 351, 353, 356, 358, 361, 364, 367, 369, 372, 374, 377, 379, 382, 385, 388, 390, 392, 395, 396, 398, 402, 404, 407, 412, 415, 418, 420, 422, 425, 428, 431, 433, 437, 440, 443, 447, 450, 453, 456, 458, 462, 467, 470, 474, 478, 483, 486, 490, 494, 497, 501, 504, 508, 511, 514, 518, 521, 524, 526, 529, 531, 534, 536, 539, 543, 546, 549, 551, 554, 556, 559, 561, 564, 566, 569, 573, 576, 577, 581, 584, 586, 588, 591, 595, 598, 602, 605, 608, 613, 616, 619, 621, 626, 628, 632, 635, 638, 640, 644, 647, 650, 653, 656, 658, 661, 663, 666, 668, 671, 674, 676, 680, 683, 685, 688, 691, 695, 698, 701, 703, 706, 709, 712, 714, 715, 717, 720, 721, 723, 727, 728, 732, 735, 737, 740, 743, 745, 749, 754, 757, 760, 762, 765, 768, 771, 773, 776, 778, 783, 785, 788, 789], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 33, "universal_type": "function", "name": "HandleManager", "text_snippet": "class HandleManager\n{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void Unre"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "UnregisterName(const vchar *name)"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "RegisterFile (File *file)"}, {"node_id": 70, "universal_type": "function", "name": "handle)", "text_snippet": "LookupFile (long int handle)"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "LookupFile (const vchar *full_name)"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "Purge ()"}, {"node_id": 118, "universal_type": "function", "name": "File", "text_snippet": "class File \n{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n"}, {"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "File ()"}, {"node_id": 141, "universal_type": "function", "name": "level)", "text_snippet": "Save (vfsFile *vfile, int level)"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "Next ()"}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": "SetDirectory (Directory*)"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "GetDirectory ()"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "IsDirectory ()"}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlobalBeforeFlags ()"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlobalAfterFlags ()"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "SetGlobalBeforeFlags (const vchar*)"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "SetGlobalAfterFlags (const vchar*)"}, {"node_id": 214, "universal_type": "function", "name": "unknown", "text_snippet": "SetCplusExtensions (const vchar* exts)"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "SetCExtensions (const vchar* exts)"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "SetCplusFlags (const vchar* flgs)"}, {"node_id": 244, "universal_type": "function", "name": "unknown", "text_snippet": "SetCFlags (const vchar* flgs)"}, {"node_id": 256, "universal_type": "function", "name": "unknown", "text_snippet": "SetExcludeFlag(int flag)"}, {"node_id": 266, "universal_type": "function", "name": "unknown", "text_snippet": "GetExcludeFlag()"}, {"node_id": 273, "universal_type": "function", "name": "unknown", "text_snippet": "GetFlags ()"}, {"node_id": 278, "universal_type": "function", "name": "unknown", "text_snippet": "SetFlags (const vchar*)"}, {"node_id": 289, "universal_type": "function", "name": "unknown", "text_snippet": "DetermineFlags ()"}, {"node_id": 294, "universal_type": "function", "name": "unknown", "text_snippet": "GenerateRules (vfsFile *outputFile)"}, {"node_id": 306, "universal_type": "function", "name": "unknown", "text_snippet": "Name ()"}, {"node_id": 313, "universal_type": "function", "name": "unknown", "text_snippet": "FullName ()"}, {"node_id": 320, "universal_type": "function", "name": "unknown", "text_snippet": "Print()"}, {"node_id": 389, "universal_type": "function", "name": "Directory", "text_snippet": "class Directory : public File\n{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n "}, {"node_id": 406, "universal_type": "function", "name": "unknown", "text_snippet": "Directory ()"}, {"node_id": 411, "universal_type": "function", "name": "unknown", "text_snippet": "Save (vchar *filename)"}, {"node_id": 421, "universal_type": "function", "name": "level)", "text_snippet": "Save (vfsFile *vfile, int level)"}, {"node_id": 436, "universal_type": "function", "name": "unknown", "text_snippet": "Restore (vchar *filename)"}, {"node_id": 446, "universal_type": "function", "name": "level)", "text_snippet": "Restore (vfsFile *vfile, int level)"}, {"node_id": 461, "universal_type": "function", "name": "unknown", "text_snippet": "GetGlobalFilter ()"}, {"node_id": 466, "universal_type": "function", "name": "unknown", "text_snippet": "SetGlobalFilter (const vchar*)"}, {"node_id": 477, "universal_type": "function", "name": "unknown", "text_snippet": "GetFilter ()"}, {"node_id": 482, "universal_type": "function", "name": "unknown", "text_snippet": "SetFilter (const vchar*)"}, {"node_id": 493, "universal_type": "function", "name": "unknown", "text_snippet": "DetermineFilter ()"}, {"node_id": 500, "universal_type": "function", "name": "unknown", "text_snippet": "DetermineLocalFilter ()"}, {"node_id": 507, "universal_type": "function", "name": "unknown", "text_snippet": "CountPDFfiles(vchar *sourceRoot)"}, {"node_id": 517, "universal_type": "function", "name": "unknown", "text_snippet": "WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vch"}, {"node_id": 542, "universal_type": "function", "name": "level,", "text_snippet": "GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n Filter"}, {"node_id": 572, "universal_type": "function", "name": "unknown", "text_snippet": "ReadDirectory (vbool displayAll)"}, {"node_id": 580, "universal_type": "function", "name": "unknown", "text_snippet": "RemoveFiles ()"}, {"node_id": 587, "universal_type": "function", "name": "unknown", "text_snippet": "Print ()"}, {"node_id": 594, "universal_type": "function", "name": "unknown", "text_snippet": "GetFirstFile()"}, {"node_id": 601, "universal_type": "function", "name": "unknown", "text_snippet": "FindFileFromPath (const vchar* path)"}, {"node_id": 612, "universal_type": "function", "name": "unknown", "text_snippet": "AddFile (vchar *fileName, File **newList)"}, {"node_id": 631, "universal_type": "function", "name": "unknown", "text_snippet": "FindFile (vchar *name)"}, {"node_id": 643, "universal_type": "function", "name": "unknown", "text_snippet": "InsertionSort (File* fileList)"}, {"node_id": 667, "universal_type": "function", "name": "Filter", "text_snippet": "class Filter\n{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName)"}, {"node_id": 684, "universal_type": "function", "name": "unknown", "text_snippet": "IsFiltered (vchar *fileName)"}, {"node_id": 694, "universal_type": "function", "name": "indent)", "text_snippet": "GeneratePDF (vfsFile *outputFile,\n unsigned int indent)"}, {"node_id": 716, "universal_type": "function", "name": "FilterList", "text_snippet": "class FilterList\n{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFi"}, {"node_id": 736, "universal_type": "function", "name": "unknown", "text_snippet": "IsFiltered (vchar *fileName)"}, {"node_id": 748, "universal_type": "function", "name": "unknown", "text_snippet": "GetFilter ()"}, {"node_id": 753, "universal_type": "function", "name": "indent)", "text_snippet": "GeneratePDF (vfsFile *outputFile,\n unsigned int indent)"}], "class_declarations": [], "import_statements": [{"node_id": 9, "text": "#include <vport.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 16, "text": "#include vcharHEADER\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 23, "text": "#include vfsHEADER\n"}, {"node_id": 24, "text": "#include"}]}, "original_source_code": "/*************************************************************************\n* Copyright (c) 2015, Synopsys, Inc. *\n* All rights reserved. *\n* *\n* Redistribution and use in source and binary forms, with or without *\n* modification, are permitted provided that the following conditions are *\n* met: *\n* *\n* 1. Redistributions of source code must retain the above copyright *\n* notice, this list of conditions and the following disclaimer. *\n* *\n* 2. Redistributions in binary form must reproduce the above copyright *\n* notice, this list of conditions and the following disclaimer in the *\n* documentation and/or other materials provided with the distribution. *\n* *\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *\n* \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *\n* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR *\n* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT *\n* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *\n* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *\n* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *\n* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *\n* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *\n* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE *\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *\n*************************************************************************/\n// --------------------------------------------------------------------\n//\n// gpath.h - contains the definitions of the following classes necessary\n// for file and directory browsing :\n//\n// class File\t\t- abstracts a file\n// class Directory\t- abstracts a directory (which is a file)\n// class HandleManager - Manages handles to Files for interation to external systems\n// class FilterList\t- abstracts a list of file filters\n// class Filter- abstracts a single file filter\n//\n// --------------------------------------------------------------------\n\n#ifndef _path_h\n#define _path_h\n\n#ifndef vportINCLUDED\n#include <vport.h>\n#endif\n\n#ifndef vcharINCLUDED\n#include vcharHEADER\n#endif\n\n#ifndef vfsINCLUDED\n#include vfsHEADER\n#endif\n\nclass File;\nclass Directory;\nclass FilterList;\n\n// --------------------------------------------------------------------\n// Class HandleManager - manages handles to files used for integration\n// to external systems.\n// --------------------------------------------------------------------\n\nclass HandleManager\n{\n\n public:\n HandleManager ();\n ~HandleManager ();\n \n void UnregisterName(const vchar *name);\n long int RegisterFile (File *file);\n File *LookupFile (long int handle);\n File *LookupFile (const vchar *full_name);\n void Purge ();\n \n private:\n File ** filelist;\n unsigned int size;\n unsigned int count;\n unsigned int free_entries;\n};\n\n\n// --------------------------------------------------------------------\n// Class File - abstracts a file.\n// --------------------------------------------------------------------\n\nclass File \n{\nfriend class Directory;\n\n public:\n File(const vchar* name);\n virtual ~File ();\n \n vbool Save (vfsFile *vfile, int level);\n \n File* Next ();\n \n void SetDirectory (Directory*);\n Directory* GetDirectory ();\n int IsDirectory ();\n \n static const vchar* GetGlobalBeforeFlags ();\n static const vchar* GetGlobalAfterFlags ();\n static void SetGlobalBeforeFlags (const vchar*);\n static void SetGlobalAfterFlags (const vchar*);\n static void SetCplusExtensions (const vchar* exts);\n static void SetCExtensions (const vchar* exts);\n static void SetCplusFlags (const vchar* flgs);\n static void SetCFlags (const vchar* flgs);\n\n \n const vchar* SetExcludeFlag(int flag);\n const vchar* GetExcludeFlag();\n const vchar* GetFlags ();\n void SetFlags (const vchar*);\n const vchar* DetermineFlags ();\n \n void GenerateRules (vfsFile *outputFile);\t\t \n \n const vchar* Name ();\n const vchar* FullName ();\n \n virtual void Print();\n \n public:\n static HandleManager handleManager;\n static vchar* globalBeforeFlags;\n static vchar* globalAfterFlags;\n static vchar* CplusFlags;\n static vchar* CFlags;\n static vchar* CplusExtensions;\n static vchar* CExtensions;\n long int handle;\n \n protected:\n Directory *directory;\n File *next;\n vchar *fullname;\n vchar *flags;\n int is_dir;\n int excluded;\n};\n\n// --------------------------------------------------------------------\n// Class Directory - abstracts a directory which is a subclass of File.\n// --------------------------------------------------------------------\n\nclass Directory : public File\n{\n\npublic:\n Directory (const vchar* name);\n virtual ~Directory ();\n \n void Save (vchar *filename);\n vbool Save (vfsFile *vfile, int level);\n static File *Restore (vchar *filename);\n void Restore (vfsFile *vfile, int level);\n \n static vchar* GetGlobalFilter ();\n static void SetGlobalFilter (const vchar*);\n vchar* GetFilter ();\n void SetFilter (const vchar*);\n vchar* DetermineFilter ();\n FilterList* DetermineLocalFilter ();\n\n unsigned int CountPDFfiles(vchar *sourceRoot);\n\n void WritePDFFile (vchar *outputFile, \n vchar *projectName, \n vchar *sourceRoot, \n vchar *modelRoot);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int level,\n FilterList *filters,\n vchar * physicalPath,\n vchar * logicalPath);\n\n void ReadDirectory (vbool displayAll);\n void RemoveFiles ();\n virtual void Print ();\n \n File *GetFirstFile();\n\n File* FindFileFromPath (const vchar* path);\n\nprivate:\n int AddFile (vchar *fileName, File **newList);\n File* FindFile (vchar *name);\n File* InsertionSort (File* fileList);\n\nprivate:\n File* first;\n FilterList *filterList;\n static FilterList *globalFilterList;\n};\n\n// --------------------------------------------------------------------\n// Class Filter - abstracts a single File Filter.\n// --------------------------------------------------------------------\n\nclass Filter\n{\n\npublic:\n Filter (vchar *filter);\n ~Filter ();\n vbool IsFiltered (vchar *fileName);\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filter;\n vbool wild;\n};\n\n// --------------------------------------------------------------------\n// Class FilterList - abstracts a list of File Filters.\n// --------------------------------------------------------------------\n\nclass FilterList\n{\n\npublic:\n FilterList (const vchar *filterString);\n ~FilterList ();\n vbool IsFiltered (vchar *fileName);\n vchar *GetFilter ();\n\n void GeneratePDF (vfsFile *outputFile,\n unsigned int indent);\n\nprivate:\n vchar *filterstring;\n vchar *copyFilterstring;\n Filter **filterList;\n unsigned int size;\n};\n\n#endif\n\n\n\n"}
80,494
c
/* * Assignment: Programming Assignment 5(pa5) * Programmer: <NAME> * CruzId: tfu6 * Student id: 1600058 */ #ifndef GRAPH_H_INCLUDED #define GRAPH_H_INCLUDED #define NIL 0 #define UNDEF -1 #include"List.h" //*** Constructors-Destructors ***/ typedef struct GraphObj* Graph; Graph newGraph(int n); void freeGraph(Graph* pG); /* Access functions */ int getOrder(Graph G); int getSize(Graph G); int getParent(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */ int getDiscover(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */ int getFinish(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */ /* Manipulation procedures */ void makeNull(Graph G); void addArc(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */ void addEdge(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */ void DFS(Graph G, List S); /* Pre: length(S)==getOrder(G) */ void Visit(Graph G, List S, int x, int* time); /* Other Functions */ Graph transpose(Graph G); Graph copyGraph(Graph G); void printGraph(FILE* out , Graph G); #endif // GRAPH_H_INCLUDED
30.72
32
(translation_unit) "/*\n * Assignment: Programming Assignment 5(pa5)\n * Programmer: <NAME>\n * CruzId: tfu6\n * Student id: 1600058\n */\n#ifndef GRAPH_H_INCLUDED\n#define GRAPH_H_INCLUDED\n#define NIL 0\n#define UNDEF -1\n#include"List.h"\n\n//*** Constructors-Destructors ***/\ntypedef struct GraphObj* Graph;\nGraph newGraph(int n);\nvoid freeGraph(Graph* pG);\n\n/* Access functions */\nint getOrder(Graph G);\nint getSize(Graph G);\nint getParent(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getDiscover(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getFinish(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\n\n/* Manipulation procedures */\nvoid makeNull(Graph G);\nvoid addArc(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid addEdge(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid DFS(Graph G, List S); /* Pre: length(S)==getOrder(G) */\nvoid Visit(Graph G, List S, int x, int* time);\n\n/* Other Functions */\nGraph transpose(Graph G);\nGraph copyGraph(Graph G);\nvoid printGraph(FILE* out , Graph G);\n\n#endif // GRAPH_H_INCLUDED\n" (comment) "/*\n * Assignment: Programming Assignment 5(pa5)\n * Programmer: <NAME>\n * CruzId: tfu6\n * Student id: 1600058\n */" (preproc_ifdef) "#ifndef GRAPH_H_INCLUDED\n#define GRAPH_H_INCLUDED\n#define NIL 0\n#define UNDEF -1\n#include"List.h"\n\n//*** Constructors-Destructors ***/\ntypedef struct GraphObj* Graph;\nGraph newGraph(int n);\nvoid freeGraph(Graph* pG);\n\n/* Access functions */\nint getOrder(Graph G);\nint getSize(Graph G);\nint getParent(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getDiscover(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getFinish(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\n\n/* Manipulation procedures */\nvoid makeNull(Graph G);\nvoid addArc(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid addEdge(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid DFS(Graph G, List S); /* Pre: length(S)==getOrder(G) */\nvoid Visit(Graph G, List S, int x, int* time);\n\n/* Other Functions */\nGraph transpose(Graph G);\nGraph copyGraph(Graph G);\nvoid printGraph(FILE* out , Graph G);\n\n#endif" (#ifndef) "#ifndef" (identifier) "GRAPH_H_INCLUDED" (preproc_def) "#define GRAPH_H_INCLUDED\n" (#define) "#define" (identifier) "GRAPH_H_INCLUDED" (preproc_def) "#define NIL 0\n" (#define) "#define" (identifier) "NIL" (preproc_arg) "0" (preproc_def) "#define UNDEF -1\n" (#define) "#define" (identifier) "UNDEF" (preproc_arg) "-1" (preproc_include) "#include"List.h"\n" (#include) "#include" (string_literal) ""List.h"" (") """ (string_content) "List.h" (") """ (comment) "//*** Constructors-Destructors ***/" (type_definition) "typedef struct GraphObj* Graph;" (typedef) "typedef" (struct_specifier) "struct GraphObj" (struct) "struct" (type_identifier) "GraphObj" (pointer_declarator) "* Graph" (*) "*" (type_identifier) "Graph" (;) ";" (declaration) "Graph newGraph(int n);" (type_identifier) "Graph" (function_declarator) "newGraph(int n)" (identifier) "newGraph" (parameter_list) "(int n)" (() "(" (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" ()) ")" (;) ";" (declaration) "void freeGraph(Graph* pG);" (primitive_type) "void" (function_declarator) "freeGraph(Graph* pG)" (identifier) "freeGraph" (parameter_list) "(Graph* pG)" (() "(" (parameter_declaration) "Graph* pG" (type_identifier) "Graph" (pointer_declarator) "* pG" (*) "*" (identifier) "pG" ()) ")" (;) ";" (comment) "/* Access functions */" (declaration) "int getOrder(Graph G);" (primitive_type) "int" (function_declarator) "getOrder(Graph G)" (identifier) "getOrder" (parameter_list) "(Graph G)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" ()) ")" (;) ";" (declaration) "int getSize(Graph G);" (primitive_type) "int" (function_declarator) "getSize(Graph G)" (identifier) "getSize" (parameter_list) "(Graph G)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" ()) ")" (;) ";" (declaration) "int getParent(Graph G, int u);" (primitive_type) "int" (function_declarator) "getParent(Graph G, int u)" (identifier) "getParent" (parameter_list) "(Graph G, int u)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" (,) "," (parameter_declaration) "int u" (primitive_type) "int" (identifier) "u" ()) ")" (;) ";" (comment) "/* Pre: 1<=u<=n=getOrder(G) */" (declaration) "int getDiscover(Graph G, int u);" (primitive_type) "int" (function_declarator) "getDiscover(Graph G, int u)" (identifier) "getDiscover" (parameter_list) "(Graph G, int u)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" (,) "," (parameter_declaration) "int u" (primitive_type) "int" (identifier) "u" ()) ")" (;) ";" (comment) "/* Pre: 1<=u<=n=getOrder(G) */" (declaration) "int getFinish(Graph G, int u);" (primitive_type) "int" (function_declarator) "getFinish(Graph G, int u)" (identifier) "getFinish" (parameter_list) "(Graph G, int u)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" (,) "," (parameter_declaration) "int u" (primitive_type) "int" (identifier) "u" ()) ")" (;) ";" (comment) "/* Pre: 1<=u<=n=getOrder(G) */" (comment) "/* Manipulation procedures */" (declaration) "void makeNull(Graph G);" (primitive_type) "void" (function_declarator) "makeNull(Graph G)" (identifier) "makeNull" (parameter_list) "(Graph G)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" ()) ")" (;) ";" (declaration) "void addArc(Graph G, int u, int v);" (primitive_type) "void" (function_declarator) "addArc(Graph G, int u, int v)" (identifier) "addArc" (parameter_list) "(Graph G, int u, int v)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" (,) "," (parameter_declaration) "int u" (primitive_type) "int" (identifier) "u" (,) "," (parameter_declaration) "int v" (primitive_type) "int" (identifier) "v" ()) ")" (;) ";" (comment) "/* Pre: 1<=u<=n, 1<=v<=n */" (declaration) "void addEdge(Graph G, int u, int v);" (primitive_type) "void" (function_declarator) "addEdge(Graph G, int u, int v)" (identifier) "addEdge" (parameter_list) "(Graph G, int u, int v)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" (,) "," (parameter_declaration) "int u" (primitive_type) "int" (identifier) "u" (,) "," (parameter_declaration) "int v" (primitive_type) "int" (identifier) "v" ()) ")" (;) ";" (comment) "/* Pre: 1<=u<=n, 1<=v<=n */" (declaration) "void DFS(Graph G, List S);" (primitive_type) "void" (function_declarator) "DFS(Graph G, List S)" (identifier) "DFS" (parameter_list) "(Graph G, List S)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" (,) "," (parameter_declaration) "List S" (type_identifier) "List" (identifier) "S" ()) ")" (;) ";" (comment) "/* Pre: length(S)==getOrder(G) */" (declaration) "void Visit(Graph G, List S, int x, int* time);" (primitive_type) "void" (function_declarator) "Visit(Graph G, List S, int x, int* time)" (identifier) "Visit" (parameter_list) "(Graph G, List S, int x, int* time)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" (,) "," (parameter_declaration) "List S" (type_identifier) "List" (identifier) "S" (,) "," (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" (,) "," (parameter_declaration) "int* time" (primitive_type) "int" (pointer_declarator) "* time" (*) "*" (identifier) "time" ()) ")" (;) ";" (comment) "/* Other Functions */" (declaration) "Graph transpose(Graph G);" (type_identifier) "Graph" (function_declarator) "transpose(Graph G)" (identifier) "transpose" (parameter_list) "(Graph G)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" ()) ")" (;) ";" (declaration) "Graph copyGraph(Graph G);" (type_identifier) "Graph" (function_declarator) "copyGraph(Graph G)" (identifier) "copyGraph" (parameter_list) "(Graph G)" (() "(" (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" ()) ")" (;) ";" (declaration) "void printGraph(FILE* out , Graph G);" (primitive_type) "void" (function_declarator) "printGraph(FILE* out , Graph G)" (identifier) "printGraph" (parameter_list) "(FILE* out , Graph G)" (() "(" (parameter_declaration) "FILE* out" (type_identifier) "FILE" (pointer_declarator) "* out" (*) "*" (identifier) "out" (,) "," (parameter_declaration) "Graph G" (type_identifier) "Graph" (identifier) "G" ()) ")" (;) ";" (#endif) "#endif" (comment) "// GRAPH_H_INCLUDED"
262
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 30.72, "nodes": 188, "errors": 0, "source_hash": "1efe628b0228a8aaf6bb1db1fdac0c6af1f5de964888a4ce75486e430295f23d", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GRAPH_H_INCLUDED\n#define GRAPH_H_INCLUDED\n#define NIL 0\n#define UNDEF -1\n#include\"List.h\"\n\n//*** Constructors-Destructors ***/\ntypedef struct GraphObj* Graph;\nGraph newGraph(int n);\nvoid freeGraph(Graph* pG);\n\n/* Access functions */\nint getOrder(Graph G);\nint getSize(Graph G);\nint getParent(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getDiscover(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getFinish(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\n\n/* Manipulation procedures */\nvoid makeNull(Graph G);\nvoid addArc(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid addEdge(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid DFS(Graph G, List S); /* Pre: length(S)==getOrder(G) */\nvoid Visit(Graph G, List S, int x, int* time);\n\n/* Other Functions */\nGraph transpose(Graph G);\nGraph copyGraph(Graph G);\nvoid printGraph(FILE* out , Graph G);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 17, 25, 33, 43, 51, 59, 70, 81, 92, 100, 114, 128, 139, 158, 166, 174, 187], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 36, "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": "GRAPH_H_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define GRAPH_H_INCLUDED\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": "GRAPH_H_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 24}}, {"id": 6, "type": "preproc_def", "text": "#define NIL 0\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 8, "type": "identifier", "text": "NIL", "parent": 6, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 9, "type": "preproc_arg", "text": "0", "parent": 6, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 13}}, {"id": 10, "type": "preproc_def", "text": "#define UNDEF -1\n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 12, "type": "identifier", "text": "UNDEF", "parent": 10, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 13}}, {"id": 13, "type": "preproc_arg", "text": "-1", "parent": 10, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 16}}, {"id": 14, "type": "preproc_include", "text": "#include\"List.h\"\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": "string_literal", "text": "\"List.h\"", "parent": 14, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 16}}, {"id": 17, "type": "type_definition", "text": "typedef struct GraphObj* Graph;", "parent": 0, "children": [18, 19, 22], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 31}}, {"id": 18, "type": "typedef", "text": "typedef", "parent": 17, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 19, "type": "struct_specifier", "text": "struct GraphObj", "parent": 17, "children": [20, 21], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 23}}, {"id": 20, "type": "struct", "text": "struct", "parent": 19, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 14}}, {"id": 21, "type": "type_identifier", "text": "GraphObj", "parent": 19, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 23}}, {"id": 22, "type": "pointer_declarator", "text": "* Graph", "parent": 17, "children": [23, 24], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 30}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 24}}, {"id": 24, "type": "type_identifier", "text": "Graph", "parent": 22, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 30}}, {"id": 25, "type": "declaration", "text": "Graph newGraph(int n);", "parent": 0, "children": [26, 27], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 22}}, {"id": 26, "type": "type_identifier", "text": "Graph", "parent": 25, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 5}}, {"id": 27, "type": "function_declarator", "text": "newGraph(int n)", "parent": 25, "children": [28, 29], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 21}}, {"id": 28, "type": "identifier", "text": "newGraph", "parent": 27, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 14}}, {"id": 29, "type": "parameter_list", "text": "(int n)", "parent": 27, "children": [30], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 21}}, {"id": 30, "type": "parameter_declaration", "text": "int n", "parent": 29, "children": [31, 32], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 20}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 18}}, {"id": 32, "type": "identifier", "text": "n", "parent": 30, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 20}}, {"id": 33, "type": "declaration", "text": "void freeGraph(Graph* pG);", "parent": 0, "children": [34, 35], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 26}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 35, "type": "function_declarator", "text": "freeGraph(Graph* pG)", "parent": 33, "children": [36, 37], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 25}}, {"id": 36, "type": "identifier", "text": "freeGraph", "parent": 35, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 14}}, {"id": 37, "type": "parameter_list", "text": "(Graph* pG)", "parent": 35, "children": [38], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 25}}, {"id": 38, "type": "parameter_declaration", "text": "Graph* pG", "parent": 37, "children": [39, 40], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 24}}, {"id": 39, "type": "type_identifier", "text": "Graph", "parent": 38, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 20}}, {"id": 40, "type": "pointer_declarator", "text": "* pG", "parent": 38, "children": [41, 42], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 24}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 21}}, {"id": 42, "type": "identifier", "text": "pG", "parent": 40, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 24}}, {"id": 43, "type": "declaration", "text": "int getOrder(Graph G);", "parent": 0, "children": [44, 45], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 22}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 3}}, {"id": 45, "type": "function_declarator", "text": "getOrder(Graph G)", "parent": 43, "children": [46, 47], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 21}}, {"id": 46, "type": "identifier", "text": "getOrder", "parent": 45, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 47, "type": "parameter_list", "text": "(Graph G)", "parent": 45, "children": [48], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 21}}, {"id": 48, "type": "parameter_declaration", "text": "Graph G", "parent": 47, "children": [49, 50], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 20}}, {"id": 49, "type": "type_identifier", "text": "Graph", "parent": 48, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 18}}, {"id": 50, "type": "identifier", "text": "G", "parent": 48, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 51, "type": "declaration", "text": "int getSize(Graph G);", "parent": 0, "children": [52, 53], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 21}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 53, "type": "function_declarator", "text": "getSize(Graph G)", "parent": 51, "children": [54, 55], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 20}}, {"id": 54, "type": "identifier", "text": "getSize", "parent": 53, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 11}}, {"id": 55, "type": "parameter_list", "text": "(Graph G)", "parent": 53, "children": [56], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 20}}, {"id": 56, "type": "parameter_declaration", "text": "Graph G", "parent": 55, "children": [57, 58], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 19}}, {"id": 57, "type": "type_identifier", "text": "Graph", "parent": 56, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 17}}, {"id": 58, "type": "identifier", "text": "G", "parent": 56, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 19}}, {"id": 59, "type": "declaration", "text": "int getParent(Graph G, int u);", "parent": 0, "children": [60, 61], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 30}}, {"id": 60, "type": "primitive_type", "text": "int", "parent": 59, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 3}}, {"id": 61, "type": "function_declarator", "text": "getParent(Graph G, int u)", "parent": 59, "children": [62, 63], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 29}}, {"id": 62, "type": "identifier", "text": "getParent", "parent": 61, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 13}}, {"id": 63, "type": "parameter_list", "text": "(Graph G, int u)", "parent": 61, "children": [64, 67], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 29}}, {"id": 64, "type": "parameter_declaration", "text": "Graph G", "parent": 63, "children": [65, 66], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 21}}, {"id": 65, "type": "type_identifier", "text": "Graph", "parent": 64, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 19}}, {"id": 66, "type": "identifier", "text": "G", "parent": 64, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 21}}, {"id": 67, "type": "parameter_declaration", "text": "int u", "parent": 63, "children": [68, 69], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 28}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 26}}, {"id": 69, "type": "identifier", "text": "u", "parent": 67, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 28}}, {"id": 70, "type": "declaration", "text": "int getDiscover(Graph G, int u);", "parent": 0, "children": [71, 72], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 32}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 70, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 72, "type": "function_declarator", "text": "getDiscover(Graph G, int u)", "parent": 70, "children": [73, 74], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 31}}, {"id": 73, "type": "identifier", "text": "getDiscover", "parent": 72, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 15}}, {"id": 74, "type": "parameter_list", "text": "(Graph G, int u)", "parent": 72, "children": [75, 78], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 31}}, {"id": 75, "type": "parameter_declaration", "text": "Graph G", "parent": 74, "children": [76, 77], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 23}}, {"id": 76, "type": "type_identifier", "text": "Graph", "parent": 75, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 21}}, {"id": 77, "type": "identifier", "text": "G", "parent": 75, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 78, "type": "parameter_declaration", "text": "int u", "parent": 74, "children": [79, 80], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 30}}, {"id": 79, "type": "primitive_type", "text": "int", "parent": 78, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 28}}, {"id": 80, "type": "identifier", "text": "u", "parent": 78, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 30}}, {"id": 81, "type": "declaration", "text": "int getFinish(Graph G, int u);", "parent": 0, "children": [82, 83], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 30}}, {"id": 82, "type": "primitive_type", "text": "int", "parent": 81, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 3}}, {"id": 83, "type": "function_declarator", "text": "getFinish(Graph G, int u)", "parent": 81, "children": [84, 85], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 29}}, {"id": 84, "type": "identifier", "text": "getFinish", "parent": 83, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 13}}, {"id": 85, "type": "parameter_list", "text": "(Graph G, int u)", "parent": 83, "children": [86, 89], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 29}}, {"id": 86, "type": "parameter_declaration", "text": "Graph G", "parent": 85, "children": [87, 88], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 21}}, {"id": 87, "type": "type_identifier", "text": "Graph", "parent": 86, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 19}}, {"id": 88, "type": "identifier", "text": "G", "parent": 86, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 89, "type": "parameter_declaration", "text": "int u", "parent": 85, "children": [90, 91], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 28}}, {"id": 90, "type": "primitive_type", "text": "int", "parent": 89, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 26}}, {"id": 91, "type": "identifier", "text": "u", "parent": 89, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 28}}, {"id": 92, "type": "declaration", "text": "void makeNull(Graph G);", "parent": 0, "children": [93, 94], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 23}}, {"id": 93, "type": "primitive_type", "text": "void", "parent": 92, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 94, "type": "function_declarator", "text": "makeNull(Graph G)", "parent": 92, "children": [95, 96], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 22}}, {"id": 95, "type": "identifier", "text": "makeNull", "parent": 94, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 13}}, {"id": 96, "type": "parameter_list", "text": "(Graph G)", "parent": 94, "children": [97], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 22}}, {"id": 97, "type": "parameter_declaration", "text": "Graph G", "parent": 96, "children": [98, 99], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 21}}, {"id": 98, "type": "type_identifier", "text": "Graph", "parent": 97, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 19}}, {"id": 99, "type": "identifier", "text": "G", "parent": 97, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 21}}, {"id": 100, "type": "declaration", "text": "void addArc(Graph G, int u, int v);", "parent": 0, "children": [101, 102], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 35}}, {"id": 101, "type": "primitive_type", "text": "void", "parent": 100, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 102, "type": "function_declarator", "text": "addArc(Graph G, int u, int v)", "parent": 100, "children": [103, 104], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 34}}, {"id": 103, "type": "identifier", "text": "addArc", "parent": 102, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 11}}, {"id": 104, "type": "parameter_list", "text": "(Graph G, int u, int v)", "parent": 102, "children": [105, 108, 111], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 34}}, {"id": 105, "type": "parameter_declaration", "text": "Graph G", "parent": 104, "children": [106, 107], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 19}}, {"id": 106, "type": "type_identifier", "text": "Graph", "parent": 105, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 17}}, {"id": 107, "type": "identifier", "text": "G", "parent": 105, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 19}}, {"id": 108, "type": "parameter_declaration", "text": "int u", "parent": 104, "children": [109, 110], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 26}}, {"id": 109, "type": "primitive_type", "text": "int", "parent": 108, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 24}}, {"id": 110, "type": "identifier", "text": "u", "parent": 108, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 26}}, {"id": 111, "type": "parameter_declaration", "text": "int v", "parent": 104, "children": [112, 113], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 33}}, {"id": 112, "type": "primitive_type", "text": "int", "parent": 111, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 31}}, {"id": 113, "type": "identifier", "text": "v", "parent": 111, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 33}}, {"id": 114, "type": "declaration", "text": "void addEdge(Graph G, int u, int v);", "parent": 0, "children": [115, 116], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 36}}, {"id": 115, "type": "primitive_type", "text": "void", "parent": 114, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 116, "type": "function_declarator", "text": "addEdge(Graph G, int u, int v)", "parent": 114, "children": [117, 118], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 35}}, {"id": 117, "type": "identifier", "text": "addEdge", "parent": 116, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 12}}, {"id": 118, "type": "parameter_list", "text": "(Graph G, int u, int v)", "parent": 116, "children": [119, 122, 125], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 35}}, {"id": 119, "type": "parameter_declaration", "text": "Graph G", "parent": 118, "children": [120, 121], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 20}}, {"id": 120, "type": "type_identifier", "text": "Graph", "parent": 119, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 18}}, {"id": 121, "type": "identifier", "text": "G", "parent": 119, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 122, "type": "parameter_declaration", "text": "int u", "parent": 118, "children": [123, 124], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 27}}, {"id": 123, "type": "primitive_type", "text": "int", "parent": 122, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 25}}, {"id": 124, "type": "identifier", "text": "u", "parent": 122, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 125, "type": "parameter_declaration", "text": "int v", "parent": 118, "children": [126, 127], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 34}}, {"id": 126, "type": "primitive_type", "text": "int", "parent": 125, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 32}}, {"id": 127, "type": "identifier", "text": "v", "parent": 125, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 34}}, {"id": 128, "type": "declaration", "text": "void DFS(Graph G, List S);", "parent": 0, "children": [129, 130], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 26}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 4}}, {"id": 130, "type": "function_declarator", "text": "DFS(Graph G, List S)", "parent": 128, "children": [131, 132], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 25}}, {"id": 131, "type": "identifier", "text": "DFS", "parent": 130, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 8}}, {"id": 132, "type": "parameter_list", "text": "(Graph G, List S)", "parent": 130, "children": [133, 136], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 25}}, {"id": 133, "type": "parameter_declaration", "text": "Graph G", "parent": 132, "children": [134, 135], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 16}}, {"id": 134, "type": "type_identifier", "text": "Graph", "parent": 133, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 14}}, {"id": 135, "type": "identifier", "text": "G", "parent": 133, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 136, "type": "parameter_declaration", "text": "List S", "parent": 132, "children": [137, 138], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 24}}, {"id": 137, "type": "type_identifier", "text": "List", "parent": 136, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 22}}, {"id": 138, "type": "identifier", "text": "S", "parent": 136, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 139, "type": "declaration", "text": "void Visit(Graph G, List S, int x, int* time);", "parent": 0, "children": [140, 141], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 46}}, {"id": 140, "type": "primitive_type", "text": "void", "parent": 139, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 141, "type": "function_declarator", "text": "Visit(Graph G, List S, int x, int* time)", "parent": 139, "children": [142, 143], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 45}}, {"id": 142, "type": "identifier", "text": "Visit", "parent": 141, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 10}}, {"id": 143, "type": "parameter_list", "text": "(Graph G, List S, int x, int* time)", "parent": 141, "children": [144, 147, 150, 153], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 45}}, {"id": 144, "type": "parameter_declaration", "text": "Graph G", "parent": 143, "children": [145, 146], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 18}}, {"id": 145, "type": "type_identifier", "text": "Graph", "parent": 144, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 16}}, {"id": 146, "type": "identifier", "text": "G", "parent": 144, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 147, "type": "parameter_declaration", "text": "List S", "parent": 143, "children": [148, 149], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 26}}, {"id": 148, "type": "type_identifier", "text": "List", "parent": 147, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 24}}, {"id": 149, "type": "identifier", "text": "S", "parent": 147, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 26}}, {"id": 150, "type": "parameter_declaration", "text": "int x", "parent": 143, "children": [151, 152], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 33}}, {"id": 151, "type": "primitive_type", "text": "int", "parent": 150, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 31}}, {"id": 152, "type": "identifier", "text": "x", "parent": 150, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 33}}, {"id": 153, "type": "parameter_declaration", "text": "int* time", "parent": 143, "children": [154, 155], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 44}}, {"id": 154, "type": "primitive_type", "text": "int", "parent": 153, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 38}}, {"id": 155, "type": "pointer_declarator", "text": "* time", "parent": 153, "children": [156, 157], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 44}}, {"id": 156, "type": "*", "text": "*", "parent": 155, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 39}}, {"id": 157, "type": "identifier", "text": "time", "parent": 155, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 44}}, {"id": 158, "type": "declaration", "text": "Graph transpose(Graph G);", "parent": 0, "children": [159, 160], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 25}}, {"id": 159, "type": "type_identifier", "text": "Graph", "parent": 158, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 5}}, {"id": 160, "type": "function_declarator", "text": "transpose(Graph G)", "parent": 158, "children": [161, 162], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 24}}, {"id": 161, "type": "identifier", "text": "transpose", "parent": 160, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 15}}, {"id": 162, "type": "parameter_list", "text": "(Graph G)", "parent": 160, "children": [163], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 24}}, {"id": 163, "type": "parameter_declaration", "text": "Graph G", "parent": 162, "children": [164, 165], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 23}}, {"id": 164, "type": "type_identifier", "text": "Graph", "parent": 163, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 21}}, {"id": 165, "type": "identifier", "text": "G", "parent": 163, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 23}}, {"id": 166, "type": "declaration", "text": "Graph copyGraph(Graph G);", "parent": 0, "children": [167, 168], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 25}}, {"id": 167, "type": "type_identifier", "text": "Graph", "parent": 166, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 5}}, {"id": 168, "type": "function_declarator", "text": "copyGraph(Graph G)", "parent": 166, "children": [169, 170], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 24}}, {"id": 169, "type": "identifier", "text": "copyGraph", "parent": 168, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 15}}, {"id": 170, "type": "parameter_list", "text": "(Graph G)", "parent": 168, "children": [171], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 24}}, {"id": 171, "type": "parameter_declaration", "text": "Graph G", "parent": 170, "children": [172, 173], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 23}}, {"id": 172, "type": "type_identifier", "text": "Graph", "parent": 171, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 21}}, {"id": 173, "type": "identifier", "text": "G", "parent": 171, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 23}}, {"id": 174, "type": "declaration", "text": "void printGraph(FILE* out , Graph G);", "parent": 0, "children": [175, 176], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 37}}, {"id": 175, "type": "primitive_type", "text": "void", "parent": 174, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 4}}, {"id": 176, "type": "function_declarator", "text": "printGraph(FILE* out , Graph G)", "parent": 174, "children": [177, 178], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 36}}, {"id": 177, "type": "identifier", "text": "printGraph", "parent": 176, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 15}}, {"id": 178, "type": "parameter_list", "text": "(FILE* out , Graph G)", "parent": 176, "children": [179, 184], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 36}}, {"id": 179, "type": "parameter_declaration", "text": "FILE* out", "parent": 178, "children": [180, 181], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 25}}, {"id": 180, "type": "type_identifier", "text": "FILE", "parent": 179, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 20}}, {"id": 181, "type": "pointer_declarator", "text": "* out", "parent": 179, "children": [182, 183], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 25}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 183, "type": "identifier", "text": "out", "parent": 181, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 25}}, {"id": 184, "type": "parameter_declaration", "text": "Graph G", "parent": 178, "children": [185, 186], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 35}}, {"id": 185, "type": "type_identifier", "text": "Graph", "parent": 184, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 33}}, {"id": 186, "type": "identifier", "text": "G", "parent": 184, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 35}}, {"id": 187, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}]}, "node_categories": {"declarations": {"functions": [27, 35, 45, 53, 61, 72, 83, 94, 102, 116, 130, 141, 160, 168, 176], "variables": [17, 25, 30, 33, 38, 43, 48, 51, 56, 59, 64, 67, 70, 75, 78, 81, 86, 89, 92, 97, 100, 105, 108, 111, 114, 119, 122, 125, 128, 133, 136, 139, 144, 147, 150, 153, 158, 163, 166, 171, 174, 179, 184], "classes": [19, 20], "imports": [14, 15], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 21, 24, 26, 28, 32, 36, 39, 42, 46, 49, 50, 54, 57, 58, 62, 65, 66, 69, 73, 76, 77, 80, 84, 87, 88, 91, 95, 98, 99, 103, 106, 107, 110, 113, 117, 120, 121, 124, 127, 131, 134, 135, 137, 138, 142, 145, 146, 148, 149, 152, 157, 159, 161, 164, 165, 167, 169, 172, 173, 177, 180, 183, 185, 186, 187], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [16], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "newGraph(int n)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "freeGraph(Graph* pG)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "getOrder(Graph G)"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "getSize(Graph G)"}, {"node_id": 61, "universal_type": "function", "name": "u)", "text_snippet": "getParent(Graph G, int u)"}, {"node_id": 72, "universal_type": "function", "name": "u)", "text_snippet": "getDiscover(Graph G, int u)"}, {"node_id": 83, "universal_type": "function", "name": "u)", "text_snippet": "getFinish(Graph G, int u)"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "makeNull(Graph G)"}, {"node_id": 102, "universal_type": "function", "name": "u,", "text_snippet": "addArc(Graph G, int u, int v)"}, {"node_id": 116, "universal_type": "function", "name": "u,", "text_snippet": "addEdge(Graph G, int u, int v)"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "DFS(Graph G, List S)"}, {"node_id": 141, "universal_type": "function", "name": "x,", "text_snippet": "Visit(Graph G, List S, int x, int* time)"}, {"node_id": 160, "universal_type": "function", "name": "unknown", "text_snippet": "transpose(Graph G)"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "copyGraph(Graph G)"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "printGraph(FILE* out , Graph G)"}], "class_declarations": [{"node_id": 19, "universal_type": "class", "name": "GraphObj", "text_snippet": "struct GraphObj"}, {"node_id": 20, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 14, "text": "#include\"List.h\"\n"}, {"node_id": 15, "text": "#include"}]}, "original_source_code": "/*\n * Assignment: Programming Assignment 5(pa5)\n * Programmer: <NAME>\n * CruzId: tfu6\n * Student id: 1600058\n */\n#ifndef GRAPH_H_INCLUDED\n#define GRAPH_H_INCLUDED\n#define NIL 0\n#define UNDEF -1\n#include\"List.h\"\n\n//*** Constructors-Destructors ***/\ntypedef struct GraphObj* Graph;\nGraph newGraph(int n);\nvoid freeGraph(Graph* pG);\n\n/* Access functions */\nint getOrder(Graph G);\nint getSize(Graph G);\nint getParent(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getDiscover(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\nint getFinish(Graph G, int u); /* Pre: 1<=u<=n=getOrder(G) */\n\n/* Manipulation procedures */\nvoid makeNull(Graph G);\nvoid addArc(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid addEdge(Graph G, int u, int v); /* Pre: 1<=u<=n, 1<=v<=n */\nvoid DFS(Graph G, List S); /* Pre: length(S)==getOrder(G) */\nvoid Visit(Graph G, List S, int x, int* time);\n\n/* Other Functions */\nGraph transpose(Graph G);\nGraph copyGraph(Graph G);\nvoid printGraph(FILE* out , Graph G);\n\n#endif // GRAPH_H_INCLUDED\n"}
80,495
c
/* * Copyright (c) 2014 <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 DECOF_CLIENT_WRITE_INTERFACE_H #define DECOF_CLIENT_WRITE_INTERFACE_H #include "types.h" namespace decof { /** @brief Interface for client write access to parameter values. * * Since this interface's only purpose is to be used by an object of type * #client_context, the latter is declared as friend and all members are * private. */ class client_write_interface { friend class basic_client_context; public: virtual ~client_write_interface() = default; private: /// @brief Generic parameter value setter. virtual void generic_value(const value_t& value) = 0; }; } // namespace decof #endif // DECOF_CLIENT_WRITE_INTERFACE_H
34.71
35
(translation_unit) "/*\n * Copyright (c) 2014 <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#ifndef DECOF_CLIENT_WRITE_INTERFACE_H\n#define DECOF_CLIENT_WRITE_INTERFACE_H\n\n#include "types.h"\n\nnamespace decof {\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */\nclass client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n};\n\n} // namespace decof\n\n#endif // DECOF_CLIENT_WRITE_INTERFACE_H\n" (comment) "/*\n * Copyright (c) 2014 <NAME>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */" (preproc_ifdef) "#ifndef DECOF_CLIENT_WRITE_INTERFACE_H\n#define DECOF_CLIENT_WRITE_INTERFACE_H\n\n#include "types.h"\n\nnamespace decof {\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */\nclass client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n};\n\n} // namespace decof\n\n#endif" (#ifndef) "#ifndef" (identifier) "DECOF_CLIENT_WRITE_INTERFACE_H" (preproc_def) "#define DECOF_CLIENT_WRITE_INTERFACE_H\n" (#define) "#define" (identifier) "DECOF_CLIENT_WRITE_INTERFACE_H" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_content) "types.h" (") """ (function_definition) "namespace decof {\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */\nclass client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n};\n\n}" (type_identifier) "namespace" (identifier) "decof" (compound_statement) "{\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */\nclass client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n};\n\n}" ({) "{" (comment) "/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */" (function_definition) "class client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n}" (type_identifier) "class" (identifier) "client_write_interface" (compound_statement) "{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n}" ({) "{" (declaration) "friend class basic_client_context;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "basic_client_context" (;) ";" (labeled_statement) "public:\n virtual ~client_write_interface() = default;" (statement_identifier) "public" (:) ":" (declaration) "virtual ~client_write_interface() = default;" (type_identifier) "virtual" (ERROR) "~" (~) "~" (init_declarator) "client_write_interface() = default" (function_declarator) "client_write_interface()" (identifier) "client_write_interface" (parameter_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (labeled_statement) "private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;" (statement_identifier) "private" (:) ":" (comment) "/// @brief Generic parameter value setter." (declaration) "virtual void generic_value(const value_t& value) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "generic_value(const value_t& value) = 0" (function_declarator) "generic_value(const value_t& value)" (identifier) "generic_value" (parameter_list) "(const value_t& value)" (() "(" (parameter_declaration) "const value_t& value" (type_qualifier) "const" (const) "const" (type_identifier) "value_t" (ERROR) "&" (&) "&" (identifier) "value" ()) ")" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace decof" (#endif) "#endif" (comment) "// DECOF_CLIENT_WRITE_INTERFACE_H"
78
4
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 34.71, "nodes": 43, "errors": 0, "source_hash": "e12b17bbdf61d67b850a34a4da5618bbde7f17efe07764d15191aee94f857612", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DECOF_CLIENT_WRITE_INTERFACE_H\n#define DECOF_CLIENT_WRITE_INTERFACE_H\n\n#include \"types.h\"\n\nnamespace decof {\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */\nclass client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n};\n\n} // namespace decof\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 42], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"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": "DECOF_CLIENT_WRITE_INTERFACE_H", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 38}}, {"id": 3, "type": "preproc_def", "text": "#define DECOF_CLIENT_WRITE_INTERFACE_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": "DECOF_CLIENT_WRITE_INTERFACE_H", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 38}}, {"id": 6, "type": "preproc_include", "text": "#include \"types.h\"\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": "string_literal", "text": "\"types.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 18}}, {"id": 9, "type": "function_definition", "text": "namespace decof {\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */\nclass client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n};\n\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 9}}, {"id": 11, "type": "identifier", "text": "decof", "parent": 9, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 15}}, {"id": 12, "type": "function_definition", "text": "class client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n}", "parent": 9, "children": [13], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 13, "type": "identifier", "text": "client_write_interface", "parent": 12, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 28}}, {"id": 14, "type": "declaration", "text": "friend class basic_client_context;", "parent": 12, "children": [15, 16], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 38}}, {"id": 15, "type": "type_identifier", "text": "friend", "parent": 14, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 16, "type": "identifier", "text": "basic_client_context", "parent": 14, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 37}}, {"id": 17, "type": "labeled_statement", "text": "public:\n virtual ~client_write_interface() = default;", "parent": 12, "children": [18], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 33, "column": 48}}, {"id": 18, "type": "declaration", "text": "virtual ~client_write_interface() = default;", "parent": 17, "children": [19, 20, 22], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 48}}, {"id": 19, "type": "type_identifier", "text": "virtual", "parent": 18, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 11}}, {"id": 20, "type": "ERROR", "text": "~", "parent": 18, "children": [21], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 21, "type": "~", "text": "~", "parent": 20, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 22, "type": "init_declarator", "text": "client_write_interface() = default", "parent": 18, "children": [23, 26, 27], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 47}}, {"id": 23, "type": "function_declarator", "text": "client_write_interface()", "parent": 22, "children": [24, 25], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 37}}, {"id": 24, "type": "identifier", "text": "client_write_interface", "parent": 23, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 35}}, {"id": 25, "type": "parameter_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 37}}, {"id": 26, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 39}}, {"id": 27, "type": "identifier", "text": "default", "parent": 22, "children": [], "start_point": {"row": 33, "column": 40}, "end_point": {"row": 33, "column": 47}}, {"id": 28, "type": "labeled_statement", "text": "private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;", "parent": 12, "children": [29], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 37, "column": 57}}, {"id": 29, "type": "declaration", "text": "virtual void generic_value(const value_t& value) = 0;", "parent": 28, "children": [30, 31, 33], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 57}}, {"id": 30, "type": "type_identifier", "text": "virtual", "parent": 29, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 11}}, {"id": 31, "type": "ERROR", "text": "void", "parent": 29, "children": [32], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 32, "type": "identifier", "text": "void", "parent": 31, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 33, "type": "init_declarator", "text": "generic_value(const value_t& value) = 0", "parent": 29, "children": [34, 40, 41], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 56}}, {"id": 34, "type": "function_declarator", "text": "generic_value(const value_t& value)", "parent": 33, "children": [35, 36], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 52}}, {"id": 35, "type": "identifier", "text": "generic_value", "parent": 34, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 30}}, {"id": 36, "type": "parameter_list", "text": "(const value_t& value)", "parent": 34, "children": [37], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 52}}, {"id": 37, "type": "parameter_declaration", "text": "const value_t& value", "parent": 36, "children": [38, 39], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 51}}, {"id": 38, "type": "type_identifier", "text": "value_t", "parent": 37, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 44}}, {"id": 39, "type": "identifier", "text": "value", "parent": 37, "children": [], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 51}}, {"id": 40, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 54}}, {"id": 41, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 37, "column": 55}, "end_point": {"row": 37, "column": 56}}, {"id": 42, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 12, 23, 34], "variables": [14, 18, 29, 37], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 15, 16, 19, 24, 27, 30, 32, 35, 38, 39, 42], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 41], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "client_write_interface", "text_snippet": "namespace decof {\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since thi"}, {"node_id": 12, "universal_type": "function", "name": "client_write_interface", "text_snippet": "class client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "client_write_interface()"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "generic_value(const value_t& value)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"types.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2014 <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#ifndef DECOF_CLIENT_WRITE_INTERFACE_H\n#define DECOF_CLIENT_WRITE_INTERFACE_H\n\n#include \"types.h\"\n\nnamespace decof {\n\n/** @brief Interface for client write access to parameter values.\n *\n * Since this interface's only purpose is to be used by an object of type\n * #client_context, the latter is declared as friend and all members are\n * private. */\nclass client_write_interface\n{\n friend class basic_client_context;\n\n public:\n virtual ~client_write_interface() = default;\n\n private:\n /// @brief Generic parameter value setter.\n virtual void generic_value(const value_t& value) = 0;\n};\n\n} // namespace decof\n\n#endif // DECOF_CLIENT_WRITE_INTERFACE_H\n"}
80,496
c
// // NSDictionary+MMS.h // MMShared // // Created by <NAME> on 18/09/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <MMShared/MMSDefines.h> NS_ASSUME_NONNULL_BEGIN @interface NSDictionary<__covariant KeyType, __covariant ObjectType> (MMS) @property (readonly, copy) NSArray<KeyType> *mms_allKeysSet; // when fetching related data from core data using NSDictionaryResultType the dictionary keys are flat key paths // e.g. {app.bundleIdentifier : ...} instead of {app : {bundleIdentifier : ...}} // this method converts the flat keys into nested dictionaries. @property (readonly, copy) NSDictionary<KeyType, ObjectType> *mms_unflattenDictionary; //- (NSArray<ObjectType> *)mms_objectsForKnownKeys:(NSArray<KeyType> *)keys; - (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary; - (nullable ObjectType)mms_nilIfNSNullObjectForKey:(id)aKey; - (NSString *)mms_prettyDescriptionWithTabLevel:(NSUInteger)tabLevel; @end NS_ASSUME_NONNULL_END
45.64
22
(translation_unit) "//\n// NSDictionary+MMS.h\n// MMShared\n//\n// Created by <NAME> on 18/09/2017.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <MMShared/MMSDefines.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType> *mms_allKeysSet;\n\n// when fetching related data from core data using NSDictionaryResultType the dictionary keys are flat key paths\n// e.g. {app.bundleIdentifier : ...} instead of {app : {bundleIdentifier : ...}}\n// this method converts the flat keys into nested dictionaries.\n@property (readonly, copy) NSDictionary<KeyType, ObjectType> *mms_unflattenDictionary;\n\n//- (NSArray<ObjectType> *)mms_objectsForKnownKeys:(NSArray<KeyType> *)keys;\n\n- (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:(id)aKey;\n\n- (NSString *)mms_prettyDescriptionWithTabLevel:(NSUInteger)tabLevel;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// NSDictionary+MMS.h" (comment) "// MMShared" (comment) "//" (comment) "// Created by <NAME> on 18/09/2017." (comment) "// Copyright © 2017 <NAME>. 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 <MMShared/MMSDefines.h>\n\n" (preproc_directive) "import " (preproc_arg) "MMShared/MMSDefines.h>\n" (declaration) "S_ASSUME_NONNULL_BEGIN\n\n@interface " (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (ERROR) "i" (ERROR) "i" (identifier) "nterface " (;) "" (ERROR) "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType> *mms_allKeysSet;\n\n// when fetching related data from core data using NSDictionaryResultType the dictionary keys are flat key paths\n// e.g. {app.bundleIdentifier : ...} instead of {app : {bundleIdentifier : ...}}\n// this method converts the flat keys into nested dictionaries.\n@p" (binary_expression) "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType> *mms_allKeysSet;" (binary_expression) "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType>" (binary_expression) "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) " (binary_expression) "SDictionary<__covariant " (identifier) "SDictionary<" (<) "_" (identifier) "_covariant " (ERROR) "eyType, __covariant ObjectType>" (identifier) "eyType," (,) " " (identifier) "_covariant " (identifier) "bjectType>" (>) " " (call_expression) "MMS)\n\n@property (readonly, copy) " (parenthesized_expression) "MMS)\n" (() "M" (identifier) "MS)" ()) "\n" (ERROR) "property " (ERROR) "p" (identifier) "roperty " (argument_list) "readonly, copy) " (() "r" (identifier) "eadonly," (,) " " (identifier) "opy)" ()) " " (ERROR) "SArray<" (identifier) "SArray<" (<) "K" (identifier) "eyType>" (>) " " (pointer_expression) "mms_allKeysSet;" (*) "m" (identifier) "ms_allKeysSet;" (;) "\n" (comment) "/ when fetching related data from core data using NSDictionaryResultType the dictionary keys are flat key paths\n" (comment) "/ e.g. {app.bundleIdentifier : ...} instead of {app : {bundleIdentifier : ...}}\n" (comment) "/ this method converts the flat keys into nested dictionaries.\n" (ERROR) "p" (expression_statement) "roperty (readonly, copy) " (call_expression) "roperty (readonly, copy) " (identifier) "roperty " (argument_list) "readonly, copy) " (() "r" (identifier) "eadonly," (,) " " (identifier) "opy)" ()) " " (;) "" (expression_statement) "SDictionary<KeyType, ObjectType> *mms_unflattenDictionary;\n" (update_expression) "SDictionary<KeyType, ObjectType> *mms_unflattenDictionary;" (binary_expression) "SDictionary<KeyType, ObjectType> *mms_unflattenDictionary;" (binary_expression) "SDictionary<KeyType," (identifier) "SDictionary<" (<) "K" (identifier) "eyType," (ERROR) " ObjectType>" (,) " " (identifier) "bjectType>" (>) " " (pointer_expression) "mms_unflattenDictionary;" (*) "m" (identifier) "ms_unflattenDictionary;" (--) "" (;) "\n" (comment) "/- (NSArray<ObjectType> *)mms_objectsForKnownKeys:(NSArray<KeyType> *)keys;\n" (ERROR) " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:(id)aKey;\n\n- (NSString *)mms_prettyDescriptionWithTabLevel:(NSUInteger)tabLevel;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (binary_expression) " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:(id)aKey;\n\n- (NSString *)mms_prettyDescriptionWithTabLevel:" (binary_expression) " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:" (binary_expression) " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;" (unary_expression) " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:" (-) " " (cast_expression) "instancetype)mms_dictionaryByAddingEntriesFromDictionary:" (() "i" (type_descriptor) "nstancetype)" (type_identifier) "nstancetype)" ()) "m" (identifier) "ms_dictionaryByAddingEntriesFromDictionary:" (ERROR) "(NSDictionary " (:) "(" (() "N" (identifier) "SDictionary " (*) ")" (ERROR) "d" ()) "d" (identifier) "ictionary;" (ERROR) "\n" (;) "\n" (-) " " (cast_expression) "nullable ObjectType)mms_nilIfNSNullObjectForKey:" (() "n" (ERROR) "ullable " (identifier) "ullable " (type_descriptor) "bjectType)" (type_identifier) "bjectType)" ()) "m" (identifier) "ms_nilIfNSNullObjectForKey:" (ERROR) "(id)aKey;\n" (:) "(" (() "i" (identifier) "d)" ()) "a" (identifier) "Key;" (;) "\n" (-) " " (cast_expression) "NSString *)mms_prettyDescriptionWithTabLevel:" (() "N" (type_descriptor) "SString *)" (type_identifier) "SString " (abstract_pointer_declarator) ")" (*) ")" ()) "m" (identifier) "ms_prettyDescriptionWithTabLevel:" (:) "(" (() "N" (identifier) "SUInteger)" ()) "t" (identifier) "abLevel;" (;) "\n" (ERROR) "e" (identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n"
144
16
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 45.64, "nodes": 93, "errors": 0, "source_hash": "ae6d7a1e7533460f5a75bb7d77dd625c28dc9014ed50b659148d7b7e70300278", "categorized_nodes": 58}, "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 <MMShared/MMSDefines.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": "MMShared/MMSDefines.h>\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 31}}, {"id": 4, "type": "declaration", "text": "S_ASSUME_NONNULL_BEGIN\n\n@interface ", "parent": null, "children": [5, 6, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 10}}, {"id": 5, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 4, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 23}}, {"id": 6, "type": "ERROR", "text": "i", "parent": 4, "children": [7], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 7, "type": "ERROR", "text": "i", "parent": 6, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 8, "type": "identifier", "text": "nterface ", "parent": 4, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 9, "type": "ERROR", "text": "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType> *mms_allKeysSet;\n\n// when fetching related data from core data using NSDictionaryResultType the dictionary keys are flat key paths\n// e.g. {app.bundleIdentifier : ...} instead of {app : {bundleIdentifier : ...}}\n// this method converts the flat keys into nested dictionaries.\n@p", "parent": null, "children": [10, 39], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 20, "column": 1}}, {"id": 10, "type": "binary_expression", "text": "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType> *mms_allKeysSet;", "parent": 9, "children": [11, 35, 36], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 15, "column": 59}}, {"id": 11, "type": "binary_expression", "text": "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType>", "parent": 10, "children": [12, 31, 33, 34], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 15, "column": 42}}, {"id": 12, "type": "binary_expression", "text": "SDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) ", "parent": 11, "children": [13, 17, 21, 22], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 15, "column": 26}}, {"id": 13, "type": "binary_expression", "text": "SDictionary<__covariant ", "parent": 12, "children": [14, 15, 16], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 35}}, {"id": 14, "type": "identifier", "text": "SDictionary<", "parent": 13, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 23}}, {"id": 15, "type": "<", "text": "_", "parent": 13, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 24}}, {"id": 16, "type": "identifier", "text": "_covariant ", "parent": 13, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 35}}, {"id": 17, "type": "ERROR", "text": "eyType, __covariant ObjectType>", "parent": 12, "children": [18, 19, 20], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 67}}, {"id": 18, "type": "identifier", "text": "eyType,", "parent": 17, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 43}}, {"id": 19, "type": "identifier", "text": "_covariant ", "parent": 17, "children": [], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 56}}, {"id": 20, "type": "identifier", "text": "bjectType>", "parent": 17, "children": [], "start_point": {"row": 13, "column": 57}, "end_point": {"row": 13, "column": 67}}, {"id": 21, "type": ">", "text": " ", "parent": 12, "children": [], "start_point": {"row": 13, "column": 67}, "end_point": {"row": 13, "column": 68}}, {"id": 22, "type": "call_expression", "text": "MMS)\n\n@property (readonly, copy) ", "parent": 12, "children": [23, 25, 28], "start_point": {"row": 13, "column": 69}, "end_point": {"row": 15, "column": 26}}, {"id": 23, "type": "parenthesized_expression", "text": "MMS)\n", "parent": 22, "children": [24], "start_point": {"row": 13, "column": 69}, "end_point": {"row": 13, "column": 74}}, {"id": 24, "type": "identifier", "text": "MS)", "parent": 23, "children": [], "start_point": {"row": 13, "column": 70}, "end_point": {"row": 13, "column": 73}}, {"id": 25, "type": "ERROR", "text": "property ", "parent": 22, "children": [26, 27], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 26, "type": "ERROR", "text": "p", "parent": 25, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 27, "type": "identifier", "text": "roperty ", "parent": 25, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 28, "type": "argument_list", "text": "readonly, copy) ", "parent": 22, "children": [29, 30], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 26}}, {"id": 29, "type": "identifier", "text": "eadonly,", "parent": 28, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 19}}, {"id": 30, "type": "identifier", "text": "opy)", "parent": 28, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 25}}, {"id": 31, "type": "ERROR", "text": "SArray<", "parent": 11, "children": [32], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 34}}, {"id": 32, "type": "identifier", "text": "SArray<", "parent": 31, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 34}}, {"id": 33, "type": "<", "text": "K", "parent": 11, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 35}}, {"id": 34, "type": "identifier", "text": "eyType>", "parent": 11, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 42}}, {"id": 35, "type": ">", "text": " ", "parent": 10, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 43}}, {"id": 36, "type": "pointer_expression", "text": "mms_allKeysSet;", "parent": 10, "children": [37, 38], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 59}}, {"id": 37, "type": "*", "text": "m", "parent": 36, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 45}}, {"id": 38, "type": "identifier", "text": "ms_allKeysSet;", "parent": 36, "children": [], "start_point": {"row": 15, "column": 45}, "end_point": {"row": 15, "column": 59}}, {"id": 39, "type": "ERROR", "text": "p", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 40, "type": "call_expression", "text": "roperty (readonly, copy) ", "parent": null, "children": [41, 42], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 26}}, {"id": 41, "type": "identifier", "text": "roperty ", "parent": 40, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 42, "type": "argument_list", "text": "readonly, copy) ", "parent": 40, "children": [43, 44], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 26}}, {"id": 43, "type": "identifier", "text": "eadonly,", "parent": 42, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 19}}, {"id": 44, "type": "identifier", "text": "opy)", "parent": 42, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 25}}, {"id": 45, "type": "update_expression", "text": "SDictionary<KeyType, ObjectType> *mms_unflattenDictionary;", "parent": null, "children": [46, 57], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 85}}, {"id": 46, "type": "binary_expression", "text": "SDictionary<KeyType, ObjectType> *mms_unflattenDictionary;", "parent": 45, "children": [47, 51, 53, 54], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 85}}, {"id": 47, "type": "binary_expression", "text": "SDictionary<KeyType,", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 47}}, {"id": 48, "type": "identifier", "text": "SDictionary<", "parent": 47, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 39}}, {"id": 49, "type": "<", "text": "K", "parent": 47, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 40}}, {"id": 50, "type": "identifier", "text": "eyType,", "parent": 47, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 47}}, {"id": 51, "type": "ERROR", "text": " ObjectType>", "parent": 46, "children": [52], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 59}}, {"id": 52, "type": "identifier", "text": "bjectType>", "parent": 51, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 59}}, {"id": 53, "type": ">", "text": " ", "parent": 46, "children": [], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 60}}, {"id": 54, "type": "pointer_expression", "text": "mms_unflattenDictionary;", "parent": 46, "children": [55, 56], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 85}}, {"id": 55, "type": "*", "text": "m", "parent": 54, "children": [], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 62}}, {"id": 56, "type": "identifier", "text": "ms_unflattenDictionary;", "parent": 54, "children": [], "start_point": {"row": 20, "column": 62}, "end_point": {"row": 20, "column": 85}}, {"id": 57, "type": "--", "text": "", "parent": 45, "children": [], "start_point": {"row": 20, "column": 85}, "end_point": {"row": 20, "column": 85}}, {"id": 58, "type": "ERROR", "text": " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:(id)aKey;\n\n- (NSString *)mms_prettyDescriptionWithTabLevel:(NSUInteger)tabLevel;\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [59, 88, 89, 90, 91, 92], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 32, "column": 21}}, {"id": 59, "type": "binary_expression", "text": " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:(id)aKey;\n\n- (NSString *)mms_prettyDescriptionWithTabLevel:", "parent": 58, "children": [60, 80, 83, 84], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 28, "column": 47}}, {"id": 60, "type": "binary_expression", "text": " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:", "parent": 59, "children": [61, 72, 73, 74], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 50}}, {"id": 61, "type": "binary_expression", "text": " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;", "parent": 60, "children": [62, 68, 70, 71], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 86}}, {"id": 62, "type": "unary_expression", "text": " (instancetype)mms_dictionaryByAddingEntriesFromDictionary:", "parent": 61, "children": [63, 64], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 59}}, {"id": 63, "type": "-", "text": " ", "parent": 62, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 64, "type": "cast_expression", "text": "instancetype)mms_dictionaryByAddingEntriesFromDictionary:", "parent": 62, "children": [65, 67], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 59}}, {"id": 65, "type": "type_descriptor", "text": "nstancetype)", "parent": 64, "children": [66], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 15}}, {"id": 66, "type": "type_identifier", "text": "nstancetype)", "parent": 65, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 15}}, {"id": 67, "type": "identifier", "text": "ms_dictionaryByAddingEntriesFromDictionary:", "parent": 64, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 59}}, {"id": 68, "type": "ERROR", "text": "(NSDictionary ", "parent": 61, "children": [69], "start_point": {"row": 24, "column": 59}, "end_point": {"row": 24, "column": 73}}, {"id": 69, "type": "identifier", "text": "SDictionary ", "parent": 68, "children": [], "start_point": {"row": 24, "column": 61}, "end_point": {"row": 24, "column": 73}}, {"id": 70, "type": "ERROR", "text": "d", "parent": 61, "children": [], "start_point": {"row": 24, "column": 75}, "end_point": {"row": 24, "column": 76}}, {"id": 71, "type": "identifier", "text": "ictionary;", "parent": 61, "children": [], "start_point": {"row": 24, "column": 76}, "end_point": {"row": 24, "column": 86}}, {"id": 72, "type": "ERROR", "text": "\n", "parent": 60, "children": [], "start_point": {"row": 24, "column": 86}, "end_point": {"row": 24, "column": 87}}, {"id": 73, "type": "-", "text": " ", "parent": 60, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 74, "type": "cast_expression", "text": "nullable ObjectType)mms_nilIfNSNullObjectForKey:", "parent": 60, "children": [75, 77, 79], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 50}}, {"id": 75, "type": "ERROR", "text": "ullable ", "parent": 74, "children": [76], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 11}}, {"id": 76, "type": "identifier", "text": "ullable ", "parent": 75, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 11}}, {"id": 77, "type": "type_descriptor", "text": "bjectType)", "parent": 74, "children": [78], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 78, "type": "type_identifier", "text": "bjectType)", "parent": 77, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 79, "type": "identifier", "text": "ms_nilIfNSNullObjectForKey:", "parent": 74, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 50}}, {"id": 80, "type": "ERROR", "text": "(id)aKey;\n", "parent": 59, "children": [81, 82], "start_point": {"row": 26, "column": 50}, "end_point": {"row": 26, "column": 60}}, {"id": 81, "type": "identifier", "text": "d)", "parent": 80, "children": [], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 54}}, {"id": 82, "type": "identifier", "text": "Key;", "parent": 80, "children": [], "start_point": {"row": 26, "column": 55}, "end_point": {"row": 26, "column": 59}}, {"id": 83, "type": "-", "text": " ", "parent": 59, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 84, "type": "cast_expression", "text": "NSString *)mms_prettyDescriptionWithTabLevel:", "parent": 59, "children": [85, 87], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 47}}, {"id": 85, "type": "type_descriptor", "text": "SString *)", "parent": 84, "children": [86], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 13}}, {"id": 86, "type": "type_identifier", "text": "SString ", "parent": 85, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 11}}, {"id": 87, "type": "identifier", "text": "ms_prettyDescriptionWithTabLevel:", "parent": 84, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 47}}, {"id": 88, "type": "identifier", "text": "SUInteger)", "parent": 58, "children": [], "start_point": {"row": 28, "column": 49}, "end_point": {"row": 28, "column": 59}}, {"id": 89, "type": "identifier", "text": "abLevel;", "parent": 58, "children": [], "start_point": {"row": 28, "column": 60}, "end_point": {"row": 28, "column": 68}}, {"id": 90, "type": "ERROR", "text": "e", "parent": 58, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 91, "type": "identifier", "text": "nd\n", "parent": 58, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 4}}, {"id": 92, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 58, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [4], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 11, 12, 13, 22, 23, 36, 40, 45, 46, 47, 54, 59, 60, 61, 62, 64, 74, 84], "assignments": [], "loops": [], "conditionals": [5, 8, 14, 16, 18, 19, 20, 24, 27, 29, 30, 32, 34, 38, 41, 43, 44, 48, 50, 52, 56, 66, 67, 69, 71, 76, 78, 79, 81, 82, 86, 87, 88, 89, 91, 92], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// NSDictionary+MMS.h\n// MMShared\n//\n// Created by <NAME> on 18/09/2017.\n// Copyright \u00a9 2017 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <MMShared/MMSDefines.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface NSDictionary<__covariant KeyType, __covariant ObjectType> (MMS)\n\n@property (readonly, copy) NSArray<KeyType> *mms_allKeysSet;\n\n// when fetching related data from core data using NSDictionaryResultType the dictionary keys are flat key paths\n// e.g. {app.bundleIdentifier : ...} instead of {app : {bundleIdentifier : ...}}\n// this method converts the flat keys into nested dictionaries.\n@property (readonly, copy) NSDictionary<KeyType, ObjectType> *mms_unflattenDictionary;\n\n//- (NSArray<ObjectType> *)mms_objectsForKnownKeys:(NSArray<KeyType> *)keys;\n\n- (instancetype)mms_dictionaryByAddingEntriesFromDictionary:(NSDictionary *)dictionary;\n\n- (nullable ObjectType)mms_nilIfNSNullObjectForKey:(id)aKey;\n\n- (NSString *)mms_prettyDescriptionWithTabLevel:(NSUInteger)tabLevel;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,497
c
// // MZM3U8DownLoaderSDK.h // MZM3U8DownLoaderSDK // // Created by 李风 on 2020/3/25. // Copyright © 2020 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for MZM3U8DownLoaderSDK. FOUNDATION_EXPORT double MZM3U8DownLoaderSDKVersionNumber; //! Project version string for MZM3U8DownLoaderSDK. FOUNDATION_EXPORT const unsigned char MZM3U8DownLoaderSDKVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <MZM3U8DownLoaderSDK/PublicHeader.h> #import "MZDownLoaderCenter.h"
41.07
14
(translation_unit) "//\n// MZM3U8DownLoaderSDK.h\n// MZM3U8DownLoaderSDK\n//\n// Created by 李风 on 2020/3/25.\n// Copyright © 2020 <EMAIL>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for MZM3U8DownLoaderSDK.\nFOUNDATION_EXPORT double MZM3U8DownLoaderSDKVersionNumber;\n\n//! Project version string for MZM3U8DownLoaderSDK.\nFOUNDATION_EXPORT const unsigned char MZM3U8DownLoaderSDKVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <MZM3U8DownLoaderSDK/PublicHeader.h>\n\n#import "MZDownLoaderCenter.h"\n" (comment) "//" (comment) "// MZM3U8DownLoaderSDK.h" (comment) "// MZM3U8DownLoaderSDK" (comment) "//" (comment) "// Created by 李风 on 2020/3/25.\n// " (comment) "Copyright © 2020 <EMAIL>. All rights reserved.\n//\n\n" (comment) "im" (preproc_call) "rt <Foundation/Foundation.h>\n\n//! " (preproc_directive) "rt <Fou" (preproc_arg) "dation/Foundation.h>\n\n//!" (comment) "roject version number for MZM3U8DownLoaderSDK.\nFOUN" (declaration) "ATION_EXPORT double MZM3U8DownLoaderSDKVersionNumber;\n\n//!" (type_identifier) "ATION_EXPORT doub" (ERROR) "e MZM3" (identifier) "e MZM3" (identifier) "8DownLoaderSDKVersionNumber;\n\n//" (;) "!" (comment) "roject version string for MZM3U8DownLoaderSDK.\nFOUN" (declaration) "ATION_EXPORT const unsigned char" (type_identifier) "ATION_EXPORT cons" (type_qualifier) " unsi" (const) " unsi" (identifier) "ned char" (;) "" (declaration) "MZM3U8DownLoaderSDKVersionString[];\n\n// " (primitive_type) "MZM3" (array_declarator) "8DownLoaderSDKVersionString[];\n\n//" (identifier) "8DownLoaderSDKVersionString[];\n\n" ([) "/" (]) "/" (;) " " (comment) " this header, you should import all the public headers of your framework using statements like #import <MZM3U8DownLoaderSDK/PublicHeader.h>\n\n#im" (preproc_call) "rt "MZDownLoaderCenter.h"\n" (preproc_directive) "rt "MZD" (preproc_arg) "wnLoaderCenter.h"\n"
36
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 41.07, "nodes": 19, "errors": 0, "source_hash": "a799a64c8c23b2e940c3041397d9c78c70ad3b0fc7b619cacf789d926614d727", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "rt <Foundation/Foundation.h>\n\n//! ", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "rt <Fou", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "dation/Foundation.h>\n\n//!", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "declaration", "text": "ATION_EXPORT double MZM3U8DownLoaderSDKVersionNumber;\n\n//!", "parent": null, "children": [4, 5, 7], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 58}}, {"id": 4, "type": "type_identifier", "text": "ATION_EXPORT doub", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 5, "type": "ERROR", "text": "e MZM3", "parent": 3, "children": [6], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 6, "type": "identifier", "text": "e MZM3", "parent": 5, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 7, "type": "identifier", "text": "8DownLoaderSDKVersionNumber;\n\n//", "parent": 3, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 57}}, {"id": 8, "type": "declaration", "text": "ATION_EXPORT const unsigned char", "parent": null, "children": [9, 10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 9, "type": "type_identifier", "text": "ATION_EXPORT cons", "parent": 8, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 10, "type": "type_qualifier", "text": " unsi", "parent": 8, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 23}}, {"id": 11, "type": "identifier", "text": "ned char", "parent": 8, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 12, "type": "declaration", "text": "MZM3U8DownLoaderSDKVersionString[];\n\n// ", "parent": null, "children": [13, 14], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 73}}, {"id": 13, "type": "primitive_type", "text": "MZM3", "parent": 12, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 14, "type": "array_declarator", "text": "8DownLoaderSDKVersionString[];\n\n//", "parent": 12, "children": [15], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 72}}, {"id": 15, "type": "identifier", "text": "8DownLoaderSDKVersionString[];\n\n", "parent": 14, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 70}}, {"id": 16, "type": "preproc_call", "text": "rt \"MZDownLoaderCenter.h\"\n", "parent": null, "children": [17, 18], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 17, "type": "preproc_directive", "text": "rt \"MZD", "parent": 16, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 18, "type": "preproc_arg", "text": "wnLoaderCenter.h\"\n", "parent": 16, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 30}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3, 8, 12], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 6, 7, 9, 10, 11, 15], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 16], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// MZM3U8DownLoaderSDK.h\n// MZM3U8DownLoaderSDK\n//\n// Created by \u674e\u98ce on 2020/3/25.\n// Copyright \u00a9 2020 <EMAIL>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for MZM3U8DownLoaderSDK.\nFOUNDATION_EXPORT double MZM3U8DownLoaderSDKVersionNumber;\n\n//! Project version string for MZM3U8DownLoaderSDK.\nFOUNDATION_EXPORT const unsigned char MZM3U8DownLoaderSDKVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <MZM3U8DownLoaderSDK/PublicHeader.h>\n\n#import \"MZDownLoaderCenter.h\"\n"}
80,498
c
#include <aubio.h> int main (void) { uint_t n = 10; // compute n times uint_t win_s = 1024; // window size uint_t hop_s = 256; // hop size // create some vectors fvec_t * in = new_fvec (hop_s); // input buffer cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase cvec_t * cstead = new_cvec (win_s); // fft norm and phase cvec_t * ctrans = new_cvec (win_s); // fft norm and phase fvec_t * stead = new_fvec (hop_s); // output buffer fvec_t * trans = new_fvec (hop_s); // output buffer // create phase vocoder for analysis of input signal aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s); // create transient/steady-state separation object aubio_tss_t * tss = new_aubio_tss(win_s,hop_s); // create phase vocoder objects for synthesis of output signals aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s); aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s); /* execute stft */ while ( n-- ) { // fftgrain = pv(in) aubio_pvoc_do (pv, in, fftgrain); // ctrans, cstead = tss (fftgrain) aubio_tss_do (tss, fftgrain, ctrans, cstead); // stead = pvt_inverse (cstead) // trans = pvt_inverse (ctrans) aubio_pvoc_rdo (pvt, cstead, stead); aubio_pvoc_rdo (pvs, ctrans, trans); } aubio_tss_set_alpha(tss, 4.); aubio_tss_set_beta(tss, 3.); aubio_tss_set_threshold(tss, 3.); del_aubio_pvoc(pv); del_aubio_pvoc(pvt); del_aubio_pvoc(pvs); del_aubio_tss(tss); del_fvec(in); del_cvec(fftgrain); del_cvec(cstead); del_cvec(ctrans); del_fvec(stead); del_fvec(trans); aubio_cleanup(); return 0; }
32.96
47
(translation_unit) "#include <aubio.h>\n\nint main (void)\n{\n uint_t n = 10; // compute n times\n uint_t win_s = 1024; // window size\n uint_t hop_s = 256; // hop size\n\n // create some vectors\n fvec_t * in = new_fvec (hop_s); // input buffer\n cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase\n cvec_t * cstead = new_cvec (win_s); // fft norm and phase\n cvec_t * ctrans = new_cvec (win_s); // fft norm and phase\n fvec_t * stead = new_fvec (hop_s); // output buffer\n fvec_t * trans = new_fvec (hop_s); // output buffer\n\n // create phase vocoder for analysis of input signal \n aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s);\n // create transient/steady-state separation object\n aubio_tss_t * tss = new_aubio_tss(win_s,hop_s);\n // create phase vocoder objects for synthesis of output signals\n aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s);\n aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s);\n\n /* execute stft */\n while ( n-- ) {\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }\n\n aubio_tss_set_alpha(tss, 4.);\n aubio_tss_set_beta(tss, 3.);\n aubio_tss_set_threshold(tss, 3.);\n\n del_aubio_pvoc(pv);\n del_aubio_pvoc(pvt);\n del_aubio_pvoc(pvs);\n del_aubio_tss(tss);\n\n del_fvec(in);\n del_cvec(fftgrain);\n del_cvec(cstead);\n del_cvec(ctrans);\n del_fvec(stead);\n del_fvec(trans);\n\n aubio_cleanup();\n\n return 0;\n}\n" (preproc_include) "#include <aubio.h>\n" (#include) "#include" (system_lib_string) "<aubio.h>" (function_definition) "int main (void)\n{\n uint_t n = 10; // compute n times\n uint_t win_s = 1024; // window size\n uint_t hop_s = 256; // hop size\n\n // create some vectors\n fvec_t * in = new_fvec (hop_s); // input buffer\n cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase\n cvec_t * cstead = new_cvec (win_s); // fft norm and phase\n cvec_t * ctrans = new_cvec (win_s); // fft norm and phase\n fvec_t * stead = new_fvec (hop_s); // output buffer\n fvec_t * trans = new_fvec (hop_s); // output buffer\n\n // create phase vocoder for analysis of input signal \n aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s);\n // create transient/steady-state separation object\n aubio_tss_t * tss = new_aubio_tss(win_s,hop_s);\n // create phase vocoder objects for synthesis of output signals\n aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s);\n aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s);\n\n /* execute stft */\n while ( n-- ) {\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }\n\n aubio_tss_set_alpha(tss, 4.);\n aubio_tss_set_beta(tss, 3.);\n aubio_tss_set_threshold(tss, 3.);\n\n del_aubio_pvoc(pv);\n del_aubio_pvoc(pvt);\n del_aubio_pvoc(pvs);\n del_aubio_tss(tss);\n\n del_fvec(in);\n del_cvec(fftgrain);\n del_cvec(cstead);\n del_cvec(ctrans);\n del_fvec(stead);\n del_fvec(trans);\n\n aubio_cleanup();\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 uint_t n = 10; // compute n times\n uint_t win_s = 1024; // window size\n uint_t hop_s = 256; // hop size\n\n // create some vectors\n fvec_t * in = new_fvec (hop_s); // input buffer\n cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase\n cvec_t * cstead = new_cvec (win_s); // fft norm and phase\n cvec_t * ctrans = new_cvec (win_s); // fft norm and phase\n fvec_t * stead = new_fvec (hop_s); // output buffer\n fvec_t * trans = new_fvec (hop_s); // output buffer\n\n // create phase vocoder for analysis of input signal \n aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s);\n // create transient/steady-state separation object\n aubio_tss_t * tss = new_aubio_tss(win_s,hop_s);\n // create phase vocoder objects for synthesis of output signals\n aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s);\n aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s);\n\n /* execute stft */\n while ( n-- ) {\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }\n\n aubio_tss_set_alpha(tss, 4.);\n aubio_tss_set_beta(tss, 3.);\n aubio_tss_set_threshold(tss, 3.);\n\n del_aubio_pvoc(pv);\n del_aubio_pvoc(pvt);\n del_aubio_pvoc(pvs);\n del_aubio_tss(tss);\n\n del_fvec(in);\n del_cvec(fftgrain);\n del_cvec(cstead);\n del_cvec(ctrans);\n del_fvec(stead);\n del_fvec(trans);\n\n aubio_cleanup();\n\n return 0;\n}" ({) "{" (declaration) "uint_t n = 10;" (type_identifier) "uint_t" (init_declarator) "n = 10" (identifier) "n" (=) "=" (number_literal) "10" (;) ";" (comment) "// compute n times" (declaration) "uint_t win_s = 1024;" (type_identifier) "uint_t" (init_declarator) "win_s = 1024" (identifier) "win_s" (=) "=" (number_literal) "1024" (;) ";" (comment) "// window size" (declaration) "uint_t hop_s = 256;" (type_identifier) "uint_t" (init_declarator) "hop_s = 256" (identifier) "hop_s" (=) "=" (number_literal) "256" (;) ";" (comment) "// hop size" (comment) "// create some vectors" (declaration) "fvec_t * in = new_fvec (hop_s);" (type_identifier) "fvec_t" (init_declarator) "* in = new_fvec (hop_s)" (pointer_declarator) "* in" (*) "*" (identifier) "in" (=) "=" (call_expression) "new_fvec (hop_s)" (identifier) "new_fvec" (argument_list) "(hop_s)" (() "(" (identifier) "hop_s" ()) ")" (;) ";" (comment) "// input buffer" (declaration) "cvec_t * fftgrain = new_cvec (win_s);" (type_identifier) "cvec_t" (init_declarator) "* fftgrain = new_cvec (win_s)" (pointer_declarator) "* fftgrain" (*) "*" (identifier) "fftgrain" (=) "=" (call_expression) "new_cvec (win_s)" (identifier) "new_cvec" (argument_list) "(win_s)" (() "(" (identifier) "win_s" ()) ")" (;) ";" (comment) "// fft norm and phase" (declaration) "cvec_t * cstead = new_cvec (win_s);" (type_identifier) "cvec_t" (init_declarator) "* cstead = new_cvec (win_s)" (pointer_declarator) "* cstead" (*) "*" (identifier) "cstead" (=) "=" (call_expression) "new_cvec (win_s)" (identifier) "new_cvec" (argument_list) "(win_s)" (() "(" (identifier) "win_s" ()) ")" (;) ";" (comment) "// fft norm and phase" (declaration) "cvec_t * ctrans = new_cvec (win_s);" (type_identifier) "cvec_t" (init_declarator) "* ctrans = new_cvec (win_s)" (pointer_declarator) "* ctrans" (*) "*" (identifier) "ctrans" (=) "=" (call_expression) "new_cvec (win_s)" (identifier) "new_cvec" (argument_list) "(win_s)" (() "(" (identifier) "win_s" ()) ")" (;) ";" (comment) "// fft norm and phase" (declaration) "fvec_t * stead = new_fvec (hop_s);" (type_identifier) "fvec_t" (init_declarator) "* stead = new_fvec (hop_s)" (pointer_declarator) "* stead" (*) "*" (identifier) "stead" (=) "=" (call_expression) "new_fvec (hop_s)" (identifier) "new_fvec" (argument_list) "(hop_s)" (() "(" (identifier) "hop_s" ()) ")" (;) ";" (comment) "// output buffer" (declaration) "fvec_t * trans = new_fvec (hop_s);" (type_identifier) "fvec_t" (init_declarator) "* trans = new_fvec (hop_s)" (pointer_declarator) "* trans" (*) "*" (identifier) "trans" (=) "=" (call_expression) "new_fvec (hop_s)" (identifier) "new_fvec" (argument_list) "(hop_s)" (() "(" (identifier) "hop_s" ()) ")" (;) ";" (comment) "// output buffer" (comment) "// create phase vocoder for analysis of input signal " (declaration) "aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s);" (type_identifier) "aubio_pvoc_t" (init_declarator) "* pv = new_aubio_pvoc (win_s,hop_s)" (pointer_declarator) "* pv" (*) "*" (identifier) "pv" (=) "=" (call_expression) "new_aubio_pvoc (win_s,hop_s)" (identifier) "new_aubio_pvoc" (argument_list) "(win_s,hop_s)" (() "(" (identifier) "win_s" (,) "," (identifier) "hop_s" ()) ")" (;) ";" (comment) "// create transient/steady-state separation object" (declaration) "aubio_tss_t * tss = new_aubio_tss(win_s,hop_s);" (type_identifier) "aubio_tss_t" (init_declarator) "* tss = new_aubio_tss(win_s,hop_s)" (pointer_declarator) "* tss" (*) "*" (identifier) "tss" (=) "=" (call_expression) "new_aubio_tss(win_s,hop_s)" (identifier) "new_aubio_tss" (argument_list) "(win_s,hop_s)" (() "(" (identifier) "win_s" (,) "," (identifier) "hop_s" ()) ")" (;) ";" (comment) "// create phase vocoder objects for synthesis of output signals" (declaration) "aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s);" (type_identifier) "aubio_pvoc_t" (init_declarator) "* pvt = new_aubio_pvoc(win_s,hop_s)" (pointer_declarator) "* pvt" (*) "*" (identifier) "pvt" (=) "=" (call_expression) "new_aubio_pvoc(win_s,hop_s)" (identifier) "new_aubio_pvoc" (argument_list) "(win_s,hop_s)" (() "(" (identifier) "win_s" (,) "," (identifier) "hop_s" ()) ")" (;) ";" (declaration) "aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s);" (type_identifier) "aubio_pvoc_t" (init_declarator) "* pvs = new_aubio_pvoc(win_s,hop_s)" (pointer_declarator) "* pvs" (*) "*" (identifier) "pvs" (=) "=" (call_expression) "new_aubio_pvoc(win_s,hop_s)" (identifier) "new_aubio_pvoc" (argument_list) "(win_s,hop_s)" (() "(" (identifier) "win_s" (,) "," (identifier) "hop_s" ()) ")" (;) ";" (comment) "/* execute stft */" (while_statement) "while ( n-- ) {\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }" (while) "while" (parenthesized_expression) "( n-- )" (() "(" (update_expression) "n--" (identifier) "n" (--) "--" ()) ")" (compound_statement) "{\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }" ({) "{" (comment) "// fftgrain = pv(in)" (expression_statement) "aubio_pvoc_do (pv, in, fftgrain);" (call_expression) "aubio_pvoc_do (pv, in, fftgrain)" (identifier) "aubio_pvoc_do" (argument_list) "(pv, in, fftgrain)" (() "(" (identifier) "pv" (,) "," (identifier) "in" (,) "," (identifier) "fftgrain" ()) ")" (;) ";" (comment) "// ctrans, cstead = tss (fftgrain)" (expression_statement) "aubio_tss_do (tss, fftgrain, ctrans, cstead);" (call_expression) "aubio_tss_do (tss, fftgrain, ctrans, cstead)" (identifier) "aubio_tss_do" (argument_list) "(tss, fftgrain, ctrans, cstead)" (() "(" (identifier) "tss" (,) "," (identifier) "fftgrain" (,) "," (identifier) "ctrans" (,) "," (identifier) "cstead" ()) ")" (;) ";" (comment) "// stead = pvt_inverse (cstead)" (comment) "// trans = pvt_inverse (ctrans)" (expression_statement) "aubio_pvoc_rdo (pvt, cstead, stead);" (call_expression) "aubio_pvoc_rdo (pvt, cstead, stead)" (identifier) "aubio_pvoc_rdo" (argument_list) "(pvt, cstead, stead)" (() "(" (identifier) "pvt" (,) "," (identifier) "cstead" (,) "," (identifier) "stead" ()) ")" (;) ";" (expression_statement) "aubio_pvoc_rdo (pvs, ctrans, trans);" (call_expression) "aubio_pvoc_rdo (pvs, ctrans, trans)" (identifier) "aubio_pvoc_rdo" (argument_list) "(pvs, ctrans, trans)" (() "(" (identifier) "pvs" (,) "," (identifier) "ctrans" (,) "," (identifier) "trans" ()) ")" (;) ";" (}) "}" (expression_statement) "aubio_tss_set_alpha(tss, 4.);" (call_expression) "aubio_tss_set_alpha(tss, 4.)" (identifier) "aubio_tss_set_alpha" (argument_list) "(tss, 4.)" (() "(" (identifier) "tss" (,) "," (number_literal) "4." ()) ")" (;) ";" (expression_statement) "aubio_tss_set_beta(tss, 3.);" (call_expression) "aubio_tss_set_beta(tss, 3.)" (identifier) "aubio_tss_set_beta" (argument_list) "(tss, 3.)" (() "(" (identifier) "tss" (,) "," (number_literal) "3." ()) ")" (;) ";" (expression_statement) "aubio_tss_set_threshold(tss, 3.);" (call_expression) "aubio_tss_set_threshold(tss, 3.)" (identifier) "aubio_tss_set_threshold" (argument_list) "(tss, 3.)" (() "(" (identifier) "tss" (,) "," (number_literal) "3." ()) ")" (;) ";" (expression_statement) "del_aubio_pvoc(pv);" (call_expression) "del_aubio_pvoc(pv)" (identifier) "del_aubio_pvoc" (argument_list) "(pv)" (() "(" (identifier) "pv" ()) ")" (;) ";" (expression_statement) "del_aubio_pvoc(pvt);" (call_expression) "del_aubio_pvoc(pvt)" (identifier) "del_aubio_pvoc" (argument_list) "(pvt)" (() "(" (identifier) "pvt" ()) ")" (;) ";" (expression_statement) "del_aubio_pvoc(pvs);" (call_expression) "del_aubio_pvoc(pvs)" (identifier) "del_aubio_pvoc" (argument_list) "(pvs)" (() "(" (identifier) "pvs" ()) ")" (;) ";" (expression_statement) "del_aubio_tss(tss);" (call_expression) "del_aubio_tss(tss)" (identifier) "del_aubio_tss" (argument_list) "(tss)" (() "(" (identifier) "tss" ()) ")" (;) ";" (expression_statement) "del_fvec(in);" (call_expression) "del_fvec(in)" (identifier) "del_fvec" (argument_list) "(in)" (() "(" (identifier) "in" ()) ")" (;) ";" (expression_statement) "del_cvec(fftgrain);" (call_expression) "del_cvec(fftgrain)" (identifier) "del_cvec" (argument_list) "(fftgrain)" (() "(" (identifier) "fftgrain" ()) ")" (;) ";" (expression_statement) "del_cvec(cstead);" (call_expression) "del_cvec(cstead)" (identifier) "del_cvec" (argument_list) "(cstead)" (() "(" (identifier) "cstead" ()) ")" (;) ";" (expression_statement) "del_cvec(ctrans);" (call_expression) "del_cvec(ctrans)" (identifier) "del_cvec" (argument_list) "(ctrans)" (() "(" (identifier) "ctrans" ()) ")" (;) ";" (expression_statement) "del_fvec(stead);" (call_expression) "del_fvec(stead)" (identifier) "del_fvec" (argument_list) "(stead)" (() "(" (identifier) "stead" ()) ")" (;) ";" (expression_statement) "del_fvec(trans);" (call_expression) "del_fvec(trans)" (identifier) "del_fvec" (argument_list) "(trans)" (() "(" (identifier) "trans" ()) ")" (;) ";" (expression_statement) "aubio_cleanup();" (call_expression) "aubio_cleanup()" (identifier) "aubio_cleanup" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
385
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 32.96, "nodes": 232, "errors": 0, "source_hash": "49947ad3a68eae2e2888fe88c6c1ba5ff9b92700f80ef35ed8d52b4f766ab5c8", "categorized_nodes": 154}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <aubio.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": "<aubio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int main (void)\n{\n uint_t n = 10; // compute n times\n uint_t win_s = 1024; // window size\n uint_t hop_s = 256; // hop size\n\n // create some vectors\n fvec_t * in = new_fvec (hop_s); // input buffer\n cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase\n cvec_t * cstead = new_cvec (win_s); // fft norm and phase\n cvec_t * ctrans = new_cvec (win_s); // fft norm and phase\n fvec_t * stead = new_fvec (hop_s); // output buffer\n fvec_t * trans = new_fvec (hop_s); // output buffer\n\n // create phase vocoder for analysis of input signal \n aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s);\n // create transient/steady-state separation object\n aubio_tss_t * tss = new_aubio_tss(win_s,hop_s);\n // create phase vocoder objects for synthesis of output signals\n aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s);\n aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s);\n\n /* execute stft */\n while ( n-- ) {\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }\n\n aubio_tss_set_alpha(tss, 4.);\n aubio_tss_set_beta(tss, 3.);\n aubio_tss_set_threshold(tss, 3.);\n\n del_aubio_pvoc(pv);\n del_aubio_pvoc(pvt);\n del_aubio_pvoc(pvs);\n del_aubio_tss(tss);\n\n del_fvec(in);\n del_cvec(fftgrain);\n del_cvec(cstead);\n del_cvec(ctrans);\n del_fvec(stead);\n del_fvec(trans);\n\n aubio_cleanup();\n\n return 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main (void)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 15}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(void)", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 15}}, {"id": 8, "type": "parameter_declaration", "text": "void", "parent": 7, "children": [9], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 14}}, {"id": 9, "type": "primitive_type", "text": "void", "parent": 8, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 14}}, {"id": 10, "type": "declaration", "text": "uint_t n = 10;", "parent": 3, "children": [11, 12], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 16}}, {"id": 11, "type": "type_identifier", "text": "uint_t", "parent": 10, "children": [], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 8}}, {"id": 12, "type": "init_declarator", "text": "n = 10", "parent": 10, "children": [13, 14, 15], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 15}}, {"id": 13, "type": "identifier", "text": "n", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 10}}, {"id": 14, "type": "=", "text": "=", "parent": 12, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 12}}, {"id": 15, "type": "number_literal", "text": "10", "parent": 12, "children": [], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 15}}, {"id": 16, "type": "declaration", "text": "uint_t win_s = 1024;", "parent": 3, "children": [17, 18], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 22}}, {"id": 17, "type": "type_identifier", "text": "uint_t", "parent": 16, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 8}}, {"id": 18, "type": "init_declarator", "text": "win_s = 1024", "parent": 16, "children": [19, 20, 21], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 21}}, {"id": 19, "type": "identifier", "text": "win_s", "parent": 18, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 14}}, {"id": 20, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 16}}, {"id": 21, "type": "number_literal", "text": "1024", "parent": 18, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 21}}, {"id": 22, "type": "declaration", "text": "uint_t hop_s = 256;", "parent": 3, "children": [23, 24], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 21}}, {"id": 23, "type": "type_identifier", "text": "uint_t", "parent": 22, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 8}}, {"id": 24, "type": "init_declarator", "text": "hop_s = 256", "parent": 22, "children": [25, 26, 27], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 20}}, {"id": 25, "type": "identifier", "text": "hop_s", "parent": 24, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 14}}, {"id": 26, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 16}}, {"id": 27, "type": "number_literal", "text": "256", "parent": 24, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 20}}, {"id": 28, "type": "declaration", "text": "fvec_t * in = new_fvec (hop_s);", "parent": 3, "children": [29, 30], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 39}}, {"id": 29, "type": "type_identifier", "text": "fvec_t", "parent": 28, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 8}}, {"id": 30, "type": "init_declarator", "text": "* in = new_fvec (hop_s)", "parent": 28, "children": [31, 34, 35], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 38}}, {"id": 31, "type": "pointer_declarator", "text": "* in", "parent": 30, "children": [32, 33], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 13}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 10}}, {"id": 33, "type": "identifier", "text": "in", "parent": 31, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 13}}, {"id": 34, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 21}}, {"id": 35, "type": "call_expression", "text": "new_fvec (hop_s)", "parent": 30, "children": [36, 37], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 38}}, {"id": 36, "type": "identifier", "text": "new_fvec", "parent": 35, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 30}}, {"id": 37, "type": "argument_list", "text": "(hop_s)", "parent": 35, "children": [38], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 38}}, {"id": 38, "type": "identifier", "text": "hop_s", "parent": 37, "children": [], "start_point": {"row": 9, "column": 32}, "end_point": {"row": 9, "column": 37}}, {"id": 39, "type": "declaration", "text": "cvec_t * fftgrain = new_cvec (win_s);", "parent": 3, "children": [40, 41], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 39}}, {"id": 40, "type": "type_identifier", "text": "cvec_t", "parent": 39, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 8}}, {"id": 41, "type": "init_declarator", "text": "* fftgrain = new_cvec (win_s)", "parent": 39, "children": [42, 45, 46], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 38}}, {"id": 42, "type": "pointer_declarator", "text": "* fftgrain", "parent": 41, "children": [43, 44], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 10}}, {"id": 44, "type": "identifier", "text": "fftgrain", "parent": 42, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 19}}, {"id": 45, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 21}}, {"id": 46, "type": "call_expression", "text": "new_cvec (win_s)", "parent": 41, "children": [47, 48], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 38}}, {"id": 47, "type": "identifier", "text": "new_cvec", "parent": 46, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 30}}, {"id": 48, "type": "argument_list", "text": "(win_s)", "parent": 46, "children": [49], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 38}}, {"id": 49, "type": "identifier", "text": "win_s", "parent": 48, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 37}}, {"id": 50, "type": "declaration", "text": "cvec_t * cstead = new_cvec (win_s);", "parent": 3, "children": [51, 52], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 39}}, {"id": 51, "type": "type_identifier", "text": "cvec_t", "parent": 50, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 8}}, {"id": 52, "type": "init_declarator", "text": "* cstead = new_cvec (win_s)", "parent": 50, "children": [53, 56, 57], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 38}}, {"id": 53, "type": "pointer_declarator", "text": "* cstead", "parent": 52, "children": [54, 55], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 17}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 55, "type": "identifier", "text": "cstead", "parent": 53, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 17}}, {"id": 56, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 21}}, {"id": 57, "type": "call_expression", "text": "new_cvec (win_s)", "parent": 52, "children": [58, 59], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 38}}, {"id": 58, "type": "identifier", "text": "new_cvec", "parent": 57, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 30}}, {"id": 59, "type": "argument_list", "text": "(win_s)", "parent": 57, "children": [60], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 38}}, {"id": 60, "type": "identifier", "text": "win_s", "parent": 59, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 37}}, {"id": 61, "type": "declaration", "text": "cvec_t * ctrans = new_cvec (win_s);", "parent": 3, "children": [62, 63], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 39}}, {"id": 62, "type": "type_identifier", "text": "cvec_t", "parent": 61, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 8}}, {"id": 63, "type": "init_declarator", "text": "* ctrans = new_cvec (win_s)", "parent": 61, "children": [64, 67, 68], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 38}}, {"id": 64, "type": "pointer_declarator", "text": "* ctrans", "parent": 63, "children": [65, 66], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 66, "type": "identifier", "text": "ctrans", "parent": 64, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 17}}, {"id": 67, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 21}}, {"id": 68, "type": "call_expression", "text": "new_cvec (win_s)", "parent": 63, "children": [69, 70], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 38}}, {"id": 69, "type": "identifier", "text": "new_cvec", "parent": 68, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 30}}, {"id": 70, "type": "argument_list", "text": "(win_s)", "parent": 68, "children": [71], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 38}}, {"id": 71, "type": "identifier", "text": "win_s", "parent": 70, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 37}}, {"id": 72, "type": "declaration", "text": "fvec_t * stead = new_fvec (hop_s);", "parent": 3, "children": [73, 74], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 39}}, {"id": 73, "type": "type_identifier", "text": "fvec_t", "parent": 72, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 74, "type": "init_declarator", "text": "* stead = new_fvec (hop_s)", "parent": 72, "children": [75, 78, 79], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 38}}, {"id": 75, "type": "pointer_declarator", "text": "* stead", "parent": 74, "children": [76, 77], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 16}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 77, "type": "identifier", "text": "stead", "parent": 75, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 16}}, {"id": 78, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 21}}, {"id": 79, "type": "call_expression", "text": "new_fvec (hop_s)", "parent": 74, "children": [80, 81], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 38}}, {"id": 80, "type": "identifier", "text": "new_fvec", "parent": 79, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 30}}, {"id": 81, "type": "argument_list", "text": "(hop_s)", "parent": 79, "children": [82], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 38}}, {"id": 82, "type": "identifier", "text": "hop_s", "parent": 81, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 37}}, {"id": 83, "type": "declaration", "text": "fvec_t * trans = new_fvec (hop_s);", "parent": 3, "children": [84, 85], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 39}}, {"id": 84, "type": "type_identifier", "text": "fvec_t", "parent": 83, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 8}}, {"id": 85, "type": "init_declarator", "text": "* trans = new_fvec (hop_s)", "parent": 83, "children": [86, 89, 90], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 38}}, {"id": 86, "type": "pointer_declarator", "text": "* trans", "parent": 85, "children": [87, 88], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 16}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 10}}, {"id": 88, "type": "identifier", "text": "trans", "parent": 86, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 16}}, {"id": 89, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 21}}, {"id": 90, "type": "call_expression", "text": "new_fvec (hop_s)", "parent": 85, "children": [91, 92], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 38}}, {"id": 91, "type": "identifier", "text": "new_fvec", "parent": 90, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 30}}, {"id": 92, "type": "argument_list", "text": "(hop_s)", "parent": 90, "children": [93], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 38}}, {"id": 93, "type": "identifier", "text": "hop_s", "parent": 92, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 37}}, {"id": 94, "type": "declaration", "text": "aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s);", "parent": 3, "children": [95, 96], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 51}}, {"id": 95, "type": "type_identifier", "text": "aubio_pvoc_t", "parent": 94, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 14}}, {"id": 96, "type": "init_declarator", "text": "* pv = new_aubio_pvoc (win_s,hop_s)", "parent": 94, "children": [97, 100, 101], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 50}}, {"id": 97, "type": "pointer_declarator", "text": "* pv", "parent": 96, "children": [98, 99], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 19}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 16}}, {"id": 99, "type": "identifier", "text": "pv", "parent": 97, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 19}}, {"id": 100, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 101, "type": "call_expression", "text": "new_aubio_pvoc (win_s,hop_s)", "parent": 96, "children": [102, 103], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 50}}, {"id": 102, "type": "identifier", "text": "new_aubio_pvoc", "parent": 101, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 36}}, {"id": 103, "type": "argument_list", "text": "(win_s,hop_s)", "parent": 101, "children": [104, 105], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 50}}, {"id": 104, "type": "identifier", "text": "win_s", "parent": 103, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 43}}, {"id": 105, "type": "identifier", "text": "hop_s", "parent": 103, "children": [], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 49}}, {"id": 106, "type": "declaration", "text": "aubio_tss_t * tss = new_aubio_tss(win_s,hop_s);", "parent": 3, "children": [107, 108], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 50}}, {"id": 107, "type": "type_identifier", "text": "aubio_tss_t", "parent": 106, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 13}}, {"id": 108, "type": "init_declarator", "text": "* tss = new_aubio_tss(win_s,hop_s)", "parent": 106, "children": [109, 112, 113], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 49}}, {"id": 109, "type": "pointer_declarator", "text": "* tss", "parent": 108, "children": [110, 111], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 20}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 15}}, {"id": 111, "type": "identifier", "text": "tss", "parent": 109, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 20}}, {"id": 112, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 113, "type": "call_expression", "text": "new_aubio_tss(win_s,hop_s)", "parent": 108, "children": [114, 115], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 49}}, {"id": 114, "type": "identifier", "text": "new_aubio_tss", "parent": 113, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 36}}, {"id": 115, "type": "argument_list", "text": "(win_s,hop_s)", "parent": 113, "children": [116, 117], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 49}}, {"id": 116, "type": "identifier", "text": "win_s", "parent": 115, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 42}}, {"id": 117, "type": "identifier", "text": "hop_s", "parent": 115, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 48}}, {"id": 118, "type": "declaration", "text": "aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s);", "parent": 3, "children": [119, 120], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 51}}, {"id": 119, "type": "type_identifier", "text": "aubio_pvoc_t", "parent": 118, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 14}}, {"id": 120, "type": "init_declarator", "text": "* pvt = new_aubio_pvoc(win_s,hop_s)", "parent": 118, "children": [121, 124, 125], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 50}}, {"id": 121, "type": "pointer_declarator", "text": "* pvt", "parent": 120, "children": [122, 123], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 20}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 16}}, {"id": 123, "type": "identifier", "text": "pvt", "parent": 121, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 20}}, {"id": 124, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 22}}, {"id": 125, "type": "call_expression", "text": "new_aubio_pvoc(win_s,hop_s)", "parent": 120, "children": [126, 127], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 50}}, {"id": 126, "type": "identifier", "text": "new_aubio_pvoc", "parent": 125, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 37}}, {"id": 127, "type": "argument_list", "text": "(win_s,hop_s)", "parent": 125, "children": [128, 129], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 50}}, {"id": 128, "type": "identifier", "text": "win_s", "parent": 127, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 43}}, {"id": 129, "type": "identifier", "text": "hop_s", "parent": 127, "children": [], "start_point": {"row": 21, "column": 44}, "end_point": {"row": 21, "column": 49}}, {"id": 130, "type": "declaration", "text": "aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s);", "parent": 3, "children": [131, 132], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 51}}, {"id": 131, "type": "type_identifier", "text": "aubio_pvoc_t", "parent": 130, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 14}}, {"id": 132, "type": "init_declarator", "text": "* pvs = new_aubio_pvoc(win_s,hop_s)", "parent": 130, "children": [133, 136, 137], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 50}}, {"id": 133, "type": "pointer_declarator", "text": "* pvs", "parent": 132, "children": [134, 135], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 20}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 16}}, {"id": 135, "type": "identifier", "text": "pvs", "parent": 133, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 20}}, {"id": 136, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 22}}, {"id": 137, "type": "call_expression", "text": "new_aubio_pvoc(win_s,hop_s)", "parent": 132, "children": [138, 139], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 50}}, {"id": 138, "type": "identifier", "text": "new_aubio_pvoc", "parent": 137, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 37}}, {"id": 139, "type": "argument_list", "text": "(win_s,hop_s)", "parent": 137, "children": [140, 141], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 50}}, {"id": 140, "type": "identifier", "text": "win_s", "parent": 139, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 43}}, {"id": 141, "type": "identifier", "text": "hop_s", "parent": 139, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 49}}, {"id": 142, "type": "while_statement", "text": "while ( n-- ) {\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }", "parent": 3, "children": [143], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 34, "column": 3}}, {"id": 143, "type": "parenthesized_expression", "text": "( n-- )", "parent": 142, "children": [144], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 15}}, {"id": 144, "type": "update_expression", "text": "n--", "parent": 143, "children": [145, 146], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 13}}, {"id": 145, "type": "identifier", "text": "n", "parent": 144, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 146, "type": "--", "text": "--", "parent": 144, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 13}}, {"id": 147, "type": "call_expression", "text": "aubio_pvoc_do (pv, in, fftgrain)", "parent": 142, "children": [148, 149], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 36}}, {"id": 148, "type": "identifier", "text": "aubio_pvoc_do", "parent": 147, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 17}}, {"id": 149, "type": "argument_list", "text": "(pv, in, fftgrain)", "parent": 147, "children": [150, 151, 152], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 36}}, {"id": 150, "type": "identifier", "text": "pv", "parent": 149, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 21}}, {"id": 151, "type": "identifier", "text": "in", "parent": 149, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 25}}, {"id": 152, "type": "identifier", "text": "fftgrain", "parent": 149, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 35}}, {"id": 153, "type": "call_expression", "text": "aubio_tss_do (tss, fftgrain, ctrans, cstead)", "parent": 142, "children": [154, 155], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 48}}, {"id": 154, "type": "identifier", "text": "aubio_tss_do", "parent": 153, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 16}}, {"id": 155, "type": "argument_list", "text": "(tss, fftgrain, ctrans, cstead)", "parent": 153, "children": [156, 157, 158, 159], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 48}}, {"id": 156, "type": "identifier", "text": "tss", "parent": 155, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 21}}, {"id": 157, "type": "identifier", "text": "fftgrain", "parent": 155, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 31}}, {"id": 158, "type": "identifier", "text": "ctrans", "parent": 155, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 39}}, {"id": 159, "type": "identifier", "text": "cstead", "parent": 155, "children": [], "start_point": {"row": 29, "column": 41}, "end_point": {"row": 29, "column": 47}}, {"id": 160, "type": "call_expression", "text": "aubio_pvoc_rdo (pvt, cstead, stead)", "parent": 142, "children": [161, 162], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 39}}, {"id": 161, "type": "identifier", "text": "aubio_pvoc_rdo", "parent": 160, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 18}}, {"id": 162, "type": "argument_list", "text": "(pvt, cstead, stead)", "parent": 160, "children": [163, 164, 165], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 39}}, {"id": 163, "type": "identifier", "text": "pvt", "parent": 162, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 23}}, {"id": 164, "type": "identifier", "text": "cstead", "parent": 162, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 31}}, {"id": 165, "type": "identifier", "text": "stead", "parent": 162, "children": [], "start_point": {"row": 32, "column": 33}, "end_point": {"row": 32, "column": 38}}, {"id": 166, "type": "call_expression", "text": "aubio_pvoc_rdo (pvs, ctrans, trans)", "parent": 142, "children": [167, 168], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 39}}, {"id": 167, "type": "identifier", "text": "aubio_pvoc_rdo", "parent": 166, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 18}}, {"id": 168, "type": "argument_list", "text": "(pvs, ctrans, trans)", "parent": 166, "children": [169, 170, 171], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 39}}, {"id": 169, "type": "identifier", "text": "pvs", "parent": 168, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 23}}, {"id": 170, "type": "identifier", "text": "ctrans", "parent": 168, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 31}}, {"id": 171, "type": "identifier", "text": "trans", "parent": 168, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 38}}, {"id": 172, "type": "call_expression", "text": "aubio_tss_set_alpha(tss, 4.)", "parent": 3, "children": [173, 174], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 30}}, {"id": 173, "type": "identifier", "text": "aubio_tss_set_alpha", "parent": 172, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 21}}, {"id": 174, "type": "argument_list", "text": "(tss, 4.)", "parent": 172, "children": [175, 176], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 30}}, {"id": 175, "type": "identifier", "text": "tss", "parent": 174, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 25}}, {"id": 176, "type": "number_literal", "text": "4.", "parent": 174, "children": [], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 29}}, {"id": 177, "type": "call_expression", "text": "aubio_tss_set_beta(tss, 3.)", "parent": 3, "children": [178, 179], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 29}}, {"id": 178, "type": "identifier", "text": "aubio_tss_set_beta", "parent": 177, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 20}}, {"id": 179, "type": "argument_list", "text": "(tss, 3.)", "parent": 177, "children": [180, 181], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 29}}, {"id": 180, "type": "identifier", "text": "tss", "parent": 179, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 24}}, {"id": 181, "type": "number_literal", "text": "3.", "parent": 179, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 28}}, {"id": 182, "type": "call_expression", "text": "aubio_tss_set_threshold(tss, 3.)", "parent": 3, "children": [183, 184], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 34}}, {"id": 183, "type": "identifier", "text": "aubio_tss_set_threshold", "parent": 182, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 25}}, {"id": 184, "type": "argument_list", "text": "(tss, 3.)", "parent": 182, "children": [185, 186], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 34}}, {"id": 185, "type": "identifier", "text": "tss", "parent": 184, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 29}}, {"id": 186, "type": "number_literal", "text": "3.", "parent": 184, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 33}}, {"id": 187, "type": "call_expression", "text": "del_aubio_pvoc(pv)", "parent": 3, "children": [188, 189], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 20}}, {"id": 188, "type": "identifier", "text": "del_aubio_pvoc", "parent": 187, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 16}}, {"id": 189, "type": "argument_list", "text": "(pv)", "parent": 187, "children": [190], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 20}}, {"id": 190, "type": "identifier", "text": "pv", "parent": 189, "children": [], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 19}}, {"id": 191, "type": "call_expression", "text": "del_aubio_pvoc(pvt)", "parent": 3, "children": [192, 193], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 21}}, {"id": 192, "type": "identifier", "text": "del_aubio_pvoc", "parent": 191, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 16}}, {"id": 193, "type": "argument_list", "text": "(pvt)", "parent": 191, "children": [194], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 21}}, {"id": 194, "type": "identifier", "text": "pvt", "parent": 193, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 20}}, {"id": 195, "type": "call_expression", "text": "del_aubio_pvoc(pvs)", "parent": 3, "children": [196, 197], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 21}}, {"id": 196, "type": "identifier", "text": "del_aubio_pvoc", "parent": 195, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 16}}, {"id": 197, "type": "argument_list", "text": "(pvs)", "parent": 195, "children": [198], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 21}}, {"id": 198, "type": "identifier", "text": "pvs", "parent": 197, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 20}}, {"id": 199, "type": "call_expression", "text": "del_aubio_tss(tss)", "parent": 3, "children": [200, 201], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 20}}, {"id": 200, "type": "identifier", "text": "del_aubio_tss", "parent": 199, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 15}}, {"id": 201, "type": "argument_list", "text": "(tss)", "parent": 199, "children": [202], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 20}}, {"id": 202, "type": "identifier", "text": "tss", "parent": 201, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 19}}, {"id": 203, "type": "call_expression", "text": "del_fvec(in)", "parent": 3, "children": [204, 205], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 14}}, {"id": 204, "type": "identifier", "text": "del_fvec", "parent": 203, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 10}}, {"id": 205, "type": "argument_list", "text": "(in)", "parent": 203, "children": [206], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 14}}, {"id": 206, "type": "identifier", "text": "in", "parent": 205, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 13}}, {"id": 207, "type": "call_expression", "text": "del_cvec(fftgrain)", "parent": 3, "children": [208, 209], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 20}}, {"id": 208, "type": "identifier", "text": "del_cvec", "parent": 207, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 10}}, {"id": 209, "type": "argument_list", "text": "(fftgrain)", "parent": 207, "children": [210], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 20}}, {"id": 210, "type": "identifier", "text": "fftgrain", "parent": 209, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 19}}, {"id": 211, "type": "call_expression", "text": "del_cvec(cstead)", "parent": 3, "children": [212, 213], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 18}}, {"id": 212, "type": "identifier", "text": "del_cvec", "parent": 211, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 10}}, {"id": 213, "type": "argument_list", "text": "(cstead)", "parent": 211, "children": [214], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 18}}, {"id": 214, "type": "identifier", "text": "cstead", "parent": 213, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 17}}, {"id": 215, "type": "call_expression", "text": "del_cvec(ctrans)", "parent": 3, "children": [216, 217], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 18}}, {"id": 216, "type": "identifier", "text": "del_cvec", "parent": 215, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 10}}, {"id": 217, "type": "argument_list", "text": "(ctrans)", "parent": 215, "children": [218], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 18}}, {"id": 218, "type": "identifier", "text": "ctrans", "parent": 217, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 17}}, {"id": 219, "type": "call_expression", "text": "del_fvec(stead)", "parent": 3, "children": [220, 221], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 17}}, {"id": 220, "type": "identifier", "text": "del_fvec", "parent": 219, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 10}}, {"id": 221, "type": "argument_list", "text": "(stead)", "parent": 219, "children": [222], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 17}}, {"id": 222, "type": "identifier", "text": "stead", "parent": 221, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 16}}, {"id": 223, "type": "call_expression", "text": "del_fvec(trans)", "parent": 3, "children": [224, 225], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 17}}, {"id": 224, "type": "identifier", "text": "del_fvec", "parent": 223, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 10}}, {"id": 225, "type": "argument_list", "text": "(trans)", "parent": 223, "children": [226], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 17}}, {"id": 226, "type": "identifier", "text": "trans", "parent": 225, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 16}}, {"id": 227, "type": "call_expression", "text": "aubio_cleanup()", "parent": 3, "children": [228, 229], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 17}}, {"id": 228, "type": "identifier", "text": "aubio_cleanup", "parent": 227, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 15}}, {"id": 229, "type": "argument_list", "text": "()", "parent": 227, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 17}}, {"id": 230, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [231], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 11}}, {"id": 231, "type": "number_literal", "text": "0", "parent": 230, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 10}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 10, 16, 22, 28, 39, 50, 61, 72, 83, 94, 106, 118, 130], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [35, 46, 57, 68, 79, 90, 101, 113, 125, 137, 143, 144, 147, 153, 160, 166, 172, 177, 182, 187, 191, 195, 199, 203, 207, 211, 215, 219, 223, 227], "assignments": [], "loops": [142], "conditionals": [6, 11, 13, 17, 19, 23, 25, 29, 33, 36, 38, 40, 44, 47, 49, 51, 55, 58, 60, 62, 66, 69, 71, 73, 77, 80, 82, 84, 88, 91, 93, 95, 99, 102, 104, 105, 107, 111, 114, 116, 117, 119, 123, 126, 128, 129, 131, 135, 138, 140, 141, 145, 148, 150, 151, 152, 154, 156, 157, 158, 159, 161, 163, 164, 165, 167, 169, 170, 171, 173, 175, 178, 180, 183, 185, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228], "returns": [230], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 15, 21, 27, 176, 181, 186, 231], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main (void)\n{\n uint_t n = 10; // compute n times\n uint_t win_s = 1024; // window size\n uint_t"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main (void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <aubio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <aubio.h>\n\nint main (void)\n{\n uint_t n = 10; // compute n times\n uint_t win_s = 1024; // window size\n uint_t hop_s = 256; // hop size\n\n // create some vectors\n fvec_t * in = new_fvec (hop_s); // input buffer\n cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase\n cvec_t * cstead = new_cvec (win_s); // fft norm and phase\n cvec_t * ctrans = new_cvec (win_s); // fft norm and phase\n fvec_t * stead = new_fvec (hop_s); // output buffer\n fvec_t * trans = new_fvec (hop_s); // output buffer\n\n // create phase vocoder for analysis of input signal \n aubio_pvoc_t * pv = new_aubio_pvoc (win_s,hop_s);\n // create transient/steady-state separation object\n aubio_tss_t * tss = new_aubio_tss(win_s,hop_s);\n // create phase vocoder objects for synthesis of output signals\n aubio_pvoc_t * pvt = new_aubio_pvoc(win_s,hop_s);\n aubio_pvoc_t * pvs = new_aubio_pvoc(win_s,hop_s);\n\n /* execute stft */\n while ( n-- ) {\n // fftgrain = pv(in)\n aubio_pvoc_do (pv, in, fftgrain);\n // ctrans, cstead = tss (fftgrain)\n aubio_tss_do (tss, fftgrain, ctrans, cstead);\n // stead = pvt_inverse (cstead)\n // trans = pvt_inverse (ctrans)\n aubio_pvoc_rdo (pvt, cstead, stead);\n aubio_pvoc_rdo (pvs, ctrans, trans);\n }\n\n aubio_tss_set_alpha(tss, 4.);\n aubio_tss_set_beta(tss, 3.);\n aubio_tss_set_threshold(tss, 3.);\n\n del_aubio_pvoc(pv);\n del_aubio_pvoc(pvt);\n del_aubio_pvoc(pvs);\n del_aubio_tss(tss);\n\n del_fvec(in);\n del_cvec(fftgrain);\n del_cvec(cstead);\n del_cvec(ctrans);\n del_fvec(stead);\n del_fvec(trans);\n\n aubio_cleanup();\n\n return 0;\n}\n"}
80,499